/* ============================================================
   Candidate panel — shell 1a, 2026-09-14
   ============================================================
   Source: design_handoff_anasayfa_panel/design/Aday Paneli Kurgu.dc.html, option
   1a, and PanelMock.dc.html for the tab screens. Loaded after portal.css.

   The shell rules are scoped to .p-shell--1a so the employer shell keeps its
   own look until it is moved over; the component classes below the shell are
   new names and safe everywhere. Colours come from the --ab-* tokens in
   css/ab1.css, which the portal loads after style.css. */

body.p-app { background: var(--ab-bg); color: var(--ab-ink); font-family: var(--font-body); }

/* ── Sidebar ────────────────────────────────────────────────── */
.p-shell--1a { grid-template-columns: 260px minmax(0, 1fr); }

.p-shell--1a .p-side {
  background: linear-gradient(180deg, #0b1f3a, #10264a);
  padding: 24px 16px;
  color: #fff;
}
.p-shell--1a .p-side__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px 10px 26px;
  font: 500 14px/1.2 var(--font-body);
  letter-spacing: 0;
  color: #fff;
  text-decoration: none;
}
/* EAC lockup in the sidebar; the square monogram replaces it when the menu is
   collapsed to icons, where the full logo would fall under its 140px minimum. */
.p-shell--1a .p-side__brand .brand-logo { height: 26px; margin: 0; color: #f2efe8; }
.p-side__brand .brand-mono { display: none; }
@media (min-width: 861px) {
  .is-rail .p-side__brand .brand-logo { display: none; }
  .is-rail .p-side__brand .brand-mono { display: block; }
}

.p-shell--1a .p-side__nav { gap: 4px; overflow-y: auto; }
.p-shell--1a .p-side__group {
  margin: 0;
  padding: 0 10px 10px;
  font: 500 10px/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8fa3c8;
}
.p-shell--1a .p-side__link + .p-side__group { padding-top: 22px; }

.p-shell--1a .p-side__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: 500 14px/1.2 var(--font-body);
  text-decoration: none;
}
.p-shell--1a .p-side__link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.p-shell--1a .p-side__link.is-active {
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(143, 176, 234, .5);
}
.p-shell--1a .p-side__link:focus-visible { outline: 2px solid #8fb0ea; outline-offset: 2px; }
.p-side__ico {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
}
.p-side__ico svg { width: 15px; height: 15px; opacity: 1; }
.p-shell--1a .p-side__link.is-active .p-side__ico { background: var(--ab-accent); }
/* portal.css gives every span inside a link `flex: 1`, which let the icon box
   and the chevron grow and squeezed the label onto two lines. */
.p-shell--1a .p-side__link .p-side__ico,
.p-shell--1a .p-side__link .p-side__chev,
.p-shell--1a .p-side__link .p-side__badge { flex: none; }
.p-shell--1a .p-side__link .p-side__label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-side__chev { font-size: 12px; opacity: .5; }
.p-shell--1a .p-side__badge {
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--ab-ink);
  font: 600 10px/1.2 var(--font-body);
  text-align: center;
}

