/* Components composed from primitives. New components are added to the style guide first. */

/* Stat tiles */
.stat{padding:var(--sp-4) var(--sp-4);display:flex;flex-direction:column;gap:var(--sp-3);cursor:pointer;transition:border-color var(--t-fast);color:inherit;text-decoration:none}
.stat:hover{border-color:var(--border-3);text-decoration:none}
.stat .ico{width:34px;height:34px;border-radius:var(--r-md);display:grid;place-items:center;background:var(--c-bg,var(--accent-soft));color:var(--c-fg,var(--accent-text))}
.ico.red{--c-bg:var(--red-bg);--c-fg:var(--red-fg)} .ico.blue{--c-bg:var(--blue-bg);--c-fg:var(--blue-fg)} .ico.amber{--c-bg:var(--amber-bg);--c-fg:var(--amber-fg)} .ico.green{--c-bg:var(--green-bg);--c-fg:var(--green-fg)} .ico.violet{--c-bg:var(--violet-bg);--c-fg:var(--violet-fg)}
.stat .v{font-size:var(--fs-num-xl);font-weight:600;letter-spacing:var(--ls-num);line-height:var(--lh-tight)} .stat .k{font-size:var(--fs-body);color:var(--text-2)}
.trend{display:inline-flex;align-items:center;gap:var(--sp-1);font-size:var(--fs-meta);font-weight:600;padding:var(--sp-05) var(--sp-15);border-radius:var(--pill)}
.trend.up{background:var(--green-bg);color:var(--green-fg)} .trend.down{background:var(--red-bg);color:var(--red-fg)} .trend.flat{background:var(--grey-bg);color:var(--grey-fg)}

/* Bars and funnel */
.bar{height:10px;border-radius:var(--r);background:var(--surface-4);overflow:hidden} .bar i{display:block;height:100%;border-radius:var(--r);background:var(--grad-bar)}
.funnel{display:flex;flex-direction:column;gap:var(--sp-15)}
.funnel .r{display:grid;grid-template-columns:120px minmax(0,1fr) 44px 44px;align-items:center;gap:var(--sp-2);font-size:var(--fs-meta)}
.funnel .r .b{height:22px;border-radius:var(--r);background:var(--accent-soft);position:relative;overflow:hidden} .funnel .r .b i{position:absolute;inset:0;background:var(--grad-bar);opacity:.9;border-radius:var(--r)}

/* Data quality list */
.dq{display:flex;flex-direction:column;gap:var(--sp-05);padding:var(--sp-15) var(--sp-2) var(--sp-3)}
/* Today's work on the dashboard (REQ-RPT-040): one row per task or lead, the date at the end */
.worklist{display:flex;flex-direction:column;gap:var(--sp-05);padding:var(--sp-15) var(--sp-2) var(--sp-3)} .worklist>span{padding:var(--sp-2) var(--sp-3)}
.worklist a{display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border-radius:var(--r);color:var(--text);font-size:var(--fs-body);text-decoration:none}
.worklist a:hover{background:var(--surface-2)} .worklist a .main{color:var(--accent-text)} .worklist a:hover .main{text-decoration:underline} .worklist a .main .faint{color:var(--text-3)} .worklist .main{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .worklist .n{font-size:var(--fs-meta);color:var(--text-3);white-space:nowrap}
/* A folded card: the aggregates open on demand */
.fold{margin-bottom:var(--sp-3)} .fold summary{list-style:none;cursor:pointer;display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-1) var(--sp-3);padding:var(--sp-3) var(--card-x);border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface)} .fold summary::-webkit-details-marker{display:none}
.fold summary::before{content:"+";display:inline-grid;place-items:center;width:18px;height:18px;border-radius:var(--r-sm);background:var(--accent-soft);color:var(--accent-text);font-weight:600;align-self:center} .fold[open] summary::before{content:"-"} .fold[open] summary{margin-bottom:var(--sp-3)}
/* a row whose list the reader may not open is its count as plain text, .r, with no link (D53) */
.dq :is(a,.r){display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border-radius:var(--r);color:var(--text);font-size:var(--fs-body);transition:background var(--t-fast)}
.dq a{color:var(--accent-text)} .dq a:hover{background:var(--surface-2);text-decoration:none} .dq :is(a,.r) .n{margin-left:auto;font-weight:600;font-variant-numeric:tabular-nums;color:var(--text)}

/* Kanban (C14, L5): the board is the window's height and each column scrolls its own cards; a card reads top to bottom,
   who, what next, when, where from; the move control at its foot opens the board's one move form under the card, with only
   the columns that card may enter (the kanban component), and a drop presses the same button: one request */
.kanban{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(var(--kcol-min),1fr);gap:var(--sp-2);flex:1 1 auto;min-height:0;overflow-x:auto;overflow-y:hidden;padding:0}
.results:has(>.kanban){flex:1 1 auto;min-height:0}
.kcol{display:flex;flex-direction:column;min-height:0;padding:0 0 var(--sp-1);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r-md)}
.kcol-h{flex:none;display:flex;align-items:center;gap:var(--sp-2);height:var(--row-h-head);padding:0 var(--sp-2);font-size:var(--fs-body);font-weight:600}
.kcol.locked .kcol-h::after{content:"ΥΠΟΛ";font-family:var(--mono);font-size:var(--fs-caps);font-weight:600;color:var(--text-3);border:1px solid var(--border-2);padding:var(--sp-05) var(--sp-1);border-radius:var(--r-sm);margin-left:auto}
.kcards{flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:var(--sp-1);padding:0 var(--sp-1)}
.kcol.over .kcards{background:var(--accent-soft);outline:2px dashed var(--accent);outline-offset:-2px}
.kcard{flex:none;display:flex;flex-direction:column;gap:var(--sp-05);padding:var(--sp-2) var(--sp-2) var(--sp-15);background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);cursor:grab;box-shadow:none;transition:box-shadow var(--t),transform var(--t)}
.kcard:hover{border-color:var(--border-2)} .kcard:focus-within{border-color:var(--border-3)} .kcard.dragging{box-shadow:var(--shadow-xl);transform:rotate(1.5deg) scale(1.03)}
.kcard:not([draggable="true"]){cursor:default} .kcol.locked .kcard{background:var(--surface-3)}
.kcard .n{font-weight:500;font-size:var(--fs-body);line-height:var(--lh-ui)} .kcard .p{font-size:var(--fs-meta);color:var(--text-2)}
.kcard .f{display:flex;align-items:center;gap:var(--sp-2);min-height:var(--ctl-h-xs);font-size:var(--fs-meta);color:var(--text-3)}
/* the card's lines: who and who holds it; the hint the board computes; the next dated task's mark; chips only when true;
   where it came from, the quietest, with the score and the move control at the end */
