/* Tasko "Registru" (28.11.2026): the design system of the signed-in application and of the console, loaded last.
   Specification: docs/design/redesign-2026-11/02-specificatie-sistem.md. Colours only from tokens.css.
   Green acts, orange is a problem or a block, red deletes or reports an error. Corners 8 px. Text 12, 13, 14, 16, 24, 28 px
   (16 px for reading and typing on phones). Everything is scoped to body.registru, so the public pages keep their own styles. */

/* ── 1. Page and text ── */
body.registru{background:var(--tk-background);background-image:none;font-size:.875rem;line-height:1.45}
body.registru .workspace{font-size:.875rem}
body.registru h1,body.registru .workspace h1{margin:0 0 4px;font:700 1.5rem/1.25 Sora,Inter,sans-serif;letter-spacing:-.02em;overflow-wrap:anywhere}
body.registru #screen h2,body.registru .workspace h2{margin:0 0 8px;font:600 1rem/1.4 Sora,Inter,sans-serif;letter-spacing:-.01em;overflow-wrap:anywhere}
body.registru #screen h3,body.registru .workspace h3{margin:0 0 6px;font:600 .875rem/1.4 Inter,system-ui,sans-serif;letter-spacing:0}
body.registru .workspace :is(p,li,dd,td,th){overflow-wrap:break-word}
body.registru .workspace :is(.small,small){font-size:.8125rem}
body.registru .workspace :is(.muted,.intro){color:var(--tk-text-muted)}
body.registru .workspace .intro{max-width:70ch;margin:0 0 12px;font-size:.875rem}
body.registru .num{font-variant-numeric:tabular-nums}
body.registru :focus-visible{outline:3px solid var(--tk-flow);outline-offset:2px}
body.registru #screen :is(h1,h2)[tabindex="-1"]:focus{outline:none}
body.registru .ni{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ── 2. Buttons: one filled main action, framed second ones, quiet links ── */
body.registru .workspace :is(button.primary,.primary,button.secondary,.secondary,button.quiet,.quiet,button.problem,.problem,button.danger,summary.danger,a.danger){display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:40px;margin:0;padding:8px 16px;border:1px solid transparent;border-radius:8px;font:600 .875rem/1.3 Inter,system-ui,sans-serif;letter-spacing:0;text-align:center;text-decoration:none;cursor:pointer}
body.registru .workspace :is(button.primary,.primary){background:var(--tk-flow);border-color:var(--tk-flow);color:var(--tk-on-flow)}
body.registru .workspace :is(button.primary,.primary):hover{background:var(--tk-flow-hover);border-color:var(--tk-flow-hover)}
body.registru .workspace :is(button.secondary,.secondary){background:var(--tk-surface);border-color:var(--tk-line-strong);color:var(--tk-text)}
body.registru .workspace :is(button.secondary,.secondary):hover{background:var(--tk-surface-raised)}
body.registru .workspace :is(button.quiet,.quiet){background:transparent;color:var(--tk-flow-text)}
body.registru .workspace :is(button.quiet,.quiet):hover{background:var(--tk-flow-soft)}
body.registru .workspace :is(button.problem,.problem){background:var(--tk-signal-soft);border-color:var(--tk-signal);color:var(--tk-signal-text)}
body.registru .workspace :is(button.danger,summary.danger,a.danger){background:var(--tk-surface);border-color:var(--tk-danger);color:var(--tk-danger)}
body.registru .workspace :is(button.danger,summary.danger,a.danger):hover{background:var(--tk-danger);color:var(--tk-on-danger)}
body.registru .workspace :is(button.primary,.primary,button.secondary,.secondary,button.quiet,.quiet,button.problem,.problem,button.danger,summary.danger,a.danger):disabled{background:var(--tk-surface-raised);border:1px dashed var(--tk-line-strong);color:var(--tk-text-muted);cursor:default}
body.registru .workspace :is(button.primary,.primary,button.secondary,.secondary,button.quiet,.quiet,button.problem,.problem,button.danger,summary.danger,a.danger)[hidden]{display:none}
body.registru .workspace .compact{min-height:32px;padding:4px 12px;font-size:.8125rem}

/* ── 3. Fields ── */
body.registru .workspace :is(input:not([type=checkbox],[type=radio],[type=file],[type=range],[type=hidden]),select,textarea){box-sizing:border-box;min-height:40px;max-width:100%;padding:8px 12px;border:1px solid var(--tk-line-strong);border-radius:8px;background:var(--tk-surface);color:var(--tk-text);font:400 .875rem/1.4 Inter,system-ui,sans-serif}
body.registru .workspace textarea{min-height:72px;resize:vertical}
body.registru .workspace [aria-invalid="true"]{border-color:var(--tk-danger)}
body.registru .workspace :is(input[type=checkbox],input[type=radio]){inline-size:20px;block-size:20px;accent-color:var(--tk-flow)}
body.registru .workspace :is(label,legend){font-size:.8125rem;font-weight:600;color:var(--tk-text)}
body.registru .workspace label>small{font-weight:400;color:var(--tk-text-muted)}
body.registru .workspace summary{min-height:40px;padding-block:8px;box-sizing:border-box;cursor:pointer}

/* ── 4. Messages ── An empty message takes no room (portal.css keeps it for screen readers). */
body.registru .workspace .error:not(:empty){margin:0;padding:8px 12px;border:1px solid var(--tk-danger);border-radius:8px;background:var(--tk-surface);color:var(--tk-text);font-size:.875rem;font-weight:600}
body.registru .workspace #message:not(:empty){margin:0 0 16px;padding:12px 16px;border:1px solid var(--tk-flow-line);border-radius:8px;background:var(--tk-flow-soft);color:var(--tk-text);font-size:.875rem;font-weight:600}
/* An older rule of the narrow layout hides every note; in the signed-in pages a note is information the person needs. */
body.registru .workspace .note{display:block}
body.registru .workspace [data-rail-go].primary{min-height:44px}
body.registru .workspace :is(.note,.plat-notice){margin:0 0 12px;padding:12px 16px;border:1px solid var(--tk-flow-line);border-radius:8px;background:var(--tk-flow-soft);color:var(--tk-text);font-size:.875rem}

/* ── 5. Panels and figures ── */
body.registru .workspace :is(.rg-panel,.plat-card,.work-panel){min-width:0;box-sizing:border-box;margin:0;padding:16px;border:1px solid var(--tk-line);border-radius:8px;background:var(--tk-surface);box-shadow:none}
body.registru .workspace .rg-panel-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:0 0 8px}
body.registru #screen .rg-panel-head h2,body.registru #screen .rg-panel-head h3{margin:0}
body.registru .rg-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 16px}
body.registru .rg-head>div{min-width:0}
body.registru .rg-over{margin:0 0 2px;color:var(--tk-text-muted);font-size:.75rem;font-weight:600}
body.registru .rg-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
body.registru .rg-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0;align-content:start}
body.registru .rg-cols{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
body.registru .rg-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:0 0 16px;padding:0;list-style:none}
body.registru .workspace .rg-tile{display:flex;flex-direction:column;align-items:flex-start;gap:2px;box-sizing:border-box;width:100%;height:100%;max-width:none;min-height:44px;margin:0;padding:12px 16px;border:1px solid var(--tk-line);border-radius:8px;background:var(--tk-surface);color:var(--tk-text);font:inherit;text-align:left;text-decoration:none;cursor:pointer}
body.registru .workspace button.rg-tile:hover{border-color:var(--tk-line-strong)}
body.registru .rg-tile>span{color:var(--tk-text-muted);font-size:.8125rem;font-weight:600}
body.registru .rg-tile>b{font:700 1.75rem/1.2 Sora,Inter,sans-serif;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body.registru .rg-tile>small{color:var(--tk-text-muted);font-size:.75rem}
body.registru .workspace .rg-tile.is-problem{border-left:3px solid var(--tk-signal)}
body.registru .rg-tile.is-problem>span{color:var(--tk-signal-text)}
body.registru .workspace .rg-tile[aria-pressed="true"]{border-color:var(--tk-flow);background:var(--tk-flow-soft)}

/* ── 6. Status chips: icon and word, never colour alone ── */
body.registru .rg-chip,body.registru .plat-badge{display:inline-flex;align-items:center;gap:5px;box-sizing:border-box;min-height:24px;margin:0;padding:2px 9px;border:1px solid var(--tk-line-strong);border-radius:999px;background:var(--tk-surface);color:var(--tk-text-muted);font:600 .75rem/1.3 Inter,system-ui,sans-serif;letter-spacing:0;text-transform:none;white-space:nowrap}
body.registru :is(.rg-chip,.plat-badge) .ni{width:14px;height:14px}
body.registru .t-problem{background:var(--tk-signal-soft);border-color:var(--tk-signal-line);color:var(--tk-signal-text)}
body.registru .t-review{background:var(--tk-flow-soft);border-color:var(--tk-flow-line);color:var(--tk-flow-text)}
body.registru .t-active{background:var(--tk-active-bg);border-color:var(--tk-active-line);color:var(--tk-active-text)}
body.registru .t-done{background:transparent;border-color:var(--tk-line);color:var(--tk-text-muted)}
body.registru .t-neutral{background:var(--tk-surface);border-color:var(--tk-line-strong);color:var(--tk-text-muted)}

/* ── 7. Descriptions and meters ── Bars are SVG: the page policy allows no inline styles. */
body.registru .rg-meter{display:inline-block;width:96px;height:6px;margin-right:8px;vertical-align:middle}
body.registru .rg-meter rect{fill:var(--tk-surface-raised)}
body.registru .rg-meter rect+rect{fill:var(--tk-flow)}
body.registru .rg-meter.hot rect+rect{fill:var(--tk-signal)}

/* ── 8. Tables; on a phone each row is a card ── */
body.registru .workspace .rg-table{overflow-x:auto;margin:0;border:1px solid var(--tk-line);border-radius:8px;background:var(--tk-surface)}
body.registru .workspace .rg-table table{width:100%;min-width:0;border-collapse:collapse;font-size:.8125rem}
body.registru .workspace .rg-table th{padding:8px 12px;border-bottom:1px solid var(--tk-line);background:transparent;color:var(--tk-text-muted);font-size:.75rem;font-weight:600;letter-spacing:0;text-align:left;text-transform:none;white-space:nowrap}
body.registru .workspace .rg-table td{height:52px;padding:6px 12px;border-bottom:1px solid var(--tk-line);vertical-align:middle}
body.registru .workspace .rg-table tbody tr:last-child td{border-bottom:0}
body.registru .workspace .rg-table tbody tr:hover{background:var(--tk-surface-raised)}
body.registru .workspace .rg-table .r{text-align:right;font-variant-numeric:tabular-nums}
body.registru .workspace .rg-table .rg-title{font-weight:600;font-size:.875rem}
body.registru .workspace .rg-table td small{display:block;color:var(--tk-text-muted);font-size:.75rem}
body.registru .workspace .rg-table .rg-act{text-align:right;white-space:nowrap}
body.registru .workspace .rg-table .rg-act>*+*{margin-left:8px}
body.registru .workspace .rg-link{display:inline-flex;align-items:center;min-height:32px;max-width:100%;margin:0;padding:0;border:0;background:transparent;color:var(--tk-flow-text);font:600 .875rem/1.3 Inter,system-ui,sans-serif;text-align:left;text-decoration:none;overflow-wrap:anywhere;cursor:pointer}
body.registru .workspace .rg-link:hover{text-decoration:underline}

/* ── 9. Rows of a short list: what, detail, one action ── */
body.registru .rg-list{margin:0;padding:0;list-style:none}
body.registru .rg-list>li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding:10px 0;border-top:1px solid var(--tk-line)}
body.registru .rg-list>li>span:first-child{flex:1 1 220px;min-width:0}
body.registru .rg-list>li>.rg-chip{flex:none}
body.registru .rg-list strong{display:block;overflow-wrap:anywhere}
body.registru .rg-list small{display:block;color:var(--tk-text-muted);font-size:.75rem}