.p-side__advisor {
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ab-ondark);
}
.p-side__advisor p { margin: 0; }
.p-side__advhead { font-weight: 600; color: #fff; margin-bottom: 2px !important; }
.p-side__advisor a { display: inline-block; margin-top: 8px; color: #8fb0ea; text-decoration: underline; }
.p-side__advisor a:hover { color: #fff; }

.p-shell--1a .p-side__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.p-shell--1a .p-side__foot form { margin: 0; }
.p-shell--1a .p-side__small { margin: 0; font-size: 12px; }
.p-shell--1a .p-side__logout { width: auto; padding: 6px 10px; font-size: 12px; border-radius: 4px; }

/* ── Sidebar that always fits (client, 2026-09-15) ──────────────
   Twelve links at 44px each plus the advisor card overflowed a 900px-tall
   laptop screen and put a scrollbar in the menu. The rows are tighter, and on
   short screens the advisor card steps aside; the nav can still scroll as a
   last resort, but never shows a bar. */
.p-shell--1a .p-side { padding: 18px 12px; }
.p-shell--1a .p-side__brand { padding: 4px 10px 16px; }
.p-shell--1a .p-side__nav { gap: 2px; min-height: 0; scrollbar-width: none; }
.p-shell--1a .p-side__nav::-webkit-scrollbar { display: none; }
.p-shell--1a .p-side__group { padding-bottom: 6px; }
.p-shell--1a .p-side__link + .p-side__group { padding-top: 14px; }
.p-shell--1a .p-side__link { padding: 6px 10px; }
.p-shell--1a .p-side__ico { width: 26px; height: 26px; }
.p-shell--1a .p-side__advisor { padding: 10px 12px; }
.p-shell--1a .p-side__foot { flex-wrap: wrap; margin-top: 10px; padding-top: 10px; }
.p-shell--1a .p-side__logout { display: inline-flex; align-items: center; gap: 6px; }
.p-shell--1a .p-side__logout svg { width: 14px; height: 14px; }
@media (max-height: 760px) {
  .p-shell--1a .p-side__advisor { display: none; }
  .p-shell--1a .p-side__link { padding-block: 4px; }
}

.p-side__rail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  background: transparent;
  color: var(--ab-ondark);
  font: 500 12px/1.2 var(--font-body);
  cursor: pointer;
}
.p-side__rail:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.p-side__rail:focus-visible { outline: 2px solid #8fb0ea; outline-offset: 2px; }
.p-side__rail svg { width: 14px; height: 14px; }

/* Collapsed to icons — desktop only; the phone menu is off-canvas already. */
@media (min-width: 861px) {
  .p-shell--1a.is-rail { grid-template-columns: 76px minmax(0, 1fr); }
  .is-rail .p-side { padding-inline: 10px; }
  .is-rail .p-side__brand { justify-content: center; padding-inline: 0; }
  .is-rail .p-side__brand > span:last-child,
  .is-rail .p-side__group,
  .is-rail .p-side__label,
  .is-rail .p-side__chev,
  .is-rail .p-side__advisor,
  .is-rail .p-side__small,
  .is-rail .p-side__railtext,
  .is-rail .p-side__logouttext { display: none; }
  /* The second group heading becomes a thin divider instead of vanishing. */
  .is-rail .p-side__link + .p-side__group { display: block; height: 1px; margin: 10px 8px; padding: 0; background: rgba(255, 255, 255, .14); font-size: 0; }
  .is-rail .p-side__link { position: relative; justify-content: center; padding-inline: 0; }
  .is-rail .p-side__badge { position: absolute; top: 0; right: 4px; min-width: 16px; padding: 1px 4px; }
  .is-rail .p-side__foot { flex-direction: column; align-items: center; }
  .is-rail .p-side__rail svg { transform: rotate(180deg); }
}
@media (max-width: 860px) { .p-side__rail { display: none; } }

/* ── "Dosya aç" drawer ───────────────────────────────────────────
   One <dialog> for the whole list. Desktop: a panel from the right, the table
   stays visible behind it. Phone: a sheet from the bottom with the buttons in
   thumb reach. */
.p-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 80;
  width: min(420px, 100vw);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--ab-line);
  background: #fff;
  color: var(--ab-ink);
  box-shadow: -24px 0 48px -28px rgba(11, 31, 58, .45);
}
.p-drawer[open] { display: flex; flex-direction: column; animation: p-drawer-in .22s ease-out; }
.p-drawer::backdrop { background: rgba(11, 31, 58, .32); }
.p-drawer > form { display: flex; flex: 1; flex-direction: column; min-height: 0; margin: 0; }
.p-drawer__head { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--ab-line2); }
.p-drawer__title { margin: 0; font: 400 24px/1.15 var(--font-display); color: var(--ab-ink); }
.p-drawer__who { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--ab-mute); overflow-wrap: anywhere; }
.p-drawer__who strong { color: var(--ab-ink); font-weight: 600; }
.p-drawer__x {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid var(--ab-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ab-ink);
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}
.p-drawer__x:hover { border-color: var(--ab-ink); }
.p-drawer__body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 22px 20px; }
.p-drawer__group { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.p-drawer__group + .p-drawer__group { margin-top: 18px; }
.p-drawer__legend { margin: 0 0 4px; padding: 0; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ab-mute); }
.p-drawer__legend--warn { color: #b4382f; }
.p-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ab-line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}
.p-opt:hover { border-color: var(--ab-alt); }
.p-opt input { flex: none; margin: 0; accent-color: var(--ab-ink); }
.p-opt__label { flex: 1; min-width: 0; }
.p-opt__steps { flex: none; font: 500 11px/1 var(--font-mono); color: var(--ab-mute); font-variant-numeric: tabular-nums; }
.p-opt:has(input:checked) { border-color: var(--ab-ink); background: var(--ab-soft); }
.p-opt--warn:has(input:checked) { border-color: #b4382f; background: #fbe9e7; }
.p-drawer__warn { margin: 14px 0 0; padding: 10px 12px; border-radius: 6px; background: #fbe9e7; color: #b4382f; font-size: 13px; }
.p-drawer__warn[hidden] { display: none; }
.p-drawer__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--ab-line2); background: #fff; }
.p-drawer__foot .pbtn { margin: 0; }
.p-drawer__foot .pbtn:disabled { opacity: .45; cursor: not-allowed; }
@keyframes p-drawer-in { from { transform: translateX(28px); opacity: .5; } }
@keyframes p-sheet-in { from { transform: translateY(40px); opacity: .5; } }

@media (max-width: 860px) {
  .p-drawer {
    inset: auto 0 0 0;
    width: 100vw;
    height: auto;
    max-height: 88dvh;
    border-left: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -20px 40px -24px rgba(11, 31, 58, .45);
  }
  .p-drawer[open] { animation-name: p-sheet-in; }
  .p-drawer__head { padding: 22px 16px 14px; }
  .p-drawer__head::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 2px;
    background: var(--ab-line);
  }
  .p-drawer__body { padding: 14px 16px 18px; }
  .p-opt { min-height: 48px; }
  .p-drawer__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .p-drawer__foot .pbtn { flex: 1; min-height: 46px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .p-drawer[open] { animation: none; } }

/* ── Topbar ─────────────────────────────────────────────────── */
.p-shell--1a .p-main { display: flex; flex-direction: column; min-width: 0; }
.p-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid var(--ab-line);
}
.p-crumbs { margin: 0; font-size: 14px; color: var(--ab-mute); }
.p-crumbs__sep { margin: 0 6px; color: var(--ab-off); }
.p-crumbs__here { color: var(--ab-ink); font-weight: 500; }
.p-top__end { display: flex; align-items: center; gap: 16px; }
.p-search[hidden] { display: none; }
.p-search__input {
  width: 220px;
  padding: 7px 12px;
  border: 1px solid var(--ab-line);
  border-radius: 4px;
  background: #fff;
  color: var(--ab-ink);
  font: 400 13px var(--font-body);
}
.p-search__input::placeholder { color: var(--ab-ph); }
.p-search__input:focus { outline: 2px solid var(--ab-accent); outline-offset: -1px; }
.p-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ab-vlt);
  color: var(--ab-ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.p-avatar:hover { background: #d5e0f4; }

.p-shell--1a .p-main__inner { max-width: none; padding: 28px 32px 64px; }

@media (max-width: 860px) {
  /* The sidebar is fixed off-canvas here, so it no longer takes a grid cell —
     without this the main column is auto-placed into the 260px sidebar track. */
  .p-shell--1a { grid-template-columns: minmax(0, 1fr); }
  .p-top { padding: 14px 16px 14px 68px; }
  .p-search { display: none; }
  .p-shell--1a .p-main__inner { padding: 20px 16px 56px; }
  .p-shell--1a .p-burger { top: 10px; left: 12px; border-radius: 4px; }
}

/* ── Page furniture, restated for 1a ────────────────────────── */
.p-shell--1a .p-h1 {
  margin: 0 0 6px;
  font: 400 clamp(26px, 2.3vw, 32px)/1.1 var(--font-display);
  letter-spacing: -.01em;
  color: var(--ab-ink);
}
.p-shell--1a .p-lede { margin: 0 0 22px; font-size: 14px; color: var(--ab-body); }
.p-shell--1a .p-card {
  margin-bottom: 12px;
  padding: 20px 22px;
  border: 1px solid var(--ab-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.p-shell--1a .p-card__title { margin: 0 0 4px; font: 600 15px/1.3 var(--font-body); color: var(--ab-ink); }
.p-shell--1a .p-card__sub { font-size: 13px; color: var(--ab-mute); }
.p-shell--1a .p-label { font-family: var(--font-body); }
.p-shell--1a .pbtn { border-radius: 3px; font-family: var(--font-body); font-weight: 500; }
.p-shell--1a .pbtn--primary { background: var(--ab-ink); }
.p-shell--1a .pbtn--primary:hover { background: var(--ab-deep); }
.p-shell--1a .p-input,
.p-shell--1a .p-select,
.p-shell--1a .p-textarea { border-radius: 4px; border-color: var(--ab-line); font-family: var(--font-body); }
.p-shell--1a .p-tag { padding: 4px 9px; border: 0; border-radius: 999px; font: 500 11px/1.2 var(--font-body); }
.p-shell--1a .p-tag--neutral { background: var(--ab-bg); color: var(--ab-mute); }
.p-shell--1a .p-tag--blue,
.p-shell--1a .p-tag--green { background: var(--ab-vlt); color: var(--ab-accent); }
.p-shell--1a .p-tag--amber { background: var(--ab-warnbg); color: var(--ab-warn); }
.p-shell--1a .p-tag--red { background: #fdecea; color: #9b2c20; }
.p-shell--1a .p-progress { height: 4px; background: var(--ab-line3); }
.p-shell--1a .p-progress span { background: var(--ab-accent); }
.p-shell--1a .p-link { color: var(--ab-accent); }

[data-p-row][hidden] { display: none !important; }

/* ── Shared components ──────────────────────────────────────── */
.p-mono { font: 500 11px/1.3 var(--font-mono); color: var(--ab-mute); }

.p-cardhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.p-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.p-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .p-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .p-kpis, .p-kpis--3 { grid-template-columns: minmax(0, 1fr); } }
.p-kpi { padding: 18px 20px; border: 1px solid var(--ab-line); border-radius: 8px; background: #fff; }
.p-kpi__l { margin: 0; font-size: 12px; color: var(--ab-mute); }
.p-kpi__v { margin: 8px 0 4px; font: 400 30px/1 var(--font-display); color: var(--ab-ink); }
.p-kpi__of { font: 400 14px var(--font-body); color: var(--ab-mute); margin-left: 4px; }
.p-kpi__s { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ab-accent); }
.p-kpi__s--warn { color: var(--ab-warn); }
.p-kpi__s--mute { color: var(--ab-mute); }

.p-ov { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.p-ov__side { display: grid; gap: 12px; align-content: start; }
@media (max-width: 1000px) { .p-ov { grid-template-columns: minmax(0, 1fr); } }
.p-ov + .p-card,
.p-ov + section { margin-top: 12px; }

/* The step list: done / now / wait */
.p-fsteps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.p-fstep {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--ab-line2);
  border-radius: 6px;
}
.p-fstep--now { border-color: var(--ab-accent); background: var(--ab-soft); }
.p-dot {
  width: 26px;
  height: 26px;
  flex: none;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ab-off);
  border-radius: 50%;
  background: #fff;
  color: var(--ab-ph);
  font-size: 11px;
}
.is-done > .p-dot,
.p-fstep--done .p-dot { border: 0; background: var(--ab-accent); color: #fff; }
.is-now > .p-dot,
.p-fstep--now .p-dot { border: 2px solid var(--ab-accent); color: var(--ab-accent); }
.p-fstep__t { display: block; font-size: 14px; font-weight: 600; }
.p-fstep__s { display: block; font-size: 12px; color: var(--ab-mute); }
.p-next {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--ab-bg);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ab-body);
}
.p-next b { font-weight: 600; color: var(--ab-ink); }

/* Upcoming */
.p-upc { margin: 0 0 10px; padding: 0; list-style: none; }
.p-upc li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--ab-line2);
}
.p-upc__d { text-align: center; }
.p-upc__d b { display: block; font: 400 20px/1 var(--font-display); }
.p-upc__d span { display: block; font-size: 10px; color: var(--ab-ph); text-transform: uppercase; }
.p-upc__t { display: block; font-size: 13px; font-weight: 500; }
.p-upc__m { display: block; font-size: 11px; color: var(--ab-ph); }
.p-muted { margin: 0 0 10px; font-size: 13px; color: var(--ab-mute); }