.kcard .kh{display:flex;align-items:flex-start;gap:var(--sp-2)} .kcard .kh .n{flex:1 1 auto;min-width:0}
.kcard .hint{margin:0;font-size:var(--fs-meta);line-height:var(--lh-ui);color:var(--text-2)}
.kcard .chips{display:flex;flex-wrap:wrap;gap:var(--sp-1)}
/* a chip wraps whole rather than lose its last words: the consent chip's are fixed by D43 (m12e/leads) */
.kcard .chips .chip{max-width:100%;white-space:normal;height:auto;min-height:var(--chip-h-xs);padding-block:var(--sp-05);border-radius:var(--r-md);line-height:var(--lh-ui)}
.kcard .kf{display:flex;align-items:center;gap:var(--sp-15);min-height:var(--ctl-h-xs)} .kcard .kf .src{flex:1 1 auto;min-width:0;font-size:var(--fs-meta);color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .kcard .kf .chip{flex:none}
/* the move control: always there, a real button in the tab order, quiet at rest; its icon a mask, so no drawing per card */
.btn-row.kmv{flex:none;width:var(--ctl-h-xs);padding:0} .kcard .kf .kmv{margin-left:auto}
.kmv::before{content:"";width:var(--icon-sm);height:var(--icon-sm);background:currentColor;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 7h12M16 3l4 4-4 4M16 17H4M8 13l-4 4 4 4'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 7h12M16 3l4 4-4 4M16 17H4M8 13l-4 4 4 4'/></svg>") center/contain no-repeat}
.kmv[aria-expanded="true"]{background:var(--surface-3);border-color:var(--border-3);color:var(--text)}
/* the board's one move form, unfolded under the card that asked; a reason has its own form, so Enter in it sends that move */
.kfold{display:flex;flex-direction:column;gap:var(--sp-05);margin:var(--sp-1) calc(var(--sp-2) * -1) calc(var(--sp-15) * -1);padding:var(--sp-2);border-top:1px solid var(--border);background:var(--surface-2);border-radius:0 0 calc(var(--r-md) - 1px) calc(var(--r-md) - 1px)}
.kfold:focus{outline:none} .kfold-h{padding:0 var(--sp-1) var(--sp-05);font-size:var(--fs-meta);color:var(--text-3)}
.kfold form{display:flex;flex-direction:column;gap:var(--sp-05);margin:0}
.kto{display:flex;align-items:center;gap:var(--sp-2);width:100%;height:var(--ctl-h-sm);padding:0 var(--sp-2);border:1px solid transparent;border-radius:var(--r);background:transparent;font:inherit;font-weight:500;color:var(--text);text-align:left;cursor:pointer}
.kto:hover,.kto:focus-visible{background:var(--surface);border-color:var(--border-2)}
.kfold .kreason{margin-top:var(--sp-05);padding-top:var(--sp-1);border-top:1px solid var(--border)} .kfold .kreason .input{height:var(--ctl-h-sm);padding:0 var(--sp-2)}
.kfold .kcancel{align-self:flex-end;margin-top:var(--sp-05)}
.kempty{padding:var(--sp-2);color:var(--text-3);font-size:var(--fs-meta)}

/* Record sections and key-value lists. A value and its tag or chip share a line while they fit and wrap whole when they
   do not; the value's track has a definite width, so a long email breaks anywhere there and stays in its card, without
   the letter columns that rule causes in a box sized by its content (the entry after the ninth addendum, 19) */
.section{padding:var(--card-y) var(--card-x);border-top:1px solid var(--border)} .section:first-child{border-top:0}
.section h4{display:flex;align-items:center;gap:var(--sp-2);margin-bottom:var(--sp-2);color:var(--text);font-size:var(--fs-section)}
/* A heading's own action sits at its end: a link in the brand colour, smaller than the heading, never smaller than a label */
h3>a.push,h4>a.push{font-size:var(--fs-label);font-weight:500;letter-spacing:0} .card-h>a.push{white-space:nowrap;flex:none} /* the heading wraps first */
.subhead{margin:0 0 var(--sp-15);font-size:var(--fs-label);font-weight:600;color:var(--text-2)}
.kv{display:grid;grid-template-columns:var(--kv-key) minmax(0,1fr);gap:var(--sp-2) var(--sp-3);font-size:var(--fs-body);align-items:center}
.kv dt{color:var(--text-3)} .kv dd{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-05) var(--sp-2);min-width:0;overflow-wrap:anywhere} .kv dd .tag{margin-left:auto}
/* A key-value list whose labels take the width they need, so a long label holds one line (LEARN-23, the application's columns) */
.kv.keys-fit{grid-template-columns:max-content minmax(0,1fr)}

/* Timeline */
.timeline{display:flex;flex-direction:column}
.tl{display:grid;grid-template-columns:32px minmax(0,1fr);gap:0 var(--sp-3);padding:var(--sp-2) 0;position:relative}
.tl::before{content:"";position:absolute;left:15px;top:42px;bottom:-10px;width:1px;background:var(--border-2)} .tl:last-child::before{display:none}
.tl .ic{width:32px;height:32px;border-radius:var(--round);display:grid;place-items:center;background:var(--c-bg,var(--surface-3));color:var(--c-fg,var(--text-2))}
.tl .ic.sys{--c-bg:var(--amber-bg);--c-fg:var(--amber-fg)} .tl .ic.out{--c-bg:var(--blue-bg);--c-fg:var(--blue-fg)} .tl .ic.call{--c-bg:var(--teal-bg);--c-fg:var(--teal-fg)}
.tl .h{display:flex;gap:var(--sp-2);align-items:baseline;font-size:var(--fs-body)} .tl .h b{font-weight:600} .tl .h time{color:var(--text-3);font-size:var(--fs-meta);margin-left:auto}
.tl .t{color:var(--text-2);font-size:var(--fs-body);margin-top:var(--sp-05);line-height:var(--lh-body)}
/* The timeline as a sheet (C15, PC5 without its group): the date and time first, a line icon, then what happened, the
   subject, who, the task and the programme's chip, and the body up to 80 characters a line; an automatic line is one quiet
   line with its actor; a failed delivery keeps its red chip. Folding the automatic lines into one is HELD (section 8) */
.tl-log{display:block;list-style:none;margin:0;padding:0}
.tl-log .tl{display:grid;grid-template-columns:var(--tl-when) var(--icon-sm) minmax(0,1fr);gap:0 var(--sp-2);align-items:start;padding:var(--sp-2) 0;border-top:1px solid var(--border)}
.tl-log>.tl:first-child{border-top:0} .tl-log .tl::before{content:none}
.tl-when{font-size:var(--fs-meta);line-height:var(--lh-ui);color:var(--text-3)} .tl-when span{margin-left:var(--sp-1)}
.tl-ic{display:grid;place-items:center;height:calc(var(--fs-body) * var(--lh-ui));color:var(--text-3)} .tl-ic .icon{width:var(--icon-sm);height:var(--icon-sm)}
.tl-b{min-width:0} .tl-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 var(--sp-2);font-size:var(--fs-body);line-height:var(--lh-ui)}
.tl-h b{font-weight:600} .tl-h .subj{font-weight:500} .tl-h .who{font-size:var(--fs-meta);color:var(--text-3)} .tl-h .chip{align-self:center;max-width:100%}
.tl-log .t{max-width:80ch;margin-top:var(--sp-05);font-size:var(--fs-body);line-height:var(--lh-body);color:var(--text)}
.tl-log .tl.sys .tl-h{font-size:var(--fs-meta);color:var(--text-2)}
/* inside an overview's section the date stacks over the time in a narrower column, and the body takes two lines */
.pbox .tl-log .tl{grid-template-columns:var(--tl-when-sm) var(--icon-sm) minmax(0,1fr)} .pbox .tl-when span{display:block;margin-left:0}
.pbox .tl-log .t{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

/* Command palette */
.palette{width:640px;max-width:100%;background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--shadow-xl);border:1px solid var(--border);overflow:hidden}
.palette .in{display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-3) var(--sp-4);border-bottom:1px solid var(--border);font-size:var(--fs-section);color:var(--text-3)}
.palette .in span{color:var(--text)} .palette .in .caret{width:1px;height:18px;background:var(--accent);animation:blink 1s steps(2) infinite}
@keyframes blink{50%{opacity:0}}
.palette .g{padding:var(--sp-2) var(--sp-2) var(--sp-1);font-size:var(--fs-caps);font-weight:600;letter-spacing:var(--ls-caps);color:var(--text-3);text-transform:uppercase}
.palette .r{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-2) var(--sp-3);margin:0 var(--sp-2);border-radius:var(--r);font-size:var(--fs-body)} .palette .r.on{background:var(--surface-3)}
.palette .r .sub{color:var(--text-3);font-size:var(--fs-meta)} .palette .r kbd{margin-left:auto}
.palette .f{display:flex;gap:var(--sp-4);padding:var(--sp-2) var(--sp-4);border-top:1px solid var(--border);font-size:var(--fs-meta);color:var(--text-3);background:var(--surface-2)}

/* Unset settings report (REQ-SET-041) */
.unset-list{display:flex;flex-direction:column;gap:var(--sp-15)}
.unset-list .r{display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border-radius:var(--r);background:var(--amber-bg);color:var(--amber-fg);font-size:var(--fs-body)}
.unset-list .r code{color:inherit}

/* Editable column table of the source mappings screen (REQ-INT-020) */
.table.cols td{white-space:normal;vertical-align:top;height:auto;padding:var(--sp-2) var(--sp-2)}
.table.cols .input,.table.cols .select{height:var(--ctl-h-sm);font-size:var(--fs-control);padding:0 var(--sp-2);min-width:120px}
.table.cols td.stack{gap:var(--sp-15)}

/* The pipeline of a person (LI-SCR-03): stages and the next step */
.pipeline{display:flex;flex-wrap:wrap;gap:var(--sp-15);list-style:none;margin:0;padding:0} .stage{flex:1 1 120px;min-width:120px} .stage>a{display:contents}
.stage{display:grid;grid-template-columns:24px minmax(0,1fr);gap:var(--sp-05) var(--sp-2);align-items:center;padding:var(--sp-2) var(--sp-2);border:1px solid var(--border);border-radius:var(--r-md);color:var(--text-2);background:var(--surface-2);text-decoration:none}
.stage .n{grid-row:1/3;width:24px;height:24px;border-radius:var(--round);display:grid;place-items:center;background:var(--surface-3);font-size:var(--fs-caps);font-weight:600} .stage .l{font-size:var(--fs-meta);font-weight:600} .stage .s{font-size:var(--fs-meta);color:var(--text-3)}
.stage.done{color:var(--text)} .stage.done .n{background:var(--green-bg);color:var(--green-fg)} .stage.current{border-color:var(--accent);color:var(--text);background:var(--accent-soft)} .stage.current .n{background:var(--accent);color:var(--on-accent)} .stage.blocked{opacity:.7} .stage.blocked .n{background:var(--amber-bg);color:var(--amber-fg)}
.stage a{color:inherit;text-decoration:none} .stage.upcoming{color:var(--text-3)} .pipeline-card .card-b{padding-top:var(--sp-1)}
.next-steps{display:flex;flex-direction:column;gap:var(--sp-2);margin-top:var(--sp-3)} .next{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-2) var(--sp-3);border:1px solid var(--border);border-radius:var(--r-md)} .next.primary{border-color:var(--accent);background:var(--accent-soft)} .next .sub{font-size:var(--fs-meta);color:var(--text-3)} .next .btn{margin-left:auto;flex:none}
/* A dialog opened from a step keeps its footer's buttons together at its end, as every dialog does (D72) */
.next .dialog .btn{margin-left:0}
/* A step carries its form (LI-SCR-03); entries on the applications panel */
.next.inline{flex-direction:column;align-items:stretch} .next-h{display:flex;align-items:center;gap:var(--sp-3)} .next-b{margin-top:var(--sp-2);padding-top:var(--sp-2);border-top:1px dashed var(--border)}
.row.end{justify-content:flex-end} .row.top{align-items:flex-start} .field.wide{flex:1 1 100%} .help.wide{flex:1 1 100%}
.next-b .field.grow,.row-actions .field{flex:1 1 150px} .next-b .field .input,.next-b .field .select,.row-actions .field .input,.row-actions .field .select{height:var(--ctl-h);font-size:var(--fs-control)} .next-b textarea.input,.row-actions textarea.input{height:auto}
/* LEARN-15 (M12e): in the application's review a folded move reads as one line until it is opened */
.app-review .next.inline:has(> details.next-b:not([open])){flex-direction:row;flex-wrap:wrap;align-items:center}
.app-review .next.inline > details.next-b:not([open]){margin:0 0 0 auto;padding-top:0;border-top:0}
.table td.detail{min-width:var(--field-min)} .table td.detail .input,.table td.detail .select{height:var(--ctl-h);font-size:var(--fs-control)}
.entry{padding:var(--sp-3) 0;border-top:1px solid var(--border)} .entry:first-of-type{border-top:0;padding-top:0}
.log-box{margin-bottom:var(--sp-3)} .log-box summary{list-style:none;display:inline-flex;cursor:pointer} .log-box summary::-webkit-details-marker{display:none}
/* The log of a contact (C16, PC2 without the tick, which is HELD): a side column with the kind, the number to call and what
   it is about, the text at a reading measure. The logfold component puts the cursor in the text when it opens, Ctrl Enter
   saves through the form's own button, Esc closes it. While it is open the button that opened it reads as pressed, not as
   a second filled primary */
.log-fold{display:grid;grid-template-columns:var(--log-side) minmax(0,1fr);align-items:start;gap:var(--form-gap) var(--sp-6);padding:var(--card-y) var(--card-x);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r-lg)}
.log-side{display:flex;flex-direction:column;gap:var(--sp-3);min-width:0} .log-side .callee{display:flex;flex-direction:column;gap:var(--sp-05);min-width:0} .log-main{display:flex;flex-direction:column;gap:var(--sp-3);min-width:0;max-width:var(--log-measure)}
.log-main .textarea{line-height:var(--lh-body)} .log-fold .acts{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
.phone{font-size:var(--fs-section);font-weight:600;color:var(--text);white-space:nowrap;user-select:all}
/* «Και νέα εργασία» under the text (D55, m12e/log-follow-up): the tick, unticked, after a hairline; ticked, the next task's
   three fields show, by CSS alone, and the same save writes them with the log */
.follow{display:flex;flex-direction:column;gap:var(--sp-2);padding-top:var(--sp-3);border-top:1px solid var(--border)}
.follow-fields{display:none;flex-wrap:wrap;gap:var(--form-gap)} .follow:has(.check input:checked) .follow-fields{display:flex}
.follow-fields .field{flex:1 1 var(--ctl-date-min);min-width:0} .follow-fields .field.grow{flex:2 1 var(--field-min)}
.btn-primary[aria-expanded="true"]{background:var(--accent-soft);color:var(--accent-text);border-color:var(--accent)}
@media (max-width:1180px){.log-fold{grid-template-columns:minmax(0,1fr)} .log-side{flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:var(--sp-2) var(--sp-6)}}
.table td.act .btn.always{opacity:1} .grow{flex:1;min-width:0} .tabs a.tab{text-decoration:none}

/* The import wizard steps (REQ-IMP-010) */
.steps{display:flex;flex-wrap:wrap;gap:var(--sp-15);margin-bottom:var(--sp-3)} .step{display:inline-flex;align-items:center;gap:var(--sp-15);padding:var(--sp-1) var(--sp-2);border:1px solid var(--border);border-radius:var(--pill);font-size:var(--fs-meta);color:var(--text-2)} .step b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:var(--round);background:var(--surface-3);font-size:var(--fs-caps)}
.step.done{color:var(--green-fg);border-color:var(--green-dot)} .step.done b{background:var(--green-bg);color:var(--green-fg)} .step.current{color:var(--accent);border-color:var(--accent);font-weight:600} .step.current b{background:var(--accent);color:var(--on-accent)}
.provenance{font-size:var(--fs-meta)} .provenance code{font-size:var(--fs-caps)}