/* ── 10. Tabs and segmented choices ── */
body.registru .rg-tabs{display:flex;gap:4px;margin:0 0 16px;border-bottom:1px solid var(--tk-line);overflow-x:auto}
body.registru .workspace .rg-tabs>button{flex:none;min-height:40px;max-width:none;width:auto;margin:0 0 -1px;padding:8px 12px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--tk-text-muted);font:600 .875rem/1.3 Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
body.registru .workspace .rg-tabs>button:is([aria-selected="true"],[aria-current="page"]){border-bottom-color:var(--tk-flow);color:var(--tk-text)}
body.registru .rg-segment{display:inline-flex;flex-wrap:wrap;gap:2px;max-width:100%;padding:3px;border:1px solid var(--tk-line);border-radius:8px;background:var(--tk-surface-raised)}
body.registru .workspace .rg-segment>button{min-height:32px;max-width:none;width:auto;margin:0;padding:4px 12px;border:0;border-radius:6px;background:transparent;color:var(--tk-text-muted);font:600 .8125rem/1.3 Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
body.registru .workspace .rg-segment>button[aria-pressed="true"]{background:var(--tk-surface);color:var(--tk-text);box-shadow:0 1px 2px rgb(0 0 0/.18)}

/* ── 11. The console: side menu, search on top, work in the middle ── */
body.registru.operator-active>.top{display:flex;align-items:center;gap:16px;padding:8px 24px;background:var(--tk-background-bar);border-bottom:1px solid var(--tk-line)}
body.registru .rg-find{display:flex;align-items:center;gap:8px;flex:0 1 380px;min-width:0;margin:0;padding:0 12px;border:1px solid var(--tk-line-strong);border-radius:8px;background:var(--tk-surface);color:var(--tk-text-muted)}
body.registru .rg-find[hidden]{display:none}
body.registru .rg-find input{flex:1;min-width:0;min-height:38px;border:0;outline:0;background:transparent;color:var(--tk-text);font:inherit}
body.registru .rg-find:focus-within{outline:3px solid var(--tk-flow);outline-offset:1px}
body.registru .rg-trace{margin:0;color:var(--tk-text-muted);font-size:.75rem}
body.registru>.top .header-actions{margin-left:auto}
body.registru.operator-active #portal-layout{grid-template-columns:240px minmax(0,1fr);align-items:stretch}
body.registru.operator-active #platform-nav{box-sizing:border-box;align-self:stretch;padding:12px;border-right:1px solid var(--tk-line);background:var(--tk-background-bar)}
body.registru #platform-nav .platform-nav-group{margin:0 0 12px;padding:0;border:0}
body.registru #platform-nav .platform-nav-group h2{margin:0;padding:6px 10px 4px;color:var(--tk-text-muted);font:600 .75rem/1.3 Inter,system-ui,sans-serif;letter-spacing:0;text-transform:none}
body.registru #platform-nav .plat-tab{display:flex;align-items:center;gap:10px;width:100%;max-width:none;min-height:40px;margin:0;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:var(--tk-text);font:500 .875rem/1.3 Inter,system-ui,sans-serif;text-align:left;cursor:pointer}
body.registru #platform-nav .plat-tab:hover{background:var(--tk-surface-raised)}
body.registru #platform-nav .plat-tab.on{background:var(--tk-flow-soft);color:var(--tk-flow-text);font-weight:700;box-shadow:inset 3px 0 0 var(--tk-flow)}
body.registru #platform-nav .plat-tab[data-count]::after{content:attr(data-count);display:grid;place-items:center;box-sizing:border-box;min-width:20px;height:20px;margin-left:auto;padding:0 6px;border-radius:10px;background:var(--tk-surface-raised);color:var(--tk-text);font-size:.75rem;font-weight:700}
body.registru.operator-active #portal-layout>.workspace{max-width:1360px;padding:24px}

/* Console figures, charts and lists that already exist, in the new dress. */
body.registru .workspace .plat-kpi{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:2px 12px;padding:8px 0;border:0;border-top:1px solid var(--tk-line);border-radius:0;background:transparent}
body.registru .plat-kpi>span{color:var(--tk-text);font-size:.8125rem;letter-spacing:0;text-transform:none}
body.registru .plat-kpi>b{font:700 .875rem/1.4 Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums}
body.registru .plat-kpi>small{flex-basis:100%;color:var(--tk-text-muted);font-size:.75rem}
body.registru .workspace .plat-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:0 0 16px}
body.registru .workspace .plat-kpis>.plat-kpi{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;padding:12px 16px;border:1px solid var(--tk-line);border-radius:8px;background:var(--tk-surface)}
body.registru .workspace .plat-kpis>.plat-kpi>small{flex-basis:auto}   /* in a column, a full basis pushed the note into a second column, wider than the card */
body.registru .workspace .plat-kpis>.plat-kpi>span{color:var(--tk-text-muted);font-weight:600}
body.registru .workspace .plat-kpis>.plat-kpi>b{font:700 1.75rem/1.2 Sora,Inter,sans-serif}
body.registru .plat-kpi b.plat-warn{color:var(--tk-signal-text)}
body.registru .plat-chart figcaption{color:var(--tk-text-muted);font-size:.8125rem}
body.registru .plat-chart svg{height:110px}
body.registru .plat-bar{fill:var(--tk-flow)}
body.registru .plat-bar.zero{fill:var(--tk-line)}
body.registru .plat-seg.plat-pending{fill:var(--tk-signal)}
body.registru .plat-seg.plat-paid{fill:var(--tk-flow)}
body.registru .plat-seg.plat-demo{fill:var(--tk-flow-line)}
body.registru .plat-seg.plat-pilot{fill:var(--tk-active-text)}
body.registru .plat-seg.plat-grace{fill:var(--tk-line-strong)}
body.registru .plat-seg.plat-expired{fill:var(--tk-text-muted)}
body.registru .plat-seg.plat-suspended{fill:var(--tk-signal-line)}
body.registru .plat-seg.plat-rejected{fill:var(--tk-line)}
body.registru .plat-seg.plat-archived{fill:var(--tk-active-line)}
body.registru .plat-legend li{display:flex;align-items:center;gap:6px}
body.registru .workspace .plat-facts{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px 24px;margin:0}
body.registru .plat-facts dt{color:var(--tk-text-muted);font-size:.75rem;font-weight:600;letter-spacing:0;text-transform:none}
body.registru .plat-facts dd{font-weight:600}
body.registru .plat-history li{border-left-color:var(--tk-flow-line)}