/* The advisor message box */
.p-msgbox { padding: 18px 20px; border-radius: 8px; background: var(--ab-accent); color: #fff; }
.p-msgbox__meta { margin: 0 0 6px; font-size: 12px; opacity: .75; }
.p-msgbox__body { margin: 0; font-size: 14px; line-height: 1.5; }
.p-msgbox__act {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 3px;
  background: #fff;
  color: var(--ab-ink);
  font: 500 13px var(--font-body);
  text-decoration: none;
}
.p-msgbox__act:hover { background: var(--ab-vlt); }

/* Rows */
.p-rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.p-row2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--ab-line3);
  border-radius: 6px;
  background: #fff;
}
.p-row2__t { display: block; font-size: 14px; font-weight: 500; color: var(--ab-ink); word-break: break-word; }
.p-row2__m { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--ab-ph); word-break: break-word; }
.p-row2__side { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.p-row2__side form { margin: 0; }
@media (max-width: 560px) {
  .p-row2 { grid-template-columns: minmax(0, 1fr); }
  .p-row2__side { justify-content: flex-start; }
}

.p-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ab-bg);
  color: var(--ab-mute);
  font: 500 11px/1.2 var(--font-body);
  white-space: nowrap;
}
.p-pill--ok { background: var(--ab-vlt); color: var(--ab-accent); }
.p-pill--check { background: var(--ab-warnbg); color: var(--ab-warn); }
.p-pill--bad { background: #fdecea; color: #9b2c20; }
.p-pill--dark { background: #e8ecf5; color: var(--ab-ink); }

.p-sum { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-size: 13px; color: var(--ab-mute); }
.p-sum b { font: 500 12px var(--font-mono); color: var(--ab-ink); }
.p-bar { height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--ab-line3); overflow: hidden; }
.p-bar span { display: block; height: 100%; background: var(--ab-accent); }

.p-sublabel { margin: 18px 0 8px; font-size: 12px; font-weight: 600; color: var(--ab-mute); }

/* Upload drop zone */
.p-upload { margin-top: 14px; }
.p-drop {
  position: relative;
  display: block;
  margin: 0 0 12px;
  padding: 22px 20px;
  border: 1.5px dashed var(--ab-off);
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  color: var(--ab-ph);
  cursor: pointer;
}
.p-drop:hover,
.p-drop.is-over { border-color: var(--ab-accent); background: var(--ab-soft); }
.p-drop input[type='file'] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.p-drop input[type='file']:focus-visible + strong { outline: 2px solid var(--ab-accent); outline-offset: 4px; }
.p-drop strong { display: block; margin-bottom: 4px; font-weight: 500; color: var(--ab-ink); }

/* Jobs */
.p-job { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; padding: 14px 16px; }
.p-job__ab {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ab-bg);
  font-size: 12px;
  font-weight: 600;
}
.p-job__side { display: grid; justify-items: center; gap: 8px; }
.p-job__desc { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ab-body); }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.p-chipx { padding: 3px 8px; border-radius: 3px; background: var(--ab-bg); font-size: 11px; color: var(--ab-body); }
/* .p-fit, not .p-ring: profile.php already owns .p-ring for its SVG
   completion ring. */