/* Report panels on the dashboard (REQ-RPT-043) */
.panel{border:1px solid var(--border);border-radius:var(--r-md);padding:var(--sp-3) var(--sp-3);background:var(--surface-2)} .panel h4{margin:0;font-size:var(--fs-section)} .panel .help{margin:var(--sp-15) 0 var(--sp-2)}
.table.compact td,.table.compact th{height:var(--row-h-compact);padding:var(--sp-15) var(--sp-2);font-size:var(--fs-table)} .table.compact th{font-size:var(--fs-caps)}

/* The global search box is a form; the input inherits the pill (REQ-RPT-001) */
.search input{flex:1;min-width:0;background:transparent;border:0;color:inherit;font:inherit;outline:none} .search input::placeholder{color:var(--text-3)}
/* The walk of the person card (C6, S11, PC1), in the bar's crumb slot: the way back to the list as it was filtered, where
   one is in it, and the people either side, each a plain link, so moving on is always a click. First row: the previous
   step off; last row: «Τέλος λίστας»; out of the filter: «εκτός λίστας»; with no list: «‹ Πρόσωπα» alone */
.walk{display:flex;align-items:center;gap:var(--sp-3);flex:0 1 auto;min-width:0;margin-right:var(--sp-3)}
.walk .icon{width:var(--icon-sm);height:var(--icon-sm);flex:none}
.walk-back{display:inline-flex;align-items:center;gap:var(--sp-05);color:var(--accent-text);font-weight:500;white-space:nowrap}
.walk-pos{padding-left:var(--sp-3);border-left:1px solid var(--border-2);font-size:var(--fs-meta);color:var(--text-3);white-space:nowrap}
.walk-step{display:inline-flex;min-width:0} .walk-step .btn{height:var(--ctl-h-sm)}
.walk-step .walk-prev{padding-inline:var(--sp-15);border-start-end-radius:0;border-end-end-radius:0} .walk-step .walk-prev:last-child{border-radius:var(--r)}
.walk-step .walk-next{min-width:0;max-width:var(--walk-next-max);border-left:0;border-start-start-radius:0;border-end-start-radius:0}
.walk-step .walk-prev[aria-disabled="true"]{color:var(--text-3);pointer-events:none;background:var(--surface-2)}
.walk-next span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0} .walk-end{font-size:var(--fs-meta);color:var(--text-3);white-space:nowrap}
/* The hits of a search (C17, frame P4): one line each, the whole line the link, so Tab and Enter walk the results */
.hits{list-style:none;margin:0;padding:var(--sp-1) 0} .hits li{margin:0}
.hits a{display:flex;align-items:center;gap:var(--sp-2);min-height:var(--row-h);padding:var(--sp-1) var(--card-x);color:var(--text);text-decoration:none;border-top:1px solid var(--border)}
.hits li:first-child a{border-top:0} .hits a:hover{background:var(--surface-2);text-decoration:none} .hits a:focus-visible{outline:none;box-shadow:var(--focus-inset);background:var(--surface-2)}
.hits .who{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;color:var(--accent-text)}
.hits .meta{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-meta);color:var(--text-3)} .hits .chip{flex:none}
/* a group at its limit says so in words, «τα πρώτα 20 αποτελέσματα» (D57), where a bare 20 read as a total (SEARCH-5) */
.card-h .capped{margin-left:auto;font-size:var(--fs-meta);color:var(--text-3)}
/* The results of a list (REQ-RPT-012, REQ-RPT-020): one bar over the rows, the count and the filters in force on
   the left, the saved views and the outputs on the right; the bulk form opens under the bar, the bar stays in view */
.results{display:flex;flex-direction:column;gap:var(--sp-3)}
.list-head{display:flex;flex-direction:column;gap:var(--sp-2)} .list-head.sticky{position:sticky;top:calc(var(--page-top) * -1);z-index:5;background:var(--surface);padding:var(--sp-2) 0;margin:calc(var(--sp-2) * -1) 0}
.listbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);min-height:var(--ctl-h-sm)} .list-count{font-size:var(--fs-body);font-weight:600;color:var(--text);margin-right:var(--sp-1);font-variant-numeric:tabular-nums}
.listbar-r{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-4);margin-left:auto} .list-actions{display:flex;align-items:center;gap:var(--sp-15)}
.bulkbar{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:var(--sp-2) var(--sp-3);align-items:end;padding:var(--sp-3) var(--sp-3);border:1px dashed var(--border-2);border-radius:var(--r-md);background:var(--surface-2)} .bulkbar .input,.bulkbar .select{height:var(--ctl-h);font-size:var(--fs-control)} .bulkbar .actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:var(--sp-3);align-items:center}
.views{display:flex;flex-wrap:wrap;gap:var(--sp-15);align-items:center}
/* The list filter bar (LI-SCR-02): search first, the quick scope, a fold for the rarer
   filters, and the filters in force as removable chips above the rows */
.filters .toolbar .search{width:auto;flex:1 1 240px;height:var(--ctl-h);cursor:text}
.filters .toolbar .search .input{height:auto;padding:0;border:0;box-shadow:none;background:transparent}
.more summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:var(--sp-15);margin:var(--sp-2) 0 0;font-size:var(--fs-meta);color:var(--accent-text)} .more summary::-webkit-details-marker{display:none}
.more summary::before{content:"+";display:inline-grid;place-items:center;width:16px;height:16px;border-radius:var(--r-sm);background:var(--accent-soft);font-weight:600} .more[open] summary::before{content:"-"}
.more-b{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--sp-2) var(--sp-3);margin-top:var(--sp-2);padding:var(--sp-3) var(--sp-3);border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface-2)}
.filter{text-decoration:none} a.filter:hover{border-color:var(--accent);color:var(--text)}
/* A filter bar of one row (C13, L6): «Περισσότερα φίλτρα» a button in it whose fold takes its own row only when open; a
   select with a value in force reads as set; a select as wide as its words, where the browser can (field-sizing, Chrome) */
.filters .toolbar .more{order:3;flex:none} .filters .toolbar .more[open]{order:9;flex:1 0 100%}
.filters .toolbar .more summary{margin:0;height:var(--ctl-h);padding:0 var(--sp-3);border:1px solid var(--border-2);border-radius:var(--r);background:var(--surface);color:var(--text);font-size:var(--fs-body);font-weight:500;white-space:nowrap}
.filters .toolbar .more summary::before{content:none} .filters .toolbar:has(.more) .seg{order:4} .filters .toolbar:has(.more) .seg.push{order:5}
/* with the fold in its row, the name box gives way first, so the bar is one row at 1440 (m12e/leads, L6) */
.filters .toolbar:has(.more) .search{flex-basis:var(--cell-wrap-min)}
.toolbar .select{flex:0 1 auto;field-sizing:content;max-width:var(--col-name)}
.toolbar .select:has(option:checked:not([value=""])){border-color:var(--text-3);font-weight:500;background-color:var(--surface-2)}
/* The bulk bar names its count first, then only what the chosen action needs (the bulk component's getters, LEADS-12) */
.bulkbar .count-l{align-self:center;font-size:var(--fs-body);font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}

/* The list sheet (C13, S8, S18): a list whose results carry fill is the window's height; what sits above the rows keeps its
   own height and the rows scroll in their box under a head that stays, the pager always in view. A list wider than any
   window is a freeze sheet as well: the tick and the name hold at the left, and every other cell keeps to one line, a cell
   marked wrap or main apart. In a sheet a value stops at --cell-max with an ellipsis, whole on the card and in the export;
   the action column holds at the right of the box. Money and scoring tables are never a sheet: a scroller clips their
   popovers. The board (C14) is bound to the window the same way */
.pane:has(:is(.fill,.kanban)){height:calc(100vh - var(--frame-gap) * 2);min-height:0}
.content:has(:is(.fill,.kanban)){flex:1 1 auto;min-height:0}
.fill{flex:0 1 auto;min-height:0;display:flex;flex-direction:column}
.fill>.card,.card.fill{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;overflow:hidden}
.fill .card-b.flush{flex:0 1 auto;min-height:0;overflow:auto;scroll-padding-top:var(--row-h-head)}
.fill .card-b.flush:has(tbody tr:nth-child(5)){min-height:var(--list-min)}
.fill .pager{flex:none} .fill .list-head.sticky{position:static;margin:0;padding:0}
.fill .table th{position:sticky;top:0;z-index:2;background:var(--surface-3)}
.content:has(.fill)>:not(.fill),.fill:not(.card)>:not(.card),.content:has(.kanban)>:not(.results),.results:has(>.kanban)>:not(.kanban){flex:none}
.fill .table td:not(.act,.wrap,.main,.fz-last){max-width:var(--cell-max);overflow:hidden;text-overflow:ellipsis}
.fill .table td.act,.fill .table th.act-h{position:sticky;right:0;background:var(--surface);box-shadow:inset 1px 0 0 var(--border)} .fill .table th.act-h{z-index:3;background:var(--surface-3)}
/* a frozen table outside a sheet, one of several on a page or in a settings tab, holds its action column at the right of
   its own box too, so a row's button is whole while the box scrolls sideways (D57, D58); its head keeps the table's own */