/* The sheet of a company: what can be done is a list of closed headings, one open at a time. */
body.registru .workspace :is(.plat-action,.plat-admin-block){margin:0;padding:0;border:1px solid var(--tk-line-strong);border-radius:8px;background:var(--tk-surface)}
body.registru .workspace :is(.plat-action,.plat-admin-block)>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:8px 12px;color:var(--tk-text);font:600 .875rem/1.3 Inter,system-ui,sans-serif;list-style:none}
body.registru .workspace :is(.plat-action,.plat-admin-block)>summary::-webkit-details-marker{display:none}
body.registru .workspace :is(.plat-action,.plat-admin-block)>summary::after{content:"";width:8px;height:8px;flex:none;border:solid var(--tk-text-muted);border-width:0 2px 2px 0;transform:rotate(45deg)}
body.registru .workspace :is(.plat-action,.plat-admin-block)[open]>summary{border-bottom:1px solid var(--tk-line)}
body.registru .workspace :is(.plat-action,.plat-admin-block)[open]>summary::after{transform:rotate(225deg)}
body.registru .workspace :is(.plat-action,.plat-admin-block)>:not(summary){margin:12px}
body.registru .workspace .plat-action.is-danger{border-color:var(--tk-danger)}
body.registru .workspace :is(.plat-action,.plat-admin-block) h3{display:none}
body.registru .workspace .plat-form{display:flex;flex-direction:column;gap:12px}
body.registru .workspace .plat-form label{gap:4px;color:var(--tk-text);font-size:.8125rem}
body.registru .workspace .plat-form :is(input:not([type=checkbox],[type=radio]),select,textarea){width:100%;min-width:0}
body.registru .workspace .plat-form :is(button.primary,button.danger){align-self:flex-start;width:auto}
body.registru .plat-group{display:grid;gap:8px}
body.registru .workspace .rg-danger{border-style:dashed;border-color:var(--tk-line-strong)}

/* Filters of a console list: one line. */
body.registru .workspace .plat-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0 0 16px;padding:0;border:0;background:transparent}
body.registru .workspace .plat-filter label{display:flex;flex-direction:column;gap:4px;color:var(--tk-text);font-size:.8125rem}
body.registru .workspace .plat-filter input{min-width:260px}
body.registru .workspace .plat-filter select{min-width:180px}

/* Screens of the console that still carry their title as a second heading, and the older demo requests. */
body.registru.operator-active #screen>h2:first-of-type,body.registru.operator-active #screen .operator-page-heading h2{margin-bottom:12px;font-size:1.5rem}
body.registru.operator-active #screen>.work-card{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 8px;padding:12px 16px;border:1px solid var(--tk-line);border-radius:8px;background:var(--tk-surface)}