.p-fit {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ab-accent) calc(var(--fit) * 1%), var(--ab-line3) 0);
}
.p-fit span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}
.p-fit__l { margin-top: -4px; font-size: 10px; color: var(--ab-ph); }
.p-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ab-body); }
.p-consent input { width: 16px; height: 16px; margin-top: 3px; flex: none; accent-color: var(--ab-ink); }
@media (max-width: 560px) {
  .p-job { grid-template-columns: 44px minmax(0, 1fr); }
  .p-job__side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: center; }
}

/* Timeline */
.p-tl { position: relative; margin: 6px 0 0; padding: 0; list-style: none; }
.p-tl__item { position: relative; padding: 0 0 22px 42px; }
.p-tl__item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 30px;
  bottom: 4px;
  width: 1px;
  background: var(--ab-line);
}
.p-tl__item:last-child::before { display: none; }
.p-tl__item > .p-dot { position: absolute; left: 0; top: 0; }
.p-tl__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 26px; }
.p-tl__t { margin: 0; font-size: 14px; font-weight: 600; }
.p-tl__x { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ab-body); }
.p-tl__note { margin: 8px 0 0; padding: 10px 12px; border-radius: 6px; background: var(--ab-soft); font-size: 13px; line-height: 1.5; }
.p-tl__date { margin: 6px 0 0; font: 500 11px var(--font-mono); color: var(--ab-ph); }
.is-wait .p-tl__t { color: var(--ab-body); }