.table.freeze td.act,.table.freeze th.act-h{position:sticky;right:0;box-shadow:inset 1px 0 0 var(--border)} .table.freeze td.act{background:var(--surface)} .table.freeze th.act-h{z-index:3}
.table.freeze :is(td,th).fz{position:sticky;z-index:1;background:var(--surface)} .table.freeze th.fz{z-index:3;background:var(--surface-3)}
.table.freeze .fz1{left:0} .table.freeze .fz2{left:var(--freeze-check)} .table.freeze .fz-last{box-shadow:inset -1px 0 0 var(--border)}
.table.freeze tbody tr:hover :is(td.fz,td.act){background:var(--surface-2)}
.table.freeze tr:is(.sel,:target) td.fz{background:linear-gradient(var(--accent-soft),var(--accent-soft)) var(--surface)}
.table.freeze :is(th,td).check-cell{width:var(--freeze-check);min-width:var(--freeze-check);padding-left:var(--sp-3)}
.table.freeze td:not(.fz-last,.wrap,.main){white-space:nowrap} .table.freeze td.fz-last{white-space:normal;min-width:var(--cell-name-min);max-width:var(--col-name)}
@media (max-width:1180px){.fill .table:not(.freeze) td:not(.date,.num,.act,.check-cell,.who):not(:has(.chip)){white-space:normal;min-width:var(--cell-wrap-narrow)}}
/* The tasks list (L3): the task wraps from --cell-wide to --cell-wide-max, from a name's width under 1180, and the sheet
   scrolls sideways under its held button; each row its own body, so a task with no person carries its fold, and the line
   under a row holds; its states sit in the fold, since a menu would open past the sheet's edge */
.table.task-list td.main{min-width:var(--cell-wide);max-width:var(--cell-wide-max)} .table.task-list>tbody:not(:last-child)>tr:last-child>td{border-bottom:1px solid var(--border)}
@media (max-width:1180px){.fill .table.task-list:not(.freeze) td.main{min-width:var(--cell-name-min)}}
@media (max-width:900px){.pane:has(:is(.fill,.kanban)){height:100vh}}
.popover{position:relative} .popover summary{list-style:none;cursor:pointer} .popover summary::-webkit-details-marker{display:none}
.popover-b{position:absolute;right:0;top:calc(100% + 6px);z-index:20;display:flex;flex-direction:column;gap:var(--sp-2);min-width:280px;padding:var(--sp-3);border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);box-shadow:var(--shadow-lg)}

/* The composer preview is the exact message; the public page stands alone (REQ-SEC-047) */
.mail-preview{white-space:pre-wrap;font:inherit;font-size:var(--fs-body);line-height:var(--lh-body);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--r-md);padding:var(--sp-3);margin:0}
.public{min-height:100vh;display:grid;place-items:center;padding:var(--sp-6);background:var(--bg)} .public-card{width:min(520px,100%)} .public-card h1{font-size:var(--fs-page);margin:0 0 var(--sp-2)} .public-card p{color:var(--text-2);margin:0 0 var(--sp-3)}
.field.grow{flex:1 1 240px} .table td.cal-d{width:110px;white-space:nowrap}
/* A calendar row (C17, S20): the date in its own column, then the kind and the time, then the name, two lines in all and
   an ellipsis on the name alone; the kind in words, no chip */
.table.cal{table-layout:fixed} .table.cal td{height:auto;padding-block:var(--sp-15);vertical-align:top;white-space:normal} .table.cal td.cal-d{width:calc(var(--sp-10) * 2 + var(--sp-2));white-space:nowrap;color:var(--text-2)}
.table.cal .cal-k{display:block;font-size:var(--fs-meta);color:var(--text-3)} .table.cal .cal-n{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The rules of a computed result (MASTERS-6, the waiver's proposal): a rule a row, wrapping inside its card, never past
   it, its result at the row's end */
.table.rules{table-layout:fixed} .table.rules td{height:auto;padding:var(--sp-15) 0;vertical-align:top;white-space:normal} .table.rules td.res{width:var(--act-w-sm);padding-left:var(--sp-2);text-align:right}

/* Row actions folded into a details element, keyboard reachable without script */
.menu-d{text-align:left} .menu-d summary{list-style:none;cursor:pointer;display:inline-flex} .menu-d summary::-webkit-details-marker{display:none}
.menu-d[open] summary{background:var(--surface-3)} .menu-d .row.wrap{gap:var(--sp-15)} .menu-d .input,.menu-d .select{width:auto;flex:0 1 150px;min-width:110px;height:var(--ctl-h-sm);font-size:var(--fs-control)}
.table tr.row-actions td{padding:0 var(--sp-3) var(--sp-2);border-top:0} .table tr.row-actions .btn{opacity:1}
.dialog-f.wrap .input,.dialog-f.wrap .select{width:auto;flex:1 1 160px;min-width:120px}

/* The original inbound message, text only (REQ-INT-135) */
.mail{white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--mono);font-size:var(--fs-meta);line-height:var(--lh-body);margin:0;color:var(--text-2);max-height:520px;overflow:auto}

/* Side-by-side identity comparison (REQ-IDR-050) */
.cmp{min-width:100%;border-collapse:separate;border-spacing:var(--sp-2) 0;font-size:var(--fs-body);padding:0 var(--sp-1) var(--sp-3)}
.cmp th,.cmp td{min-width:var(--cell-wrap-narrow)} .cmp th:first-child,.cmp td.f{min-width:120px;width:130px} /* four records fit at 1024 px, none a sliver (QUEUE-2) */
.cmp th{text-align:left;font-weight:500;color:var(--text-3);font-size:var(--fs-meta);padding:var(--sp-2) var(--sp-3);border-bottom:1px solid var(--border);vertical-align:top;background:var(--surface)}
.cmp th .n{display:block;font-weight:600;color:var(--text);font-size:var(--fs-body);margin-bottom:var(--sp-05);overflow-wrap:anywhere}
.cmp td{padding:var(--sp-2) var(--sp-3);border-bottom:1px solid var(--border);vertical-align:top;overflow-wrap:anywhere;line-height:var(--lh-body)}
.cmp td.f{color:var(--text-3)}
.cmp td.same{background:var(--green-bg);color:var(--green-fg)}
.cmp td.diff{background:var(--amber-bg);color:var(--amber-fg)}
.cmp td.empty{color:var(--text-3)}
/* Each column is its own box: the incoming record tinted, every candidate framed */
.cmp th:not(:first-child),.cmp td:not(.f){border-left:1px solid var(--border-2);border-right:1px solid var(--border-2)}
.cmp th:not(:first-child){border-top:1px solid var(--border-2);border-radius:var(--r-md) var(--r-md) 0 0;background:var(--surface-2)}
.cmp th:nth-child(2){background:var(--accent-soft)} .cmp td:nth-child(2):not(.same):not(.diff){background:var(--surface-2)}
.cmp tr:last-child td{border-bottom:0} .cmp tr:last-child td:not(.f){border-bottom:1px solid var(--border-2);border-radius:0 0 var(--r-md) var(--r-md)}
.cmp .pick{display:flex;gap:var(--sp-2);align-items:flex-start;cursor:pointer;margin:0} .cmp .pick input{margin-top:var(--sp-05);flex:none}
/* Different people who shared an email or a mobile: who keeps it, and the other's new value (REQ-IDR-014) */
form.keyfix{border-top:1px solid var(--border)} form.keyfix>h4{margin-bottom:var(--sp-1)} .table.keyfix td{height:auto;padding:var(--sp-15) var(--sp-2)} .table.keyfix td .input{min-width:var(--field-min)}
/* The merge screen (REQ-IDR-040): the record that stays is a card that lights when chosen; in the field table the chosen value's cell lights, the other reads secondary */
.step-n{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:var(--sp-2);border-radius:var(--round);background:var(--accent-soft);color:var(--accent-text);font-size:var(--fs-meta);font-weight:600;vertical-align:1px}
.merge-pick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-3)}
.merge-rec{display:flex;gap:var(--sp-2);align-items:flex-start;padding:var(--sp-3) var(--sp-3);border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);cursor:pointer} .merge-rec:hover{border-color:var(--accent)} .merge-rec:has(input:checked){border-color:var(--accent);background:var(--accent-soft)} .merge-rec input{margin-top:var(--sp-1);flex:none} .merge-rec-b{display:flex;flex-direction:column;gap:var(--sp-1);min-width:0}
.cmp.merge td:has(.pick input:checked){background:var(--accent-soft);color:var(--text)} .cmp.merge td:has(.pick input:checked) .pick span{font-weight:600} .cmp.merge td:has(.pick input:not(:checked)) .pick span{color:var(--text-3)}
@media (max-width:900px){.merge-pick{grid-template-columns:minmax(0,1fr)}}