/* ── 13. The company portal: side menu, bar on top, work in the middle ── */
body.registru.app-signed-in>.top{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;max-width:none;min-height:60px;margin:0;padding:8px 24px 8px 0;background:var(--tk-background-bar);border-bottom:1px solid var(--tk-line)}
body.registru.app-signed-in>.top .brand{box-sizing:border-box;flex:none;justify-content:flex-start;gap:10px;width:240px;min-height:44px;padding:0 18px;font-size:1.25rem}
body.registru.app-signed-in>.top .brand .mark{width:30px;height:30px}
body.registru.app-signed-in>.top .brand-sub{display:none}
body.registru.app-signed-in>.top .app-bar{gap:8px;margin:0}
body.registru .company-switch{box-sizing:border-box;width:100%;max-width:100%;min-height:40px;border-radius:8px}
body.registru .company-switch strong{flex:0 1 auto;min-width:0}
body.registru .company-switch :is(.plan-pill,.chev){flex:none}
body.registru.app-signed-in .company-wrap{flex:0 1 auto;min-width:150px;max-width:340px}
@media(min-width:1440px){body.registru.app-signed-in .company-wrap{min-width:280px}}
@media(max-width:1439.98px){body.registru.app-signed-in .company-wrap{max-width:280px}}
@media(max-width:1279.98px){body.registru.app-signed-in>.top .plan-pill{display:none}}
/* A long name never pushes the other controls of the bar under it. */
body.registru.app-signed-in>.top .user-chip .who{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.registru .company-switch strong{font-size:.875rem}
body.registru .plan-pill{border-radius:999px;font-size:.75rem}
body.registru .company-menu,body.registru .company-menu button{border-radius:8px}
body.registru.app-signed-in>.top .new-work,body.registru.app-signed-in>.top .top-problem{flex:none;min-height:40px;padding:6px 14px;border-radius:8px;font-size:.875rem}
body.registru.app-signed-in>.top .new-work{border:1px solid var(--tk-flow);background:var(--tk-flow);color:var(--tk-on-flow)}
body.registru.app-signed-in>.top .top-problem{border:1px solid var(--tk-signal);background:var(--tk-signal-soft);color:var(--tk-signal-text)}
body.registru.app-signed-in>.top .icon-btn{flex:0 0 40px;width:40px;min-width:40px;height:40px;border:1px solid var(--tk-line);border-radius:8px;background:var(--tk-surface)}
body.registru.app-signed-in>.top .header-actions{flex:none}
body.registru.app-signed-in>.top #logout{min-height:40px;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:var(--tk-flow-text);font:600 .875rem Inter,system-ui,sans-serif;text-decoration:none}
body.registru .app-bar .rg-find{flex:0 100 320px;min-width:120px}
body.registru .rg-find{position:relative}
body.registru .rg-results{position:absolute;z-index:90;top:calc(100% + 4px);right:0;left:0;max-height:min(60vh,420px);overflow:auto;margin:0;padding:6px;list-style:none;border:1px solid var(--tk-line);border-radius:8px;background:var(--tk-surface);box-shadow:0 12px 32px rgb(10 22 32/.22)}
body.registru .rg-results[hidden]{display:none}
body.registru .rg-results li{display:flex;align-items:center;min-height:40px;padding:0 10px;border-radius:6px;color:var(--tk-text);font-size:.875rem;cursor:pointer}
body.registru .rg-results li[aria-selected="true"],body.registru .rg-results li:hover{background:var(--tk-flow-soft);color:var(--tk-flow-text)}
body.registru .rg-results li.none{color:var(--tk-text-muted);cursor:default;background:transparent}
body.registru .rg-sheet-top{display:none}

body.registru #portal-layout.signed-in{display:grid;grid-template-columns:240px minmax(0,1fr);gap:0;align-items:stretch;max-width:none;min-height:calc(100vh - 61px);margin:0;padding:0}
body.registru #portal-layout.signed-in>#account-nav{box-sizing:border-box;display:block;position:sticky;top:0;align-self:start;height:100%;max-height:100vh;overflow-y:auto;margin:0;padding:12px;border:0;border-right:1px solid var(--tk-line);border-radius:0;background:var(--tk-background-bar);color:var(--tk-text)}
body.registru #portal-layout.signed-in>#account-nav[hidden]{display:none}
body.registru #account-nav .work-navigation{display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:100%}
body.registru #account-nav .app-nav-group{display:grid;gap:2px;margin:0 0 12px;padding:0;border:0}
body.registru #account-nav .app-nav-group:not(:has(.nav-link:not([hidden]))){display:none}
body.registru #account-nav .app-nav-group h2{display:block;margin:0;padding:6px 10px 4px;color:var(--tk-text-muted);font:600 .75rem/1.3 Inter,system-ui,sans-serif;letter-spacing:0;text-transform:none}
body.registru #account-nav .work-menu-group:not(.rg-open)>h2,body.registru #account-nav .rg-quiet-group>h2{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.registru #account-nav .nav-foot{margin:auto 0 0;padding-top:8px;border-top:1px solid var(--tk-line)}
body.registru #account-nav :is(.nav-link,.work-menu-toggle){display:flex;align-items:center;justify-content:flex-start;gap:10px;box-sizing:border-box;width:100%;max-width:none;min-height:40px;margin:0;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:var(--tk-text);font:500 .875rem/1.3 Inter,system-ui,sans-serif;text-align:left;text-decoration:none;white-space:normal;box-shadow:none}
body.registru #account-nav .nav-link[hidden],body.registru #account-nav .nav-link.nav-silent{display:none}
body.registru #account-nav :is(.nav-link,.work-menu-toggle):hover{background:var(--tk-surface-raised)}
body.registru #account-nav :is(.nav-link,.work-menu-toggle):focus-visible{outline:3px solid var(--tk-flow);outline-offset:-3px}
body.registru #account-nav :is(.nav-link,.work-menu-toggle) .ni{width:20px;height:20px;color:inherit}
body.registru #account-nav .nav-link[aria-current="page"]{background:var(--tk-flow-soft);color:var(--tk-flow-text);font-weight:700;box-shadow:inset 3px 0 0 var(--tk-flow)}
body.registru #account-nav .work-menu-toggle .ni.chev{width:14px;height:14px;margin-left:auto;transition:transform .15s}
body.registru #account-nav .work-menu-toggle[aria-expanded="true"] .ni.chev{transform:rotate(180deg)}
body.registru #account-nav .rg-open>.work-menu-toggle{display:none}
body.registru #account-nav .work-menu-items{display:grid;gap:2px;position:static;min-width:0;padding:0;border:0;box-shadow:none;background:transparent}
body.registru #account-nav .work-menu-group:not(.rg-open)>.work-menu-items{display:none;padding-left:12px}
body.registru #account-nav .work-menu-group:not(.rg-open)>.work-menu-toggle[aria-expanded="true"]+.work-menu-items{display:grid}
body.registru #account-nav [data-count]::after{content:attr(data-count)/"";display:grid;place-items:center;box-sizing:border-box;min-width:20px;height:20px;margin-left:auto;padding:0 6px;border-radius:10px;background:var(--tk-surface-raised);color:var(--tk-text);font-size:.75rem;font-weight:700}
body.registru #account-nav :is(#setup-badge,#notif-badge):not([hidden]){margin-left:auto;padding:0 7px;border-radius:999px;background:var(--tk-signal);color:var(--tk-on-signal);font-size:.75rem;font-weight:700}
body.registru #account-nav .nav-account{display:grid;margin-top:4px}
body.registru #account-nav .nav-account #logout{width:100%;min-height:40px;border:1px solid var(--tk-line-strong);border-radius:8px;background:var(--tk-surface);color:var(--tk-text);font:600 .875rem Inter,system-ui,sans-serif}
body.registru #portal-layout.signed-in>.workspace{justify-self:center;box-sizing:border-box;width:100%;max-width:1360px;min-width:0;margin:0;padding:24px 24px 48px;border:0;border-radius:0;background:transparent;box-shadow:none}
body.registru .workspace .work-card{margin:0 0 12px;padding:16px;border:1px solid var(--tk-line);border-radius:8px;background:var(--tk-surface)}

/* ── 14. Home ── */
body.registru .home-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:0 0 16px}
body.registru .workspace .home-head h1{margin:0}
body.registru .home-update{display:flex;align-items:center;gap:8px;color:var(--tk-text-muted);font-size:.75rem}
body.registru .workspace .home-update .icon-btn{display:grid;place-items:center;width:40px;min-width:40px;height:40px;min-height:40px;margin:0;padding:0;border:1px solid var(--tk-line);border-radius:8px;background:var(--tk-surface);color:var(--tk-text)}
body.registru .rg-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:0 0 12px}
body.registru .rg-counts:empty{display:none}
body.registru .workspace .rg-counts>.pill{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:2px;box-sizing:border-box;width:100%;max-width:none;min-height:44px;margin:0;padding:12px 16px;border:1px solid var(--tk-line);border-radius:8px;background:var(--tk-surface);color:var(--tk-text-muted);font:600 .8125rem/1.3 Inter,system-ui,sans-serif;text-align:left;white-space:normal;cursor:pointer}
body.registru .workspace .rg-counts>.pill strong{color:var(--tk-text);font:700 1.75rem/1.2 Sora,Inter,sans-serif;font-variant-numeric:tabular-nums}
body.registru .rg-counts>.pill small{font-size:.75rem;font-weight:400}
body.registru .workspace .rg-counts>.pill.warn{border-left:3px solid var(--tk-signal);color:var(--tk-signal-text)}
body.registru .workspace .rg-counts>.pill[aria-pressed="true"]{border-color:var(--tk-flow);background:var(--tk-flow-soft);color:var(--tk-flow-text)}
body.registru .pills{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
body.registru .pills:empty{display:none}
body.registru .workspace .pills>.pill{display:inline-flex;align-items:center;gap:6px;width:auto;max-width:none;min-height:36px;margin:0;padding:4px 14px;border:1px solid var(--tk-line-strong);border-radius:999px;background:var(--tk-surface);color:var(--tk-text);font:600 .8125rem/1.3 Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
body.registru .pills>.pill.warn strong{color:var(--tk-signal-text)}
body.registru .workspace .pills>.pill[aria-pressed="true"]{border-color:var(--tk-flow);background:var(--tk-flow-soft);color:var(--tk-flow-text)}
body.registru .dash-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
body.registru .dash-grid.rail-empty{grid-template-columns:minmax(0,1fr)}
body.registru .signed-in .dash-grid>aside.rail,body.registru .dash-grid>aside.rail{display:grid;gap:12px;position:static;min-width:0;align-content:start;padding:0}
body.registru .signed-in .dash-grid.rail-empty>aside.rail,body.registru .dash-grid.rail-empty>aside.rail{display:none}
body.registru .workspace .dash-list.work-panel{margin:0;padding:0;overflow:hidden;border:1px solid var(--tk-line);border-radius:8px;background:var(--tk-surface)}
body.registru .workspace .dash-list>.rg-panel-head{margin:0;padding:12px 16px 8px}
body.registru .queue{margin:0;padding:0;list-style:none}
body.registru .queue-head,body.registru .queue>.task-card:not(.rg-now){display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.1fr) minmax(172px,1.2fr) minmax(0,.9fr) 116px;align-items:center;gap:4px 12px}
body.registru .queue-head{padding:6px 16px;border-top:1px solid var(--tk-line);color:var(--tk-text-muted);font-size:.75rem;font-weight:600}
body.registru .queue>li{padding:10px 16px;border-top:1px solid var(--tk-line)}
body.registru .queue>li:hover{background:var(--tk-surface-raised)}
body.registru .queue.own>.task-card:not(.rg-now),body.registru .queue-head.own{grid-template-columns:minmax(0,2.4fr) minmax(172px,1.3fr) minmax(0,1fr) 116px}
body.registru .queue .task-body{min-width:0;overflow-wrap:anywhere}
body.registru #screen .queue .task-body h4{margin:0;font:600 .875rem/1.35 Inter,system-ui,sans-serif}
body.registru .workspace .queue .task-title{display:inline-block;min-height:24px;margin:0;padding:0;border:0;background:transparent;color:var(--tk-text);font:inherit;text-align:left;cursor:pointer}
body.registru .workspace .queue .task-title:hover{color:var(--tk-flow-text);text-decoration:underline}
body.registru .queue :is(.task-line,.task-who,.task-status,.task-due){min-width:0;margin:0;font-size:.8125rem}
body.registru .queue .task-line{color:var(--tk-text-muted);font-size:.75rem}
body.registru .queue .task-why{color:var(--tk-text)}
body.registru .queue .task-who{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
body.registru .queue .task-due{font-variant-numeric:tabular-nums}
body.registru .queue .task-due.late{color:var(--tk-signal-text);font-weight:600}
body.registru .queue .rg-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}
body.registru .queue .task-state.danger,body.registru .queue .task-state.late{font-weight:700}
body.registru .workspace .queue .task-open{justify-self:end;width:auto;max-width:100%;min-height:32px;margin:0;padding:4px 12px;font-size:.8125rem;white-space:nowrap}
body.registru .rg-av{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:var(--tk-avatar-bg);color:var(--tk-avatar-text);font-size:.625rem;font-weight:700}
body.registru .rg-av.none{border:1.5px dashed var(--tk-line-strong);background:transparent;color:var(--tk-text-muted)}
body.registru .rg-av .ni{width:12px;height:12px}
body.registru .queue>.rg-now{display:grid;gap:10px;padding:16px;border-left:4px solid var(--tk-flow)}
body.registru #screen .queue>.rg-now h4{margin:2px 0;font:600 1.25rem/1.3 Sora,Inter,sans-serif}
body.registru .queue>.rg-now .task-line{font-size:.8125rem}
body.registru .queue>.rg-now .task-why{margin:6px 0 0;font-size:.875rem}
body.registru .workspace .queue>.rg-now .task-open{justify-self:start;min-height:40px;padding:8px 16px;font-size:.875rem}
body.registru .dash-list .actions:not(:empty){padding:12px 16px;border-top:1px solid var(--tk-line)}
body.registru .dash-list .actions:empty{display:none}
body.registru .dash-list .empty{margin:0 16px 16px}
body.registru .workspace .rail .rail-panel{margin:0;padding:16px}
body.registru #screen .rail-panel h3{font:600 1rem/1.4 Sora,Inter,sans-serif}
body.registru .rail .kv,body.registru .rail-list{font-size:.875rem}
body.registru .workspace .rail-link{min-height:32px;margin:0;padding:0 4px;border:0;background:transparent;color:var(--tk-flow-text);font-size:.8125rem}
body.registru .workspace .home-clock.work-panel{margin:0 0 16px;padding:16px;border-left:4px solid var(--tk-flow);background:var(--tk-surface)}

/* ── 15. All works ── */
body.registru .rg-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 12px}
body.registru .workspace .rg-toolbar form{display:flex;flex-wrap:wrap;gap:8px;margin:0}
body.registru .workspace .rg-toolbar input{min-width:240px}
body.registru .workspace .rg-toolbar .tk-filters{margin:0}
body.registru .rg-tag{display:inline-block;margin:2px 6px 0 0;padding:1px 8px;border:1px solid var(--tk-signal-line);border-radius:999px;background:var(--tk-signal-soft);color:var(--tk-signal-text);font-size:.75rem;font-weight:600}