.p-event { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; }
.p-event__d { padding: 8px 0; border-radius: 4px; background: var(--ab-bg); text-align: center; }
.p-event__d b { display: block; font: 400 22px/1 var(--font-display); }
.p-event__d span { display: block; margin-top: 3px; font-size: 11px; color: var(--ab-ph); }
@media (max-width: 560px) {
  .p-event { grid-template-columns: 56px minmax(0, 1fr); }
  .p-event .p-row2__side { grid-column: 2; }
}

/* Packages */
.p-scope { display: grid; gap: 8px; margin: 4px 0 16px; padding: 0; list-style: none; font-size: 14px; color: var(--ab-body); }
.p-scope li { display: flex; gap: 10px; }
.p-scope li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--ab-accent);
}
.p-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 6px; }
.p-money div { padding: 12px 14px; border-radius: 6px; background: var(--ab-bg); }
.p-money dt { font-size: 12px; color: var(--ab-mute); }
.p-money dd { margin: 4px 0 0; font: 400 22px/1.1 var(--font-display); color: var(--ab-ink); }
@media (max-width: 560px) { .p-money { grid-template-columns: minmax(0, 1fr); } }
.p-note2 { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--ab-body); }

/* Support — bubbles */
.p-chat { display: grid; gap: 14px; max-width: 680px; margin: 0; padding: 0; list-style: none; }
.p-chat__msg { display: flex; gap: 10px; align-items: flex-end; }
.p-chat__msg.is-me { justify-content: flex-end; }
.p-chat__av {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ab-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.p-chat__col { max-width: min(520px, 100%); min-width: 0; }
.p-chat__bubble {
  padding: 12px 14px;
  border-radius: 12px 12px 12px 4px;
  background: var(--ab-bg);
  color: var(--ab-ink);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.is-me .p-chat__bubble { border-radius: 12px 12px 4px 12px; background: var(--ab-ink); color: #f4f6fa; }
.p-chat__meta { margin: 4px 0 0; font-size: 11px; color: var(--ab-ph); }
.is-me .p-chat__meta { text-align: right; }
.p-chat__file {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ab-accent);
  text-decoration: underline;
}

/* FAQ */
.p-faq { border-top: 1px solid var(--ab-line); }
.p-faq details { border-bottom: 1px solid var(--ab-line); }
.p-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font: 500 16px/1.3 var(--font-display);
  color: var(--ab-ink);
}
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary:focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 2px; }
.p-faq__plus { flex: none; font: 300 18px/1 var(--font-mono); color: var(--ab-mute); transition: transform .2s; }
.p-faq details[open] .p-faq__plus { transform: rotate(45deg); }
.p-faq p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--ab-body); }