/* The person card (LI-SCR-03): a capped page, a narrower right column with kv sections */
.person-page{display:flex;flex-direction:column;gap:var(--sp-4);width:100%;max-width:1480px}
/* The financial card (LI-SCR-09): the strip of amounts, compact money tables, popover forms, a settings grid */
.money-head{padding:var(--card-y) var(--card-x)} .money-head h4{color:var(--text);font-size:var(--fs-section)}
.money-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface-2)}
.card>.money-strip:first-child{border-top:0;border-radius:var(--r-lg) var(--r-lg) 0 0}
.ms{padding:var(--sp-3) var(--card-x);min-width:0;border-left:1px solid var(--border)} .ms:first-child{border-left:0}
.ms .k{display:flex;align-items:center;gap:var(--sp-15);font-size:var(--fs-meta);color:var(--text-3)}
.ms .v{margin-top:var(--sp-1);font-size:var(--fs-num-lg);font-weight:600;letter-spacing:var(--ls-num);line-height:var(--lh-tight);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms .v.due{color:var(--red-fg)} .ms .v.ok{color:var(--green-fg)} .ms .s{margin-top:var(--sp-1);font-size:var(--fs-meta);color:var(--text-3);display:flex;align-items:center;gap:var(--sp-15);flex-wrap:wrap}
progress.bar{display:block;width:100%;height:6px;margin-top:var(--sp-2);border:0;appearance:none;-webkit-appearance:none;background:var(--surface-4);border-radius:var(--r);overflow:hidden;color:var(--accent)}
progress.bar::-webkit-progress-bar{background:var(--surface-4);border-radius:var(--r)} progress.bar::-webkit-progress-value{background:var(--grad-bar);border-radius:var(--r)} progress.bar::-moz-progress-bar{background:var(--grad-bar);border-radius:var(--r)}
.table.money th,.table.money td{padding:var(--cell-y) var(--cell-x);height:var(--row-h)} .table.money th:first-child,.table.money td:first-child{padding-left:var(--sp-1)} .table.money th.n,.table.money td.n{width:36px}
.table.money th.act-cell,.table.money td.act-cell{width:1%;text-align:right;white-space:nowrap;padding-right:0} .table.money tr.faint td{color:var(--text-3)}
.rowact{display:inline-block;margin-left:var(--sp-1);text-align:left} .table.money td.act-cell .btn{opacity:1}
/* The correction's note (FF6): under the correcting payment, across the table, so the amount's cell holds one line */
.table.money tr:has(+ tr.money-note) td{border-bottom:0} .table.money tr.money-note td{height:auto;padding-top:0;font-size:var(--fs-meta);color:var(--text-3);white-space:normal}
/* under the first breakpoint the money table's text cells wrap and amounts and dates hold their line; no scroller, it would clip
   the popover. Its cells take the next step down of the space scale, since the capitals of its heads alone were wider than
   the card on the enrollment's own page at 1024 px and «Διόρθωση» fell past its edge (LEARN-3) */
@media (max-width:1180px){.table.money{--cell-x:var(--sp-2)} .table.money td:not(.num):not(.act-cell){white-space:normal}}
/* and its heads of two words take two lines there, so the payments, «αντικαταστάθηκε» in their «Κάλυψε», hold in the card (FF6) */
@media (max-width:1180px){.table.money th:not(.num){white-space:normal}}
.popover-b.form-pop{flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:var(--sp-2);min-width:400px;max-width:480px;white-space:normal}
.form-pop .field{flex:1 1 120px;min-width:0} .form-pop .field.narrow{flex:0 0 64px} .form-pop .field.grow{flex:1 1 100%} .form-pop .wide{flex-basis:100%}
.form-pop .input,.form-pop .select{height:var(--ctl-h);font-size:var(--fs-control);width:100%} .form-pop .btn{height:var(--ctl-h)}
/* A row's popover laid two by two (FF6, LI-SCR-09): a form with a foot, .pop-f, is a grid of two tracks; the line that
   names the row, «Τρόπος» and a reason go across (.wide, .full, .grow), a date's words sit under its input, the foot holds
   «Άκυρο» and the act at the right and a removal at the left. The act stays the first submit, so Enter in a field presses
   it. A form-pop with no foot, the Master student's twin among them, keeps the row above */
.popover-b.form-pop:has(> .pop-f){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:var(--form-gap);width:var(--pop-w);min-width:0;max-width:calc(100vw - var(--sp-8))}
.form-pop:has(> .pop-f) > :is(.wide,.full,.field.grow,.pop-f){grid-column:1 / -1;width:auto}
.form-pop:has(> .pop-f) .field:has(> .date-words:not(:empty)){display:flex;align-items:stretch;grid-column:auto}
.pop-f{display:flex;justify-content:flex-end;align-items:center;gap:var(--sp-2);padding-top:var(--sp-3);border-top:1px solid var(--border)} .pop-f .btn-danger{order:-1;margin-right:auto}
.form-line{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--sp-2) var(--sp-3)}
.form-line .field{flex:0 1 auto;min-width:0} .form-line .field.narrow{flex:0 0 130px} .form-line .field.grow{flex:1 1 220px} .form-line .wide{flex-basis:100%}
.form-line .input,.form-line .select{height:var(--ctl-h);font-size:var(--fs-control);width:100%} .form-line textarea.input{height:auto;min-height:56px} .form-line .check{height:var(--ctl-h)} .form-line .btn{height:var(--ctl-h);flex:none}
/* A row that lines its fields up at their foot (.form-line, .form-pop, .bulkbar): a date field takes its own width there,
   and its words (C10) sit beside its input, not under it, so the input keeps the line of the others; two tracks of the bulk
   bar's grid hold them */
:is(.form-line,.form-pop) .field:has(> input[type="date"]){flex:0 0 auto}
:is(.form-line,.form-pop,.bulkbar) .field:has(> .date-words:not(:empty)){display:grid;grid-template-columns:auto auto;align-items:center;column-gap:var(--sp-2);grid-column:span 2}
:is(.form-line,.form-pop,.bulkbar) .field:has(> .date-words:not(:empty)) > .label{grid-column:1 / -1}
.inset{padding:var(--sp-3) var(--sp-3);border:1px dashed var(--border-2);border-radius:var(--r-md);background:var(--surface-2)}
/* The settings of an enrollment: small boxes of one line each, a title row and what is saved; the fields open with «Αλλαγή» or with the tick */
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-2);align-items:stretch}
.settings-grid .box{padding:var(--sp-2) var(--sp-3);border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface-2);min-width:0}
.settings-grid .box.form-line{align-content:flex-start;row-gap:var(--sp-2)}
.settings-grid .box-h{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1) var(--sp-2);min-height:var(--ctl-h-sm);font-size:var(--fs-body);font-weight:600;color:var(--text)} .settings-grid .box-h .push{margin-left:auto} .settings-grid .box-h .help{font-weight:400}
.settings-grid .box-h .check{height:auto;font-size:var(--fs-control);font-weight:600} .settings-grid .box-h .check:has(input:disabled){cursor:default;color:var(--text-2)}
.settings-grid .box-v{font-size:var(--fs-body);line-height:var(--lh-body);color:var(--text);overflow-wrap:anywhere} .settings-grid .box-v b{font-weight:600;font-variant-numeric:tabular-nums}
.settings-grid .box-act{margin-top:var(--sp-2)} .settings-grid .box-h .btn{height:var(--ctl-h-sm)}
.settings-grid details.box summary{display:flex;align-items:center;min-height:var(--ctl-h-sm);cursor:pointer;list-style:none;font-size:var(--fs-body);font-weight:600;color:var(--red-fg)} .settings-grid details.box summary::-webkit-details-marker{display:none} .settings-grid details.box summary::before{content:"+";width:1em;color:var(--text-3)} .settings-grid details.box[open] summary::before{content:"-"}
.settings-grid .box.danger[open]{border-color:var(--red-dot)}
/* the cancellation frames itself only when opened, as the thirtieth addendum asks (LEARN-14) */
.settings-grid .box.danger:not([open]){border-color:transparent;background:none}
/* why a box's control is off, under its title, in the weight of its help (LEARN-18, the exemption with payments) */
.settings-grid .box-h .why{flex-basis:100%;font-weight:400}
/* The RF code of the enrollment: set once, read as it is printed (REQ-DM-134); the application's discount answers beside the discount */
.rf-line{padding-top:var(--sp-3);padding-bottom:var(--sp-3)} .rf-line .rf{font-family:var(--mono);font-size:var(--fs-body);letter-spacing:var(--ls-caps);color:var(--text)} .rf-line .alert{margin:0} .rf-line .lockset .input{width:auto;min-width:240px}
.settings-grid .box.proposal .kv{grid-template-columns:max-content minmax(0,1fr);gap:var(--sp-1) var(--sp-3);margin-top:var(--sp-1)}
@media (max-width:1180px){.settings-grid{grid-template-columns:minmax(0,1fr)} .money-strip{grid-template-columns:repeat(2,minmax(0,1fr))} .ms:nth-child(3){border-left:0} .ms:nth-child(n+3){border-top:1px solid var(--border)}}
.page-h .facts{gap:var(--sp-15) var(--sp-3)} .kv.cols{grid-template-columns:var(--kv-key) minmax(0,1fr) var(--kv-key) minmax(0,1fr);column-gap:var(--sp-6)} @media (max-width:900px){.kv.cols{grid-template-columns:var(--kv-key) minmax(0,1fr)}}
/* Nothing leaves its box: secondary text in a table cell wraps instead of widening the table */
.table td .sub{white-space:normal}
/* The two units as identity marks: a tag in the crumb, a chip on the card, never a control colour */
.unit-tag{display:inline-flex;align-items:center;height:18px;padding:0 var(--sp-15);border-radius:var(--r-sm);font-size:var(--fs-caps);font-weight:600;letter-spacing:var(--ls-caps);vertical-align:middle}
.unit-tag.lg{height:24px;padding:0 var(--sp-2);font-size:var(--fs-meta);font-weight:600;letter-spacing:0;margin-left:var(--sp-15)}
.unit-tag.unit-li,.chip.unit-li{background:var(--li-bg);color:var(--li-fg);border-color:transparent} .unit-tag.unit-pm,.chip.unit-pm{background:var(--pm-bg);color:var(--pm-fg);border-color:transparent}
/* The settings screen (LI-SCR-14): tabs, one form per group, every control in place, connector blocks */
.card.settings{max-width:1160px} .card.settings>.tabs{flex-wrap:wrap} /* the settings tabs wrap rather than run off; the person card's bar is untouched */
.sgroup-top{display:flex;align-items:center;gap:var(--sp-3);margin-bottom:var(--sp-05)} .sgroup-top h4{margin-bottom:0} .sgroup-top .help{flex:1 1 auto}
.sgroup-h{font-size:var(--fs-label);font-weight:600;color:var(--text-2)} .sgroup.inner{margin-top:var(--sp-3);padding-top:var(--sp-3);border-top:1px dashed var(--border)}
details.sgroup>summary{cursor:pointer;list-style:none;font-size:var(--fs-label);font-weight:600;color:var(--text-2)} details.sgroup>summary::-webkit-details-marker{display:none} details.sgroup>summary::before{content:"+ ";color:var(--text-3)} details.sgroup[open]>summary::before{content:"- "}
details.sgroup>form{margin-top:var(--sp-2)}
.srow{display:grid;grid-template-columns:minmax(0,var(--srow-key)) minmax(0,1fr);gap:var(--sp-1) var(--sp-6);align-items:start;padding:var(--sp-3) 0} .srow+.srow{border-top:1px solid var(--border)}
.srow-k{min-width:0} .srow .l{display:block;font-size:var(--fs-body);font-weight:500;line-height:var(--lh-ui)} .srow .d{font-size:var(--fs-meta);color:var(--text-3);margin-top:var(--sp-05);line-height:var(--lh-body)} .srow .k{display:inline;margin-left:var(--sp-1);color:var(--text-3)}
.srow-c{min-width:0} .srow-c .input,.srow-c .select{height:var(--ctl-h)} .srow-c .w-sm{width:160px} .srow-c .w-md{width:300px;max-width:100%} .srow-c .w-lg{width:100%;max-width:560px} .srow-c textarea.input{height:auto;min-height:62px;line-height:var(--lh-body)}
.srow-c .checks,fieldset.checks{display:flex;flex-wrap:wrap;gap:var(--sp-15) var(--sp-4);padding:var(--sp-15) 0} fieldset.checks{border:0;margin:0;padding:0} fieldset.checks legend{width:100%;padding:0}
.srow-v{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1) var(--sp-15);font-size:var(--fs-body);min-height:var(--ctl-h)} .srow-v .val{font-weight:500}
.srow-m{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1) var(--sp-2);margin-top:var(--sp-15);font-size:var(--fs-meta);color:var(--text-3)} .srow-m .btn{height:var(--ctl-h-xs);padding:0 var(--sp-2);font-size:var(--fs-btn)}
.sgroup-foot{display:grid;grid-template-columns:minmax(0,var(--srow-key)) minmax(0,1fr);gap:0 var(--sp-6);padding-top:var(--sp-3);margin-top:var(--sp-05);border-top:1px solid var(--border)} .sgroup-foot>*{grid-column:2;justify-self:start} .sgroup-foot .help{margin-left:var(--sp-3);align-self:center}
.table-wrap{overflow-x:auto} .mt-6{margin-top:var(--sp-15)}
.connector .kv.cols{grid-template-columns:150px minmax(0,1fr) 150px minmax(0,1fr)}
@media (max-width:900px){.srow,.sgroup-foot{grid-template-columns:minmax(0,1fr)} .sgroup-foot>*{grid-column:1} .srow-c .w-md{width:100%}}
.mt-12{margin-top:var(--sp-3)}
/* A list of values as chips: remove with the x, add with the field, one save writes the list */
.listbox{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-15);padding:var(--sp-15);border:1px solid var(--border-2);border-radius:var(--r);background:var(--surface);min-height:var(--ctl-h-tab)}
.listbox .chip{height:var(--ctl-h-xs);padding:0 var(--sp-1) 0 var(--sp-2);gap:var(--sp-1);background:var(--surface-3);border:0;color:var(--text)} .listbox .chip .x{display:inline-grid;place-items:center;width:20px;height:20px;border:0;border-radius:var(--round);background:transparent;color:var(--text-3);cursor:pointer} .listbox .chip .x:hover{background:var(--surface-4);color:var(--text)} .listbox .chip .x .icon{width:12px;height:12px}
.listbox .add{display:inline-flex;align-items:center;gap:var(--sp-15);flex:1 1 200px} .listbox .add .input{height:var(--ctl-h-sm);flex:1 1 120px;min-width:0;border-color:transparent;background:var(--surface-2)} .listbox .add .btn{height:var(--ctl-h-sm)}
/* The users area: a list and a page per user */
.roles{display:flex;flex-wrap:wrap;gap:var(--sp-2)} .roles .chip{height:var(--ctl-h-sm);padding-right:var(--sp-1);gap:var(--sp-15)} .roles .chip form{display:contents} .roles .chip .x{display:inline-grid;place-items:center;width:20px;height:20px;border:0;border-radius:var(--round);background:transparent;color:inherit;opacity:.7;cursor:pointer} .roles .chip .x:hover{opacity:1;background:var(--overlay-hover)} .roles .chip .x .icon{width:12px;height:12px}
.user-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0} .user-grid>.section{border-top:0} .user-grid>.section+.section{border-left:1px solid var(--border)}
@media (max-width:900px){.user-grid{grid-template-columns:minmax(0,1fr)} .user-grid>.section+.section{border-left:0;border-top:1px solid var(--border)}}
/* The dashboard (LI-SCR-01): compact tiles with context, three work columns, the funnel and the sources as bars */
.unit-h{margin-top:var(--sp-2)} .unit-h .unit-tag.lg{margin-left:0;height:28px;font-size:var(--fs-section);padding:0 var(--sp-3)}
/* The ranking's sheet header (M12e P1, MASTERS-19): a frozen table a solid edge and its lock, a draft a dashed edge and
   «Σχέδιο Σ.Ε.» in a dashed outline; one line of facts, one plain sentence, the folds at the left and the exports at the
   right. Its figures one line (S17, MASTERS-14, 18): the number in ink before its words, a link only where a filter exists,
   a warning amber; since D60 the applications left out after their count, each reason with its own */
