/* Shared workbench: clear steps, a number ticket, and Skrepych's desk. */
:root { --work-accent:#245e82; --ticket:#216f9f; --step:#e7f58b; }
.brand-mark { width:44px; height:44px; border:0; border-radius:0; background:var(--ink); mask:url('./assets/clip-mark.svg') center/contain no-repeat; }
body[data-page="home"] .brand-mark { background:var(--cream); }
.brand { font-size:17px; gap:12px; letter-spacing:-.035em; }
.nav-link { font-size:14px; }
.local-badge { font-size:12px; }
.hero-eyebrow { font-size:14px; }
.hero-copy p { font-size:17px; max-width:360px; opacity:1; }
.hero-signature { max-width:266px; }
.hero-signature p { font-size:17px; }
.hero-signature p span { font-size:14px; opacity:1; }
.hero-action { width:280px; }
.hero-action-right { width:264px; }
.hero-button { font-size:16px; }
.hero-action p { font-size:14px; max-width:240px; opacity:1; }
.footer { font-size:12px; line-height:1.6; }
body[data-page="home"] .footer { color:var(--cream); }
.workspace { max-width:1440px; padding-top:40px; }
.section-heading { align-items:center; border-bottom:2px solid var(--ink); margin-bottom:32px; padding-bottom:28px; }
.section-heading h1 { font-size:clamp(30px,3.25vw,46px); letter-spacing:-.025em; line-height:1.18; }
.eyebrow { font-size:12px; color:var(--work-accent); font-weight:600; }
.section-description { font-size:16px; max-width:650px; }
.section-index { font:400 76px/1 var(--display); color:var(--work-accent); letter-spacing:-.07em; }
.assignment-layout { grid-template-columns:minmax(0,1fr) 330px; gap:40px; }
.phrase-block { background:var(--blue-pale); border:0; padding:22px 24px; border-radius:8px; margin-bottom:30px; }
.phrase-block>label { font-size:18px; }
label span { font-size:12px; }
.inline-control { flex-wrap:nowrap; }
.inline-control input { flex-basis:0; }
.inline-control button { min-height:40px; }
.form-section { min-width:0; margin:0 0 28px; padding:24px; border:0; background:var(--white); border-radius:8px; }
.form-section legend { float:left; width:100%; margin:0 0 24px; padding:0; display:flex; align-items:center; gap:12px; font-size:20px; font-weight:600; letter-spacing:-.035em; }
.form-section legend span { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; border-radius:50%; background:var(--step); color:var(--ink); font-size:12px; letter-spacing:0; font-variant-numeric:tabular-nums; }
.form-section .form-grid { clear:both; gap:24px 20px; }
.field label { font-size:14px; font-weight:500; }
.field input,.field select,.phrase-block input { min-height:50px; font-size:15px; border-radius:6px; }
.field-note { font-size:13px; line-height:1.6; }
.field-error,.edit-code { font-size:13px; }
.edit-code { min-height:32px; }
.code-control input { background:var(--blue-pale); color:var(--work-accent); font-weight:600; letter-spacing:.08em; }
input::placeholder { color:#70717b; }
.suggestions button { font-size:14px; min-height:44px; }
.result-column { position:static; }
.preview-card { background:var(--ticket); color:var(--cream); padding:28px; border:0; border-radius:10px; }
.preview-card::before { content:''; position:absolute; right:23px; top:20px; width:38px; height:38px; margin:0; background:var(--cream); mask:url('./assets/clip-mark.svg') center/contain no-repeat; opacity:.8; }
.preview-label { color:var(--cream); font-size:12px; padding-right:35px; margin:0 0 34px; }
#preview-number { font:600 29px/1.25 var(--font); letter-spacing:-.045em; }
#preview-status { font-size:14px; line-height:1.6; margin-top:20px; }
.preview-disclaimer { color:var(--cream); border-color:#ffffff55; font-size:12px; }
.copy-line { font-size:14px; }
.primary,.secondary,.quiet-button { font-size:14px; }
.submit-button { min-height:56px; font-size:15px; }
.desk-character { width:270px; max-width:100%; margin:30px 0 0 auto; }
.desk-character .character-media { width:100%; }
.desk-character img,.desk-character video { border-radius:135px 135px 12px 12px; }
.desk-character figcaption { display:flex; flex-direction:column; gap:3px; padding:14px 4px 0; font-size:13px; }
.desk-character figcaption strong { font-size:15px; font-weight:600; }
.desk-character figcaption span { color:var(--muted); }
.registry-create { display:flex; align-items:center; justify-content:space-between; gap:22px; white-space:nowrap; padding:12px 14px 12px 24px; }
.registry-create span { display:grid; place-items:center; width:32px; height:32px; background:var(--step); color:var(--ink); border-radius:50%; font-size:22px; }
.filters { background:var(--white); padding:24px; border-radius:8px; grid-template-columns:minmax(200px,1.5fr) minmax(150px,1fr) minmax(130px,1fr) minmax(125px,.8fr) minmax(125px,.8fr); gap:18px; }
.search-field { grid-column:span 2; }
.filters .field:nth-child(2) { grid-column:span 3; }
.filters .field:nth-child(3) { grid-column:span 2; }
.filters .filter-actions { grid-column:auto; align-self:end; gap:8px; flex-direction:column; }
.filters .filter-actions button { min-height:40px; padding:9px 12px; }
.registry-caption { display:flex; justify-content:space-between; align-items:baseline; gap:20px; padding:30px 0 16px; border-bottom:2px solid var(--work-accent); }
.registry-caption h2 { font-size:22px; letter-spacing:-.045em; margin:0; }
.registry-caption>span { font-size:12px; color:var(--muted); }
.table-wrap:focus-visible { outline:3px solid var(--work-accent); outline-offset:4px; }
table { background:var(--white); font-size:14px; }
th { background:var(--blue-pale); padding:16px 14px; font-size:11px; text-transform:none; letter-spacing:0; color:var(--ink); }
td { padding:24px 14px; }
td strong { font-size:14px; }
td:first-child { border-left:3px solid transparent; }
td:first-child strong { font-size:17px; color:var(--work-accent); font-weight:600; line-height:1.35; }
tr:hover td { background:var(--blue-pale); }
tr:hover td:first-child { border-left-color:var(--work-accent); }
.cell-secondary { font-size:12px; line-height:1.5; }
.copy-row { min-height:42px; font-size:12px; }
.registry-bottom { display:flex; justify-content:space-between; align-items:flex-end; gap:28px; padding-top:32px; }
.registry-bottom .desk-character { width:250px; margin:0; }
.archive-note { font-size:26px; font-weight:500; letter-spacing:-.035em; line-height:1.5; margin-bottom:34px; }
.archive-note>span:last-child { font-size:16px; color:var(--muted); font-weight:400; letter-spacing:0; }
.clip-emblem { display:block; width:62px; height:62px; margin-bottom:20px; background:var(--work-accent); mask:url('./assets/clip-mark.svg') center/contain no-repeat; }
.empty-state { font-size:20px; }
/* Assignment is a working surface: fields first, explanations on demand. */
body[data-page="assign"] .topbar { min-height:64px; padding-block:8px; }
[data-view="assign"].workspace { padding-top:16px; padding-bottom:32px; }
[data-view="assign"] .section-heading { padding-bottom:16px; margin-bottom:18px; gap:18px; }
[data-view="assign"] .eyebrow { display:none; }
[data-view="assign"] .section-heading h1 { font-size:32px; margin-bottom:8px; }
[data-view="assign"] .section-description { font-size:14px; }
.help-toggle { flex-shrink:0; font-size:13px; font-weight:600; color:var(--ink); background:var(--step); border:1px solid var(--work-accent); }
.help-toggle::before { content:'?'; display:inline-grid; place-items:center; width:21px; height:21px; border:1.5px solid currentColor; border-radius:50%; margin-right:8px; }
.help-toggle:hover:not(:disabled) { background:var(--ink); border-color:var(--ink); color:var(--cream); }
.help-toggle[aria-expanded="true"] { background:var(--ink); color:var(--cream); border-color:var(--ink); }
.assignment-layout { gap:28px; grid-template-columns:minmax(0,1fr) 370px; }
.assignment-layout .form-section { padding:16px 20px; margin-bottom:10px; }
.assignment-layout .form-section legend { font-size:17px; margin-bottom:10px; gap:10px; }
.assignment-layout .form-section legend span { width:26px; height:26px; flex-basis:26px; font-size:11px; }
.assignment-layout .form-grid { gap:14px 18px; }
.assignment-layout :is(#counterparty-note,#project-note) { font-size:12px; line-height:1.4; margin-top:6px; }
.assignment-layout .field label { margin-bottom:6px; }
.assignment-layout .field input,.assignment-layout .field select { min-height:44px; padding:10px 12px; }
.assignment-layout .code-control { display:flex; align-items:center; gap:8px; }
.assignment-layout .code-control input { min-width:0; }
.assignment-layout .edit-code { flex-shrink:0; margin:0; font-size:12px; white-space:nowrap; }
.assignment-layout:not([data-show-help="true"]) :is(#issuer-help,#status-help,#counterparty-help,#counterparty-code-help,#project-help,#project-code-help,#project-date-help,#numeric-help,#contract-date-help) { display:none; }
.assignment-layout .result-column { background:#2175a9; border-radius:12px; padding-top:4px; padding-bottom:18px; color:var(--cream); }
.assignment-layout .desk-character { width:270px; margin:0 auto; }
.assignment-layout .desk-character img,.assignment-layout .desk-character video { border-radius:0; mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 7%,#000 93%,transparent); mask-composite:intersect; }
.assignment-layout .preview-card { padding:10px 24px 16px; background:transparent; border:0; border-radius:0; }
.assignment-layout .preview-card::before { width:26px; height:26px; top:14px; right:18px; }
.assignment-layout .preview-label { margin-bottom:10px; font-size:12px; letter-spacing:.12em; }
.assignment-layout #preview-number { font-size:34px; font-weight:800; line-height:1.12; letter-spacing:-.035em; }
.assignment-layout #preview-status { font-size:13px; line-height:1.4; margin-top:8px; }
.assignment-layout .preview-disclaimer { margin-top:12px; padding-top:10px; font-size:11px; line-height:1.4; }
.assignment-layout .copy-line { margin-top:8px; font-size:13px; }
.assignment-layout .copy-line:empty { display:none; }
.assignment-layout .submit-button { min-height:56px; margin:0 24px; width:calc(100% - 48px); font-size:16px; font-weight:700; background:var(--step); border-color:var(--step); color:var(--ink); box-shadow:0 4px 0 #123f5b; }
.assignment-layout .submit-button:hover:not(:disabled) { background:var(--cream); border-color:var(--cream); color:var(--ink); }
.assignment-layout .submit-button:disabled { background:#d0dce3; border-color:#d0dce3; color:#516675; opacity:1; box-shadow:none; }
.assignment-layout .submit-button:focus-visible { outline:3px solid var(--cream); outline-offset:4px; }
.assignment-layout .result-column>.message,.assignment-layout .result-column>.saved-card { margin:12px 16px; }
.assignment-layout .preview-label,.assignment-layout .preview-card .preview-disclaimer { color:var(--cream); }
.assignment-layout .preview-card::before { background:var(--cream); }
.assignment-layout .result-column .saved-card { color:var(--ink); }
.phrase-block textarea { display:block; width:100%; min-width:0; flex:1; resize:vertical; min-height:84px; border:1px solid var(--line); border-radius:6px; padding:12px; font:15px/1.5 var(--font); color:var(--ink); background:var(--white); }
.phrase-block textarea::placeholder { color:#70717b; }
.description-cell { white-space:pre-wrap; overflow-wrap:anywhere; min-width:180px; max-width:320px; font-weight:400; }
.phrase-disclosure { font-size:13px; color:var(--muted); }
.phrase-disclosure summary { cursor:pointer; padding:10px 0; color:var(--work-accent); }
.phrase-disclosure summary span { font-size:12px; color:var(--muted); margin-left:8px; }
.phrase-disclosure summary:focus-visible { outline:3px solid var(--work-accent); outline-offset:3px; }
.phrase-disclosure .phrase-block { margin:8px 0 0; padding:18px; }
@media(min-width:761px) and (max-height:800px) {
  .assignment-layout .desk-character { width:240px; }
}
@media(max-width:1100px) {
  .inline-control { flex-wrap:wrap; }
  .inline-control input { flex-basis:100%; }
  .assignment-layout { grid-template-columns:minmax(0,1fr) 330px; gap:24px; }
  .form-section { padding:20px; }
  .hero-action { width:250px; }
  .hero-action-right { width:230px; }
  .hero-button { font-size:14px; }
  .hero-copy p { font-size:15px; max-width:280px; }
  .hero-signature { max-width:215px; }
  .hero-signature p { font-size:15px; }
  .hero-signature p span { font-size:13px; }
  .filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .search-field,.filters .field:nth-child(2),.filters .field:nth-child(3) { grid-column:auto; }
  .filters .filter-actions { flex-direction:row; align-items:center; grid-column:1/-1; }
}
@media(max-width:900px) {
  .assignment-layout { grid-template-columns:minmax(0,1fr) 300px; gap:20px; }
  .form-section .field { grid-column:1/-1; }
  .preview-card { padding:24px; }
}
@media(max-width:760px) {
  .topbar { grid-template-columns:1fr; gap:12px; }
  .brand { font-size:17px; }
  .brand-mark { width:38px; height:38px; }
  .topbar nav { position:absolute; right:20px; top:18px; }
  .nav-link { font-size:12px; min-height:40px; padding:8px 10px; }
  .local-badge { font-size:11px; }
  .hero-copy p { font-size:15px; max-width:310px; }
  .hero-action,.hero-action-right { width:auto; }
  .hero-button { white-space:normal; font-size:14px; text-align:left; line-height:1.25; min-height:64px; padding-left:14px; }
  .hero-action p { font-size:13px; }
  .footer { flex-direction:column; align-items:flex-start; gap:12px; font-size:12px; }
  .footer p { text-align:left; }
  .workspace { padding:28px 20px 40px; }
  .section-heading { align-items:flex-start; gap:16px; margin-bottom:24px; }
  .section-heading h1 { font-size:30px; }
  .section-description { font-size:15px; }
  .section-index { display:none; }
  .eyebrow { font-size:11px; }
  .assignment-layout { grid-template-columns:1fr; gap:0; }
  .phrase-block,.form-section { padding:20px; margin-bottom:20px; }
  .form-section legend { font-size:19px; }
  .form-section .field { grid-column:1/-1; }
  .field input,.field select,.phrase-block input { font-size:16px; }
  .field label { font-size:14px; }
  .field-note { font-size:13px; }
  .phrase-block .secondary { font-size:13px; }
  .desk-character { width:230px; margin-top:26px; }
  .filters { grid-template-columns:1fr 1fr; padding:20px; gap:20px 14px; }
  .search-field,.filters .field:nth-child(2),.filters .field:nth-child(3) { grid-column:1/-1; }
  [data-view="registry"] .section-heading { flex-direction:column; }
  .registry-create { font-size:14px; }
  .registry-caption>span { display:none; }
  .registry-caption h2 { font-size:21px; }
  .registry-bottom { align-items:flex-start; }
  .registry-bottom .desk-character { width:200px; flex-shrink:0; }
  .archive-note { font-size:18px; }
  .archive-note>span:last-child { display:none; }
  .clip-emblem { width:42px; height:42px; }
  .table-wrap table { min-width:0; background:transparent; }
  .table-wrap tr { background:var(--white); border:0; border-top:3px solid var(--work-accent); padding:22px; margin-bottom:18px; border-radius:0 0 8px 8px; }
  .table-wrap td { padding:0; border:0; }
  .table-wrap td::before { font-size:12px; }
  .table-wrap td strong { font-size:14px; }
  .table-wrap td:first-child strong { font-size:22px; }
  .table-wrap tr:hover td { background:transparent; }
  [data-view="assign"] .section-heading { flex-wrap:wrap; padding-bottom:16px; margin-bottom:18px; }
  [data-view="assign"] .section-heading h1 { font-size:28px; }
  .assignment-layout .form-section { padding:16px; }
  .assignment-layout .form-grid { gap:16px; }
  .assignment-layout .field input,.assignment-layout .field select { font-size:16px; }
  .assignment-layout .desk-character { width:250px; margin:0 auto; }
  .assignment-layout #preview-number { font-size:32px; }
  .phrase-block textarea { flex-basis:100%; font-size:16px; }
  .table-wrap .description-cell { grid-column:1/-1; min-width:0; max-width:none; }
  .table-wrap .description-cell::before { content:'Описание / комментарий'; }
  .table-wrap td:last-child { grid-column:1/-1; justify-self:end; }
  .phrase-disclosure { margin-bottom:12px; }
}
@media(max-width:370px) {
  .topbar nav { position:static; justify-self:start; }
  .hero-stage { grid-template-columns:1fr; }
  .hero-action,.hero-action-right { grid-column:1; grid-row:auto; margin-top:0; }
  .hero-action-left { margin-top:-40px; }
  .hero-action p { max-width:none; }
  .registry-bottom .desk-character { width:170px; }
  .registry-bottom { gap:14px; }
}