/* ── Admin (same 1a shell) ──────────────────────────────────── */
.p-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.p-subtab {
  padding: 8px 14px;
  border: 1px solid var(--ab-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ab-body);
  font: 500 13px/1.2 var(--font-body);
  text-decoration: none;
}
.p-subtab:hover { border-color: var(--ab-ink); color: var(--ab-ink); }
.p-subtab.is-on { background: var(--ab-ink); border-color: var(--ab-ink); color: #fff; }

.p-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 16px; }
.p-filters .p-field { margin: 0; flex: 1 1 160px; }
.p-filters .p-field--wide { flex: 2 1 240px; }

/* The panel never scrolls sideways (client, 2026-09-15). The table fits its
   card instead: no min-width, and long e-mails break rather than widen a column. */
.p-shell--1a .p-tablewrap { overflow: visible; margin: 0; padding: 0; border: 1px solid var(--ab-line3); border-radius: 6px; }
.p-shell--1a .p-table { font-size: 13.5px; min-width: 0; }
.p-shell--1a .p-table td { overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .p-shell--1a .p-table th:first-child,
  .p-shell--1a .p-table td:first-child { padding-left: 14px; }
}
.p-shell--1a .p-table th { background: var(--ab-bg); font: 600 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ab-mute); }
.p-shell--1a .p-table a { color: var(--ab-accent); }
.p-meter { width: 90px; height: 4px; border-radius: 2px; background: var(--ab-line3); overflow: hidden; display: inline-block; vertical-align: middle; }
.p-meter span { display: block; height: 100%; background: var(--ab-accent); }