.card.sheet.draft{border-style:dashed;border-color:var(--border-3)} .chip.outline.dashed{border-style:dashed}
.chip .icon,.tab .icon{width:var(--icon-sm);height:var(--icon-sm)} .tab .icon{margin-right:var(--sp-1);vertical-align:-2px}
.sheet-h{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--sp-2) var(--sp-3)} .sheet-h h2{flex:1 1 var(--col-name);min-width:0;margin:0}
.sheet .facts{display:flex;flex-wrap:wrap;gap:var(--sp-05) var(--sp-3);margin:var(--sp-1) 0 0;font-size:var(--fs-meta);color:var(--text-3)}
.sheet-note{margin:var(--sp-2) 0 0;color:var(--text-2)}
.sheet-acts{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--sp-2) var(--sp-3);margin-top:var(--sp-1)}
.figs-b{display:flex;flex-direction:column;gap:var(--sp-1);border-top:1px solid var(--border)}
.figs{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-1) var(--sp-4);margin:0;font-size:var(--fs-body);color:var(--text-2)}
.figs b{font-weight:600;color:var(--text);font-variant-numeric:tabular-nums} .figs a{color:var(--text-2)} .figs a b{color:var(--accent-text)}
.figs .warn,.figs .warn b{color:var(--amber-fg)} .figs .why-out{font-size:var(--fs-meta)}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(var(--tile-min),1fr));gap:var(--sp-3)}
.tile{display:flex;flex-direction:column;gap:var(--sp-05);padding:var(--sp-3) var(--card-x);border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface);box-shadow:none;color:var(--text);text-decoration:none;min-width:0;transition:border-color var(--t-fast)}
.tile:hover{border-color:var(--border-3);text-decoration:none}
.tile .tk{font-size:var(--fs-meta);color:var(--text-2)} .tile .tv{font-size:var(--fs-num-xl);font-weight:600;letter-spacing:var(--ls-num);line-height:var(--lh-tight);font-variant-numeric:tabular-nums} .tile .tv.warn{color:var(--amber-fg)}
.tile .ts{font-size:var(--fs-meta);color:var(--text-3)} .tile .ts b{font-weight:600;white-space:nowrap} .tile .ts .up{color:var(--green-fg)} .tile .ts .down{color:var(--red-fg)} .tile .ts .same{color:var(--text-3);font-weight:500}
/* The dashboard's strip (C17, S17): its tiles one instrument, cells parted by hairlines, the figure beside its context; still
   a link each, and only a link fills on hover. Three and two under 1180, two by two under 900 */
.tiles.strip{gap:0;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface);overflow:hidden}
.strip .tile{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:var(--sp-2);align-items:baseline;align-content:start;padding:var(--sp-2) var(--card-x) var(--sp-3);border:0;border-radius:0;box-shadow:inset 1px 0 0 var(--border)}
.strip .tile:first-child{box-shadow:none} .strip .tile:hover{border-color:transparent} .strip a.tile:hover{background:var(--surface-2)} .strip .tile .tk{grid-column:1/-1}
@media (max-width:1180px){.tiles.strip{grid-template-columns:repeat(6,minmax(0,1fr))} .strip .tile{grid-column:span 2} .strip .tile:nth-child(4):nth-last-child(2),.strip .tile:nth-child(5):nth-last-child(1){grid-column:span 3}
  .strip .tile:nth-child(n+4){box-shadow:inset 1px 0 0 var(--border),inset 0 1px 0 var(--border)} .strip .tile:nth-child(4){box-shadow:inset 0 1px 0 var(--border)}}
@media (max-width:900px){.tiles.strip{grid-template-columns:repeat(2,minmax(0,1fr))} .strip .tile,.strip .tile:nth-child(4):nth-last-child(2),.strip .tile:nth-child(5):nth-last-child(1){grid-column:auto} .strip .tile:last-child:nth-child(odd){grid-column:1/-1}
  .strip .tile:nth-child(n+3){box-shadow:inset 0 1px 0 var(--border)} .strip .tile:nth-child(even){box-shadow:inset 1px 0 0 var(--border),inset 0 1px 0 var(--border)} .strip .tile:nth-child(2){box-shadow:inset 1px 0 0 var(--border)}}