/* ── 15b. The sheet of a work, a new work, "Am o problemă" ── */
body.registru .workspace .task-screen{display:block;max-width:none}
body.registru .workspace .task-screen .task-back{justify-self:start;width:auto;margin:0 0 8px;padding-left:0}
body.registru .task-screen .rg-head h1{margin:2px 0 8px}
body.registru .task-due-line{color:var(--tk-text-muted);font-size:.8125rem}
body.registru .workspace .task-screen .task-state{font:600 .75rem/1.3 Inter,system-ui,sans-serif}
body.registru .task-main>*,body.registru .task-side>*{margin:0;min-width:0}
body.registru .task-result{font-size:.875rem}
body.registru .workspace .task-screen .task-tabs{display:flex;grid-template-columns:none;gap:4px}
body.registru .workspace .task-screen .task-tabs>button{padding-inline:12px}
body.registru .workspace .task-screen .task-tabs>button[aria-current="true"]{border-bottom-color:var(--tk-flow);color:var(--tk-text)}
body.registru #execution-checklist:empty{display:none}
body.registru .task-work:has(#execution-checklist:empty) .rg-tabs{margin-bottom:0;border-bottom:0}
body.registru .workspace .task-actions{display:grid;gap:8px}
body.registru .workspace .task-actions:not(:has(*)){display:none}
body.registru .workspace .task-screen .task-actions :is(.primary,.secondary,.problem){width:100%;max-width:100%;margin:0}
body.registru .workspace .task-actions .execution-actions{display:grid;gap:8px;margin:0}
body.registru .workspace .task-actions .execution-actions[hidden]{display:none}
body.registru .workspace .task-actions .work-panel{margin:0;padding:0;border:0}
body.registru .workspace .task-actions .task-note,body.registru .workspace .task-actions p{margin:0;font-size:.8125rem}
body.registru .workspace .task-more>summary{justify-content:center;text-align:center;font-weight:600}
body.registru .workspace .task-more-list{display:grid;gap:8px;padding-top:8px}
body.registru .workspace .task-more-list h3{margin:8px 0 0;color:var(--tk-text-muted);font-size:.75rem}
body.registru .task-facts dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 16px;margin:0;font-size:.8125rem}
body.registru .task-facts dt{color:var(--tk-text-muted)}
body.registru .task-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}
body.registru .workspace .task-blocker{gap:10px;padding:16px;border:1px solid var(--tk-signal-line);border-left:4px solid var(--tk-signal);border-radius:8px;background:var(--tk-signal-soft)}
body.registru .workspace .blocker-banner{margin:0;padding:0;border:0;background:transparent;color:var(--tk-signal-text);font:600 1rem/1.4 Sora,Inter,sans-serif}
body.registru .workspace .blocker-reason{margin:0;padding:0;border:0;font-size:.9375rem}
body.registru .workspace .task-blocker .primary{justify-self:start;width:auto}
body.registru .workspace .task-blocker .quick-replies .secondary{width:auto;min-height:32px;border-radius:999px;font-weight:500}
body.registru .workspace .task-returned{margin:0;border:1px solid var(--tk-signal-line);border-left:4px solid var(--tk-signal);border-radius:8px;background:var(--tk-signal-soft)}
body.registru .task-returned strong{color:var(--tk-signal-text)}
body.registru .workspace .task-asked{margin:0;border-left-color:var(--tk-flow);border-radius:8px}
body.registru .workspace .task-new{margin:0}
body.registru .workspace .task-new-form{box-sizing:border-box;display:grid;gap:12px;max-width:560px}
body.registru .workspace .task-new-form>*{margin:0}
body.registru .workspace .task-new-form>.primary{justify-self:start;width:auto;min-width:200px}
body.registru .workspace .task-new-form .task-review-choice{border-radius:8px}
body.registru .workspace .problem-list{max-width:720px}
body.registru .workspace .problem-list button{display:block;width:100%;min-height:56px;text-align:left}
body.registru .task-side .blocker-options{grid-template-columns:minmax(0,1fr);gap:8px}
body.registru .task-screen .blocker-option{min-height:44px;border-radius:8px}
body.registru .task-screen .task-actions fieldset{min-width:0;margin:0;padding:0;border:0}
body.registru .task-screen .task-actions legend{margin-bottom:4px;padding:0;font-weight:600;font-size:.875rem}
body.registru .workspace .task-screen .task-actions :is(button.primary,button.secondary,button.problem),body.registru .workspace .task-screen .task-blocker :is(button.primary,#work-claim){min-height:48px}
/* Between the phone and the wide screen the steps of the work come right under the title. */
@media(min-width:700px) and (max-width:1099.98px){
  body.registru .task-screen .rg-cols{display:flex;flex-direction:column;align-items:stretch}
  body.registru .task-screen .task-side{display:contents}
  body.registru .workspace .task-screen .task-actions{order:-1;display:flex;flex-wrap:wrap;align-items:flex-start}
  /* With nothing but "Mai mult" in it, the panel stays after what the work says. */
  body.registru .workspace .task-screen .task-actions:not(:has(.execution-actions,#task-problem,.work-panel)){order:3}
  body.registru .workspace .task-screen .task-actions .execution-actions:not([hidden]){display:flex;flex-wrap:wrap;gap:8px}
  body.registru .workspace .task-screen .task-actions :is(button.primary,button.secondary,button.problem){width:auto;max-width:560px}
  body.registru .workspace .task-screen .task-actions :is(.task-more,.task-note,#task-problem-panel){flex:1 1 100%;min-width:0}
  body.registru .workspace .task-screen .task-actions .task-more-list{max-width:560px}
  body.registru .workspace .task-screen .task-actions .task-more-list :is(button.primary,button.secondary,button.problem),body.registru .workspace .task-screen .task-actions #task-problem-panel :is(button.primary){width:100%}
}
body.registru .workspace .task-confirm{max-width:560px}
body.registru .workspace .task-confirm .rg-panel{display:grid;gap:12px}
body.registru .workspace .task-confirm .rg-panel>*,body.registru .workspace .task-confirm form>*{margin:0}
body.registru .workspace .task-confirm form{display:grid;gap:12px}
body.registru .workspace .task-confirm button{justify-self:start}

/* ── 15d. Console: packages and the chosen filter of the orders ── */
body.registru .workspace .plat-plans{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
body.registru .workspace .plat-plan{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0}
body.registru .workspace .plat-plan>div{flex:1 1 220px}
body.registru .workspace .plat-plan h3,body.registru .workspace .plat-plan p{margin:0}
body.registru .workspace .plat-plan-facts{color:var(--tk-text-muted);font-variant-numeric:tabular-nums}
body.registru .workspace .plat-plan-sheet{max-width:560px;margin:0 0 16px}
body.registru .workspace .plat-orders-filter>button[aria-pressed="true"]{border-color:var(--tk-flow);background:var(--tk-flow-soft);color:var(--tk-flow-text)}

/* ── 15c. Attendance, leave and visits ── */
body.registru .workspace .hr-team{margin:0 0 12px}
body.registru .workspace .hr-team>button.hr-waiting{color:var(--tk-signal-text);font-weight:700}
body.registru .workspace .leave-balance strong{display:inline-block;margin-right:4px;font:700 1.75rem/1.2 Sora,Inter,sans-serif;font-variant-numeric:tabular-nums}
body.registru .workspace #leave-new-box>summary{min-height:40px;padding:8px 16px;border:1px solid var(--tk-flow);border-radius:8px;background:var(--tk-flow);color:var(--tk-on-flow);font-weight:600}
body.registru .workspace #leave-new-box[open]>summary{border-color:var(--tk-line-strong);background:var(--tk-surface);color:var(--tk-text)}
body.registru .workspace .rg-tabbar{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px}
body.registru .workspace .rg-tabbar>.report-tabs{flex:1 1 auto;min-width:0}
body.registru .workspace .rg-more>summary{display:flex;align-items:center;gap:6px;min-height:44px;padding:0 8px;color:var(--tk-flow-text);font-weight:600;cursor:pointer}
body.registru .workspace .rg-more-body{display:flex;flex-wrap:wrap;gap:8px;padding:4px 0 8px}
body.registru .workspace .rg-more-body>button[aria-current="page"]{border-color:var(--tk-flow);background:var(--tk-flow-soft)}

/* ── 16. Narrow portal: a bar at the bottom, the menu as a sheet ── */
@media(max-width:1099.98px){
  body.registru.app-signed-in>.top .brand{width:200px}
  body.registru #portal-layout.signed-in{grid-template-columns:200px minmax(0,1fr)}
  body.registru .dash-grid{grid-template-columns:minmax(0,1fr)}
  body.registru .dash-grid>aside.rail{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
  body.registru.app-signed-in>.top #fn-find{display:none}
  body.registru.app-signed-in>.top .plan-pill{display:none}
  body.registru.app-signed-in>.top .user-chip{display:none}
  body.registru.app-signed-in>.top{padding-right:12px}
  body.registru.app-signed-in>.top .header-actions:not(:has(#logout)){display:none}
  body.registru .queue-head{display:none}
  body.registru .queue>.task-card:not(.rg-now),body.registru .queue.own>.task-card:not(.rg-now){grid-template-columns:minmax(0,1fr) auto}
  body.registru .queue>.task-card:not(.rg-now)>:not(.task-open){grid-column:1}
  body.registru .queue>.task-card:not(.rg-now)>.task-open{grid-column:2;grid-row:1/span 4;align-self:center}
}
@media(max-width:1365.98px) and (min-width:1100px){
  body.registru.app-signed-in>.top .user-chip .who{display:none}
}
/* A narrow tablet: the sign alone, so that the company, both buttons, the bell and the way out fit. */
@media(min-width:700px) and (max-width:899.98px){
  body.registru.app-signed-in>.top .brand{width:auto;gap:0;padding:0 4px 0 12px;font-size:0}
  body.registru.app-signed-in .company-wrap{min-width:110px}
}
@media(max-width:699.98px){
  body.registru.app-signed-in>.top{gap:8px;min-height:56px;padding:6px 12px}
  body.registru.app-signed-in>.top .brand{width:auto;padding:0;gap:0;font-size:0}
  body.registru.app-signed-in>.top :is(.new-work,.top-problem,.plan-pill){display:none}
  body.registru.app-signed-in .app-bar{flex:1}
  body.registru.app-signed-in .bar-spacer{display:none}
  body.registru.app-signed-in .company-wrap{flex:1 1 auto;min-width:0;max-width:none}
  body.registru.app-signed-in .company-switch{width:100%;max-width:none;min-height:44px}
  body.registru.app-signed-in>.top .icon-btn{flex:0 0 44px;width:44px;min-width:44px;height:44px}
  body.registru.app-signed-in>.top .header-actions:not(:has(#logout)){display:flex}
  body.registru.app-signed-in>.top .user-chip{display:inline-flex}
  body.registru.app-signed-in>.top .user-chip .who{display:none}
  body.registru #portal-layout.signed-in{display:block;padding-bottom:88px}
  body.registru #portal-layout.signed-in>.workspace{padding:16px 12px 24px}
  body.registru #portal-layout.signed-in>#account-nav{display:none;position:fixed;top:auto;right:0;bottom:0;left:0;z-index:85;height:auto;max-height:86vh;padding:12px 12px calc(76px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--tk-line);border-radius:16px 16px 0 0;box-shadow:0 -10px 34px rgb(0 0 0/.28)}
  body.registru.nav-open #portal-layout.signed-in>#account-nav{display:block}
  body.registru #account-nav .rg-sheet-top{display:grid;gap:8px;margin:0 0 12px}
  body.registru #account-nav .rg-sheet-top .rg-find{flex:none}
  body.registru #account-nav .rg-sheet-top .rg-find{flex-wrap:wrap}
  body.registru #account-nav .rg-sheet-top .rg-results{position:static;flex:1 1 100%;margin:0 0 8px;box-shadow:none}
  body.registru #account-nav .rg-nav-problem{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;margin:0;border:1px solid var(--tk-signal);border-radius:8px;background:var(--tk-signal-soft);color:var(--tk-signal-text);font:600 1rem Inter,system-ui,sans-serif}
  body.registru #account-nav .rg-nav-problem[hidden]{display:none}
  body.registru #account-nav :is(.nav-link,.work-menu-toggle){min-height:48px;font-size:1rem}
  body.registru #account-nav .nav-account{display:grid;gap:8px;margin-top:8px}
  body.registru #account-nav .nav-account #logout{min-height:48px;font-size:1rem}
  body.registru .app-backdrop{position:fixed;inset:0;z-index:75;background:rgb(7 14 20/.55)}
  body.registru.nav-open .app-backdrop{display:block}
  body.registru.app-signed-in .app-bottom:not([hidden]){display:flex;align-items:center;position:fixed;right:0;bottom:0;left:0;z-index:88;padding:4px 4px calc(4px + env(safe-area-inset-bottom));border-top:1px solid var(--tk-line);background:var(--tk-background-bar)}
  body.registru .app-bottom button{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:54px;margin:0;padding:2px;border:0;border-radius:8px;background:transparent;color:var(--tk-text-muted);font:600 .75rem/1.3 Inter,system-ui,sans-serif}
  body.registru .app-bottom button[hidden]{display:none}
  body.registru .app-bottom button .ni{width:22px;height:22px}
  body.registru .app-bottom button[aria-current="page"]{background:var(--tk-flow-soft);color:var(--tk-flow-text)}
  body.registru .app-bottom button.app-fab{flex:0 0 56px;width:56px;height:56px;min-height:56px;margin:0 6px;border-radius:14px;background:var(--tk-flow);color:var(--tk-on-flow)}
  body.registru .app-bottom button.app-fab span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  body.registru .app-bottom button.app-fab .ni{width:26px;height:26px}
  body.registru .app-bottom button#app-go-problem.app-fab{background:var(--tk-signal);color:var(--tk-on-signal)}
  body.registru:has(#portal-layout.signed-in) .site-footer{padding-bottom:92px}
  body.registru .rg-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.registru .workspace .rg-counts>.pill strong{font-size:1.375rem}
  body.registru .workspace .pills>.pill{min-height:44px;font-size:.875rem}
  body.registru .workspace .home-update .icon-btn{width:44px;min-width:44px;height:44px;min-height:44px}
  body.registru .dash-grid>aside.rail{grid-template-columns:minmax(0,1fr)}
  /* A work takes little height, so that the first two are on the screen: who and state side by side, the deadline beside the button. */
  body.registru .queue>.task-card:not(.rg-now),body.registru .queue.own>.task-card:not(.rg-now){grid-template-columns:minmax(0,1fr) auto;row-gap:2px}
  body.registru .queue>.task-card:not(.rg-now)>.task-body{grid-column:1/-1}
  body.registru .queue>.task-card:not(.rg-now)>:is(.task-who,.task-due){grid-column:1}
  body.registru .queue>.task-card:not(.rg-now)>.task-status{grid-column:2;justify-self:end}
  body.registru .queue>.task-card:not(.rg-now)>.task-open{grid-column:2;grid-row:auto;justify-self:end;align-self:center}
  body.registru .workspace .queue>.task-card:not(.rg-now)>.task-open{width:auto;min-height:48px;font-size:.875rem}
  body.registru .home-head{margin-bottom:8px}
  body.registru .workspace .home-head h1{font-size:1.25rem}
  body.registru .workspace .rg-counts{gap:8px;margin-bottom:8px}
  body.registru .workspace .rg-counts>.pill{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;min-height:48px;padding:4px 12px}
  body.registru .rg-counts>.pill small{display:none}
  body.registru .pills{flex-wrap:nowrap;overflow-x:auto;margin-bottom:8px;padding:2px}
  body.registru .workspace .pills>.pill{flex:0 0 auto}
  body.registru .dash-list .rg-panel-head{min-height:48px;padding-block:0}
  body.registru #screen .queue .task-body h4{font-size:1rem}
  body.registru .queue .task-line,body.registru .queue :is(.task-who,.task-status,.task-due){font-size:.875rem}
  body.registru .workspace .queue>.rg-now .task-open,body.registru .workspace .rg-now .problem{justify-self:stretch;flex:1 1 100%;min-height:48px;font-size:1rem}
  body.registru .workspace .queue .task-title{display:inline-block;min-height:44px;padding:10px 0}
  body.registru .workspace .rail-link{min-height:44px}
  body.registru .workspace .rg-toolbar form{flex:1 1 100%}
  body.registru .workspace .rg-toolbar input{flex:1;min-width:0}
  /* The next step of a work stays under the thumb; with "Mai mult" or the problem form open it goes back into the page. */
  body.registru:has(#screen .task-screen) .app-bottom:not([hidden]){display:none}
  body.registru:has(#screen .task-screen) #portal-layout.signed-in{padding-bottom:0}
  body.registru .task-screen .rg-cols{display:flex;flex-direction:column;align-items:stretch;gap:12px}
  body.registru .task-screen .task-side{display:contents}
  body.registru .workspace .task-screen .task-actions{order:5;position:sticky;bottom:0;z-index:20;margin:0 -12px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-width:1px 0 0;border-radius:0;background:var(--tk-background-bar)}
  body.registru .workspace .task-screen .task-actions:has(details[open]),body.registru .workspace .task-screen .task-actions:has(#task-problem-panel:not([hidden])){position:static;margin:0;padding:16px;border-width:1px;border-radius:8px;background:var(--tk-surface)}
  /* The step across the width; "Am o problemă" (or sending back) and "Mai mult" side by side under it. */
  body.registru .workspace .task-screen .task-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.registru .workspace .task-screen .task-actions>*{grid-column:1/-1;min-width:0}
  body.registru .workspace .task-screen .task-actions>.execution-actions:not([hidden]){display:contents}
  body.registru .workspace .task-screen .execution-actions>button:first-child{grid-column:1/-1}
  body.registru .workspace .task-screen .task-actions>#task-problem:not([hidden]),body.registru .workspace .task-screen .task-actions:has(>#task-problem:not([hidden]))>.task-more:not([open]),body.registru .workspace .task-screen .task-actions:has(#execution-return:not(:first-child))>.task-more:not([open]){grid-column:auto}
  body.registru .workspace .task-screen .task-more:not([open])>summary{min-height:44px;border:1px solid var(--tk-line-strong);border-radius:8px}
  body.registru:has(#screen .task-screen) .to-top,body.registru:has(#screen :is(input,textarea,select):focus) .to-top{display:none}
  body.registru .task-screen .task-facts{order:4}
  body.registru .workspace .task-blocker .primary{justify-self:stretch;width:100%}
  body.registru .workspace .task-blocker .quick-replies .secondary{min-height:44px}
  body.registru .workspace .task-new-form>.primary{justify-self:stretch;width:100%}
  body.registru .workspace .task-confirm button{justify-self:stretch}
}

/* ── 12. Narrower screens ── */
@media(max-width:1099.98px){
  body.registru .rg-cols{grid-template-columns:minmax(0,1fr)}
  body.registru.operator-active #portal-layout{grid-template-columns:200px minmax(0,1fr)}
  body.registru .rg-trace{display:none}
}
@media(max-width:699.98px){
  body.registru,body.registru .workspace{font-size:1rem}
  body.registru h1,body.registru .workspace h1{font-size:1.375rem}
  body.registru .workspace :is(button.primary,.primary,button.secondary,.secondary,button.quiet,.quiet,button.problem,.problem,button.danger,summary.danger,a.danger,.compact){min-height:48px;font-size:1rem}
  body.registru .workspace :is(input:not([type=checkbox],[type=radio],[type=file],[type=range],[type=hidden]),select,textarea){min-height:48px;font-size:1rem}
  body.registru .workspace summary{min-height:48px}
  body.registru .workspace .rg-link{min-height:44px}
  body.registru .workspace .rg-tabs>button{min-height:48px}
  body.registru .workspace .rg-segment>button{min-height:44px;font-size:.875rem}
  body.registru .rg-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.registru .rg-tile>b{font-size:1.375rem}
  body.registru.operator-active>.top{flex-wrap:wrap;padding:8px 12px}
  body.registru.operator-active>.top .rg-find{order:3;flex:1 1 100%}
  body.registru .rg-find input{min-height:46px;font-size:1rem}
  body.registru.operator-active #portal-layout{grid-template-columns:minmax(0,1fr)}
  body.registru.operator-active #platform-nav{padding:8px 12px;border-right:0;border-bottom:1px solid var(--tk-line)}
  body.registru #platform-nav .plat-tab{min-height:48px;font-size:1rem}
  body.registru.operator-active #portal-layout>.workspace{padding:16px 12px}
  body.registru .workspace .plat-filter>*{flex:1 1 100%}
  body.registru .workspace .plat-filter :is(input,select){width:100%;min-width:0}
  body.registru .workspace .rg-table{border:0;background:transparent}
  body.registru .workspace .rg-cards table,body.registru .workspace .rg-cards tbody{display:block;width:100%}
  body.registru .workspace .rg-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  body.registru .workspace .rg-cards tr{display:grid;gap:4px;margin:0 0 8px;padding:12px;border:1px solid var(--tk-line);border-radius:8px;background:var(--tk-surface)}
  body.registru .workspace .rg-cards td{display:block;height:auto;padding:0;border:0;text-align:left;font-size:.875rem;white-space:normal;overflow-wrap:anywhere}
  body.registru .workspace .rg-cards td:empty{display:none}
  body.registru .workspace .rg-cards td[data-label]::before{content:attr(data-label) ": ";color:var(--tk-text-muted);font-size:.8125rem}
  body.registru .workspace .rg-cards td small{display:block;font-size:.8125rem}
  body.registru .workspace .rg-cards .rg-act{display:flex;flex-wrap:wrap;gap:8px;padding-top:4px}
  body.registru .workspace .rg-cards .rg-act>*{flex:1 1 120px;margin-left:0}
  body.registru .workspace .rg-cards .r{text-align:left}
}
/* ── 15e. The rest of the portal ── */
/* The first-steps card of a new company holds the one filled button; the list under it steps back. */
body.registru .workspace .dash:has(#start-card:not([hidden])) .dash-list button.primary{background:var(--tk-surface);border-color:var(--tk-line-strong);color:var(--tk-text)}
body.registru .workspace .sensitive-zone{border-color:var(--tk-danger)}
body.registru #screen .project-filter-form{align-items:flex-end;gap:8px}
body.registru #screen .project-filter-form .tk-filters{flex:0 0 auto;margin:0}
body.registru #screen .project-filter-form .tk-filters[open]{flex:1 1 100%}
body.registru #screen .project-filter-form .tk-filters-on{flex:1 1 100%;margin:0}
@media(max-width:699.98px){
  body.registru .workspace summary:is(.primary,.secondary){min-height:48px}
  body.registru .workspace #leave-new-box>summary{min-height:48px}
}
/* Signing in on a narrow screen: the form first, what Tasko is under it. Before the server has named the person there is no empty circle. */
@media(max-width:850px){
  body.registru:is(.account-page,.operator-page) #portal-layout:not(.signed-in)>#account-intro{order:2;margin:16px 0 0}
}
body.registru>.top #logout+.user-chip:has(.who:empty){display:none}
@media(prefers-reduced-motion:reduce){body.registru *{transition:none!important;animation:none!important}}