.p-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding-bottom: 6px; }
.p-board__col { padding: 12px; border-radius: 8px; background: #e9edf4; min-width: 0; }
.p-board__head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; font: 600 13px var(--font-body); }
.p-board__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.p-bcard {
  display: block;
  padding: 12px;
  border: 1px solid var(--ab-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ab-ink);
  text-decoration: none;
}
.p-bcard:hover { border-color: var(--ab-accent); }
.p-bcard__ref { font: 500 11px var(--font-mono); color: var(--ab-mute); }
.p-bcard__who { display: block; margin: 4px 0 2px; font-size: 14px; font-weight: 600; }
.p-bcard__svc,
.p-bcard__step { display: block; font-size: 12px; line-height: 1.4; color: var(--ab-body); }
.p-bcard .p-bar { margin: 10px 0 0; }

.p-temp {
  padding: 16px 18px;
  border: 1.5px solid var(--ab-accent);
  border-radius: 8px;
  background: var(--ab-soft);
}
.p-temp code { font: 600 18px var(--font-ident); letter-spacing: .04em; color: var(--ab-ink); user-select: all; }

.p-bars { display: flex; align-items: center; gap: 8px; }
.p-bars span { display: block; height: 8px; border-radius: 2px; background: var(--ab-accent); min-width: 2px; }

.p-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1000px) { .p-grid2 { grid-template-columns: minmax(0, 1fr); } }

/* Existing blocks kept on the overview, tuned to the palette */
.p-shell--1a .p-guide__pct,
.p-shell--1a .p-score__dial b { font-family: var(--font-display); font-weight: 400; }