.work{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1.2fr);gap:var(--section-gap);align-items:stretch} .work>.card{display:flex;flex-direction:column;min-width:0}
/* The dashboard, one unit at a time: its title, tiles, work, conversion and tables as one evenly spaced stack */
.dash-unit{display:flex;flex-direction:column;gap:var(--section-gap)} .dash-unit>.unit-h,.dash-unit>.fold{margin:0} .dash-unit+.dash-unit{margin-top:var(--sp-3)}
.card-note{margin:calc(var(--sp-1) * -1) var(--card-x) var(--sp-1);font-size:var(--fs-meta);line-height:var(--lh-body);color:var(--text-3)}
.worklist .wl-h{display:block;padding:var(--sp-2) var(--sp-3) var(--sp-1);font-size:var(--fs-caps);font-weight:600;letter-spacing:var(--ls-caps);text-transform:uppercase;color:var(--text-3)}
.band .band-b{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:var(--sp-6);padding-top:var(--sp-1)}
.funnel{display:flex;flex-direction:column;gap:var(--sp-2)}
.fun{display:grid;grid-template-columns:118px minmax(0,1fr) 44px 52px;gap:var(--sp-2);align-items:center;font-size:var(--fs-body)} .fun .fl{color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .fun .fn{text-align:right;font-weight:600;font-variant-numeric:tabular-nums} .fun .fp{text-align:right;color:var(--text-3);font-size:var(--fs-meta);font-variant-numeric:tabular-nums}
.fbar{display:block;width:100%;height:10px} .fbar .f{fill:var(--accent)}
.srcbar{display:block;width:100%;height:12px;border-radius:var(--r);margin-top:var(--sp-2)} .legend{display:flex;flex-wrap:wrap;gap:var(--sp-15) var(--sp-3);margin-top:var(--sp-2);font-size:var(--fs-meta);color:var(--text-2)} .legend b{font-weight:600;color:var(--text)} .sw{display:inline-block;width:9px;height:9px;border-radius:var(--r-sm);margin-right:var(--sp-15);vertical-align:-1px}
.c1{fill:var(--accent);background:var(--accent)} .c2{fill:var(--blue-dot);background:var(--blue-dot)} .c3{fill:var(--green-dot);background:var(--green-dot)} .c4{fill:var(--amber-dot);background:var(--amber-dot)} .c5{fill:var(--violet-dot);background:var(--violet-dot)} .c6{fill:var(--surface-4);background:var(--surface-4)}
@media (max-width:1180px){.work{grid-template-columns:minmax(0,1fr)} .band .band-b{grid-template-columns:minmax(0,1fr)}}
.sources{min-width:0}
.band .card-h form{flex:none} .band .card-h .input{width:150px} .work .table td{white-space:normal} .work .table td.cal-d{white-space:nowrap}

/* The documents of a Masters application: a compact table worked in place, a box for received, an upload button
   beside the file, a comment that saves when left, the rejection on hover; a row being saved dims until it returns */
.filepick{display:inline-flex;align-items:center;gap:var(--sp-2);min-width:0} .filepick .xs{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:160px} .filebtn{cursor:pointer}
.table.docs th,.table.docs td{padding:var(--cell-y) var(--cell-x);height:var(--row-h)} .table.docs th:first-child,.table.docs td:first-child{padding-left:var(--card-x)} .table.docs td.wrap{white-space:normal;max-width:220px}
.table.docs td.act,.table.docs th.act{width:1%;text-align:right;white-space:nowrap;padding-right:var(--sp-3)} .table.docs tr:focus-within td.act .btn{opacity:1}
.table.docs td.check-cell{padding-right:0} .table.docs form{margin:0} .table.docs form.htmx-request{opacity:.5;pointer-events:none}
.docfile{display:flex;align-items:center;gap:var(--sp-1);min-width:0} .filebtn:has(input:focus-visible){box-shadow:var(--focus-ring)}
.table.docs td.main{min-width:var(--cell-name-min)} .table.docs td.doc-note{width:34%;min-width:var(--cell-wrap-min);white-space:normal}
.table.docs .filebtn{color:var(--text-2)} .table.docs .filebtn:hover{color:var(--accent-text)}
.table.docs .input.bare{height:var(--ctl-h-sm);padding:0 var(--sp-2);font-size:var(--fs-control);border-color:transparent;background:transparent;box-shadow:none}
.table.docs .input.bare:hover{border-color:var(--border-2)} .table.docs .input.bare:focus{border-color:var(--accent);background:var(--surface);box-shadow:var(--focus-ring)}
.table.docs.compact td,.table.docs.compact th{height:auto;padding:var(--sp-1) var(--sp-2)} .table.docs.compact td:first-child,.table.docs.compact th:first-child{padding-left:var(--sp-05)}
.docsum{margin-top:var(--sp-2)}
.table .fname{display:inline-block;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
.table.docs td.main{white-space:normal;max-width:var(--cell-wide)} .table td.act-cell .btn{opacity:1}
/* An application wears its brand on every screen: the primary button, the links, the focus ring, the selection,
   the tab underline and the bars, the active navigation item and the badges, the glow of the frame.
   Set on the root of an application's pages, and again on its pane, its entrance and its block of the dashboard. */
[data-brand="li"]{--on-primary:var(--li-on-primary);--accent:var(--li-accent);--accent-2:var(--li-primary);--accent-soft:var(--li-soft);--accent-text:var(--li-accent-text);--on-accent:var(--li-on-accent);--ring:var(--li-ring);--highlight:var(--li-highlight);--on-highlight:var(--li-on-highlight);--bg-glow:var(--li-glow);--grad-primary:linear-gradient(180deg,var(--li-primary) 0%,var(--li-primary) 100%);--grad-primary-hover:linear-gradient(180deg,var(--li-primary-2) 0%,var(--li-primary-2) 100%);--grad-bar:var(--li-grad-bar)}
[data-brand="pm"]{--on-primary:var(--pm-on-primary);--accent:var(--pm-accent);--accent-2:var(--pm-primary);--accent-soft:var(--pm-soft);--accent-text:var(--pm-accent-text);--on-accent:var(--pm-on-accent);--ring:var(--pm-ring);--highlight:var(--pm-highlight);--on-highlight:var(--pm-on-highlight);--bg-glow:var(--pm-glow);--grad-primary:linear-gradient(180deg,var(--pm-primary) 0%,var(--pm-primary) 100%);--grad-primary-hover:linear-gradient(180deg,var(--pm-primary-2) 0%,var(--pm-primary-2) 100%);--grad-bar:var(--pm-grad-bar)}
/* Deep gold is the grey text's own hue and nearly its lightness, where crimson and Learn Inn's blue differ in hue, and on a
   capture a list of names read as plain text. So in Master's light theme a link in a table cell or running text, the link of a
   row, a card heading's link, a task's title and a board card's name (C14) are underlined too; the dark theme's gold stands
   apart and wrapped lines of underline only weighed it down, and these sit after the rows' own hover, so each names its
   hover here (REQ-NFR-062) */
[data-brand="pm"] td a.main,[data-brand="pm"] .worklist a .main,[data-brand="pm"] .prow .main,[data-brand="pm"] a.push:not(.btn),[data-brand="pm"] dd a.xs,[data-brand="pm"] .title-btn,[data-brand="pm"] .kcard a.n,[data-brand="pm"] .table.cal a.cal-n,[data-brand="pm"] :is(td,dd,p,.sub,.help) a:not([class]){text-decoration-line:var(--pm-link-line);text-decoration-thickness:1px;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent)}
[data-brand="pm"] td a.main:hover,[data-brand="pm"] .worklist a:hover .main,[data-brand="pm"] .prow:hover .main,[data-brand="pm"] a.push:not(.btn):hover,[data-brand="pm"] dd a.xs:hover,[data-brand="pm"] .title-btn:hover,[data-brand="pm"] .kcard a.n:hover,[data-brand="pm"] .table.cal a.cal-n:hover,[data-brand="pm"] :is(td,dd,p,.sub,.help) a:not([class]):hover{text-decoration-line:underline;text-decoration-color:currentColor}
/* In the light theme the frame, the text and the surfaces take the kit's canvas, ink and tints too; the dark theme keeps its own */
html:not([data-theme="dark"])[data-brand="li"],html:not([data-theme="dark"]) [data-brand="li"]{--bg:var(--li-canvas);--text:var(--li-text);--text-2:var(--li-text-2);--text-3:var(--li-text-3);--surface-2:var(--li-surface-2);--surface-3:var(--li-surface-3);--surface-4:var(--li-surface-4);--border:var(--li-border);--border-2:var(--li-border-2)}
html:not([data-theme="dark"])[data-brand="pm"],html:not([data-theme="dark"]) [data-brand="pm"]{--bg:var(--pm-canvas);--text:var(--pm-text);--text-2:var(--pm-text-2);--text-3:var(--pm-text-3);--surface-2:var(--pm-surface-2);--surface-3:var(--pm-surface-3);--surface-4:var(--pm-surface-4);--border:var(--pm-border);--border-2:var(--pm-border-2)}
/* The marks: the application's at the top of the sidebar and on its entrance pages, the wordmarks on the entrance */
.marks{display:flex;gap:var(--sp-1);flex:none} .marks img{width:24px;height:24px;border-radius:var(--r);display:block}
/* In the sidebar the mark is the application's name at a glance: half as large again, beside its two lines of name */
.unit .marks img{width:36px;height:36px;border-radius:var(--r-md)}
.nav .sec .sec-mark{width:16px;height:16px;border-radius:var(--r-sm);display:block}
.brand-pair{display:flex;flex-direction:column;align-items:center;gap:var(--sp-3);margin-bottom:var(--sp-4)} .brand-pair img{display:block;height:auto} .brand-pair .li{width:216px} .brand-pair .pm{width:250px}
.brand-pair .only-dark{display:none;border-radius:var(--r-md)} [data-theme="dark"] .brand-pair .only-dark{display:block} [data-theme="dark"] .brand-pair .only-light{display:none}
/* The university's footer closes an application's entrance card: on the white card in the light theme, on a white plate in the dark */
.entrance-foot{padding-top:var(--sp-4);border-top:1px solid var(--border)} .entrance-foot img{display:block;width:100%;height:auto;border-radius:var(--r)}
[data-theme="dark"] .entrance-foot img{padding:var(--sp-15) var(--sp-2);background:var(--plate)}
/* The root that names the two applications (REQ-ARC-012): both kits in the glow, a two-colour rule under the heading,
   and one row per application in its own kit, its wordmark and a chevron, the border and the chevron firmer on hover */
.entrance.duo{background-color:var(--bg);background-image:var(--duo-glow);background-repeat:no-repeat}
.duo-h{text-align:center} .duo-h::after{content:"";display:block;width:44px;height:3px;margin:var(--sp-3) auto 0;border-radius:var(--pill);background:var(--duo-rule)}
.app-choice{display:flex;flex-direction:column;gap:var(--sp-3)}
.app-choice a{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);min-height:88px;padding:var(--sp-3) var(--sp-4);border:1px solid var(--border-2);border-radius:var(--r-lg);background:var(--accent-soft);text-decoration:none;transition:border-color var(--t-fast),box-shadow var(--t-fast)}
.app-choice a:hover{border-color:var(--accent);box-shadow:var(--shadow-md);text-decoration:none} .app-choice a:focus-visible{border-radius:var(--r-lg)}
.app-choice img{display:block;width:auto;height:auto;max-height:60px;max-width:100%;min-width:0} .app-choice .only-dark{display:none;border-radius:var(--r-md)} [data-theme="dark"] .app-choice .only-dark{display:block} [data-theme="dark"] .app-choice .only-light{display:none}
[data-theme="dark"] .app-choice a{background:var(--surface-2)}
.app-choice a::after{content:"";width:18px;height:18px;flex:none;background:var(--text-3);-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>") center/contain no-repeat;transition:background var(--t-fast)}
.app-choice a:hover::after{background:var(--accent-text)}

/* The lead row on the person card (LI-SCR-03): the state and the owner are what they are; for an operator each is a button that unfolds its form in a row under it; the details row folds under the row too */
/* A status that opens a form reads as a control: a hairline in the chip's own colour, a chevron in the brand colour, both firmer on hover and while open */
.chip-btn{display:inline-flex;align-items:center;gap:var(--sp-1);cursor:pointer;border:0;padding:0;background:transparent;font:inherit;border-radius:var(--pill);color:var(--text)}
.chip-btn .chip{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 30%,transparent);transition:box-shadow var(--t-fast)} .chip-btn:hover .chip,.chip-btn[aria-expanded="true"] .chip{box-shadow:inset 0 0 0 1px currentColor}
.chip-btn .icon{width:14px;height:14px;color:var(--accent-text)} .chip-btn[aria-expanded="true"] .icon{transform:rotate(180deg)}
.chip-btn.final{cursor:default} .chip-btn.final .chip{box-shadow:none}
/* The fold under a row (C4, S16): one look for a row's form, the registered fold component opening it from a .btn-row with
   aria-expanded and aria-controls, the first field taking the cursor, Esc closing it and giving the cursor back */
.table tr.lead-edit td,.table tr.row-form td{height:auto;padding:var(--sp-1) var(--card-x) var(--sp-3);white-space:normal;background:var(--surface-2)} .table tr.lead-edit .help.wide,.table tr.row-form .help.wide{flex-basis:100%}
/* A row's forms unfolded under it, one line each (S16, M12e P1); a decision's facts on one line (MASTERS-23); a check not
   met read by exception with its reason on one line (P3, MASTERS-16); the kinds missing as one plain line (P6c) */
.row-forms{display:flex;flex-direction:column;gap:var(--sp-3)} .table td .line{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1) var(--sp-2)} .table td .line .sub{margin-top:0}
.unmet+.unmet{margin-top:var(--sp-1)} .table td .unmet .clamp{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--cell-wide-max)}
.table td .missing b{margin-right:var(--sp-1);color:var(--amber-fg);font-weight:600}
/* the order of preference in a table cell as numbered lines, no box (P6b): a heading keeps its chips */
.table td .chip.prefname{display:block;height:auto;padding:0;border:0;background:none;font-size:var(--fs-meta);color:var(--text-2);white-space:normal}
/* a long specialization in the candidate card's header wraps inside the card at 1024 px (M12e closing) */
.page-h .chip.prefname{max-width:100%;white-space:normal;height:auto;min-height:var(--chip-h-xs);padding-block:var(--sp-05);border-radius:var(--r-md);line-height:var(--lh-ui)}
/* A withdrawn entry of an append-only list: struck through where it stood, its withdrawal under it (REQ-DM-141) */
.table tr.withdrawn .was{text-decoration:line-through;color:var(--text-3)} .table tr.withdrawn td{color:var(--text-2)}
/* The person card's leads tab (PC4 of M12e): the number first, the source over its date, the state wrapping; the row
   reads from its top; under 1180 the row's quiet buttons stack in a narrow cell, so the row holds in the card at 1024 */
.card-leads>tbody>tr:first-child>td{vertical-align:top;height:auto;padding-block:var(--sp-2)}
@media (max-width:1180px){.card-leads td.wrap{min-width:var(--cell-wrap-narrow)} .card-leads td.contact{white-space:normal;overflow-wrap:anywhere} .card-leads td.act:not(.wide){width:var(--act-w-sm);white-space:normal}
  .table.card-leads td.act .btn.btn-row{display:flex;width:100%;height:auto;min-height:var(--ctl-h-xs);padding-block:var(--sp-05);white-space:normal;text-align:center} .table.card-leads td.act>.btn+.btn,.table.card-leads td.act>form+.btn{margin:var(--sp-1) 0 0}}
.table tr.lead-more td{height:auto;padding:0 var(--sp-4) var(--sp-3);white-space:normal} .table tr.lead-more .table td{height:var(--ctl-h);padding:0 var(--sp-2)}

/* The person card's Επισκόπηση and Προγράμματα tabs (LI-SCR-03, REQ-LI-104): rows that open what they name, a list sorted by stage or date, and one programme at a time with its header, the menu of its sub-views, an overview in two columns of boxes, and compact task rows */
/* A row that opens what it names: its name in the brand colour, a chevron at its end, the row lit on hover */
.prow{display:flex;align-items:center;gap:var(--sp-2);margin:0 calc(var(--sp-2) * -1);padding:var(--sp-2) var(--sp-2);border-top:1px solid var(--border);border-radius:var(--r-sm);color:var(--text);text-decoration:none;min-width:0;transition:background var(--t-fast)} .prow:first-of-type{border-top-color:transparent}
.prow:hover{background:var(--surface-2);text-decoration:none} .prow:hover .main{text-decoration:underline} .prow .main{display:block;font-weight:500;font-size:var(--fs-body);color:var(--accent-text);text-underline-offset:2px} .prow .sub{display:block;font-size:var(--fs-meta);color:var(--text-3)}
.prow::after{content:"";width:16px;height:16px;flex:none;background:var(--text-3);-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>") center/contain no-repeat} .prow:hover::after{background:var(--accent-text)}
.prog-list td.main a{font-weight:600}
.prog-h{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-3);padding:var(--card-y) var(--card-x) var(--sp-2)} .prog-h h3{margin:0;font-size:var(--fs-title)} .prog-h .row{gap:var(--sp-2) var(--sp-2)} .prog-h .sub{color:var(--text-3);font-size:var(--fs-body)}
.prog-nav{display:flex;flex-wrap:wrap;margin:0 var(--card-x) var(--sp-1)} .seg a{text-decoration:none} .seg a .count{margin-left:var(--sp-15);height:18px;min-width:18px}
.menu-pop{flex-direction:column;gap:var(--sp-05);min-width:260px;padding:var(--sp-15)} .menu-pop a{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2);padding:var(--sp-15) var(--sp-2);border-radius:var(--r);color:var(--text);text-decoration:none} .menu-pop a:hover{background:var(--surface-2)}
.prog-grid{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:var(--sp-3);align-items:start;padding:var(--sp-2) var(--card-x) var(--sp-1)} .prog-grid:last-child{padding-bottom:var(--card-y)}
.pbox{min-width:0;padding:var(--sp-3) var(--sp-3);border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface)} .pbox>h4{display:flex;align-items:center;gap:var(--sp-2);margin:0 0 var(--sp-2);font-size:var(--fs-section)} .pbox>h4 .push{margin-left:auto} .pbox .kv{row-gap:var(--sp-2)} .pbox .pipeline .stage{flex-basis:96px;min-width:96px}
/* In a column of the programme view the stages read down, one line each: the name, then its date or state */
:is(.prog-grid,.ov) .pbox .pipeline{flex-direction:column;gap:var(--sp-1)} :is(.prog-grid,.ov) .pbox .pipeline .stage{flex:none;min-width:0;grid-template-columns:24px minmax(0,1fr) auto;padding:var(--sp-15) var(--sp-2)} :is(.prog-grid,.ov) .pbox .pipeline .stage .n{grid-row:auto} :is(.prog-grid,.ov) .pbox .pipeline .stage .s{text-align:right;white-space:nowrap}
/* The person card's overview as one sheet (PC6 of M12e, CARD-17): its sections parted by a line, one rule before the
   column of what to do. The DOM is the narrow order, the person, the lead, what to do, the rest of the person; on a wide
   screen the grid sets what to do in the right column, its rows the left ones', the rest at the left's foot */
.ov{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);grid-template-rows:auto auto 1fr}
.ov .pbox{border:0;border-radius:0;background:none;padding:var(--card-y) var(--card-x)} .ov>.pbox+.pbox,.ov-do+.pbox,.ov-do>.pbox+.pbox{border-top:1px solid var(--border)}
.ov-do{grid-column:2;grid-row:1/span 3;min-width:0;border-left:1px solid var(--border)} .prow .sub.next-line{color:var(--text);font-weight:500}
/* Facts in groups: what it is, its dates in order, who works it (REQ-LI-104) */
.pbox .kv+.kv{margin-top:var(--sp-3);padding-top:var(--sp-3);border-top:1px solid var(--border)} .kv.dates dd{font-variant-numeric:tabular-nums}
/* The inbox confirmation in steps (REQ-INT-138): numbered step buttons, the one shown lit, the ones passed checked; the open application beside the new message (REQ-DM-163) */
.wz-nav{display:flex;flex-wrap:wrap;gap:var(--sp-1);list-style:none;margin:0;padding:var(--sp-3) var(--card-x) var(--sp-05)}
.wz-tab{display:inline-flex;align-items:center;gap:var(--sp-15);padding:var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-1);border:1px solid var(--border);border-radius:var(--pill);background:var(--surface-2);color:var(--accent-text);font:inherit;font-size:var(--fs-meta);font-weight:600;cursor:pointer} .wz-tab:hover{border-color:var(--accent)} .wz-tab:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.wz-tab .n{width:20px;height:20px;border-radius:var(--round);display:grid;place-items:center;background:var(--surface-3);color:var(--text-2);font-size:var(--fs-caps)} .wz-tab[aria-current=step]{border-color:var(--accent);background:var(--accent-soft);color:var(--text)} .wz-tab[aria-current=step] .n{background:var(--accent);color:var(--on-accent)} .wz-tab.done .n{background:var(--green-bg);color:var(--green-fg)}
.wz-step>h4{display:flex;align-items:baseline;gap:var(--sp-2);flex-wrap:wrap} .wz-step+.wz-step{margin-top:var(--sp-4)} .wz-step[hidden]+.wz-step{margin-top:0} .wz-foot .push{margin-left:auto}
.kv.review dd{overflow-wrap:anywhere}
fieldset.choice{display:flex;flex-direction:column;gap:var(--sp-2);border:0;margin:0;padding:0} fieldset.choice legend{padding:0;margin-bottom:var(--sp-15)}
.table.compare td{height:auto;padding:var(--sp-15) var(--sp-2);white-space:normal;vertical-align:top;overflow-wrap:break-word} .table.compare td:first-child{min-width:120px;color:var(--text-2)} .table.compare tr.differs td:nth-child(3){color:var(--text);font-weight:600} .table.compare tr:not(.differs) td{color:var(--text-3)}
/* An earlier application, one line that opens to every field it had (REQ-DM-163) */
details.earlier{border-top:1px solid var(--border);padding:var(--sp-2) 0} details.earlier:last-child{padding-bottom:0} details.earlier>summary{display:flex;align-items:center;gap:var(--sp-2);cursor:pointer;list-style:none} details.earlier>summary::-webkit-details-marker{display:none} details.earlier>summary .main{color:var(--accent-text);font-weight:600} details.earlier>summary:hover .main{text-decoration:underline}
.table.history td{height:auto;padding:var(--sp-15) var(--sp-2);vertical-align:top}
/* The states of a task under its status, one click each (REQ-COM-041); the details and the notes under its row */
.status-menu{position:relative;display:inline-block} .status-pop{position:absolute;left:0;top:calc(100% + 6px);z-index:20;min-width:200px;white-space:nowrap}
.status-pop button{height:var(--ctl-h)} .status-pop button[disabled]{cursor:default;opacity:1} .status-pop button[disabled] .icon{color:var(--accent-text)}
.task-notes{display:flex;flex-direction:column;gap:var(--sp-2);margin-top:var(--sp-3)} .task-notes .subhead{margin:0}
.note{padding:var(--sp-2) var(--sp-3);border:1px solid var(--border);border-radius:var(--r);background:var(--surface)} .note .h{display:flex;align-items:baseline;gap:var(--sp-2);font-size:var(--fs-meta);color:var(--text-3)} .note .h b{color:var(--text);font-weight:600} .note .h time{margin-left:auto}
.note .t{margin-top:var(--sp-05);font-size:var(--fs-body);color:var(--text);white-space:normal} .title-btn{padding:0;border:0;background:none;font:inherit;font-weight:500;color:var(--accent-text);text-align:left;cursor:pointer;text-underline-offset:2px} .title-btn:hover,.title-btn[aria-expanded="true"]{text-decoration:underline}
.pay-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-2);margin-bottom:var(--sp-2)} .pay-sum>div{display:flex;flex-direction:column;gap:var(--sp-05);min-width:0} .pay-sum .k{font-size:var(--fs-meta);color:var(--text-3)} .pay-sum b{font-size:var(--fs-num-lg);font-weight:600;font-variant-numeric:tabular-nums} .pay-sum b.ok{color:var(--green-fg)} .pay-sum .s{font-size:var(--fs-meta);color:var(--text-3)}
@media (max-width:1180px){.prog-grid{grid-template-columns:minmax(0,1fr)} .ov{grid-template-columns:minmax(0,1fr);grid-template-rows:none} .ov-do{grid-column:auto;grid-row:auto;border-left:0;border-top:1px solid var(--border)}}
/* A saved discount reads as saved: its fields locked until «Αλλαγή» (LI-SCR-09). The fieldset only carries the lock, the form keeps its line layout */
.lockset{display:contents;border:0;margin:0;padding:0;min-width:0} .lockset:disabled .input,.lockset:disabled .select{background:var(--surface-3);border-color:transparent;color:var(--text);cursor:not-allowed} /* a saved value, locked: read only, in ink (C9) */
/* The scoring tab (LI-SCR-19, PM-SCR-19): one points box per value or range row, numbers aligned */
.input.points{width:96px;height:var(--ctl-h-sm);padding:0 var(--sp-2);text-align:right;font-variant-numeric:tabular-nums}
