:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17211d;background:#f3f6f4;--green:#155c46;--green2:#0f4938;--line:#dfe6e2;--muted:#6d7a74;--white:#fff}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#f8faf9 0,#f3f6f4 420px);min-height:100vh}a{color:var(--green)}.topbar{height:72px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10;backdrop-filter:blur(14px)}.topbar-inner{max-width:1120px;height:100%;margin:auto;padding:0 22px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:800;color:#17211d;text-decoration:none}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--green);color:#fff}.brand small{font-size:11px;color:#8a958f;font-weight:700}.topbar nav{display:flex;align-items:center;gap:12px}.topbar form{margin:0}.user-chip{background:#edf3f0;border:1px solid #dce7e1;padding:7px 10px;border-radius:999px;font-size:13px}.link{border:0;background:none;color:#52615a;cursor:pointer;font-weight:650}main{max-width:1120px;margin:auto;padding:48px 22px 80px}.hero{display:flex;justify-content:space-between;align-items:end;gap:28px;padding:18px 0 8px}.eyebrow,.section-kicker{font-size:11px;font-weight:800;letter-spacing:.14em;color:#668077;margin:0 0 8px}.hero h1,.formbox h1{font-size:42px;line-height:1.05;margin:0 0 12px;letter-spacing:-.035em}.lead,.form-subtitle{color:var(--muted);font-size:17px;margin:0;max-width:620px}.actions,.form-actions{display:flex;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:0;border-radius:11px;background:var(--green);color:#fff;padding:11px 17px;text-decoration:none;font-weight:750;cursor:pointer;box-shadow:0 4px 12px rgba(21,92,70,.12)}.btn:hover{background:var(--green2)}.btn.secondary{background:#fff;color:#24312b;border:1px solid var(--line);box-shadow:none}.btn.ghost{background:transparent;color:#53625b;box-shadow:none}.btn.wide{width:100%}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stats{margin:28px 0 48px}.card,.project,.formbox,.empty,.company-card{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:16px;box-shadow:0 7px 28px rgba(31,55,44,.045)}.stat{padding:22px}.stat b{font-size:32px;letter-spacing:-.03em}.stat span{display:block;color:var(--muted);margin-top:3px}.section{margin-top:42px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:14px}.section-head h2{font-size:26px;margin:0;letter-spacing:-.02em}.text-link{font-size:14px;font-weight:700;text-decoration:none}.company-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.company-card{display:flex;align-items:center;gap:14px;padding:16px}.company-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e6f0eb;color:var(--green);font-weight:850}.company-card strong{display:block}.company-card p{margin:3px 0 0;color:var(--muted);font-size:13px}.project{display:flex;align-items:center;justify-content:space-between;padding:19px 20px;margin-bottom:10px}.project h3{font-size:19px;margin:8px 0 5px}.project p{color:var(--muted);margin:0 0 5px}.project small{color:#77847e}.badge{display:inline-block;font-size:11px;font-weight:750;background:#edf3f0;color:#3c6555;border-radius:999px;padding:5px 8px}.arrow{font-size:34px;color:#9ba8a2}.module{padding:20px}.module>span{font-size:11px;color:#7d8a84;font-weight:800}.module h3{margin:18px 0 7px}.module p{color:var(--muted);min-height:42px}.module small{color:var(--green);font-weight:700}.module.muted small{color:#8a958f}.empty{padding:24px;color:var(--muted)}.empty p{margin-bottom:0}.form-page{min-height:calc(100vh - 170px);display:grid;place-items:start center;padding-top:28px}.formbox{width:min(100%,590px);padding:30px}.formbox h1{font-size:34px}.formbox form{margin-top:26px}.field{margin-bottom:18px}.field label{display:block;font-size:14px;font-weight:750;margin-bottom:7px}.field input,.field select{width:100%;min-height:45px;padding:10px 12px;border:1px solid #cfd9d4;border-radius:10px;background:#fff;color:#17211d;font:inherit;outline:none}.field input:focus,.field select:focus{border-color:#6a9b87;box-shadow:0 0 0 3px rgba(21,92,70,.09)}.helptext{font-size:12px;color:#7b8781;margin-top:6px}.helptext ul{padding-left:18px}.error{background:#fff0ef;border:1px solid #f2cfcb;color:#9b3f35;padding:9px 11px;border-radius:9px;font-size:13px;margin:7px 0}.form-footer{margin:22px 0 0;color:var(--muted);font-size:14px}@media(max-width:760px){.topbar{height:64px}.user-chip{display:none}main{padding:30px 16px 60px}.hero{display:block}.hero h1{font-size:34px}.actions{margin-top:22px}.grid,.company-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(3,1fr);gap:8px}.stat{padding:15px}.stat b{font-size:26px}.stat span{font-size:12px}.section{margin-top:34px}.formbox{padding:22px}.project{padding:16px}.modules{grid-template-columns:1fr}}
/* v0.2.0 workspace/document UI */
.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:800;color:#718096;margin-bottom:7px}.hero{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:18px 0 24px}.hero.compact{align-items:center}.hero h1,.section-head h1{margin:0 0 8px;font-size:30px}.hero p{margin:0;color:#667085;max-width:760px}.top nav{display:flex;gap:8px;margin-left:28px}.top nav a{color:#475467;text-decoration:none;padding:8px 10px;border-radius:9px}.top nav a:hover{background:#f2f4f7}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 28px}.stats>div{background:#fff;border:1px solid #e4e7ec;border-radius:14px;padding:18px}.stats b{display:block;font-size:26px}.stats span,.info-grid span,.list span,td small{display:block;color:#667085;font-size:12px;margin-top:4px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:24px 0 14px}.section-head h2{margin:0}.section-head>span{color:#667085}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.project-card{display:block;background:#fff;border:1px solid #e4e7ec;border-radius:16px;padding:18px;color:inherit;text-decoration:none;transition:.15s}.project-card:hover{transform:translateY(-1px);box-shadow:0 8px 24px #10182812}.project-card h3{margin:14px 0 6px}.project-card p{color:#667085}.pill{display:inline-block;background:#eef4ff;color:#3538cd;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700}.pill.big{font-size:14px}.meta{display:flex;justify-content:space-between;border-top:1px solid #eaecf0;padding-top:12px;margin-top:14px;color:#667085;font-size:12px}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 24px}.info-grid>div{background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:14px}.info-grid .wide{grid-column:1/-1}.tabs{display:flex;gap:22px;border-bottom:1px solid #e4e7ec;margin:8px 0 14px;padding:0 4px 10px}.tabs span{color:#98a2b3}.table-wrap{overflow:auto;background:#fff;border:1px solid #e4e7ec;border-radius:14px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px 14px;border-bottom:1px solid #eaecf0;vertical-align:top}th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#667085;background:#f9fafb}td a{color:#344054;text-decoration:none}.status{display:inline-block;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;background:#f2f4f7}.status.signed,.status.ok{background:#ecfdf3;color:#027a48}.status.issued,.status.soon{background:#fffaeb;color:#b54708}.status.draft{background:#eef4ff;color:#3538cd}.status.void,.status.expired{background:#fef3f2;color:#b42318}.status.large{font-size:13px;padding:7px 11px}.cert-expired{background:#fff4f3}.cert-soon{background:#fffbeb}.danger{color:#b42318}.more{white-space:nowrap}.back{display:inline-block;margin:10px 0;color:#667085;text-decoration:none}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:14px 0 22px}.lock{color:#667085;font-size:13px}.list{display:grid;gap:8px}.list>div{background:#fff;border:1px solid #e4e7ec;border-radius:11px;padding:12px}.paper{max-width:800px;margin:20px auto;background:#fff;padding:55px 62px;box-shadow:0 10px 35px #1018281a;color:#111;line-height:1.45}.paper h2,.paper h3{text-align:center;margin:0 0 8px}.paper hr{border:0;border-top:1px solid #999;margin:22px 0}.empty{padding:30px;border:1px dashed #d0d5dd;border-radius:14px;color:#667085}.linkbtn{background:none;border:0;color:inherit;padding:0;cursor:pointer}.user form{display:inline}.btn{text-decoration:none}
@media(max-width:720px){.top nav{display:none}.hero,.section-head{align-items:flex-start;flex-direction:column}.stats{grid-template-columns:1fr 1fr 1fr}.info-grid{grid-template-columns:1fr}.paper{padding:28px 20px;box-shadow:none}.wrap{padding-left:14px;padding-right:14px}}
@media print{.top,.no-print{display:none!important}.wrap{max-width:none;padding:0}.paper{box-shadow:none;margin:0;max-width:none;padding:10mm 12mm}}
/* v0.2.1 navigation refresh */
body{background:#f5f7f6}.topbar{height:68px}.topbar-inner{max-width:1180px}.main-nav{display:flex;gap:6px;margin-left:28px;margin-right:auto}.main-nav a{color:#475467;text-decoration:none;font-size:14px;font-weight:650;padding:9px 11px;border-radius:9px}.main-nav a:hover{background:#f0f4f2;color:#173f32}.account{display:flex;align-items:center;gap:10px}.account form{margin:0}main{max-width:1180px;padding-top:42px}.page-title{margin:14px 0 28px}.page-title h1{font-size:36px;letter-spacing:-.035em;margin:0 0 7px}.page-title p,.page-head p{color:var(--muted);margin:0}.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.home-card{min-height:230px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;display:flex;gap:22px;color:inherit;text-decoration:none;box-shadow:0 8px 30px rgba(28,55,43,.045);transition:.18s}.home-card:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(28,55,43,.08);border-color:#cbd9d2}.home-icon{width:54px;height:54px;flex:0 0 54px;border-radius:15px;background:#e8f1ed;color:var(--green);display:grid;place-items:center;font-size:21px;font-weight:850}.home-label,.kicker{font-size:11px;font-weight:800;letter-spacing:.12em;color:#6c7e76}.home-card h2{font-size:38px;margin:10px 0 6px}.home-card p{color:var(--muted);max-width:390px;min-height:48px}.home-card b{font-size:14px;color:var(--green)}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:8px 0 24px}.page-head h1{font-size:34px;letter-spacing:-.03em;margin:5px 0 7px}.filterbar{display:flex;gap:9px;margin-bottom:16px}.filterbar input,.filterbar select{height:44px;border:1px solid #d6dfda;border-radius:10px;background:#fff;padding:0 13px;font:inherit;min-width:240px}.filterbar input{flex:1}.entity-list{display:grid;gap:9px}.entity-row{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px 18px;color:inherit;text-decoration:none;transition:.15s}.entity-row:hover{border-color:#c7d6cf;box-shadow:0 5px 18px rgba(31,55,44,.045)}.entity-avatar{width:42px;height:42px;border-radius:11px;background:#e9f1ed;color:var(--green);display:grid;place-items:center;font-weight:850}.grow{flex:1;min-width:0}.entity-row h3{margin:0 0 5px;font-size:17px}.entity-row p{margin:0;color:var(--muted);font-size:13px}.row-meta{text-align:right;min-width:62px}.row-meta b{display:block;font-size:18px}.row-meta span{font-size:11px;color:var(--muted)}.chev{font-size:27px;color:#9ba8a2}.details-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.details-strip>div,.info-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px}.details-strip span,.info-card span{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}.info-card{display:grid;gap:7px;margin-bottom:22px}.info-card span:not(:first-child){margin-top:10px}.danger-btn{background:#fff!important;color:#a13b32!important;border:1px solid #ebd0cc!important;box-shadow:none!important}.danger-solid{background:#b42318!important}.danger-text{color:#b42318}.warning{background:#fff5f3;border:1px solid #f1d2cd;border-radius:11px;padding:14px;margin:20px 0;color:#7a2e28}.field textarea{width:100%;padding:10px 12px;border:1px solid #cfd9d4;border-radius:10px;background:#fff;color:#17211d;font:inherit;resize:vertical}.field textarea:focus{outline:none;border-color:#6a9b87;box-shadow:0 0 0 3px rgba(21,92,70,.09)}
@media(max-width:760px){.main-nav{display:none}.home-grid{grid-template-columns:1fr}.home-card{min-height:0;padding:21px}.page-head{align-items:flex-start;flex-direction:column}.filterbar{flex-direction:column}.filterbar input,.filterbar select{width:100%;min-width:0}.details-strip{grid-template-columns:1fr}.account .user-chip{display:none}}
/* v0.2.2 — hidden works act as an A4 document. No spreadsheet fill colors. */
.act-toolbar{max-width:920px;margin:0 auto 16px;display:flex;justify-content:space-between;gap:12px}.act-toolbar-right{display:flex;gap:8px}.act-sheet{width:210mm;min-height:297mm;margin:0 auto 45px;padding:10mm 12mm 12mm;background:#fff;box-shadow:0 12px 40px rgba(16,24,40,.13);color:#111;font-family:"Times New Roman",Times,serif;font-size:12.5px;line-height:1.2}.act-form-code{text-align:right;font-size:10px;margin-bottom:3mm}.act-sheet h1{text-align:center;font-size:17px;line-height:1.2;margin:0 0 3mm;font-weight:700}.act-sheet p{margin:2.4mm 0}.doc-row{display:grid;grid-template-columns:38mm 1fr;gap:3mm;align-items:end;margin-top:2.5mm}.doc-row.people{grid-template-columns:68mm 1fr}.doc-line{min-height:5mm;border-bottom:.35mm solid #111;padding:0 1mm 1mm;white-space:normal}.doc-line.centered{text-align:center}.strong-value{font-weight:600}.doc-note{text-align:center;font-size:9px;font-style:italic;line-height:1;margin-top:1mm}.doc-note.indented{margin-left:65mm}.act-date{text-align:right;margin:2mm 0 4mm}.section-label{margin-top:3mm!important;margin-bottom:1.2mm!important}.doc-value{padding:1mm 2mm;min-height:7mm}.materials-text{min-height:11mm}.date-grid{display:grid;grid-template-columns:22mm 38mm 1fr;column-gap:3mm;row-gap:1.2mm;align-items:end;margin:4mm 0}.decision{margin-top:4mm!important}.signatures{margin-top:7mm;display:grid;gap:4mm}.signature-row{display:grid;grid-template-columns:70mm 30mm 1fr;align-items:end;column-gap:2mm}.signature-row>span{min-height:5mm}.signature-row .sig-line{text-align:center;border-bottom:.35mm solid #111}.signature-row small{text-align:center;font-size:8px;font-style:italic}.signature-row i{display:block}.signature-row>span:last-of-type{border-bottom:.35mm solid #111;padding-bottom:1mm}
@media(max-width:900px){.act-sheet{width:100%;min-height:0;padding:28px 24px}.act-toolbar{max-width:none}.doc-row.people{grid-template-columns:1fr}.doc-note.indented{margin-left:0}.signature-row{grid-template-columns:1fr 90px 1fr}}
@media print{@page{size:A4 portrait;margin:0}.act-sheet{width:210mm;min-height:297mm;margin:0;padding:10mm 12mm 12mm;box-shadow:none;font-size:12px}.act-toolbar{display:none!important}body{background:#fff}.act-form-code{margin-top:0}}
/* v0.2.3 — document typography refinements */
.act-sheet .work-title,.act-sheet .work-value{font-weight:700;text-align:center}
.act-sheet .axes-value{font-style:italic;text-align:center}
.act-sheet .filled-value{font-style:italic}
.act-sheet .filled-centered{font-style:italic;text-align:center}
.act-sheet .contractor-value{font-weight:700}
.act-sheet .next-work-value{font-weight:700;text-align:center}
.act-sheet .decision{text-align:center;font-size:15px;margin-top:4mm!important;margin-bottom:2mm!important}
.act-sheet .date-grid{grid-template-columns:22mm 38mm 55mm 1fr}
.act-sheet .date-grid .doc-line{font-style:italic;text-align:center}
.signature-row .signature-space,.signature-row .signature-name{background:none!important}.signature-row .signature-space{border:0!important;border-bottom:.35mm solid #111!important}.signature-row .signature-name{border:0!important;border-bottom:.35mm solid #111!important}
.signature-row .signature-name{font-style:italic;text-align:center;padding-bottom:0!important}
.signature-row .signature-space{min-height:7mm}
.act-sheet .date-grid{grid-template-columns:22mm 38mm 55mm}

/* v0.2.5: A4 print fit and signature fields */
@media print{
  @page{size:A4 portrait;margin:0}
  html,body{width:210mm;height:297mm;margin:0!important;padding:0!important;background:#fff!important}
  .wrap{width:210mm!important;max-width:210mm!important;margin:0!important;padding:0!important}
  .act-sheet{box-sizing:border-box!important;width:210mm!important;height:297mm!important;min-height:0!important;margin:0!important;padding:7mm 10mm 7mm!important;box-shadow:none!important;font-size:10.7px!important;line-height:1.12!important;overflow:hidden!important;page-break-after:avoid!important;break-after:avoid-page!important}
  .act-sheet p{margin:1.7mm 0!important}.act-sheet h1{font-size:15px!important;margin-bottom:2mm!important}
  .act-form-code{margin:0 0 2mm!important}.doc-row{margin-top:1.7mm!important}.doc-note{margin-top:.6mm!important}
  .date-grid{margin:2.5mm 0!important}.signatures{margin-top:4mm!important;gap:2.5mm!important}
  .signature-row .signature-space{min-height:5mm!important}
}

/* v0.2.7 - calmer typography, project hierarchy, clickable acts and document polish */
body{font-weight:400}.brand{font-weight:700}.brand small,.eyebrow,.section-kicker,.home-label,.kicker{font-weight:700}.btn{font-weight:650}.field label{font-weight:650}.main-nav a{font-weight:550}.page-head h1{font-weight:650}.details-strip b,.info-card b,.info-grid b{font-weight:600}.status{font-weight:700}.project-full-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px 18px;margin:0 0 12px}.project-full-card>span{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.project-full-card>div{font-size:16px;font-weight:550;line-height:1.4}.project-full-card .project-doc-label{margin-top:14px}.project-full-card .project-doc-value{font-size:15px;font-weight:500}.project-parties{margin-bottom:24px}.acts-table .work-cell{font-weight:400;color:#344054}.acts-table .act-row{cursor:pointer;transition:background .12s}.acts-table .act-row:hover{background:#f8fbf9}.acts-table .act-row:focus{outline:2px solid rgba(21,92,70,.18);outline-offset:-2px}.copy-action{white-space:nowrap;font-size:13px;font-weight:550;color:var(--green)!important}.act-page-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:10px 0 18px;padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:15px}.act-page-toolbar h1{font-size:28px;line-height:1.1;margin:0;font-weight:650}.act-page-toolbar p{margin:8px 0 0;color:var(--muted)}.act-title-line{display:flex;align-items:center;gap:10px}.act-page-toolbar .actions{margin:0}.act-lock{margin:-6px 0 18px;color:#667085;font-size:13px}.subheading{font-size:20px;font-weight:600}.act-info b{font-weight:550}.act-toolbar{max-width:920px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px}.act-toolbar-meta{display:flex;align-items:center;gap:14px}.compact-back{margin:0}.act-toolbar-meta strong{font-weight:650;margin-right:7px}.act-sheet .italic-doc{font-style:italic;font-weight:400}.act-sheet .work-title,.act-sheet .work-value,.act-sheet .next-work-value{font-weight:400}.act-sheet .doc-row,.act-sheet .section-label,.act-sheet>p,.act-sheet .date-grid,.act-sheet .signatures{margin-left:4mm;margin-right:4mm}.act-sheet .doc-note.indented{margin-left:69mm}.act-sheet .people .filled-value{padding-bottom:.5mm}.act-sheet .signature-name{font-style:italic;border-bottom:.35mm solid #111!important}.act-sheet .signature-space{border-bottom:.35mm solid #111!important}
@media(max-width:760px){.act-page-toolbar{align-items:flex-start;flex-direction:column}.act-toolbar-meta{align-items:flex-start;flex-direction:column}.act-toolbar{align-items:flex-start;flex-direction:column}.act-toolbar-right{flex-wrap:wrap}}

/* v0.2.8 — document workspace polish */
.act-toolbar{max-width:1000px;width:calc(100% - 32px);box-sizing:border-box}
.act-sheet{box-sizing:border-box;width:min(1000px,calc(100% - 32px));min-height:1414px;padding:38px 46px 46px}
.act-toolbar-right{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:900px){.act-toolbar,.act-sheet{width:100%}.act-sheet{min-height:0}}
@media print{.act-sheet{width:210mm!important;min-height:297mm!important;padding:7mm 10mm 7mm!important}}
.form-error{margin:12px 0;padding:10px 12px;border-radius:9px;background:#fff2f0;color:#b42318}.field input[type=number]{width:100%;box-sizing:border-box}

/* v0.2.9 — act actions, rounded preview, quieter controls */
.act-sheet{border-radius:14px;overflow:hidden}
.act-actions{white-space:nowrap;min-width:154px}
.icon-action{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin:0 2px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#344054!important;text-decoration:none;font-size:17px;font-weight:500;line-height:1;transition:.12s}
.icon-action:hover{background:#f3f7f5;border-color:#c8d6cf;color:var(--green)!important}
.danger-icon{color:#b42318!important;border-color:#efd1cd}
.danger-icon:hover{background:#fff3f1!important;border-color:#e7b9b3!important;color:#b42318!important}
.delete-act-box{max-width:620px}.delete-warning{font-size:14px;line-height:1.5}.delete-warning strong{color:#b42318}
@media print{.act-sheet{border-radius:0!important}}


/* v0.2.10 — denser act typography, aligned document grid, lifecycle and material names */
.act-sheet{font-size:13.6px;line-height:1.24;min-height:1480px}
.act-sheet h1{font-size:18px}
.act-sheet .doc-row,.act-sheet .section-label,.act-sheet>p,.act-sheet .date-grid,.act-sheet .signatures{margin-left:0;margin-right:0}
.act-sheet .doc-row.people{grid-template-columns:74mm 1fr;align-items:end}
.act-sheet .doc-row.people .doc-line{padding-bottom:0;min-height:4.5mm;display:flex;align-items:flex-end}
.act-sheet .doc-note.indented{margin-left:77mm}
.act-sheet .work-title,.act-sheet .work-value,.act-sheet .work-axes{font-weight:700!important;font-style:normal!important;font-size:1.08em;line-height:1.22}
.act-sheet .next-work-value{font-weight:700!important;font-style:normal!important}
.act-sheet .date-grid{grid-template-columns:26mm 42mm 58mm;justify-content:start;margin-left:0!important}
.act-toolbar-right form.inline-status-form{margin:0;display:inline-flex}.status-action{white-space:nowrap}
.acts-table .meta-cell{font-size:12px;color:#59666f;line-height:1.35;font-weight:400}
.acts-table .materials-cell{min-width:210px;max-width:330px}.acts-table .materials-cell span{display:block;margin:0 0 3px}.acts-table .materials-cell span:last-child{margin-bottom:0}
.acts-table .axes-cell{min-width:150px}.acts-table .date-cell{white-space:nowrap}
@media print{
 .act-sheet{font-size:11.15px!important;line-height:1.16!important}
 .act-sheet h1{font-size:15.8px!important}
 .act-sheet .work-title,.act-sheet .work-value,.act-sheet .work-axes{font-size:11.5px!important}
 .act-sheet .doc-row.people{grid-template-columns:72mm 1fr!important}
 .act-sheet .doc-note.indented{margin-left:75mm!important}
}

/* v0.2.13 — grouped act toolbar, larger preview, material picker */
.act-toolbar-v213{max-width:1100px;padding:9px 11px;gap:16px}
.act-context-group{display:flex;align-items:stretch;gap:8px;min-width:0}
.act-project-chip,.act-number-chip,.tool-group{border:1px solid var(--line);border-radius:11px;background:#fbfcfc}
.act-project-chip{display:flex;align-items:center;gap:7px;padding:9px 12px;color:#536273;text-decoration:none;font-size:15px;font-weight:560;min-width:230px;justify-content:center}
.act-back-arrow{font-size:17px;color:#667085}.act-number-chip{display:flex;align-items:center;gap:8px;padding:8px 11px;white-space:nowrap}.act-number-chip strong{font-weight:650}
.toolbar-sections{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tool-group{display:flex;align-items:center;gap:4px;padding:4px}
.tool-icon,.tool-text{box-sizing:border-box;border:0;background:transparent;color:#344054;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-family:inherit;font-weight:600}
.tool-icon{width:34px;height:34px;border-radius:8px;font-size:17px}.tool-icon:hover,.tool-text:hover{background:#f0f4f2;color:var(--green)}.tool-danger{color:#b42318}.tool-danger:hover{background:#fff1ef;color:#b42318}
.tool-text{min-height:34px;padding:0 11px;border-radius:8px;font-size:13px}.status-tool .tool-text{font-weight:650}.export-tools .tool-text{min-width:48px}
.act-sheet{font-size:14.2px;line-height:1.27;min-height:1510px}.act-sheet h1{font-size:18.6px}.act-sheet .work-title,.act-sheet .work-value,.act-sheet .work-axes{font-size:1.1em}
.field ul[id$="materials"]{list-style:none;margin:7px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:11px;max-height:220px;overflow:auto;background:#fbfcfc}.field ul[id$="materials"] li{margin:5px 0}.field ul[id$="materials"] label{display:flex;align-items:center;gap:8px;font-weight:450}.field ul[id$="materials"] input{width:auto}.helptext{display:block;margin-top:5px;color:#667085;font-size:12px;line-height:1.35}
@media(max-width:900px){.act-toolbar-v213{align-items:stretch}.act-context-group{width:100%}.act-project-chip{min-width:0;flex:1}.toolbar-sections{width:100%;justify-content:flex-start}}


/* v0.2.14 — flat segmented act toolbar, project participant defaults */
.act-toolbar-v214{max-width:1100px;width:calc(100% - 32px);box-sizing:border-box;padding:0;overflow:hidden;align-items:stretch;gap:0;border-radius:16px}
.act-toolbar-v214 .act-context-group{gap:0;align-items:stretch}
.act-toolbar-v214 .act-project-chip,.act-toolbar-v214 .act-number-chip,.act-toolbar-v214 .tool-group{border:0;border-radius:0;background:transparent}
.act-toolbar-v214 .act-project-chip{min-width:285px;padding:14px 18px;justify-content:flex-start;background:#f5f7f6;border-right:1px solid var(--line);font-size:17px;font-weight:600}
.act-toolbar-v214 .act-project-chip:hover{background:#edf2ef;color:var(--green)}
.act-toolbar-v214 .act-number-chip{padding:12px 18px;border-right:1px solid var(--line);font-size:16px}
.act-toolbar-v214 .toolbar-sections{gap:14px;padding:7px 10px;margin-left:auto;flex-wrap:nowrap}
.act-toolbar-v214 .tool-group{gap:5px;padding:0}
.act-toolbar-v214 .tool-icon{width:38px;height:38px;border-radius:50%;transition:background .14s,transform .14s,color .14s}
.act-toolbar-v214 .tool-icon:hover{background:#eef3f0;transform:translateY(-1px)}
.act-toolbar-v214 .tool-text{height:38px;border-radius:19px;padding:0 14px;border:1px solid #dfe6e2;background:#fff;transition:background .14s,transform .14s,border-color .14s}
.act-toolbar-v214 .tool-text:hover{background:#f3f6f4;border-color:#cbd7d1;transform:translateY(-1px)}
.act-toolbar-v214 .status-tool,.act-toolbar-v214 .export-tools{padding-left:14px;border-left:1px solid var(--line)}
.act-toolbar-v214 .export-tools{gap:6px}.act-toolbar-v214 .export-tools .tool-text{min-width:58px}
.act-sheet{width:calc(100% - 32px);max-width:1100px;box-sizing:border-box;border-radius:16px}
@media(max-width:900px){.act-toolbar-v214{align-items:stretch;overflow:visible;flex-direction:column}.act-toolbar-v214 .act-context-group{width:100%}.act-toolbar-v214 .act-project-chip{min-width:0;flex:1}.act-toolbar-v214 .toolbar-sections{width:auto;margin-left:0;flex-wrap:wrap}.act-toolbar-v214 .status-tool,.act-toolbar-v214 .export-tools{padding-left:8px}.act-sheet{width:100%}}
@media print{.act-sheet{width:210mm;max-width:none;border-radius:0}}

/* v0.2.15 — grouped project form */
.project-form-page{place-items:start center}.project-formbox{width:min(100%,860px);padding:34px}.project-formbox form{margin-top:28px}.object-form-section{padding:22px 0 8px;border-top:1px solid var(--line)}.object-form-section:first-of-type{border-top:0;padding-top:4px}.object-form-section-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}.object-form-section-head>span{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:50%;background:#eef3f1;color:#607169;font-size:11px;font-weight:700}.object-form-section-head h2{margin:1px 0 3px;font-size:19px;font-weight:650;letter-spacing:-.015em}.object-form-section-head p{margin:0;color:var(--muted);font-size:13px}.project-fields{display:grid;gap:14px}.project-fields.two-col{grid-template-columns:1fr 1fr}.person-fields{display:grid;grid-template-columns:1.5fr 1fr 1.2fr;gap:12px}.project-formbox .field{margin-bottom:16px}.project-formbox textarea{min-height:84px}.project-form-actions{border-top:1px solid var(--line);padding-top:22px;margin-top:10px}@media(max-width:760px){.project-formbox{padding:22px}.project-fields.two-col,.person-fields{grid-template-columns:1fr}.object-form-section{padding-top:20px}}

/* v0.2.16 — aligned participant fields + unified responsive controls */
.person-fields .field{display:grid;grid-template-rows:44px auto;align-content:start}
.person-fields .field label{display:flex;align-items:flex-end;margin-bottom:7px;line-height:1.15}
.universal-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 14px;border:1px solid #dce4e0;border-radius:13px;background:#fff;color:#344054;text-decoration:none;font-weight:620;transition:transform .14s,box-shadow .14s,background .14s,border-color .14s,color .14s}
.universal-action:hover{transform:translateY(-1px);box-shadow:0 5px 16px rgba(31,55,44,.08)}
.universal-action .ua-icon{font-size:19px;line-height:1}.action-edit{background:#f5f7fb;border-color:#e1e5ee;color:#455269}.action-edit:hover{background:#edf1f7;border-color:#ccd4e1}.action-delete{background:#fff7f6;border-color:#f0d9d5;color:#a5443a}.action-delete:hover{background:#fff0ee;border-color:#e9c5bf}.action-create{background:#f0f8f4;border-color:#d2e7dc;color:#176247}.action-create:hover{background:#e6f4ed;border-color:#b9d9c9;box-shadow:0 5px 18px rgba(21,92,70,.12)}
.act-preview-stage{width:100%;display:flex;justify-content:center;overflow:hidden}.act-preview-stage .act-sheet{transform-origin:top left}
.printer-icon{position:relative;font-size:0;width:19px;height:15px;border:2px solid currentColor;border-radius:3px;display:block}.printer-icon:before{content:"";position:absolute;left:2px;right:2px;top:-8px;height:8px;border:2px solid currentColor;background:#fff}.printer-icon:after{content:"";position:absolute;left:3px;right:3px;bottom:-5px;height:7px;border-top:2px solid currentColor;background:#fff}
@media(max-width:760px){
 main{padding-left:12px;padding-right:12px}.topbar-inner{padding-left:14px;padding-right:14px}.brand{font-size:18px}.account{gap:4px}.link{padding:8px 4px}
 .person-fields .field{display:block}.person-fields .field label{min-height:0;display:block}
 .project-head{gap:14px}.project-head .project-icon-actions{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:0}.project-icon-actions .universal-action{min-width:0;height:48px;padding:0}.project-icon-actions .ua-label{display:none}.project-icon-actions .ua-icon{font-size:23px}
 .act-toolbar-v214{width:100%;border-radius:15px;overflow:hidden!important;flex-direction:column;box-shadow:0 4px 18px rgba(31,55,44,.04)}
 .act-toolbar-v214 .act-context-group{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;border-bottom:1px solid var(--line)}
 .act-toolbar-v214 .act-project-chip{min-width:0;padding:11px 12px;font-size:14px;line-height:1.25;border-right:1px solid var(--line)}
 .act-toolbar-v214 .act-number-chip{padding:10px 12px;font-size:14px;border-right:0;gap:6px}.act-toolbar-v214 .act-number-chip .status{font-size:10px}
 .act-toolbar-v214 .toolbar-sections{width:100%;box-sizing:border-box;display:grid;grid-template-columns:auto 1fr auto;gap:8px;padding:7px 8px;margin:0;align-items:center}
 .act-toolbar-v214 .tool-group{gap:2px}.act-toolbar-v214 .icon-tools{justify-content:flex-start}.act-toolbar-v214 .tool-icon{width:36px;height:36px;font-size:18px}
 .act-toolbar-v214 .status-tool,.act-toolbar-v214 .export-tools{padding-left:8px;border-left:1px solid var(--line)}.act-toolbar-v214 .status-tool{justify-content:center}.act-toolbar-v214 .status-tool .tool-text{padding:0 11px;font-size:12px;white-space:nowrap}.act-toolbar-v214 .export-tools{justify-content:flex-end;gap:2px}.act-toolbar-v214 .export-tools .tool-text{min-width:44px;padding:0 7px;font-size:12px}
 .act-preview-stage{display:block;width:100%;overflow:hidden;border-radius:16px}.act-preview-stage .act-sheet{width:1100px!important;max-width:none!important;margin:0!important;min-height:1510px!important;padding:38px 46px 46px!important;border-radius:16px;transform-origin:top left}
}

/* v0.2.17 — scalable material catalog and searchable act material picker */
.materials-head p{margin:6px 0 0;color:var(--muted);max-width:680px}.material-filters{display:grid;grid-template-columns:minmax(260px,1fr) minmax(220px,340px) auto;gap:10px;margin:0 0 16px}.material-filters input,.material-filters select,.material-actions select{border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px 12px;font:inherit;color:#27352f}.materials-table small{display:block;color:var(--muted);margin-top:3px}.material-projects span{display:block;font-size:12px;color:#536273;margin-bottom:3px}.muted-text{color:#8a9690!important}.material-warning{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fff5e8;color:#9b5b11;font-size:12px;font-weight:650}.material-actions{min-width:210px}.material-actions form{display:inline-flex;align-items:center;gap:5px;margin-left:5px}.material-actions select{max-width:130px;padding:7px 8px;font-size:12px}.material-formbox{width:min(100%,760px)}.material-search{width:100%;box-sizing:border-box;margin:3px 0 8px;padding:11px 13px;border:1px solid #cfdad4;border-radius:10px;font:inherit}.material-choice-list>ul,.material-picker-field ul{max-height:260px!important;margin-top:0!important}.material-picker-field li{border-bottom:1px solid #edf1ef;padding:5px 1px}.material-picker-field li:last-child{border-bottom:0}.tabs a{color:inherit;text-decoration:none}.tabs a:hover{color:var(--green)}
@media(max-width:760px){.material-filters{grid-template-columns:1fr}.materials-table{min-width:850px}.materials-head{align-items:flex-start;gap:12px}.materials-head .ua-label{display:none}.materials-head .universal-action{width:46px;padding:0}.main-nav{gap:10px}.main-nav a{font-size:13px}.material-formbox{padding:22px}}
/* v0.2.18 — desktop act editor + two-pane material selector */
.act-formbox{width:min(100%,920px);padding:34px}.act-formbox textarea{width:100%;min-height:82px;padding:11px 12px;border:1px solid #cfd9d4;border-radius:10px;background:#fff;color:#17211d;font:inherit}.act-date-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.act-material-section{border-top:1px solid var(--line);padding-top:22px;margin:24px 0}.act-material-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:14px}.act-material-head h2{font-size:21px;margin:0 0 4px}.act-material-head p{margin:0;color:var(--muted);font-size:13px}.act-material-head a{font-size:13px;font-weight:700;text-decoration:none}.material-transfer{display:grid;grid-template-columns:1fr 1fr;gap:14px}.material-pane{border:1px solid #d9e3de;border-radius:14px;background:#f9fbfa;overflow:hidden;min-width:0}.material-pane-title{display:flex;justify-content:space-between;align-items:center;padding:13px 14px 8px}.material-pane-title span{display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#eaf1ed;color:#50655c;font-size:12px;font-weight:750}.material-pane .material-search{width:calc(100% - 24px);margin:0 12px 9px}.material-transfer-list{height:285px;overflow:auto;padding:0 8px 8px}.material-transfer-item{width:100%;border:0;border-top:1px solid #e7ece9;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:11px 8px;color:#25322c;font:inherit;cursor:pointer}.material-transfer-item:first-child{border-top:0}.material-transfer-item:hover{background:#edf5f1;border-radius:8px}.material-transfer-item span{font-size:13px;line-height:1.3}.material-transfer-item i{font-style:normal;font-size:20px;color:var(--green);flex:0 0 auto}.selected-pane .material-transfer-item i{color:#a44840}.material-empty{color:#8a9690;font-size:13px;padding:18px 8px;text-align:center}.quick-material{margin-top:16px}.quick-material>label{display:block;font-size:14px;font-weight:750;margin-bottom:7px}.quick-material-row{display:grid;grid-template-columns:1fr 46px;gap:8px}.quick-material-row input{width:100%;min-height:45px;padding:10px 12px;border:1px solid #cfd9d4;border-radius:10px;font:inherit}.quick-add{border:1px solid #b9d1c6;border-radius:10px;background:#edf6f2;color:var(--green);font-size:24px;cursor:pointer}.quick-add:hover{background:#dceee6}.material-hidden{display:none}
@media(max-width:760px){.act-formbox{padding:22px}.act-date-row{grid-template-columns:1fr;gap:0}.act-material-head{align-items:flex-start;flex-direction:column;gap:7px}.material-transfer{grid-template-columns:1fr}.material-transfer-list{height:220px}.selected-pane .material-transfer-list{height:auto;max-height:260px;min-height:90px}}

/* v0.2.20 classic material transfer */
.material-transfer-classic{grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);align-items:stretch}.material-transfer-controls{display:flex;flex-direction:column;justify-content:center;gap:10px}.transfer-arrow{width:44px;height:44px;margin:auto;border:1px solid #c9d8d1;border-radius:12px;background:#fff;color:var(--green);font-size:23px;font-weight:700;cursor:pointer;transition:.15s}.transfer-arrow:hover{background:#eaf5f0;border-color:#9fc4b3;transform:translateX(2px)}.transfer-arrow+ .transfer-arrow:hover{transform:translateX(-2px)}.classic-list{height:270px;padding:7px}.material-list-row{display:block;width:100%;border:0;border-bottom:1px solid #e7ece9;background:transparent;text-align:left;padding:10px 11px;border-radius:8px;color:#25322c;font:inherit;font-size:14px;cursor:pointer}.material-list-row:hover{background:#edf5f1}.material-list-row.active{background:#dceee6;box-shadow:inset 0 0 0 1px #a9cdbd;color:#153f30}.material-pane.selected-pane{background:#fff}.material-pane.selected-pane .material-list-row.active{background:#eef2f0;box-shadow:inset 0 0 0 1px #cbd5d0}.quick-material{border-top:1px solid #e4ebe7;padding-top:16px}.act-formbox{width:min(100%,980px)}
@media(max-width:760px){.material-transfer-classic{grid-template-columns:1fr}.material-transfer-controls{flex-direction:row;padding:2px 0}.transfer-arrow{margin:0;width:48px}.transfer-arrow:first-child{transform:rotate(90deg)}.transfer-arrow:last-child{transform:rotate(90deg)}.transfer-arrow:hover,.transfer-arrow+ .transfer-arrow:hover{transform:rotate(90deg)}.classic-list{height:210px}}

/* v0.2.21 — material catalog actions and safer simple deletion */
.material-catalog-table td{vertical-align:middle}.material-catalog-table td:first-child{min-width:240px}.material-catalog-table td:nth-child(3){min-width:220px}.material-row-actions{min-width:285px}.material-row-actions>a{vertical-align:middle}.action-copy{background:#f7f5fb;border-color:#e4deef;color:#66547d}.action-copy:hover{background:#f0ebf7;border-color:#d6cbe6}.warning{border:1px solid #efd8d2;background:#fff7f5;border-radius:12px;padding:14px 16px;line-height:1.45;margin:16px 0}.danger-solid{background:#b94b42!important;color:#fff!important;border-color:#b94b42!important}
@media(max-width:760px){.material-catalog-table{min-width:1050px}.project-head .project-icon-actions{grid-template-columns:repeat(4,1fr)}}

/* v0.2.22 certificate history */
.certificate-history{display:grid;gap:8px}.certificate-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line,#e4e7eb);border-radius:10px}.certificate-history-row small{display:block;margin-top:3px;opacity:.65}.btn.small{padding:7px 10px;font-size:.86rem}@media(max-width:680px){.certificate-history-row{align-items:flex-start;flex-direction:column}}


/* v0.2.24 — adaptive mobile header */
@media(max-width:900px){
  .topbar{height:auto;min-height:108px;overflow:visible}
  .topbar-inner{min-height:108px;height:auto;padding:10px 14px 8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:46px 44px;column-gap:10px;row-gap:0;align-items:center}
  .brand{grid-column:1;grid-row:1;min-width:0;font-size:18px;gap:9px}
  .brand-mark{width:34px;height:34px;flex:0 0 34px}
  .brand>span:last-child{display:flex;align-items:baseline;gap:7px;min-width:0;white-space:nowrap}
  .brand small{font-size:11px}
  .account{grid-column:2;grid-row:1;justify-self:end;margin:0;gap:0}
  .account .user-chip{display:none}
  .account .link{min-height:36px;padding:7px 10px;border-radius:9px;font-size:13px;white-space:nowrap}
  .account .link:hover{background:#f0f4f2}
  .main-nav,.topbar .main-nav{grid-column:1/-1;grid-row:2;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin:0;gap:6px;align-self:stretch}
  .main-nav a,.topbar .main-nav a{display:flex;align-items:center;justify-content:center;min-width:0;padding:8px 5px;border-radius:9px;font-size:13px;line-height:1.1;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  main{padding-top:28px}
}
@media(max-width:390px){
  .topbar-inner{padding-left:10px;padding-right:10px}
  .brand{font-size:17px}
  .main-nav a,.topbar .main-nav a{font-size:12px;padding-left:3px;padding-right:3px}
  .account .link{padding-left:7px;padding-right:7px}
}
/* v0.2.31 compact multi-document material editor */
.material-documents{display:grid;gap:12px;margin-bottom:12px}.material-document-row{display:grid;grid-template-columns:minmax(220px,1.3fr) minmax(220px,1fr) auto;gap:14px;align-items:end;padding:14px;border:1px solid var(--line,#dfe3e8);border-radius:12px;background:rgba(255,255,255,.35)}.material-document-row .field{margin:0}.doc-show{display:flex;align-items:center;gap:7px;min-height:42px;white-space:nowrap;font-size:14px}.doc-show input{width:18px;height:18px}.doc-current-file{display:block;font-size:13px;margin:0 0 6px}@media(max-width:760px){.material-document-row{grid-template-columns:1fr;gap:9px}.doc-show{min-height:auto;padding:4px 0}}

/* v0.2.32 — organized global material catalog and usage view */
.material-catalog-switch{display:flex;align-items:center;gap:8px;margin:0 0 12px}.material-catalog-switch a,.material-catalog-switch span{padding:8px 12px;border-radius:10px;font-size:13px;font-weight:650}.material-catalog-switch a{color:inherit;text-decoration:none;border:1px solid var(--line);background:#fff}.material-catalog-switch a.active{background:#edf5f1;color:var(--green);border-color:#c9ddd4}.material-catalog-switch span{color:var(--muted)}.material-filters-v232{grid-template-columns:minmax(260px,1fr) minmax(220px,360px) auto auto}.material-filter-note{margin:-4px 0 14px;padding:10px 12px;border-radius:10px;background:#f3f7f5;color:#52645b;font-size:13px}.material-name-link{display:block;color:#26342e;text-decoration:none;font-weight:400}.material-name-link:hover{color:var(--green)}.material-usage-link{display:inline-block;margin-top:5px;color:#75817b;text-decoration:none;font-size:11px}.material-usage-link:hover{color:var(--green)}.material-detail-page{max-width:1100px;margin:0 auto}.material-detail-actions{display:flex;gap:8px}.material-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.material-info-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:18px}.material-info-card h2{font-size:18px;margin:0 0 14px}.material-doc-line,.material-project-link{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid #edf1ef}.material-doc-line:first-of-type,.material-project-link:first-of-type{border-top:0}.material-doc-line strong{font-weight:550}.material-doc-line small{display:block;margin-top:3px;color:var(--muted)}.material-project-link{text-decoration:none;color:inherit}.material-project-link span:last-child{font-size:12px;color:var(--green)}.material-act-usage{margin-bottom:24px}.material-act-usage table{width:100%;border-collapse:collapse}.material-act-usage th,.material-act-usage td{text-align:left;padding:10px;border-bottom:1px solid #edf1ef;font-size:13px}.material-act-usage th{color:var(--muted);font-weight:600}
@media(max-width:760px){.material-filters-v232{grid-template-columns:1fr}.material-detail-grid{grid-template-columns:1fr}.material-detail-actions{flex-direction:column}.material-act-usage table{min-width:680px}.material-catalog-switch{overflow:auto}}
/* v0.2.33 material certificate editor */
.material-doc-dates{display:grid;grid-template-columns:1fr 1fr;gap:14px}.material-doc-options{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.doc-marked-delete{opacity:.48}.material-cert-line+.material-cert-line,.material-cert-file+.material-cert-file{margin-top:8px}.material-cert-line small{margin-left:8px;color:#73807b}@media(max-width:700px){.material-doc-dates{grid-template-columns:1fr}.material-doc-options{align-items:flex-start}}

/* v0.2.34 — mobile material document form overflow fix */
.material-document-row,
.material-document-row *,
.material-doc-dates,
.material-doc-dates > *,
.material-document-row .field{box-sizing:border-box;min-width:0;max-width:100%}
.material-document-row input[type="text"],
.material-document-row input[type="date"],
.material-document-row input[type="file"],
.material-document-row select,
.material-document-row textarea{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.material-document-row input[type="file"]{overflow:hidden}
@media(max-width:700px){
  .material-document-row{width:100%;padding:13px 12px;overflow:hidden}
  .material-doc-dates{width:100%;grid-template-columns:minmax(0,1fr);gap:9px}
  .material-document-row input[type="date"]{-webkit-appearance:none;appearance:none;width:100%;min-width:0}
  .material-document-row .doc-file{width:100%;overflow:hidden}
  .material-document-row input[type="file"]{font-size:14px}
}

/* v0.2.36 — deliberate two-stage object deletion */
.delete-project-shell{max-width:860px}
.delete-flow-warning{padding:22px 24px;border:1px solid #ead6d6;background:#fff8f8;border-radius:18px;margin:22px 0}
.delete-flow-warning h2{margin:0 0 8px;font-size:22px}
.delete-flow-warning p{margin:7px 0;line-height:1.5}
.delete-flow-final{border-color:#e4bcbc;background:#fff4f4}
.delete-flow-error{padding:13px 16px;border-radius:12px;background:#fff0f0;border:1px solid #e9b8b8;margin:16px 0;font-weight:700}
.delete-act-list{display:grid;gap:10px;margin:18px 0 24px}
.delete-act-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px 16px;border:1px solid #d9e1df;border-radius:14px;background:#fff;cursor:pointer}
.delete-act-row input{width:22px;height:22px;margin:0}
.delete-act-main{display:grid;gap:3px;min-width:0}
.delete-act-main span{color:#697572;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.delete-confirm-list{display:grid;gap:8px;padding:0 4px 22px}
@media(max-width:600px){.delete-flow-warning{padding:17px}.delete-act-row{grid-template-columns:auto minmax(0,1fr);gap:10px}.delete-act-row .status{grid-column:2;justify-self:start}.delete-act-main span{white-space:normal}.delete-project-shell .form-actions{display:flex;gap:10px;flex-wrap:wrap}}


/* v0.2.38 — compact materials catalog on phones */
.material-filter-submit{min-width:44px}
.material-filter-submit span{margin-left:6px}
@media(max-width:760px){
  .materials-head p{font-size:14px;line-height:1.45}
  .material-filters-v232{grid-template-columns:minmax(0,1fr) 48px;gap:8px;align-items:center}
  .material-filters-v232 input{grid-column:1 / -1;font-size:14px;padding:9px 11px}
  .material-filters-v232 select{grid-column:1;font-size:14px;padding:9px 10px;min-width:0}
  .material-filters-v232 .material-filter-submit{grid-column:2;width:48px;height:42px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:24px;line-height:1}
  .material-filters-v232 .material-filter-submit span{display:none}
  .material-filters-v232 > a.btn{grid-column:1 / -1;justify-self:start;font-size:13px;padding:7px 10px}
  .materials-table.material-catalog-table{min-width:650px;font-size:13px;table-layout:fixed}
  .material-catalog-table th,.material-catalog-table td{padding:10px 8px}
  .material-catalog-table th{font-size:11px;letter-spacing:.08em}
  .material-catalog-table th:nth-child(1),.material-catalog-table td:nth-child(1){width:34%}
  .material-catalog-table th:nth-child(2),.material-catalog-table td:nth-child(2){width:35%}
  .material-catalog-table th:nth-child(3),.material-catalog-table td:nth-child(3){width:16%}
  .material-catalog-table th:nth-child(4),.material-catalog-table td:nth-child(4){width:15%}
  .material-name-link{font-size:14px;line-height:1.25}
  .material-usage-link{font-size:11px;line-height:1.2;margin-top:4px}
  .material-cert-line{font-size:13px;line-height:1.25}
  .material-cert-line small{font-size:11px}
  .material-cert-line .status{font-size:10px;padding:3px 5px;white-space:nowrap}
  .material-cert-file a{font-size:0;display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px;text-decoration:none}
  .material-cert-file a::before{content:'⌕';font-size:22px;line-height:1;color:var(--green)}
  .material-row-actions{min-width:0!important;white-space:nowrap}
  .material-row-actions .icon-action{width:36px;height:36px;font-size:19px;margin:1px}
}
@media(max-width:390px){
  .materials-table.material-catalog-table{min-width:620px}
}

/* v0.2.39 act lifecycle */
.acts-table .act-row-signed,.acts-table .act-row-signed:hover{background:#eefaf2}
.acts-table .act-row-void,.acts-table .act-row-void:hover{background:#fff1f0}
.acts-table .act-row-void{color:#7a4b48}
.acts-table .act-row-draft{background:#fff}

/* v0.2.40 — act form geometry and material workflow */
.act-formbox input[type="text"],.act-formbox input[type="number"],.act-formbox input[type="date"],.act-formbox input[type="search"],.act-formbox textarea,.act-formbox select{box-sizing:border-box;max-width:100%;min-width:0;width:100%}
.act-material-picker{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:stretch}.global-material-pane .classic-list{height:230px}.selected-material-list{height:300px;padding:7px}.material-add-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.no-cert-badge{font-size:11px;color:#a6423b;background:#fff0ef;border-radius:999px;padding:3px 7px;white-space:nowrap}.material-selected-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border-bottom:1px solid #e7ece9}.material-selected-row.missing-certificate{background:#fff4f3;border-radius:8px;color:#7f2f2a}.selected-material-main{min-width:0;display:flex;flex-direction:column;gap:3px}.selected-material-main small{font-size:11px;color:#a6423b}.selected-material-main small a{color:#8d312c;font-weight:700}.material-remove{width:34px;height:34px;flex:0 0 34px;border:1px solid #e5c7c4;border-radius:9px;background:#fff;color:#a6423b;font-size:20px;cursor:pointer}.preview-missing-cert{color:#b42318}.preview-cert-note{font-size:10px;color:#b42318}.project-material-filter{display:grid;grid-template-columns:minmax(0,1fr) 110px 52px;gap:10px;margin:16px 0}.project-material-filter input,.project-material-filter select{width:100%;box-sizing:border-box}.project-materials-table th:first-child,.project-materials-table td:first-child{width:48px;text-align:center}.project-materials-table th:last-child,.project-materials-table td:last-child{width:38%}.material-act-links{display:flex;gap:6px;flex-wrap:wrap}.act-number-link{display:inline-block;padding:4px 7px;border-radius:7px;background:#f0f4f2;text-decoration:none;font-size:12px}.hard-warning,.soft-warning{padding:16px;border-radius:12px;margin:18px 0}.hard-warning{background:#fff0ef;color:#842d27}.soft-warning{background:#fff8e8;color:#76551c}.sign-warning-box .form-actions form{margin:0}
@media(max-width:760px){.act-material-picker{grid-template-columns:1fr}.global-material-pane .classic-list{height:180px}.selected-material-list{height:auto;max-height:300px;min-height:80px}.act-formbox input[type="date"]{-webkit-appearance:none;appearance:none;width:100%!important;max-width:100%!important}.project-material-filter{grid-template-columns:minmax(0,1fr) 82px 48px}.project-materials-table{font-size:13px}.project-materials-table th:first-child,.project-materials-table td:first-child{width:34px;padding-left:6px;padding-right:6px}.project-materials-table th:last-child,.project-materials-table td:last-child{width:42%}}


/* v0.2.41 — larger unified SVG action buttons */
.act-actions{min-width:230px}
.act-actions .icon-action{width:36px;height:36px;border-radius:10px;margin:0 2px}
.action-svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block}
.danger-icon .action-svg{stroke-width:2.2}
@media(max-width:760px){
  .act-actions{min-width:252px}
  .act-actions .icon-action{width:42px;height:42px;border-radius:11px;margin:0 2px}
  .act-actions .action-svg{width:23px;height:23px;stroke-width:1.9}
  .act-actions .danger-icon .action-svg{stroke-width:2.25}
}

/* v0.2.42 — GermanBook-inspired action controls + dark theme */
.theme-toggle{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:#f4f7f5;color:var(--green);display:inline-grid;place-items:center;cursor:pointer;padding:0;transition:.18s ease;flex:0 0 40px}
.theme-toggle:hover{transform:translateY(-1px);background:#eaf3ef}.theme-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.theme-sun{display:none}html[data-theme="dark"] .theme-moon{display:none}html[data-theme="dark"] .theme-sun{display:block}
.act-actions .icon-action{border-radius:50%;background:transparent;border-color:#b9d7ce;color:#277963;box-shadow:none}.act-actions .icon-action:hover{background:#e9f5f1;border-color:#79b7a5;transform:translateY(-1px)}.act-actions .danger-icon{color:#c95c5c;border-color:#e2aaaa}.act-actions .danger-icon:hover{background:#fff0f0;border-color:#d98282}.act-actions .action-svg{stroke-width:1.75}
@media(max-width:760px){.act-actions .icon-action{width:44px;height:44px;border-radius:50%;margin:0 2px}.act-actions .action-svg{width:24px;height:24px}}

html[data-theme="dark"]{color-scheme:dark;--green:#65c8b0;--green2:#7ad7c1;--line:#29414a;--muted:#91a1aa;--white:#14252e;background:#071820}
html[data-theme="dark"] body{color:#edf4f5;background:linear-gradient(180deg,#071820 0,#091b24 420px);min-height:100vh}
html[data-theme="dark"] .topbar{background:rgba(8,26,35,.94);border-color:#29414a}
html[data-theme="dark"] .brand{color:#f1f6f7}html[data-theme="dark"] .brand small{color:#67c99a}html[data-theme="dark"] .brand-mark{background:#103d3b;color:#75d4bd;border:1px solid #2d7067}
html[data-theme="dark"] .main-nav a,html[data-theme="dark"] .topbar .main-nav a{color:#b8c6cc}html[data-theme="dark"] .main-nav a:hover,html[data-theme="dark"] .topbar .main-nav a:hover{background:#142b35;color:#eef7f7}
html[data-theme="dark"] .link{color:#b8c6cc}html[data-theme="dark"] .account .link:hover{background:#142b35}html[data-theme="dark"] .user-chip{background:#122832;border-color:#29414a;color:#c9d5da}html[data-theme="dark"] .theme-toggle{background:#122832;border-color:#29414a;color:#e5c95c}
html[data-theme="dark"] .card,html[data-theme="dark"] .project,html[data-theme="dark"] .formbox,html[data-theme="dark"] .empty,html[data-theme="dark"] .company-card,html[data-theme="dark"] .project-card,html[data-theme="dark"] .stats>div,html[data-theme="dark"] .info-grid>div,html[data-theme="dark"] .list>div,html[data-theme="dark"] .table-wrap,html[data-theme="dark"] .material-pane,html[data-theme="dark"] .material-pane.selected-pane,html[data-theme="dark"] .material-document-row,html[data-theme="dark"] .delete-act-row{background:#142630!important;border-color:#29414a!important;color:#edf4f5}
html[data-theme="dark"] th{background:#10232c;color:#9fb0b8;border-color:#29414a}html[data-theme="dark"] td{border-color:#263d46;color:#e3ecef}html[data-theme="dark"] td a{color:#dce8eb}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .act-formbox textarea,html[data-theme="dark"] .material-search,html[data-theme="dark"] .quick-material-row input,html[data-theme="dark"] .material-filters input,html[data-theme="dark"] .material-filters select,html[data-theme="dark"] .material-actions select,html[data-theme="dark"] .project-material-filter input,html[data-theme="dark"] .project-material-filter select,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0e2029;color:#edf4f5;border-color:#35505a}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#70828b}
html[data-theme="dark"] .btn.secondary{background:#142630;color:#e7eff1;border-color:#35505a}html[data-theme="dark"] .btn.ghost{color:#aebdc3}html[data-theme="dark"] .btn{box-shadow:none}
html[data-theme="dark"] .material-list-row,html[data-theme="dark"] .material-transfer-item{color:#dfe9ec;border-color:#263d46}html[data-theme="dark"] .material-list-row:hover,html[data-theme="dark"] .material-transfer-item:hover{background:#18333b}html[data-theme="dark"] .material-list-row.active{background:#164238;color:#effffb;box-shadow:inset 0 0 0 1px #377d6c}
html[data-theme="dark"] .act-number-link{background:#18313a;color:#8bd7c5}html[data-theme="dark"] .status.draft{background:#172b45;color:#9ebcff}html[data-theme="dark"] .status.signed,html[data-theme="dark"] .status.ok{background:#12382d;color:#77d7ae}html[data-theme="dark"] .status.void,html[data-theme="dark"] .status.expired{background:#402527;color:#f39a96}
html[data-theme="dark"] .acts-table .act-row-signed,html[data-theme="dark"] .acts-table .act-row-signed:hover{background:#102f29!important}html[data-theme="dark"] .acts-table .act-row-void,html[data-theme="dark"] .acts-table .act-row-void:hover{background:#352326!important;color:#e9b3b0}html[data-theme="dark"] .acts-table .act-row-draft{background:#142630!important}
html[data-theme="dark"] .act-actions .icon-action{background:#102832;border-color:#347267;color:#69cbbb}html[data-theme="dark"] .act-actions .icon-action:hover{background:#153b3b;border-color:#55a895}html[data-theme="dark"] .act-actions .danger-icon{color:#ef7f7f;border-color:#7d484c}html[data-theme="dark"] .act-actions .danger-icon:hover{background:#402629;border-color:#b55e63}
html[data-theme="dark"] .warning,html[data-theme="dark"] .soft-warning{background:#332d1e;border-color:#655735;color:#e9d49a}html[data-theme="dark"] .hard-warning,html[data-theme="dark"] .error,html[data-theme="dark"] .delete-flow-warning{background:#3a2527;border-color:#74464a;color:#f1b4b0}
html[data-theme="dark"] .paper,html[data-theme="dark"] .act-sheet{background:#fff!important;color:#111!important}html[data-theme="dark"] .paper *,html[data-theme="dark"] .act-sheet *{--muted:#666}


/* v0.2.43 — GermanBook v1.8.83 action-icon geometry, reused 1:1 */
.action-svg{box-sizing:content-box;width:21px!important;height:21px!important;fill:none;stroke:currentColor;stroke-width:1.65!important;stroke-linecap:round;stroke-linejoin:round;display:block}
.act-actions .icon-action,.material-row-actions .icon-action{box-sizing:border-box;width:43px!important;height:43px!important;padding:10px!important;border:1px solid rgba(83,184,168,.47)!important;border-radius:50%!important;background:rgba(68,170,151,.09)!important;color:#328f83!important;box-shadow:none!important;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;transition:background .17s ease,border-color .17s ease,transform .17s ease}
.act-actions .icon-action:active,.material-row-actions .icon-action:active{transform:scale(.92);background:rgba(66,174,154,.22)!important;border-color:currentColor!important}
.act-actions .danger-icon,.material-row-actions .danger-icon{color:#c35b63!important;border-color:#e5adb1!important;background:#fff0f0!important}
.material-row-actions{min-width:148px!important;white-space:nowrap}.material-row-actions .icon-action{margin:0 2px!important}
html[data-theme="dark"] .act-actions .icon-action,html[data-theme="dark"] .material-row-actions .icon-action{color:#6bc1b5!important;background:rgba(68,170,151,.09)!important;border-color:rgba(83,184,168,.47)!important}
html[data-theme="dark"] .act-actions .danger-icon,html[data-theme="dark"] .material-row-actions .danger-icon{color:#db787d!important;border-color:rgba(219,120,125,.43)!important;background:rgba(219,120,125,.07)!important}
@media(max-width:760px){.act-actions .icon-action,.material-row-actions .icon-action{width:43px!important;height:43px!important;padding:10px!important;margin:0 1px!important}.action-svg{width:21px!important;height:21px!important}.act-actions{min-width:230px!important}.material-row-actions{min-width:142px!important}}

/* v0.2.44 — dark-theme contrast and surface cleanup */
html[data-theme="dark"]{--dark-bg:#071820;--dark-surface:#102630;--dark-surface-2:#142d37;--dark-surface-3:#0d222b;--dark-border:#29454f;--dark-text:#e7eff2;--dark-muted:#9eb0b8;--dark-green:#67c7b1}
html[data-theme="dark"] body{background:#071820!important;color:var(--dark-text)!important}
html[data-theme="dark"] main{color:var(--dark-text)}
html[data-theme="dark"] .details-strip>div,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .project-full-card,
html[data-theme="dark"] .material-info-card,
html[data-theme="dark"] .home-card,
html[data-theme="dark"] .entity-row,
html[data-theme="dark"] .act-page-toolbar,
html[data-theme="dark"] .certificate-history-row,
html[data-theme="dark"] .material-catalog-switch a,
html[data-theme="dark"] .material-filter-note{
  background:var(--dark-surface)!important;border-color:var(--dark-border)!important;color:var(--dark-text)!important;box-shadow:none!important
}
html[data-theme="dark"] .details-strip span,
html[data-theme="dark"] .info-card span,
html[data-theme="dark"] .project-full-card>span,
html[data-theme="dark"] .material-info-card span,
html[data-theme="dark"] .page-title p,
html[data-theme="dark"] .page-head p,
html[data-theme="dark"] .entity-row p,
html[data-theme="dark"] .row-meta span,
html[data-theme="dark"] .helptext,
html[data-theme="dark"] .form-footer,
html[data-theme="dark"] .act-page-toolbar p{color:var(--dark-muted)!important}
html[data-theme="dark"] .details-strip b,
html[data-theme="dark"] .info-card b,
html[data-theme="dark"] .project-full-card>div,
html[data-theme="dark"] .material-info-card strong,
html[data-theme="dark"] .entity-row h3,
html[data-theme="dark"] .page-title h1,
html[data-theme="dark"] .page-head h1{color:var(--dark-text)!important}
html[data-theme="dark"] .tabs a,html[data-theme="dark"] .tabs span{color:#9fb0b8!important}
html[data-theme="dark"] .tabs a.active,html[data-theme="dark"] .tabs .active{color:#eef5f6!important}
html[data-theme="dark"] .acts-table{background:var(--dark-surface-3)!important}
html[data-theme="dark"] .acts-table thead th{background:#0d222b!important;color:#a9bac1!important;border-color:var(--dark-border)!important}
html[data-theme="dark"] .acts-table .act-row-draft{background:#102630!important}
html[data-theme="dark"] .acts-table .act-row-signed,html[data-theme="dark"] .acts-table .act-row-signed:hover{background:#0e352d!important}
html[data-theme="dark"] .acts-table .act-row-void,html[data-theme="dark"] .acts-table .act-row-void:hover{background:#3a2529!important}
html[data-theme="dark"] .acts-table td{color:#dce7ea!important;border-color:#29454f!important}
html[data-theme="dark"] .acts-table .work-cell{color:#dce7ea!important}
html[data-theme="dark"] .status.draft{background:#183452!important;color:#a9c5ff!important}
html[data-theme="dark"] .status.signed,html[data-theme="dark"] .status.ok{background:#124536!important;color:#7edbb7!important}
html[data-theme="dark"] .status.void,html[data-theme="dark"] .status.expired{background:#553034!important;color:#ffaaa5!important}
html[data-theme="dark"] .material-name-link{color:#e1eaed!important}
html[data-theme="dark"] .material-usage-link{color:#9eafb6!important}
html[data-theme="dark"] .material-doc-line,html[data-theme="dark"] .material-project-link,html[data-theme="dark"] .material-act-usage th,html[data-theme="dark"] .material-act-usage td{border-color:var(--dark-border)!important}
html[data-theme="dark"] .btn.secondary,html[data-theme="dark"] .material-catalog-switch a{background:#132c36!important;color:#e5edef!important;border-color:#35535e!important}
html[data-theme="dark"] .danger-btn{background:#2d2226!important;color:#f3a0a0!important;border-color:#70454a!important}
html[data-theme="dark"] .project-full-card,html[data-theme="dark"] .details-strip>div{background:#102832!important}

/* v0.2.45 — softer night palette + dimmed document preview */
html[data-theme="dark"]{--dark-bg:#041219;--dark-surface:#0c222b;--dark-surface-2:#102832;--dark-surface-3:#091d25;--dark-border:#243d47;--dark-text:#dce7ea;--dark-muted:#91a4ac}
html[data-theme="dark"] body{background:#041219!important}
html[data-theme="dark"] .topbar{background:#061a22!important;border-color:#203943!important;box-shadow:0 8px 28px rgba(0,0,0,.14)}
html[data-theme="dark"] .topbar-inner{background:transparent!important}
html[data-theme="dark"] .main-nav a,html[data-theme="dark"] .topbar .main-nav a{color:#aebdc3!important}
html[data-theme="dark"] .main-nav a:hover,html[data-theme="dark"] .topbar .main-nav a:hover{background:#0d2731!important;color:#e4edef!important}
html[data-theme="dark"] .theme-toggle{background:#0b242e!important;border-color:#294650!important}
html[data-theme="dark"] .act-toolbar-v214{background:#0b2029!important;border-color:#29434d!important}
html[data-theme="dark"] .act-toolbar-v214 .act-project-chip,html[data-theme="dark"] .act-toolbar-v214 .act-number-chip,html[data-theme="dark"] .act-toolbar-v214 .tool-group{background:#0b2029!important;color:#d7e2e5!important;border-color:#29434d!important}
html[data-theme="dark"] .act-toolbar-v214 .tool-text{background:#102832!important;color:#dbe5e8!important;border-color:#35505a!important}
html[data-theme="dark"] .act-toolbar-v214 .tool-icon{color:#b8c7cc!important}
/* Keep the official document paper-like, but remove the harsh pure-white glow at night. */
html[data-theme="dark"] .paper,html[data-theme="dark"] .act-sheet{background:#deddd8!important;color:#161616!important;box-shadow:0 10px 30px rgba(0,0,0,.22)!important}
html[data-theme="dark"] .paper *,html[data-theme="dark"] .act-sheet *{color:inherit;--muted:#606060}

/* v0.2.48 — keep v0.2.45 dark theme, soften only semantic colour blocks */
html[data-theme="dark"] .acts-table .act-row-signed,
html[data-theme="dark"] .acts-table .act-row-signed:hover{background:#29423d!important}
html[data-theme="dark"] .acts-table .act-row-void,
html[data-theme="dark"] .acts-table .act-row-void:hover{background:#493538!important;color:#f0d9d7!important}
html[data-theme="dark"] .status.signed,
html[data-theme="dark"] .status.ok{background:#31564a!important;color:#b9ead7!important}
html[data-theme="dark"] .status.void,
html[data-theme="dark"] .status.expired{background:#5a3d40!important;color:#f2c3bf!important}
html[data-theme="dark"] .status.draft{background:#31465a!important;color:#c8d8f4!important}


/* v0.2.57 — compact contractor/object/catalog pages */
.compact-index-page{max-width:100%}
.page-back-tight{font-size:15px;font-weight:600;display:inline-block;margin-bottom:8px}
.contractors-index .page-head{margin-top:-22px}
.contractors-index .page-head h1{margin-top:6px}
.brand-action{background:#155c46;border:1px solid #2d7067;color:#e4efec;box-shadow:inset 0 0 16px rgba(104,215,188,.09),0 4px 14px rgba(10,53,44,.12)}
.brand-action:hover{background:#124f42;border-color:#397d72;color:#f0f6f4}
.contractor-avatar{background:#155c46;color:#cfe3de;border:1px solid #2d7067;box-shadow:inset 0 0 13px rgba(117,212,189,.10)}
.contractor-row{padding-top:14px;padding-bottom:14px}
.contractor-row h3{font-size:18px;margin:0;color:#34413c}
.home-flow-grid{grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);align-items:stretch}
.workflow-card{min-height:190px;align-items:flex-start;padding:26px}
.workflow-number{background:#155c46!important;color:#d3e4df!important;border:1px solid #2d7067;box-shadow:inset 0 0 15px rgba(117,212,189,.11)}
.workflow-copy h2{font-size:28px!important;margin:2px 0 10px!important;line-height:1.08}
.workflow-copy p{min-height:0!important;margin:0 0 20px;font-size:15px;line-height:1.45}
.workflow-count{font-size:12px;color:#7b8983}
.home-flow-arrow{display:grid;place-items:center;font-size:28px;color:#88a098}
.compact-page-head{margin-bottom:14px}
.compact-page-head h1{margin-bottom:0}
.compact-filterbar{margin-bottom:12px}
.project-index-row{padding:13px 16px}
.project-inline-title{display:flex;align-items:baseline;gap:8px;min-width:0;white-space:nowrap}
.project-inline-title h3{margin:0;font-size:16px;overflow:hidden;text-overflow:ellipsis}
.inline-separator{color:#91a09a;flex:0 0 auto}
.inline-contractor{font-size:13px;color:#7b8983;overflow:hidden;text-overflow:ellipsis}
.project-index-row p{margin-top:4px!important;font-size:12px!important}
.materials-title-row{margin-bottom:12px}
.material-live-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.material-live-search-wrap{height:46px;flex:1;display:flex;align-items:center;gap:9px;border:1px solid #d6dfda;border-radius:12px;background:#fff;padding:0 13px;transition:border-color .15s,box-shadow .15s}
.material-live-search-wrap:focus-within{border-color:#6a9b87;box-shadow:0 0 0 3px rgba(21,92,70,.08)}
.material-live-search-wrap svg{width:18px;height:18px;fill:none;stroke:#71817a;stroke-width:1.8;stroke-linecap:round}
.material-live-search-wrap input{border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;width:100%;min-width:0;font:inherit;color:inherit;padding:0!important}
.material-add-inline{white-space:nowrap;height:46px}
.material-live-row[hidden]{display:none!important}
.material-no-matches{text-align:center;color:#7f8b86;padding:28px!important}

html[data-theme="dark"] .brand-action,
html[data-theme="dark"] .contractor-avatar,
html[data-theme="dark"] .workflow-number{background:#103d3b!important;color:#b9d8d1!important;border-color:#2d7067!important;box-shadow:inset 0 0 17px rgba(117,212,189,.13),0 0 0 1px rgba(45,112,103,.08)!important}
html[data-theme="dark"] .brand-action:hover{background:#124845!important;color:#dce8e5!important;border-color:#397e73!important}
html[data-theme="dark"] .contractor-row h3{color:#cfdadd!important}
html[data-theme="dark"] .workflow-copy h2{color:#d5e0e3!important}
html[data-theme="dark"] .workflow-copy p{color:#99abb2!important}
html[data-theme="dark"] .workflow-count{color:#789099!important}
html[data-theme="dark"] .home-flow-arrow{color:#49636b}
html[data-theme="dark"] .inline-contractor{color:#90a3aa}
html[data-theme="dark"] .material-live-search-wrap{background:#0e2029;border-color:#35505a;color:#edf4f5}
html[data-theme="dark"] .material-live-search-wrap svg{stroke:#91a4ac}

@media(max-width:760px){
 .contractors-index .page-head{margin-top:-8px}
 .home-flow-grid{grid-template-columns:1fr}
 .home-flow-arrow{height:28px;transform:rotate(90deg)}
 .workflow-card{min-height:0;padding:20px}
 .workflow-copy h2{font-size:24px!important}
 .project-inline-title{white-space:normal;flex-wrap:wrap;gap:5px}
 .material-live-toolbar{align-items:stretch}
 .material-add-inline{width:46px;padding:0;font-size:0}
 .material-add-inline::before{content:'+';font-size:24px;line-height:1}
}


/* v0.2.58 — actions belong to the current hierarchy level */
.management-row{padding:0;gap:0;overflow:hidden}
.entity-row-main{display:flex;align-items:center;gap:15px;flex:1;min-width:0;padding:14px 16px;color:inherit;text-decoration:none}
.entity-row-main:hover{background:rgba(21,92,70,.025)}
.entity-manage-actions{display:flex;align-items:center;gap:6px;padding:0 14px 0 10px;border-left:1px solid var(--line)}
.mini-manage-action{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d6e3dd;border-radius:50%;color:#52635d;background:#f8fbfa;text-decoration:none;transition:.14s}
.mini-manage-action svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.mini-manage-action:hover{color:#247760;border-color:#9fcbbd;background:#eef7f3;transform:translateY(-1px)}
.mini-manage-action.danger{color:#a95751;border-color:#ead0cd;background:#fff8f7}
.mini-manage-action.danger:hover{color:#b83d35;border-color:#e0aaa5;background:#fff0ee}
.acts-workspace-head{align-items:center}
.acts-workspace-head .brand-action{flex:0 0 auto}
html[data-theme="dark"] .entity-row-main:hover{background:rgba(117,212,189,.025)}
html[data-theme="dark"] .entity-manage-actions{border-color:#29434d}
html[data-theme="dark"] .mini-manage-action{color:#aebfc3;background:#0d252e;border-color:#31505a}
html[data-theme="dark"] .mini-manage-action:hover{color:#78cdbb;background:#12332f;border-color:#39796e}
html[data-theme="dark"] .mini-manage-action.danger{color:#d07a76;background:#2d2022;border-color:#624044}
/* Signed acts use the same dark green fill as the StroiDoc S mark. */
html[data-theme="dark"] .acts-table .act-row-signed,
html[data-theme="dark"] .acts-table .act-row-signed:hover{background:#103d3b!important}
@media(max-width:760px){
  .entity-manage-actions{padding:0 8px;gap:4px}
  .mini-manage-action{width:32px;height:32px}
  .entity-row-main{padding:12px 11px;gap:10px}
  .acts-workspace-head{align-items:flex-start}
}


/* v0.2.60 — participant typography consistency in act preview */
.act-sheet .doc-row.people .filled-value{
  font-size:1em!important;
  line-height:inherit!important;
  font-weight:400!important;
}

/* v0.2.61 — remembered contractor context */
.contractor-context-bar{
  position:sticky;top:72px;z-index:9;
  background:rgba(247,250,248,.96);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.contractor-context-inner{
  max-width:1120px;margin:0 auto;padding:7px 22px;
  min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:18px;
}
.contractor-context-name{
  min-width:0;display:flex;align-items:baseline;gap:10px;
  color:#24312b;text-decoration:none;
}
.contractor-context-label{
  flex:0 0 auto;font-size:10px;line-height:1;
  letter-spacing:.11em;text-transform:uppercase;font-weight:800;color:#83918b;
}
.contractor-context-name strong{
  min-width:0;font-size:14px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.contractor-context-change{
  flex:0 0 auto;font-size:12px;font-weight:700;text-decoration:none;color:#507068;
}
.active-contractor-row{
  box-shadow:inset 3px 0 #4eb3a0;
}
.contractor-scoped-filter{grid-template-columns:minmax(0,1fr) auto!important}

html[data-theme="dark"] .contractor-context-bar{
  background:rgba(8,27,35,.96);border-color:#203943;
}
html[data-theme="dark"] .contractor-context-name{color:#dbe7e9}
html[data-theme="dark"] .contractor-context-label{color:#718991}
html[data-theme="dark"] .contractor-context-change{color:#70b8aa}

@media(max-width:900px){
  .contractor-context-bar{top:108px}
  .contractor-context-inner{padding:6px 14px;min-height:40px}
  .contractor-context-label{display:none}
  .contractor-context-name strong{font-size:13px}
  .contractor-context-change{font-size:11px}
}


/* v0.2.62 — tighter contractor context + more compact object header */
body.has-contractor-context .topbar{border-bottom:0}
body.has-contractor-context .contractor-context-bar{margin-top:-1px}
.contractor-context-inner{padding:5px 22px;min-height:36px}
.project-head{margin:2px 0 14px!important;gap:16px;align-items:flex-end}
.project-head h1{font-size:28px!important;line-height:1.08!important;letter-spacing:-.028em!important;margin:4px 0 5px!important;color:#2b3933!important;font-weight:620!important;max-width:760px}
.project-head p{font-size:15px!important}
.project-full-card{padding:14px 18px!important;margin:0 0 10px!important}
.project-full-card>div{font-size:15px!important;line-height:1.38!important}
.project-parties{margin-bottom:18px!important}
html[data-theme="dark"] .project-head h1{color:#c4d5d9!important}
html[data-theme="dark"] .project-head p{color:#8fa1a8!important}
html[data-theme="dark"] .contractor-context-bar{background:rgba(8,27,35,.985)!important}
@media(max-width:900px){
  .contractor-context-inner{padding:5px 14px;min-height:34px}
  .project-head h1{font-size:24px!important;line-height:1.1!important;max-width:none}
  .project-head p{font-size:14px!important}
}


/* v0.2.63 — cleaner contractor strip, softer accents, wider table workspace */
:root{
  --green:#2b8f89;
  --green2:#23746f;
}
.topbar-inner,
main,
.contractor-context-inner{max-width:1480px!important}
main{padding-left:18px!important;padding-right:18px!important}

body.has-contractor-context .topbar{border-bottom:1px solid rgba(49,79,88,.32)!important}
body.has-contractor-context .contractor-context-bar{margin-top:0!important}
.contractor-context-bar{
  z-index:19!important;
  background:#f6f9f8!important;
  border-top:0!important;
  border-bottom:1px solid rgba(205,219,214,.9)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.contractor-context-inner{padding:4px 18px!important;min-height:38px!important}
.contractor-context-name{gap:8px!important}
.contractor-context-label{font-size:10px!important}
.contractor-context-name strong{font-size:13px!important;font-weight:700!important}
.contractor-context-change{font-size:12px!important}
html[data-theme="dark"] .contractor-context-bar{
  background:#0a2029!important;
  border-bottom:1px solid #1b3944!important;
}

.project-head{margin:2px 0 12px!important}
.project-head h1{
  font-size:26px!important;
  line-height:1.1!important;
  font-weight:560!important;
  color:#46565f!important;
  letter-spacing:-.02em!important;
}
.project-head p{font-size:14px!important;color:#74848b!important}
.project-full-card{padding:14px 18px!important}
.project-full-card>div{
  font-size:15px!important;
  line-height:1.36!important;
  font-weight:500!important;
  color:#41525b!important;
}
.details-strip b{font-weight:560!important}
html[data-theme="dark"] .project-head h1{color:#b7c7cd!important}
html[data-theme="dark"] .project-head p{color:#86979d!important}
html[data-theme="dark"] .project-full-card>div{color:#c4d0d4!important;font-weight:500!important}
html[data-theme="dark"] .details-strip b{color:#c7d3d7!important;font-weight:560!important}

.acts-table{width:100%!important}
.acts-table thead th{text-align:center!important}
.acts-table td{font-size:13px!important}
.acts-table .work-cell{
  font-size:13px!important;
  line-height:1.34!important;
  font-weight:500!important;
  color:#677780!important;
  max-width:320px;
}
.acts-table .meta-cell,
.acts-table .materials-cell{font-size:13px!important;line-height:1.34!important}
html[data-theme="dark"] .acts-table td{color:#c7d5d9!important}
html[data-theme="dark"] .acts-table .work-cell{color:#a9bbc0!important;font-weight:500!important}
html[data-theme="dark"] .acts-table thead th{color:#b2c2c7!important}

.act-actions{min-width:214px!important}
.act-actions .icon-action{
  width:38px!important;
  height:38px!important;
  padding:8px!important;
  border-width:1px!important;
}
.act-actions .action-svg{width:19px!important;height:19px!important;stroke-width:1.8!important}
.act-actions .danger-icon .action-svg{stroke-width:2.05!important}

@media(max-width:900px){
  .topbar-inner,main,.contractor-context-inner{max-width:none!important}
  main{padding-left:16px!important;padding-right:16px!important}
  .contractor-context-inner{padding:5px 14px!important;min-height:36px!important}
  .project-head h1{font-size:23px!important}
  .acts-table .work-cell,.acts-table .meta-cell,.acts-table .materials-cell,.acts-table td{font-size:12.5px!important}
  .act-actions{min-width:226px!important}
  .act-actions .icon-action{width:40px!important;height:40px!important;padding:9px!important}
  .act-actions .action-svg{width:20px!important;height:20px!important}
}


/* v0.2.70 — exact contractor/header alignment + calmer desktop table */
@media(min-width:901px){
  /* Actual desktop topbar height is 68px. Keep the contractor strip flush to it. */
  .contractor-context-bar{
    top:68px!important;
    margin-top:0!important;
  }
  body.has-contractor-context .topbar{
    border-bottom:0!important;
  }

  /* Give the object workspace almost the full desktop width. */
  main{
    width:calc(100vw - 36px)!important;
    max-width:1560px!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  .topbar-inner,
  .contractor-context-inner{
    width:calc(100vw - 36px)!important;
    max-width:1560px!important;
    padding-left:0!important;
    padding-right:0!important;
  }
}

/* Softer turquoise StroiDoc accent. */
:root{
  --green:#46aaa2;
  --green2:#378d87;
}
.brand-mark,
.contractor-avatar,
.workflow-number{
  background:#176861!important;
}
.brand-action{
  background:#176861!important;
  border-color:#338a82!important;
}
.brand-action:hover{background:#1b756e!important}
.contractor-context-change{color:#67c6bb!important}
html[data-theme="dark"] .contractor-context-change{color:#72cbbf!important}

/* Object heading: smaller and less heavy. */
.project-head h1{
  font-size:25px!important;
  font-weight:500!important;
  color:#7f9299!important;
  letter-spacing:-.015em!important;
}
.project-full-card>div{
  font-size:14px!important;
  font-weight:450!important;
  color:#82949a!important;
}
.details-strip b{
  font-weight:500!important;
}
html[data-theme="dark"] .project-head h1{
  color:#aebfc4!important;
  font-weight:500!important;
}
html[data-theme="dark"] .project-full-card>div{
  color:#a7b8bd!important;
  font-weight:450!important;
}

/* Table typography: headers centered, work name same scale as other data. */
.acts-table thead th{
  text-align:center!important;
  font-size:10.5px!important;
}
.acts-table td{
  font-size:12px!important;
}
.acts-table .work-cell{
  font-size:12px!important;
  line-height:1.34!important;
  font-weight:400!important;
  color:#788a91!important;
}
.acts-table .meta-cell,
.acts-table .materials-cell{
  font-size:12px!important;
  line-height:1.34!important;
  font-weight:400!important;
}
html[data-theme="dark"] .acts-table .work-cell{
  color:#9fb1b6!important;
  font-weight:400!important;
}
html[data-theme="dark"] .acts-table td{
  color:#c3d0d4!important;
}

/* Smaller action controls on desktop. */
.act-actions{
  min-width:188px!important;
  white-space:nowrap!important;
}
.act-actions .icon-action{
  width:32px!important;
  height:32px!important;
  padding:6px!important;
  margin:0 1px!important;
}
.act-actions .action-svg{
  width:16px!important;
  height:16px!important;
  stroke-width:1.7!important;
}
.act-actions .danger-icon .action-svg{
  stroke-width:1.9!important;
}

@media(max-width:900px){
  .project-head h1{font-size:22px!important}
  .project-full-card>div{font-size:13.5px!important}
  .acts-table td,
  .acts-table .work-cell,
  .acts-table .meta-cell,
  .acts-table .materials-cell{font-size:11.5px!important}
  .act-actions{min-width:205px!important}
  .act-actions .icon-action{
    width:36px!important;
    height:36px!important;
    padding:7px!important;
  }
  .act-actions .action-svg{
    width:18px!important;
    height:18px!important;
  }
}


/* v0.2.70 — cleaner project acts page */
.contractor-context-inner.has-project{gap:10px!important;align-items:center!important}
.contractor-context-sep{color:#658089;font-size:14px;line-height:1;opacity:.8}
.contractor-context-project{display:flex;align-items:center;gap:8px;color:inherit}
.contractor-context-project strong{font-size:13px;font-weight:700;color:inherit}
.contractor-context-project .contractor-context-label{margin:0}
.project-head{margin:6px 0 10px!important}
.project-head .kicker{display:none!important}
.project-head h1{font-size:22px!important;line-height:1.14!important;font-weight:520!important;letter-spacing:-.02em!important;color:#8ea1a7!important;max-width:none!important;margin:0 0 4px!important}
.project-head p{font-size:14px!important;color:#73858c!important;margin:0!important}
.compact-project-card{padding:12px 16px!important;margin:0 0 14px!important}
.compact-project-card>div{font-size:14px!important;font-weight:480!important;color:#b7c6ca!important;line-height:1.35!important}
.project-inline-meta{margin:8px 0 0!important;font-size:12px!important;line-height:1.4!important;color:#8ca0a7!important;font-weight:400!important}
.acts-register-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:8px 0 12px}
.acts-register-head h2{margin:3px 0 0;font-size:20px;line-height:1.15;font-weight:560;color:#d8e4e8}
.acts-register-link{display:inline-flex;align-items:center;gap:6px;color:var(--green)!important;text-decoration:none;font-size:14px;font-weight:550}
.acts-register-link:hover{opacity:.9}
.project-parties{display:none!important}
.tabs{display:none!important}
.acts-table thead th{text-align:center!important}
.acts-table .work-cell{font-size:12px!important;line-height:1.34!important;font-weight:400!important;color:#95a8ad!important}
.acts-table .meta-cell,.acts-table .materials-cell,.acts-table td{font-size:12px!important;line-height:1.35!important}
.acts-table .meta-cell,.acts-table .materials-cell{color:#c7d6da!important}
.act-actions{min-width:168px!important}
.act-actions .icon-action{width:30px!important;height:30px!important;padding:5px!important}
.act-actions .action-svg{width:15px!important;height:15px!important}
.table-wrap{width:100%!important;max-width:none!important}
@media(min-width:901px){main{max-width:1600px!important;width:calc(100vw - 28px)!important}.topbar-inner,.contractor-context-inner{max-width:1600px!important;width:calc(100vw - 28px)!important}.table-wrap{border-radius:16px!important}.acts-table th,.acts-table td{padding-left:18px!important;padding-right:18px!important}}
html[data-theme="dark"] .project-head h1{color:#aebec3!important}
html[data-theme="dark"] .compact-project-card>div{color:#c7d4d7!important;font-weight:470!important}
html[data-theme="dark"] .project-inline-meta{color:#98aab0!important}
html[data-theme="dark"] .acts-register-head h2{color:#dfe8ea!important}
html[data-theme="dark"] .acts-table .work-cell{color:#aab9bd!important;font-weight:400!important}
@media(max-width:760px){.contractor-context-inner.has-project{flex-wrap:wrap;row-gap:4px!important}.contractor-context-project strong{font-size:12px!important}.contractor-context-sep{display:none}.project-head{gap:8px!important}.project-head h1{font-size:20px!important}.compact-project-card{padding:12px 14px!important}.acts-register-head{align-items:flex-start;flex-direction:column}.acts-register-head h2{font-size:18px}.acts-table .work-cell,.acts-table .meta-cell,.acts-table .materials-cell,.acts-table td{font-size:11.5px!important}.act-actions{min-width:190px!important}.act-actions .icon-action{width:34px!important;height:34px!important}.act-actions .action-svg{width:16px!important;height:16px!important}}


/* v0.2.70 — tighter project header and inline acts register */
.contractor-context-inner.has-project{justify-content:flex-start!important;gap:10px!important}
.contractor-context-name,.contractor-context-project{flex:0 0 auto!important}
.contractor-context-project{margin-left:16px!important;gap:6px!important}
.contractor-context-change{margin-left:auto!important}
.contractor-context-sep{display:none!important}
.compact-project-card-tight{margin-top:8px!important;margin-bottom:10px!important}
.acts-workspace-head{display:none!important}
.acts-register-head-inline{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:10px 0 12px!important}
.acts-register-head-inline .acts-register-title-wrap{display:flex;align-items:center;gap:12px;min-width:0}
.acts-register-head-inline .kicker{margin:0!important;font-size:13px!important;letter-spacing:.12em!important;color:#b9c7cb!important;white-space:nowrap}
.acts-register-tools{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:flex-end}
.acts-register-create{padding:11px 16px!important;white-space:nowrap}
.compact-project-card>div{font-size:15px!important;line-height:1.4!important}
.project-inline-meta{font-size:12.5px!important}
.acts-table .work-cell,.acts-table .meta-cell,.acts-table .materials-cell,.acts-table td{font-size:13px!important;line-height:1.42!important}
.acts-table .work-cell{color:#9eafb4!important}
.acts-table thead th{font-size:13px!important}
@media(min-width:901px){
  .table-wrap{width:100%!important;max-width:none!important}
  .acts-table th,.acts-table td{padding-top:16px!important;padding-bottom:16px!important}
  .acts-table .work-cell,.acts-table .meta-cell,.acts-table .materials-cell,.acts-table td{font-size:14px!important}
  .acts-table thead th{font-size:13.5px!important}
  .acts-register-head-inline{margin-top:12px!important}
}
@media(max-width:900px){
  .contractor-context-inner.has-project{gap:8px!important}
  .contractor-context-project{margin-left:8px!important}
}
@media(max-width:760px){
  .compact-project-card-tight{margin-top:6px!important}
  .acts-register-head-inline{flex-direction:column;align-items:flex-start!important;gap:10px!important}
  .acts-register-tools{justify-content:flex-start!important;gap:14px!important}
  .acts-register-head-inline .kicker{white-space:normal!important;line-height:1.3!important}
}


/* v0.2.76 — cleaner contractor/object separator + smaller table header */
.contractor-context-sep{
  display:block!important;
  width:1px!important;
  height:18px!important;
  background:rgba(115,150,160,.38)!important;
  margin:0 10px!important;
  flex:0 0 1px!important;
  border-radius:1px!important;
}
html[data-theme="dark"] .contractor-context-sep{background:rgba(130,170,180,.32)!important}
.acts-table thead th{
  font-size:11px!important;
  letter-spacing:.06em!important;
  font-weight:650!important;
  padding-top:11px!important;
  padding-bottom:11px!important;
}
@media(max-width:760px){
  .contractor-context-sep{height:16px!important;margin:0 8px!important}
  .acts-table thead th{font-size:10px!important;padding-top:9px!important;padding-bottom:9px!important}
}


/* v0.2.76 — denser centered acts table */
.acts-table th,.acts-table td{vertical-align:middle!important;padding-top:9px!important;padding-bottom:9px!important;padding-left:10px!important;padding-right:10px!important}
.acts-table th:not(:first-child),.acts-table td:not(:first-child){text-align:center!important}
.acts-table th:first-child,.acts-table td:first-child{text-align:left!important}
.acts-table .materials-cell span{margin-bottom:1px!important}
.act-actions{vertical-align:middle!important}
@media(max-width:760px){
  .acts-table th,.acts-table td{padding-top:7px!important;padding-bottom:7px!important;padding-left:8px!important;padding-right:8px!important}
}

/* v0.2.76 — rebalance acts table columns */
.acts-table{table-layout:fixed!important}
/* № */
.acts-table th:nth-child(1),.acts-table td:nth-child(1){width:4%!important}
/* Работы: ~1.5x wider than before */
.acts-table th:nth-child(2),.acts-table td:nth-child(2){width:30%!important}
/* Оси / отметки: ~1.5x narrower */
.acts-table th:nth-child(3),.acts-table td:nth-child(3){width:12%!important}
/* Даты */
.acts-table th:nth-child(4),.acts-table td:nth-child(4){width:11%!important}
/* Материалы */
.acts-table th:nth-child(5),.acts-table td:nth-child(5){width:21%!important}
/* Статус */
.acts-table th:nth-child(6),.acts-table td:nth-child(6){width:10%!important}
/* Действия */
.acts-table th:nth-child(7),.acts-table td:nth-child(7){width:12%!important}

.acts-table .work-cell{
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
}
.acts-table .axes-cell{
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
}

@media(max-width:760px){
  .acts-table{min-width:920px!important;table-layout:fixed!important}
  .acts-table th:nth-child(1),.acts-table td:nth-child(1){width:46px!important}
  .acts-table th:nth-child(2),.acts-table td:nth-child(2){width:310px!important}
  .acts-table th:nth-child(3),.acts-table td:nth-child(3){width:125px!important}
  .acts-table th:nth-child(4),.acts-table td:nth-child(4){width:125px!important}
  .acts-table th:nth-child(5),.acts-table td:nth-child(5){width:210px!important}
  .acts-table th:nth-child(6),.acts-table td:nth-child(6){width:120px!important}
  .acts-table th:nth-child(7),.acts-table td:nth-child(7){width:190px!important}
}


/* v0.2.76 — selectable acts register with sticky actions + sticky column header */
:root{--acts-sticky-top:106px}
.acts-table-sticky-stack{
  position:sticky;
  top:var(--acts-sticky-top);
  z-index:18;
  background:#f5f7f6;
  border-bottom:1px solid var(--line);
  box-shadow:0 7px 18px rgba(20,40,35,.045);
  margin:0 0 0;
  padding-top:1px;
}
html[data-theme="dark"] .acts-table-sticky-stack{
  background:#041219;
  border-color:#243d47;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}
.acts-table-sticky-stack .acts-register-head-inline{margin:7px 0 6px!important;padding:0 2px}
.acts-selection-toolbar{
  min-height:44px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:5px 8px;
  border:1px solid #dce6e2;
  border-bottom:0;
  border-radius:12px 12px 0 0;
  background:#fbfcfb;
}
.acts-selection-label{
  flex:0 0 auto;
  min-width:94px;
  font-size:12px;
  font-weight:650;
  color:#667870;
}
.acts-selection-actions{display:flex;align-items:center;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:none}
.acts-selection-actions::-webkit-scrollbar{display:none}
.table-action-btn{
  height:32px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid rgba(70,170,162,.42);
  border-radius:9px;
  background:rgba(70,170,162,.06);
  color:#318d87;
  font:inherit;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}
.table-action-btn .action-svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.table-action-btn:hover:not(:disabled){background:rgba(70,170,162,.14);border-color:rgba(70,170,162,.75)}
.table-action-btn:disabled{opacity:.26;cursor:default}
.table-action-btn.danger{color:#bc6466;border-color:rgba(188,100,102,.38);background:rgba(188,100,102,.05)}
html[data-theme="dark"] .acts-selection-toolbar{background:#0b2029;border-color:#29434d}
html[data-theme="dark"] .acts-selection-label{color:#94a8af}
html[data-theme="dark"] .table-action-btn{color:#70c9bf;background:rgba(70,170,162,.06);border-color:rgba(70,170,162,.35)}
html[data-theme="dark"] .table-action-btn.danger{color:#db777b;border-color:rgba(219,119,123,.35)}

.acts-header-viewport{
  overflow:hidden;
  border-left:1px solid #dce6e2;
  border-right:1px solid #dce6e2;
  background:#f9fbfa;
}
html[data-theme="dark"] .acts-header-viewport{border-color:#29434d;background:#0d222b}
.acts-header-track{will-change:transform;width:max-content;min-width:100%}
.acts-header-table{margin:0!important;border:0!important;border-radius:0!important;background:transparent!important}
.acts-header-table thead{display:table-header-group!important}
.acts-header-table thead th{border-bottom:1px solid #dce6e2!important}
html[data-theme="dark"] .acts-header-table thead th{border-color:#29434d!important}

.selectable-acts-wrap{border-top-left-radius:0!important;border-top-right-radius:0!important;margin-top:0!important}
.selectable-acts-table thead{display:none!important}
.selectable-act-row{cursor:pointer;transition:box-shadow .12s ease,filter .12s ease,background .12s ease}
.selectable-act-row.act-row-selected{box-shadow:inset 0 0 0 2px rgba(70,170,162,.75)!important;filter:brightness(1.035)}
html[data-theme="dark"] .selectable-act-row.act-row-selected{box-shadow:inset 0 0 0 2px rgba(112,201,191,.78)!important;filter:brightness(1.10)}
.act-select-cell{text-align:center!important;vertical-align:middle!important}
.act-select-checkbox{width:18px;height:18px;margin:0;accent-color:#46aaa2;cursor:pointer}

/* 7 columns: number, work, axes, dates, materials, status, selection */
.acts-table th:nth-child(1),.acts-table td:nth-child(1){width:4%!important}
.acts-table th:nth-child(2),.acts-table td:nth-child(2){width:33%!important}
.acts-table th:nth-child(3),.acts-table td:nth-child(3){width:12%!important}
.acts-table th:nth-child(4),.acts-table td:nth-child(4){width:11%!important}
.acts-table th:nth-child(5),.acts-table td:nth-child(5){width:24%!important}
.acts-table th:nth-child(6),.acts-table td:nth-child(6){width:11%!important}
.acts-table th:nth-child(7),.acts-table td:nth-child(7){width:5%!important}
.acts-table th.select-col{font-size:13px!important}

@media(max-width:760px){
  .acts-table-sticky-stack{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
  .acts-table-sticky-stack .acts-register-head-inline{gap:7px!important;margin:5px 0!important}
  .acts-selection-toolbar{padding:5px 6px;gap:7px;min-height:42px}
  .acts-selection-label{min-width:78px;font-size:11px}
  .table-action-btn{width:34px;height:34px;padding:0;border-radius:9px;flex:0 0 34px}
  .table-action-btn span{display:none}
  .table-action-btn .action-svg{width:17px;height:17px}
  .acts-header-viewport{margin-left:0;margin-right:0}
  .acts-table{min-width:1025px!important}
  .acts-table th:nth-child(1),.acts-table td:nth-child(1){width:46px!important}
  .acts-table th:nth-child(2),.acts-table td:nth-child(2){width:330px!important}
  .acts-table th:nth-child(3),.acts-table td:nth-child(3){width:125px!important}
  .acts-table th:nth-child(4),.acts-table td:nth-child(4){width:125px!important}
  .acts-table th:nth-child(5),.acts-table td:nth-child(5){width:220px!important}
  .acts-table th:nth-child(6),.acts-table td:nth-child(6){width:125px!important}
  .acts-table th:nth-child(7),.acts-table td:nth-child(7){width:54px!important}
}


/* v0.2.76 — restore the visible sticky column header */
.acts-header-viewport{width:100%!important;display:block!important}
.acts-header-track{width:100%!important;min-width:100%!important;display:block!important}
.acts-header-table{width:100%!important;min-width:100%!important;table-layout:fixed!important}
.acts-header-table thead{display:table-header-group!important;visibility:visible!important}
.acts-header-table thead tr{display:table-row!important}
.acts-header-table thead th{display:table-cell!important;visibility:visible!important;opacity:1!important;text-align:center!important;white-space:nowrap!important}
.acts-table col.c-num{width:4%}
.acts-table col.c-work{width:33%}
.acts-table col.c-axes{width:12%}
.acts-table col.c-dates{width:11%}
.acts-table col.c-mat{width:24%}
.acts-table col.c-status{width:11%}
.acts-table col.c-select{width:5%}
@media(max-width:760px){
  .acts-header-track{width:1025px!important;min-width:1025px!important}
  .acts-header-table,.selectable-acts-table{width:1025px!important;min-width:1025px!important}
  .acts-table col.c-num{width:46px}
  .acts-table col.c-work{width:330px}
  .acts-table col.c-axes{width:125px}
  .acts-table col.c-dates{width:125px}
  .acts-table col.c-mat{width:220px}
  .acts-table col.c-status{width:125px}
  .acts-table col.c-select{width:54px}
}

/* v0.2.78 — inline editing for the selected draft act */
.selectable-act-row.act-row-inline-edit{
  box-shadow:inset 0 0 0 2px rgba(78,188,178,.92)!important;
  background:rgba(70,170,162,.10)!important;
  filter:none!important;
}
html[data-theme="dark"] .selectable-act-row.act-row-inline-edit{
  background:#12333a!important;
  box-shadow:inset 0 0 0 2px rgba(112,201,191,.9)!important;
}
.inline-cell-input{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  border:1px solid rgba(70,170,162,.62);
  border-radius:7px;
  background:#fff;
  color:#20312c;
  padding:6px 7px;
  font:inherit;
  line-height:1.3;
  outline:none;
  resize:vertical;
}
.inline-cell-input:focus{
  border-color:#46aaa2;
  box-shadow:0 0 0 2px rgba(70,170,162,.14);
}
.inline-work-input{min-height:56px;text-align:left!important}
.inline-axes-input{min-height:44px;text-align:center!important}
.inline-date-pair{display:grid;gap:5px}
.inline-date-input{height:34px;text-align:center!important;padding:4px 5px}
html[data-theme="dark"] .inline-cell-input{
  background:#0b2029;
  color:#dbe7ea;
  border-color:#3b776e;
}
.save-inline-btn{
  color:#0f6a5f!important;
  border-color:rgba(70,170,162,.68)!important;
  background:rgba(70,170,162,.14)!important;
  font-weight:700!important;
}
.cancel-inline-btn{color:#74858b!important;background:transparent!important}
html[data-theme="dark"] .save-inline-btn{color:#8ad6cc!important}
html[data-theme="dark"] .cancel-inline-btn{color:#9aacb2!important}
.act-row-saved-flash{animation:actSavedFlash .65s ease-out}
@keyframes actSavedFlash{
  0%{box-shadow:inset 0 0 0 2px rgba(88,210,171,.95)}
  100%{box-shadow:inset 0 0 0 2px rgba(88,210,171,0)}
}
@media(max-width:760px){
  .save-inline-btn,.cancel-inline-btn{width:auto!important;min-width:72px!important;padding:0 8px!important;font-size:11px!important}
  .inline-cell-input{font-size:12px!important;padding:5px!important}
}


/* v0.2.81 — form editing restored; compact materials editor from acts table */
.act-materials-dialog{border:0;padding:0;background:transparent;color:inherit;max-width:none;max-height:none}
.act-materials-dialog::backdrop{background:rgba(0,0,0,.52);backdrop-filter:blur(3px)}
.act-materials-dialog-card{width:min(860px,calc(100vw - 28px));max-height:min(760px,calc(100vh - 36px));display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.act-materials-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid var(--line)}
.act-materials-dialog-head span{display:block;font-size:11px;color:var(--muted);margin-bottom:3px}
.act-materials-dialog-head strong{font-size:18px;font-weight:650}
.dialog-close{border:0;background:transparent;color:var(--muted);font-size:29px;line-height:1;cursor:pointer;padding:4px 7px}
.act-materials-dialog-body{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px;overflow:auto;min-height:360px}
.dialog-material-pane{min-width:0;border:1px solid var(--line);border-radius:13px;padding:12px;background:#fbfcfc;display:flex;flex-direction:column;gap:9px}
.dialog-material-pane>label,.dialog-pane-title,.dialog-quick-material>label{font-size:13px;font-weight:650}
.dialog-material-pane input{width:100%;min-height:42px;border:1px solid #cad7d1;border-radius:9px;padding:8px 10px;background:#fff;color:inherit;font:inherit}
.dialog-material-list{height:260px;overflow:auto;border:1px solid #e1e7e4;border-radius:9px;background:#fff}
.dialog-material-add{width:100%;border:0;border-bottom:1px solid #e8edeb;background:transparent;color:inherit;text-align:left;padding:10px 11px;cursor:pointer;display:flex;justify-content:space-between;gap:10px;font:inherit}
.dialog-material-add:hover{background:#eff7f4}
.dialog-material-add small{color:#b06e29}
.dialog-material-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border-bottom:1px solid #e8edeb}
.dialog-material-row>div{min-width:0}.dialog-material-row span{display:block}.dialog-material-row small{display:block;color:#9b625e;font-size:11px;margin-top:3px}.dialog-material-row small a{font-weight:650}
.dialog-material-row>button{width:30px;height:30px;flex:0 0 30px;border:1px solid #dfc2bf;border-radius:8px;background:#fff7f6;color:#a54e48;font-size:19px;cursor:pointer}
.dialog-material-empty{padding:22px 12px;text-align:center;color:var(--muted);font-size:13px}
.dialog-quick-material{margin-top:auto}.dialog-quick-material>div{display:flex;gap:7px;margin-top:6px}.dialog-quick-material button{width:42px;border:1px solid #89bdb1;border-radius:9px;background:#eaf6f2;color:#226a59;font-size:21px;cursor:pointer}
.act-materials-dialog-actions{display:flex;justify-content:flex-end;gap:9px;padding:14px 18px;border-top:1px solid var(--line)}
html[data-theme="dark"] .act-materials-dialog-card{background:#0d222b;border-color:#2c4650;color:#dce7ea}
html[data-theme="dark"] .act-materials-dialog-head,html[data-theme="dark"] .act-materials-dialog-actions{border-color:#2c4650}
html[data-theme="dark"] .dialog-material-pane{background:#102832;border-color:#31505a}
html[data-theme="dark"] .dialog-material-pane input,html[data-theme="dark"] .dialog-material-list{background:#091d25;border-color:#31505a;color:#dce7ea}
html[data-theme="dark"] .dialog-material-add{border-color:#263e47}html[data-theme="dark"] .dialog-material-add:hover{background:#12312f}
html[data-theme="dark"] .dialog-material-row{border-color:#263e47}html[data-theme="dark"] .dialog-material-row>button{background:#2d2022;border-color:#624044;color:#d77b76}
html[data-theme="dark"] .dialog-quick-material button{background:#103d3b;border-color:#2d7067;color:#8ed6c8}
@media(max-width:760px){.act-materials-dialog-card{width:calc(100vw - 16px);max-height:calc(100vh - 20px)}.act-materials-dialog-body{grid-template-columns:1fr;min-height:0}.dialog-material-list{height:180px}.act-materials-dialog-actions{position:sticky;bottom:0}.table-action-btn[data-action="materials"] span{display:none}}


/* v0.2.81 — material/certificate editor cleanup */
.material-formbox{width:min(100%,980px)!important;padding:30px 34px!important}
.material-formbox h1{font-size:30px!important;margin-bottom:10px!important}
.material-formbox form{margin-top:20px!important}
.material-formbox .object-form-section{padding:18px 0 8px!important}
.material-formbox .object-form-section-head{margin-bottom:14px!important}
.material-documents{gap:10px!important}
.material-document-row{
  grid-template-columns:minmax(250px,1.45fr) minmax(260px,1fr) minmax(220px,.9fr)!important;
  gap:12px!important;
  align-items:start!important;
  padding:14px 16px!important;
}
.material-document-row .doc-title{grid-column:1}
.material-document-row .material-doc-dates{grid-column:2;align-self:start}
.material-document-row .doc-file{grid-column:3;align-self:start}
.material-document-row .material-doc-options{grid-column:1/-1;border-top:1px solid var(--line);padding-top:10px;margin-top:2px}
.material-doc-dates{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important}
.material-document-row .field label{font-size:12px!important;font-weight:600!important;margin-bottom:6px!important}
.material-document-row input[type="text"],
.material-document-row input[type="date"]{min-height:42px!important;padding:8px 10px!important}
.material-document-row input[type="file"]{min-height:42px!important;padding:6px 8px!important;font-size:12px!important}
.material-doc-options{justify-content:flex-start!important;gap:22px!important}
.material-form-actions{margin-top:18px!important;padding-top:16px;border-top:1px solid var(--line)}
.material-return-card{text-align:left}
.material-return-card .form-actions{margin-top:22px}
html[data-theme="dark"] .material-document-row .material-doc-options{border-color:#29434d}
html[data-theme="dark"] .material-form-actions{border-color:#29434d}
@media(max-width:900px){
  .material-formbox{width:min(100%,760px)!important;padding:24px!important}
  .material-document-row{grid-template-columns:1fr!important}
  .material-document-row .doc-title,.material-document-row .material-doc-dates,.material-document-row .doc-file,.material-document-row .material-doc-options{grid-column:1!important}
  .material-doc-dates{grid-template-columns:1fr 1fr!important}
}
@media(max-width:600px){
  .material-formbox{padding:18px!important}
  .material-doc-dates{grid-template-columns:1fr!important}
  .material-document-row{padding:12px!important}
  .material-doc-options{align-items:flex-start!important;gap:10px!important}
}


/* v0.2.82 — material catalogs */
.material-catalog-filter{height:46px;min-width:170px;border:1px solid #d6dfda;border-radius:12px;background:#fff;padding:0 34px 0 12px;font:inherit;color:#31413b}
.material-catalog-badge{display:inline-flex;margin:5px 0 0 8px;padding:2px 7px;border-radius:999px;background:#e7f4f1;color:#287e76;font-size:10px;font-weight:700;vertical-align:middle}
.material-source-link{display:block;margin-top:3px;font-size:11px;color:#78908a!important;text-decoration:none}
.material-detail-catalog{margin:5px 0 0;color:var(--muted);font-size:13px}
html[data-theme="dark"] .material-catalog-filter{background:#0e2029;border-color:#35505a;color:#edf4f5}
html[data-theme="dark"] .material-catalog-badge{background:#143a38;color:#83d4c8}
html[data-theme="dark"] .material-source-link{color:#829ba2!important}
@media(max-width:760px){.material-live-toolbar{flex-wrap:wrap}.material-catalog-filter{width:100%;order:2}.material-add-inline{order:3}}


/* v0.2.84 — desktop inline row editing + mobile full-form double tap */
@media(min-width:761px){
  .selectable-act-row.act-row-inline-edit .materials-cell{cursor:pointer;position:relative;padding-right:34px!important}
  .selectable-act-row.act-row-inline-edit .materials-cell::after{content:"⋯";position:absolute;right:10px;top:50%;transform:translateY(-50%);width:23px;height:23px;display:grid;place-items:center;border:1px solid rgba(70,170,162,.48);border-radius:7px;color:#46aaa2;font-weight:700}
}
@media(max-width:760px){
  .selectable-act-row{touch-action:manipulation}
}


/* v0.2.85 — full-width act register, tighter cells and inline material editing */
@media(min-width:901px){
  main{
    max-width:none!important;
    width:calc(100vw - 24px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .topbar-inner,.contractor-context-inner{
    max-width:none!important;
    width:calc(100vw - 24px)!important;
  }
  .acts-table th,.acts-table td{
    padding:7px 7px!important;
  }
}
.acts-table th,.acts-table td{
  border-right:1px solid rgba(110,135,145,.13)!important;
}
.acts-table th:last-child,.acts-table td:last-child{border-right:0!important}
html[data-theme="dark"] .acts-table th,
html[data-theme="dark"] .acts-table td{
  border-right-color:rgba(145,175,185,.10)!important;
}

/* Narrower number column; redistribute space to useful text columns. */
.acts-table th:nth-child(1),.acts-table td:nth-child(1){width:2.5%!important}
.acts-table th:nth-child(2),.acts-table td:nth-child(2){width:31.5%!important}
.acts-table th:nth-child(3),.acts-table td:nth-child(3){width:11%!important}
.acts-table th:nth-child(4),.acts-table td:nth-child(4){width:10.5%!important}
.acts-table th:nth-child(5),.acts-table td:nth-child(5){width:23%!important}
.acts-table th:nth-child(6),.acts-table td:nth-child(6){width:9.5%!important}
.acts-table th:nth-child(7),.acts-table td:nth-child(7){width:12%!important}

.inline-cancel-btn[hidden]{display:none!important}
.act-row-inline-edit .materials-cell{
  background:rgba(63,178,166,.055)!important;
}
.inline-materials-edit-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin-top:6px;
  padding:5px 7px;
  border:1px dashed rgba(65,160,150,.42);
  border-radius:8px;
  background:rgba(65,160,150,.08);
  color:inherit;
  font:inherit;
  font-size:11px;
  cursor:pointer;
}
.inline-materials-edit-btn:hover{background:rgba(65,160,150,.15)}
html[data-theme="dark"] .inline-materials-edit-btn{
  border-color:rgba(98,200,190,.36);
  background:rgba(70,175,165,.10);
}

@media(max-width:760px){
  .acts-table th:nth-child(1),.acts-table td:nth-child(1){width:36px!important}
  .acts-table th,.acts-table td{
    padding-left:6px!important;
    padding-right:6px!important;
  }
}

/* v0.2.86 — mobile edit uses the full act form, so inline Cancel is desktop-only. */
@media(max-width:760px){
  .inline-cancel-btn{display:none!important}
}


/* v0.2.87 — modern desktop calendar. Mobile keeps the native iOS date picker. */
.sd-date-shell{
  position:relative;
  display:block;
  width:100%;
}
.sd-date-display{
  width:100%;
  box-sizing:border-box;
  cursor:pointer;
  padding-right:42px!important;
  font-variant-numeric:tabular-nums;
}
.sd-date-shell::after{
  content:"";
  position:absolute;
  right:13px;
  top:50%;
  width:17px;
  height:17px;
  transform:translateY(-50%);
  pointer-events:none;
  opacity:.62;
  background:
    linear-gradient(currentColor,currentColor) 3px 1px/2px 4px no-repeat,
    linear-gradient(currentColor,currentColor) 12px 1px/2px 4px no-repeat,
    linear-gradient(currentColor,currentColor) 2px 5px/13px 2px no-repeat,
    linear-gradient(currentColor,currentColor) 2px 4px/13px 12px no-repeat;
  border-radius:3px;
}
.sd-calendar-popover{
  position:fixed;
  z-index:2500;
  width:292px;
  box-sizing:border-box;
  padding:12px;
  border:1px solid rgba(80,110,120,.22);
  border-radius:16px;
  background:#fff;
  color:#1b2d33;
  box-shadow:0 18px 55px rgba(15,35,42,.22);
  user-select:none;
}
html[data-theme="dark"] .sd-calendar-popover{
  background:#102732;
  color:#e8f0f2;
  border-color:rgba(125,165,175,.23);
  box-shadow:0 22px 60px rgba(0,0,0,.42);
}
.sd-calendar-head{
  display:grid;
  grid-template-columns:34px 1fr 34px;
  align-items:center;
  gap:7px;
  margin-bottom:8px;
}
.sd-calendar-title{
  text-align:center;
  font-weight:750;
  font-size:14px;
  letter-spacing:.01em;
}
.sd-calendar-nav{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:10px;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font-size:21px;
  line-height:1;
}
.sd-calendar-nav:hover{background:rgba(65,160,150,.11)}
.sd-calendar-week,
.sd-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:3px;
}
.sd-calendar-week{
  margin-bottom:3px;
  color:#819198;
  font-size:10px;
  font-weight:700;
  text-align:center;
  text-transform:uppercase;
}
.sd-calendar-week span{padding:5px 0}
.sd-calendar-day{
  aspect-ratio:1;
  min-width:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font:inherit;
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
.sd-calendar-day:hover{background:rgba(65,160,150,.12)}
.sd-calendar-day.is-other{color:#a9b4b8}
html[data-theme="dark"] .sd-calendar-day.is-other{color:#5f7881}
.sd-calendar-day.is-today{
  box-shadow:inset 0 0 0 1px rgba(66,174,163,.7);
}
.sd-calendar-day.is-selected{
  background:#58c5b6!important;
  color:#092a2d!important;
  font-weight:800;
}
.sd-calendar-day:disabled{
  opacity:.24;
  cursor:not-allowed;
  background:transparent!important;
}
.sd-calendar-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-top:9px;
  padding-top:9px;
  border-top:1px solid rgba(100,125,135,.14);
}
.sd-calendar-foot button{
  border:0;
  border-radius:9px;
  padding:6px 9px;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font:inherit;
  font-size:11px;
}
.sd-calendar-foot button:hover{background:rgba(65,160,150,.11)}
.sd-calendar-today{font-weight:700;color:#258f83!important}
html[data-theme="dark"] .sd-calendar-today{color:#75d6c9!important}
@media(max-width:760px),(pointer:coarse){
  .sd-calendar-popover{display:none!important}
}


/* v0.2.88 — stronger light theme contrast + compact project summary + transfer report selection */
html:not([data-theme="dark"]) .compact-project-card-tight{
  background:#fbfdfc!important;
  border-color:#d6e0dd!important;
}
html:not([data-theme="dark"]) .project-full-name-value{
  color:#344950!important;
  font-weight:600!important;
}
.project-compact-meta{display:flex;flex-direction:column;gap:1px;margin-top:5px}
.project-compact-meta .project-inline-meta{margin:0!important;line-height:1.22!important}
html:not([data-theme="dark"]) .project-compact-meta .project-inline-meta{color:#6b7b80!important}

html:not([data-theme="dark"]) .acts-header-viewport{background:#edf3f1!important;border-color:#cfdbd7!important}
html:not([data-theme="dark"]) .acts-header-table thead th{
  background:#edf3f1!important;
  color:#45595f!important;
  border-bottom-color:#cbd8d4!important;
  font-weight:700!important;
}
html:not([data-theme="dark"]) .selectable-acts-wrap{background:#fff!important;border-color:#d4dfdc!important}
html:not([data-theme="dark"]) .acts-table td{color:#4e6269!important;border-bottom-color:#e0e7e5!important}
html:not([data-theme="dark"]) .acts-table .work-cell{color:#465b62!important;font-weight:500!important}
html:not([data-theme="dark"]) .acts-table .meta-cell,
html:not([data-theme="dark"]) .acts-table .materials-cell{color:#61757b!important}
html:not([data-theme="dark"]) .acts-table .number-cell{color:#263b42!important}
html:not([data-theme="dark"]) .acts-table th,
html:not([data-theme="dark"]) .acts-table td{border-right-color:rgba(87,112,118,.16)!important}

.report-action-btn:not(:disabled){color:#2f8f83!important;border-color:rgba(47,143,131,.42)!important;background:rgba(47,143,131,.055)!important}
html[data-theme="dark"] .report-action-btn:not(:disabled){color:#79d0c5!important;border-color:rgba(121,208,197,.38)!important}

/* Checkboxes are now independent multi-selection for the transfer report; active row highlight remains single. */
.act-select-checkbox:checked{outline:2px solid rgba(70,170,162,.18);outline-offset:2px}

/* v0.2.92 — materials are edited directly from the Materials cell during inline editing. */
.materials-more,
.material-more,
.more-materials,
.materials-kebab,
.materials-ellipsis{
  display:none!important;
}

/* v0.2.93 — keep the project contract-date field aligned with every other field on iPhone. */
.project-formbox .field input,
.project-formbox .field select,
.project-formbox .field textarea{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
.project-formbox input[type="date"]{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  inline-size:100%;
  box-sizing:border-box;
}
@media(max-width:760px){
  .project-formbox input[type="date"]{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    inline-size:100%!important;
  }
}


/* v0.2.97 — animated home drill-down */
.home-stage{position:relative;overflow:hidden;min-height:250px}
.home-stage-toolbar{display:flex;align-items:center;gap:14px;margin:0 0 14px}
.home-stage-back{border:0;background:transparent;color:var(--green);font:inherit;font-weight:700;cursor:pointer;padding:7px 0}
.home-stage-title{font-size:18px;font-weight:700}
.home-stage-panel{display:none;opacity:0;transform:translateX(16px)}
.home-stage-panel.is-active{display:block;animation:homeStageIn .22s ease-out forwards}
.home-stage-panel.is-leaving{display:block;animation:homeStageOut .12s ease-in forwards}
@keyframes homeStageIn{from{opacity:0;transform:translateX(18px) scale(.992)}to{opacity:1;transform:none}}
@keyframes homeStageOut{from{opacity:1;transform:none}to{opacity:0;transform:translateX(-12px) scale(.992)}}
.home-drill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.home-drill-card,.home-drill-add{
  min-height:82px;border:1px solid var(--line);border-radius:16px;background:#fff;color:inherit;text-decoration:none;
  display:flex;align-items:center;gap:13px;padding:14px 16px;text-align:left;font:inherit;cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease
}
.home-drill-card:hover{transform:translateY(-1px);border-color:#bfd2ca;box-shadow:0 8px 24px rgba(24,55,45,.06)}
.home-drill-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:grid;place-items:center;background:#e8f2ee;color:var(--green);font-weight:800}
.home-drill-avatar.project-avatar{border-radius:50%}
.home-drill-main{min-width:0;flex:1;display:grid;gap:4px}
.home-drill-main strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-drill-main small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-drill-chevron{font-size:25px;color:#93a39d}
.home-drill-add{justify-content:center;color:var(--green);font-weight:700;border-style:dashed}
html[data-theme="dark"] .home-drill-card,
html[data-theme="dark"] .home-drill-add{background:#142630;border-color:#29414a}
html[data-theme="dark"] .home-drill-avatar{background:#173c3a;color:#76d4c1}

/* v0.2.97 — mobile act cards. Desktop table remains unchanged. */
.mobile-act-list{display:none}
@media(max-width:760px){
  .selectable-acts-wrap,.acts-header-viewport{display:none!important}
  .mobile-act-list{display:grid;gap:9px;margin-top:8px}
  .mobile-act-card{
    position:relative;border:1px solid rgba(76,111,120,.22);border-radius:14px;padding:12px 13px 11px;
    background:#fff;box-shadow:0 3px 12px rgba(30,58,48,.025);transition:.14s ease;overflow:hidden
  }
  .mobile-act-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:transparent}
  .mobile-act-card-signed{background:#edf7f2}
  .mobile-act-card-signed::before{background:#55a786}
  .mobile-act-card-void{background:#fff0ef}
  .mobile-act-card-void::before{background:#c96b66}
  .mobile-act-card.is-selected{box-shadow:inset 0 0 0 2px rgba(65,169,159,.72),0 5px 16px rgba(25,70,61,.06)}
  .mobile-act-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
  .mobile-act-number{font-size:12px;font-weight:800;letter-spacing:.035em;color:#5c7178}
  .mobile-act-title{font-size:14px;font-weight:650;line-height:1.3;color:#26383e;margin-right:8px}
  .mobile-act-axes{display:flex;align-items:flex-start;gap:7px;margin-top:7px;color:#667b82;font-size:12px;line-height:1.3}
  .mobile-act-axes svg{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.7;margin-top:1px}
  .mobile-act-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;padding-top:7px;border-top:1px solid rgba(85,115,124,.12);font-size:10.5px;color:#809197}
  .mobile-act-check{width:26px;height:26px;display:grid;place-items:center;cursor:pointer}
  .mobile-act-check input{position:absolute;opacity:0;pointer-events:none}
  .mobile-act-check span{width:17px;height:17px;border:1.5px solid #97a8ad;border-radius:6px;display:block;position:relative}
  .mobile-act-check input:checked+span{background:#51b6a7;border-color:#51b6a7}
  .mobile-act-check input:checked+span::after{content:"";position:absolute;left:4px;top:1px;width:5px;height:9px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}
  .acts-selection-toolbar{margin-top:5px!important}
  .acts-selection-label{font-size:12px!important}
  .acts-selection-actions{overflow-x:auto;flex-wrap:nowrap!important;padding-bottom:2px}
  .table-action-btn{flex:0 0 auto}

  .home-drill-grid{grid-template-columns:1fr}
  .home-stage{min-height:180px}
  .home-drill-card,.home-drill-add{min-height:70px;padding:12px 13px}
}
html[data-theme="dark"] .mobile-act-card{background:#122630;border-color:#2b4650;color:#e7eff1}
html[data-theme="dark"] .mobile-act-card-signed{background:#163833}
html[data-theme="dark"] .mobile-act-card-void{background:#412c30}
html[data-theme="dark"] .mobile-act-title{color:#dce8ea}
html[data-theme="dark"] .mobile-act-number{color:#a8bbc0}
html[data-theme="dark"] .mobile-act-axes{color:#9fb2b7}
html[data-theme="dark"] .mobile-act-meta{color:#82979d;border-top-color:rgba(145,175,185,.13)}

/* v0.2.99 materials library */
.dashboard-simple{margin-top:22px}
.material-library-page{max-width:1500px;margin:0 auto}
.material-library-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:14px}
.material-library-head h1{margin:0 0 3px}.material-library-head p{margin:0;color:var(--muted)}
.material-library-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 190px 230px;gap:9px;margin-bottom:9px}
.material-library-toolbar select{width:100%;min-height:42px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:inherit;padding:0 10px}
.material-catalog-chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:13px}
.catalog-chip{border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:999px;padding:6px 11px;font:inherit;font-size:12px;cursor:pointer}
.catalog-chip.is-active{background:rgba(62,174,158,.12);border-color:rgba(62,174,158,.4);color:var(--green);font-weight:700}
.material-card-list{display:grid;gap:8px}
.material-library-card{display:grid;grid-template-columns:minmax(260px,1.15fr) minmax(320px,1fr) auto;gap:14px;align-items:center;border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:13px 14px}
.material-card-title-row{display:flex;justify-content:space-between;gap:12px}
.material-card-name{font-weight:800;font-size:15px;color:inherit;text-decoration:none}.material-card-name:hover{color:var(--green)}
.material-official-name{margin-top:3px;font-size:12px;line-height:1.3;color:var(--muted)}
.material-badges{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.material-badges span{font-size:10px;border-radius:999px;padding:4px 7px;background:rgba(65,160,150,.10);color:var(--green)}.material-badges .group{background:rgba(110,125,145,.09);color:var(--muted)}
.material-card-links{display:flex;gap:12px;margin-top:7px;font-size:11px}.material-card-links a{color:var(--green);text-decoration:none}
.material-card-certs{display:grid;gap:5px}.cert-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px;padding:7px 8px;border-radius:9px;background:rgba(110,130,140,.055)}
.cert-copy{min-width:0}.cert-copy strong{display:block;font-size:11px;line-height:1.25;white-space:normal}.cert-copy small{font-size:10px;color:var(--muted)}
.cert-state{font-size:9px;border-radius:999px;padding:3px 6px}.cert-state.ok{background:#e6f5ec;color:#25744c}.cert-state.soon{background:#fff1d7;color:#95610c}.cert-state.expired{background:#fde4e2;color:#a84239}.cert-state.none{background:rgba(100,120,130,.09);color:var(--muted)}
.cert-link{font-size:10px;color:var(--green);text-decoration:none;white-space:nowrap}.empty-cert{color:var(--muted);font-size:11px}
.material-card-actions{display:flex;gap:5px}
@media(max-width:850px){
 .material-library-toolbar{grid-template-columns:1fr 1fr}.material-live-search-wrap{grid-column:1/-1}
 .material-library-card{grid-template-columns:1fr;gap:9px}.material-card-actions{justify-content:flex-end}
 .material-card-title-row{align-items:flex-start}.material-badges{max-width:44%}
}
@media(max-width:560px){.material-library-toolbar{grid-template-columns:1fr}.material-live-search-wrap{grid-column:auto}.material-library-head{align-items:center}.cert-row{grid-template-columns:1fr auto}.cert-link{grid-column:1/-1}}

/* v0.3.1 — standardized material cards/documents */
.material-library-card{
  grid-template-columns:minmax(310px,1.15fr) minmax(340px,1fr) auto!important;
  min-height:118px;
}
.material-card-main{display:grid;gap:9px;align-self:stretch}
.material-card-title-row{min-height:48px}
.material-doc-links{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:6px}
.material-doc-btn{
  display:grid;gap:1px;min-height:42px;padding:7px 9px;border:1px solid var(--line);
  border-radius:9px;text-decoration:none;color:inherit;background:rgba(100,125,135,.035)
}
.material-doc-btn:hover{border-color:rgba(65,160,150,.45);background:rgba(65,160,150,.07)}
.material-doc-btn span{font-size:11px;font-weight:750;color:var(--green)}
.material-doc-btn small{font-size:9.5px;color:var(--muted)}
.material-card-certs{align-self:stretch;align-content:center}
.cert-row{min-height:38px}
@media(max-width:850px){
  .material-library-card{grid-template-columns:1fr!important}
  .material-doc-links{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:520px){
  .material-doc-links{grid-template-columns:1fr 1fr}
}

/* v0.3.2 — external catalog documents only */
.catalog-source-note{
  margin:0 0 10px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(80,145,135,.055);
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
}

/* v0.3.5 — certificate link is a certificate link, never a product-page fallback */
.cert-link-ses{
  font-weight:700;
}
.cert-link-missing{
  font-size:9.5px;
  line-height:1.2;
  color:var(--muted);
  white-space:normal;
  text-align:right;
  max-width:110px;
}

/* v0.3.6 — compact standardized materials catalog */
.material-library-card{
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) minmax(260px,.9fr)!important;
  gap:14px!important;
  align-items:center!important;
  min-height:0!important;
  padding:10px 12px!important;
  border-radius:12px!important;
}
.material-compact-main{min-width:0}
.material-compact-title{display:flex;align-items:center;gap:7px;min-width:0}
.material-card-name{
  min-width:0;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.2;
}
.material-official-name{
  margin-top:3px!important;
  font-size:11.5px!important;
  line-height:1.25!important;
  color:var(--muted)!important;
}
.material-product-link{
  width:25px;height:25px;flex:0 0 25px;
  display:grid;place-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--green);
  background:transparent;
}
.material-product-link:hover{background:rgba(65,160,150,.08);border-color:rgba(65,160,150,.36)}
.material-product-link svg{
  width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.material-compact-cert{display:grid;gap:5px;min-width:0}
.compact-cert-link{
  display:flex;align-items:center;gap:8px;
  min-width:0;padding:7px 8px;
  border:1px solid rgba(90,115,125,.14);
  border-radius:9px;
  background:rgba(105,125,135,.035);
  color:inherit;text-decoration:none;
}
.compact-cert-link:hover{border-color:rgba(65,160,150,.34);background:rgba(65,160,150,.06)}
.compact-cert-link>svg{
  width:16px;height:16px;flex:0 0 16px;
  fill:none;stroke:var(--green);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
.compact-cert-copy{min-width:0;flex:1;display:grid;gap:1px}
.compact-cert-copy strong{font-size:10.5px;line-height:1.22;font-weight:700}
.compact-cert-copy small{font-size:9.5px;color:var(--muted)}
.compact-cert-open{font-size:12px;color:var(--green)}
.compact-cert-link.expired{background:rgba(190,75,65,.045);border-color:rgba(190,75,65,.16)}
.compact-cert-link.soon{background:rgba(205,145,45,.05);border-color:rgba(205,145,45,.18)}
.compact-cert-empty{font-size:10.5px;color:var(--muted)}
/* Old card chrome is intentionally hidden in compact catalog cards. */
.material-library-card .material-badges,
.material-library-card .material-doc-links,
.material-library-card .material-card-actions,
.material-library-card .material-card-links{display:none!important}
@media(max-width:760px){
  .material-library-card{grid-template-columns:1fr!important;gap:8px!important}
}

/* v0.3.8 */
.material-desktop-head{display:grid;grid-template-columns:minmax(260px,1.25fr) minmax(190px,.75fr) minmax(300px,1fr) 74px;gap:12px;padding:0 12px 6px;font-size:10px;text-transform:uppercase;color:var(--muted)}
.material-library-card{grid-template-columns:minmax(260px,1.25fr) minmax(190px,.75fr) minmax(300px,1fr) 74px!important;gap:12px!important;padding:9px 12px!important;border-radius:10px!important}.material-card-list{gap:5px!important}.material-desktop-meta{display:grid;gap:2px;font-size:10.5px;color:var(--muted)}.material-desktop-meta b{color:var(--text)}.material-row-actions{display:flex;justify-content:flex-end;gap:5px}.material-action-icon{width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;color:var(--muted)}.material-action-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7}.material-action-icon.danger:hover{color:#c75d57}.material-replace-card{display:flex;flex-direction:column;gap:8px}.material-project-usage-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.locked-replace{font-size:9.5px;color:var(--muted)}.btn.tiny{padding:5px 8px;font-size:10px}
@media(max-width:760px){.material-desktop-head{display:none}.material-library-card{grid-template-columns:1fr auto!important;gap:7px 8px!important}.material-desktop-meta{display:none}.material-compact-cert{grid-column:1/-1}.material-row-actions{grid-column:2;grid-row:1}.material-project-usage-row{grid-template-columns:1fr}.material-project-usage-row .btn{width:100%}}

/* v0.3.10 official document sync */
.catalog-sync-form{display:flex;justify-content:flex-end;margin:0 0 7px}
.material-detail-title-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.material-detail-title-row .material-product-link{font-size:9px;padding:0 5px;min-width:26px}

/* v0.3.11 — object-material replacement */
.project-materials-table th:last-child,.project-materials-table td:last-child{width:46px;text-align:right}
.project-material-name{color:inherit;text-decoration:none}.project-material-name:hover{text-decoration:underline}
.material-replace-open{width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted);font-size:16px;line-height:1;cursor:pointer}
.material-replace-open:hover{color:var(--text);background:rgba(95,190,175,.07);border-color:rgba(95,190,175,.28)}
.project-material-replace-dialog{width:min(520px,calc(100vw - 28px));border:1px solid var(--line);border-radius:14px;padding:0;background:var(--panel);color:var(--text);box-shadow:0 24px 70px rgba(0,0,0,.35)}
.project-material-replace-dialog::backdrop{background:rgba(0,0,0,.55)}
.project-material-replace-dialog form{padding:16px}.replace-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.replace-dialog-head h2{margin:3px 0 0;font-size:19px}.replace-dialog-close{border:0;background:transparent;color:var(--muted);font-size:26px;line-height:1;cursor:pointer}.project-material-replace-dialog p{font-size:12px;color:var(--muted);line-height:1.45}.project-material-replace-dialog label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:12px 0 5px}.project-material-replace-dialog select{width:100%}.replace-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}
@media(max-width:760px){.project-materials-table th:nth-child(1),.project-materials-table td:nth-child(1){width:28px}.material-replace-open{width:32px;height:32px}.replace-dialog-actions{display:grid;grid-template-columns:1fr 1fr}.replace-dialog-actions .btn{width:100%}}

/* v0.3.14 — object materials polish + searchable replacement picker */
.project-materials-wrap{overflow:visible}
.project-materials-table{width:100%;border-collapse:collapse;table-layout:fixed}
.project-materials-table th,
.project-materials-table td{
  vertical-align:middle!important;
  padding:10px 12px!important;
  height:auto!important;
  min-height:0!important;
  border-bottom:1px solid var(--line);
}
.project-materials-table th:nth-child(1),
.project-materials-table td:nth-child(1){width:42px}
.project-materials-table th:nth-child(2),
.project-materials-table td:nth-child(2){width:53%}
.project-materials-table th:nth-child(3),
.project-materials-table td:nth-child(3){width:auto}
.project-materials-table th:nth-child(4),
.project-materials-table td:nth-child(4){width:52px}
.project-material-index{color:var(--muted);font-variant-numeric:tabular-nums}
.project-material-info{line-height:1.18}
.project-material-name{display:inline-block;font-size:13px;font-weight:700;line-height:1.22}
.project-material-ua{margin-top:3px;font-size:10.5px;line-height:1.22;color:var(--muted)}
.material-act-links{padding-top:10px!important;padding-bottom:10px!important}
.material-act-links-inner{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-height:30px}
.project-material-actions{vertical-align:middle!important;text-align:center!important}
.material-replace-open{display:inline-grid;place-items:center;margin:0 auto}

.project-material-replace-dialog{
  width:min(760px,calc(100vw - 28px));
  max-height:min(760px,calc(100vh - 32px));
  overflow:hidden;
}
.project-material-replace-dialog form{display:flex;flex-direction:column;max-height:inherit}
.replace-picker{display:grid;gap:8px;min-height:0;margin-top:8px}
.replace-picker-search input{width:100%;font-size:14px}
.replace-picker-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.replace-picker-filters select{width:100%}
.replace-picker-results{
  min-height:220px;
  max-height:390px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(255,255,255,.015);
  padding:5px;
}
.replace-candidate{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(150px,.48fr);
  align-items:center;
  gap:12px;
  border:0;
  border-bottom:1px solid rgba(120,145,155,.10);
  background:transparent;
  color:var(--text);
  text-align:left;
  padding:9px 10px;
  cursor:pointer;
}
.replace-candidate:last-child{border-bottom:0}
.replace-candidate:hover{background:rgba(95,190,175,.055)}
.replace-candidate.selected{
  background:rgba(95,190,175,.10);
  outline:1px solid rgba(95,190,175,.28);
  border-radius:8px;
}
.replace-candidate-main{display:grid;gap:2px;min-width:0}
.replace-candidate-main strong{font-size:12.5px;line-height:1.2}
.replace-candidate-main small{font-size:10.5px;line-height:1.2;color:var(--muted)}
.replace-candidate-meta{display:grid;gap:2px;justify-items:end;text-align:right;min-width:0}
.replace-candidate-meta em{
  font-style:normal;font-size:9.5px;padding:2px 6px;border-radius:999px;
  background:rgba(95,190,175,.08);color:var(--green)
}
.replace-candidate-meta span{
  max-width:100%;
  font-size:9.5px;line-height:1.15;color:var(--muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.replace-picker-selected{
  min-height:30px;
  display:flex;align-items:center;
  padding:7px 9px;
  border-radius:8px;
  font-size:10.5px;
  color:var(--muted);
  background:rgba(255,255,255,.02);
  border:1px solid transparent;
}
.replace-picker-selected.has-selection{
  color:var(--text);
  border-color:rgba(95,190,175,.22);
  background:rgba(95,190,175,.06)
}
#replaceSubmitButton:disabled{opacity:.45;cursor:not-allowed}

@media(max-width:760px){
  .project-materials-table{table-layout:auto}
  .project-materials-table th:nth-child(1),
  .project-materials-table td:nth-child(1){width:28px}
  .project-materials-table th:nth-child(2),
  .project-materials-table td:nth-child(2){width:auto}
  .project-materials-table th:nth-child(3),
  .project-materials-table td:nth-child(3){width:auto}
  .project-materials-table th:nth-child(4),
  .project-materials-table td:nth-child(4){width:44px}
  .project-materials-table th,
  .project-materials-table td{padding:9px 7px!important}
  .project-material-name{font-size:12px}
  .project-material-ua{font-size:9.5px}
  .material-act-links-inner{gap:4px}
  .project-material-replace-dialog{width:calc(100vw - 18px)}
  .replace-picker-filters{grid-template-columns:1fr}
  .replace-picker-results{max-height:46vh}
  .replace-candidate{grid-template-columns:1fr;padding:9px}
  .replace-candidate-meta{justify-items:start;text-align:left}
  .replace-candidate-meta span{white-space:normal}
}

/* v0.3.15 — object materials grid + reliable replacement filters */
.project-materials-wrap,
.project-materials-table{display:none!important}

.project-materials-grid{
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:var(--panel);
}
.project-materials-grid-head,
.project-material-row{
  display:grid;
  grid-template-columns:44px minmax(280px,1.25fr) minmax(260px,1fr) 54px;
  align-items:stretch;
}
.project-materials-grid-head{
  min-height:40px;
  background:rgba(100,130,140,.06);
  border-bottom:1px solid var(--line);
}
.project-materials-grid-head>div{
  display:flex;
  align-items:center;
  padding:0 12px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--muted);
}
.project-materials-grid-body{display:block}
.project-material-row{
  min-height:58px;
  border-bottom:1px solid var(--line);
}
.project-material-row:last-child{border-bottom:0}
.project-material-row>div{
  min-width:0;
  display:flex;
  align-items:center;
  padding:9px 12px;
}
.project-material-index{
  justify-content:center;
  font-size:11px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.project-material-info{
  display:block!important;
  align-self:center;
}
.project-material-name{
  display:inline-block;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
}
.project-material-ua{
  margin-top:3px;
  font-size:10.5px;
  line-height:1.2;
  color:var(--muted);
}
.material-act-links{align-items:center!important}
.material-act-links-inner{
  min-height:0!important;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
}
.project-material-actions{
  justify-content:center;
  padding-left:6px!important;
  padding-right:6px!important;
}
.material-replace-open{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  margin:0;
}

.project-material-empty{padding:18px;color:var(--muted)}

/* Replacement dialog must be fully opaque. */
.project-material-replace-dialog{
  background:#ffffff!important;
  color:#17242a!important;
  border:1px solid #ccd9dd!important;
  box-shadow:0 28px 90px rgba(0,0,0,.45)!important;
}
.project-material-replace-dialog::backdrop{
  background:rgba(0,0,0,.68)!important;
  backdrop-filter:blur(3px);
}
html[data-theme="dark"] .project-material-replace-dialog{
  background:#0b2029!important;
  color:#dce7ea!important;
  border-color:#31505a!important;
}
html[data-theme="dark"] .project-material-replace-dialog .replace-picker-results{
  background:#081a22!important;
  border-color:#31505a!important;
}
html[data-theme="dark"] .project-material-replace-dialog input,
html[data-theme="dark"] .project-material-replace-dialog select{
  background:#0d2731!important;
  color:#dce7ea!important;
  border-color:#31505a!important;
}

/* Do not rely on browser [hidden] rendering; force filtered rows away. */
.replace-candidate.is-filtered-out{display:none!important}
.replace-candidate[hidden]{display:none!important}

@media(max-width:760px){
  .project-materials-grid-head{
    grid-template-columns:30px minmax(150px,1fr) minmax(105px,.65fr) 42px;
  }
  .project-material-row{
    grid-template-columns:30px minmax(150px,1fr) minmax(105px,.65fr) 42px;
    min-height:64px;
  }
  .project-materials-grid-head>div,
  .project-material-row>div{padding:8px 6px}
  .project-material-name{font-size:12px}
  .project-material-ua{font-size:9.5px}
  .material-act-links-inner{gap:3px}
  .material-replace-open{width:28px;height:28px}
}

/* v0.3.17 — Safari/iPhone final alignment for Object Materials */
@media(max-width:760px){
  .project-materials-grid{
    border-radius:10px!important;
    overflow:hidden!important;
  }
  .project-materials-grid-head,
  .project-material-row{
    grid-template-columns:34px minmax(0,1.35fr) minmax(112px,.8fr) 46px!important;
  }
  .project-material-row{
    min-height:72px!important;
    align-items:stretch!important;
  }
  .project-material-row>div{
    height:100%!important;
    min-height:72px!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    border:0!important;
  }
  .project-material-info{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:flex-start!important;
  }
  .material-act-links{
    display:flex!important;
    align-items:center!important;
  }
  .material-act-links-inner{
    min-height:auto!important;
    width:100%!important;
    align-content:center!important;
  }
  .project-material-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
}

/* v0.3.18 — iPhone replacement dialog safe-area / Safari toolbar clearance */
@media(max-width:760px){
  .project-material-replace-dialog{
    position:fixed!important;
    top:max(18px, env(safe-area-inset-top))!important;
    bottom:auto!important;
    margin:0 auto!important;
    max-height:calc(100dvh - 128px - env(safe-area-inset-bottom))!important;
    width:calc(100vw - 18px)!important;
    overflow:hidden!important;
  }
  .project-material-replace-dialog form{
    max-height:calc(100dvh - 128px - env(safe-area-inset-bottom))!important;
    overflow:hidden!important;
  }
  .project-material-replace-dialog .replace-picker-results{
    max-height:34dvh!important;
  }
  .replace-dialog-actions{
    position:sticky!important;
    bottom:0!important;
    z-index:6!important;
    margin-top:8px!important;
    padding:10px 0 calc(12px + env(safe-area-inset-bottom))!important;
    background:inherit!important;
    border-top:1px solid var(--line)!important;
  }
}

/* v0.3.19 — cleaner material taxonomy and left-aligned compact names */
.project-materials-grid-head>div:nth-child(2){
  justify-content:flex-start!important;
  text-align:left!important;
}
.project-material-info{
  text-align:left!important;
  align-items:flex-start!important;
  justify-content:center!important;
  width:100%!important;
}
.project-material-name{
  width:100%!important;
  text-align:left!important;
  margin:0!important;
}
.project-material-ua{
  width:100%!important;
  text-align:left!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:100%!important;
  line-height:1.25!important;
}
.replace-candidate-main{
  text-align:left!important;
}
.replace-candidate-main small{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  line-height:1.2!important;
}
@media(max-width:760px){
  .project-material-info{
    padding-left:10px!important;
    padding-right:8px!important;
  }
  .project-material-name{
    font-size:12px!important;
    line-height:1.18!important;
  }
  .project-material-ua{
    margin-top:4px!important;
    font-size:9.4px!important;
    line-height:1.22!important;
  }
}

/* v0.3.20 — expandable mobile act cards */
.mobile-act-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.mobile-act-top-actions{
  display:flex;
  align-items:center;
  gap:7px;
}
.mobile-act-expand{
  width:29px;
  height:29px;
  flex:0 0 29px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(115,155,165,.30);
  border-radius:9px;
  background:rgba(115,155,165,.045);
  color:var(--muted);
  -webkit-tap-highlight-color:transparent;
}
.mobile-act-expand svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .18s ease;
}
.mobile-act-card.is-expanded .mobile-act-expand{
  color:var(--green);
  border-color:rgba(95,190,175,.34);
  background:rgba(95,190,175,.08);
}
.mobile-act-card.is-expanded .mobile-act-expand svg{
  transform:rotate(180deg);
}

.mobile-act-details{
  max-height:0;
  overflow:hidden;
  opacity:0;
  margin-top:0;
  padding-top:0;
  border-top:1px solid transparent;
  transition:max-height .24s ease,opacity .16s ease,margin-top .2s ease,padding-top .2s ease,border-color .2s ease;
}
.mobile-act-card.is-expanded .mobile-act-details{
  max-height:900px;
  opacity:1;
  margin-top:11px;
  padding-top:10px;
  border-top-color:rgba(115,155,165,.18);
}
.mobile-act-details-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px 12px;
}
.mobile-act-detail{
  min-width:0;
  display:grid;
  gap:3px;
  align-content:start;
  font-size:10.5px;
  line-height:1.3;
  color:var(--text);
}
.mobile-act-detail-wide{grid-column:1 / -1}
.mobile-act-detail-label{
  font-size:8.5px;
  line-height:1.1;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
}
.mobile-act-material-list{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.mobile-act-material-list>span{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:3px 7px;
  border:1px solid rgba(95,190,175,.17);
  border-radius:7px;
  background:rgba(95,190,175,.055);
  color:var(--text);
  font-size:9.5px;
  line-height:1.2;
}
.mobile-act-detail-hint{
  margin-top:9px;
  font-size:8.5px;
  color:var(--muted);
  text-align:right;
}
.mobile-act-card.is-expanded{
  border-color:rgba(95,190,175,.25);
  box-shadow:0 8px 24px rgba(0,0,0,.10);
}

/* v0.3.21 — materials library as a clean table/grid */
.material-grid-head{
  grid-template-columns:minmax(260px,1.25fr) minmax(190px,.72fr) minmax(300px,1fr) 116px!important;
}
.material-grid-list{gap:0!important}
.material-table-row{
  grid-template-columns:minmax(260px,1.25fr) minmax(190px,.72fr) minmax(300px,1fr) 116px!important;
  align-items:stretch!important;
  min-height:58px!important;
  padding:0!important;
  gap:0!important;
  border-radius:0!important;
  border-left:1px solid var(--line)!important;
  border-right:1px solid var(--line)!important;
  border-top:0!important;
  border-bottom:1px solid var(--line)!important;
  background:transparent!important;
}
.material-table-row:first-child{
  border-top:1px solid var(--line)!important;
  border-radius:10px 10px 0 0!important;
}
.material-table-row:last-child{
  border-radius:0 0 10px 10px!important;
}
.material-table-row>div{
  min-width:0;
  display:flex;
  align-items:center;
  box-sizing:border-box;
  padding:9px 10px;
}
.material-table-row>div+div{
  border-left:1px solid rgba(115,145,155,.10);
}
.material-table-row .material-compact-main{
  display:block!important;
  align-self:center;
}
.material-table-row .material-official-name{
  margin-top:3px!important;
  line-height:1.2!important;
}
.material-table-row .material-desktop-meta{
  display:flex!important;
  flex-direction:column;
  align-items:flex-start!important;
  justify-content:center;
  gap:2px;
}
.material-cert-cell{
  flex-direction:column;
  align-items:stretch!important;
  justify-content:center;
  gap:2px;
}
.material-cert-flat{
  display:grid;
  grid-template-columns:16px minmax(0,1fr) 14px;
  align-items:center;
  gap:7px;
  width:100%;
  min-height:34px;
  padding:4px 6px;
  border:0!important;
  border-radius:6px;
  background:transparent;
  color:inherit;
  text-decoration:none;
}
.material-cert-flat:hover{background:rgba(95,190,175,.05)}
.material-cert-flat.expired{background:rgba(190,75,65,.09)}
.material-cert-flat.soon{background:rgba(205,145,45,.09)}
.material-cert-flat.ok{background:rgba(95,190,175,.035)}
.material-cert-flat>svg{
  width:15px;height:15px;fill:none;stroke:var(--green);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round
}
.material-cert-text{min-width:0;display:grid;gap:1px}
.material-cert-title{
  font-size:10.5px;
  line-height:1.2;
  font-weight:400!important;
  white-space:normal;
}
.material-cert-text small{font-size:9px;color:var(--muted)}
.material-cert-open{font-size:11px;color:var(--green)}
.material-cert-empty{color:var(--muted);font-size:11px}
.material-table-row .material-row-actions{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:5px;
  padding:9px 7px!important;
}
.material-table-row .material-action-icon{
  width:29px!important;height:29px!important;flex:0 0 29px!important;
}

@media(max-width:760px){
  .material-grid-head{display:none!important}
  .material-table-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    min-height:0!important;
    padding:10px!important;
    gap:8px!important;
    border:1px solid var(--line)!important;
    border-radius:11px!important;
    margin-bottom:7px;
  }
  .material-table-row>div{padding:0!important;border-left:0!important}
  .material-table-row .material-compact-main{grid-column:1}
  .material-table-row .material-desktop-meta{display:none!important}
  .material-cert-cell{grid-column:1 / -1!important;padding-top:3px!important}
  .material-table-row .material-row-actions{grid-column:2;grid-row:1;align-self:start;padding:0!important}
  .material-cert-flat{padding:5px 4px}
}

/* v0.3.22 — Excel-like sticky materials table */
.material-library-toolbar,
.material-catalog-chips,
.material-desktop-head{display:none!important}

.materials-sticky-grid{
  position:sticky;
  top:var(--materials-sticky-top,0px);
  z-index:25;
  margin-top:8px;
  background:var(--bg);
  padding-top:4px;
}
.material-grid-filter-head{
  display:grid;
  grid-template-columns:minmax(260px,1.22fr) minmax(150px,.55fr) minmax(130px,.48fr) minmax(300px,1fr) 126px;
  border:1px solid var(--line);
  border-radius:10px 10px 0 0;
  overflow:hidden;
  background:var(--panel);
  box-shadow:0 8px 22px rgba(0,0,0,.06);
}
.material-filter-cell{
  min-width:0;
  padding:7px 8px 8px;
  border-right:1px solid rgba(115,145,155,.12);
}
.material-filter-cell:last-child{border-right:0}
.material-filter-label{
  display:block;
  margin:0 0 5px 2px;
  font-size:9px;
  line-height:1;
  letter-spacing:.055em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:700;
}
.material-filter-cell input,
.material-filter-cell select{
  width:100%;
  height:34px;
  min-height:34px;
  margin:0;
  font-size:10.5px;
  border-radius:7px;
}
.material-filter-input-wrap{position:relative}
.material-filter-input-wrap svg{
  position:absolute;
  left:9px;top:50%;transform:translateY(-50%);
  width:13px;height:13px;fill:none;stroke:var(--muted);stroke-width:1.8;
  pointer-events:none;
}
.material-filter-input-wrap input{padding-left:29px!important}
.material-filter-actions-head{display:flex;flex-direction:column;justify-content:flex-start}

.material-grid-list{gap:0!important}
.material-table-row{
  grid-template-columns:minmax(260px,1.22fr) minmax(150px,.55fr) minmax(130px,.48fr) minmax(300px,1fr) 126px!important;
  align-items:stretch!important;
  min-height:58px!important;
  padding:0!important;
  gap:0!important;
  margin:0!important;
  border-radius:0!important;
  border-left:1px solid var(--line)!important;
  border-right:1px solid var(--line)!important;
  border-top:0!important;
  border-bottom:1px solid var(--line)!important;
  background:transparent!important;
}
.material-table-row:last-of-type{border-radius:0 0 10px 10px!important}
.material-table-row>div{
  min-width:0;
  box-sizing:border-box;
  padding:9px 10px;
  display:flex;
  align-items:center;
}
.material-table-row>div+div{border-left:1px solid rgba(115,145,155,.10)}

.material-table-row .material-compact-main{
  display:block!important;
  align-self:center;
}
.material-group-cell,
.material-catalog-cell{
  font-size:10.5px;
  color:var(--text);
}
.material-cert-cell{
  padding:0!important;
  align-items:stretch!important;
  justify-content:center;
  flex-direction:column;
}
.material-cert-cell-ok{background:rgba(95,190,175,.035)}
.material-cert-cell-soon{background:rgba(205,145,45,.09)}
.material-cert-cell-expired{background:rgba(190,75,65,.10)}
.material-cert-cell-missing{background:rgba(115,145,155,.025)}

.material-cert-flat{
  width:100%;
  min-height:100%;
  display:grid;
  grid-template-columns:16px minmax(0,1fr) 14px;
  align-items:center;
  gap:7px;
  padding:8px 10px;
  margin:0;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit;
  text-decoration:none;
}
.material-cert-flat:hover{background:rgba(95,190,175,.05)!important}
.material-cert-title{
  font-size:10.5px;
  line-height:1.2;
  font-weight:400!important;
}
.material-cert-text small{font-size:9px;color:var(--muted)}

.material-table-row .material-row-actions{
  display:grid!important;
  grid-template-columns:repeat(3,30px);
  justify-content:center!important;
  align-content:center!important;
  gap:5px!important;
  padding:8px!important;
  overflow:hidden!important;
}
.material-table-row .material-action-icon{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  padding:0!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
}
.material-table-row .material-action-icon.danger{
  color:#cc655e!important;
  border-color:rgba(204,101,94,.34)!important;
  background:rgba(204,101,94,.045)!important;
}
.material-table-row .material-action-icon.danger:hover{
  color:#e1766f!important;
  background:rgba(204,101,94,.10)!important;
}

@media(max-width:760px){
  .materials-sticky-grid{
    position:static!important;
    padding:0!important;
    margin:8px 0 10px;
  }
  .material-grid-filter-head{
    grid-template-columns:1fr 1fr;
    border-radius:10px;
  }
  .material-filter-cell:first-child{grid-column:1 / -1}
  .material-filter-actions-head{display:none}
  .material-table-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    padding:10px!important;
    gap:8px!important;
    margin-bottom:7px!important;
    border:1px solid var(--line)!important;
    border-radius:11px!important;
  }
  .material-table-row>div{padding:0!important;border-left:0!important}
  .material-table-row .material-compact-main{grid-column:1}
  .material-group-cell,
  .material-catalog-cell{display:none!important}
  .material-cert-cell{grid-column:1 / -1!important;border-radius:8px!important;overflow:hidden}
  .material-table-row .material-row-actions{
    grid-column:2;
    grid-row:1;
    padding:0!important;
    align-self:start;
  }
}

/* v0.3.23 — copy certificate to another material */
.material-cert-line{
  width:100%;
  min-height:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) 30px;
  align-items:stretch;
}
.material-cert-line+.material-cert-line{
  border-top:1px solid rgba(115,145,155,.10);
}
.material-cert-copy{
  width:30px;
  min-width:30px;
  padding:0;
  margin:0;
  display:grid;
  place-items:center;
  border:0;
  border-left:1px solid rgba(115,145,155,.12);
  border-radius:0;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}
.material-cert-copy:hover{
  color:var(--green);
  background:rgba(95,190,175,.06);
}
.material-cert-copy svg{
  width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round
}
.material-cert-line .material-cert-flat{
  min-height:40px;
}

.certificate-copy-dialog{
  width:min(760px,calc(100vw - 28px));
  max-height:min(760px,calc(100vh - 32px));
  overflow:hidden;
  background:var(--panel)!important;
  color:var(--text)!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  box-shadow:0 28px 90px rgba(0,0,0,.48)!important;
}
.certificate-copy-dialog::backdrop{
  background:rgba(0,0,0,.68)!important;
  backdrop-filter:blur(3px);
}
.certificate-copy-dialog form{
  display:flex;
  flex-direction:column;
  max-height:inherit;
}
.certificate-copy-picker{display:grid;gap:8px;min-height:0;margin-top:8px}
.certificate-copy-picker>input{width:100%}
.certificate-copy-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.certificate-copy-results{
  min-height:220px;
  max-height:390px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:10px;
  padding:5px;
  background:rgba(255,255,255,.015);
}
.certificate-copy-target{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(160px,.48fr);
  align-items:center;
  gap:12px;
  border:0;
  border-bottom:1px solid rgba(115,145,155,.10);
  background:transparent;
  color:var(--text);
  text-align:left;
  padding:9px 10px;
  cursor:pointer;
}
.certificate-copy-target:last-child{border-bottom:0}
.certificate-copy-target:hover{background:rgba(95,190,175,.055)}
.certificate-copy-target.selected{
  background:rgba(95,190,175,.10);
  outline:1px solid rgba(95,190,175,.28);
  border-radius:8px;
}
.certificate-copy-target>span{display:grid;gap:2px}
.certificate-copy-target strong{font-size:12.5px;line-height:1.2}
.certificate-copy-target small{font-size:10px;line-height:1.2;color:var(--muted)}
.certificate-copy-target em{
  font-style:normal;
  font-size:9.5px;
  line-height:1.2;
  color:var(--muted);
  text-align:right;
}
.certificate-copy-target.is-filtered-out{display:none!important}

@media(max-width:760px){
  .certificate-copy-dialog{
    position:fixed!important;
    top:max(18px,env(safe-area-inset-top))!important;
    width:calc(100vw - 18px)!important;
    max-height:calc(100dvh - 128px - env(safe-area-inset-bottom))!important;
    overflow:hidden!important;
  }
  .certificate-copy-dialog form{
    max-height:calc(100dvh - 128px - env(safe-area-inset-bottom))!important;
  }
  .certificate-copy-filters{grid-template-columns:1fr}
  .certificate-copy-results{max-height:38dvh}
  .certificate-copy-target{grid-template-columns:1fr}
  .certificate-copy-target em{text-align:left}
  .certificate-copy-actions{
    position:sticky!important;
    bottom:0!important;
    z-index:6!important;
    padding:10px 0 calc(12px + env(safe-area-inset-bottom))!important;
    background:var(--panel)!important;
    border-top:1px solid var(--line)!important;
  }
}

/* v0.3.24 — direct certificate copy/paste + opaque sticky materials header */
.section-context-name{display:flex;align-items:center}
.section-context-name strong{font-size:14px!important}
.section-context-action{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 10px;
  border:1px solid rgba(70,170,162,.35);
  border-radius:8px;
  background:rgba(70,170,162,.08);
}

.materials-page{padding-top:0!important}
.materials-sticky-grid{
  top:var(--materials-sticky-top,0px)!important;
  margin-top:0!important;
  padding:0!important;
  background:#f6f9f8!important;
  border-bottom:1px solid rgba(205,219,214,.92);
  box-shadow:0 8px 18px rgba(20,44,50,.06);
}
html[data-theme="dark"] .materials-sticky-grid{
  background:#081b23!important;
  border-bottom-color:#29414a!important;
  box-shadow:0 8px 18px rgba(0,0,0,.20);
}
.material-grid-filter-head{
  border-top-left-radius:0!important;
  border-top-right-radius:0!important;
  background:#f6f9f8!important;
}
html[data-theme="dark"] .material-grid-filter-head{
  background:#0a2029!important;
}
.material-filter-cell{
  background:inherit!important;
}

.material-table-row .material-row-actions{
  width:100%!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  gap:5px!important;
  padding:8px 6px!important;
}
.material-table-row .material-row-actions .material-action-icon{
  margin:0!important;
}

.material-cert-copy.is-copied{
  color:var(--green)!important;
  background:rgba(95,190,175,.13)!important;
}
.material-cert-paste{
  width:100%;
  min-height:58px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px;
  font-size:10px;
  cursor:pointer;
  opacity:.42;
}
.material-cert-paste svg{
  width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round
}
.material-cert-paste.is-ready{
  opacity:1;
  color:var(--green);
  background:rgba(95,190,175,.045);
}
.material-cert-paste.is-ready:hover{
  background:rgba(95,190,175,.10);
}
.material-cert-paste:disabled{cursor:default}

.material-cert-clipboard-toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  z-index:120;
  max-width:min(520px,calc(100vw - 28px));
  padding:9px 13px;
  border:1px solid rgba(95,190,175,.30);
  border-radius:10px;
  background:#f6f9f8;
  color:#23363b;
  box-shadow:0 12px 35px rgba(0,0,0,.18);
  font-size:11px;
}
html[data-theme="dark"] .material-cert-clipboard-toast{
  background:#0b2029;
  color:#dce7ea;
  border-color:#31505a;
}

@media(max-width:760px){
  .materials-sticky-grid{
    background:transparent!important;
    border-bottom:0!important;
    box-shadow:none!important;
  }
  .material-cert-paste{
    min-height:42px;
    border-radius:8px;
  }
  .material-cert-clipboard-toast{
    bottom:calc(96px + env(safe-area-inset-bottom));
  }
}

/* v0.3.25 — catalog-style material picker inside act materials dialog */
.catalog-materials-dialog{
  width:min(1040px,calc(100vw - 36px))!important;
}
.catalog-dialog-body{
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)!important;
  gap:14px!important;
}
.catalog-picker-pane,
.catalog-selected-pane{
  min-width:0;
}
.act-material-picker-search{margin-top:2px}
.act-material-picker-search input{
  width:100%;
  height:42px;
}
.act-material-picker-filters{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
}
.act-material-picker-filters select{
  width:100%;
  height:38px;
}
.catalog-material-results{
  min-height:260px!important;
  max-height:420px!important;
  margin-top:8px;
  overflow:auto;
  padding:5px!important;
}
.catalog-material-option{
  width:100%;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(155px,.48fr)!important;
  gap:12px!important;
  align-items:center!important;
  padding:9px 10px!important;
  border:0!important;
  border-bottom:1px solid rgba(115,145,155,.10)!important;
  border-radius:0!important;
  background:transparent!important;
  text-align:left!important;
}
.catalog-material-option:last-child{border-bottom:0!important}
.catalog-material-option:hover{
  background:rgba(95,190,175,.055)!important;
}
.catalog-material-option-main{
  min-width:0;
  display:grid;
  gap:2px;
}
.catalog-material-option-main strong{
  font-size:12.5px;
  line-height:1.2;
}
.catalog-material-option-main small{
  font-size:10px;
  line-height:1.2;
  color:var(--muted);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.catalog-material-option-meta{
  min-width:0;
  display:grid;
  justify-items:end;
  gap:2px;
  text-align:right;
}
.catalog-material-option-meta em{
  font-style:normal;
  font-size:9.5px;
  color:var(--green);
  padding:2px 6px;
  border-radius:999px;
  background:rgba(95,190,175,.08);
}
.catalog-material-option-meta small{
  max-width:100%;
  font-size:9.5px;
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.catalog-material-option-meta i{
  font-style:normal;
  font-size:8.8px;
}
.catalog-material-option-meta i.has-cert{color:var(--green)}
.catalog-material-option-meta i.no-cert{color:#c88a42}
.catalog-selected-list{
  min-height:338px!important;
  max-height:500px!important;
  overflow:auto;
}
.selected-material-main{
  min-width:0;
  display:grid;
  gap:2px;
}
.selected-material-main>span{
  font-size:12px;
  line-height:1.2;
}
.selected-material-main small{
  font-size:9.5px;
  line-height:1.2;
  color:var(--muted);
}
.selected-material-cert-warning{color:#c88a42!important}
.dialog-quick-material{
  margin-top:10px!important;
  padding-top:10px!important;
  border-top:1px solid rgba(115,145,155,.14);
}
.dialog-quick-material>small{
  display:block;
  margin-top:5px;
  font-size:9px;
  line-height:1.25;
  color:var(--muted);
}
.catalog-dialog-actions{
  background:var(--panel);
}

@media(max-width:760px){
  .catalog-materials-dialog{
    width:calc(100vw - 16px)!important;
    top:max(12px,env(safe-area-inset-top))!important;
    max-height:calc(100dvh - 112px - env(safe-area-inset-bottom))!important;
  }
  .catalog-materials-dialog .act-materials-dialog-card{
    max-height:calc(100dvh - 112px - env(safe-area-inset-bottom))!important;
  }
  .catalog-dialog-body{
    display:block!important;
    overflow:auto!important;
  }
  .catalog-selected-pane{
    margin-top:10px;
  }
  .act-material-picker-filters{
    grid-template-columns:1fr!important;
  }
  .catalog-material-results{
    min-height:180px!important;
    max-height:32dvh!important;
  }
  .catalog-material-option{
    grid-template-columns:1fr!important;
  }
  .catalog-material-option-meta{
    justify-items:start!important;
    text-align:left!important;
  }
  .catalog-selected-list{
    min-height:120px!important;
    max-height:24dvh!important;
  }
  .catalog-dialog-actions{
    position:sticky!important;
    bottom:0!important;
    z-index:8!important;
    padding-bottom:calc(12px + env(safe-area-inset-bottom))!important;
  }
}

/* v0.3.27 — polished material detail page */
.material-detail-v327{
  max-width:1040px;
  margin:0 auto;
  padding-bottom:calc(110px + env(safe-area-inset-bottom));
}
.material-detail-back{
  display:inline-flex;
  margin:2px 0 12px;
  color:var(--muted);
  text-decoration:none;
  font-size:11px;
}
.material-detail-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:start;
  padding:4px 0 18px;
}
.material-detail-hero-main{min-width:0}
.material-detail-title-row{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.material-detail-title-row h1{
  margin:0;
  font-size:clamp(28px,4vw,42px);
  line-height:1.04;
}
.material-detail-doc-actions{display:flex;gap:6px}
.material-doc-icon-btn{
  min-width:34px;
  height:34px;
  padding:0 8px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:9px;
  text-decoration:none;
  color:var(--green);
  background:transparent;
  font-size:9px;
}
.material-doc-icon-btn svg{
  width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round
}
.material-detail-ua{
  margin:10px 0 0;
  max-width:760px;
  font-size:14px;
  line-height:1.45;
  color:var(--text);
}
.material-detail-meta-line{
  display:flex;
  flex-wrap:wrap;
  gap:6px 16px;
  margin-top:12px;
  font-size:10.5px;
  color:var(--muted);
}
.material-detail-meta-line b{color:var(--text)}
.material-detail-action-row{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.material-copy-action{min-width:auto}
.material-delete-action{
  color:#c96660!important;
  border-color:rgba(201,102,96,.32)!important;
}

.material-detail-section{
  margin-top:14px;
  padding:15px 16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
}
.material-detail-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.material-detail-section-head h2{
  margin:0;
  font-size:15px;
}
.material-detail-section-head p{
  margin:5px 0 0;
  max-width:650px;
  font-size:10.5px;
  line-height:1.4;
  color:var(--muted);
}
.material-detail-small-link{
  font-size:10px;
  color:var(--green);
  text-decoration:none;
}

.material-certificate-list{display:grid}
.material-certificate-row{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  min-height:48px;
  padding:8px 9px;
  border-bottom:1px solid rgba(115,145,155,.10);
}
.material-certificate-row:last-child{border-bottom:0}
.material-certificate-ok{background:rgba(95,190,175,.025)}
.material-certificate-soon{background:rgba(205,145,45,.08)}
.material-certificate-expired{background:rgba(190,75,65,.09)}
.material-certificate-missing{background:rgba(115,145,155,.03)}
.material-certificate-icon{
  width:24px;height:24px;display:grid;place-items:center;color:var(--green)
}
.material-certificate-icon svg{
  width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round
}
.material-certificate-copy{display:grid;gap:2px;min-width:0}
.material-certificate-title{
  font-size:11px;
  line-height:1.25;
  font-weight:400;
}
.material-certificate-copy small{font-size:9px;color:var(--muted)}
.material-certificate-open{
  font-size:10px;
  color:var(--green);
  text-decoration:none;
}
.material-detail-empty{
  padding:8px 2px;
  font-size:10.5px;
  color:var(--muted);
}

.material-replace-selection{
  min-height:40px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px dashed rgba(115,145,155,.24);
  border-radius:9px;
  font-size:10.5px;
  color:var(--muted);
}
.material-replace-selection.has-selection{
  border-style:solid;
  border-color:rgba(95,190,175,.28);
  background:rgba(95,190,175,.05);
  color:var(--text);
}
.material-replace-selection.has-selection strong{font-size:11.5px}
.material-replace-selection.has-selection span{color:var(--muted)}

.material-usage-list{display:grid}
.material-usage-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid rgba(115,145,155,.10);
}
.material-usage-row:last-child{border-bottom:0}
.material-usage-project{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:inherit;
  text-decoration:none;
}
.material-usage-project strong{font-size:11.5px}
.material-usage-project span{font-size:9.5px;color:var(--green)}

.material-act-list{display:grid}
.material-act-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:10px;
  align-items:center;
  min-height:48px;
  padding:7px 0;
  border-bottom:1px solid rgba(115,145,155,.10);
}
.material-act-row:last-child{border-bottom:0}
.material-act-main{display:grid;gap:2px;min-width:0}
.material-act-main strong{font-size:11px}
.material-act-main span{
  font-size:9.5px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.material-act-actions{display:flex;gap:5px;align-items:center}

.material-replace-picker-dialog{
  width:min(760px,calc(100vw - 28px));
  max-height:min(760px,calc(100vh - 32px));
  overflow:hidden;
  background:var(--panel)!important;
  color:var(--text)!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  box-shadow:0 28px 90px rgba(0,0,0,.48)!important;
}
.material-replace-picker-dialog::backdrop{
  background:rgba(0,0,0,.68)!important;
  backdrop-filter:blur(3px);
}
.material-replace-picker-card{
  display:flex;
  flex-direction:column;
  max-height:inherit;
}
.material-replace-picker-tools{display:grid;gap:8px;margin-top:8px}
.material-replace-picker-tools>input{width:100%}
.material-replace-picker-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.material-replace-picker-results{
  min-height:220px;
  max-height:390px;
  overflow:auto;
  margin-top:8px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:5px;
}
.material-replace-option{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(150px,.45fr);
  align-items:center;
  gap:12px;
  padding:9px 10px;
  border:0;
  border-bottom:1px solid rgba(115,145,155,.10);
  background:transparent;
  color:var(--text);
  text-align:left;
  cursor:pointer;
}
.material-replace-option:last-child{border-bottom:0}
.material-replace-option:hover{background:rgba(95,190,175,.055)}
.material-replace-option.selected{
  background:rgba(95,190,175,.10);
  outline:1px solid rgba(95,190,175,.28);
  border-radius:8px;
}
.material-replace-option.is-filtered-out{display:none!important}
.material-replace-option-main{display:grid;gap:2px;min-width:0}
.material-replace-option-main strong{font-size:12px}
.material-replace-option-main small{
  font-size:9.5px;
  line-height:1.2;
  color:var(--muted);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.material-replace-option-meta{display:grid;gap:2px;justify-items:end;text-align:right}
.material-replace-option-meta em{
  font-style:normal;
  font-size:9.5px;
  color:var(--green);
}
.material-replace-option-meta small{font-size:9px;color:var(--muted)}

@media(max-width:760px){
  .material-detail-v327{
    padding:0 14px calc(116px + env(safe-area-inset-bottom));
  }
  .material-detail-hero{
    grid-template-columns:1fr;
    gap:14px;
    padding-bottom:8px;
  }
  .material-detail-title-row h1{font-size:32px}
  .material-detail-ua{font-size:13px}
  .material-detail-action-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
  }
  .material-primary-action{text-align:center}
  .material-copy-action,
  .material-delete-action{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .material-detail-section{
    margin-top:12px;
    padding:13px 12px;
  }
  .material-detail-section-head{
    align-items:flex-start;
  }
  .material-usage-row{
    grid-template-columns:1fr;
  }
  .material-usage-replace{width:100%}
  .material-act-row{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .material-act-actions{
    grid-column:1 / -1;
    justify-content:flex-end;
  }
  .material-replace-picker-dialog{
    position:fixed!important;
    top:max(14px,env(safe-area-inset-top))!important;
    width:calc(100vw - 18px)!important;
    max-height:calc(100dvh - 118px - env(safe-area-inset-bottom))!important;
  }
  .material-replace-picker-card{
    max-height:calc(100dvh - 118px - env(safe-area-inset-bottom))!important;
  }
  .material-replace-picker-filters{grid-template-columns:1fr}
  .material-replace-picker-results{max-height:40dvh}
  .material-replace-option{grid-template-columns:1fr}
  .material-replace-option-meta{justify-items:start;text-align:left}
  .material-replace-picker-actions{
    position:sticky!important;
    bottom:0!important;
    z-index:5!important;
    padding:10px 0 calc(12px + env(safe-area-inset-bottom))!important;
    background:var(--panel)!important;
    border-top:1px solid var(--line)!important;
  }
}

/* v0.3.28 — material detail width/title cleanup */
.material-detail-v328{
  width:min(100%,1360px)!important;
  max-width:1360px!important;
  margin:0 auto!important;
  padding-left:18px!important;
  padding-right:18px!important;
  padding-bottom:calc(110px + env(safe-area-inset-bottom))!important;
}
.material-detail-v328 .material-detail-hero{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:18px!important;
  padding:4px 0 16px!important;
}
.material-detail-v328 .material-detail-title-row h1{
  font-size:clamp(24px,2.5vw,34px)!important;
  line-height:1.08!important;
  max-width:920px!important;
  letter-spacing:-.015em!important;
}
.material-detail-v328 .material-detail-ua{
  max-width:920px!important;
  font-size:12.5px!important;
  line-height:1.42!important;
}
.material-detail-v328 .material-detail-meta-line{
  margin-top:10px!important;
}
.material-detail-v328 .material-detail-section{
  width:100%!important;
  box-sizing:border-box!important;
  margin-top:12px!important;
  padding:14px 16px!important;
  border-radius:12px!important;
}
.material-detail-v328 .material-detail-section-head{
  margin-bottom:8px!important;
}
.material-detail-v328 .material-certificate-row{
  min-height:46px!important;
}
.material-usage-row-link{
  grid-template-columns:minmax(0,1fr) auto!important;
  text-decoration:none!important;
  color:inherit!important;
}
.material-usage-row-link strong{
  font-size:11.5px!important;
}
.material-usage-row-link span{
  font-size:9.5px!important;
  color:var(--green)!important;
}

.material-act-row-link{
  grid-template-columns:minmax(0,1fr) auto auto!important;
  text-decoration:none!important;
  color:inherit!important;
}
.material-act-open{
  font-size:9.5px;
  color:var(--green);
  white-space:nowrap;
}
.material-act-row-link:hover,
.material-usage-row-link:hover{
  background:rgba(95,190,175,.035);
}

@media(max-width:760px){
  .material-detail-v328{
    width:100%!important;
    max-width:none!important;
    padding-left:18px!important;
    padding-right:18px!important;
    padding-bottom:calc(116px + env(safe-area-inset-bottom))!important;
  }
  .material-detail-v328 .material-detail-hero{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .material-detail-v328 .material-detail-title-row h1{
    font-size:29px!important;
    line-height:1.08!important;
  }
  .material-detail-v328 .material-detail-ua{
    font-size:12px!important;
  }
  .material-detail-v328 .material-detail-action-row{
    grid-template-columns:minmax(0,1fr) auto auto!important;
  }
  .material-detail-v328 .material-detail-section{
    margin-left:0!important;
    margin-right:0!important;
    padding:13px 12px!important;
  }
  .material-act-row-link{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:7px!important;
  }
  .material-act-open{
    grid-column:1 / -1;
    justify-self:end;
  }
}

/* v0.3.29 — Materials mobile cards aligned with Act card visual language */
@media(max-width:760px){
  .material-library-page{
    padding-left:14px!important;
    padding-right:14px!important;
  }

  /* Filter panel uses the same radius, border and filled surface as mobile act cards. */
  .materials-sticky-grid{
    margin:8px 0 12px!important;
  }
  .material-grid-filter-head{
    border:1px solid rgba(76,111,120,.22)!important;
    border-radius:14px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 3px 12px rgba(30,58,48,.025)!important;
  }
  .material-filter-cell{
    padding:10px 11px!important;
    border-right:0!important;
    border-bottom:1px solid rgba(85,115,124,.10)!important;
    background:transparent!important;
  }
  .material-filter-cell:nth-last-child(-n+2){
    border-bottom:0!important;
  }
  .material-filter-label{
    margin-bottom:7px!important;
    font-size:9px!important;
  }
  .material-filter-cell input,
  .material-filter-cell select{
    height:40px!important;
    min-height:40px!important;
    border-radius:9px!important;
  }

  /* One material = one act-like card. */
  .material-grid-list{
    gap:9px!important;
  }
  .material-table-row{
    position:relative!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    min-height:0!important;
    padding:12px 13px 11px!important;
    gap:9px!important;
    margin:0!important;
    border:1px solid rgba(76,111,120,.22)!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 3px 12px rgba(30,58,48,.025)!important;
    overflow:hidden!important;
  }
  .material-table-row>div{
    min-width:0!important;
    padding:0!important;
    border-left:0!important;
  }

  .material-table-row .material-compact-main{
    grid-column:1!important;
    align-self:center!important;
  }
  .material-card-name{
    font-size:13px!important;
    line-height:1.25!important;
    font-weight:700!important;
  }
  .material-official-name{
    margin-top:4px!important;
    font-size:10px!important;
    line-height:1.25!important;
  }

  .material-table-row .material-row-actions{
    grid-column:2!important;
    grid-row:1!important;
    align-self:start!important;
    display:flex!important;
    gap:5px!important;
    padding:0!important;
    width:auto!important;
  }
  .material-table-row .material-action-icon{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    border-radius:9px!important;
    background:rgba(115,155,165,.035)!important;
    border-color:rgba(115,155,165,.24)!important;
  }
  .material-table-row .material-action-icon.danger{
    color:#c96b66!important;
    border-color:rgba(201,107,102,.35)!important;
    background:rgba(201,107,102,.055)!important;
  }

  /* Certificate becomes a calm lower section of the same card. */
  .material-cert-cell{
    grid-column:1 / -1!important;
    margin-top:3px!important;
    padding-top:9px!important;
    border-top:1px solid rgba(85,115,124,.12)!important;
    border-radius:0!important;
    overflow:visible!important;
    background:transparent!important;
  }
  .material-cert-line{
    min-height:40px!important;
    border-radius:9px!important;
    overflow:hidden!important;
    background:rgba(115,155,165,.035)!important;
  }
  .material-cert-line+.material-cert-line{
    margin-top:5px!important;
    border-top:0!important;
  }
  .material-cert-flat{
    min-height:40px!important;
    padding:7px 9px!important;
  }
  .material-cert-copy{
    border-left:1px solid rgba(115,145,155,.12)!important;
  }

  /* Status colors stay subtle, similar to signed/void act cards. */
  .material-cert-cell-ok .material-cert-line,
  .material-cert-cell-ok .material-cert-paste{
    background:rgba(85,167,134,.075)!important;
  }
  .material-cert-cell-soon .material-cert-line,
  .material-cert-cell-soon .material-cert-paste{
    background:rgba(205,145,45,.10)!important;
  }
  .material-cert-cell-expired .material-cert-line,
  .material-cert-cell-expired .material-cert-paste{
    background:rgba(201,107,102,.10)!important;
  }
  .material-cert-paste{
    min-height:40px!important;
    border-radius:9px!important;
  }
}

/* Dark theme: use exactly the same family of surfaces as mobile act cards. */
@media(max-width:760px){
  html[data-theme="dark"] .material-grid-filter-head{
    background:#122630!important;
    border-color:#2b4650!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] .material-filter-cell{
    border-bottom-color:rgba(145,175,185,.10)!important;
  }
  html[data-theme="dark"] .material-table-row{
    background:#122630!important;
    border-color:#2b4650!important;
    color:#e7eff1!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] .material-card-name{
    color:#dce8ea!important;
  }
  html[data-theme="dark"] .material-official-name{
    color:#9fb2b7!important;
  }
  html[data-theme="dark"] .material-cert-cell{
    border-top-color:rgba(145,175,185,.13)!important;
  }
  html[data-theme="dark"] .material-cert-line{
    background:#0f222b!important;
  }
  html[data-theme="dark"] .material-cert-cell-ok .material-cert-line,
  html[data-theme="dark"] .material-cert-cell-ok .material-cert-paste{
    background:#163833!important;
  }
  html[data-theme="dark"] .material-cert-cell-soon .material-cert-line,
  html[data-theme="dark"] .material-cert-cell-soon .material-cert-paste{
    background:#3b3424!important;
  }
  html[data-theme="dark"] .material-cert-cell-expired .material-cert-line,
  html[data-theme="dark"] .material-cert-cell-expired .material-cert-paste{
    background:#412c30!important;
  }
  html[data-theme="dark"] .material-table-row .material-action-icon{
    background:#10242d!important;
    border-color:#31505a!important;
  }
  html[data-theme="dark"] .material-table-row .material-action-icon.danger{
    color:#db7770!important;
    background:#2d2227!important;
    border-color:#674047!important;
  }
}

/* v0.3.30 — wider mobile materials + reliable rounded cards */
@media(max-width:760px){
  /* The global page shell already provides mobile gutter. Do not add another one. */
  .material-library-page{
    width:100%!important;
    max-width:none!important;
    padding-left:0!important;
    padding-right:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  .materials-sticky-grid,
  .material-grid-list{
    width:100%!important;
    max-width:none!important;
  }

  /* Slightly reduce the outer gutter inherited from the main content shell
     only for the materials page so cards visually match the acts page. */
  body:has(.material-library-page) .page-content,
  body:has(.material-library-page) main,
  body:has(.material-library-page) .content{
    padding-left:12px!important;
    padding-right:12px!important;
  }

  .material-grid-filter-head{
    width:100%!important;
    box-sizing:border-box!important;
    border-radius:14px!important;
    overflow:hidden!important;
  }

  .material-table-row{
    width:100%!important;
    box-sizing:border-box!important;
    border-radius:14px!important;
    overflow:hidden!important;
    clip-path:inset(0 round 14px);
  }

  /* Old desktop last/first-row rules can flatten mobile corners.
     Force all four corners on every mobile material card. */
  .material-table-row:first-child,
  .material-table-row:first-of-type,
  .material-table-row:last-child,
  .material-table-row:last-of-type{
    border-radius:14px!important;
    overflow:hidden!important;
  }

  /* The certificate lower section must stay inside the rounded parent. */
  .material-cert-cell{
    border-bottom-left-radius:13px!important;
    border-bottom-right-radius:13px!important;
    overflow:hidden!important;
  }

  .material-cert-line:last-child,
  .material-cert-paste{
    border-bottom-left-radius:12px!important;
    border-bottom-right-radius:12px!important;
  }
}


/* v0.3.32 — object material replacement dialog layout repair */
.project-material-replace-dialog{
  width:min(760px,calc(100vw - 22px))!important;
  max-height:min(760px,calc(100dvh - 28px))!important;
  overflow:hidden!important;
  border-radius:18px!important;
}
.project-material-replace-dialog form{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  max-height:inherit!important;
  padding:18px!important;
  overflow:hidden!important;
}
.replace-dialog-head{
  align-items:flex-start!important;
  gap:14px!important;
  margin-bottom:8px!important;
}
.replace-dialog-head h2{
  margin:4px 0 0!important;
  font-size:clamp(22px,3vw,30px)!important;
  line-height:1.08!important;
  letter-spacing:-.02em!important;
}
.replace-dialog-close{
  width:40px!important;
  height:40px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.03)!important;
  flex:0 0 auto!important;
}
.project-material-replace-dialog > form > p,
.project-material-replace-dialog form > p{
  margin:0 0 10px!important;
  font-size:13px!important;
  line-height:1.5!important;
}
.replace-picker{
  display:grid!important;
  gap:10px!important;
  min-height:0!important;
  flex:1 1 auto!important;
}
.replace-picker-search input,
.replace-picker-filters select{
  width:100%!important;
}
.replace-picker-results{
  min-height:260px!important;
  max-height:min(46dvh,420px)!important;
  overflow:auto!important;
  padding:6px!important;
  border-radius:14px!important;
}
.replace-candidate{
  border-radius:12px!important;
  border-bottom:0!important;
  margin-bottom:6px!important;
  background:rgba(255,255,255,.018)!important;
}
.replace-candidate:last-child{margin-bottom:0!important}
.replace-dialog-footer{
  position:sticky!important;
  bottom:0!important;
  z-index:6!important;
  display:grid!important;
  gap:10px!important;
  margin-top:10px!important;
  padding-top:10px!important;
  background:inherit!important;
  border-top:1px solid var(--line)!important;
}
.replace-picker-selected{
  min-height:46px!important;
  padding:11px 12px!important;
  border-radius:12px!important;
  font-size:13px!important;
  line-height:1.35!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.replace-picker-selected.has-selection{
  background:rgba(95,190,175,.08)!important;
}
.replace-dialog-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  margin-top:0!important;
  padding:0!important;
  border-top:0!important;
  background:transparent!important;
}
.replace-dialog-actions .btn{
  width:100%!important;
  min-height:48px!important;
  border-radius:14px!important;
}
html[data-theme="dark"] .replace-dialog-close{background:rgba(255,255,255,.02)!important}

@media(max-width:760px){
  .project-material-replace-dialog{
    position:fixed!important;
    top:max(12px,env(safe-area-inset-top))!important;
    left:0!important;
    right:0!important;
    bottom:auto!important;
    width:calc(100vw - 14px)!important;
    max-height:calc(100dvh - 104px - env(safe-area-inset-bottom))!important;
    margin:0 auto!important;
    border-radius:16px!important;
  }
  .project-material-replace-dialog form{
    padding:14px 14px calc(10px + env(safe-area-inset-bottom))!important;
    max-height:calc(100dvh - 104px - env(safe-area-inset-bottom))!important;
  }
  .replace-dialog-head h2{
    font-size:clamp(18px,8vw,24px)!important;
  }
  .replace-picker{gap:8px!important}
  .replace-picker-filters{grid-template-columns:1fr!important;gap:8px!important}
  .replace-picker-results{
    min-height:180px!important;
    max-height:34dvh!important;
    border-radius:12px!important;
  }
  .replace-candidate{grid-template-columns:1fr!important;padding:10px!important}
  .replace-candidate-meta{justify-items:start!important;text-align:left!important}
  .replace-dialog-footer{
    gap:8px!important;
    padding-top:8px!important;
    padding-bottom:calc(6px + env(safe-area-inset-bottom))!important;
  }
  .replace-picker-selected{
    min-height:42px!important;
    font-size:12px!important;
    padding:10px!important;
  }
  .replace-dialog-actions{
    grid-template-columns:1fr 1fr!important;
    align-items:stretch!important;
  }
  .replace-dialog-actions .btn{
    min-height:46px!important;
    font-size:16px!important;
    padding:11px 10px!important;
  }
}

/* v0.3.43: clear inline save control and no duplicate materials ellipsis */
.selectable-act-row.act-row-inline-edit .materials-cell::after{content:none!important;display:none!important}
.inline-row-save-btn{display:block;width:100%;margin-top:5px;padding:8px 10px;border:1px solid #3f9c91;border-radius:7px;background:#126a62;color:white;font:inherit;font-weight:650;cursor:pointer;white-space:normal}
.inline-row-save-btn:hover{background:#188478}

/* v0.3.61: optional material details */
.material-advanced{border:1px solid var(--line,#dce5df);border-radius:12px;margin:20px 0 10px;background:rgba(127,155,145,.045);overflow:hidden}
.material-advanced>summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;cursor:pointer;list-style:none;padding:15px 17px;font-weight:700;color:var(--text,#26342d)}
.material-advanced>summary::-webkit-details-marker{display:none}
.material-advanced>summary:before{content:"＋";display:inline-grid;place-items:center;width:25px;height:25px;border-radius:8px;background:rgba(100,150,135,.12);font-size:18px;font-weight:500}
.material-advanced[open]>summary:before{content:"−"}
.material-advanced-hint{font-size:12px;font-weight:400;color:var(--muted,#75837c)}
.material-advanced-body{padding:0 17px 16px}
.material-advanced-body .field{margin-top:12px}
@media(max-width:600px){.material-advanced>summary{align-items:flex-start}.material-advanced-hint{width:100%;padding-left:37px}}

/* v0.3.62: project-level designer exclusion */
.project-designer-section{border:1px solid transparent;border-radius:14px;transition:background .15s,border-color .15s;padding:12px;margin-left:-12px;margin-right:-12px}
.project-designer-section.is-excluded{background:rgba(190,50,65,.075);border-color:rgba(190,50,65,.3)}
.project-designer-toggle{display:inline-flex;align-items:center;gap:10px;margin:12px 0 6px;cursor:pointer;font-weight:600}
.project-designer-toggle input{width:18px;height:18px;accent-color:#b5414c}
.project-designer-section.is-excluded .project-designer-person-fields{display:none}

/* v0.3.72 — full-width desktop materials table and unified rounded frame */
@media (min-width: 761px) {
  body:has(.material-library-page) main {
    width: 100%;
    max-width: none !important;
    padding-left: clamp(16px, 1.6vw, 36px);
    padding-right: clamp(16px, 1.6vw, 36px);
  }
  body:has(.material-library-page) .page-content,
  body:has(.material-library-page) .content {
    width: 100%;
    max-width: none !important;
  }
  .material-library-page {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .material-library-page .materials-sticky-grid,
  .material-library-page .material-grid-list {
    width: 100%;
    max-width: none;
  }
  .material-library-page .material-grid-filter-head {
    border-radius: 14px 14px 0 0 !important;
    overflow: hidden !important;
  }
  .material-library-page .material-grid-list {
    border-radius: 0 0 14px 14px;
    overflow: hidden;
  }
  .material-library-page .material-table-row:last-of-type {
    border-radius: 0 0 14px 14px !important;
  }
}

/* v0.3.74 — master certificates use the same three-column link layout as personal certificates.
   Master certificates have no copy-to-other-material button, so do not reserve its 30px track. */
.material-master-cert-line{grid-template-columns:minmax(0,1fr)!important}
.material-master-cert-line .material-cert-flat{min-width:0!important;grid-template-columns:16px minmax(0,1fr) 14px!important}
.material-master-cert-line .material-cert-text{min-width:0!important;width:100%!important}
.material-master-cert-line .material-cert-title{overflow-wrap:anywhere;word-break:normal}

.material-save-error{padding:12px 14px;margin:12px 0;border:1px solid #ca6a5c;border-radius:9px;background:rgba(195,60,45,.10);color:inherit;font-weight:600}.material-save-error[hidden]{display:none}

/* v0.3.107: non-destructive signed-act visibility filter */
.acts-hide-signed-control{display:inline-flex;align-items:center;gap:7px;cursor:pointer;white-space:nowrap;font-size:12px;font-weight:600;color:var(--text,#dce8e8)}
.acts-hide-signed-control input{width:16px;height:16px;accent-color:#148f86;cursor:pointer}
html[data-theme="light"] .acts-hide-signed-control{color:#263e44}
@media(max-width:760px){.acts-hide-signed-control{font-size:12px}}


/* v0.3.115: Excel-like inline editing: the TABLE CELL is the editing surface. */
.selectable-acts-table .act-row-inline-edit > td.work-cell,
.selectable-acts-table .act-row-inline-edit > td.axes-cell,
.selectable-acts-table .act-row-inline-edit > td.date-cell{
  position:relative!important;
  padding:0!important;
  box-shadow:inset 0 0 0 1px rgba(86,178,170,.38)!important;
  transition:box-shadow .12s,background .12s;
}
.selectable-acts-table .act-row-inline-edit > td.work-cell:focus-within,
.selectable-acts-table .act-row-inline-edit > td.axes-cell:focus-within,
.selectable-acts-table .act-row-inline-edit > td.date-cell:focus-within{
  box-shadow:inset 0 0 0 2px #54c1b5!important;
  background:rgba(62,180,165,.12)!important;
}
.selectable-acts-table .act-row-inline-edit .inline-cell-input,
html[data-theme="dark"] .selectable-acts-table .act-row-inline-edit .inline-cell-input{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  color:inherit!important;
  padding:10px 12px!important;
  resize:none!important;
  font:inherit!important;
  line-height:inherit!important;
}
.selectable-acts-table .act-row-inline-edit .inline-work-input{min-height:66px!important;text-align:left!important}
.selectable-acts-table .act-row-inline-edit .inline-axes-input{min-height:66px!important;text-align:center!important}
.selectable-acts-table .act-row-inline-edit .inline-date-pair{display:grid;gap:0!important;grid-template-rows:1fr 1fr;min-height:66px}
.selectable-acts-table .act-row-inline-edit .inline-date-input{height:33px!important;min-height:33px!important;padding:4px 8px!important;text-align:center!important}
.selectable-acts-table .act-row-inline-edit .inline-date-input + .inline-date-input{border-top:1px solid rgba(107,154,154,.18)!important}
/* Do not surround the whole row with an extra thick frame. */
.selectable-acts-table .act-row-inline-edit,
html[data-theme="dark"] .selectable-acts-table .act-row-inline-edit{box-shadow:none!important}

/* v0.3.118: accessible, clearly visible advanced material section */
.material-formbox .material-advanced{border-color:var(--line,#45606a);background:rgba(75,157,148,.065)}
.material-formbox .material-advanced>summary{color:var(--text,#e1ebef)!important;font-size:15px;font-weight:750;opacity:1!important}
.material-formbox .material-advanced>summary>span:first-child{color:var(--text,#e1ebef)!important;opacity:1!important}
.material-formbox .material-advanced>summary:before{color:#72d9c8!important;background:rgba(73,193,173,.17)!important;font-weight:800}
.material-formbox .material-advanced-hint{color:var(--muted,#b0c7cf)!important;opacity:1!important}
.material-formbox .material-advanced>summary:hover{background:rgba(73,193,173,.08)}
.material-formbox .material-advanced>summary:focus-visible{outline:2px solid #72d9c8;outline-offset:-3px}

/* v0.3.118 — act preview toolbar: centered controls and recognizable exports */
.act-toolbar-v214 .toolbar-sections{align-items:center;justify-content:center}
.act-toolbar-v214 .icon-tools,.act-toolbar-v214 .status-tool,.act-toolbar-v214 .export-tools{align-items:center;justify-content:center}
.act-toolbar-v214 .icon-tools .tool-icon{display:inline-flex;align-items:center;justify-content:center}
.act-toolbar-v214 .icon-tools .tool-icon.tool-danger{color:#e24848!important}
.act-toolbar-v214 .icon-tools .tool-icon.tool-danger:hover{color:#fb6565!important;background:rgba(226,72,72,.13)!important}
.act-toolbar-v214 .export-tools .export-pdf{color:#bf343b!important;border-color:rgba(191,52,59,.45)!important;background:rgba(191,52,59,.08)!important}
.act-toolbar-v214 .export-tools .export-pdf:hover{background:rgba(191,52,59,.17)!important}
.act-toolbar-v214 .export-tools .export-xlsx{color:#167b4a!important;border-color:rgba(22,123,74,.46)!important;background:rgba(22,123,74,.08)!important}
.act-toolbar-v214 .export-tools .export-xlsx:hover{background:rgba(22,123,74,.17)!important}
html[data-theme="dark"] .act-toolbar-v214 .export-tools .export-pdf{color:#ff8e91!important;border-color:rgba(255,142,145,.5)!important;background:rgba(200,58,65,.15)!important}
html[data-theme="dark"] .act-toolbar-v214 .export-tools .export-xlsx{color:#70d4a1!important;border-color:rgba(112,212,161,.48)!important;background:rgba(31,147,88,.14)!important}
html[data-theme="dark"] .act-toolbar-v214 .icon-tools .tool-icon.tool-danger{color:#fa7373!important}

.project-materials-grid-head,.project-material-row{grid-template-columns:42px minmax(220px,2fr) minmax(190px,1.4fr) minmax(180px,1.2fr) 50px!important}.project-material-certificates{padding:10px 8px;min-width:0;overflow-wrap:anywhere}.project-material-certificates a{color:#67c5c1;text-decoration:underline}@media(max-width:800px){.project-materials-grid{overflow-x:auto}.project-materials-grid-head,.project-material-row{min-width:850px}}
@media print {header,nav,.no-print,.back,footer{display:none!important}body{background:white!important;color:black!important}.cert-register-table{color:black!important}}.cert-register-table{width:100%;border-collapse:collapse}.cert-register-table th,.cert-register-table td{border:1px solid #889;padding:9px;vertical-align:top}.cert-register-table td div{margin:3px 0}

/* v0.3.133 — shared table tokens and consistent dark/light presentation. */
:root{--sd-table-head:#eaf1ee;--sd-table-hover:rgba(35,138,119,.065);--sd-table-divider:#dbe5e1;--sd-table-muted:#536b65;--sd-focus:#138e82}
html[data-theme="dark"]{--sd-table-head:#132d35;--sd-table-hover:rgba(85,199,183,.07);--sd-table-divider:#31515b;--sd-table-muted:#b1c4c9;--sd-focus:#65d0c0}
/* Equal hierarchy for the acts, execution schemes, and project-materials registers. */
.acts-header-table th,.ex-act-register .ex-act-head,.project-materials-grid-head>div,
.material-library-page .material-grid-filter-head{
  background:var(--sd-table-head)!important;
  color:var(--sd-table-muted)!important;
  font-weight:700;
  letter-spacing:.025em;
}
html[data-theme="dark"] .acts-header-table th,
html[data-theme="dark"] .ex-act-register .ex-act-head,
html[data-theme="dark"] .project-materials-grid-head>div,
html[data-theme="dark"] .material-library-page .material-grid-filter-head{
  background:var(--sd-table-head)!important;
  color:#c5d8dc!important;
}
.selectable-acts-table tbody tr:not(.act-row-inline-edit):hover td,
.ex-act-register .ex-act-row:hover,
.project-materials-grid .project-material-row:hover{background-color:var(--sd-table-hover)}
.selectable-acts-table td,.ex-act-register .ex-act-row,.project-materials-grid .project-material-row{
  border-color:var(--sd-table-divider)!important;
}
.selectable-acts-table .work-cell{text-align:left!important}
/* Keyboard navigation with a consistent, visible focus ring. */
.selectable-acts-table [tabindex]:focus-visible,
.ex-act-register button:focus-visible,.ex-act-register input:focus-visible,
.project-materials-grid a:focus-visible,.project-materials-grid button:focus-visible{
 outline:2px solid var(--sd-focus);outline-offset:-2px;
}
@media (prefers-reduced-motion:reduce){
 .selectable-acts-table *, .ex-act-register *, .project-materials-grid *{transition:none!important}
}
/* Object material register and certificate register were previously styled inline. */

/* v0.3.133 — unified data grid system (acts are the reference). */
:root{--sd-grid-surface:#f1f5f3;--sd-grid-active:rgba(20,143,129,.13)}
html[data-theme="dark"]{--sd-grid-surface:#112b35;--sd-grid-active:rgba(58,174,156,.15)}
/* Acts: primary text stays aligned with the same inset as all other tables. */
.selectable-acts-table .work-cell,.selectable-acts-table td.work-cell,
.selectable-acts-table td.work-cell *{text-align:left!important}
.selectable-acts-table td:first-child,.selectable-acts-table th:first-child{padding-left:12px!important}
/* Execution register: uniform row density, typography, grid, volume with unit at end. */
.ex-act-register{background:var(--sd-grid-surface)!important;border-color:var(--sd-table-divider)!important}
.ex-act-register .ex-act-head,.ex-act-register .ex-act-row{
 grid-template-columns:46px 54px minmax(170px,1.4fr) minmax(170px,1.35fr) minmax(215px,.8fr) minmax(150px,.8fr)!important;
 gap:0!important;padding:0!important;align-items:stretch!important;font-size:.84rem!important;
}
.ex-act-register .ex-act-head>span,.ex-act-register .ex-act-row>span{
 padding:9px 12px!important;min-width:0;display:flex;align-items:center;text-align:left!important;
 border-right:1px solid var(--sd-table-divider)!important;
}
.ex-act-register .ex-act-head>span:last-child,.ex-act-register .ex-act-row>span:last-child{border-right:0!important}
.ex-act-register .ex-act-head>span:first-child,.ex-act-register .ex-act-row>span:first-child{justify-content:center!important;padding:9px 5px!important}
.ex-act-register .ex-act-head>span:nth-child(2),.ex-act-register .ex-act-row>span:nth-child(2){justify-content:flex-start!important}
.ex-act-register .ex-act-row .ex-act-number{text-align:left!important;font-weight:500!important;font-variant-numeric:tabular-nums}
.ex-act-register .ex-act-row .ex-act-work-name{font-weight:400!important;text-align:left!important}
.ex-act-register .ex-act-row{background:var(--sd-grid-surface)!important;border-top:1px solid var(--sd-table-divider)!important}
.ex-act-register .ex-act-row:nth-child(odd){background:var(--sd-grid-surface)!important}
.ex-act-register .ex-act-row:hover{background:var(--sd-table-hover)!important}
.ex-act-register .ex-quantity-form{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;width:100%;gap:8px!important}
.ex-act-register .ex-quantity-form input[name="quantity"]{
 background:transparent!important;color:inherit!important;border:0!important;border-radius:0!important;
 outline:0!important;box-shadow:none!important;width:100%!important;min-width:35px!important;flex:1 1 50px!important;
 padding:5px 0!important;font:inherit!important;appearance:textfield;-moz-appearance:textfield
}
.ex-act-register .ex-quantity-form input[name="quantity"]:focus{box-shadow:inset 0 -1px var(--sd-focus)!important}
.ex-act-register .ex-quantity-form input[name="quantity"]::-webkit-inner-spin-button,
.ex-act-register .ex-quantity-form input[name="quantity"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.ex-act-register .ex-quantity-form select[name="unit"]{width:46px!important;flex:0 0 46px;border:0!important;background:transparent!important;box-shadow:none!important;padding:4px 0!important;color:inherit!important}
.ex-act-register .ex-quantity-form input.ex-act-color{flex:0 0 31px!important;width:31px!important;height:28px!important;padding:2px!important}
/* Material catalog: same grid surface, dividers and hierarchy. Actions belong to a selection toolbar. */
.material-library-page .material-selection-toolbar{
 display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 12px;
 background:var(--sd-table-head);border:1px solid var(--sd-table-divider);border-radius:10px 10px 0 0;
}
.material-selection-toolbar>span{min-width:170px;margin-right:10px;font-size:.86rem;font-weight:600;flex:1}
.material-selection-toolbar button{border:1px solid var(--sd-table-divider);border-radius:7px;padding:7px 11px;color:inherit;background:transparent;cursor:pointer;font-size:.85rem}
.material-selection-toolbar button:disabled{opacity:.38;cursor:default}
.material-selection-toolbar .material-toolbar-danger:not(:disabled){color:#d76565}
.material-library-page .material-grid-filter-head,.material-library-page .material-table-row{
 grid-template-columns:minmax(260px,1.22fr) minmax(150px,.55fr) minmax(130px,.48fr) minmax(300px,1fr)!important;
}
.material-library-page .material-filter-actions-head,.material-library-page .material-table-row .material-row-actions{display:none!important}
.material-library-page .material-table-row{background:var(--sd-grid-surface)!important;color:inherit!important;font-size:.84rem!important;cursor:pointer}
.material-library-page .material-table-row>div{border-left-color:var(--sd-table-divider)!important;text-align:left!important;justify-content:flex-start!important}
.material-library-page .material-table-row:hover{background:var(--sd-table-hover)!important}
.material-library-page .material-table-row.material-is-selected{background:var(--sd-grid-active)!important;box-shadow:inset 0 0 0 1px var(--sd-focus)!important}
.material-library-page .material-table-row:focus-visible{outline:2px solid var(--sd-focus);outline-offset:-2px}
.material-library-page .material-card-name{font-weight:500!important;text-align:left!important}
.material-library-page .material-cert-title{font-weight:400!important;font-size:.79rem!important}
.material-library-page .material-filter-input-wrap input{border:1px solid var(--sd-table-divider)!important;box-shadow:none!important;outline:0!important}
.material-library-page .material-filter-input-wrap input:focus{border-color:var(--sd-focus)!important;box-shadow:inset 0 0 0 1px var(--sd-focus)!important}
.material-library-page .materials-sticky-grid{position:sticky;top:var(--materials-sticky-top,0px);z-index:24;margin-top:0!important}
.material-library-page .material-grid-filter-head{border-top:0!important;border-radius:0!important;box-shadow:none!important}
@media(max-width:760px){
 .material-library-page .material-grid-filter-head{display:grid!important;grid-template-columns:1fr 1fr!important}
 .material-library-page .material-filter-cell:first-child{grid-column:1/-1}
 .material-library-page .material-table-row{grid-template-columns:minmax(0,1fr)!important}
 .material-library-page .material-table-row .material-compact-main,.material-library-page .material-table-row .material-cert-cell{grid-column:1/-1!important}
 .material-library-page .material-selection-toolbar{position:relative;z-index:26}
 .ex-act-register .ex-act-row{display:grid!important;grid-template-columns:1fr!important}
 .ex-act-register .ex-act-row>span{border-right:0!important;border-bottom:1px solid var(--sd-table-divider)!important}
 .ex-act-register .ex-act-row>span:first-child{justify-content:flex-start!important}
 .ex-act-register .ex-act-row>span:nth-child(2){font-weight:600}
 .ex-act-register .ex-act-head{display:none!important}
}


/* v0.3.133 — selected material actions stay accessible when scrolling.
   Sticky table filters follow the action bar, including when it wraps on mobile. */
.material-library-page .material-selection-toolbar{
  position:sticky!important;
  top:var(--materials-sticky-top,0px)!important;
  z-index:30!important;
  border-radius:10px 10px 0 0;
  margin:0!important;
  box-shadow:0 3px 9px rgba(0,0,0,.09);
}
.material-library-page .materials-sticky-grid{
  top:calc(var(--materials-sticky-top,0px) + var(--materials-actions-height,0px))!important;
  z-index:29!important;
}
html[data-theme="dark"] .material-library-page .material-selection-toolbar{
  background:var(--sd-table-head)!important;
}
html[data-theme="light"] .material-library-page .material-selection-toolbar{
  background:var(--sd-table-head)!important;
}
@media(max-width:760px){
  .material-library-page .material-selection-toolbar{
    position:sticky!important;
    top:var(--materials-sticky-top,0px)!important;
    z-index:30!important;
  }
}

/* v0.3.133: explicit material-save feedback after returning to catalog. */
.material-save-toast {position:fixed;right:20px;bottom:24px;z-index:9999;max-width:min(420px,calc(100vw - 36px));padding:13px 18px;border:1px solid #459b86;border-radius:10px;background:#153e38;color:#e8fff8;box-shadow:0 10px 28px rgba(0,0,0,.25);font-weight:600;font-size:14px;}
@media(max-width:600px){.material-save-toast{left:12px;right:12px;bottom:18px;text-align:center;}}

/* v0.3.133 — material card: restrained shared typography and consistent metadata */
.material-detail-v328 .material-detail-hero{
  padding:18px 20px!important; border:1px solid var(--line);
  border-radius:14px; background:var(--panel); align-items:center;
}
.material-detail-v328 .material-detail-title-row h1{font-size:clamp(23px,2.3vw,32px)!important;line-height:1.18!important}
.material-detail-v328 .material-detail-ua{font-size:13px!important;color:var(--muted);margin-top:8px}
.material-detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px;max-width:620px}
.material-detail-fact{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:rgba(119,148,154,.045)}
.material-detail-fact span{font-size:11px;color:var(--muted)}
.material-detail-fact strong{font-size:13px;color:var(--text);font-weight:550;overflow-wrap:anywhere}
.material-detail-v328 .material-detail-section{background:var(--panel)!important}
.material-detail-v328 .material-detail-section-head h2{font-size:15px;font-weight:650}
.material-detail-v328 .material-certificate-title{font-size:12px;line-height:1.4}
.material-detail-v328 .material-act-main strong,.material-detail-v328 .material-usage-row-link strong{font-size:12px!important;font-weight:550}
.material-detail-notice{margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);font-size:13px}
.material-detail-notice-error{border-color:rgba(210,90,90,.4)}
.material-detail-notice-warning{border-color:rgba(220,160,65,.4)}
@media(max-width:760px){
  .material-detail-v328 .material-detail-hero{padding:14px!important}
  .material-detail-facts{grid-template-columns:1fr;gap:8px;margin-top:12px}
  .material-detail-v328 .material-detail-action-row{display:flex;flex-wrap:wrap}
}

/* StroiDoc 0.3.133 — contractor workspace shell. Existing page CSS stays intact. */
.sd-app-shell{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:calc(100vh - 68px);--sd-side-bg:#f0f5f2;--sd-side-line:#d6e2dc;--sd-side-ink:#243d35}
.sd-app-shell .sd-workarea{min-width:0}
.sd-app-shell .sd-workarea>main{max-width:none;width:100%;padding:26px 22px 75px}
.sd-sidebar{background:var(--sd-side-bg);border-right:1px solid var(--sd-side-line);padding:14px 11px 30px;position:sticky;top:68px;height:calc(100vh - 68px);overflow-y:auto;align-self:start;color:var(--sd-side-ink);z-index:12}
.sd-sidebar-top,.sd-side-section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.sd-sidebar-eyebrow,.sd-side-section-heading,.sd-side-caption{font-size:10px;letter-spacing:.10em;font-weight:800;color:#708780}
.sd-sidebar-collapse{border:1px solid var(--sd-side-line);background:transparent;border-radius:8px;min-width:32px;min-height:30px;cursor:pointer;color:inherit}
.sd-contractor-selector{border:1px solid var(--sd-side-line);border-radius:11px;padding:10px;margin:14px 0}
.sd-current-contractor{display:flex;align-items:center;gap:8px;font-size:13px;text-decoration:none;color:inherit;font-weight:750;margin-top:5px;overflow-wrap:anywhere}
.sd-contractor-choices{display:grid;gap:2px;max-height:130px;overflow:auto;margin-top:10px;border-top:1px solid var(--sd-side-line);padding-top:6px}
.sd-contractor-choice{display:block;border-radius:6px;padding:6px 8px;color:inherit;font-size:12px;text-decoration:none;overflow-wrap:anywhere}
.sd-contractor-choice:hover,.sd-contractor-choice.is-active{background:rgba(30,145,117,.13)}
.sd-side-nav,.sd-project-nav{display:grid;gap:3px}
.sd-side-link,.sd-side-project{color:inherit;text-decoration:none;display:flex;align-items:center;gap:9px;border-radius:8px;padding:9px 10px;font-size:13px;line-height:1.3}
.sd-side-link:hover,.sd-side-project:hover,.sd-side-project.is-active{background:rgba(30,145,117,.13);color:inherit}
.sd-side-project span{min-width:0;overflow-wrap:anywhere}.sd-side-project.is-active{font-weight:750;color:#137c65}
.sd-side-section-heading{margin:20px 5px 8px}.sd-side-section-heading a{font-size:18px;text-decoration:none}
.sd-side-section-object{letter-spacing:0;font-size:11px;overflow-wrap:anywhere;margin-top:22px}
.sd-object-nav{padding-bottom:18px}.sd-sidebar-empty{font-size:12px;color:#708780;padding:10px}
.sd-mobile-toolbar,.sd-sidebar-backdrop{display:none}
.sd-sidebar-collapsed{grid-template-columns:58px minmax(0,1fr)}
.sd-sidebar-collapsed .sd-sidebar{padding:14px 7px}
.sd-sidebar-collapsed .sd-sidebar-eyebrow,.sd-sidebar-collapsed .sd-contractor-selector,.sd-sidebar-collapsed .sd-side-section-heading,.sd-sidebar-collapsed .sd-project-nav,.sd-sidebar-collapsed .sd-object-nav,.sd-sidebar-collapsed .sd-side-link span{display:none}
.sd-sidebar-collapsed .sd-sidebar-top{justify-content:center}.sd-sidebar-collapsed .sd-side-link{justify-content:center;font-size:18px;padding:11px 0}
.sd-app-shell~*{}body:has(.sd-app-shell) .topbar-inner{max-width:none}body:has(.sd-app-shell) .topbar .main-nav{display:none!important}
body:has(.sd-app-shell) .contractor-context-bar{display:none}
.sd-workspace-heading{margin:-8px 0 18px;font-size:14px;color:var(--muted)}
.sd-welcome-title h1{font-size:30px;margin:4px 0 5px}.sd-welcome-title p{margin:0 0 24px;color:var(--muted)}
html[data-theme="dark"] .sd-app-shell{--sd-side-bg:#0c252e;--sd-side-line:#25424b;--sd-side-ink:#d9e7e8}
html[data-theme="dark"] .sd-sidebar-eyebrow,html[data-theme="dark"] .sd-side-section-heading,html[data-theme="dark"] .sd-side-caption{color:#8da6ad}
html[data-theme="dark"] .sd-side-project.is-active{color:#77d0b9}
@media(max-width:820px){
 .sd-app-shell,.sd-sidebar-collapsed{display:block}
 .sd-sidebar{position:fixed;top:0;bottom:0;left:0;width:min(86vw,310px);height:100dvh;z-index:110;transform:translateX(-105%);transition:transform .2s ease;box-shadow:14px 0 40px #0003;overflow:auto}
 .sd-sidebar-open .sd-sidebar{transform:translateX(0)}
 .sd-sidebar-collapsed .sd-sidebar{padding:14px 11px}
 .sd-sidebar-collapsed .sd-sidebar-eyebrow,.sd-sidebar-collapsed .sd-contractor-selector,.sd-sidebar-collapsed .sd-side-section-heading,.sd-sidebar-collapsed .sd-project-nav,.sd-sidebar-collapsed .sd-object-nav,.sd-sidebar-collapsed .sd-side-link span{display:initial}
 .sd-sidebar-collapsed .sd-side-nav,.sd-sidebar-collapsed .sd-project-nav{display:grid}
 .sd-sidebar-collapsed .sd-side-link{justify-content:flex-start;font-size:13px;padding:9px 10px}
 .sd-sidebar-open .sd-sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:109}
 .sd-mobile-toolbar{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid var(--sd-side-line);font-size:12px;background:var(--sd-side-bg);color:var(--sd-side-ink)}
 .sd-mobile-toolbar button{border:1px solid var(--sd-side-line);background:transparent;color:inherit;border-radius:8px;padding:9px 12px;font-weight:700}
 .sd-mobile-toolbar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .sd-app-shell .sd-workarea>main{padding:16px 12px 60px}
}

/* Workspace overview cards (navigation only) */
.sd-workspace-overview{max-width:1120px;margin:0 auto}.sd-workspace-title{margin:24px 0 24px}.sd-workspace-title h1{font-size:clamp(25px,3vw,36px);letter-spacing:-.025em;margin:6px 0}.sd-workspace-title p{color:var(--muted);margin:6px 0}.sd-workspace-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.sd-workspace-tile{border:1px solid var(--line);border-radius:15px;padding:22px;background:var(--sd-tile-bg,#fff);color:inherit;text-decoration:none;display:flex;flex-direction:column;gap:10px;min-height:165px;transition:border-color .15s,transform .15s}.sd-workspace-tile:hover{border-color:#3fae98;transform:translateY(-1px)}.sd-workspace-tile-icon{font-size:24px;color:#279c85}.sd-workspace-tile strong{font-size:18px}.sd-workspace-tile>span:not(.sd-workspace-tile-icon){font-size:13px;color:var(--muted)}.sd-workspace-tile>b{font-size:13px;color:#279c85;margin-top:auto}html[data-theme="dark"] .sd-workspace-tile{--sd-tile-bg:#132b35;--line:#29434b}@media(max-width:680px){.sd-workspace-tiles{grid-template-columns:1fr}.sd-workspace-tile{min-height:140px;padding:17px}}


/* v0.3.133 — focused contractor workspace navigation */
html,body{max-width:100%;overflow-x:clip}
.sd-app-shell{min-width:0;max-width:100%;grid-template-columns:228px minmax(0,1fr);--sd-nav-top:72px}
.sd-app-shell .sd-workarea{min-width:0;max-width:100%;overflow:clip}
.sd-app-shell .sd-workarea>main{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:16px 18px 65px;overflow:visible}
.sd-app-shell .sd-workarea>main > *{max-width:100%;min-width:0}
.sd-sidebar{top:var(--sd-nav-top);height:calc(100dvh - var(--sd-nav-top));padding:14px 10px 24px;scrollbar-width:none;overscroll-behavior:contain}
.sd-sidebar::-webkit-scrollbar{display:none}
.sd-sidebar .sd-contractor-selector{display:none!important}
.sd-sidebar .sd-project-nav{max-height:none;overflow:visible}
.sd-sidebar .sd-side-section-heading{margin-top:16px}
.sd-sidebar .sd-side-link,.sd-sidebar .sd-side-project{padding:9px 8px}
.sd-workspace-context{position:sticky;top:72px;z-index:18;display:flex;align-items:center;gap:14px;min-width:0;max-width:100%;min-height:54px;padding:9px 18px;border-bottom:1px solid var(--sd-side-line,#d6e2dc);background:var(--sd-side-bg,#f0f5f2);color:var(--sd-side-ink,#243d35)}
.sd-context-part{display:flex;align-items:center;gap:9px;min-width:0;color:inherit;text-decoration:none;white-space:nowrap}
.sd-context-part span{font-size:10px;font-weight:750;letter-spacing:.08em;color:#708780}
.sd-context-part strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;max-width:35vw}
.sd-context-divider{color:#849b9d}
.sd-context-switch{margin-left:auto;white-space:nowrap;text-decoration:none;font-size:12px;font-weight:700;color:#2b9985}
.sd-workarea .table-wrap,.sd-workarea .table-scroll,.sd-workarea .table-responsive{max-width:100%;overflow-x:auto}
.sd-app-shell .home-flow-grid{max-width:100%;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.sd-app-shell .home-flow-arrow{display:none}
.sd-app-shell .sd-home-material-card{min-width:0}
.sd-app-shell .home-card{min-width:0}
body:has(.sd-app-shell) .topbar{z-index:50}
@media(min-width:821px){.sd-app-shell .sd-workarea>main .data-table,.sd-app-shell .sd-workarea>main table{max-width:100%}}
@media(max-width:1100px){.sd-context-part span{display:none}.sd-app-shell .home-flow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){
 .sd-app-shell,.sd-sidebar-collapsed{display:block}
 .sd-sidebar{top:0;height:100dvh;scrollbar-width:none}
 .sd-app-shell .sd-workarea>main{padding:14px 12px 65px}
 .sd-workspace-context{top:72px;padding:9px 12px;min-height:47px;gap:7px}
 .sd-context-part strong{font-size:12px;max-width:37vw}
 .sd-context-switch{font-size:11px}
 .sd-app-shell .home-flow-grid{grid-template-columns:1fr}
}


/* v0.3.133 — constrain workspace after legacy viewport-width declarations. */
html,body{width:100%;max-width:100%;overflow-x:clip}
.sd-app-shell{width:100%;max-width:100%;min-width:0;grid-template-columns:228px minmax(0,1fr)}
.sd-app-shell .sd-workarea{width:100%;min-width:0;max-width:100%;overflow:visible}
.sd-app-shell .sd-workarea>main{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  min-width:0!important;padding:22px 22px 72px!important;margin:0!important;
}
.sd-app-shell .sd-workarea>main .compact-index-page,
.sd-app-shell .sd-workarea>main .contractors-index,
.sd-app-shell .sd-workarea>main .sd-workspace-overview{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
.sd-app-shell .sd-workarea>main .page-head{margin-top:0;max-width:100%;flex-wrap:wrap}
.sd-app-shell .sd-workarea>main .filterbar{min-width:0;max-width:100%}
.sd-app-shell .sd-workarea>main .filterbar input{min-width:0}
.sd-app-shell .contractor-entity-list{width:100%;max-width:100%}
.sd-app-shell .contractor-row{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.sd-app-shell .contractor-row .entity-row-main{min-width:0;overflow:hidden}
.sd-app-shell .contractor-row .entity-row-main .grow{min-width:0;overflow-wrap:anywhere}
.sd-app-shell .contractor-row .entity-manage-actions{flex:none;gap:7px;white-space:nowrap;padding:6px 12px}
.sd-app-shell .contractor-row .row-meta{flex:none}
.sd-app-shell .sd-workspace-tiles{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;max-width:100%}
.sd-app-shell .sd-workspace-tile{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.sd-app-shell .sd-workspace-tile>b{display:none!important}
@media(min-width:821px){.sd-app-shell.sd-sidebar-collapsed{grid-template-columns:58px minmax(0,1fr)}}
@media(max-width:820px){
 .sd-app-shell{display:block}
 .sd-app-shell .sd-workarea>main{padding:16px 14px 55px!important}
 .sd-app-shell .sd-workspace-tiles{grid-template-columns:1fr}
 .sd-app-shell .contractor-row .entity-manage-actions{padding:5px 7px;gap:4px}
 .sd-app-shell .contractor-row .row-meta{display:none}
}

/* v0.3.133 — contractor > objects > sections accordion sidebar */
.sd-sidebar .sd-side-main{display:flex;flex-direction:column;gap:3px}
.sd-sidebar .sd-accordion{min-width:0;border:1px solid var(--sd-side-line);border-radius:10px;overflow:hidden;margin:3px 0;background:rgba(117,157,160,.045)}
.sd-sidebar .sd-accordion-heading{display:flex;align-items:center;gap:9px;padding:11px 10px;cursor:pointer;list-style:none;user-select:none;font-size:13px;font-weight:650;line-height:1.3;color:var(--sd-side-ink)}
.sd-sidebar .sd-accordion-heading::-webkit-details-marker{display:none}
.sd-sidebar .sd-accordion-heading::marker{content:''}
.sd-sidebar .sd-accordion-heading:hover{background:rgba(40,154,130,.10)}
.sd-sidebar .sd-accordion-title{flex:1;min-width:0}
.sd-sidebar .sd-accordion-arrow{font-size:17px;transition:transform .17s ease;color:var(--sd-side-ink)}
.sd-sidebar .sd-accordion[open]>.sd-accordion-heading .sd-accordion-arrow{transform:rotate(180deg)}
.sd-sidebar .sd-accordion-content{border-top:1px solid var(--sd-side-line);padding:3px 8px 8px}
.sd-sidebar .sd-accordion-item{display:flex;align-items:center;gap:8px;padding:9px 5px;text-decoration:none;color:var(--sd-side-ink);font-size:12px;line-height:1.35;border-bottom:1px solid var(--sd-side-line);min-height:36px;overflow-wrap:anywhere}
.sd-sidebar .sd-accordion-item:last-of-type{border-bottom:0}
.sd-sidebar .sd-accordion-item:hover{color:var(--sd-side-ink);background:rgba(40,154,130,.08)}
.sd-sidebar .sd-accordion-item.is-active{color:#177f70;background:rgba(40,154,130,.12);font-weight:750;border-radius:6px}
html[data-theme="dark"] .sd-sidebar .sd-accordion-item.is-active{color:#75d3bc}
.sd-sidebar .sd-item-indicator{width:5px;height:5px;border-radius:50%;border:1px solid currentColor;flex:none;opacity:.4}
.sd-sidebar .sd-accordion-item.is-active .sd-item-indicator{background:currentColor;opacity:1}
.sd-sidebar .sd-accordion-item span:last-child{min-width:0}
.sd-sidebar .sd-accordion-subaction{display:flex;justify-content:space-between;gap:8px;padding:9px 5px;text-decoration:none;font-size:11px;color:var(--sd-side-ink);opacity:.78}
.sd-sidebar .sd-accordion-subaction:hover{opacity:1;text-decoration:underline}
.sd-sidebar .sd-catalog-link{margin-top:5px}
.sd-sidebar .sd-active-object-label{display:grid;gap:5px;margin:16px 5px 7px;min-width:0}
.sd-sidebar .sd-active-object-label span{font-size:10px;letter-spacing:.09em;font-weight:800;color:#708780}
.sd-sidebar .sd-active-object-label strong{font-size:12px;font-weight:650;overflow-wrap:anywhere}
.sd-sidebar .sd-object-nav{padding-bottom:18px;margin-left:5px;padding-left:8px;border-left:2px solid var(--sd-side-line)}
.sd-sidebar-collapsed .sd-sidebar .sd-accordion-content,.sd-sidebar-collapsed .sd-sidebar .sd-accordion-arrow,.sd-sidebar-collapsed .sd-sidebar .sd-accordion-title,.sd-sidebar-collapsed .sd-sidebar .sd-active-object-label{display:none}
.sd-sidebar-collapsed .sd-sidebar .sd-accordion-heading{justify-content:center;padding:11px 0}
.sd-sidebar-collapsed .sd-sidebar .sd-accordion{border-color:transparent;background:transparent}
@media(max-width:820px){
 .sd-sidebar-collapsed .sd-sidebar .sd-accordion-content{display:block}
 .sd-sidebar-collapsed .sd-sidebar .sd-accordion-arrow,.sd-sidebar-collapsed .sd-sidebar .sd-accordion-title{display:initial}
 .sd-sidebar-collapsed .sd-sidebar .sd-active-object-label{display:grid}
 .sd-sidebar-collapsed .sd-sidebar .sd-accordion-heading{justify-content:flex-start;padding:11px 10px}
}

/* v0.3.133 — distinct global library and contextual navigation hierarchy */
.sd-sidebar .sd-global-library{margin:15px 0 7px;padding:11px 9px 12px;border:1px solid var(--sd-side-line);border-radius:11px;background:rgba(31,157,135,.07);display:grid;gap:7px;min-width:0}
.sd-sidebar .sd-global-library-label{font-size:9px;letter-spacing:.12em;font-weight:800;color:var(--sd-side-ink);opacity:.75}
.sd-sidebar .sd-global-library .sd-catalog-link{margin:0;padding:10px 9px;display:flex;align-items:center;gap:9px;border:1px solid rgba(26,153,134,.3);border-radius:8px;background:rgba(26,153,134,.12);font-weight:700;line-height:1.35}
.sd-sidebar .sd-global-library .sd-catalog-link:hover,.sd-sidebar .sd-global-library .sd-catalog-link.is-current{background:rgba(26,153,134,.22);border-color:rgba(26,153,134,.55)}
.sd-sidebar .sd-global-library .sd-catalog-icon{font-size:17px;color:#46baa6}
.sd-sidebar .sd-global-library .sd-catalog-chevron{margin-left:auto;font-size:14px;opacity:.7}
.sd-sidebar .sd-global-library small{font-size:10px;line-height:1.35;color:var(--sd-side-ink);opacity:.72}
.sd-sidebar .sd-active-object-label{margin-top:19px;padding-top:14px;border-top:1px solid var(--sd-side-line)}
.sd-sidebar .sd-object-nav .sd-side-link[aria-current=page]{color:#178e7b;background:rgba(31,157,135,.16);font-weight:700;border-radius:8px}
html[data-theme=dark] .sd-sidebar .sd-object-nav .sd-side-link[aria-current=page]{color:#76dbca}
.sd-workspace-context .sd-context-current{cursor:default;color:var(--sd-side-ink)}
.sd-workspace-context .sd-context-current strong{color:#178e7b}
html[data-theme=dark] .sd-workspace-context .sd-context-current strong{color:#80dfcc}
@media(min-width:821px){.sd-sidebar-collapsed .sd-sidebar .sd-global-library{padding:7px 0;margin:9px 0;border:0;background:transparent}.sd-sidebar-collapsed .sd-sidebar .sd-global-library-label,.sd-sidebar-collapsed .sd-sidebar .sd-global-library small,.sd-sidebar-collapsed .sd-sidebar .sd-catalog-chevron{display:none}.sd-sidebar-collapsed .sd-sidebar .sd-global-library .sd-catalog-link{justify-content:center;padding:10px 0}.sd-sidebar-collapsed .sd-sidebar .sd-global-library .sd-catalog-icon{font-size:19px}}
@media(max-width:820px){.sd-sidebar .sd-global-library{margin-top:14px}}

/* v0.3.133 — simplified navigation hierarchy and consistent outline icons */
.sd-sidebar .sd-side-main{gap:5px}
.sd-sidebar .sd-nav-icon{display:inline-block;width:17px;height:17px;min-width:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.sd-sidebar .sd-accordion-heading>.sd-nav-icon{color:var(--sd-side-ink);opacity:.8}
.sd-sidebar .sd-global-library{display:block;margin:10px 0 12px;padding:9px 0;border:0;border-top:1px solid var(--sd-side-line);border-bottom:1px solid var(--sd-side-line);border-radius:0;background:none}
.sd-sidebar .sd-global-library .sd-catalog-link{display:flex;gap:9px;align-items:center;margin:0;padding:10px 9px;border:0;border-radius:8px;background:transparent;color:#178e7b;font-size:13px;font-weight:650}
.sd-sidebar .sd-global-library .sd-catalog-link .sd-nav-icon{color:inherit}
.sd-sidebar .sd-global-library .sd-catalog-link:hover,.sd-sidebar .sd-global-library .sd-catalog-link.is-current{background:rgba(26,153,134,.13);border-color:transparent}
html[data-theme="dark"] .sd-sidebar .sd-global-library .sd-catalog-link{color:#70cbb9}
.sd-sidebar .sd-object-nav-simple{margin-top:12px;padding-top:12px;border-top:1px solid var(--sd-side-line);gap:3px}
.sd-sidebar .sd-object-nav-simple .sd-side-link{min-height:37px;gap:10px}
.sd-sidebar-collapsed .sd-sidebar .sd-global-library{margin:10px 0;padding:9px 0;border-top:1px solid var(--sd-side-line);border-bottom:1px solid var(--sd-side-line)}
.sd-sidebar-collapsed .sd-sidebar .sd-global-library .sd-catalog-link{border:0;background:transparent;padding:10px 0}
.sd-sidebar-collapsed .sd-sidebar .sd-object-nav-simple{display:none}
@media(max-width:820px){.sd-sidebar-collapsed .sd-sidebar .sd-object-nav-simple{display:grid}.sd-sidebar .sd-global-library{margin:10px 0;padding:9px 0}}


/* v0.3.141 — compact accordion selection and unified sticky header offsets. */
.sd-sidebar .sd-object-nav-simple{
  border-left:0!important;
  margin-left:0!important;
  padding-left:0!important;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--sd-side-line);
}
.sd-sidebar .sd-accordion-selection{
  display:flex;align-items:center;gap:9px;margin:2px 5px 9px;
  padding:9px 11px;border:1px solid rgba(36,158,134,.22);
  border-radius:8px;background:rgba(40,154,130,.12);
  color:var(--sd-side-ink);text-decoration:none;font-size:12px;
  line-height:1.38;font-weight:700;overflow-wrap:anywhere;
}
.sd-sidebar .sd-accordion-selection span:last-child{min-width:0}
.sd-sidebar .sd-selection-dot{width:7px;height:7px;flex:none;border-radius:50%;background:#38bca4}
html[data-theme="dark"] .sd-sidebar .sd-accordion-selection{color:#80dfcc}
.sd-sidebar-collapsed .sd-sidebar .sd-accordion-selection{display:none}
.sd-app-shell .sd-workspace-context{
  top:var(--sd-topbar-height,72px)!important;
  z-index:43!important;
  background:var(--sd-side-bg)!important;
  isolation:isolate;
}
body:has(.sd-app-shell) .topbar{z-index:60!important;background:#061a22}
html[data-theme="light"] body:has(.sd-app-shell) .topbar{background:#fff}
.sd-app-shell .acts-table-sticky-stack{top:var(--sd-sticky-stack-height,126px)!important;z-index:30}
.sd-app-shell .ex-editor-toolbar{top:var(--sd-sticky-stack-height,126px)!important}
@media(max-width:820px){
  .sd-sidebar-collapsed .sd-sidebar .sd-accordion-selection{display:flex}
  .sd-app-shell .sd-workspace-context{top:var(--sd-topbar-height,64px)!important}
}

/* v0.3.141 — compact working-acts switch in the register toolbar */
.acts-work-filter{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;cursor:pointer;font-size:13px;font-weight:600;color:var(--text,#dae7e8);padding:7px 11px;border:1px solid var(--border,rgba(145,185,193,.2));border-radius:10px;background:rgba(115,162,173,.06);transition:background .15s,border-color .15s}
.acts-work-filter:hover{border-color:rgba(91,197,177,.55);background:rgba(91,197,177,.10)}
.acts-work-filter input{appearance:none;-webkit-appearance:none;width:30px;height:18px;flex:0 0 30px;border-radius:100px;border:1px solid rgba(157,190,196,.42);background:rgba(119,153,163,.30);margin:0;position:relative;cursor:pointer;outline-offset:3px;transition:background .15s}
.acts-work-filter input::before{content:'';position:absolute;top:2px;left:2px;width:12px;height:12px;background:#dbe8ea;border-radius:50%;transition:transform .15s}
.acts-work-filter input:checked{background:#168e7e;border-color:#24a999}
.acts-work-filter input:checked::before{transform:translateX(12px);background:#fff}
.acts-work-filter input:focus-visible{outline:2px solid #69cdbf}
html[data-theme="light"] .acts-work-filter{background:#f3f7f8;color:#294047;border-color:#cbdce0}
html[data-theme="light"] .acts-work-filter:hover{background:#e7f5f2;border-color:#57ae9e}
@media(max-width:760px){.acts-work-filter{padding:6px 8px;font-size:12px}}

/* v0.3.141 — compact single-row actions for the acts register. */
.acts-selection-toolbar{min-width:0;gap:8px}
.acts-selection-label{min-width:86px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acts-selection-actions{flex:1 1 auto;min-width:0;justify-content:flex-end;gap:5px;overflow-x:auto}
.acts-selection-actions .table-action-btn{flex:0 0 auto;min-width:34px;height:34px;padding:0 8px}
.acts-selection-actions .table-action-btn:not(.report-action-btn){width:34px;padding:0}
.acts-selection-actions .table-action-btn:not(.report-action-btn) .action-svg{width:18px;height:18px}
.acts-selection-actions .report-action-btn{padding:0 8px;gap:5px}
.acts-selection-actions .report-action-btn .action-svg{width:16px;height:16px}
@media(max-width:1190px){
  .acts-selection-actions .report-action-btn{width:34px;min-width:34px;padding:0}
  .acts-selection-actions .report-action-btn span{display:none}
}
@media(max-width:760px){
  .acts-selection-label{min-width:66px;max-width:100px}
  .acts-selection-actions{justify-content:flex-start}
}


/* v0.3.141 — compact, legible action toolbar: recognizable icons, named complex actions. */
.sd-app-shell .acts-selection-toolbar{box-sizing:border-box;width:100%;max-width:100%;min-width:0;gap:9px;padding:6px 10px}
.sd-app-shell .acts-selection-label{flex:0 1 112px;min-width:72px;max-width:112px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sd-app-shell .acts-selection-actions{display:flex;flex:1 1 auto;min-width:0;max-width:100%;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:5px;padding:0;overflow:visible}
.sd-app-shell .acts-selection-actions .table-action-btn{box-sizing:border-box;display:inline-flex;flex:0 0 36px;width:36px;min-width:36px;max-width:none;height:36px;padding:0;align-items:center;justify-content:center;gap:6px;border-radius:8px}
.sd-app-shell .acts-selection-actions .table-action-btn .action-svg{width:19px;height:19px;flex:none}
.sd-app-shell .acts-selection-actions .report-action-btn{flex:0 0 auto;width:auto;min-width:auto;padding:0 10px;font-size:12px;white-space:nowrap}
.sd-app-shell .acts-selection-actions .report-action-btn .action-svg{width:17px;height:17px}
.sd-app-shell .acts-selection-actions .report-action-btn span{display:inline!important}
/* Inactive actions remain clearly visible but cannot be clicked. */
.sd-app-shell .acts-selection-actions .table-action-btn:disabled{opacity:.57;cursor:not-allowed}
.sd-app-shell .acts-selection-actions .table-action-btn:focus-visible{outline:2px solid #46bba8;outline-offset:2px}
/* Distinct export colors, including inactive state (same semantics as act viewer). */
.sd-app-shell .acts-selection-actions .export-pdf{color:#bd3c42!important;border-color:rgba(189,60,66,.46)!important;background:rgba(189,60,66,.10)!important}
.sd-app-shell .acts-selection-actions .export-xlsx{color:#197e4f!important;border-color:rgba(25,126,79,.45)!important;background:rgba(25,126,79,.10)!important}
.sd-app-shell .acts-selection-actions .export-pdf:hover:not(:disabled){background:rgba(189,60,66,.19)!important}
.sd-app-shell .acts-selection-actions .export-xlsx:hover:not(:disabled){background:rgba(25,126,79,.19)!important}
html[data-theme="dark"] .sd-app-shell .acts-selection-actions .export-pdf{color:#ff9699!important;border-color:rgba(255,150,153,.48)!important;background:rgba(194,61,67,.18)!important}
html[data-theme="dark"] .sd-app-shell .acts-selection-actions .export-xlsx{color:#76dca8!important;border-color:rgba(118,220,168,.43)!important;background:rgba(35,141,88,.18)!important}
/* Keep single line when there is room, otherwise wrap rather than hiding actions or page scrolling. */
@media(max-width:1200px){
 .sd-app-shell .acts-selection-toolbar{flex-wrap:wrap;row-gap:5px}
 .sd-app-shell .acts-selection-actions{flex-wrap:wrap;justify-content:flex-start}
}
@media(max-width:760px){
 .sd-app-shell .acts-selection-label{flex:1 0 100%;max-width:none}
 .sd-app-shell .acts-selection-actions{gap:5px}
 .sd-app-shell .acts-selection-actions .table-action-btn{width:36px;min-width:36px;flex-basis:36px}
 .sd-app-shell .acts-selection-actions .report-action-btn{width:auto;min-width:auto;flex-basis:auto}
}

/* v0.3.141 — clearer hierarchy and column boundaries in acts register header.
   Scoped to acts only; keep sticky positioning, widths and scrolling unchanged. */
:root{
  --sd-acts-head-border:#bdcecb;
  --sd-acts-head-divider:#c7d6d2;
  --sd-acts-head-surface:#e6eeeb;
}
html[data-theme="dark"]{
  --sd-acts-head-border:#42616a;
  --sd-acts-head-divider:#38555e;
  --sd-acts-head-surface:#152f38;
}
.acts-table-sticky-stack .acts-selection-toolbar{
  border-bottom:1px solid var(--sd-acts-head-border)!important;
  border-radius:12px 12px 0 0;
}
.acts-table-sticky-stack .acts-header-viewport{
  background:var(--sd-acts-head-surface)!important;
  border-top:0!important;
  border-bottom:2px solid var(--sd-acts-head-border)!important;
}
.acts-table-sticky-stack .acts-header-table thead th{
  background:var(--sd-acts-head-surface)!important;
  border-bottom:0!important;
  border-right:1px solid var(--sd-acts-head-divider)!important;
  color:var(--sd-table-muted)!important;
  padding-top:12px!important;
  padding-bottom:12px!important;
  line-height:1.2!important;
  vertical-align:middle!important;
}
.acts-table-sticky-stack .acts-header-table thead th:last-child{
  border-right:0!important;
}
html[data-theme="dark"] .acts-table-sticky-stack .acts-header-table thead th{
  color:#d0e0e2!important;
}
/* Reinforce the vertical rhythm without altering selected/annulled row colors. */
.selectable-acts-wrap .selectable-acts-table tbody td{
  border-right:1px solid var(--sd-table-divider)!important;
}
.selectable-acts-wrap .selectable-acts-table tbody td:last-child{
  border-right:0!important;
}


/* v0.3.141 — seamless junction between app header, sidebar and workspace breadcrumb.
   Reuse the measured header height instead of stale 72px sidebar offset. */
@media (min-width:821px){
  .sd-app-shell{--sd-nav-top:var(--sd-topbar-height,68px)}
  .sd-app-shell .sd-sidebar{
    top:var(--sd-topbar-height,68px)!important;
    height:calc(100dvh - var(--sd-topbar-height,68px))!important;
  }
}
body:has(.sd-app-shell) .topbar{
  box-shadow:none!important;
  border-bottom:1px solid var(--sd-side-line,#25424b)!important;
}
.sd-app-shell .sd-workspace-context{
  border-top:0!important;
  box-shadow:none!important;
}
.sd-app-shell .sd-sidebar{
  box-shadow:none;
  border-top:0!important;
}
@media (max-width:820px){
  .sd-app-shell .sd-sidebar{top:0!important;height:100dvh!important}
}


/* v0.3.145 — object-materials search controls match the shared table UI.
   Prevent the native Safari focus ring from stacking with the old form outline. */
.project-material-filter{
  align-items:stretch;
  gap:10px;
}
.project-material-filter input[type="search"],
.project-material-filter select[name="order"]{
  display:block;
  width:100%;
  min-width:0;
  height:42px;
  min-height:42px;
  padding:0 12px;
  box-sizing:border-box;
  border:1px solid var(--sd-table-divider,var(--line))!important;
  border-radius:9px;
  background:var(--pm-filter-bg,#fff)!important;
  color:var(--pm-filter-text,#17211d)!important;
  font:inherit;
  font-size:14px;
  outline:0!important;
  box-shadow:none!important;
  -webkit-appearance:none;
  appearance:none;
}
.project-material-filter input[type="search"]:focus,
.project-material-filter select[name="order"]:focus{
  outline:0!important;
  border-color:var(--sd-focus,#46bba8)!important;
  box-shadow:inset 0 0 0 1px var(--sd-focus,#46bba8)!important;
}
.project-material-filter input[type="search"]::-webkit-search-decoration,
.project-material-filter input[type="search"]::-webkit-search-cancel-button{
  -webkit-appearance:none;
}
.project-material-filter .btn[type="submit"]{
  width:42px;
  min-width:42px;
  height:42px;
  min-height:42px;
  padding:0;
  border:1px solid var(--sd-table-divider,var(--line));
  border-radius:9px;
  color:var(--text,#17211d);
  background:var(--panel,#fff);
  box-shadow:none;
}
.project-material-filter .btn[type="submit"]:hover{
  border-color:var(--sd-focus,#46bba8);
  color:var(--sd-focus,#46bba8);
}
@media(max-width:760px){
  .project-material-filter{grid-template-columns:minmax(0,1fr) 82px 42px;}
}

/* v0.3.145 — explicit theme-safe palette for object material filtering.
   Keep all three controls consistent without overriding dark mode with a white !important background. */
html{
  --pm-filter-bg:#ffffff;
  --pm-filter-text:#172b28;
  --pm-filter-placeholder:#6b8087;
}
html[data-theme="dark"]{
  --pm-filter-bg:#0e2029;
  --pm-filter-text:#edf4f5;
  --pm-filter-placeholder:#8399a3;
}
.project-material-filter input[type="search"]::placeholder{
  color:var(--pm-filter-placeholder)!important;
  opacity:1;
}
.project-material-filter .btn[type="submit"]{
  background:var(--pm-filter-bg)!important;
  color:var(--pm-filter-text)!important;
}
html[data-theme="dark"] .project-material-filter input[type="search"],
html[data-theme="dark"] .project-material-filter select[name="order"]{
  background:var(--pm-filter-bg)!important;
  color:var(--pm-filter-text)!important;
}


/* v0.3.148 — iPhone act actions: one sticky scrolling row, never a floating footer.
   The shared actions toolbar is moved after the mobile register head by JavaScript. */
.acts-actions-scroll-arrow{display:none}
@media(max-width:760px){
  /* Mobile cards replace the desktop table; the section heading scrolls normally. */
  .sd-app-shell .acts-table-sticky-stack{
    position:relative!important;top:auto!important;z-index:auto!important;
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;
    margin:0 0 7px!important;padding:0!important;
    background:transparent!important;border:0!important;box-shadow:none!important;
  }
  .sd-app-shell .acts-table-sticky-stack .acts-register-head-inline{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:9px!important;margin:8px 0 7px!important;padding:0!important;
  }
  .sd-app-shell .acts-register-head-inline .acts-register-title-wrap{width:100%;min-width:0}
  .sd-app-shell .acts-register-head-inline .kicker{
    display:block;font-size:12px!important;line-height:1.3!important;
    letter-spacing:.09em!important;white-space:normal!important;
  }
  .sd-app-shell .acts-register-head-inline .acts-register-tools{
    display:flex!important;flex-direction:row!important;align-items:center!important;
    justify-content:space-between!important;flex-wrap:nowrap!important;
    width:100%;gap:8px!important;min-width:0;
  }
  .sd-app-shell .acts-work-filter{
    box-sizing:border-box;min-width:0;margin:0;gap:7px;padding:8px 9px!important;
    font-size:12px!important;line-height:1.2;white-space:nowrap;
  }
  .sd-app-shell .acts-work-filter input{flex:0 0 30px}
  .sd-app-shell .acts-register-create{
    display:inline-flex;align-items:center;justify-content:center;
    flex:0 0 auto;min-height:36px;padding:8px 10px!important;
    margin:0!important;font-size:12px!important;line-height:1.25;
  }
  /* Sticky directly below the contractor > project > section breadcrumb. */
  .sd-app-shell .acts-selection-toolbar{
    display:grid!important;
    position:sticky!important;top:var(--sd-sticky-stack-height,126px)!important;
    bottom:auto!important;left:auto!important;right:auto!important;
    grid-template-columns:minmax(55px,auto) 27px minmax(0,1fr) 27px;
    align-items:center!important;gap:4px!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    z-index:39!important;box-sizing:border-box!important;
    margin:0 0 10px!important;padding:6px!important;
    border-radius:9px!important;border:1px solid #bed7d2!important;
    background:#f0f7f5!important;box-shadow:0 4px 12px rgba(8,51,44,.09)!important;
  }
  html[data-theme="dark"] .sd-app-shell .acts-selection-toolbar{
    background:#102b33!important;border-color:#2b5660!important;
    box-shadow:0 4px 14px rgba(0,0,0,.28)!important;
  }
  .sd-app-shell .acts-selection-label{
    min-width:0!important;max-width:80px!important;
    overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;
    font-size:11px!important;font-weight:700!important;line-height:1.25!important;
  }
  .sd-app-shell .acts-selection-actions{
    display:flex!important;flex:1 1 auto!important;min-width:0!important;
    max-width:100%!important;align-items:center!important;justify-content:flex-start!important;
    flex-wrap:nowrap!important;gap:5px!important;padding:1px 1px 3px!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    scrollbar-width:none!important;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
  }
  .sd-app-shell .acts-selection-actions::-webkit-scrollbar{display:none!important}
  .sd-app-shell .acts-selection-actions .table-action-btn,
  .sd-app-shell .acts-selection-actions .table-action-btn:not(.report-action-btn){
    box-sizing:border-box!important;display:inline-flex!important;
    width:35px!important;min-width:35px!important;max-width:35px!important;
    flex:0 0 35px!important;height:36px!important;padding:0!important;
    align-items:center!important;justify-content:center!important;border-radius:8px!important;
  }
  .sd-app-shell .acts-selection-actions .table-action-btn[hidden]{display:none!important}
  .sd-app-shell .acts-selection-actions .table-action-btn .action-svg{width:18px!important;height:18px!important}
  /* Labels for non-obvious report actions, with no extra icon/empty padding. */
  .sd-app-shell .acts-selection-actions .report-action-btn{
    width:auto!important;max-width:none!important;min-width:0!important;
    flex:0 0 auto!important;height:36px!important;padding:0 7px!important;
    font-size:11px!important;line-height:1!important;white-space:nowrap!important;
  }
  .sd-app-shell .acts-selection-actions .report-action-btn .action-svg{display:none!important}
  .sd-app-shell .acts-selection-actions .report-action-btn span{display:inline!important}
  .sd-app-shell .acts-selection-actions .table-action-btn:disabled{opacity:.56!important}
  .sd-app-shell .acts-actions-scroll-arrow{
    box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;
    width:27px!important;min-width:27px;height:36px;padding:0;border:1px solid rgba(55,153,142,.35);
    border-radius:7px;background:rgba(67,164,149,.09);color:#228b7e;cursor:pointer;
  }
  .sd-app-shell .acts-actions-scroll-arrow svg{width:17px;height:17px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
  .sd-app-shell .acts-actions-scroll-arrow:disabled{opacity:.3!important;cursor:default}
  html[data-theme="dark"] .sd-app-shell .acts-actions-scroll-arrow{color:#7ed6c9;border-color:#346b6b;background:rgba(67,164,149,.12)}
  .sd-app-shell .acts-actions-scroll-arrow:focus-visible{outline:2px solid #32aa9b;outline-offset:1px}
  .sd-app-shell .mobile-act-list{margin-top:7px!important;padding-bottom:12px!important}
}
@media(max-width:350px){
  .sd-app-shell .acts-work-filter{font-size:11px!important;padding:7px 6px!important;gap:5px}
  .sd-app-shell .acts-register-create{font-size:11px!important;padding:7px 8px!important}
  .sd-app-shell .acts-selection-toolbar{grid-template-columns:minmax(48px,auto) 24px minmax(0,1fr) 24px;gap:3px!important;padding:5px!important}
  .sd-app-shell .acts-selection-label{max-width:61px!important;font-size:10px!important}
  .sd-app-shell .acts-actions-scroll-arrow{min-width:24px!important;width:24px!important}
}

/* iPhone: keep the contractor / object / section trail readable rather than
   clipping the third level off-screen. Heights are measured by base.html. */
@media(max-width:760px){
 .sd-app-shell .sd-workspace-context{
   box-sizing:border-box;display:flex!important;flex-wrap:wrap!important;
   align-items:center!important;gap:3px 6px!important;
   min-height:0!important;padding:7px 12px!important;
 }
 .sd-app-shell .sd-workspace-context .sd-context-part{
   white-space:normal!important;min-width:0;max-width:100%;gap:4px;
 }
 .sd-app-shell .sd-workspace-context .sd-context-part strong{
   font-size:11px!important;line-height:1.3!important;
   max-width:none!important;white-space:normal!important;
   overflow-wrap:anywhere!important;
 }
 .sd-app-shell .sd-workspace-context .sd-context-divider{font-size:11px;line-height:1.2}
}


/* v0.3.148: keyboard navigation, drag-to-reorder and unified save status. */
@media (min-width: 761px) {
  .sd-app-shell .acts-selection-actions [data-action="up"],
  .sd-app-shell .acts-selection-actions [data-action="down"] { display:none!important; }
  .selectable-acts-table .act-row-draggable:not(.act-row-inline-edit) { cursor:grab; }
  .selectable-acts-table .act-row-dragging { opacity:.45!important; }
  .selectable-acts-table .act-row-draggable:active { cursor:grabbing; }
  .selectable-acts-table .act-row-draggable .number-cell { position:relative; }
  .selectable-acts-table .act-drag-handle { display:inline-flex;vertical-align:middle;margin-left:5px;opacity:.46;color:var(--green,#60c6b8);width:14px;height:18px; }
  .selectable-acts-table .act-drag-handle svg { width:14px;height:18px;fill:currentColor; }
  .selectable-acts-table .act-row-draggable:hover .act-drag-handle,
  .selectable-acts-table .act-row-selected .act-drag-handle { opacity:1; }
  .selectable-acts-table .act-drop-before > td { box-shadow:inset 0 3px 0 #54cbbb!important; }
  .selectable-acts-table .act-drop-after > td { box-shadow:inset 0 -3px 0 #54cbbb!important; }
}
@media (max-width: 760px) { .selectable-acts-table .act-drag-handle { display:none!important; } }
.sd-act-feedback-toast[hidden] {display:none!important}
.sd-act-feedback-toast {
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%);
  max-width:min(560px,calc(100vw - 30px));z-index:9999;
  padding:11px 17px;border-radius:11px;
  background:#123b3d;color:#e9f8f5;border:1px solid #4baba3;
  box-shadow:0 8px 30px rgba(0,0,0,.25);font-size:13px;font-weight:600;
  text-align:center;pointer-events:none;
}
.sd-act-feedback-toast[data-kind="error"]{background:#4b252c;border-color:#dd797f;color:#fff1ef}
.sd-act-feedback-toast[data-kind="saving"]{background:#223b48;border-color:#759ba9;color:#edf7fa}
html:not([data-theme="dark"]) .sd-act-feedback-toast { background:#f0fffb;color:#134e49;box-shadow:0 8px 28px rgba(13,50,48,.18); }
html:not([data-theme="dark"]) .sd-act-feedback-toast[data-kind="error"] {background:#fff0ef;color:#8b2b31;border-color:#df8181}
html:not([data-theme="dark"]) .sd-act-feedback-toast[data-kind="saving"] {background:#f0f6f9;color:#294b5a;border-color:#9ab3c0}
@media(max-width:760px){.sd-act-feedback-toast {bottom:calc(env(safe-area-inset-bottom,0px) + 20px);}}


/* v0.3.149 — shared desktop calendar, including dynamically edited act dates.
   Native date controls remain untouched on iOS and other touch-first devices. */
@media (min-width:761px) and (pointer:fine){
  input.sd-date-original,
  .selectable-acts-table .act-row-inline-edit input.sd-date-original{
    display:none!important;
  }
  .selectable-acts-table .act-row-inline-edit .inline-date-pair{
    gap:0!important;
  }
  .selectable-acts-table .act-row-inline-edit .inline-date-pair .sd-date-shell{
    display:flex!important;align-items:stretch;min-width:0;position:relative;
  }
  .selectable-acts-table .act-row-inline-edit .inline-date-pair .sd-date-shell + .sd-date-shell{
    border-top:1px solid rgba(107,154,154,.20);
  }
  .selectable-acts-table .act-row-inline-edit .inline-date-pair .sd-date-display{
    text-align:center!important;
    font-variant-numeric:tabular-nums;
    padding:4px 23px 4px 5px!important;
    cursor:pointer!important;
    font-size:clamp(11px,1vw,13px)!important;
    letter-spacing:0!important;
    background:transparent!important;
  }
  .selectable-acts-table .act-row-inline-edit .inline-date-pair .sd-date-display:focus{
    box-shadow:none!important;
    outline:none!important;
  }
  .selectable-acts-table .act-row-inline-edit .inline-date-pair .sd-date-shell::after{
    right:6px;width:14px;height:15px;opacity:.54;
  }
  .sd-calendar-popover{
    z-index:10050;
    border-radius:15px;
    border-color:rgba(90,130,140,.26);
    box-shadow:0 22px 60px rgba(18,39,48,.25),0 4px 14px rgba(13,32,38,.12);
    padding:12px;
  }
  html[data-theme="dark"] .sd-calendar-popover{
    border-color:rgba(92,181,170,.32);
    background:#122b35;
    box-shadow:0 22px 65px rgba(0,0,0,.5),0 3px 12px rgba(0,0,0,.23);
  }
  .sd-calendar-day:focus-visible,.sd-calendar-nav:focus-visible,
  .sd-calendar-foot button:focus-visible{
    outline:2px solid #43bda9;outline-offset:2px;
  }
  .sd-calendar-day.is-selected{background:#57c6b5!important;color:#08292b!important;}
}
/* A Mac window may become narrow after the desktop picker was initialized.
   Keep its popup usable; touch devices never receive the enhancement. */
@media (pointer:fine){
  input.sd-date-original{display:none!important;}
  .sd-calendar-popover:not([hidden]){display:block!important;}
}

/* v0.3.150: dark theme's .inline-cell-input rule used to override the native
   date control hiding, exposing two date pairs. The original is a hidden
   value carrier; only the styled display input is visible on desktop. */
@media (pointer:fine) and (min-width:761px){
  .selectable-acts-table .act-row-inline-edit .inline-date-pair input.inline-cell-input.sd-date-original,
  html[data-theme="dark"] .selectable-acts-table .act-row-inline-edit .inline-date-pair input.inline-cell-input.sd-date-original,
  html[data-theme="light"] .selectable-acts-table .act-row-inline-edit .inline-date-pair input.inline-cell-input.sd-date-original{
    display:none!important;
    visibility:hidden!important;
  }
}


/* v0.3.151 — 9-column acts register, header and body stay aligned. */
.acts-header-table,.selectable-acts-table{min-width:1260px!important}
.acts-table col.c-num{width:3%!important}
.acts-table col.c-work{width:20%!important}
.acts-table col.c-axes{width:17%!important}
.acts-table col.c-axis-check{width:10%!important}
.acts-table col.c-volume{width:11%!important}
.acts-table col.c-dates{width:10%!important}
.acts-table col.c-mat{width:19%!important}
.acts-table col.c-status{width:7%!important}
.acts-table col.c-select{width:3%!important}
.acts-table th:nth-child(1),.acts-table td:nth-child(1){width:3%!important}
.acts-table th:nth-child(2),.acts-table td:nth-child(2){width:20%!important}
.acts-table th:nth-child(3),.acts-table td:nth-child(3){width:17%!important}
.acts-table th:nth-child(4),.acts-table td:nth-child(4){width:10%!important}
.acts-table th:nth-child(5),.acts-table td:nth-child(5){width:11%!important}
.acts-table th:nth-child(6),.acts-table td:nth-child(6){width:10%!important}
.acts-table th:nth-child(7),.acts-table td:nth-child(7){width:19%!important}
.acts-table th:nth-child(8),.acts-table td:nth-child(8){width:7%!important}
.acts-table th:nth-child(9),.acts-table td:nth-child(9){width:3%!important}
@media(max-width:760px){
  .acts-header-table,.selectable-acts-table{min-width:1260px!important;width:1260px!important}
  .acts-header-track{width:1260px!important;min-width:1260px!important}
}

/* v0.3.154 — object profile belongs on the workspace overview, not the acts register. */
.sd-app-shell .sd-workspace-overview{max-width:1160px;margin-inline:auto}
.sd-app-shell .sd-project-profile{
  box-sizing:border-box;max-width:100%;margin:18px 0 22px;padding:22px 25px 18px;
  border:1px solid var(--sd-profile-border,#d4e2df);border-radius:15px;
  background:var(--sd-profile-bg,#fff);color:var(--sd-profile-ink,#244044);
  box-shadow:0 4px 16px rgba(17,52,49,.045);
}
.sd-project-profile-header{padding-bottom:15px;border-bottom:1px solid var(--sd-profile-border,#d4e2df)}
.sd-project-profile-eyebrow{display:block;font-size:10px;font-weight:650;letter-spacing:.105em;color:var(--sd-profile-label,#687e80)}
.sd-project-profile-header h1{margin:5px 0 0;font-size:clamp(19px,2.25vw,25px);line-height:1.24;letter-spacing:-.018em;font-weight:530;color:inherit;overflow-wrap:anywhere}
.sd-project-profile-fullname{padding:16px 0 15px;min-width:0}
.sd-project-profile-label,.sd-project-profile-field dt{display:block;color:var(--sd-profile-label,#677e80);font-size:11px;font-weight:620;line-height:1.3;letter-spacing:.014em}
.sd-project-profile-fullname p{margin:5px 0 0;font-size:14px;font-weight:520;line-height:1.45;color:inherit;overflow-wrap:anywhere}
.sd-project-profile-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:0;padding-top:13px;border-top:1px solid var(--sd-profile-border,#d4e2df)}
.sd-project-profile-field{margin:0;min-width:0}
.sd-project-profile-field dd{margin:5px 0 0;color:inherit;font-weight:490;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.sd-project-profile-contract{margin:15px 0 0;padding-top:12px;border-top:1px solid var(--sd-profile-border,#d4e2df);color:var(--sd-profile-label,#677e80);font-size:11px}
html[data-theme="dark"] .sd-app-shell .sd-project-profile{--sd-profile-bg:#102b35;--sd-profile-border:#294a51;--sd-profile-ink:#d9e7e9;--sd-profile-label:#94adb3}
html[data-theme="light"] .sd-app-shell .sd-project-profile{--sd-profile-bg:#fbfdfd;--sd-profile-border:#d4e2df;--sd-profile-ink:#254249;--sd-profile-label:#667f82}
@media(max-width:800px){.sd-project-profile-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}}
@media(max-width:520px){.sd-app-shell .sd-project-profile{padding:17px 15px 16px;margin:13px 0 17px}.sd-project-profile-details{grid-template-columns:1fr;gap:12px}.sd-project-profile-fullname p{font-size:13px}.sd-project-profile-header h1{font-size:20px}}

/* Selected workspace navigation in soft amber; other actions keep their old accent. */
.sd-sidebar .sd-accordion-selection{
  background:rgba(219,160,38,.12)!important;
  border-color:rgba(210,157,39,.38)!important;
  color:var(--sd-selected-ink,#805b13)!important;
  font-weight:670!important;
}
.sd-sidebar .sd-selection-dot{background:#dba12b!important}
.sd-sidebar .sd-accordion-item.is-active{background:rgba(219,160,38,.11)!important;color:var(--sd-selected-ink,#805b13)!important}
.sd-sidebar .sd-object-nav .sd-side-link[aria-current="page"]{
  background:rgba(219,160,38,.16)!important;
  color:var(--sd-selected-ink,#805b13)!important;
  font-weight:690!important;
  border-radius:8px;
  box-shadow:inset 3px 0 0 #dfa638;
}
.sd-sidebar .sd-accordion-selection:hover,.sd-sidebar .sd-object-nav .sd-side-link[aria-current="page"]:hover{background:rgba(219,160,38,.22)!important}
html[data-theme="dark"] .sd-app-shell{--sd-selected-ink:#f1cb73}
html[data-theme="light"] .sd-app-shell{--sd-selected-ink:#866013}

/* Amber breadcrumbs for contractor and project + subtler selected section. */
.sd-app-shell .sd-workspace-context .sd-context-selected,
.sd-app-shell .sd-workspace-context .sd-context-current{
  box-sizing:border-box;padding:5px 8px;border:1px solid rgba(217,161,49,.30);border-radius:7px;
  background:rgba(215,160,46,.085);text-decoration:none;
}
.sd-app-shell .sd-workspace-context .sd-context-selected strong,
.sd-app-shell .sd-workspace-context .sd-context-current strong{color:var(--sd-selected-ink,#866013)!important;font-weight:660}
.sd-app-shell .sd-workspace-context .sd-context-selected span,
.sd-app-shell .sd-workspace-context .sd-context-current span{color:var(--sd-selected-ink,#866013);opacity:.85}
.sd-app-shell .sd-workspace-context .sd-context-selected:hover{background:rgba(215,160,46,.16)}
@media(max-width:760px){
 .sd-app-shell .sd-workspace-context .sd-context-selected,.sd-app-shell .sd-workspace-context .sd-context-current{padding:4px 6px}
}

/* Retain the save/download affordance for the certificates export at every width. */
.sd-app-shell .acts-selection-actions [data-action="cert-zip"] .action-svg{display:block!important;flex:none;width:17px!important;height:17px!important}
.sd-app-shell .acts-selection-actions [data-action="cert-zip"]{gap:5px!important}

/* v0.3.155 — clearer five-section overview and the isolated finance pilot */
.sd-app-shell .sd-profile-155{padding:20px 24px;}
.sd-profile-155 .sd-project-profile-header{padding-bottom:12px;margin-bottom:4px}
.sd-project-facts{margin:0;display:block}
.sd-project-facts>div{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:12px;padding:9px 0;border-bottom:1px solid var(--sd-profile-border,#d4e2df);align-items:start}
.sd-project-facts>div:last-child{border-bottom:0}
.sd-project-facts dt{color:var(--sd-profile-label,#78949b);font-size:12px;font-weight:500;margin:0;line-height:1.4}
.sd-project-facts dd{color:inherit;font-size:13px;font-weight:460;line-height:1.45;margin:0;overflow-wrap:anywhere}
.sd-workspace-tiles-155 .sd-workspace-tile{position:relative;min-height:138px;padding:19px 20px;gap:6px}
.sd-workspace-tiles-155 .sd-workspace-tile-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:rgba(32,156,137,.09);color:#2a9d8b;margin-bottom:4px}
.sd-workspace-tiles-155 .sd-workspace-tile-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sd-workspace-tiles-155 .sd-workspace-tile strong{font-size:16px;font-weight:610}
.sd-workspace-tiles-155 .sd-workspace-tile>span:not(.sd-workspace-tile-icon){font-size:12px}
.sd-workspace-tiles-155 .sd-finance-tile{border-color:rgba(208,105,100,.53)!important;background:linear-gradient(120deg,rgba(178,67,67,.11),rgba(178,67,67,.03))!important}
.sd-workspace-tiles-155 .sd-finance-tile .sd-workspace-tile-icon{color:#d87970;background:rgba(190,87,77,.14)}
.sd-workspace-tiles-155 .sd-finance-tile .sd-finance-dev-label{position:absolute;top:14px;right:14px;color:#e48c83!important;background:rgba(193,69,64,.12);border:1px solid rgba(193,69,64,.25);border-radius:999px;padding:3px 9px;font-size:10px!important}
.sd-sidebar .sd-finance-side{color:#db8c84}
.sd-sidebar .sd-finance-side small{display:block;font-size:10px;opacity:.7;font-weight:400}
@media(max-width:600px){.sd-project-facts>div{grid-template-columns:125px minmax(0,1fr);gap:10px}.sd-app-shell .sd-profile-155{padding:16px}.sd-workspace-tiles-155 .sd-workspace-tile{min-height:120px}}

.fin-page{max-width:1600px;margin:0 auto;padding-bottom:32px;color:inherit}
.fin-page-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 0 18px}
.fin-page-heading h1{font-size:clamp(20px,2.3vw,27px);font-weight:580;letter-spacing:-.025em;margin:6px 0}
.fin-page-heading p,.fin-section-title p{margin:5px 0 0;color:var(--muted);font-size:12px}
.fin-eyebrow{font-size:10px;font-weight:640;letter-spacing:.09em;color:var(--muted);text-transform:uppercase}
.fin-tag{font-size:11px;font-weight:500;color:#e28d85;vertical-align:middle;margin-left:8px;border-radius:15px;border:1px solid rgba(193,80,72,.25);padding:4px 9px}
.fin-filterbar,.fin-contract-filter{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding:14px 16px;background:var(--fin-bg,#102934);border:1px solid var(--line);border-radius:12px;margin-bottom:16px}
.fin-filterbar label,.fin-contract-filter label{font-size:12px;color:var(--muted);display:flex;gap:7px;align-items:center}
.fin-filterbar input,.fin-filterbar select,.fin-contract-filter select,.fin-contract-form input,.fin-contract-form select{border:1px solid var(--line);background:var(--sd-tile-bg,#132c37);color:inherit;border-radius:7px;min-height:34px;padding:6px 9px;max-width:100%;font:inherit}
.fin-filterbar input{width:90px}.fin-filter-note{font-size:11px;color:var(--muted);margin-left:auto}
.fin-tabs{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);margin-bottom:19px;overflow-x:auto}
.fin-tabs a{color:var(--muted);font-size:13px;font-weight:550;text-decoration:none;padding:12px 14px;white-space:nowrap;border-bottom:2px solid transparent}
.fin-tabs a.active{color:#45b8aa;border-bottom-color:#45b8aa}
.fin-section,.fin-card{border:1px solid var(--line);background:var(--fin-bg,#132b35);border-radius:13px;padding:17px}
.fin-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}
.fin-section-title h2{font-size:17px;font-weight:610;margin:0}
.fin-table-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:9px}
.fin-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap;background:transparent}
.fin-table th,.fin-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 9px;text-align:left;vertical-align:middle}
.fin-table thead th{background:rgba(113,150,157,.1);color:var(--muted);font-weight:610;font-size:11px;line-height:1.4}
.fin-table tbody tr:hover{background:rgba(115,167,158,.045)}
.fin-table tr>:last-child{border-right:0}.fin-table tbody tr:last-child>*{border-bottom:0}
.fin-table tfoot th,.fin-table tfoot td{background:rgba(51,142,130,.1);font-weight:700;border-bottom:0}
.fin-table td.money,.fin-table th.money,.fin-table input.money{text-align:right;font-variant-numeric:tabular-nums}
.fin-summary-table{min-width:1100px}.fin-summary-table td.money{min-width:98px}
.fin-contract-cell{position:sticky;left:0;background:var(--fin-bg,#132b35);min-width:178px;max-width:225px;z-index:1}
.fin-contract-cell strong,.fin-contract-cell span,.fin-contract-cell small{display:block;white-space:normal}
.fin-contract-cell span,.fin-mini-label{font-size:11px;color:var(--muted);margin-top:3px;display:block}
.fin-contract-cell .fin-warn{font-size:10px;color:#d1a35c;margin-top:3px}
.fin-primary-money{color:#4cbda4;font-weight:700}.fin-view{white-space:nowrap;color:#59c7bb;text-decoration:none;font-size:12px;font-weight:550}.fin-view:hover{text-decoration:underline}
.fin-empty{padding:25px 16px!important;text-align:center!important;color:var(--muted)}
.fin-hint{font-size:11px;line-height:1.6;color:var(--muted);margin:12px 0 0;white-space:normal}
.fin-register-table{min-width:1570px;table-layout:auto}.fin-register-table th,.fin-register-table td{padding:5px 5px}
.fin-register-table input,.fin-register-table select{color:inherit;border:1px solid transparent;border-radius:5px;background:transparent;width:100%;min-height:32px;padding:5px 6px;font:inherit;font-size:12px;box-sizing:border-box}
.fin-register-table input:focus,.fin-register-table select:focus{outline:none;border-color:#37a99c;background:rgba(45,126,120,.09)}
.fin-register-table input[readonly],.fin-register-table select[disabled]{opacity:.9;cursor:default}
.fin-register-table select option{background:#12303b;color:#fff}
.fin-register-table td:nth-child(1),.fin-register-table td:nth-child(2){min-width:60px;max-width:78px}
.fin-register-table td:nth-child(3){min-width:205px}.fin-register-table td:nth-child(4){min-width:130px}.fin-register-table td:nth-child(5){min-width:175px}
.fin-register-table td:nth-child(6){min-width:75px}.fin-register-table td:nth-child(7){min-width:110px}.fin-register-table td:nth-child(8){min-width:70px}
.fin-register-table td:nth-child(9),.fin-register-table td:nth-child(10),.fin-register-table td:nth-child(11){min-width:125px}
.fin-register-table td:nth-child(12){min-width:98px}
.fin-register-table .fin-new-row{background:rgba(37,131,117,.09);border-top:2px solid rgba(60,151,135,.3)}
.fin-register-table .fin-new-row input::placeholder{color:var(--muted);opacity:.85}
.fin-register-table .fin-row-success{background:rgba(61,167,114,.12)}.fin-register-table .fin-row-error{background:rgba(208,70,69,.11)}
.fin-new-hint{color:#55bca8;font-size:18px}.fin-remove{color:#d48c85;background:transparent;border:0;cursor:pointer;font-size:21px;line-height:1}
.fin-status-line{color:var(--muted);font-size:12px;min-height:23px}
.fin-contract-page{max-width:1050px}.fin-contract-form{padding:24px}.fin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
.fin-field label{font-size:12px;color:var(--muted);display:block;margin-bottom:6px}.fin-field input,.fin-field select{width:100%}.fin-error{color:#e39589;font-size:12px;margin-top:5px}
.fin-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.fin-preview-sheet{padding:28px 35px}.fin-preview-caution{font-size:12px;color:#d29d70;margin-bottom:16px;text-align:center}
.fin-preview-sheet .sd-project-facts{margin-bottom:20px}.fin-preview-sheet .sd-project-facts>div{grid-template-columns:180px minmax(0,1fr)}
.fin-signatures{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:45px}
.fin-signatures>div{border-top:1px solid var(--line);padding-top:10px;display:flex;flex-direction:column;gap:7px}
.fin-signatures span,.fin-signatures small{font-size:12px;color:var(--muted)}
@media(max-width:650px){.fin-section{padding:12px}.fin-page-heading{margin-top:12px}.fin-form-grid{grid-template-columns:1fr}.fin-filter-note{width:100%;margin-left:0}.fin-preview-sheet{padding:12px}.fin-preview-sheet .sd-project-facts>div{grid-template-columns:110px minmax(0,1fr)}.fin-signatures{grid-template-columns:1fr}}
@media print{.no-print,.fin-page .back,.fin-page-heading,.fin-tabs,.sd-sidebar,.sd-workspace-context,.topbar,.fin-actions{display:none!important}.fin-preview-sheet{border:0;padding:0}.fin-page{color:#111}.fin-table{color:#111}.fin-preview-caution{color:#444}}

html[data-theme="light"] .fin-page{--fin-bg:#f9fcfb;--fin-input-bg:#fff;--fin-ink:#20383b}
html[data-theme="dark"] .fin-page{--fin-bg:#112b35;--fin-input-bg:#16333c;--fin-ink:#d5e7e7}
.fin-page .fin-filterbar input,.fin-page .fin-filterbar select,.fin-page .fin-contract-filter select,.fin-page .fin-contract-form input,.fin-page .fin-contract-form select{background:var(--fin-input-bg,#fff);color:var(--fin-ink,inherit)}
.fin-page .fin-register-table select option{background:var(--fin-input-bg,#fff);color:var(--fin-ink,inherit)}
html[data-theme="light"] .fin-page .fin-tabs a.active{color:#178472;border-bottom-color:#178472}
html[data-theme="light"] .fin-page .fin-view{color:#176e62}
/* v0.3.156: one financial surface, no nested cards or cell popups */
.fin-compact-156{max-width:none!important;padding-bottom:8px}
.fin-compact-156 .fin-simple-heading{font-size:13px;font-weight:600;letter-spacing:.01em;color:var(--muted);margin:12px 0 10px}
.fin-compact-156 .fin-simple-heading span{font-size:10px;color:#d78a84;margin-left:7px;font-weight:450}
.fin-compact-156 .fin-filterbar{padding:7px 0 10px;border:0;border-radius:0;background:transparent;margin:0;gap:12px}
.fin-compact-156 .fin-filterbar label{font-size:11px;gap:6px}
.fin-compact-156 .fin-filterbar select{font-size:12px;min-height:28px;padding:4px 8px;min-width:100px}
.fin-compact-156 .fin-tabs{margin:3px 0 9px;gap:2px}
.fin-compact-156 .fin-tabs a{padding:9px 12px;font-size:12px}
.fin-compact-156 .fin-tabs-spacer{flex:1}
.fin-compact-156 .fin-tabs .fin-export-button{padding:6px 10px;margin-left:8px;border:1px solid var(--line);border-radius:6px;background:transparent;color:inherit;font-size:11px;white-space:nowrap;text-decoration:none}
.fin-compact-156 .fin-tabs .fin-export-button small{opacity:.6}
.fin-compact-156 .fin-table-scroll{border-radius:0;border-left:0;border-right:0}
.fin-compact-156 .fin-register-table input,.fin-compact-156 .fin-register-table select{display:block;width:100%;height:100%;min-height:35px;min-width:0;box-sizing:border-box;border:0!important;box-shadow:none!important;outline:0!important;border-radius:0;background:transparent!important;padding:5px 7px;color:inherit;font:inherit;font-size:12px;cursor:text}
.fin-compact-156 .fin-register-table select{cursor:pointer}
.fin-compact-156 .fin-register-table td{padding:0!important;height:36px}
.fin-compact-156 .fin-register-table td.money{padding:0 6px!important}
.fin-compact-156 .fin-register-table input:focus,.fin-compact-156 .fin-register-table select:focus{background:rgba(37,147,125,.12)!important;outline:1px solid rgba(47,166,141,.45)!important;outline-offset:-1px!important;color:inherit!important}
.fin-compact-156 .fin-register-table .fin-new-row{background:rgba(35,140,122,.07)}
.fin-compact-156 .fin-register-table .fin-new-row input::placeholder{opacity:.55}
.fin-compact-156 .fin-register-table th{padding:8px 7px}
.fin-compact-156 .fin-register-table{min-width:1750px}
.fin-compact-156 .fin-register-table td:nth-child(11),.fin-compact-156 .fin-register-table th:nth-child(11){min-width:115px}
.fin-compact-156 .fin-summary-table{min-width:1480px}
.fin-compact-156 .fin-summary-table .fin-contract-cell{min-width:200px;max-width:240px}
.fin-compact-156 .fin-summary-table td{padding:9px 7px}
.fin-compact-156 .fin-status-line:empty{display:none}
.fin-compact-156 .fin-status-line{min-height:12px;font-size:11px}
.fin-preview-page .fin-preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;flex-wrap:wrap}
.fin-preview-page .fin-preview-toolbar-caption{font-size:12px;color:var(--muted)}
.fin-preview-page .fin-preview-back{color:var(--muted);font-size:12px;text-decoration:none}
.fin-preview-page .kb3-preview-scroll{overflow:auto;padding:10px 0 24px;max-width:100%}
.kb3-document{--kb3-body:#111;position:relative;width:210mm;height:297mm;box-sizing:border-box;flex-shrink:0;background:#fff;color:var(--kb3-body)!important;padding:0;font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:1.24;box-shadow:0 4px 20px rgba(0,0,0,.2);margin:0 auto;overflow:hidden}
.kb3-form-number{position:absolute;right:7mm;top:5mm;font-size:12px}
.kb3-identification{position:absolute;left:7mm;right:7mm;top:15mm;font-size:11.5px;line-height:1.2;overflow-wrap:anywhere}
.kb3-identification div{margin-bottom:4px}
.kb3-main-title{position:absolute;left:8mm;right:8mm;top:63mm;text-align:center;font-size:13.4px;font-weight:700;margin:0;line-height:1.25}
.kb3-period{position:absolute;left:8mm;right:8mm;top:76mm;text-align:center;font-size:12.8px}
.kb3-currency{position:absolute;right:7mm;top:91mm;font-size:11px}
.kb3-paper-table{position:absolute;top:97mm;left:7mm;width:196mm;border-collapse:collapse;table-layout:fixed;color:#111!important;font-size:11.1px;line-height:1.23}
.kb3-paper-table td,.kb3-paper-table th{color:#111!important;border-left:1px solid #333;border-right:1px solid #333;font-weight:400;vertical-align:top;padding:4px 6px;overflow-wrap:anywhere;background:#fff!important}
.kb3-paper-table thead tr:first-child{height:7mm}
.kb3-paper-table thead tr:nth-child(2){height:23mm}
.kb3-paper-table thead tr.kb3-columns{height:6mm}
.kb3-paper-table thead th{vertical-align:middle;text-align:center}
.kb3-paper-table thead tr:first-child th{border-top:1px solid #333}
.kb3-paper-table thead tr:nth-child(2) th{border-top:1px solid #333}
.kb3-paper-table thead .kb3-columns th{border-top:1px solid #333;border-bottom:1px solid #333}
.kb3-paper-table tbody .kb3-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;padding-right:5px}
.kb3-paper-table .kb3-line-gross{height:9mm}
.kb3-paper-table .kb3-line-site{height:15mm}
.kb3-paper-table .kb3-line-group{height:5.5mm}
.kb3-paper-table .kb3-line-building,.kb3-paper-table .kb3-line-other{height:8mm}
.kb3-paper-table .kb3-line-vat{height:8mm}
.kb3-paper-table .kb3-line-with_vat,.kb3-paper-table .kb3-line-contractor_vat{height:10mm}
.kb3-paper-table .kb3-line-materials,.kb3-paper-table .kb3-line-contractor{height:9mm}
.kb3-paper-table .kb3-line-emphasis td{font-weight:700;border-top:1px solid #333}
.kb3-paper-table tbody tr:last-child td{border-bottom:1px solid #333}
.kb3-footnote{position:absolute;left:7mm;right:7mm;top:247mm;font-size:10px;margin:0}
.kb3-draft-note{position:absolute;left:7mm;right:7mm;top:258mm;font-size:9px;color:#555!important;margin:0}
.kb3-signature{position:absolute;left:7mm;right:7mm;display:grid;grid-template-columns:24% 18% 31% 1fr;column-gap:1.5%;align-items:end;font-size:10.5px;white-space:nowrap}
.kb3-signature i{border-bottom:1px solid #333;display:block;height:17px}
.kb3-signature b{font-weight:400;overflow:hidden;text-overflow:ellipsis}
.kb3-signature-customer{top:270mm}.kb3-signature-contractor{top:287mm}
@media print {
  @page{size:A4 portrait;margin:0}
  html,body{width:210mm!important;margin:0!important;padding:0!important;background:#fff!important}
  body *{visibility:hidden!important}
  .kb3-document,.kb3-document *{visibility:visible!important}
  .kb3-document{position:absolute!important;top:0!important;left:0!important;box-shadow:none!important;margin:0!important;width:210mm!important;height:297mm!important;break-inside:avoid;page-break-after:avoid}
  .fin-preview-page .kb3-preview-scroll{padding:0!important;margin:0!important;overflow:visible!important}
  .fin-preview-toolbar{display:none!important}
}

/* v0.3.157: chronological monthly subtotals, lean finance navigation */
.fin-v157 .fin-month-total > th,.fin-v157 .fin-month-total > td{background:rgba(215,164,55,.17)!important;color:var(--fin-ink,inherit);border-top:1px solid rgba(212,169,73,.48);font-weight:700!important;padding:9px 8px!important;height:auto!important}
.fin-v157 .fin-month-total > th{text-align:left;white-space:nowrap}
.fin-v157 .fin-month-total small{font-size:10px;color:var(--muted);font-weight:450;margin-left:8px}
.fin-v157 .fin-register-table thead th{position:sticky;top:0;z-index:2}
.fin-v157 .fin-register-table{min-width:1820px}
.fin-v157 .fin-tabs{flex-wrap:nowrap;overflow-x:auto}
.fin-v157 .fin-filterbar select{cursor:pointer}
.fin-v157 .fin-table-scroll{max-height:min(75vh,1000px);overflow:auto}
.fin-v157 .fin-register-table .fin-new-row{position:relative}
@media(max-width:650px){.fin-v157 .fin-month-total>th{min-width:140px}.fin-v157 .fin-tabs a{font-size:11px!important;padding:9px 9px!important}}


/* v0.3.158: compact contract form, grouped by legal parties, no financial opening balances */
.fin-contract-v158{max-width:1020px}
.fin-contract-form-158{padding:0;background:transparent;border:0}
.fin-contract-section{padding:16px 0 18px;border-bottom:1px solid var(--line)}
.fin-contract-section:first-child{padding-top:0}
.fin-contract-section h2{font-size:14px;font-weight:620;margin:0 0 14px;color:var(--fin-ink,inherit);letter-spacing:0}
.fin-contract-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 20px}
.fin-contract-fields .fin-contract-wide{grid-column:1/-1}
.fin-contract-form-158 .fin-field label{font-size:11px;line-height:1.4;margin-bottom:5px}
.fin-contract-form-158 .fin-field input,.fin-contract-form-158 .fin-field select{width:100%;max-width:none;min-height:38px;box-sizing:border-box}
.fin-contract-form-158 .fin-contract-note{font-size:11px;color:var(--muted);line-height:1.6;margin:13px 0 0;max-width:850px}
.fin-contract-form-158 .fin-contract-actions{padding:18px 0 0}
.fin-contract-form-158 [hidden]{display:none!important}
@media(max-width:620px){.fin-contract-fields{grid-template-columns:1fr}.fin-contract-section{padding:14px 0 16px}.fin-contract-fields .fin-contract-wide{grid-column:auto}}

/* v0.3.159: on the standard (no customer-materials) KB-3, fill the
   paper area like the paper example, while keeping a fixed A4 preview. */
.kb3-document.kb3-no-materials .kb3-paper-table .kb3-line-gross{height:16mm}
.kb3-document.kb3-no-materials .kb3-paper-table .kb3-line-site{height:25mm}
.kb3-document.kb3-no-materials .kb3-paper-table .kb3-line-group{height:9mm}
.kb3-document.kb3-no-materials .kb3-paper-table .kb3-line-building{height:13mm}
.kb3-document.kb3-no-materials .kb3-paper-table .kb3-line-other{height:11mm}
.kb3-document.kb3-no-materials .kb3-paper-table .kb3-line-vat{height:14mm}
.kb3-document.kb3-no-materials .kb3-paper-table .kb3-line-with_vat{height:9mm}

/* v0.3.161: simplified cumulative contract overview (seven columns). */
.fin-v157 .fin-overview-161 {min-width:900px;width:100%;table-layout:auto}
.fin-v157 .fin-overview-161 th,.fin-v157 .fin-overview-161 td{padding:11px 10px;vertical-align:middle}
.fin-v157 .fin-overview-161 thead th{font-size:11px;white-space:normal;line-height:1.35}
.fin-v157 .fin-overview-161 td.money,.fin-v157 .fin-overview-161 th.money{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.fin-v157 .fin-overview-161 .fin-overview-party{font-size:12px;text-align:left;min-width:140px;max-width:245px;white-space:normal;font-weight:580;overflow-wrap:anywhere}
.fin-v157 .fin-overview-161 .fin-overview-agreement{min-width:135px;max-width:260px;white-space:normal}
.fin-v157 .fin-overview-161 .fin-overview-agreement strong{font-weight:600}
.fin-v157 .fin-overview-161 .fin-overview-agreement span{display:block;color:var(--muted);font-size:11px;margin-top:3px;overflow-wrap:anywhere}
.fin-v157 .fin-overview-161 .fin-over-budget{color:#e77c7c;font-weight:700}
.fin-v157 .fin-overview-161 tfoot th{text-align:left}
.fin-v157 .fin-overview-hint{margin:8px 0;font-size:11px;color:var(--muted)}
@media(max-width:700px){.fin-v157 .fin-overview-161{min-width:980px}.fin-v157 .fin-overview-161 th,.fin-v157 .fin-overview-161 td{padding:10px 8px}}

/* v0.3.162 — small in-row actions for construction contracts */
.fin-contract-row-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:205px}
.fin-contract-row-actions form{margin:0;display:inline-flex}
.fin-contract-row-actions .fin-contract-action-btn{border:0;background:transparent;padding:3px 0;cursor:pointer;color:#59c7bb;font:inherit;font-size:12px;font-weight:550;white-space:nowrap}
.fin-contract-row-actions .fin-contract-danger{color:#db827c}
.fin-contract-row-actions .fin-contract-danger:hover{color:#f09b92}
.fin-contract-messages{margin:8px 0 12px}
.fin-contract-message{font-size:12px;color:var(--muted);margin:4px 0;line-height:1.4}
.fin-contract-message.error{color:#e39a65;background:transparent;border:0;padding:0}
.fin-contract-message.success{color:#4cbda4}
html[data-theme="light"] .fin-contract-row-actions .fin-contract-action-btn{color:#176e62}
html[data-theme="light"] .fin-contract-row-actions .fin-contract-danger,html[data-theme="light"] .fin-contract-message.error{color:#a03c33}
html[data-theme="light"] .fin-contract-message.success{color:#176e62}


/* v0.3.163 — shared registry geometry across financial views.
   Based on the existing acts-on-hidden-works visual language; no cards inside
   tables, no separate input boxes inside editable cells. */
.fin-grid-v163{
  --fin-grid-header:var(--fin-table-header,#112b35);
  --fin-grid-odd:rgba(80,139,151,.055);
  --fin-grid-hover:rgba(70,160,148,.10);
}
.fin-grid-v163 .fin-table-scroll{
  border:1px solid var(--line);border-radius:8px;
  scrollbar-width:thin;scrollbar-color:rgba(122,165,170,.45) transparent;
}
.fin-grid-v163 .fin-unified-table{
  width:100%;border-collapse:separate;border-spacing:0;
  font-size:12.5px;line-height:1.4;table-layout:auto;
  font-variant-numeric:tabular-nums;
}
.fin-grid-v163 .fin-unified-table thead th{
  background:var(--fin-grid-header)!important;
  color:#abc2c8!important;
  text-transform:uppercase;letter-spacing:.065em;
  font-size:10.5px!important;font-weight:650!important;
  text-align:center!important;vertical-align:middle!important;
  white-space:normal;line-height:1.35;
  padding:12px 10px!important;
  border-bottom:1px solid var(--line);
}
.fin-grid-v163 .fin-unified-table :is(td,tbody th){
  border-right:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:11px 10px;vertical-align:middle;
  color:var(--fin-ink,inherit);font-weight:400;
}
.fin-grid-v163 .fin-unified-table tbody tr:nth-child(even):not(.fin-month-total):not(.fin-new-row){
  background:var(--fin-grid-odd);
}
.fin-grid-v163 .fin-unified-table tbody tr:hover:not(.fin-month-total){
  background:var(--fin-grid-hover);
}
.fin-grid-v163 .fin-unified-table :is(td.money,th.money){
  text-align:right!important;white-space:nowrap;
}
.fin-grid-v163 .fin-unified-table tfoot :is(th,td){
  font-weight:700;background:rgba(54,143,130,.12)!important;
  padding:12px 10px;
}
.fin-grid-v163 .fin-unified-table th:first-child:not(.money){text-align:left}
.fin-grid-v163 .fin-summary-table .fin-contract-cell{
  background:var(--fin-grid-header)!important;z-index:3;
  font-weight:550!important;
}
.fin-grid-v163 .fin-summary-table thead th:first-child{
  position:sticky;left:0;z-index:4;min-width:210px;
}
.fin-grid-v163 .fin-summary-table .fin-contract-cell strong{font-weight:620}
.fin-grid-v163 .fin-overview-161 .fin-overview-party{font-weight:550;line-height:1.35}
.fin-grid-v163 .fin-contracts-table{min-width:1080px}
.fin-grid-v163 .fin-contracts-table :is(th,td){white-space:normal}
.fin-grid-v163 .fin-contracts-table tbody td:nth-child(1){min-width:135px}
.fin-grid-v163 .fin-contracts-table tbody td:nth-child(2){min-width:100px}
.fin-grid-v163 .fin-contracts-table tbody td:nth-child(3){white-space:nowrap;text-align:right}
.fin-grid-v163 .fin-contracts-table tbody td:nth-child(4){min-width:115px}
.fin-grid-v163 .fin-contracts-table tbody td:last-child{min-width:215px}
.fin-grid-v163 .fin-register-table thead th{position:sticky;top:0;z-index:5}
.fin-grid-v163 .fin-register-table td{height:40px!important;padding:0!important}
.fin-grid-v163 .fin-register-table td.money{padding:0 9px!important}
.fin-grid-v163 .fin-register-table :is(input,select){
  min-height:40px!important;padding:8px 9px!important;
  font-size:12.5px!important;
  background:transparent!important;color:inherit;
  border:0!important;border-radius:0!important;box-shadow:none!important;
}
.fin-grid-v163 .fin-register-table :is(input,select):focus{
  outline:1px solid rgba(64,178,157,.8)!important;outline-offset:-1px!important;
  background:rgba(51,161,144,.12)!important;
}
.fin-grid-v163 .fin-register-table .fin-month-total :is(th,td){
  padding:10px 9px!important;height:auto!important;
  background:rgba(216,172,66,.18)!important;
  font-weight:700!important;
}
.fin-grid-v163 .fin-register-table tbody .fin-new-row{background:rgba(33,146,128,.075)}
html[data-theme="light"] .fin-grid-v163{
  --fin-grid-header:#e6eff0;
  --fin-grid-odd:rgba(34,95,105,.038);
  --fin-grid-hover:rgba(24,144,124,.08);
}
html[data-theme="light"] .fin-grid-v163 .fin-unified-table thead th{color:#47666d!important}
html[data-theme="light"] .fin-grid-v163 .fin-summary-table .fin-contract-cell{color:#203a3c}
@media(max-width:760px){
  .fin-grid-v163 .fin-unified-table :is(td,tbody th){padding:9px 8px}
  .fin-grid-v163 .fin-unified-table thead th{font-size:10px!important;padding:10px 8px!important}
  .fin-grid-v163 .fin-register-table td{height:38px!important}
  .fin-grid-v163 .fin-register-table :is(input,select){min-height:38px!important;padding:7px 8px!important}
}


/* v0.3.164 — paint the entire negative contract remainder CELL, not only its
   number. Override zebra stripes, hover states and the totals-row background. */
.fin-grid-v163 .fin-overview-161 tbody td.fin-over-budget,
.fin-grid-v163 .fin-overview-161 tbody tr:hover td.fin-over-budget,
.fin-grid-v163 .fin-overview-161 tfoot td.fin-over-budget {
  background:rgba(194,54,65,.26)!important;
  color:#ffb5b9!important;
  font-weight:750!important;
  box-shadow:inset 3px 0 0 #e76b73;
}
html[data-theme="light"] .fin-grid-v163 .fin-overview-161 tbody td.fin-over-budget,
html[data-theme="light"] .fin-grid-v163 .fin-overview-161 tbody tr:hover td.fin-over-budget,
html[data-theme="light"] .fin-grid-v163 .fin-overview-161 tfoot td.fin-over-budget {
  background:rgba(215,56,72,.17)!important;
  color:#9b2633!important;
  box-shadow:inset 3px 0 0 #c83d4b;
}


/* v0.3.165 — responsive 13-inch laptop geometry for the financial act registry.
   The previous fixed min-width of 1820px wasted space on MacBook screens.
   Keep horizontal scrolling only for genuinely narrow viewports. */
.fin-register-table .fin-col-compact{display:none}
@media (max-width:1750px) and (min-width:761px){
  .fin-grid-v163 .fin-register-table{
    width:100%!important;
    min-width:960px!important;
    table-layout:fixed!important;
  }
  /* 14 columns = 100%. Widths track their actual content rather than
     historic min-widths; on view-only pages the action column is absent. */
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(1){width:3.7%}
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(2){width:3.7%}
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(3){width:14.0%}
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(4){width:8.0%}
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(5){width:8.5%}
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(6){width:4.9%}
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(7){width:5.2%}
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(8){width:4.9%}
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(9){width:9.3%}
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(10){width:9.5%}
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(11){width:9.5%}
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(12){width:9.7%}
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(13){width:6.2%}
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(14){width:2.9%}
  .fin-grid-v163 .fin-register-table tr > :is(td,th){min-width:0!important;max-width:none!important;box-sizing:border-box}
  .fin-grid-v163 .fin-register-table thead th{
    font-size:9px!important;letter-spacing:.015em!important;
    padding:8px 2px!important;line-height:1.22!important;
    overflow-wrap:normal;
  }
  .fin-grid-v163 .fin-register-table .fin-col-full{display:none}
  .fin-grid-v163 .fin-register-table .fin-col-compact{display:inline}
  .fin-grid-v163 .fin-register-table td{height:36px!important;overflow:hidden}
  .fin-grid-v163 .fin-register-table :is(input,select){
    display:block;width:100%;min-width:0!important;min-height:36px!important;
    padding:5px 3px!important;font-size:11px!important;
    text-overflow:ellipsis;overflow:hidden;white-space:nowrap;
  }
  .fin-grid-v163 .fin-register-table select{
    appearance:none;-webkit-appearance:none;
    padding-right:14px!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 4 3-4' fill='none' stroke='%2394abb0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")!important;
    background-repeat:no-repeat!important;
    background-size:10px 10px!important;
    background-position:right 2px center!important;
    cursor:pointer;
  }
  .fin-grid-v163 .fin-register-table td.money{padding:0 4px!important;font-size:11px!important}
  .fin-grid-v163 .fin-register-table .fin-row-net{white-space:nowrap}
  .fin-grid-v163 .fin-register-table .fin-remove{
    display:block;width:100%;min-height:36px;padding:0;
  }
  .fin-grid-v163 .fin-register-table .fin-month-total :is(th,td){
    padding:8px 4px!important;height:34px!important;font-size:11px!important;
  }
  .fin-grid-v163 .fin-register-table .fin-month-total th{overflow:hidden;text-overflow:ellipsis}
}
/* Preserve the final status/delete columns if actions are unavailable. */
@media (max-width:1750px) and (min-width:761px){
  .fin-grid-v163 .fin-register-table .fin-registry-columns col:nth-child(13):last-child{width:9.1%}
}
/* Small tablets/phones use the original scrollable spreadsheet, not illegible cells. */

/* v0.3.166 — denser application chrome. Sticky offsets are measured from the
   real heights by base.html, so the new geometry also works on Safari. */
body:has(.sd-app-shell) .topbar{height:56px!important}
body:has(.sd-app-shell) .topbar-inner{padding:0 12px!important}
body:has(.sd-app-shell) .brand{font-size:19px!important;gap:8px}
body:has(.sd-app-shell) .brand-mark{width:33px!important;height:33px!important;border-radius:9px}
body:has(.sd-app-shell) .account{gap:8px}
.sd-app-shell .sd-workspace-context{min-height:42px!important;padding:5px 12px!important;gap:9px!important}
.sd-app-shell .sd-workspace-context .sd-context-part{padding:4px 7px!important}
.sd-app-shell .sd-sidebar{padding-top:9px!important}
.sd-sidebar .sd-side-main{gap:2px!important}
.sd-sidebar .sd-side-link,.sd-sidebar .sd-object-nav-simple .sd-side-link{padding:7px 8px!important;min-height:31px!important}
.sd-sidebar .sd-accordion{margin:1px 0!important}
.sd-sidebar .sd-accordion-heading{padding:9px 9px!important}
.sd-sidebar .sd-accordion-item{padding:7px 5px!important;min-height:32px!important}
.sd-sidebar .sd-accordion-selection{margin:2px 5px 6px!important;padding:7px 9px!important}
.sd-sidebar .sd-object-nav-simple{margin-top:9px!important;padding-top:8px!important;gap:1px!important}
.sd-sidebar .sd-global-library{margin:7px 0 8px!important;padding:6px 0!important}
@media(max-width:820px){
  body:has(.sd-app-shell) .topbar{height:56px!important}
  .sd-app-shell .sd-workspace-context{flex-wrap:wrap;gap:4px 7px!important;min-height:0!important;padding:6px 10px!important}
}

/* Wider table working area without changing unrelated screens. */
body:has(.fin-page) .sd-app-shell .sd-workarea>main{padding-left:10px!important;padding-right:10px!important;padding-top:12px!important}
.fin-page .fin-filterbar{padding:4px 0 7px!important}
.fin-page .fin-tabs{margin:2px 0 8px!important}
.fin-page .fin-table-scroll{border-radius:7px!important}
.fin-grid-v163 .fin-unified-table thead th{padding:8px 6px!important;font-size:10px!important;letter-spacing:.04em!important}
.fin-grid-v163 .fin-unified-table :is(td,tbody th){padding:8px 6px}
.fin-grid-v163 .fin-unified-table tfoot :is(th,td){padding:9px 6px}
.fin-grid-v163 .fin-register-table :is(input,select){min-height:34px!important;padding:5px 5px!important;font-size:11.5px!important}
.fin-grid-v163 .fin-register-table td{height:34px!important}
.fin-grid-v163 .fin-register-table td.money{padding:0 5px!important}
.fin-grid-v163 .fin-summary-table td{padding:7px 5px}
.fin-grid-v163 .fin-overview-161 td{padding:8px 7px}

/* Amber-yellow monthly subtotal without the dark brown/green blending of
   earlier row + cell backgrounds. Keep every cell the SAME opaque color. */
.fin-grid-v163 .fin-register-table tbody tr.fin-month-total,
.fin-grid-v163 .fin-register-table tbody tr.fin-month-total:hover{background:#dfd078!important}
.fin-grid-v163 .fin-register-table tbody tr.fin-month-total > :is(th,td),
.fin-v157 .fin-register-table tbody tr.fin-month-total > :is(th,td){
  background:#dfd078!important;color:#263325!important;
  border-color:#bea943!important;border-top:1px solid #b9a440!important;
  font-weight:750!important;box-shadow:none!important;
}
.fin-grid-v163 .fin-register-table tbody tr.fin-month-total small{color:#625b2f!important}
html[data-theme="light"] .fin-grid-v163 .fin-register-table tbody tr.fin-month-total,
html[data-theme="light"] .fin-grid-v163 .fin-register-table tbody tr.fin-month-total > :is(th,td){background:#fff0a8!important;color:#4c440d!important}

/* Negative remainder: red GLYPHS only, no full-cell tint. */
.fin-grid-v163 .fin-overview-161 tbody td.fin-over-budget,
.fin-grid-v163 .fin-overview-161 tbody tr:hover td.fin-over-budget{
  background:transparent!important;color:#ff8f94!important;font-weight:750!important;box-shadow:none!important;
}
.fin-grid-v163 .fin-overview-161 tfoot td.fin-over-budget{
  background:rgba(54,143,130,.12)!important;color:#ff8f94!important;
  font-weight:750!important;box-shadow:none!important;
}
html[data-theme="light"] .fin-grid-v163 .fin-overview-161 tbody td.fin-over-budget,
html[data-theme="light"] .fin-grid-v163 .fin-overview-161 tbody tr:hover td.fin-over-budget{background:transparent!important;color:#ba2639!important;box-shadow:none!important}
html[data-theme="light"] .fin-grid-v163 .fin-overview-161 tfoot td.fin-over-budget{background:rgba(54,143,130,.12)!important;color:#ba2639!important;box-shadow:none!important}

/* Compact accessible action toolbar: selection is per row, no delete column. */
.fin-act-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-height:36px;margin:0 0 7px}
.fin-act-toolbar form{margin:0}
.fin-selected-label{font-size:11px;color:var(--muted);margin-right:5px}
.fin-action-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:32px;padding:6px;border:1px solid var(--line);
  border-radius:7px;background:rgba(53,148,135,.09);color:#55bbad;cursor:pointer;
}
.fin-action-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.fin-action-icon:hover:not(:disabled){border-color:#50ae9e;background:rgba(53,148,135,.18)}
.fin-action-icon.fin-action-danger{color:#e68588;background:rgba(189,75,84,.07)}
.fin-action-icon.fin-action-danger:hover:not(:disabled){background:rgba(189,75,84,.18);border-color:#df8289}
.fin-action-icon:disabled{opacity:.4;cursor:not-allowed}
.fin-action-icon:focus-visible,.fin-act-radio:focus-visible{outline:2px solid #49b6a7;outline-offset:2px}
.fin-grid-v163 .fin-register-table .fin-select-col{width:30px!important;min-width:30px!important;max-width:30px!important;text-align:center!important;padding:0!important}
.fin-grid-v163 .fin-register-table .fin-select-col > .fin-act-radio{
  appearance:none;-webkit-appearance:none;display:inline-block;width:15px!important;height:15px!important;
  min-width:15px!important;min-height:15px!important;padding:0!important;
  border:1px solid #738d92!important;border-radius:4px!important;
  background:transparent!important;vertical-align:middle;cursor:pointer;
}
.fin-grid-v163 .fin-register-table .fin-select-col > .fin-act-radio:checked{
  background:#4fb7a6!important;border-color:#4fb7a6!important;
  box-shadow:inset 0 0 0 3px #15343d!important;
}
.fin-grid-v163 .fin-register-table .fin-act-selected:not(.fin-month-total){background:rgba(76,174,160,.17)!important}
.fin-grid-v163 .fin-register-table .fin-new-row .fin-select-col{color:#54b8a8}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* v165 table sizing retained on MacBook, but the first cell is now SELECT,
   the 14th is STATUS. In read-only mode, the original 13 columns remain. */
@media(max-width:1750px) and (min-width:761px){
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(1){width:2.9%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(2){width:3.7%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(3){width:3.7%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(4){width:14%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(5){width:8%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(6){width:8.5%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(7){width:4.9%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(8){width:5.2%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(9){width:4.9%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(10){width:9.3%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(11){width:9.5%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(12){width:9.5%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(13){width:9.7%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(14){width:6.2%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns:not(.is-editable) col:nth-child(13){width:9.1%}
}
@media(max-width:760px){
 .fin-grid-v163 .fin-register-table{min-width:1310px!important}
 .fin-grid-v163 .fin-register-table .fin-select-col{width:30px!important}
 .fin-page .fin-act-toolbar{justify-content:flex-start}
}
/* Compact mobile header is one row: hidden desktop navigation must not
   retain the old two-row grid footprint when the sidebar shell is active. */
@media(max-width:820px){
 body:has(.sd-app-shell) .topbar-inner{display:flex!important;height:100%!important;grid-template-rows:none!important;padding:0 10px!important}
}
/* Ensure four-digit years remain fully readable with the selection control. */
@media(max-width:1750px) and (min-width:761px){
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(1){width:2.9%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(2){width:4.4%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(3){width:4.2%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(4){width:14%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(5){width:7.6%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(6){width:7.7%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(7){width:4.6%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(8){width:5%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(9){width:4.8%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(10){width:9%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(11){width:9.2%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(12){width:9.2%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(13){width:9.2%}
 .fin-grid-v163 .fin-register-table .fin-registry-columns.is-editable col:nth-child(14){width:8.2%}
}


/* v0.3.167 — concise KБ-3 list: contract x three rows, with exactly three
   date-range amount columns. Reuses the hidden-work-acts grid visual language. */
.fin-grid-v163 .fin-kb3-compact{
  width:100%!important;min-width:0!important;table-layout:fixed!important;
  white-space:normal;font-variant-numeric:tabular-nums;
}
.fin-grid-v163 .fin-kb3-compact col.fin-kb3-desc{width:43%}
.fin-grid-v163 .fin-kb3-compact col.fin-kb3-value{width:19%}
.fin-grid-v163 .fin-kb3-compact th,
.fin-grid-v163 .fin-kb3-compact td{min-width:0!important;max-width:none!important}
.fin-grid-v163 .fin-kb3-compact thead th{
  position:static!important;text-align:center!important;
  font-size:11px!important;padding:10px 8px!important;
}
.fin-grid-v163 .fin-kb3-compact thead th:first-child{
  text-align:left!important;min-width:0!important;
}
.fin-grid-v163 .fin-kb3-compact tbody :is(th,td){
  padding:9px 10px!important;vertical-align:middle!important;
}
.fin-grid-v163 .fin-kb3-compact tbody th.fin-kb3-label{
  text-align:left!important;white-space:normal;
  font-size:12px;font-weight:500;
}
.fin-grid-v163 .fin-kb3-compact .fin-kb3-contract-start > :is(th,td){
  border-top:2px solid rgba(113,170,166,.45);
}
.fin-grid-v163 .fin-kb3-compact tbody tr:first-child.fin-kb3-contract-start > :is(th,td){
  border-top:0;
}
.fin-grid-v163 .fin-kb3-compact .fin-kb3-contract-line{
  display:flex;align-items:baseline;column-gap:9px;row-gap:2px;
  flex-wrap:wrap;margin-bottom:5px;line-height:1.4;
}
.fin-grid-v163 .fin-kb3-compact .fin-kb3-contract-line strong{font-weight:650}
.fin-grid-v163 .fin-kb3-compact .fin-kb3-contract-line span{
  color:var(--muted);font-size:11px;
}
.fin-grid-v163 .fin-kb3-compact .fin-kb3-open{
  font-size:11px;margin-left:auto;
}
.fin-grid-v163 .fin-kb3-compact .fin-kb3-metric{
  display:block;font-weight:650;
}
.fin-grid-v163 .fin-kb3-compact .fin-kb3-total-value{font-weight:650}
.fin-grid-v163 .fin-kb3-compact .fin-kb3-materials{color:var(--muted)}
.fin-grid-v163 .fin-kb3-compact .fin-kb3-contractor th.fin-kb3-label{font-weight:600}
.fin-grid-v163 .fin-kb3-compact .fin-warn{display:block;color:#d1a35c;font-size:10px;margin-top:3px}
.fin-grid-v163 .fin-kb3-compact tfoot :is(th,td){padding:9px 10px!important}
.fin-grid-v163 .fin-kb3-compact tfoot th{text-align:left!important;white-space:normal}
.fin-grid-v163 .fin-kb3-compact tfoot .fin-kb3-total-group > *{
  border-top:2px solid rgba(64,154,144,.45);
}
@media(max-width:760px){
  .fin-grid-v163 .fin-kb3-compact{min-width:570px!important}
  .fin-grid-v163 .fin-kb3-compact col.fin-kb3-desc{width:44%}
  .fin-grid-v163 .fin-kb3-compact col.fin-kb3-value{width:18.666%}
  .fin-grid-v163 .fin-kb3-compact tbody :is(th,td){padding:8px 7px!important}
  .fin-grid-v163 .fin-kb3-compact .fin-kb3-contract-line{gap:4px 7px}
}

/* Keep each three-line contract visually together instead of alternating
   background every row (the default zebra rule applies per <tr>). */
.fin-grid-v163 .fin-kb3-compact tbody tr:not(:hover){background:transparent!important}
.fin-grid-v163 .fin-kb3-compact tbody tr.fin-kb3-group-light:not(:hover){background:rgba(65,132,146,.055)!important}
.fin-grid-v163 .fin-kb3-compact tbody tr:hover{background:rgba(65,150,135,.11)!important}
html[data-theme="light"] .fin-grid-v163 .fin-kb3-compact tbody tr.fin-kb3-group-light:not(:hover){background:rgba(65,132,146,.045)!important}


/* v0.3.168 — construction contracts: same compact registry styling and
   selected-row action toolbar used by the acts on hidden works. */
.fin-contracts-v168 .fin-contracts-heading{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  min-height:35px;margin:0 0 5px;border-bottom:1px solid var(--line);
}
.fin-contracts-v168 .fin-contracts-heading .kicker{font-size:11px;letter-spacing:.095em}
.fin-contracts-v168 .fin-contracts-heading .btn{
  font-size:11px;min-height:30px;padding:6px 12px;border-radius:7px;
}
.fin-contracts-v168 .fin-contracts-toolbar{
  display:flex;align-items:center;gap:12px;min-height:40px;margin:0 0 7px;
  border-bottom:1px solid var(--line);padding:2px 4px;
}
.fin-contracts-v168 .fin-contracts-actions{display:flex;align-items:center;gap:6px}
.fin-contracts-v168 .fin-contracts-actions form{margin:0;display:flex}
.fin-contracts-v168 .fin-contracts-toolbar .table-action-btn{
  width:34px;min-width:34px;height:32px;padding:0;border-radius:7px;
}
.fin-contracts-v168 .fin-contracts-toolbar .action-svg{width:18px;height:18px}
.fin-contracts-v168 .fin-contracts-scroll{border-radius:7px!important;max-height:78vh}
.fin-grid-v163.fin-contracts-v168 .fin-contracts-table{
  table-layout:fixed;min-width:830px;width:100%;white-space:normal;
  font-size:12px;line-height:1.35;
}
.fin-contracts-v168 .fin-contracts-table col.fin-contract-select-col{width:34px}
.fin-contracts-v168 .fin-contracts-table col.fin-contract-party-col{width:13%}
.fin-contracts-v168 .fin-contracts-table col.fin-contract-number-col{width:11%}
.fin-contracts-v168 .fin-contracts-table col.fin-contract-amount-col{width:15%}
.fin-contracts-v168 .fin-contracts-table col.fin-contract-work-col{width:10%}
.fin-contracts-v168 .fin-contracts-table col.fin-contract-customer-col{width:14%}
.fin-contracts-v168 .fin-contracts-table col.fin-contract-tax-col{width:12%}
.fin-contracts-v168 .fin-contracts-table col.fin-contract-signers-col{width:22%}
.fin-grid-v163.fin-contracts-v168 .fin-contracts-table thead th{
  font-size:10px!important;line-height:1.3;padding:9px 6px!important;
  text-align:center!important;font-weight:650!important;
}
.fin-grid-v163.fin-contracts-v168 .fin-contracts-table tbody td{
  box-sizing:border-box;min-width:0!important;max-width:none!important;
  padding:8px 7px!important;font-size:12px;line-height:1.35;
  vertical-align:middle;overflow-wrap:anywhere;
}
.fin-grid-v163.fin-contracts-v168 .fin-contracts-table tbody td.money{
  white-space:nowrap;text-align:right!important;overflow-wrap:normal;font-weight:550;
}
.fin-contracts-v168 .fin-contracts-table tbody .fin-contract-party{font-weight:600!important}
.fin-contracts-v168 .fin-contracts-table tbody .fin-contract-number small{
  display:block;color:var(--muted);margin-top:3px;font-size:10.5px;font-weight:400;
}
.fin-contracts-v168 .fin-contracts-table tbody .fin-contract-signers .fin-mini-label{
  display:block;font-size:10.5px;line-height:1.35;margin:2px 0;color:var(--muted);
}
.fin-contracts-v168 .fin-contracts-table tbody .fin-contract-select-cell{
  padding:0!important;text-align:center!important;width:34px!important;min-width:34px!important;
}
.fin-contracts-v168 .fin-contracts-table .fin-contract-select{
  appearance:none;-webkit-appearance:none;display:inline-block;width:16px;height:16px;
  margin:0;vertical-align:middle;cursor:pointer;border:1px solid #75919a;
  border-radius:4px;background:transparent;position:relative;
}
.fin-contracts-v168 .fin-contracts-table .fin-contract-select:checked{
  background:#50b6a6;border-color:#50b6a6;
  box-shadow:inset 0 0 0 3px #15343d;
}
.fin-contracts-v168 .fin-contracts-table .fin-contract-select:focus-visible,
.fin-contracts-v168 .fin-contracts-toolbar .table-action-btn:focus-visible{
  outline:2px solid #54b9a9;outline-offset:2px;
}
.fin-grid-v163.fin-contracts-v168 .fin-contracts-table tbody tr.fin-contract-selected,
.fin-grid-v163.fin-contracts-v168 .fin-contracts-table tbody tr.fin-contract-selected:hover{
  background:rgba(73,172,157,.19)!important;
}
.fin-contracts-v168 .fin-contracts-table .fin-contract-choice-row{cursor:pointer}
html[data-theme="light"] .fin-contracts-v168 .fin-contracts-table .fin-contract-select:checked{
  box-shadow:inset 0 0 0 3px #e6f4f0;
}
@media(max-width:760px){
 .fin-contracts-v168 .fin-contracts-heading .kicker{font-size:10px}
 .fin-grid-v163.fin-contracts-v168 .fin-contracts-table{min-width:830px}
}


/* v0.3.169 — row selection without checkbox and a contracts total row. */
.fin-contracts-v169 .fin-contracts-table col.fin-contract-party-col{width:13.5%}
.fin-contracts-v169 .fin-contracts-table col.fin-contract-number-col{width:11%}
.fin-contracts-v169 .fin-contracts-table col.fin-contract-amount-col{width:15%}
.fin-contracts-v169 .fin-contracts-table col.fin-contract-work-col{width:10%}
.fin-contracts-v169 .fin-contracts-table col.fin-contract-customer-col{width:14%}
.fin-contracts-v169 .fin-contracts-table col.fin-contract-tax-col{width:12%}
.fin-contracts-v169 .fin-contracts-table col.fin-contract-signers-col{width:24.5%}
.fin-contracts-v169 .fin-contract-choice-row{cursor:pointer}
.fin-contracts-v169 .fin-contract-choice-row:focus-visible{
  outline:2px solid #54b9a9;outline-offset:-2px;
}
.fin-grid-v163.fin-contracts-v169 .fin-contracts-table tfoot tr.fin-contract-total-row > *{
  padding:10px 7px!important;
  background:rgba(56,145,132,.13)!important;
  border-top:2px solid rgba(70,172,154,.40);
  font-size:12px!important;
  font-weight:700!important;
  vertical-align:middle;
}
.fin-grid-v163.fin-contracts-v169 .fin-contracts-table tfoot tr.fin-contract-total-row th{
  text-align:left!important;white-space:normal;
}
.fin-grid-v163.fin-contracts-v169 .fin-contracts-table tfoot tr.fin-contract-total-row td.money{
  text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap;
}
.fin-grid-v163.fin-contracts-v169 .fin-contracts-table tfoot .fin-contract-total-note{
  color:var(--muted);font-size:11px!important;font-weight:400!important;
}

/* v0.3.170: compact contracts table */
.fin-grid-v163.fin-contracts-v170 .fin-contracts-table{table-layout:fixed;width:100%;min-width:0}
.fin-grid-v163.fin-contracts-v170 .fin-contracts-table th,.fin-grid-v163.fin-contracts-v170 .fin-contracts-table td{padding:9px 10px!important;vertical-align:middle;overflow-wrap:anywhere}
.fin-contracts-v170 .fin-contracts-table .fin-contract-entity small,.fin-contracts-v170 .fin-contracts-table .fin-contract-number small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.3;font-weight:400}
.fin-contracts-v170 .fin-contracts-table .money{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.fin-grid-v163.fin-contracts-v170 .fin-contracts-table tfoot tr.fin-contract-total-row>*{padding:10px!important;background:rgba(56,145,132,.13)!important;border-top:2px solid rgba(70,172,154,.40);font-weight:700}
.fin-contracts-v170 .fin-contract-choice-row{cursor:pointer}
.fin-contracts-v170 .fin-contract-choice-row:focus-visible{outline:2px solid #54b9a9;outline-offset:-2px}
@media(max-width:760px){.fin-grid-v163.fin-contracts-v170 .fin-contracts-table{min-width:680px}}

/* v0.3.171 — laptop-friendly four-column contracts table.
   Explicitly override obsolete minimum widths from the earlier seven-column view. */
.fin-grid-v163.fin-contracts-v171{max-width:none;min-width:0;width:100%}
.fin-contracts-v171 .fin-contracts-scroll{width:100%;min-width:0;max-width:100%;overflow-x:auto}
.fin-grid-v163.fin-contracts-v171 .fin-contracts-table{
  table-layout:fixed;width:100%;min-width:0!important;margin:0!important;
  border-collapse:collapse;font-size:12px;line-height:1.3;
}
.fin-contracts-v171 .fin-contracts-table col.fin-col-contract{width:22%}
.fin-contracts-v171 .fin-contracts-table col.fin-col-customer{width:31%}
.fin-contracts-v171 .fin-contracts-table col.fin-col-contractor{width:31%}
.fin-contracts-v171 .fin-contracts-table col.fin-col-sum{width:16%}
.fin-grid-v163.fin-contracts-v171 .fin-contracts-table :is(th,td){
  box-sizing:border-box;min-width:0!important;max-width:none!important;
  padding:8px 7px!important;vertical-align:middle;overflow-wrap:anywhere;
}
.fin-grid-v163.fin-contracts-v171 .fin-contracts-table thead th{
  padding:9px 6px!important;font-size:10px!important;line-height:1.2;
}
.fin-grid-v163.fin-contracts-v171 .fin-contracts-table tbody td{
  font-size:12px!important;line-height:1.3!important;white-space:normal;
}
.fin-grid-v163.fin-contracts-v171 .fin-contracts-table tbody td.money,
.fin-grid-v163.fin-contracts-v171 .fin-contracts-table tfoot td.money{
  text-align:right!important;white-space:nowrap!important;overflow-wrap:normal!important;
  font-size:12px!important;font-variant-numeric:tabular-nums;
}
.fin-contracts-v171 .fin-contracts-table :is(.fin-contract-entity,.fin-contract-number) small{
  font-size:10.5px;line-height:1.2;margin-top:3px;
}
.fin-grid-v163.fin-contracts-v171 .fin-contracts-table tfoot tr.fin-contract-total-row>*{
  padding:9px 7px!important;
}
@media(min-width:761px) and (max-width:1450px){
  .fin-contracts-v171 .fin-contracts-table col.fin-col-contract{width:21%}
  .fin-contracts-v171 .fin-contracts-table col.fin-col-customer{width:32%}
  .fin-contracts-v171 .fin-contracts-table col.fin-col-contractor{width:31%}
  .fin-contracts-v171 .fin-contracts-table col.fin-col-sum{width:16%}
  .fin-grid-v163.fin-contracts-v171 .fin-contracts-table :is(th,td){padding-left:6px!important;padding-right:6px!important}
}
@media(max-width:760px){
  .fin-grid-v163.fin-contracts-v171 .fin-contracts-table{min-width:640px!important}
}
.fin-grid-v163.fin-contracts-v171 .fin-contracts-table tbody td.fin-contract-entity{
  text-align:left!important;white-space:normal!important;
}

/* v0.3.172 — hidden-work acts register: fit nine columns in the laptop workarea.
   The previous unconditional 1260px floor clipped Status/selection on 13-inch
   MacBooks. Header and body MUST use identical column geometry; mobile cards
   and small-screen horizontal scroll retain their previous layout. */
@media (min-width: 761px) {
  .sd-app-shell #actsHeaderViewport,
  .sd-app-shell #actsTableWrap { box-sizing:border-box; width:100%!important; max-width:100%!important; }
  .sd-app-shell #actsHeaderViewport #actsHeaderTrack { width:100%!important; min-width:0!important; }
  .sd-app-shell #actsHeaderViewport .acts-header-table,
  .sd-app-shell #actsTableWrap .selectable-acts-table {
    display:table!important; width:100%!important; min-width:0!important;
    max-width:100%!important; table-layout:fixed!important;
  }
  .sd-app-shell #actsHeaderViewport .acts-header-table thead th {
    box-sizing:border-box; padding:9px 4px!important; white-space:normal!important;
    overflow-wrap:normal; word-break:normal; font-size:11px!important;
    line-height:1.25!important; letter-spacing:.015em!important;
  }
  .sd-app-shell #actsTableWrap .selectable-acts-table tbody td {
    box-sizing:border-box; min-width:0!important;
    padding:7px 4px!important; font-size:12px!important;
    line-height:1.35!important; overflow-wrap:anywhere;
  }
  .sd-app-shell #actsTableWrap .selectable-acts-table :is(.materials-cell,.axes-cell) {
    min-width:0!important; max-width:none!important;
    white-space:normal!important; overflow-wrap:anywhere;
  }
  .sd-app-shell #actsTableWrap .selectable-acts-table .work-cell { text-align:left!important; }
  .sd-app-shell #actsTableWrap .selectable-acts-table .axis-analysis-cell {
    padding-left:3px!important; padding-right:3px!important;
  }
  .sd-app-shell #actsTableWrap .selectable-acts-table .axis-check-line {font-size:10.5px!important;line-height:1.27!important;}
  .sd-app-shell #actsTableWrap .selectable-acts-table td.volume-cell{white-space:normal!important;}
  .sd-app-shell #actsTableWrap .selectable-acts-table .act-work-volume-form{width:100%;min-width:0;gap:1px;justify-content:center;}
  .sd-app-shell #actsTableWrap .selectable-acts-table .act-work-volume-form .volume-value-button{flex:1 1 0;min-width:0;width:0;max-width:none;text-overflow:ellipsis;font-size:11.5px!important;}
  .sd-app-shell #actsTableWrap .selectable-acts-table .act-work-volume-form .volume-unit-select{flex:0 0 28px;width:28px!important;font-size:11px!important;}
  .sd-app-shell #actsTableWrap .selectable-acts-table .act-work-volume-form .volume-save-status{min-width:0;}
  .sd-app-shell #actsTableWrap .selectable-acts-table td:nth-child(8) .status {
    box-sizing:border-box;max-width:100%;white-space:normal!important;
    overflow-wrap:normal; padding:4px 5px!important;line-height:1.15!important;
    font-size:10px!important;
  }
  .sd-app-shell #actsTableWrap .selectable-acts-table td.act-select-cell { padding-left:1px!important; padding-right:1px!important; }
  .sd-app-shell #actsTableWrap .selectable-acts-table .act-select-checkbox{max-width:17px;width:17px;height:17px;}
}
@media (min-width:761px) {
  .sd-app-shell #actsHeaderViewport .acts-header-table col.c-num,
  .sd-app-shell #actsTableWrap .selectable-acts-table col.c-num {width:3.4%!important;}
  .sd-app-shell #actsHeaderViewport .acts-header-table th:nth-child(1),
  .sd-app-shell #actsTableWrap .selectable-acts-table td:nth-child(1) {width:3.4%!important;}
}
@media (min-width:761px) {
  .sd-app-shell #actsHeaderViewport .acts-header-table col.c-work,
  .sd-app-shell #actsTableWrap .selectable-acts-table col.c-work {width:19.7%!important;}
  .sd-app-shell #actsHeaderViewport .acts-header-table th:nth-child(2),
  .sd-app-shell #actsTableWrap .selectable-acts-table td:nth-child(2) {width:19.7%!important;}
}
@media (min-width:761px) {
  .sd-app-shell #actsHeaderViewport .acts-header-table col.c-axes,
  .sd-app-shell #actsTableWrap .selectable-acts-table col.c-axes {width:15.6%!important;}
  .sd-app-shell #actsHeaderViewport .acts-header-table th:nth-child(3),
  .sd-app-shell #actsTableWrap .selectable-acts-table td:nth-child(3) {width:15.6%!important;}
}
@media (min-width:761px) {
  .sd-app-shell #actsHeaderViewport .acts-header-table col.c-axis-check,
  .sd-app-shell #actsTableWrap .selectable-acts-table col.c-axis-check {width:11.7%!important;}
  .sd-app-shell #actsHeaderViewport .acts-header-table th:nth-child(4),
  .sd-app-shell #actsTableWrap .selectable-acts-table td:nth-child(4) {width:11.7%!important;}
}
@media (min-width:761px) {
  .sd-app-shell #actsHeaderViewport .acts-header-table col.c-volume,
  .sd-app-shell #actsTableWrap .selectable-acts-table col.c-volume {width:9.6%!important;}
  .sd-app-shell #actsHeaderViewport .acts-header-table th:nth-child(5),
  .sd-app-shell #actsTableWrap .selectable-acts-table td:nth-child(5) {width:9.6%!important;}
}
@media (min-width:761px) {
  .sd-app-shell #actsHeaderViewport .acts-header-table col.c-dates,
  .sd-app-shell #actsTableWrap .selectable-acts-table col.c-dates {width:10.2%!important;}
  .sd-app-shell #actsHeaderViewport .acts-header-table th:nth-child(6),
  .sd-app-shell #actsTableWrap .selectable-acts-table td:nth-child(6) {width:10.2%!important;}
}
@media (min-width:761px) {
  .sd-app-shell #actsHeaderViewport .acts-header-table col.c-mat,
  .sd-app-shell #actsTableWrap .selectable-acts-table col.c-mat {width:17.8%!important;}
  .sd-app-shell #actsHeaderViewport .acts-header-table th:nth-child(7),
  .sd-app-shell #actsTableWrap .selectable-acts-table td:nth-child(7) {width:17.8%!important;}
}
@media (min-width:761px) {
  .sd-app-shell #actsHeaderViewport .acts-header-table col.c-status,
  .sd-app-shell #actsTableWrap .selectable-acts-table col.c-status {width:9%!important;}
  .sd-app-shell #actsHeaderViewport .acts-header-table th:nth-child(8),
  .sd-app-shell #actsTableWrap .selectable-acts-table td:nth-child(8) {width:9%!important;}
}
@media (min-width:761px) {
  .sd-app-shell #actsHeaderViewport .acts-header-table col.c-select,
  .sd-app-shell #actsTableWrap .selectable-acts-table col.c-select {width:3%!important;}
  .sd-app-shell #actsHeaderViewport .acts-header-table th:nth-child(9),
  .sd-app-shell #actsTableWrap .selectable-acts-table td:nth-child(9) {width:3%!important;}
}

/* v0.3.173 — legible financial registers and integrated column filters.
   Keep the separate mobile horizontal-scroll experience unchanged. */
.fin-v173 .fin-unified-table :is(td.money,th.money,input.money){font-variant-numeric:tabular-nums lining-nums}
.fin-grid-v163.fin-v173 .fin-register-table{
  table-layout:fixed!important;width:100%!important;min-width:940px!important;
  font-size:11.5px;line-height:1.35;
}
.fin-grid-v163.fin-v173 .fin-register-table .fin-registry-columns-v173 col:nth-child(1){width:4.4%}
.fin-grid-v163.fin-v173 .fin-register-table .fin-registry-columns-v173 col:nth-child(2){width:5.1%}
.fin-grid-v163.fin-v173 .fin-register-table .fin-registry-columns-v173 col:nth-child(3){width:15.2%}
.fin-grid-v163.fin-v173 .fin-register-table .fin-registry-columns-v173 col:nth-child(4){width:7.6%}
.fin-grid-v163.fin-v173 .fin-register-table .fin-registry-columns-v173 col:nth-child(5){width:8.7%}
.fin-grid-v163.fin-v173 .fin-register-table .fin-registry-columns-v173 col:nth-child(6){width:4.2%}
.fin-grid-v163.fin-v173 .fin-register-table .fin-registry-columns-v173 col:nth-child(7){width:4.5%}
.fin-grid-v163.fin-v173 .fin-register-table .fin-registry-columns-v173 col:nth-child(8){width:5%}
.fin-grid-v163.fin-v173 .fin-register-table .fin-registry-columns-v173 col:nth-child(9){width:9.6%}
.fin-grid-v163.fin-v173 .fin-register-table .fin-registry-columns-v173 col:nth-child(10){width:9.8%}
.fin-grid-v163.fin-v173 .fin-register-table .fin-registry-columns-v173 col:nth-child(11){width:9.8%}
.fin-grid-v163.fin-v173 .fin-register-table .fin-registry-columns-v173 col:nth-child(12){width:9.8%}
.fin-grid-v163.fin-v173 .fin-register-table .fin-registry-columns-v173 col:nth-child(13){width:6.3%}
.fin-grid-v163.fin-v173 .fin-register-table thead th{
  padding:7px 3px!important;font-size:10px!important;font-weight:700!important;
  text-align:center;line-height:1.25!important;letter-spacing:.01em!important;
  background:#142f39;color:#c1d5da;border-bottom:2px solid #36545a;
}
.fin-grid-v163.fin-v173 .fin-register-table thead th.fin-filter-head{
  padding:5px 2px!important;vertical-align:middle;
}
.fin-v173 .fin-filter-head > span{display:block;margin-bottom:3px;white-space:normal;line-height:1.2}
.fin-grid-v163.fin-v173 .fin-register-table thead th select.fin-header-filter{
  display:block!important;box-sizing:border-box;width:100%!important;min-width:0!important;
  min-height:21px!important;height:23px!important;
  padding:1px 12px 1px 3px!important;margin:0!important;
  font-size:10px!important;line-height:1.25!important;font-weight:500;
  border:1px solid rgba(111,160,162,.36)!important;border-radius:4px!important;
  background-color:rgba(40,83,92,.62)!important;color:#d6edeb!important;
  background-position:right 2px center!important;background-size:8px 8px!important;
  cursor:pointer;text-overflow:ellipsis;appearance:none;-webkit-appearance:none;
}
.fin-grid-v163.fin-v173 .fin-register-table thead th select.fin-header-filter:focus-visible{
  outline:2px solid #53bbae!important;outline-offset:1px;
}
.fin-v173 .fin-filter-head select option{color:#e1eeee;background:#13313a}
.fin-v173 .fin-header-contract-filter{max-width:100%;white-space:nowrap}
.fin-grid-v163.fin-v173 .fin-register-table tbody tr.fin-edit-row:not(.fin-new-row){cursor:default}
.fin-grid-v163.fin-v173 .fin-register-table tbody tr.fin-edit-row:focus-visible{
  outline:2px solid #51bbae;outline-offset:-2px;
}
.fin-grid-v163.fin-v173 .fin-register-table tbody tr.fin-edit-row.fin-act-selected:not(.fin-month-total){
  background:rgba(66,154,146,.17)!important;
}
.fin-grid-v163.fin-v173 .fin-register-table tbody tr.fin-edit-row >td{
  height:38px!important;vertical-align:middle;
}
.fin-grid-v163.fin-v173 .fin-register-table tbody tr.fin-edit-row >td:nth-child(n+9):nth-child(-n+12){
  font-variant-numeric:tabular-nums lining-nums;
}
.fin-grid-v163.fin-v173 .fin-register-table tbody tr.fin-edit-row input.money{
  text-align:right!important;font-variant-numeric:tabular-nums lining-nums;
  font-size:11.5px!important;letter-spacing:-.01em;
  padding:5px 3px!important;
}
.fin-grid-v163.fin-v173 .fin-register-table tbody tr.fin-edit-row td.fin-row-net{
  white-space:nowrap;font-size:11.5px!important;letter-spacing:-.01em;
}
.fin-grid-v163.fin-v173 .fin-register-table tbody tr.fin-month-total > :is(th,td){font-variant-numeric:tabular-nums}
html[data-theme="light"] .fin-grid-v163.fin-v173 .fin-register-table thead th{
  background:#e6f0ef!important;color:#31545b!important;border-bottom:2px solid #a3c9c7;
}
html[data-theme="light"] .fin-grid-v163.fin-v173 .fin-register-table thead th select.fin-header-filter{
  background-color:#fff!important;color:#244950!important;border-color:#9cbfbd!important;
}
html[data-theme="light"] .fin-v173 .fin-filter-head select option{color:#244950;background:#fff}
@media (max-width:760px){
  .fin-grid-v163.fin-v173 .fin-register-table{width:100%!important;min-width:1120px!important}
  .fin-grid-v163.fin-v173 .fin-register-table thead th{font-size:10px!important}
}


/* v0.3.174 - restore the 13-column financial register geometry.
   v173 inadvertently retained the former editable 14th col (checkbox), and
   its new column-sizing CSS matched a class never added to <colgroup>.
   Keep values readable; never hide the thirteenth/status column. */
.fin-grid-v163.fin-v174 .fin-register-table {
  width:100%!important;min-width:970px!important;max-width:100%!important;
  table-layout:fixed!important;border-collapse:collapse!important;
}
.fin-grid-v163.fin-v174 .fin-register-table .fin-registry-columns-v174 col:nth-child(1){width:5.2%!important}
.fin-grid-v163.fin-v174 .fin-register-table .fin-registry-columns-v174 col:nth-child(2){width:5.1%!important}
.fin-grid-v163.fin-v174 .fin-register-table .fin-registry-columns-v174 col:nth-child(3){width:15.7%!important}
.fin-grid-v163.fin-v174 .fin-register-table .fin-registry-columns-v174 col:nth-child(4){width:7.5%!important}
.fin-grid-v163.fin-v174 .fin-register-table .fin-registry-columns-v174 col:nth-child(5){width:9%!important}
.fin-grid-v163.fin-v174 .fin-register-table .fin-registry-columns-v174 col:nth-child(6){width:4.3%!important}
.fin-grid-v163.fin-v174 .fin-register-table .fin-registry-columns-v174 col:nth-child(7){width:4.6%!important}
.fin-grid-v163.fin-v174 .fin-register-table .fin-registry-columns-v174 col:nth-child(8){width:4.4%!important}
.fin-grid-v163.fin-v174 .fin-register-table .fin-registry-columns-v174 col:nth-child(9){width:9.2%!important}
.fin-grid-v163.fin-v174 .fin-register-table .fin-registry-columns-v174 col:nth-child(10){width:9.2%!important}
.fin-grid-v163.fin-v174 .fin-register-table .fin-registry-columns-v174 col:nth-child(11){width:9.2%!important}
.fin-grid-v163.fin-v174 .fin-register-table .fin-registry-columns-v174 col:nth-child(12){width:9.4%!important}
.fin-grid-v163.fin-v174 .fin-register-table .fin-registry-columns-v174 col:nth-child(13){width:7.2%!important}
.fin-grid-v163.fin-v174 .fin-register-table tr > :is(th,td){
  min-width:0!important;max-width:none!important;box-sizing:border-box;
}
.fin-grid-v163.fin-v174 .fin-register-table thead th{
  box-sizing:border-box;overflow:hidden;overflow-wrap:normal;
  font-size:10px!important;padding:7px 3px!important;line-height:1.2!important;
}
.fin-grid-v163.fin-v174 .fin-register-table thead th.fin-filter-head{padding:5px 3px!important;}
.fin-grid-v163.fin-v174 .fin-register-table thead th select.fin-header-filter{
  box-sizing:border-box;min-width:0!important;width:100%!important;
  font-size:10.5px!important;text-overflow:ellipsis!important;
  padding:2px 11px 2px 4px!important;
}
.fin-grid-v163.fin-v174 .fin-register-table tbody .fin-edit-row > td{
  overflow:hidden!important;box-sizing:border-box;
}
.fin-grid-v163.fin-v174 .fin-register-table tbody tr.fin-edit-row :is(input,select){
  min-width:0!important;width:100%!important;box-sizing:border-box;
  font-size:11.5px!important;
}
.fin-grid-v163.fin-v174 .fin-register-table tbody tr.fin-edit-row input.money{
  font-size:11.5px!important;letter-spacing:-.015em;
  padding:4px 3px!important;text-align:right!important;
}
.fin-grid-v163.fin-v174 .fin-register-table td.money.fin-row-net{
  font-size:11.5px!important;letter-spacing:-.015em;
  text-align:right!important;padding:0 4px!important;
}
.fin-grid-v163.fin-v174 .fin-register-table tbody tr.fin-month-total > :is(th,td){
  padding:8px 4px!important;overflow:hidden;
}
@media(max-width:1050px) and (min-width:761px){
  /* A narrow laptop viewport may scroll if the actual workspace becomes
     smaller than the readable 970px minimum (e.g. open secondary sidebar). */
  .fin-grid-v163.fin-v174 .fin-register-table{min-width:970px!important}
}
@media(max-width:760px){
  .fin-grid-v163.fin-v174 .fin-register-table{min-width:1120px!important}
}

/* v0.3.175: transfer unsigned hidden-work acts across working objects */
.sd-act-change-project{max-width:720px;margin:22px auto;padding:24px 26px;border:1px solid var(--line);border-radius:12px;background:var(--surface,transparent)}
.sd-act-change-project h1{font-size:22px;margin:14px 0 4px;font-weight:650}
.sd-act-change-project .sd-act-change-subtitle{color:var(--muted);font-size:13px;margin:0 0 20px}
.sd-act-change-info{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;margin:0 0 22px;font-size:14px}
.sd-act-change-info span{color:var(--muted)}
.sd-act-change-label{display:block;font-size:13px;font-weight:650;margin:0 0 8px}
.sd-act-change-project select{width:100%;max-width:100%;min-height:40px}
.sd-act-change-note{color:var(--muted);font-size:12px;line-height:1.55;margin:14px 0 18px}
.sd-act-change-warning{border:1px solid #be8640;border-radius:7px;padding:12px 14px;margin:14px 0;color:#c99345;font-size:13px}
@media(max-width:760px){.sd-act-change-project{margin:8px 0;padding:16px}.sd-act-change-info{grid-template-columns:1fr;gap:3px}}


/* v0.3.177 — dense, grouped object-details form. Only this page is affected. */
.project-form-v177{padding-top:12px;min-height:0;place-items:start center}
.project-form-v177 .project-formbox{width:min(100%,1040px);padding:22px 28px 20px;border-radius:13px}
.project-form-v177 .project-formbox form{margin-top:12px}
.project-form-v177 .project-form-title{margin:0 0 7px}
.project-form-v177 .project-form-title h1{margin:0;font-size:clamp(21px,2.2vw,25px);font-weight:630;letter-spacing:-.018em;line-height:1.3}
.project-form-v177 .project-form-title p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.project-form-v177 .object-form-section{padding:14px 0 12px;margin:0;border:0;border-bottom:1px solid var(--line)}
.project-form-v177 .object-form-section:first-of-type{padding-top:10px}
.project-form-v177 .object-form-section-head{gap:9px;align-items:center;margin:0 0 12px}
.project-form-v177 .object-form-section-head>span{flex:0 0 25px;width:25px;height:25px;background:rgba(70,145,126,.13);color:#477b70;border-radius:7px;font-size:10px}
.project-form-v177 .object-form-section-head h2{font-size:15px;font-weight:670;margin:0;line-height:1.25;letter-spacing:0;color:inherit}
.project-form-v177 .project-fields{gap:8px 12px}
.project-form-v177 .project-fields.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
.project-form-v177 .field{margin:0 0 9px;min-width:0}
.project-form-v177 .field>label{display:block;min-height:0;margin-bottom:4px;font-size:11.5px;font-weight:620;line-height:1.35;color:var(--muted)}
.project-form-v177 .field input:not([type="checkbox"]),
.project-form-v177 .field select,
.project-form-v177 .field textarea{width:100%;min-width:0;min-height:35px;box-sizing:border-box;padding:7px 10px;border-radius:7px;font-size:13px;line-height:1.35}
.project-form-v177 .field textarea{min-height:52px;height:52px;resize:vertical}
.project-form-v177 .field select{padding-right:25px}
.project-form-v177 .person-fields{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr) minmax(0,1.15fr);gap:8px 12px}
.project-form-v177 .person-fields .field{display:block;grid-template-rows:none;margin:0;min-width:0}
.project-form-v177 .person-fields .field>label{display:flex;align-items:flex-end;min-height:30px;margin:0 0 4px}
.project-form-v177 .project-people-section{border-bottom:0;padding-bottom:5px}
.project-form-v177 .project-person-group{padding:11px 0 12px;border-top:1px solid var(--line);margin:0}
.project-form-v177 .project-people-section > .object-form-section-head + .project-person-group{padding-top:0;border-top:0}
.project-form-v177 .project-person-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 9px}
.project-form-v177 .project-person-head h3{font-size:13px;font-weight:660;line-height:1.25;margin:0;color:inherit}
.project-form-v177 .project-designer-section{border-radius:0;padding-left:0;padding-right:0;margin-left:0;margin-right:0;background:none;transition:none}
.project-form-v177 .project-designer-section.is-excluded{background:rgba(190,50,65,.045);border-left:0;border-right:0;border-bottom:0}
.project-form-v177 .project-designer-toggle{font-size:11px;display:inline-flex;align-items:center;gap:7px;margin:0;color:var(--muted);font-weight:550;white-space:normal;line-height:1.25}
.project-form-v177 .project-designer-toggle input{width:15px;height:15px;margin:0;flex-shrink:0}
.project-form-v177 .project-form-actions{margin:7px 0 0;padding:13px 0 0;border-top:1px solid var(--line);gap:8px}
.project-form-v177 .project-form-actions .btn{min-height:36px;padding:8px 14px;border-radius:8px;font-size:12px}
.project-form-v177 .helptext{font-size:11px;margin-top:4px;line-height:1.3}
@media(max-width:850px){
 .project-form-v177 .project-formbox{padding:18px}
 .project-form-v177 .person-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .project-form-v177 .person-fields .field:first-child{grid-column:1/-1}
}
@media(max-width:540px){
 .project-form-v177{padding-top:2px}
 .project-form-v177 .project-formbox{padding:14px 12px}
 .project-form-v177 .project-fields.two-col,.project-form-v177 .person-fields{grid-template-columns:minmax(0,1fr)}
 .project-form-v177 .person-fields .field:first-child{grid-column:auto}
 .project-form-v177 .person-fields .field>label{min-height:0;display:block}
 .project-form-v177 .project-person-head{align-items:flex-start}
 .project-form-v177 .object-form-section-head{margin-bottom:9px}
 .project-form-v177 .field{margin-bottom:8px}
}

/* v0.3.180: edit hidden-work act number inline, without an extra toolbar button. */
.sd-app-shell .act-number-editable{cursor:text;text-decoration:underline dotted rgba(67,178,166,.65);text-underline-offset:3px}
.sd-app-shell .act-number-editable:focus-visible{outline:2px solid #49ac9e;outline-offset:3px;border-radius:2px}
.sd-app-shell .act-number-edit-input{display:inline-block;box-sizing:border-box;width:46px;max-width:100%;min-width:0;padding:4px 2px;border:1px solid #54b9aa;border-radius:4px;background:var(--bg,#091c24);color:inherit;font:inherit;text-align:center;font-variant-numeric:tabular-nums}

/* v0.3.179: number is also editable in the regular act form. */
.sd-app-shell .act-form-number-field input[type="number"]{width:100%;max-width:185px;box-sizing:border-box;font-variant-numeric:tabular-nums}

/* v0.3.181 — construction-site-first navigation; isolated from legacy registers */
.sd-site-muted{color:var(--text-muted,#8293a0);font-size:.86rem}
.sd-site-hub,.sd-sites-index{max-width:1380px;margin:0 auto;display:grid;gap:16px}
.sd-site-hub-head{display:flex;gap:16px;align-items:center;justify-content:space-between}
.sd-site-hub-head h1{margin:3px 0 5px;font-size:clamp(1.35rem,2.5vw,1.9rem)}
.sd-site-hub-head p{color:var(--text-muted,#8293a0);margin:0}
.sd-site-eyebrow{font-size:.71rem;letter-spacing:.11em;font-weight:700;color:var(--text-muted,#8293a0)}
.sd-site-hub-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sd-site-hub-stats>div{border:1px solid var(--border,#b0bcc633);border-radius:10px;padding:13px 14px;display:grid;gap:3px;background:var(--surface,#20303618)}
.sd-site-hub-stats strong{font-size:1.45rem;font-weight:700;font-variant-numeric:tabular-nums}
.sd-site-hub-stats span{font-size:.79rem;color:var(--text-muted,#8293a0)}
.sd-site-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:12px}
.sd-site-panel{border:1px solid var(--border,#b0bcc633);border-radius:12px;padding:16px;min-width:0}
.sd-site-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.sd-site-panel h2{font-size:1.02rem;margin:0}
.sd-site-panel p{margin:6px 0}
.sd-site-panel-head a:not(.btn),.sd-site-panel-link{color:var(--accent,#3aa69b);text-decoration:none}
.sd-site-hint{font-size:.79rem;opacity:.8;margin-top:12px!important}
.sd-site-warning{font-size:.87rem;color:#b58126}
.sd-site-line{padding:9px 0;border-top:1px solid var(--border,#b0bcc622);display:flex;flex-wrap:wrap;align-items:baseline;column-gap:10px;row-gap:3px;font-size:.87rem}
.sd-site-line span,.sd-site-line small{color:var(--text-muted,#8293a0)}
.sd-site-panel-link{display:inline-block;margin-top:12px;font-size:.88rem}
.sd-site-work-list{display:grid;gap:0}
.sd-site-work-item{padding:12px 0;border-top:1px solid var(--border,#b0bcc633);display:flex;justify-content:space-between;gap:15px;align-items:center}
.sd-site-work-name{display:grid;gap:3px;min-width:0}
.sd-site-work-name strong{font-size:.95rem}
.sd-site-work-name span{font-size:.86rem}
.sd-site-work-name small{font-size:.75rem;color:var(--text-muted,#8293a0)}
.sd-site-work-actions{display:flex;flex-wrap:wrap;gap:6px}
.sd-site-work-actions a,.sd-site-bottom-links a{border:1px solid var(--border,#b0bcc644);border-radius:8px;padding:7px 10px;text-decoration:none;color:inherit;font-size:.81rem;white-space:nowrap}
.sd-site-work-actions a:hover,.sd-site-bottom-links a:hover{border-color:var(--accent,#3aa69b)}
.sd-site-bottom-links{display:flex;flex-wrap:wrap;gap:8px}
.sd-site-list{display:grid;gap:9px}
.sd-site-list-item{display:flex;gap:14px;align-items:center;border:1px solid var(--border,#b0bcc633);border-radius:12px;padding:16px;text-decoration:none;color:inherit;min-width:0}
.sd-site-list-item:hover{border-color:var(--accent,#3aa69b)}
.sd-site-symbol{font-size:1.55rem;color:var(--accent,#3aa69b)}
.sd-site-list-main{display:grid;gap:3px;min-width:0;flex:1}
.sd-site-list-main strong{overflow:hidden;text-overflow:ellipsis}
.sd-site-list-main small{color:var(--text-muted,#8293a0)}
.sd-site-list-stats{display:flex;flex-wrap:wrap;gap:9px;font-size:.79rem;color:var(--text-muted,#8293a0)}
.sd-participant-effective-date{max-width:300px;margin:0 0 12px}
.sd-participant-effective-date .field,.sd-participant-effective-date .form-field{margin:0}
@media(max-width:760px){.sd-site-columns{grid-template-columns:1fr}.sd-site-hub-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sd-site-hub-head,.sd-site-work-item{align-items:flex-start;flex-direction:column}.sd-site-list-item{align-items:flex-start}.sd-site-list-stats{flex-direction:column;gap:3px}.sd-site-panel{padding:13px}.sd-site-list-item{padding:12px}}

.sd-participant-history{border:1px solid var(--border,#b0bcc633);border-radius:9px;margin:12px 0 18px;padding:10px 13px}
.sd-participant-history summary{cursor:pointer;font-weight:650;font-size:.88rem}
.sd-participant-history summary span{font-weight:400;color:var(--text-muted,#8293a0);font-size:.8rem;margin-left:8px}
.sd-person-history-list{display:grid;margin-top:9px;gap:0}
.sd-person-history-item{display:grid;grid-template-columns:minmax(130px,.9fr) minmax(120px,1fr) minmax(160px,1.5fr);gap:12px;padding:9px 0;border-top:1px solid var(--border,#b0bcc622);font-size:.85rem}
.sd-person-history-item small{color:var(--text-muted,#8293a0)}
@media(max-width:760px){.sd-person-history-item{grid-template-columns:1fr;gap:2px}}

/* v0.3.183 — construction-site-first UI. No changes to document editors. */
.sd-sites-v183,.sd-site-v183{--sd183-line:var(--line,#2c4950);--sd183-panel:var(--surface,#112733);--sd183-accent:var(--sd-focus,#208e83);--sd183-muted:var(--muted,#91a9ad);max-width:1500px!important;margin:0 auto!important;display:block!important;min-width:0}
.sd-v183-page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:0 0 8px;margin:0 0 14px}
.sd-v183-page-title>div{min-width:0}
.sd-v183-page-title .back{display:block;margin:0 0 14px;font-size:12px;text-decoration:none;color:var(--sd183-muted)}
.sd-v183-page-title .back:hover{color:var(--sd183-accent)}
.sd-v183-kicker{display:block;font-size:10px;letter-spacing:.14em;font-weight:760;color:var(--sd183-accent);margin:1px 0 6px}
.sd-v183-page-title h1{font-size:clamp(23px,2.2vw,32px);line-height:1.18;font-weight:725;letter-spacing:-.025em;margin:0 0 8px}
.sd-v183-page-title p{font-size:13px;line-height:1.5;color:var(--sd183-muted);margin:0;max-width:720px}
.sd-v183-page-title>.btn{align-self:center;font-size:12px;min-height:36px;white-space:nowrap}
.sd-v183-search{display:flex;align-items:center;gap:8px;margin:16px 0 20px;max-width:620px}
.sd-v183-search input{flex:1 1 300px;min-width:0;min-height:40px;border-radius:9px;border:1px solid var(--sd183-line);background:var(--sd183-panel);color:inherit;padding:9px 13px;box-sizing:border-box;font-size:13px}
.sd-v183-search .btn{min-height:40px;white-space:nowrap}
.sd-v183-site-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.sd-v183-site-card{display:flex;flex-direction:column;gap:0;text-decoration:none;color:inherit!important;border:1px solid var(--sd183-line);border-radius:15px;background:var(--sd183-panel);padding:20px 21px;min-width:0;box-sizing:border-box;transition:border-color .18s,transform .18s,box-shadow .18s;overflow:hidden}
.sd-v183-site-card:hover{border-color:var(--sd183-accent);transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.05)}
.sd-v183-site-card:focus-visible,.sd-v183-module:focus-visible,.sd-v183-doc-card:focus-visible{outline:2px solid var(--sd183-accent);outline-offset:2px}
.sd-v183-site-top{display:flex;align-items:center;gap:11px;margin-bottom:15px}
.sd-v183-site-icon{height:45px;width:45px;display:grid;place-items:center;border-radius:12px;background:rgba(35,155,138,.12);border:1px solid rgba(35,155,138,.20);color:var(--sd183-accent);flex:0 0 45px}
.sd-v183-site-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sd-v183-card-caption{font-size:10px;font-weight:750;letter-spacing:.1em;color:var(--sd183-muted)}
.sd-v183-card-chevron{margin-left:auto;font-size:20px;color:var(--sd183-accent)}
.sd-v183-site-card h2{font-size:19px!important;line-height:1.25;font-weight:720;letter-spacing:-.015em;margin:0 0 5px;overflow-wrap:anywhere}
.sd-v183-site-address{font-size:12.5px;color:var(--sd183-muted);margin:0 0 17px;line-height:1.45}
.sd-v183-site-customer{display:grid;gap:5px;padding:13px 0 16px;border-top:1px solid var(--sd183-line)}
.sd-v183-site-customer>span{font-size:9px;letter-spacing:.12em;font-weight:700;color:var(--sd183-muted)}
.sd-v183-site-customer strong{font-size:13px;font-weight:630;overflow-wrap:anywhere}
.sd-v183-site-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding-top:13px;border-top:1px solid var(--sd183-line);margin-top:auto}
.sd-v183-site-metrics>div{display:grid;gap:3px;min-width:0}
.sd-v183-site-metrics strong{font-size:20px;font-weight:740;font-variant-numeric:tabular-nums;line-height:1.1}
.sd-v183-site-metrics span{font-size:10.5px;line-height:1.25;color:var(--sd183-muted)}
.sd-v183-hub-title{margin-bottom:15px!important}
.sd-v183-hub-facts{display:grid;grid-template-columns:minmax(180px,1.9fr) repeat(3,minmax(100px,.65fr));gap:11px;margin:0 0 24px}
.sd-v183-hub-facts>div{border:1px solid var(--sd183-line);background:var(--sd183-panel);border-radius:12px;padding:15px 17px;display:grid;align-content:center;gap:7px;min-width:0}
.sd-v183-hub-facts span{font-size:10px;font-weight:730;letter-spacing:.065em;color:var(--sd183-muted)}
.sd-v183-hub-facts strong{font-size:20px;font-weight:720;line-height:1.25;overflow-wrap:anywhere}
.sd-v183-hub-facts>div:first-child strong{font-size:14px;font-weight:640}
.sd-v183-section-heading{margin:0 0 13px}
.sd-v183-section-heading h2{font-size:18px;margin:0 0 4px;font-weight:710;letter-spacing:-.01em}
.sd-v183-section-heading p{font-size:12px;color:var(--sd183-muted);margin:0}
.sd-v183-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}
.sd-v183-module{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:176px;padding:19px 18px 15px;box-sizing:border-box;border:1px solid var(--sd183-line);border-radius:13px;background:var(--sd183-panel);color:inherit!important;text-decoration:none;transition:transform .17s,border-color .17s;overflow:hidden}
.sd-v183-module:hover{transform:translateY(-2px);border-color:var(--sd183-accent)}
.sd-v183-module-icon{width:39px;height:39px;border-radius:10px;background:rgba(43,155,141,.12);color:var(--sd183-accent);display:grid;place-items:center;margin-bottom:12px}
.sd-v183-module-icon svg{height:21px;width:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sd-v183-module h3{font-size:15px;font-weight:715;line-height:1.3;margin:0 0 6px;overflow-wrap:anywhere}
.sd-v183-module p{font-size:12px;line-height:1.45;color:var(--sd183-muted);margin:0 0 13px}
.sd-v183-module-footer{display:flex;gap:8px;align-items:center;justify-content:space-between;width:100%;font-size:11px;color:var(--sd183-muted);padding-top:12px;border-top:1px solid var(--sd183-line);margin-top:auto;min-width:0}
.sd-v183-module-footer b{color:var(--sd183-accent);font-weight:720;white-space:nowrap}
.sd-v183-module-main{background:linear-gradient(130deg,rgba(38,155,136,.13),transparent 70%),var(--sd183-panel);border-color:rgba(44,155,141,.34)}
.sd-v183-bottom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 20px}
.sd-v183-bottom-panel{border:1px solid var(--sd183-line);background:var(--sd183-panel);border-radius:13px;padding:17px 18px;min-width:0}
.sd-v183-bottom-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;flex-wrap:wrap}
.sd-v183-bottom-panel h2{font-size:15px;margin:0;font-weight:700}
.sd-v183-bottom-header a{font-size:11px;color:var(--sd183-accent);text-decoration:none}
.sd-v183-info-row{display:flex;align-items:center;gap:11px;min-width:0;min-height:42px;padding:8px 0;border-top:1px solid var(--sd183-line);text-decoration:none;color:inherit!important;font-size:12px}
.sd-v183-info-row strong{font-weight:640;min-width:0;overflow-wrap:anywhere}
.sd-v183-info-symbol{height:29px;width:29px;flex:0 0 29px;border-radius:8px;background:rgba(39,152,135,.13);color:var(--sd183-accent);display:grid;place-items:center;font-size:12px;font-weight:800}
.sd-v183-contract-symbol{font-size:15px}
.sd-v183-row-arrow{margin-left:auto;color:var(--sd183-accent);white-space:nowrap}
.sd-v183-contract-meta{font-size:11px;color:var(--sd183-muted);min-width:0;overflow-wrap:anywhere}
.sd-v183-secondary .sd-v183-page-title{margin-bottom:17px}
.sd-v183-register-filter{display:flex;align-items:center;gap:10px;margin:0 0 13px;flex-wrap:wrap}
.sd-v183-register-filter label{font-size:12px;font-weight:650}
.sd-v183-register-filter select{min-height:37px;padding:7px 12px;border-radius:8px;background:var(--sd183-panel);color:inherit;border:1px solid var(--sd183-line);font-size:12px;max-width:100%}
.sd-v183-register-scroll{border:1px solid var(--sd183-line);border-radius:12px;overflow-x:auto;background:var(--sd183-panel)}
.sd-v183-acts-table{width:100%;border-collapse:collapse;font-size:12px;min-width:780px}
.sd-v183-acts-table thead{background:var(--sd-table-head)}
.sd-v183-acts-table th{font-size:11px;letter-spacing:.025em;text-align:left;font-weight:700;color:var(--sd-table-muted);padding:11px 12px;white-space:nowrap}
.sd-v183-acts-table td{padding:11px 12px;border-top:1px solid var(--sd183-line);vertical-align:top;max-width:310px;overflow-wrap:anywhere}
.sd-v183-acts-table a{color:var(--sd183-accent);text-decoration:none}
.sd-v183-acts-table tr:hover td{background:rgba(38,155,141,.055)}
.sd-v183-acts-table .sd-v183-num{font-weight:740;font-variant-numeric:tabular-nums}
.sd-v183-empty-row{text-align:center;color:var(--sd183-muted);padding:30px!important}
.sd-v183-simple-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sd-v183-doc-card{min-width:0;min-height:155px;display:flex;flex-direction:column;gap:7px;text-decoration:none;color:inherit!important;background:var(--sd183-panel);border:1px solid var(--sd183-line);border-radius:12px;padding:18px}
.sd-v183-doc-card:hover{border-color:var(--sd183-accent)}
.sd-v183-doc-mark{display:grid;place-items:center;width:34px;height:34px;background:rgba(40,155,136,.12);border-radius:8px;color:var(--sd183-accent)}
.sd-v183-doc-mark svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.8;fill:none}
.sd-v183-doc-card strong{font-size:14px;font-weight:690}
.sd-v183-doc-card small{font-size:11px;color:var(--sd183-muted)}
.sd-v183-doc-card>span:last-child{font-size:11px;color:var(--sd183-accent);font-weight:690;margin-top:auto}
.sd-v183-contractor-page .sd-v183-site-card{min-height:230px}
.sd-side-main-v183 .sd-accordion-heading.is-current{color:var(--sd-side-ink);background:rgba(45,144,126,.1)}
.sd-side-main-v183 .sd-side-mini-heading{font-size:9px;letter-spacing:.09em;font-weight:760;color:var(--sd-side-ink);opacity:.65;padding:8px 10px 5px}
.sd-side-main-v183 .sd-side-object-content{border-left:2px solid rgba(52,161,147,.24);margin:3px 0 4px 8px;padding-left:4px}
.sd-side-main-v183 .sd-side-object-content .sd-side-link{font-size:12px;min-height:33px;padding:7px 8px}
.sd-side-main-v183 .sd-side-nav-sep{height:1px;background:var(--sd-side-line);margin:8px 1px}
.sd-side-main-v183 .sd-site-contractor{margin:0 2px 0 10px;min-height:28px!important;padding:6px 8px!important;border:0!important;font-size:11.5px!important}
.sd-side-main-v183 .sd-site-accordion .sd-accordion-content{max-height:260px;overflow:auto}
.sd-site-v183 .sd-site-muted{font-size:12px}
@media(min-width:1700px){.sd-v183-module{min-height:180px}}
@media(max-width:1200px){.sd-v183-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sd-v183-hub-facts{grid-template-columns:minmax(160px,1.4fr) repeat(3,minmax(85px,.65fr))}}
@media(max-width:820px){.sd-v183-site-grid,.sd-v183-bottom-grid,.sd-v183-simple-grid{grid-template-columns:1fr}.sd-v183-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sd-v183-hub-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.sd-v183-site-grid,.sd-v183-module-grid,.sd-v183-hub-facts,.sd-v183-simple-grid{grid-template-columns:1fr}.sd-v183-page-title h1{font-size:24px}.sd-v183-site-card{padding:16px}.sd-v183-module{min-height:150px}.sd-v183-search{flex-wrap:wrap}.sd-v183-search input{flex-basis:100%}.sd-v183-hub-facts>div{padding:13px}.sd-v183-hub-facts strong{font-size:18px}.sd-v183-contract-meta{display:none}}
@media(prefers-reduced-motion:reduce){.sd-v183-site-card,.sd-v183-module{transition:none}}

/* v0.3.184 — site-first navigation, correctly themed site cards and full editable register. */
/* The old --surface variable was undefined in light mode. Do not fall back to a dark panel. */
.sd-sites-v183,.sd-site-v183{
  --sd183-panel:#ffffff;
  --sd183-line:#dce6e5;
  --sd183-muted:#627b7c;
  --sd183-accent:#188677;
  --sd184-ink:#203b40;
  --sd184-head:#edf4f3;
  color:var(--sd184-ink);
}
html[data-theme="dark"] .sd-sites-v183,
html[data-theme="dark"] .sd-site-v183{
  --sd183-panel:#112b35;
  --sd183-line:#2b4851;
  --sd183-muted:#9db4bc;
  --sd183-accent:#6cd3c0;
  --sd184-ink:#e6f0f2;
  --sd184-head:#193540;
}
.sd-sites-v183 .sd-v183-site-card,.sd-site-v183 .sd-v183-module,
.sd-site-v183 .sd-v183-hub-facts>div,.sd-site-v183 .sd-v183-bottom-panel,
.sd-site-v183 .sd-v183-doc-card,.sd-site-v183 .sd-v184-contractor-panel{
  background-color:var(--sd183-panel)!important;
  border-color:var(--sd183-line)!important;
  color:var(--sd184-ink)!important;
}
.sd-sites-v183 .sd-v183-site-card:hover,.sd-site-v183 .sd-v183-module:hover,
.sd-site-v183 .sd-v183-doc-card:hover{border-color:var(--sd183-accent)!important;box-shadow:0 6px 20px rgba(20,70,65,.08)}
.sd-site-v183 .sd-v183-module-main{
  background:linear-gradient(135deg,rgba(49,167,145,.115),transparent 70%),var(--sd183-panel)!important;
  border-color:rgba(41,159,138,.45)!important;
}
.sd-sites-v183 .sd-v183-card-caption,.sd-site-v183 .sd-v183-hub-facts span{color:var(--sd183-muted)}
.sd-sites-v183 .sd-v183-site-address,.sd-sites-v183 .sd-v183-site-metrics span,
.sd-sites-v183 .sd-v183-site-customer>span,.sd-site-v183 .sd-v183-module p,
.sd-site-v183 .sd-v183-module-footer{color:var(--sd183-muted)!important}
.sd-sites-v183 .sd-v183-site-card{min-height:232px;border-radius:14px;padding:20px 22px;box-shadow:0 3px 12px rgba(28,62,59,.035)}
.sd-sites-v183 .sd-v183-site-top{margin-bottom:12px}
.sd-sites-v183 .sd-v183-site-address{min-height:19px}
.sd-site-v183 .sd-v183-module{min-height:165px;padding:18px 19px 15px}
.sd-site-v183 .sd-v183-module-icon{margin-bottom:10px}
.sd-site-v183 .sd-v183-module h3{font-size:15px}
.sd-site-v183 .sd-v183-module-footer{padding-top:10px}
.sd-site-v183 .sd-v183-hub-facts{gap:10px;margin-bottom:20px}
.sd-site-v183 .sd-v183-hub-facts>div{padding:14px 16px}
.sd-v184-contractor-panel{border:1px solid var(--sd183-line);border-radius:12px;padding:17px 18px;margin-bottom:17px;min-width:0}
.sd-v184-contractor-panel h2{font-size:15px;line-height:1.3;margin:0}
.sd-v184-panel-note{font-size:12px;color:var(--sd183-muted)}
.sd-v184-contractor-chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}
.sd-v184-contractor-chip{display:flex;align-items:center;gap:9px;border:1px solid var(--sd183-line);border-radius:10px;padding:6px 11px 6px 6px;color:var(--sd184-ink)!important;text-decoration:none;font-size:12px;font-weight:630;min-width:0}
.sd-v184-contractor-chip .sd-v183-info-symbol{width:27px;height:27px;flex-basis:27px}
.sd-v184-contractor-chip>span:last-child{margin-left:6px;color:var(--sd183-accent)}
.sd-v184-contractor-chip:hover{border-color:var(--sd183-accent);background:rgba(54,160,146,.05)}
@media(min-width:1650px){.sd-v183-site-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Navigation: only selected site, never a scrollable tree of all sites. */
.sd-side-main-v183 .sd-sites-root.is-current{font-weight:700;background:rgba(49,149,134,.1)}
.sd-side-main-v183 .sd-current-site{
  border:1px solid rgba(219,160,38,.42)!important;
  background:rgba(219,160,38,.14)!important;
  color:var(--sd-selected-ink,#856014)!important;
  margin:2px 4px 9px!important;padding:9px 10px!important;
  border-radius:9px!important;font-size:12.5px;font-weight:720;
  text-decoration:none;min-width:0;
}
.sd-side-main-v183 .sd-current-site span:last-child{white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.sd-side-main-v183 .sd-current-site .sd-item-indicator{background:#dfaa3d;border-color:#dfaa3d;opacity:1}
.sd-side-main-v183 .sd-side-section-title{
  display:flex;align-items:center;gap:9px;min-height:33px;padding:7px 8px;
  margin:5px 1px 2px;border-top:1px solid var(--sd-side-line);
  font-size:12.5px;font-weight:750;line-height:1.3;letter-spacing:0;
  color:var(--sd-side-ink);
}
.sd-side-main-v183 .sd-side-section-title .sd-nav-icon{flex:0 0 17px}
.sd-side-main-v183 .sd-side-object-content{
  margin:0!important;padding:0!important;
  border-left:0!important;display:grid;gap:2px;
}
.sd-side-main-v183 .sd-side-object-content .sd-side-link{
  margin:0!important;padding:8px 8px!important;
  min-height:33px!important;font-size:12.5px!important;
  line-height:1.28;align-items:center;
}
.sd-side-main-v183 .sd-side-object-content .sd-side-link.is-current{font-weight:730;background:rgba(47,146,131,.13);color:var(--sd-side-ink)}
.sd-side-main-v183 .sd-side-object-content .sd-side-link span{overflow-wrap:anywhere}
.sd-sidebar-collapsed .sd-side-main-v183 .sd-current-site,
.sd-sidebar-collapsed .sd-side-main-v183 .sd-side-section-title,
.sd-sidebar-collapsed .sd-side-main-v183 .sd-side-object-content{display:none}
@media(max-width:820px){
  .sd-sidebar-collapsed .sd-side-main-v183 .sd-current-site{display:flex}
  .sd-sidebar-collapsed .sd-side-main-v183 .sd-side-section-title{display:flex}
  .sd-sidebar-collapsed .sd-side-main-v183 .sd-side-object-content{display:grid}
}

/* v0.3.185 — site-level entry uses the original contractor register.
   The selector is the only additional UI; no duplicate table styles. */
.sd-v185-register-switch,.sd-v185-empty{--sd183-panel:#ffffff;--sd183-line:#dce6e5;--sd183-muted:#627b7c;--sd183-accent:#188677;--sd184-ink:#132d33}
html[data-theme="dark"] .sd-v185-register-switch,html[data-theme="dark"] .sd-v185-empty{--sd183-panel:#112b35;--sd183-line:#2b4851;--sd183-muted:#9db4bc;--sd183-accent:#6cd3c0;--sd184-ink:#e6f0f2}
.sd-app-shell .sd-workarea>main:has(.sd-v185-register-switch){padding-left:12px!important;padding-right:12px!important;padding-top:13px!important}
.sd-v185-register-switch{box-sizing:border-box;width:100%;max-width:100%;display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:8px 20px;padding:8px 12px;margin:0 0 10px;border:1px solid var(--sd183-line);border-radius:9px;background:var(--sd183-panel);color:var(--sd184-ink)}
.sd-v185-register-location{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-height:36px}
.sd-v185-back{font-size:12px;color:var(--sd183-accent)!important;text-decoration:none;font-weight:650}
.sd-v185-back:hover{text-decoration:underline}
.sd-v185-count{font-size:11px;color:var(--sd183-muted)}
.sd-v185-register-filter{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0}
.sd-v185-register-filter label{font-size:12px;font-weight:700;white-space:nowrap}
.sd-v185-register-filter select{box-sizing:border-box;min-width:270px;max-width:min(55vw,540px);width:clamp(270px,34vw,465px);min-height:34px;border:1px solid var(--sd183-line);border-radius:7px;background:var(--sd183-panel);color:var(--sd184-ink);font:inherit;font-size:12px;padding:5px 10px}
.sd-v185-register-filter select:focus-visible{outline:2px solid var(--sd183-accent);outline-offset:2px}
.sd-v185-empty{max-width:760px;margin:18px auto;padding:24px;border:1px solid var(--sd183-line);border-radius:12px;background:var(--sd183-panel);color:var(--sd184-ink)}
.sd-v185-empty h1{font-size:24px;margin:18px 0 8px}
.sd-v185-empty p{color:var(--sd183-muted);line-height:1.6}
.sd-v185-empty .btn{display:inline-flex;margin-top:12px}
@media(max-width:700px){
 .sd-v185-register-switch{padding:8px;gap:8px}
 .sd-v185-register-location,.sd-v185-register-filter{width:100%}
 .sd-v185-register-filter select{min-width:0;max-width:100%;width:100%}
}

/* v0.3.186: direct site administration actions, theme-aware */
.sd-v186-actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}
.sd-v186-actions .btn{min-height:36px}
@media(max-width:600px){.sd-v186-actions .btn{flex:1 1 auto;text-align:center}}

/* v0.3.187: inline organization creation, theme-aware */
.sd-v187-create{margin:8px 0 16px;max-width:650px}
.sd-v187-fields{margin-top:10px;padding:14px;border:1px solid var(--line,rgba(120,140,150,.28));border-radius:10px;background:var(--panel,#fff)}
.sd-v187-fields[hidden]{display:none!important}
.sd-v187-fields label{display:block;margin:0 0 10px;font-size:13px;font-weight:600;color:inherit}
.sd-v187-fields input{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:9px 11px;border:1px solid var(--line,rgba(120,140,150,.4));border-radius:7px;background:transparent;color:inherit;font:inherit}
.sd-v187-buttons{display:flex;gap:8px;flex-wrap:wrap}
.sd-v187-error{color:#c34848;font-size:12px;margin-top:8px}
.act-sheet .materials-text>span{display:block;break-inside:avoid;page-break-inside:avoid;margin-bottom:2px}
.act-sheet .materials-text>span:last-child{margin-bottom:0}

/* v0.3.188: inline organization creator, theme-safe on iPhone and desktop. */
.sd-v187-create{width:100%;min-width:0;max-width:650px;margin:8px 0 16px;box-sizing:border-box}
.sd-v187-create .sd-v187-fields{
  --sd-org-bg:#fff;--sd-org-fg:#203940;--sd-org-line:#d3e2e4;--sd-org-input:#fff;--sd-org-muted:#637d85;
  box-sizing:border-box;width:100%;min-width:0;margin-top:10px;padding:16px;
  background:var(--sd-org-bg);color:var(--sd-org-fg);border:1px solid var(--sd-org-line);
  border-radius:12px;box-shadow:none
}
html[data-theme="dark"] .sd-v187-create .sd-v187-fields{
  --sd-org-bg:#15303a;--sd-org-fg:#e4f0f1;--sd-org-line:#355660;--sd-org-input:#0e2630;--sd-org-muted:#9bb3ba
}
html[data-theme="light"] .sd-v187-create .sd-v187-fields{
  --sd-org-bg:#fff;--sd-org-fg:#203940;--sd-org-line:#d3e2e4;--sd-org-input:#fff;--sd-org-muted:#637d85
}
.sd-v187-create .sd-v187-fields label{display:block;margin:0 0 12px;color:var(--sd-org-fg)!important;font-size:13px;font-weight:600;line-height:1.45}
.sd-v187-create .sd-v187-fields input{
  display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:42px;
  margin:6px 0 0;padding:10px 12px;border:1px solid var(--sd-org-line);border-radius:8px;
  background:var(--sd-org-input)!important;color:var(--sd-org-fg)!important;
  -webkit-text-fill-color:var(--sd-org-fg);font:inherit;font-size:16px;outline:none
}
.sd-v187-create .sd-v187-fields input::placeholder{color:var(--sd-org-muted)!important;opacity:1;-webkit-text-fill-color:var(--sd-org-muted)}
.sd-v187-create .sd-v187-fields input:focus{border-color:#50b9a5;box-shadow:0 0 0 2px rgba(80,185,165,.16)}
.sd-v187-create .sd-v187-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sd-v187-create .sd-v187-buttons .btn{max-width:100%;white-space:normal;min-height:40px}
.sd-v187-create .sd-v187-cancel{color:var(--sd-org-fg)!important}
.sd-v187-create .sd-v187-error{color:#d45656;line-height:1.45}
@media(max-width:600px){.sd-v187-create .sd-v187-fields{padding:14px}.sd-v187-create .sd-v187-buttons{gap:8px}.sd-v187-create .sd-v187-buttons .btn{font-size:14px}}

/* v0.3.191 site work bootstrap */
.sd-v191-work-form{display:flex;flex-direction:column;gap:14px;max-width:620px;margin-top:24px}
.sd-v191-work-form label{font-weight:650}
.sd-v191-work-form select{width:100%;min-height:44px;border-radius:9px;padding:10px 12px;background:var(--input-bg,var(--surface,#142c36));color:var(--text,#e7eff3);border:1px solid var(--border,#37515a)}
.sd-v191-work-form .btn{align-self:flex-start}

/* v0.3.192: workspace-wide act template library; theme tokens from existing UI */
.sd-template-page{max-width:1150px;margin:0 auto;padding:18px 12px 40px;color:var(--text,#dce6ed)}
.sd-template-page h1{font-size:clamp(21px,2.2vw,29px);margin:0 0 8px}.sd-template-page h2{font-size:17px;margin:0 0 12px}
.sd-template-page p,.sd-template-page small{color:var(--muted,var(--text-muted,#84939c))}
.sd-template-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.sd-template-group{border:1px solid var(--border,#43535a);border-radius:12px;padding:14px;margin:15px 0;background:var(--surface,#142c36)}
.sd-template-item{display:flex;align-items:center;gap:12px;padding:12px 4px;border-top:1px solid var(--border,#43535a);flex-wrap:wrap}
.sd-template-item-main{flex:1;min-width:190px;display:grid;gap:5px}.sd-template-item-main small{font-size:12px}
.sd-template-item form{margin:0}.sd-template-form{display:grid;gap:16px;max-width:900px}.sd-template-form label{display:grid;gap:7px;font-size:13px;font-weight:600}
.sd-template-form input:not([type=checkbox]),.sd-template-form select,.sd-template-form textarea,.sd-template-item select{width:100%;min-height:40px;padding:9px 10px;border-radius:8px;border:1px solid var(--border,#43535a);background:var(--surface,#142c36);color:var(--text,#dce6ed)}
.sd-template-form .sd-template-check{display:flex;align-items:center;gap:8px}.sd-template-inline{display:flex;align-items:end;flex-wrap:wrap;margin-bottom:20px}.sd-template-inline label{min-width:260px;flex:1}
@media(max-width:600px){.sd-template-item{align-items:stretch}.sd-template-item .btn{font-size:12px}.sd-template-item-main{flex-basis:100%}}

/* v194: compact catalog, theme aware */
.sd-template-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:14px 0 18px}.sd-template-filters label{display:grid;gap:5px;flex:1;min-width:190px;font-size:12px;font-weight:650}.sd-template-filters input,.sd-template-filters select{min-height:40px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);padding:8px}.sd-template-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:12px}.sd-template-table{border-collapse:collapse;width:100%;min-width:850px;font-size:12px}.sd-template-table th,.sd-template-table td{padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:top;text-align:left;line-height:1.45}.sd-template-table th{background:var(--surface);font-weight:750;white-space:nowrap}.sd-template-table .sd-template-work{font-weight:650;min-width:180px}.sd-template-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.sd-template-actions form{margin:0}.sd-template-actions .btn{padding:6px 9px;font-size:11px}.sd-template-materials{border:1px solid var(--border);border-radius:10px;padding:12px}.sd-template-material-scroll{max-height:260px;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:5px}.sd-template-material-option{display:flex!important;flex-direction:row;align-items:center;gap:9px;font-weight:400!important}.sd-template-material-option input{width:auto!important;min-height:0!important}

/* StroiDoc v0.3.195 — corporate dashboard, light and dark */
.sd-premium-home,.sd-premium-directory,.sd-premium-detail{width:100%;max-width:1500px;margin:0 auto;padding:20px 24px 34px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.sd-premium-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}
.sd-premium-home-card{--accent:#6ebeff;--accent-bg:rgba(30,111,195,.17);display:flex;align-items:center;gap:20px;min-height:144px;padding:24px;border:1px solid var(--border,rgba(125,163,182,.22));border-radius:18px;text-decoration:none;color:var(--text,#e4eff3);background:radial-gradient(ellipse at 8% 5%,var(--accent-bg),transparent 65%),var(--surface,#102733);transition:transform .2s,border-color .2s,box-shadow .2s}
.sd-premium-green{--accent:#65dfc3;--accent-bg:rgba(31,165,141,.18)}.sd-premium-violet{--accent:#a5b9ff;--accent-bg:rgba(90,113,209,.17)}
.sd-premium-home-card:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 10px 30px -20px var(--accent)}
.sd-premium-icon{display:grid;place-items:center;width:76px;height:76px;flex:0 0 76px;border-radius:17px;color:var(--accent);background:var(--accent-bg);border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);box-shadow:0 0 25px -15px var(--accent)}.sd-premium-icon svg{width:46px;height:46px}
.sd-premium-card-copy{display:flex;flex-direction:column;gap:12px;min-width:0}.sd-premium-card-copy strong{font-size:clamp(17px,1.55vw,23px);font-weight:450;letter-spacing:-.035em;line-height:1.2}.sd-premium-card-copy small{font-size:13px;font-weight:400;opacity:.68}
.sd-premium-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px}.sd-premium-section-head h1,.sd-premium-section-head h2{margin:0;font-weight:500;letter-spacing:-.03em}.sd-premium-section-head h2{font-size:19px}
.sd-premium-recent,.sd-premium-info-card{border:1px solid var(--border,rgba(125,163,182,.22));border-radius:16px;background:var(--surface,#102733);padding:18px}
.sd-premium-recent .sd-premium-section-head{margin-bottom:14px}.sd-premium-table-scroll{overflow-x:auto}.sd-premium-table{border-collapse:collapse;width:100%;font-size:12px;min-width:740px}.sd-premium-table th{text-align:left;font-weight:500;opacity:.65;padding:12px 10px;border-bottom:1px solid var(--border)}.sd-premium-table td{padding:13px 10px;border-bottom:1px solid var(--border);vertical-align:middle}.sd-premium-table tr:last-child td{border-bottom:0}.sd-premium-object-name{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-weight:550}.sd-premium-object-icon{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:10px;color:#71c6ef;background:rgba(47,157,198,.13)}.sd-premium-object-icon svg{width:22px;height:22px}
.sd-premium-menu{position:relative;display:inline-block}.sd-premium-menu summary{cursor:pointer;list-style:none;display:grid;place-items:center;border-radius:8px;width:30px;height:32px;font-size:23px}.sd-premium-menu summary::-webkit-details-marker{display:none}.sd-premium-menu[open] summary{background:rgba(130,160,180,.15)}.sd-premium-menu-items{position:absolute;z-index:25;right:0;top:100%;min-width:160px;padding:6px;background:var(--surface,#122e3b);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.22)}.sd-premium-menu-items a{display:block;padding:9px 12px;text-decoration:none;color:inherit;border-radius:6px;font-size:12px}.sd-premium-menu-items a:hover{background:rgba(110,160,180,.12)}
.sd-premium-search{display:flex;gap:10px;margin:16px 0 20px}.sd-premium-search input{flex:1;min-width:0;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:12px}
.sd-premium-contractor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.sd-premium-contractor-card{background:var(--surface);border:1px solid var(--border);border-radius:15px;padding:17px;min-width:0}.sd-premium-contractor-main{display:flex;gap:14px;align-items:center;color:inherit;text-decoration:none}.sd-premium-contractor-avatar{display:grid;place-items:center;width:52px;height:52px;flex:0 0 52px;background:linear-gradient(135deg,#135c7a,#197b7b);border:1px solid rgba(115,225,218,.25);color:#d3f8f5;border-radius:13px;font-size:17px;font-weight:550}.sd-premium-contractor-main strong{display:block;font-size:15px;font-weight:550;line-height:1.4}.sd-premium-contractor-main small{display:block;font-size:11px;opacity:.6;margin-top:5px}.sd-premium-contractor-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:18px;border-top:1px solid var(--border);padding-top:10px;font-size:12px;opacity:.9}
.sd-premium-detail>.back{display:inline-block;margin-bottom:18px}.sd-premium-detail-head{display:flex;align-items:center;gap:15px;margin-bottom:18px}.sd-premium-detail-head h1{font-size:25px;font-weight:500;flex:1;margin:0}.sd-premium-info-card{margin-bottom:16px}.sd-premium-info-card h2{font-size:16px;font-weight:550;margin:0 0 15px}.sd-premium-info-row{display:grid;grid-template-columns:170px 1fr;gap:12px;padding:9px 0;border-top:1px solid var(--border);font-size:13px}.sd-premium-info-row span,.sd-premium-muted{opacity:.6}.sd-premium-info-row strong{font-weight:500}.sd-premium-detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sd-premium-list-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--border);color:inherit;text-decoration:none;font-size:12px}.sd-premium-list-row>span:nth-child(2){flex:1;min-width:0}.sd-premium-list-row strong{display:block;font-weight:550}.sd-premium-list-row small{display:block;opacity:.62;margin-top:4px}.sd-premium-mini-building,.sd-premium-contract-symbol{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;color:#75c9e6;background:rgba(80,161,189,.13);border-radius:8px}.sd-premium-mini-building svg{width:23px;height:23px}.sd-premium-row-stat{opacity:.65;font-size:11px}
@media(max-width:1000px){.sd-premium-home-grid,.sd-premium-contractor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.sd-premium-home,.sd-premium-directory,.sd-premium-detail{padding:14px}.sd-premium-home-grid,.sd-premium-contractor-grid,.sd-premium-detail-columns{grid-template-columns:1fr}.sd-premium-home-card{min-height:110px;padding:18px}.sd-premium-icon{width:62px;height:62px;flex-basis:62px}.sd-premium-icon svg{width:39px;height:39px}.sd-premium-info-row{grid-template-columns:1fr;gap:4px}.sd-premium-detail-head{flex-wrap:wrap}}


/* v0.3.196 — site-first premium hub, scoped and theme-aware */
.sd-site-196{--site196-ink:var(--text,#e5f0f4);--site196-muted:var(--muted,var(--text-muted,#9bb0ba));--site196-line:var(--border,rgba(119,169,188,.22));max-width:1540px;margin:0 auto;padding:18px 22px 42px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--site196-ink)}
.sd-site-196 *{box-sizing:border-box}
.sd-site-196-hero{padding:22px 24px 12px;border:1px solid var(--site196-line);border-radius:18px;background:linear-gradient(115deg,rgba(18,113,160,.10),transparent 60%),var(--surface,#102b37);box-shadow:0 12px 40px rgba(0,0,0,.055)}
.sd-site-196-titleline{display:flex;align-items:center;gap:20px;min-width:0}
.sd-site-196-hero-icon{flex:0 0 72px;width:72px;height:72px;display:grid;place-items:center;color:#75c4ff;background:radial-gradient(circle at 35% 25%,rgba(41,154,246,.34),rgba(8,66,126,.22) 70%);border:1px solid rgba(67,162,244,.53);border-radius:16px;box-shadow:0 0 26px rgba(20,134,221,.12)}
.sd-site-196-hero-icon svg{width:43px;height:43px}
.sd-site-196-title{flex:1;min-width:0}.sd-site-196-title h1{margin:0 0 7px;font-size:clamp(22px,2.2vw,31px);font-weight:500;line-height:1.23;letter-spacing:-.025em}.sd-site-196-title p{margin:0;color:var(--site196-muted);font-size:13px}
.sd-site-196-edit{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;color:var(--site196-ink);background:rgba(95,155,177,.09);border:1px solid var(--site196-line);border-radius:11px;text-decoration:none}.sd-site-196-edit:hover{background:rgba(73,161,190,.19)}.sd-site-196-edit svg{width:20px;height:20px}
.sd-site-196-facts{display:grid;grid-template-columns:minmax(220px,1.65fr) repeat(3,minmax(110px,1fr));gap:0;margin-top:20px;border:1px solid var(--site196-line);border-radius:12px;overflow:hidden}
.sd-site-196-fact{min-width:0;display:flex;align-items:center;gap:12px;padding:13px 15px;border-left:1px solid var(--site196-line)}.sd-site-196-fact:first-child{border-left:0}
.sd-site-196-fact>span:last-child{display:flex;flex-direction:column;gap:5px;min-width:0}.sd-site-196-fact small{color:var(--site196-muted);font-size:11px;font-weight:400}.sd-site-196-fact strong{font-size:16px;font-weight:550;line-height:1.3;overflow-wrap:anywhere}.sd-site-196-customer strong{font-size:13px}
.sd-site-196-fact-icon{width:37px;height:37px;flex:0 0 37px;display:grid;place-items:center;border-radius:10px;background:rgba(39,151,139,.14);color:#53d7b7}.sd-site-196-fact-icon.blue{color:#73baff;background:rgba(41,117,212,.14)}.sd-site-196-fact-icon.amber{color:#f0bd68;background:rgba(184,118,30,.13)}.sd-site-196-fact-icon svg{width:22px;height:22px}
.sd-site-196-section{margin:24px 0 12px}.sd-site-196-section h2{font-size:17px;font-weight:550;letter-spacing:-.015em;margin:0}
.sd-site-196-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.sd-site-196-tile{position:relative;display:grid;grid-template-columns:62px minmax(0,1fr);grid-template-rows:1fr auto;column-gap:16px;row-gap:16px;min-height:156px;padding:20px;border:1px solid var(--site196-line);border-radius:16px;color:var(--site196-ink);text-decoration:none;background:radial-gradient(ellipse at 12% 7%,var(--tile-glow),transparent 65%),var(--surface,#102b37);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.sd-site-196-tile:hover{transform:translateY(-2px);border-color:var(--tile-color);box-shadow:0 9px 24px rgba(0,0,0,.10)}
.sd-site-196-tile:focus-visible,.sd-site-196-edit:focus-visible,.sd-site-196-contractor:focus-visible{outline:2px solid #53cbb9;outline-offset:3px}
.sd-site-196-tile-icon{width:62px;height:62px;display:grid;place-items:center;color:var(--tile-color);background:var(--tile-glow);border:1px solid color-mix(in srgb,var(--tile-color) 50%,transparent);border-radius:14px;box-shadow:0 0 24px var(--tile-glow)}
.sd-site-196-tile-icon svg{width:34px;height:34px}.sd-site-196-tile-copy{min-width:0;align-self:center}.sd-site-196-tile-copy strong{display:block;font-size:15px;font-weight:550;line-height:1.35}.sd-site-196-tile-copy small{display:block;margin-top:7px;color:var(--site196-muted);font-size:12px;line-height:1.5}
.sd-site-196-tile-foot{grid-column:1/-1;display:block;border-top:1px solid var(--site196-line);padding-top:11px;color:var(--site196-muted);font-size:11px}
.sd-site-196-contractors-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.sd-site-196-add{display:inline-flex;align-items:center;min-height:37px;padding:9px 13px;background:#209e92;border:1px solid #249f95;color:white;text-decoration:none;border-radius:10px;font-size:12px;font-weight:550}.sd-site-196-add:hover{background:#167e76}
.sd-site-196-contractor-list{display:grid;gap:10px}.sd-site-196-contractor{display:flex;align-items:center;gap:14px;padding:13px 16px;border:1px solid var(--site196-line);border-radius:13px;background:var(--surface,#102b37);color:var(--site196-ink);text-decoration:none}.sd-site-196-contractor:hover{border-color:rgba(76,187,197,.65)}
.sd-site-196-avatar{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(140deg,#1264a4,#0b867e);color:#fff;font-size:13px;font-weight:550}
.sd-site-196-contractor-name{flex:1;min-width:0}.sd-site-196-contractor-name strong{display:block;font-size:13px;font-weight:550}.sd-site-196-contractor-name small{display:block;margin-top:4px;color:var(--site196-muted);font-size:11px}.sd-site-196-contractor-action{font-size:12px;color:var(--site196-muted)}
@media(max-width:1120px){.sd-site-196-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sd-site-196-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.sd-site-196-fact:nth-child(3){border-left:0;border-top:1px solid var(--site196-line)}.sd-site-196-fact:nth-child(4){border-top:1px solid var(--site196-line)}}
@media(max-width:650px){.sd-site-196{padding:14px 12px 30px}.sd-site-196-hero{padding:15px 13px 12px}.sd-site-196-titleline{gap:12px}.sd-site-196-hero-icon{width:51px;height:51px;flex-basis:51px;border-radius:12px}.sd-site-196-hero-icon svg{width:32px;height:32px}.sd-site-196-title h1{font-size:20px}.sd-site-196-title p{font-size:11px}.sd-site-196-edit{flex-basis:34px;width:34px;height:34px}.sd-site-196-facts{grid-template-columns:1fr 1fr;margin-top:15px}.sd-site-196-fact{padding:11px 8px;gap:8px}.sd-site-196-fact-icon{display:none}.sd-site-196-fact strong{font-size:14px}.sd-site-196-customer strong{font-size:12px}.sd-site-196-grid{grid-template-columns:1fr;gap:10px}.sd-site-196-tile{min-height:132px;padding:15px;grid-template-columns:50px minmax(0,1fr);gap:12px}.sd-site-196-tile-icon{width:50px;height:50px}.sd-site-196-tile-icon svg{width:27px;height:27px}.sd-site-196-tile-copy strong{font-size:14px}.sd-site-196-tile-copy small{font-size:11px}.sd-site-196-section{margin-top:19px}.sd-site-196-contractor-action{font-size:0}.sd-site-196-contractor-action span{font-size:18px}}
@media(prefers-reduced-motion:reduce){.sd-site-196-tile{transition:none}.sd-site-196-tile:hover{transform:none}}

/* v0.3.197 — scoped premium surfaces: explicit dark/light palette (legacy CSS
   does not define --surface/--border/--text consistently). */
html[data-theme="dark"]{
 --sd197-surface:#102934;--sd197-surface-alt:#122f3b;
 --sd197-border:#294b58;--sd197-text:#e7f1f5;--sd197-muted:#9cb3be;
 --sd197-field:#0d2530;--sd197-shadow:rgba(0,0,0,.16);
}
html:not([data-theme="dark"]){
 --sd197-surface:#ffffff;--sd197-surface-alt:#f4f9fc;
 --sd197-border:#d8e5ec;--sd197-text:#233b4a;--sd197-muted:#647e8d;
 --sd197-field:#f9fcfe;--sd197-shadow:rgba(30,76,101,.07);
}
.sd-premium-home,.sd-premium-directory,.sd-premium-detail,.sd-site-196,.sd-sites-v183{
 --surface:var(--sd197-surface);--border:var(--sd197-border);
 --text:var(--sd197-text);--muted:var(--sd197-muted);
 color:var(--sd197-text);
}
.sd-premium-home-card,.sd-premium-contractor-card,.sd-premium-recent,
.sd-premium-info-card,.sd-site-196-hero,.sd-site-196-tile,
.sd-site-196-contractor,.sd-v183-site-card{
 background-color:var(--sd197-surface)!important;
 color:var(--sd197-text)!important;
 border-color:var(--sd197-border)!important;
}
.sd-premium-home-card{
 background-image:radial-gradient(ellipse at 8% 5%,var(--accent-bg),transparent 65%)!important;
}
.sd-site-196-hero{
 background-image:linear-gradient(115deg,rgba(18,113,160,.09),transparent 60%)!important;
}
.sd-site-196-tile{
 background-image:radial-gradient(ellipse at 12% 7%,var(--tile-glow),transparent 65%)!important;
}
.sd-premium-contractor-card{
 background-image:linear-gradient(135deg,rgba(51,155,173,.075),transparent 67%)!important;
 box-shadow:0 7px 22px var(--sd197-shadow);
 min-height:154px;display:flex;flex-direction:column;justify-content:space-between;
}
.sd-premium-contractor-card:hover,.sd-v183-site-card:hover{
 border-color:#65bdbb!important;box-shadow:0 12px 26px var(--sd197-shadow);
}
.sd-premium-contractor-main{min-width:0;align-items:flex-start}
.sd-premium-contractor-main>span:last-child{min-width:0;overflow-wrap:anywhere}
.sd-premium-contractor-bottom{margin-top:20px;opacity:1;color:var(--sd197-muted)}
.sd-premium-search input{background:var(--sd197-field)!important;color:var(--sd197-text)!important;border-color:var(--sd197-border)!important}
.sd-premium-menu-items{background:var(--sd197-surface)!important;color:var(--sd197-text);border-color:var(--sd197-border)!important}
.sd-premium-info-card,.sd-premium-recent{box-shadow:0 5px 20px var(--sd197-shadow)}
.sd-premium-info-row,.sd-premium-list-row,.sd-premium-contractor-bottom{border-color:var(--sd197-border)!important}
.sd-site-196{--site196-ink:var(--sd197-text);--site196-muted:var(--sd197-muted);--site196-line:var(--sd197-border)}
.sd-site-196-hero,.sd-site-196-tile{box-shadow:0 7px 24px var(--sd197-shadow)}
.sd-site-196-tile:hover{border-color:var(--tile-color)!important}
.sd-site-196-tile-copy small,.sd-site-196-tile-foot,.sd-site-196-title p,.sd-site-196-fact small{color:var(--sd197-muted)!important}
.sd-sites-v183 .sd-v183-site-card{background-image:linear-gradient(135deg,rgba(51,155,173,.09),transparent 70%)!important;box-shadow:0 6px 20px var(--sd197-shadow)}
/* All v196 symbols are outline glyphs. Explicit stroke prevents the browser's
   default black SVG fill from painting solid shapes. */
.sd-site-196 svg,.sd-premium-home svg,.sd-premium-directory svg,
.sd-premium-detail svg,.sd-sites-v183 svg{
 fill:none!important;stroke:currentColor!important;stroke-width:1.8;
 stroke-linecap:round;stroke-linejoin:round;
}
.sd-site-196 svg use,.sd-premium-home svg use,.sd-premium-directory svg use,
.sd-premium-detail svg use,.sd-sites-v183 svg use{
 fill:none!important;stroke:inherit!important;
}
.sd-site-196-tile-icon,.sd-site-196-fact-icon,.sd-site-196-hero-icon,
.sd-premium-icon,.sd-premium-object-icon{color:inherit}
.sd-site-196-tile-icon{color:var(--tile-color)}
.sd-site-196-fact-icon{color:#42bfa7}.sd-site-196-fact-icon.blue{color:#67a8f2}.sd-site-196-fact-icon.amber{color:#e9b65a}
.sd-site-196-hero-icon{color:#67b9f5}
.sd-premium-home-card .sd-premium-icon{color:var(--accent)}
@media(max-width:700px){
 .sd-premium-directory{padding:14px 12px 30px}
 .sd-premium-contractor-grid{grid-template-columns:1fr}
 .sd-premium-search{flex-wrap:wrap}
 .sd-premium-search input{min-width:180px}
}

/* v0.3.198 — act template catalogue */
.sd-template-catalog-198{max-width:none;padding:20px clamp(12px,2vw,32px) 48px;--border:var(--sd197-border);--surface:var(--sd197-surface);--text:var(--sd197-text);--muted:var(--sd197-muted);color:var(--sd197-text)}
.sd-template-catalog-198 .sd-template-heading h1{font-weight:570;letter-spacing:-.025em;font-size:clamp(23px,2.15vw,31px)}
.sd-template-catalog-198 .sd-template-heading p{margin:4px 0 0}
.sd-template-catalog-198 .sd-template-toolbar{border:1px solid var(--sd197-border);border-radius:14px;background:var(--sd197-surface);padding:14px 16px;margin:20px 0 16px;box-shadow:0 5px 20px var(--sd197-shadow)}
.sd-template-catalog-198 .sd-template-filters{display:grid;grid-template-columns:minmax(180px,1.3fr) minmax(155px,.8fr) auto auto;gap:10px;align-items:end;margin:0}
.sd-template-catalog-198 .sd-template-filters label{min-width:0;font-weight:550;color:var(--sd197-muted)}
.sd-template-catalog-198 .sd-template-filters input,.sd-template-catalog-198 .sd-template-filters select,.sd-template-catalog-198 .sd-template-inline input{background:var(--sd197-field);border:1px solid var(--sd197-border);color:var(--sd197-text);width:100%;min-height:39px;border-radius:9px;padding:8px 10px}
.sd-template-catalog-198 .sd-template-inline{display:flex;align-items:end;gap:10px;margin:12px 0 0;padding-top:12px;border-top:1px solid var(--sd197-border)}
.sd-template-catalog-198 .sd-template-inline label{flex:1;min-width:0;color:var(--sd197-muted)}
.sd-template-catalog-198 .sd-template-table-wrap{overflow-x:auto;overflow-y:visible;border:1px solid var(--sd197-border);border-radius:14px;background:var(--sd197-surface);box-shadow:0 5px 20px var(--sd197-shadow)}
.sd-template-catalog-198 .sd-template-table{width:100%;min-width:790px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12.5px}
.sd-template-catalog-198 .sd-template-table th{background:var(--sd197-surface-alt);color:var(--sd197-muted);font-weight:650;letter-spacing:.055em;text-transform:uppercase;font-size:10.5px;padding:13px 12px}
.sd-template-catalog-198 .sd-template-table td{color:var(--sd197-text);padding:13px 12px;line-height:1.45;vertical-align:top;overflow-wrap:anywhere;border-color:var(--sd197-border)}
.sd-template-catalog-198 .sd-template-table tbody tr:last-child td{border-bottom:0}
.sd-template-catalog-198 .sd-template-table tbody tr:hover{background:rgba(81,178,183,.045)}
.sd-template-catalog-198 .sd-template-work{font-weight:580;min-width:0}
.sd-template-category{display:inline-block;padding:4px 8px;border-radius:7px;background:rgba(66,170,166,.11);color:var(--sd197-text)}
.sd-template-material-list{display:flex;flex-wrap:wrap;gap:4px}
.sd-template-material-list span{display:inline-block;max-width:100%;border:1px solid var(--sd197-border);border-radius:6px;padding:3px 6px;background:var(--sd197-surface-alt);font-size:11px}
.sd-template-catalog-198 .sd-template-actions-col{text-align:center}.sd-template-catalog-198 .sd-template-actions-cell{position:relative;text-align:center;overflow:visible}
.sd-template-action-menu{position:relative;display:inline-block}.sd-template-action-menu summary{list-style:none;cursor:pointer;border:1px solid var(--sd197-border);background:var(--sd197-surface-alt);border-radius:8px;width:32px;height:31px;display:grid;place-items:center;font-size:20px;line-height:1;color:var(--sd197-text)}
.sd-template-action-menu summary::-webkit-details-marker{display:none}.sd-template-action-menu[open] summary{border-color:#59bcb0}
.sd-template-action-popup{position:absolute;right:0;top:calc(100% + 5px);z-index:30;width:146px;background:var(--sd197-surface);border:1px solid var(--sd197-border);border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.22);padding:5px;text-align:left}
.sd-template-action-popup a,.sd-template-action-popup button{display:block;width:100%;padding:9px 10px;text-align:left;color:var(--sd197-text);font:inherit;background:transparent;border:0;border-radius:6px;cursor:pointer;text-decoration:none}
.sd-template-action-popup a:hover,.sd-template-action-popup button:hover{background:var(--sd197-surface-alt)}
.sd-template-action-popup form{margin:0}.sd-template-action-popup .sd-template-danger{color:#e37e7e}
.sd-template-empty{text-align:center;padding:26px!important;color:var(--sd197-muted)!important}.sd-template-import-button{margin-top:14px}
@media(max-width:850px){.sd-template-catalog-198 .sd-template-filters{grid-template-columns:1fr 1fr}.sd-template-catalog-198 .sd-template-filters .btn{width:100%}}
@media(max-width:560px){.sd-template-catalog-198 .sd-template-filters{grid-template-columns:1fr}.sd-template-catalog-198 .sd-template-inline{flex-direction:column;align-items:stretch}.sd-template-catalog-198 .sd-template-inline label{width:100%}}

/* v0.3.199 — act template register uses the same dense, full-width grid language as materials */
.sd-template-catalog-199{padding:14px clamp(10px,1.6vw,22px) 35px;max-width:none}
.sd-template-catalog-199 .sd-template-heading{margin-bottom:18px}
.sd-template-catalog-199 .sd-template-selection-toolbar{
 display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:56px;
 padding:9px 12px;border:1px solid var(--sd197-border);border-radius:11px 11px 0 0;
 background:var(--sd197-surface-alt);color:var(--sd197-text)
}
.sd-template-selection-toolbar>span{flex:1;min-width:140px;font-size:14px;font-weight:600}
.sd-template-toolbar-action{padding:8px 12px;border:1px solid var(--sd197-border);
 border-radius:8px;background:var(--sd197-surface);color:var(--sd197-text);
 text-decoration:none;font:inherit;font-size:12px;cursor:pointer}
.sd-template-toolbar-action:disabled,.sd-template-toolbar-action.is-disabled{opacity:.36;cursor:default;pointer-events:none}
.sd-template-catalog-199 .sd-template-grid-shell{border:1px solid var(--sd197-border);border-top:0;border-radius:0 0 11px 11px;overflow:hidden;background:var(--sd197-surface)}
.sd-template-catalog-199 .sd-template-grid-filters{display:grid;grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) auto;align-items:end;background:var(--sd197-surface-alt)}
.sd-template-grid-filters>label{display:grid;gap:5px;padding:10px 12px;border-right:1px solid var(--sd197-border);min-width:0;color:var(--sd197-muted);font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.06em}
.sd-template-grid-filters input,.sd-template-grid-filters select{min-width:0;width:100%;height:36px;border:1px solid var(--sd197-border);border-radius:7px;background:var(--sd197-field);color:var(--sd197-text);padding:6px 10px;font:inherit;font-size:13px;text-transform:none;letter-spacing:0}
.sd-template-filter-actions{display:flex;gap:7px;padding:10px}
.sd-template-filter-actions .btn{min-height:36px;padding:7px 11px}
.sd-template-catalog-199 .sd-template-table-scroll{overflow-x:auto}
.sd-template-catalog-199 .sd-template-table{min-width:850px;width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}
.sd-template-catalog-199 .sd-template-table th,.sd-template-catalog-199 .sd-template-table td{border-right:1px solid var(--sd197-border);border-bottom:1px solid var(--sd197-border);padding:12px 13px;vertical-align:top;text-align:left;overflow-wrap:anywhere}
.sd-template-catalog-199 .sd-template-table th:last-child,.sd-template-catalog-199 .sd-template-table td:last-child{border-right:0}
.sd-template-catalog-199 .sd-template-table th{font-size:11px;letter-spacing:.06em;font-weight:650;text-transform:uppercase;background:var(--sd197-surface-alt);color:var(--sd197-muted)}
.sd-template-catalog-199 .sd-template-table tbody tr{background:var(--sd197-surface);color:var(--sd197-text);cursor:pointer}
.sd-template-catalog-199 .sd-template-table tbody tr:hover{background:rgba(70,167,174,.09)}
.sd-template-catalog-199 .sd-template-table tbody tr.is-selected{background:rgba(72,179,172,.16);box-shadow:inset 3px 0 #59c4b4}
.sd-template-catalog-199 .sd-template-work{font-weight:600}
.sd-template-catalog-199 .sd-template-material-list{display:block}
.sd-template-catalog-199 .sd-template-material-list span{display:block;background:none;border:0;padding:0;font-size:12px;line-height:1.5}
.sd-template-catalog-199 .sd-template-material-list span+span{margin-top:3px}
.sd-template-category-bar{display:flex;align-items:end;gap:10px;margin-top:18px;max-width:900px}
.sd-template-category-bar label{display:grid;gap:6px;flex:1;color:var(--sd197-muted);font-size:12px}
.sd-template-category-bar input{width:100%;height:40px;background:var(--sd197-field);border:1px solid var(--sd197-border);color:var(--sd197-text);padding:8px 11px;border-radius:8px}
@media(max-width:750px){.sd-template-catalog-199 .sd-template-grid-filters{grid-template-columns:1fr}.sd-template-grid-filters>label{border-right:0;border-bottom:1px solid var(--sd197-border)}.sd-template-category-bar{flex-wrap:wrap}.sd-template-category-bar label{min-width:180px}}

/* v200: align filter inputs to table columns; edit individual cells on double click */
.sd-template-catalog-200 .sd-template-grid-filters{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1.15fr) auto!important;gap:0;align-items:stretch!important;margin:0!important;padding:0!important}
.sd-template-catalog-200 .sd-template-grid-filters>label{display:flex!important;flex-direction:column;justify-content:flex-end;gap:5px;min-width:0!important;margin:0!important;padding:10px 12px!important}
.sd-template-catalog-200 .sd-template-grid-filters input,.sd-template-catalog-200 .sd-template-grid-filters select{display:block;width:100%!important;min-width:0!important;max-width:100%;height:38px!important;min-height:38px!important;box-sizing:border-box;margin:0!important}
.sd-template-catalog-200 .sd-template-filter-actions{display:flex;align-items:flex-end;gap:7px;padding:10px 12px}
.sd-template-catalog-200 .sd-template-filter-actions .btn{height:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center}
.sd-template-catalog-200 .sd-template-table td.sd-inline-cell{cursor:cell}
.sd-template-catalog-200 .sd-template-table td.sd-inline-cell:hover{box-shadow:inset 0 0 0 1px #51bfb3}
.sd-cell-editor{min-width:0}.sd-cell-editor input,.sd-cell-editor textarea,.sd-cell-editor select{width:100%;box-sizing:border-box;background:var(--sd197-field);color:var(--sd197-text);border:1px solid #56bcb0;border-radius:6px;padding:6px;font:inherit}
.sd-cell-editor-actions{display:flex;gap:4px;margin-top:6px;flex-wrap:wrap}
.sd-cell-editor-actions button{border:1px solid var(--sd197-border);background:var(--sd197-surface-alt);color:var(--sd197-text);border-radius:5px;padding:5px 7px;font-size:11px;cursor:pointer}
.sd-cell-editor-actions button:first-child{background:#247c74;color:white}
.sd-material-editor{max-height:220px;overflow:auto;min-width:170px}
.sd-material-editor label{display:flex;align-items:flex-start;gap:4px;padding:4px 0;font-size:11px}
.sd-material-editor input{width:auto;flex:none;margin-top:2px}
@media(max-width:800px){.sd-template-catalog-200 .sd-template-grid-filters{grid-template-columns:1fr!important}.sd-template-catalog-200 .sd-template-filter-actions{justify-content:flex-start}}

/* v201: catalog grid and material register visual alignment. 199 styles restored by class. */
.sd-template-catalog-201{width:100%;max-width:none;box-sizing:border-box;padding:14px clamp(12px,1.5vw,22px) 32px!important}
.sd-template-catalog-201 .sd-template-selection-toolbar{margin:0!important;border-radius:10px 10px 0 0!important;display:flex!important;align-items:center!important;gap:8px!important;background:var(--sd197-surface-alt)!important;border:1px solid var(--sd197-border)!important;min-height:55px!important}
.sd-template-catalog-201 .sd-template-selection-toolbar>span{min-width:170px;flex:1}
.sd-template-catalog-201 .sd-template-grid-shell{border:1px solid var(--sd197-border)!important;border-top:0!important;border-radius:0 0 10px 10px!important;overflow:hidden!important;background:var(--sd197-surface)!important}
.sd-template-catalog-201 .sd-template-grid-filters{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1.15fr) auto!important;align-items:stretch!important;gap:0!important;background:var(--sd197-surface-alt)!important;margin:0!important;padding:0!important;border-bottom:1px solid var(--sd197-border)!important}
.sd-template-catalog-201 .sd-template-grid-filters>label{margin:0!important;display:flex!important;flex-direction:column!important;gap:5px!important;justify-content:flex-end!important;padding:10px 12px!important;border-right:1px solid var(--sd197-border)!important;border-bottom:0!important;min-width:0!important}
.sd-template-catalog-201 .sd-template-grid-filters input,.sd-template-catalog-201 .sd-template-grid-filters select{height:38px!important;min-height:38px!important;max-height:38px!important;box-sizing:border-box!important;margin:0!important;width:100%!important;min-width:0!important;background:var(--sd197-field)!important;color:var(--sd197-text)!important;border:1px solid var(--sd197-border)!important;border-radius:7px!important}
.sd-template-catalog-201 .sd-template-filter-actions{display:flex!important;align-items:flex-end!important;gap:7px!important;padding:10px 12px!important;white-space:nowrap}
.sd-template-catalog-201 .sd-template-filter-actions .btn{height:38px!important;min-height:38px!important;margin:0!important;display:inline-flex!important;align-items:center!important}
.sd-template-catalog-201 .sd-template-table-scroll{width:100%;overflow-x:auto!important;background:var(--sd197-surface)!important}
.sd-template-catalog-201 .sd-template-table{width:100%!important;min-width:900px!important;table-layout:fixed!important;border-collapse:collapse!important;margin:0!important;background:var(--sd197-surface)!important}
.sd-template-catalog-201 .sd-template-table thead th{background:var(--sd197-surface-alt)!important;color:var(--sd197-muted)!important;border:1px solid var(--sd197-border)!important;border-left:0!important;border-top:0!important;padding:11px 12px!important;font-size:11px!important}
.sd-template-catalog-201 .sd-template-table tbody td{background:transparent!important;color:var(--sd197-text)!important;border:1px solid var(--sd197-border)!important;border-left:0!important;padding:12px!important;vertical-align:top!important}
.sd-template-catalog-201 .sd-template-table tbody tr{background:var(--sd197-surface)!important}
.sd-template-catalog-201 .sd-template-table tbody tr:hover{background:rgba(71,167,169,.09)!important}
.sd-template-catalog-201 .sd-template-table tbody tr.is-selected{background:rgba(71,167,169,.18)!important}
.sd-template-catalog-201 .sd-template-material-list{display:block!important}
.sd-template-catalog-201 .sd-template-material-list span{display:block!important;background:transparent!important;border:0!important;padding:0!important;margin:0 0 3px!important;white-space:normal!important;line-height:1.5!important}
.sd-template-catalog-201 .sd-inline-cell{cursor:text!important}
.sd-template-catalog-201 .sd-inline-cell:hover{box-shadow:inset 0 0 0 1px #56bcb0!important}
.sd-template-catalog-201 .sd-template-category-bar{margin-top:20px!important}
@media(max-width:800px){.sd-template-catalog-201 .sd-template-grid-filters{grid-template-columns:1fr!important}.sd-template-catalog-201 .sd-template-grid-filters>label{border-right:0!important;border-bottom:1px solid var(--sd197-border)!important}.sd-template-catalog-201 .sd-template-filter-actions{justify-content:flex-start!important}}

/* v0.3.202: header-embedded filters, identical grid alignment to material catalog */
.sd-template-catalog-202 .sd-template-grid-shell{border-top:1px solid var(--sd197-border)!important;border-radius:0 0 10px 10px!important}
.sd-template-catalog-202 .sd-template-table{min-width:760px!important}
.sd-template-catalog-202 .sd-template-table thead tr.sd-template-header-filters th{padding:7px 10px!important;background:var(--sd197-surface-alt)!important;vertical-align:middle!important}
.sd-template-catalog-202 .sd-template-header-filters input,.sd-template-catalog-202 .sd-template-header-filters select{display:block!important;width:100%!important;min-width:0!important;height:34px!important;box-sizing:border-box!important;border:1px solid var(--sd197-border)!important;border-radius:6px!important;background:var(--sd197-field)!important;color:var(--sd197-text)!important;padding:5px 9px!important;font-size:12px!important;font-weight:400!important;letter-spacing:normal!important;text-transform:none!important}
.sd-template-catalog-202 .sd-template-table thead th[rowspan]{vertical-align:middle!important}
.sd-template-catalog-202 .sd-template-table tbody td.sd-inline-cell{cursor:text}
.sd-template-catalog-202 .sd-cell-editor-actions{margin-top:8px}

/* v203: same compact in-cell editing and separate searchable materials picker as hidden-work acts */
.sd-template-catalog-203 .sd-template-table tbody td.sd-inline-cell{position:relative;vertical-align:top!important}
.sd-template-catalog-203 .sd-template-inline-input{display:block;width:100%;min-width:0;box-sizing:border-box;min-height:36px;resize:vertical;padding:7px 8px;font:inherit;font-size:inherit;line-height:1.45;background:var(--sd197-field);color:var(--sd197-text);border:1px solid #56bcb0;border-radius:6px;outline:none}
.sd-template-material-dialog{width:min(850px,calc(100vw - 24px));max-height:min(740px,calc(100dvh - 28px));padding:0;border:1px solid var(--sd197-border);border-radius:12px;background:var(--sd197-surface);color:var(--sd197-text);box-shadow:0 18px 60px #0008}
.sd-template-material-dialog::backdrop{background:rgba(0,12,19,.7)}
.sd-tm-head,.sd-tm-footer{display:flex;align-items:center;gap:12px;padding:15px 18px;background:var(--sd197-surface-alt)}
.sd-tm-head{justify-content:space-between;border-bottom:1px solid var(--sd197-border)}
.sd-tm-head h2{font-size:18px;margin:0}.sd-tm-head button{font-size:24px;background:none;color:inherit;border:0;cursor:pointer}
.sd-tm-body{padding:16px 18px;overflow:auto;max-height:65dvh}.sd-tm-label{display:block;font-size:12px;color:var(--sd197-muted)}
.sd-tm-label input{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px;border:1px solid var(--sd197-border);border-radius:7px;background:var(--sd197-field);color:var(--sd197-text)}
.sd-tm-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.sd-tm-columns section{min-width:0}.sd-tm-columns h3{font-size:13px;margin:0 0 9px}
.sd-tm-list{max-height:320px;min-height:90px;overflow-y:auto;border:1px solid var(--sd197-border);border-radius:7px;padding:6px;color:var(--sd197-muted);font-size:12px}
.sd-tm-item{width:100%;display:flex;justify-content:space-between;gap:10px;align-items:center;text-align:left;border:0;border-radius:5px;padding:8px;background:transparent;color:var(--sd197-text);cursor:pointer;font:inherit;font-size:12px}
.sd-tm-item:hover,.sd-tm-item.selected{background:rgba(71,167,169,.14)}.sd-tm-item span:last-child{color:#56bcb0;font-size:18px}
.sd-tm-footer{justify-content:flex-end;border-top:1px solid var(--sd197-border)}#sdTmError{margin-right:auto;color:#e58b8b;font-size:12px}.sd-tm-secondary{padding:9px 14px;border:1px solid var(--sd197-border);background:var(--sd197-field);color:var(--sd197-text);border-radius:7px;cursor:pointer}
@media(max-width:650px){.sd-tm-columns{grid-template-columns:1fr}.sd-tm-list{max-height:180px}}

/* v0.3.204 — unified material catalog grid, single borders and compact icon toolbar */
.material-library-page{--material-grid-columns:minmax(260px,1.22fr) minmax(150px,.55fr) minmax(130px,.48fr) minmax(300px,1fr)}
.material-library-page .material-selection-toolbar{border-radius:9px 9px 0 0!important;box-shadow:none!important;border-bottom:0!important;min-height:48px;justify-content:flex-end;padding:6px 10px!important}
.material-library-page .material-selection-toolbar .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;min-width:0!important}
.material-library-page .material-selection-actions{display:flex;gap:6px;align-items:center;margin-left:auto}
.material-library-page .material-selection-toolbar .material-icon-action{display:grid;place-items:center;width:34px;height:32px;padding:5px!important;border-radius:7px;color:var(--sd-focus);background:transparent}
.material-library-page .material-icon-action svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.material-library-page .material-icon-action:not(:disabled):hover{background:var(--sd-table-hover)}
.material-library-page .material-selection-toolbar .material-toolbar-danger:not(:disabled){color:#d76565}
.material-library-page .materials-sticky-grid{padding:0!important;margin:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
.material-library-page .material-grid-filter-head,.material-library-page .material-table-row{display:grid!important;grid-template-columns:var(--material-grid-columns)!important;box-sizing:border-box!important;width:100%!important;gap:0!important}
.material-library-page .material-grid-filter-head{border:1px solid var(--sd-table-divider)!important;border-top:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important}
.material-library-page .material-grid-filter-head>.material-filter-cell{box-sizing:border-box!important;min-width:0!important;border-right:1px solid var(--sd-table-divider)!important;border-left:0!important}
.material-library-page .material-grid-filter-head>.material-filter-cell:last-child{border-right:0!important}
.material-library-page .material-grid-list{border:1px solid var(--sd-table-divider)!important;border-top:0!important;border-radius:0 0 9px 9px!important;overflow:hidden!important;box-sizing:border-box!important;width:100%!important}
.material-library-page .material-grid-list>.material-table-row{border:0!important;border-bottom:1px solid var(--sd-table-divider)!important;border-radius:0!important;min-width:0!important}
.material-library-page .material-grid-list>.material-table-row:last-child{border-bottom:0!important;border-radius:0!important}
.material-library-page .material-table-row>div{box-sizing:border-box!important;min-width:0!important;border-left:0!important}
.material-library-page .material-table-row>div+div{border-left:1px solid var(--sd-table-divider)!important}
@media(max-width:760px){.material-library-page .material-grid-filter-head{grid-template-columns:1fr 1fr!important}.material-library-page .material-grid-list>.material-table-row{grid-template-columns:1fr!important}.material-library-page .material-grid-list>.material-table-row>div+div{border-left:0!important;border-top:1px solid var(--sd-table-divider)!important}}

/* v0.3.205 — unified desktop shell, restrained blue-teal sidebar, both themes */
@media(min-width:821px){
 body:has(.sd-app-shell){--sd-rail-width:228px;--sd-header-height:64px}
 body:has(.sd-app-shell:where(.sd-sidebar-collapsed)){--sd-rail-width:58px}
 body:has(.sd-app-shell) .topbar{position:sticky!important;top:0!important;margin-left:var(--sd-rail-width)!important;height:var(--sd-header-height)!important;min-height:var(--sd-header-height)!important;z-index:40!important;border-bottom:1px solid var(--sd-side-line,#24434d)!important;transition:margin-left .18s ease}
 body:has(.sd-app-shell) .topbar-inner{height:100%!important;max-width:none!important;padding:0 22px!important;justify-content:flex-end!important}
 body:has(.sd-app-shell) .topbar .brand{display:none!important}
 body:has(.sd-app-shell) .sd-top-page-title{margin-right:auto;min-width:0;max-width:65%;font-size:18px;font-weight:600;letter-spacing:-.02em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--text,#dceaf0)}
 body:has(.sd-app-shell) .sd-app-shell{grid-template-columns:var(--sd-rail-width) minmax(0,1fr)!important;min-height:calc(100vh - var(--sd-header-height))!important}
 body:has(.sd-app-shell) .sd-sidebar{position:fixed!important;top:0!important;bottom:0!important;left:0!important;width:var(--sd-rail-width)!important;max-height:100vh!important;overflow-y:auto!important;z-index:45!important;padding-top:0!important;background:linear-gradient(165deg,#103c53 0%,#0c2b39 43%,#0b232d 100%)!important;border-right:1px solid rgba(87,169,187,.18)!important;transition:width .18s ease}
 body:has(.sd-app-shell) .sd-sidebar-brand{display:flex;align-items:center;min-height:var(--sd-header-height);padding:8px 12px;margin-bottom:6px}
 body:has(.sd-app-shell) .sd-sidebar-brand-link{display:flex;align-items:center;gap:10px;min-width:0;color:#eef8fa;text-decoration:none}
 body:has(.sd-app-shell) .sd-sidebar-brand-mark{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#1a8e96,#25677e);font-size:22px;font-weight:700;color:#eaf9f9;box-shadow:0 3px 14px rgba(31,189,193,.18)}
 body:has(.sd-app-shell) .sd-sidebar-brand-copy{display:flex;flex-direction:column;justify-content:center;line-height:1.15;min-width:0}
 body:has(.sd-app-shell) .sd-sidebar-brand-copy strong{font-size:18px;font-weight:650;letter-spacing:-.035em}
 body:has(.sd-app-shell) .sd-sidebar-brand-copy small{margin-top:3px;font-size:10px;font-weight:500;letter-spacing:.045em;color:#8ec7ce}
 body:has(.sd-app-shell) .sd-sidebar-top{padding:0 10px 6px!important}
 body:has(.sd-app-shell) .sd-sidebar-eyebrow{font-size:10px!important;letter-spacing:.12em!important;color:#93b7c3!important}
 body:has(.sd-app-shell) .sd-sidebar .sd-side-link{color:#d5e8ed!important}
 body:has(.sd-app-shell) .sd-sidebar .sd-side-link:hover{background:rgba(114,209,213,.12)!important}
 body:has(.sd-app-shell) .sd-sidebar .sd-side-link.is-current{background:rgba(91,192,196,.18)!important;color:#f4ffff!important}
 body:has(.sd-app-shell) .sd-sidebar .sd-side-nav-sep,body:has(.sd-app-shell) .sd-sidebar .sd-global-library{border-color:rgba(174,224,227,.16)!important}
 body:has(.sd-app-shell) .sd-sidebar-collapsed .sd-sidebar-brand{padding:8px 11px}
 body:has(.sd-app-shell) .sd-sidebar-collapsed .sd-sidebar-brand-copy{display:none}
 body:has(.sd-app-shell) .sd-sidebar-collapsed .sd-sidebar-eyebrow{display:none}
 body:has(.sd-app-shell) .sd-workspace-context.sd-context-merged{display:none!important}
 body:has(.sd-app-shell) .contractor-context-bar.section-context-bar{display:none!important}
}
@media(max-width:820px){.sd-sidebar-brand{display:none}.sd-top-page-title{display:none}}
html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd-top-page-title{color:#243b46}
/* Material register: one shared grid geometry, distinct action band, aligned dividers. */
.material-library-page{--material-grid-columns:minmax(0,1.22fr) minmax(0,.55fr) minmax(0,.48fr) minmax(0,1fr)}
.material-library-page .material-selection-toolbar{min-height:41px!important;padding:4px 11px!important;border:1px solid var(--sd-table-divider)!important;border-bottom:1px solid var(--sd-table-divider)!important;background:var(--sd-table-head)!important;box-shadow:inset 0 -1px 0 rgba(100,170,180,.07)!important}
.material-library-page .material-grid-filter-head{width:100%!important;grid-template-columns:var(--material-grid-columns)!important}
.material-library-page .material-grid-list{width:100%!important;scrollbar-gutter:stable!important;overflow-y:auto!important;overflow-x:hidden!important;max-height:min(72vh,850px)!important;scroll-snap-type:y proximity!important;overscroll-behavior:contain}
.material-library-page .material-grid-list>.material-table-row{width:100%!important;grid-template-columns:var(--material-grid-columns)!important;scroll-snap-align:start;scroll-snap-stop:normal}
.material-library-page .material-grid-filter-head>.material-filter-cell{padding-left:9px!important;padding-right:9px!important}
.material-library-page .material-grid-list>.material-table-row>div{padding-left:9px!important;padding-right:9px!important}
/* Keep filter and row boundaries on the same tracks, including reserved scrollbar. */
.material-library-page .materials-sticky-grid{padding-right:var(--sd-material-scrollbar,0px)!important}
@media(max-width:760px){.material-library-page .material-grid-list{max-height:none!important;overflow:visible!important;scroll-snap-type:none!important}.material-library-page .materials-sticky-grid{padding-right:0!important}.material-library-page .material-grid-filter-head{grid-template-columns:1fr 1fr!important}.material-library-page .material-grid-list>.material-table-row{grid-template-columns:1fr!important}}

/* v0.3.206 — fix: fixed sidebar is removed from grid flow.
   Explicitly place workarea in the SECOND grid track; otherwise it shrinks to rail width. */
@media (min-width:821px){
  body:has(.sd-app-shell) .sd-app-shell{display:grid!important;width:100%!important;max-width:none!important;grid-template-columns:var(--sd-rail-width) minmax(0,1fr)!important;align-items:start!important}
  body:has(.sd-app-shell) .sd-app-shell>.sd-workarea{grid-column:2!important;grid-row:1!important;display:block!important;width:100%!important;min-width:0!important;max-width:none!important;overflow:visible!important}
  body:has(.sd-app-shell) .sd-app-shell>.sd-sidebar{grid-column:1!important}
  body:has(.sd-app-shell) .sd-sidebar .sd-side-nav{align-content:start!important;grid-auto-rows:max-content!important;height:auto!important;min-height:0!important}
  body:has(.sd-app-shell) .sd-sidebar .sd-side-object-content{align-content:start!important;grid-auto-rows:max-content!important}
  body:has(.sd-app-shell) .sd-sidebar{height:100dvh!important;max-height:100dvh!important}
  body:has(.sd-app-shell) .sd-workarea>main{width:100%!important;min-width:0!important;max-width:none!important;margin:0!important}
}
@media(max-width:820px){
  .sd-app-shell>.sd-workarea{width:100%;min-width:0;max-width:100%}
}
@media(min-width:821px){
 body:has(.sd-app-shell) .sd-app-shell.sd-sidebar-collapsed>.sd-sidebar{width:58px!important;min-width:0!important;max-width:58px!important;overflow-x:hidden!important}
 body:has(.sd-app-shell) .sd-app-shell.sd-sidebar-collapsed>.sd-workarea{grid-column:2!important}
}

/* v0.3.207 — balanced desktop shell, contained account tools, lighter content background */
@media(min-width:821px){
 body:has(.sd-app-shell){--sd-rail-width:228px;--sd-header-height:64px}
 body:has(.sd-app-shell:where(.sd-sidebar-collapsed)){--sd-rail-width:58px}
 body:has(.sd-app-shell) .topbar{box-sizing:border-box!important;width:calc(100% - var(--sd-rail-width))!important;max-width:none!important;margin-left:var(--sd-rail-width)!important;min-width:0!important;border-bottom:0!important;box-shadow:none!important;overflow:visible!important;background:var(--sd207-main,#0b202b)!important}
 body:has(.sd-app-shell) .topbar-inner{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0 22px!important;display:flex!important;align-items:center!important;gap:16px!important;overflow:hidden!important}
 body:has(.sd-app-shell) .sd-top-page-title{flex:1 1 0!important;max-width:none!important;min-width:0!important;margin:0!important;font-size:15px!important;font-weight:500!important;letter-spacing:-.015em!important}
 body:has(.sd-app-shell) .topbar .account{flex:0 0 auto!important;min-width:0!important;display:flex!important;align-items:center!important;gap:9px!important;margin-left:auto!important;white-space:nowrap!important}
 body:has(.sd-app-shell) .topbar .account form{flex:0 0 auto!important}
 body:has(.sd-app-shell) .topbar .account .link{white-space:nowrap!important}
 body:has(.sd-app-shell) .sd-sidebar-brand{justify-content:flex-start}
 body:has(.sd-app-shell) .sd-app-shell.sd-sidebar-collapsed .sd-sidebar-brand{padding:8px 0!important;justify-content:center!important}
 body:has(.sd-app-shell) .sd-app-shell.sd-sidebar-collapsed .sd-sidebar-brand-link{justify-content:center!important;width:100%!important;gap:0!important}
 body:has(.sd-app-shell) .sd-app-shell.sd-sidebar-collapsed .sd-sidebar-brand-mark{flex:0 0 38px!important;width:38px!important;height:38px!important;margin:0 auto!important}
 body:has(.sd-app-shell) .sd-app-shell.sd-sidebar-collapsed .sd-side-link svg,body:has(.sd-app-shell) .sd-app-shell.sd-sidebar-collapsed .sd-side-link .sd-side-icon svg{width:22px!important;height:22px!important}
 body:has(.sd-app-shell) .sd-app-shell.sd-sidebar-collapsed .sd-side-link{justify-content:center!important}
 html[data-theme="dark"] body:has(.sd-app-shell),html[data-theme="dark"] body:has(.sd-app-shell) .sd-workarea{--sd207-main:#0b202b;background:#0b202b!important}
 html[data-theme="dark"] body:has(.sd-app-shell) main{background:#0b202b!important}
}
/* Subtle site facts: informational text, not a second nested table */
.sd-site-196 .sd-site-196-facts{border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important;margin-top:19px!important;gap:12px!important}
.sd-site-196 .sd-site-196-fact{border:0!important;border-left:0!important;border-top:0!important;border-radius:9px!important;background:rgba(113,173,189,.055)!important;padding:10px 12px!important;gap:10px!important}
.sd-site-196 .sd-site-196-fact-icon{width:30px!important;height:30px!important;flex-basis:30px!important}
.sd-site-196 .sd-site-196-fact-icon svg{width:17px!important;height:17px!important}
.sd-site-196 .sd-site-196-title h1{font-size:clamp(20px,1.9vw,27px)!important;font-weight:450!important;letter-spacing:-.025em!important}
.sd-site-196 .sd-site-196-hero{background:linear-gradient(120deg,rgba(38,121,153,.10),transparent 75%),var(--surface,#102b37)!important}
@media(max-width:650px){.sd-site-196 .sd-site-196-facts{gap:7px!important}.sd-site-196 .sd-site-196-fact{padding:9px!important}}

/* v0.3.208 — unified page geometry and natural document scrolling */
@media(min-width:821px){
 body:has(.sd-app-shell) .sd-workarea>main{
  box-sizing:border-box!important;width:100%!important;max-width:1540px!important;
  margin-left:auto!important;margin-right:auto!important;
  padding-left:clamp(18px,2.1vw,34px)!important;padding-right:clamp(18px,2.1vw,34px)!important;
 }
 body:has(.sd-app-shell) .sd-top-page-title{
  font-size:clamp(18px,1.45vw,22px)!important;font-weight:520!important;
  letter-spacing:-.025em!important;line-height:1.25!important;
 }
 body:has(.sd-app-shell) .topbar-inner{padding-left:clamp(18px,2.1vw,34px)!important;padding-right:clamp(18px,2.1vw,34px)!important}
}
/* Do not trap the register in a second scrolling window. Filters and rows
   use the same grid tracks and the same full content width. */
.material-library-page .material-grid-list{
 max-height:none!important;height:auto!important;overflow:visible!important;
 scrollbar-gutter:auto!important;scroll-snap-type:none!important;
 width:100%!important;min-width:0!important;
}
.material-library-page .materials-sticky-grid{padding-right:0!important;width:100%!important;box-sizing:border-box!important}
.material-library-page .material-grid-filter-head,
.material-library-page .material-grid-list>.material-table-row{
 grid-template-columns:var(--material-grid-columns)!important;
 width:100%!important;box-sizing:border-box!important;
}
.material-library-page .material-grid-filter-head>.material-filter-cell,
.material-library-page .material-grid-list>.material-table-row>div{min-width:0!important;box-sizing:border-box!important}
@media(max-width:760px){
 .material-library-page .material-grid-filter-head{grid-template-columns:1fr 1fr!important}
 .material-library-page .material-grid-list>.material-table-row{grid-template-columns:1fr!important}
}

/* v0.3.209 — fluid content frame shared by full-width pages */
@media(min-width:821px){
 body:has(.sd-app-shell) .sd-workarea>main{
  box-sizing:border-box!important;width:95%!important;max-width:none!important;
  min-width:0!important;margin-left:auto!important;margin-right:auto!important;
  padding-left:0!important;padding-right:0!important;
 }
 body:has(.sd-app-shell) .sd-workarea>main>.material-library-page,
 body:has(.sd-app-shell) .sd-workarea>main>.materials-page,
 body:has(.sd-app-shell) .sd-workarea>main>.sd-premium-home,
 body:has(.sd-app-shell) .sd-workarea>main>.sd-premium-directory,
 body:has(.sd-app-shell) .sd-workarea>main>.sd-premium-detail,
 body:has(.sd-app-shell) .sd-workarea>main>.sd-site-196,
 body:has(.sd-app-shell) .sd-workarea>main>.sd-sites-v183,
 body:has(.sd-app-shell) .sd-workarea>main>.sd-site-v183,
 body:has(.sd-app-shell) .sd-workarea>main>.sd-template-page,
 body:has(.sd-app-shell) .sd-workarea>main>.sd-site-hub,
 body:has(.sd-app-shell) .sd-workarea>main>.sd-sites-index{
  box-sizing:border-box!important;width:100%!important;max-width:none!important;
  min-width:0!important;margin-left:0!important;margin-right:0!important;
 }
 body:has(.sd-app-shell) .topbar-inner{
  box-sizing:border-box!important;width:95%!important;max-width:none!important;
  margin-left:auto!important;margin-right:auto!important;
  padding-left:0!important;padding-right:0!important;
 }
 .material-library-page{--material-grid-columns:minmax(0,1.22fr) minmax(0,.55fr) minmax(0,.48fr) minmax(0,1fr)}
}
@media(min-width:821px) and (max-width:1100px){
 body:has(.sd-app-shell) .sd-workarea>main,body:has(.sd-app-shell) .topbar-inner{width:96%!important}
}

/* v0.3.210 unified responsive entity cards, explicit dual-theme design tokens */
html[data-theme="dark"]{--sd210-card:#112f3b;--sd210-ink:#d8e6ed;--sd210-muted:#91acb8;--sd210-line:#305663;--sd210-glow:rgba(16,190,197,.15);--sd210-side:#0d2e40}
html:not([data-theme="dark"]){--sd210-card:#fff;--sd210-ink:#203b49;--sd210-muted:#617b89;--sd210-line:#d4e4eb;--sd210-glow:rgba(36,145,170,.08);--sd210-side:#edf7fb}
.sd-sites-v183 .sd-v183-site-grid,.sd-premium-directory .sd-premium-contractor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.sd-sites-v183 .sd210-entity-card,.sd-premium-directory .sd210-entity-card{
 box-sizing:border-box!important;min-width:0!important;min-height:0!important;padding:20px!important;
 border:1px solid var(--sd210-line)!important;border-radius:14px!important;
 background:radial-gradient(ellipse at 0 0,var(--sd210-glow),transparent 70%),var(--sd210-card)!important;
 color:var(--sd210-ink)!important;box-shadow:0 3px 13px rgba(0,0,0,.04)!important;
 transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important;
}
.sd-sites-v183 .sd210-entity-card:hover,.sd-premium-directory .sd210-entity-card:hover{
 transform:translateY(-3px)!important;border-color:#40bfc1!important;box-shadow:0 9px 25px var(--sd210-glow)!important;
}
.sd210-entity-top{display:flex;align-items:flex-start;gap:13px;min-width:0;min-height:98px}
.sd-sites-v183 .sd210-entity-icon,.sd210-contractor-icon{width:52px!important;height:52px!important;flex:0 0 52px!important;display:grid!important;place-items:center!important;margin:0!important;
 border:1px solid #2ba8af!important;background:linear-gradient(135deg,rgba(5,139,152,.23),rgba(12,78,105,.12))!important;border-radius:13px!important;color:#5bd8d4!important;box-shadow:0 0 17px rgba(50,203,207,.11)!important}
.sd210-entity-icon svg,.sd210-contractor-icon svg{width:27px!important;height:27px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.sd210-entity-text{display:block;flex:1;min-width:0;padding-top:2px}
.sd-sites-v183 .sd210-entity-text h2,.sd-premium-directory .sd210-entity-text strong{font-size:16px!important;font-weight:560!important;letter-spacing:-.018em!important;line-height:1.24!important;margin:0 0 6px!important;color:var(--sd210-ink)!important}
.sd-sites-v183 .sd210-entity-text p,.sd-premium-directory .sd210-entity-text small{font-size:12px!important;font-weight:400!important;line-height:1.25!important;color:var(--sd210-muted)!important;margin:0 0 4px!important;opacity:1!important;overflow-wrap:anywhere}
.sd-sites-v183 .sd210-entity-text .sd210-customer{margin-bottom:0!important}
.sd210-metrics{margin-top:12px;padding-top:12px;border-top:1px solid var(--sd210-line);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center}
.sd210-metrics>span{display:flex;gap:8px;align-items:center;justify-content:center;min-width:0;color:var(--sd210-muted);font-size:12px;font-weight:450}
.sd210-metrics>span+span{border-left:1px solid var(--sd210-line)}
.sd210-metrics svg,.sd210-contractor-count svg{width:20px;height:20px;flex:0 0 20px;fill:none!important;stroke:currentColor!important;stroke-width:1.6}
.sd210-metrics>span:first-child svg{color:#43c9bb}.sd210-metrics>span:nth-child(2) svg{color:#6ca9ed}.sd210-metrics>span:nth-child(3) svg{color:#e2ae60}
.sd210-heading{align-items:center!important}.sd210-heading h1,.sd-premium-directory .sd-premium-section-head h1{font-size:clamp(22px,1.7vw,29px)!important;font-weight:520!important;color:var(--sd210-muted)!important;letter-spacing:-.025em!important}
.sd-premium-directory .sd210-contractor-main{align-items:flex-start!important;display:flex!important;gap:13px!important}
.sd-premium-directory .sd210-contractor-foot{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:10px;border-top:1px solid var(--sd210-line);color:var(--sd210-muted)}
.sd210-contractor-count{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--sd210-muted)}
.sd-premium-directory .sd210-entity-card .sd-premium-menu{z-index:3}
@media(max-width:1200px){.sd-sites-v183 .sd-v183-site-grid,.sd-premium-directory .sd-premium-contractor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.sd-sites-v183 .sd-v183-site-grid,.sd-premium-directory .sd-premium-contractor-grid{grid-template-columns:1fr}.sd-sites-v183 .sd210-entity-card,.sd-premium-directory .sd210-entity-card{padding:15px!important}}
@media(prefers-reduced-motion:reduce){.sd210-entity-card{transition:none!important}.sd210-entity-card:hover{transform:none!important}}
/* Light theme fixes for the shared application shell and both card catalogs. */
@media(min-width:821px){html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd-sidebar{
 background:linear-gradient(160deg,#e7f5fb 0%,#f3f9fc 55%,#edf6fa 100%)!important;border-right-color:#d4e5ed!important}
 html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd-sidebar .sd-side-link{color:#2a4759!important}
 html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd-sidebar .sd-side-link.is-current{background:#d5edf4!important;color:#0b6277!important}
 html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd-sidebar .sd-side-link:hover{background:#e0f1f6!important}
 html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd-sidebar-brand-link{color:#203e50!important}
 html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd-sidebar-brand-copy small,html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd-sidebar-eyebrow{color:#688d9b!important}
 html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd-sidebar .sd-side-nav-sep,html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd-sidebar .sd-global-library{border-color:#d2e3eb!important}
}

/* v0.3.211: one shared 98% content track across every route and desktop size */
@media(min-width:821px){
 body:has(.sd-app-shell) .sd-workarea>main{width:98%!important;max-width:none!important;min-width:0!important;margin-inline:auto!important;padding-inline:0!important;box-sizing:border-box!important}
 body:has(.sd-app-shell) .topbar-inner{width:98%!important;max-width:none!important;min-width:0!important;margin-inline:auto!important;padding-inline:0!important;box-sizing:border-box!important}
 body:has(.sd-app-shell) .sd-workarea>main>div,body:has(.sd-app-shell) .sd-workarea>main>section{max-width:none!important;min-width:0!important}
}
.sd-top-page-title{font-weight:520!important;letter-spacing:.07em!important;text-transform:uppercase!important;color:var(--sd210-muted,#91a9b5)!important;font-size:clamp(15px,1.03vw,19px)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sd-premium-home .sd211-recent{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
.sd211-recent .sd-premium-section-head{padding:0 0 10px!important;margin:0!important;background:transparent!important;border:0!important}
.sd211-recent .sd-premium-section-head h2{font-size:15px!important;font-weight:480!important;letter-spacing:.015em!important;color:var(--sd210-muted)!important}
.sd211-recent .sd-premium-table-scroll{border:1px solid var(--sd197-border);border-radius:11px;overflow-x:auto;overflow-y:hidden}
.sd211-recent .sd-premium-table{width:100%;border-collapse:collapse;table-layout:fixed}
.sd211-recent .sd-premium-table thead tr{background:var(--sd197-surface-alt)!important}
.sd211-recent .sd-premium-table th{border-bottom:1px solid var(--sd197-border)!important;color:var(--sd210-muted)!important;opacity:1!important;font-weight:570!important;font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.sd211-recent .sd-premium-table th:first-child{width:28%}
.sd211-recent .sd-premium-table th:nth-child(2){width:23%}
.sd211-recent .sd-premium-table th:nth-child(3){width:25%}
.sd211-recent .sd-premium-table th:nth-child(4){width:12%}
.sd211-recent .sd-premium-table th:nth-child(5){width:12%}
.sd211-recent .sd-premium-table td{overflow-wrap:anywhere;color:var(--sd210-ink)}
.sd211-recent .sd-premium-table tbody tr:hover{background:rgba(70,177,182,.07)}
.sd211-customer-reference{display:grid;gap:5px;padding:10px 4px;color:var(--sd210-ink)}
.sd211-customer-reference>span,.sd211-customer-reference>small{color:var(--sd210-muted);font-size:12px}
@media(max-width:820px){.sd-top-page-title{font-size:14px!important}.sd211-recent .sd-premium-table{table-layout:auto}}

/* v0.3.212 — one content track, no nested page gutters.
   Both the top bar and main use precisely the same percentage of the
   actual workspace, with a single point of padding (the viewport track). */
@media(min-width:821px){
  body:has(.sd-app-shell) .sd-workarea>main,
  body:has(.sd-app-shell) .topbar-inner{
    box-sizing:border-box!important;
    width:98%!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:auto!important;margin-right:auto!important;
    padding-left:0!important;padding-right:0!important;
  }
  /* Previously individual pages added 12–30 px side padding *inside*
     the 98%-wide track, creating visible misalignment across routes. */
  body:has(.sd-app-shell) .sd-workarea>main>.sd-premium-home,
  body:has(.sd-app-shell) .sd-workarea>main>.sd-premium-directory,
  body:has(.sd-app-shell) .sd-workarea>main>.sd-premium-detail,
  body:has(.sd-app-shell) .sd-workarea>main>.sd-sites-v183,
  body:has(.sd-app-shell) .sd-workarea>main>.sd-site-196,
  body:has(.sd-app-shell) .sd-workarea>main>.sd-template-page,
  body:has(.sd-app-shell) .sd-workarea>main>.sd-template-catalog-198,
  body:has(.sd-app-shell) .sd-workarea>main>.sd-material-library,
  body:has(.sd-app-shell) .sd-workarea>main>.materials-page{
    box-sizing:border-box!important;width:100%!important;max-width:none!important;
    margin-left:0!important;margin-right:0!important;
    padding-left:0!important;padding-right:0!important;
  }
  body:has(.sd-app-shell) .sd-workarea>main .sd-premium-home-grid,
  body:has(.sd-app-shell) .sd-workarea>main .sd-premium-contractor-grid,
  body:has(.sd-app-shell) .sd-workarea>main .sd-v183-site-grid{
    width:100%!important;max-width:none!important;margin-inline:0!important;
  }
}
/* Shared subdued table surfaces and typography, including the home table.
   Unlike the previous release, don't make recent-objects section transparent. */
html[data-theme="dark"]{
  --sd212-table:#122f3b;--sd212-row:#102935;
  --sd212-heading:#92aebc;--sd212-rule:#294a57;
}
html:not([data-theme="dark"]){
  --sd212-table:#f1f7fa;--sd212-row:#fff;
  --sd212-heading:#607c8b;--sd212-rule:#d5e4ec;
}
.sd-premium-home .sd211-recent{
  background:var(--sd212-row)!important;
  border:1px solid var(--sd212-rule)!important;
  border-radius:12px!important;
  padding:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.sd211-recent .sd-premium-section-head{
  padding:13px 15px!important;
  margin:0!important;
  background:var(--sd212-table)!important;
  border-bottom:1px solid var(--sd212-rule)!important;
}
.sd211-recent .sd-premium-section-head h2{
  font-size:14px!important;font-weight:500!important;color:var(--sd212-heading)!important;
}
.sd211-recent .sd-premium-table-scroll{
  border:0!important;border-radius:0!important;background:var(--sd212-row)!important;
}
.sd211-recent .sd-premium-table thead tr{background:var(--sd212-table)!important}
.sd211-recent .sd-premium-table th{
  background:var(--sd212-table)!important;
  color:var(--sd212-heading)!important;
  border-bottom:1px solid var(--sd212-rule)!important;
}
.sd211-recent .sd-premium-table tbody tr{
  background:var(--sd212-row)!important;
  border-bottom:1px solid var(--sd212-rule)!important;
}
.sd211-recent .sd-premium-table td,
.sd211-recent .sd-premium-object-name{
  color:var(--sd212-heading)!important;
  font-weight:450!important;
}
.sd211-recent .sd-premium-table tbody tr:hover{
  background:var(--sd212-table)!important;
}
.sd-top-page-title{
  font-weight:520!important;
  color:var(--sd212-heading)!important;
}
/* Tabular records should use one predictable border and same text tone. */
.sd-template-table td,.sd-premium-table td{line-height:1.45}

/* v0.3.213 — unified route header and catalog action bars */
.sd213-header-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;color:#7fa6b8}
.sd213-header-icon .sd-nav-icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
.sd-top-page-title{display:flex!important;align-items:center;gap:10px;}
.sd213-header-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sd213-searchbar{display:flex!important;align-items:center!important;gap:10px!important;margin-bottom:17px!important;width:100%!important;max-width:none!important;flex-wrap:wrap!important}
.sd213-searchbar>input{flex:0 1 390px!important;width:min(390px,60%)!important;min-width:180px!important;max-width:390px!important}
.sd213-searchbar .sd213-create{margin-left:auto!important;white-space:nowrap!important}
.sd213-recent-heading{margin:24px 0 10px!important;color:var(--sd212-heading)!important;font-size:15px!important;font-weight:500!important;letter-spacing:.01em}
.sd-premium-home .sd211-recent .sd-premium-table-scroll{background:var(--sd212-row)!important}
.sd-premium-home .sd211-recent{background:var(--sd212-row)!important}
.sd-template-catalog-203 .sd-template-selection-toolbar{justify-content:flex-start!important;min-height:40px!important;padding:4px 0!important;border:0!important;border-radius:0!important;background:transparent!important;gap:6px!important}
.sd-template-catalog-203 .sd-template-create-button{margin-left:auto;white-space:nowrap}
.sd-template-selection-toolbar #sdTemplateSelectionLabel.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}
.sd-template-catalog-203 .sd-template-toolbar-action{display:inline-grid;place-items:center;width:35px;height:34px;padding:6px!important;flex:0 0 auto;min-width:0;border:1px solid var(--sd197-border);background:var(--sd197-surface);color:var(--sd197-text)}
.sd-template-toolbar-action svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.sd-template-catalog-203 .sd-template-grid-shell{border-top:1px solid var(--sd197-border)!important;border-radius:10px!important}
.sd-template-catalog-203 .sd-template-inline-input{display:block!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:none!important;background:transparent!important;color:inherit!important;width:100%!important;height:100%!important;min-height:42px!important;resize:none!important;padding:0!important;font:inherit!important;line-height:1.45!important}
.sd-template-catalog-203 .sd-inline-cell.sd213-editing{background:rgba(76,169,173,.14)!important;outline:1px solid #5ac7be!important;outline-offset:-1px!important}
.sd-template-catalog-203 .sd-template-material-list span{display:inline!important;margin:0!important;line-height:1.45!important;background:transparent!important;border:0!important;padding:0!important}
.material-library-page .material-selection-toolbar{background:transparent!important;border:0!important;padding:0 0 9px!important;justify-content:flex-start!important;box-shadow:none!important;border-radius:0!important}
.material-library-page .material-selection-toolbar .material-selection-actions{justify-content:flex-start!important}
.material-library-page .material-grid-filter-head,.material-library-page .material-filter-cell{background:var(--sd212-table)!important}
.material-library-page .material-filter-cell input,.material-library-page .material-filter-cell select{background:var(--sd212-table)!important;border-color:var(--sd212-rule)!important;color:var(--sd212-heading)!important}
@media(max-width:820px){.sd-top-page-title{display:none!important}.sd213-searchbar>input{flex:1 1 100%!important;width:100%!important;max-width:none!important}.sd213-searchbar .sd213-create{margin-left:auto!important}}

/* v0.3.214: reliable route icons in the shared header. */
body:has(.sd-app-shell) .sd-top-page-title{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
.sd214-header-icon{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;color:var(--sd212-heading,#91a9b5);opacity:1!important;visibility:visible!important}
.sd214-header-icon svg{display:block!important;position:static!important;width:22px!important;height:22px!important;stroke:currentColor!important;stroke-width:1.8!important;fill:none!important;stroke-linecap:round!important;stroke-linejoin:round!important;opacity:1!important;visibility:visible!important}
.sd214-header-icon svg path,.sd214-header-icon svg circle{fill:none!important;stroke:currentColor!important}
@media(max-width:820px){body:has(.sd-app-shell) .sd-top-page-title{display:none!important}}

/* v0.3.215: compact home register and reusable two-pane materials picker */
.sd-premium-home .sd211-recent .sd-premium-table{display:table!important;width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;height:auto!important}
.sd-premium-home .sd211-recent .sd-premium-table thead{display:table-header-group!important}
.sd-premium-home .sd211-recent .sd-premium-table tbody{display:table-row-group!important;height:auto!important}
.sd-premium-home .sd211-recent .sd-premium-table tr{display:table-row!important;height:auto!important;min-height:0!important;max-height:none!important}
.sd-premium-home .sd211-recent .sd-premium-table td,.sd-premium-home .sd211-recent .sd-premium-table th{display:table-cell!important;height:auto!important;min-height:0!important;padding:10px 12px!important;vertical-align:middle!important}
.sd-premium-home .sd211-recent .sd-premium-table tbody tr{height:48px!important}
.sd-premium-home .sd211-recent .sd-premium-table-scroll{height:auto!important;min-height:0!important;max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
.sd-premium-home .sd211-recent{height:auto!important;min-height:0!important}
.sd-tm-filters{display:grid;grid-template-columns:minmax(170px,2fr) minmax(120px,1fr) minmax(120px,1fr);gap:10px;margin-bottom:12px}
.sd-tm-filters label{display:grid;gap:5px;font-size:12px;color:var(--muted)}
.sd-tm-filters input,.sd-tm-filters select{box-sizing:border-box;width:100%;min-width:0;min-height:38px;background:var(--sd197-field,var(--surface));color:var(--sd197-text,var(--text));border:1px solid var(--sd197-border,var(--line));border-radius:7px;padding:7px 9px}
.sd-template-edit-panes{margin-top:10px;min-height:220px}.sd-template-edit-panes .sd-tm-list{max-height:340px;overflow:auto}
.sd-template-category-static{cursor:default!important}
.material-library-page .material-selection-toolbar{display:flex!important;justify-content:flex-start!important;align-items:center!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0 0 9px!important;min-height:38px!important}
.material-library-page .material-selection-toolbar .material-selection-actions{margin:0!important;justify-content:flex-start!important}
@media(max-width:700px){.sd-tm-filters{grid-template-columns:1fr}.sd-template-edit-panes{grid-template-columns:1fr!important}}

/* v0.3.216: standalone recent objects grid; prevents legacy table row stretching. */
.sd-premium-home .sd211-recent{display:block!important;height:auto!important;min-height:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
.sd216-recent-grid{display:block;width:100%;overflow-x:auto;border:1px solid var(--sd212-rule,#2a4a56);border-radius:10px;background:var(--sd212-row,#102935)}
.sd216-recent-row{display:grid!important;grid-template-columns:minmax(210px,1.3fr) minmax(180px,1fr) minmax(190px,1fr) minmax(100px,.45fr) minmax(95px,.45fr) minmax(110px,.5fr);min-width:900px;gap:0;align-items:center;box-sizing:border-box;width:100%;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important}
.sd216-recent-row>span{min-width:0;box-sizing:border-box;padding:10px 12px;line-height:1.4;font-size:12px;overflow-wrap:anywhere}
.sd216-recent-head{background:var(--sd212-table,#122f3b)!important;border-bottom:1px solid var(--sd212-rule,#2a4a56)}
.sd216-recent-head>span{font-size:10px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--sd212-heading,#9cb3be)}
.sd216-recent-entry{border-bottom:1px solid var(--sd212-rule,#2a4a56);text-decoration:none!important;color:var(--sd212-heading,#9cb3be)!important;background:var(--sd212-row,#102935)!important;transition:background .15s}
.sd216-recent-entry:last-child{border-bottom:0}
.sd216-recent-entry:hover{background:var(--sd212-table,#122f3b)!important}
.sd216-recent-name{display:flex;align-items:center;gap:9px;font-weight:500;color:inherit!important}
.sd216-recent-name .sd-premium-object-icon{width:27px;height:27px;flex:0 0 27px;border-radius:7px}
.sd216-recent-name .sd-premium-object-icon svg{width:18px;height:18px}
.sd216-recent-empty{padding:20px;font-size:13px;color:var(--sd212-heading)}
/* Materials action buttons are a free-standing left-aligned row, never
   part of the sticky grid/header. Override old sticky rules explicitly. */
body .material-library-page>.material-selection-toolbar#materialSelectionToolbar{
  position:relative!important;top:auto!important;left:auto!important;right:auto!important;
  z-index:1!important;width:max-content!important;max-width:100%!important;
  display:flex!important;flex-flow:row nowrap!important;justify-content:flex-start!important;
  align-items:center!important;gap:6px!important;min-height:0!important;
  margin:0 0 12px 0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;transform:none!important;
}
body .material-library-page #materialSelectionToolbar>.material-selection-actions{
  display:flex!important;justify-content:flex-start!important;flex:0 0 auto!important;
  gap:7px!important;margin:0!important;padding:0!important;
}
body .material-library-page #materialSelectionToolbar .material-icon-action{
  width:35px!important;height:35px!important;flex:0 0 35px!important;
  background:transparent!important;border:1px solid var(--sd-table-divider)!important;
}
body .material-library-page>.materials-sticky-grid{
  top:var(--materials-sticky-top,0px)!important;
}

/* v0.3.217 · construction-site financial overview, no photo or extra ornament */
.sd-site-196 .sd217-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:22px;align-items:center;position:relative;padding:24px 62px 24px 25px!important;min-height:225px}
.sd217-identity{min-width:0;display:flex;align-items:flex-start;gap:20px}
.sd217-identity-copy{min-width:0}
.sd217-identity-copy h1{margin:1px 0 11px;font-size:clamp(20px,1.6vw,27px);font-weight:500;letter-spacing:-.02em;line-height:1.25}
.sd217-address{font-size:13px;color:var(--sd197-muted,#a0b2bd);margin:0 0 17px}
.sd217-customer{display:flex;flex-direction:column;gap:4px;font-size:13px;line-height:1.45}
.sd217-customer small{font-size:11px;color:var(--sd197-muted,#a0b2bd)}
.sd217-customer span{font-weight:550;overflow-wrap:anywhere}
.sd217-finance{border-left:1px solid var(--sd197-border,#2e4c58);padding-left:clamp(16px,2vw,32px);display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0}
.sd217-finance-numbers{flex:1;min-width:0}
.sd217-contract-count{margin-bottom:17px;display:flex;align-items:baseline;gap:14px}
.sd217-contract-count>span{font-size:13px;color:var(--sd197-muted,#a0b2bd)}
.sd217-contract-count strong{font-size:29px;font-weight:550;color:var(--sd197-text,#e9f3f6);font-variant-numeric:tabular-nums}
.sd217-finance-rows{margin:0;display:grid;gap:12px}
.sd217-finance-rows>div{display:flex;align-items:baseline;justify-content:space-between;gap:15px;font-size:12px}
.sd217-finance-rows dt{color:var(--sd197-muted,#a0b2bd);white-space:nowrap}
.sd217-finance-rows dd{margin:0;font-size:13px;font-weight:550;white-space:nowrap;font-variant-numeric:tabular-nums}
.sd217-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px;vertical-align:middle}
.sd217-dot-blue{background:#369fe8}.sd217-dot-green{background:#51d9ad}.sd217-dot-gray{background:#7d9cac}
.sd217-finance-warning{font-size:10px;margin:12px 0 0;color:var(--sd197-muted,#a0b2bd);line-height:1.45}
.sd217-chart-wrap{display:grid;place-items:center;flex:0 0 156px}
.sd217-donut{width:140px;height:140px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#4bd9ac 0 var(--sd217-progress),#597b8b var(--sd217-progress) 100%);box-shadow:0 0 17px rgba(36,151,181,.12)}
.sd217-donut>div{width:104px;height:104px;border-radius:50%;background:var(--sd197-surface,#102934);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.sd217-donut strong{font-size:24px;font-weight:550;font-variant-numeric:tabular-nums}
.sd217-donut span{font-size:10px;color:var(--sd197-muted,#a0b2bd)}
.sd217-donut-unknown{background:conic-gradient(#597b8b 0 100%)}
.sd217-edit{position:absolute;top:18px;right:18px}
@media(max-width:1250px){.sd-site-196 .sd217-hero{grid-template-columns:1fr;padding-right:24px!important}.sd217-finance{border-left:0;border-top:1px solid var(--sd197-border,#2e4c58);padding:16px 0 0}.sd217-chart-wrap{flex-basis:120px}.sd217-donut{width:118px;height:118px}.sd217-donut>div{width:86px;height:86px}}
@media(max-width:580px){.sd-site-196 .sd217-hero{padding:18px 13px!important}.sd217-identity{gap:11px}.sd217-finance{gap:10px}.sd217-chart-wrap{flex-basis:95px}.sd217-donut{width:92px;height:92px}.sd217-donut>div{width:68px;height:68px}.sd217-donut strong{font-size:17px}.sd217-finance-rows>div{flex-wrap:wrap;gap:2px}.sd217-finance-rows dd{font-size:12px}.sd217-edit{right:12px;top:10px}.sd217-identity-copy h1{padding-right:32px}}

/* v0.3.218: clear nested contract/AVR finance rings.
   Outer blue = whole contractual amount; inner ring = green accepted work
   and grey remainder. Neither layer represents three additive categories. */
.sd217-donut.sd218-donut{position:relative;isolation:isolate;background:none!important;box-shadow:none!important;display:grid;place-items:center}
.sd218-donut::before{content:"";position:absolute;inset:0;border-radius:50%;background:#399ff1;
 -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 11px),#000 calc(100% - 10px));
 mask:radial-gradient(farthest-side,transparent calc(100% - 11px),#000 calc(100% - 10px));}
.sd218-donut::after{content:"";position:absolute;inset:17px;border-radius:50%;background:conic-gradient(#4bd9ac 0 var(--sd217-progress),#718c9b var(--sd217-progress) 100%);
 -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 10px),#000 calc(100% - 9px));
 mask:radial-gradient(farthest-side,transparent calc(100% - 10px),#000 calc(100% - 9px));}
.sd218-donut>div{position:relative;z-index:1;background:none!important;width:auto!important;height:auto!important;max-width:75%;text-align:center}
.sd218-donut.sd217-donut-unknown::before{background:#647c8a}
.sd218-donut.sd217-donut-unknown::after{background:#647c8a}
.sd-site-196 .sd217-hero{min-height:0;padding-top:17px!important;padding-bottom:17px!important}
.sd217-address,.sd217-customer{display:flex;align-items:flex-start;gap:9px;line-height:1.4;margin-bottom:8px}
.sd217-customer{flex-direction:row;flex-wrap:nowrap}
.sd218-meta-icon{width:17px;height:17px;flex-shrink:0;color:#8fb7ce}
.sd217-finance{gap:12px}
.sd217-finance-numbers{flex:1 1 auto}
.sd217-finance-rows>div{justify-content:flex-start}
.sd217-finance-rows dt{flex:1 1 auto}
.sd217-finance-rows dd{flex:0 0 auto;text-align:right}
.sd218-contractors{margin:14px 0 21px}
.sd218-contractor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sd218-contractor-tile{display:grid;grid-template-columns:48px minmax(100px,.9fr) minmax(230px,1.4fr);gap:12px;align-items:center;min-height:97px;
 border:1px solid var(--sd197-border,#2e4c58);border-radius:13px;padding:14px 16px;background:var(--sd197-surface,#102934);
 color:var(--sd197-text,#e9f3f6);text-decoration:none;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.sd218-contractor-tile:hover{border-color:#51d7bd;transform:translateY(-2px);box-shadow:0 5px 20px rgba(23,166,148,.11)}
.sd218-contractor-icon{width:43px;height:43px;border-radius:10px;display:grid;place-items:center;background:rgba(38,168,143,.16);color:#53dbb5;border:1px solid rgba(48,196,162,.35)}
.sd218-contractor-icon svg{width:25px;height:25px;fill:none!important;stroke:currentColor!important}
.sd218-contractor-name{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.sd218-contractor-numbers{margin:0;padding-left:14px;border-left:1px solid var(--sd197-border,#2e4c58);display:grid;gap:5px}
.sd218-contractor-numbers>div:not(.sd218-contractor-warning){display:flex;gap:8px;justify-content:space-between;align-items:baseline;font-size:11px}
.sd218-contractor-numbers dt{color:var(--sd197-muted,#9cb3be)}
.sd218-contractor-numbers dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:550}
.sd218-contractor-warning{font-size:10px;color:#deb36c}
.sd218-add-contractor{display:inline-block;margin-top:10px;font-size:12px;color:#4cd5b4;text-decoration:none}
@media(min-width:1500px){.sd218-contractor-grid{grid-template-columns:repeat(auto-fit,minmax(380px,1fr))}}
@media(max-width:1050px){.sd218-contractor-grid{grid-template-columns:1fr}}
@media(max-width:650px){.sd218-contractor-tile{grid-template-columns:42px minmax(0,1fr);padding:12px}.sd218-contractor-numbers{grid-column:1/-1;padding-left:0;padding-top:9px;border-left:0;border-top:1px solid var(--sd197-border,#2e4c58)}.sd218-donut::after{inset:13px}.sd218-donut::before{ -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 8px),#000 calc(100% - 7px));mask:radial-gradient(farthest-side,transparent calc(100% - 8px),#000 calc(100% - 7px))}}

/* v0.3.219: exact 2:1 construction site hero and reliable SVG finance rings */
@media (min-width:1251px){
  .sd-site-196 .sd217-hero{grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;gap:18px!important}
  .sd-site-196 .sd217-finance{padding-left:18px!important;gap:10px!important}
  .sd-site-196 .sd217-chart-wrap{flex:0 0 105px!important}
}
.sd-site-196 .sd219-ring{width:126px;height:126px;position:relative;display:grid;place-items:center;flex-shrink:0}
.sd-site-196 .sd219-ring svg{display:block;width:100%;height:100%;overflow:visible}
.sd-site-196 .sd219-ring svg circle{stroke-linecap:butt;opacity:1;stroke-dashoffset:0}
.sd219-ring-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;pointer-events:none;text-align:center}
.sd219-ring-label strong{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--sd197-text,#ecf4f6)}
.sd219-ring-label span{font-size:9px;color:var(--sd197-muted,#a1b4bc)}
.sd217-design-doc span{display:grid;gap:3px;min-width:0}
.sd217-design-doc small{display:block;font-size:10px;letter-spacing:.03em;text-transform:uppercase;color:var(--sd197-muted,#a1b4bc)}
.sd217-design-doc br{content:""}
.sd217-design-doc .sd218-meta-icon{margin-top:1px;flex:0 0 auto}
.sd-site-196 .sd217-finance-numbers{min-width:0}
.sd-site-196 .sd217-contract-count{margin-bottom:10px;gap:10px}
.sd-site-196 .sd217-contract-count strong{font-size:25px}
.sd-site-196 .sd217-finance-rows{gap:8px}
.sd-site-196 .sd217-finance-rows>div{display:grid;grid-template-columns:minmax(90px,1fr) auto;column-gap:10px;align-items:baseline;justify-content:initial}
.sd-site-196 .sd217-finance-rows dt{font-size:11px;white-space:normal}
.sd-site-196 .sd217-finance-rows dd{font-size:11px;white-space:nowrap;text-align:right}
.sd-site-196 .sd218-contractor-numbers{width:100%;max-width:315px;justify-self:end;min-width:0}
.sd-site-196 .sd218-contractor-numbers>div:not(.sd218-contractor-warning){display:grid;grid-template-columns:minmax(65px,100px) minmax(100px,1fr);gap:10px;justify-content:initial}
.sd-site-196 .sd218-contractor-numbers dd{text-align:right}
.sd219-contractor-page{padding-top:15px}
.sd219-contractor-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin:15px 0 20px}
.sd219-contractor-list-item{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--sd197-border,#2e4c58);border-radius:12px;background:var(--sd197-surface,#102934);color:var(--sd197-text,#ecf4f6);text-decoration:none}
.sd219-contractor-list-item:hover{border-color:#49c8b5}
.sd219-contractor-chevron{margin-left:auto;color:#49c8b5;font-size:24px}
@media(max-width:1250px){.sd-site-196 .sd217-finance{gap:12px!important}.sd-site-196 .sd217-chart-wrap{flex-basis:112px!important}}
@media(max-width:650px){.sd-site-196 .sd219-ring{width:98px;height:98px}.sd-site-196 .sd217-finance-rows>div{grid-template-columns:minmax(70px,1fr) auto}.sd-site-196 .sd217-finance-rows dd{font-size:10px}.sd-site-196 .sd218-contractor-numbers{max-width:none}}

/* v0.3.220: additional shared site metadata, does not change the compact hero. */
.sd220-site-data{display:flex;flex-wrap:wrap;gap:10px 32px;margin:10px 0 12px;padding:12px 16px;border:1px solid var(--sd197-border,#294a56);border-radius:12px;background:var(--sd197-surface,#102b36)}
.sd220-site-data p{margin:0;display:grid;gap:4px;max-width:100%;min-width:min(230px,100%);flex:1}
.sd220-site-data span{font-size:11px;font-weight:500;color:var(--sd197-muted,#9fb0bc)}
.sd220-site-data strong{font-size:13px;line-height:1.45;font-weight:500;white-space:normal;overflow-wrap:anywhere}

/* v0.3.223: site-scoped contractor workspace */
.sd223-page{max-width:1400px;margin:auto}.sd223-header{display:flex;align-items:center;gap:18px;border:1px solid var(--border,#324151);border-radius:16px;padding:20px 24px;margin:14px 0}.sd223-header-title{flex:1;min-width:0}.sd223-header-title h1{margin:0 0 5px;font-size:23px}.sd223-header-title p{margin:3px 0;color:var(--muted,#94a3b8);font-size:13px}.sd223-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 24px}.sd223-metrics>div,.sd223-contract{border:1px solid var(--border,#324151);border-radius:14px;padding:15px 18px;background:var(--card-bg,rgba(85,110,140,.045))}.sd223-metrics span,.sd223-contract dt{display:block;color:var(--muted,#94a3b8);font-size:12px}.sd223-metrics strong{display:block;margin-top:8px;font-size:17px;font-variant-numeric:tabular-nums}.sd223-section-head{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px;gap:12px}.sd223-section-head h2{font-size:17px;margin:0}.sd223-contract-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sd223-contract-title{display:flex;flex-direction:column;gap:4px}.sd223-contract-title>span{font-size:12px;color:var(--muted,#94a3b8)}.sd223-contract dl{margin:12px 0;display:grid;gap:8px}.sd223-contract dl div{display:flex;gap:12px;align-items:baseline;justify-content:space-between}.sd223-contract dd{margin:0;font-size:13px;text-align:right}.sd223-projects{display:flex;flex-wrap:wrap;gap:10px}.sd223-projects a{padding:10px 14px;border:1px solid var(--border,#324151);border-radius:9px}@media(max-width:920px){.sd223-contract-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.sd223-header{flex-wrap:wrap}.sd223-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sd223-contract-grid{grid-template-columns:1fr}}

/* v0.3.232 — contracts page */
@media(min-width:821px){
 body:has(.fin-page) .sd-app-shell .sd-workarea>main{
   width:98%!important;max-width:none!important;
   margin-inline:auto!important;padding-inline:0!important
 }
 .sd-workarea>main>.fin-page{
   width:100%!important;max-width:none!important;
   padding-inline:0!important;margin-inline:0!important
 }
}
.fin-contracts-toolbar{
 border:0!important;border-bottom:0!important;
 padding:0 0 9px!important;margin:0!important;
 background:transparent!important;box-shadow:none!important;
 display:flex!important;align-items:center!important;
 gap:10px!important;min-height:40px!important
}
.fin-contracts-actions{
 margin-left:auto!important;display:flex!important;
 align-items:center!important;gap:7px!important;
 flex-wrap:wrap!important
}
.fin-contract-add-btn{
 min-height:32px!important;padding:6px 12px!important;
 font-size:11px!important;border-radius:8px!important;
 white-space:nowrap!important
}
.fin-contracts-scroll{
 width:100%!important;min-width:0!important;
 max-width:100%!important;max-height:none!important;
 overflow:visible!important;border-radius:10px!important;
 scrollbar-width:none!important
}
.fin-contracts-scroll::-webkit-scrollbar{display:none!important}
.fin-contracts-v171 .fin-contracts-table{
 width:100%!important;min-width:0!important;
 max-width:100%!important;table-layout:fixed!important;
 border-collapse:collapse!important
}
.fin-contracts-v171 .fin-contracts-table :is(th,td){
 min-width:0!important;padding:9px 10px!important;
 overflow-wrap:anywhere!important
}
.fin-contracts-v171 .fin-contracts-table col.fin-col-contract{width:22%}
.fin-contracts-v171 .fin-contracts-table col.fin-col-customer{width:31%}
.fin-contracts-v171 .fin-contracts-table col.fin-col-contractor{width:31%}
.fin-contracts-v171 .fin-contracts-table col.fin-col-sum{width:16%}
@media(max-width:760px){
 .fin-contracts-scroll{overflow-x:auto!important}
 .fin-contracts-v171 .fin-contracts-table{min-width:640px!important}
}
.sd213-header-main{display:block}
.sd213-header-sub{
 display:block;font-size:11px;line-height:1.2;
 letter-spacing:0;text-transform:none;
 font-weight:450;color:var(--sd210-muted,#91a9b5)
}


/* v0.3.254: general contractor catalog; self-contained visual adjustments */
.sd254-catalog .sd254-card{position:relative;display:flex;flex-direction:column;min-height:196px!important;padding:19px 20px 13px!important;overflow:visible!important}
.sd254-catalog .sd254-card:has(.sd254-menu[open]){z-index:40!important;transform:none!important}
.sd254-catalog .sd-premium-contractor-main{flex:1;min-height:88px;min-width:0;align-items:flex-start!important}
.sd254-catalog .sd210-entity-text{min-width:0}
.sd254-catalog .sd210-entity-text strong{font-weight:650!important;font-size:17px!important}
.sd254-catalog .sd210-entity-text small{line-height:1.28!important;max-height:3.9em;overflow:hidden}
.sd254-catalog .sd254-leader{display:flex;align-items:center;gap:9px;margin-top:7px;padding:10px 2px 11px;border-top:1px solid var(--sd210-line);color:var(--sd210-ink);font-size:12px;min-width:0}
.sd254-catalog .sd254-leader strong{font-weight:600;overflow-wrap:anywhere}
.sd254-catalog .sd254-leader svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.sd254-catalog .sd210-contractor-foot{margin-top:0!important;padding-top:9px!important}
.sd254-catalog .sd254-menu[open] .sd-premium-menu-items{z-index:1000!important}
.sd254-catalog .sd254-menu summary{width:32px;height:32px}
@media(max-width:680px){.sd254-catalog .sd254-card{min-height:180px!important}}


/* v0.3.255 — compact contractor catalog: no separators, menu top-right */
.sd254-catalog .sd254-card{
  min-height:0!important;
  padding:16px 17px 13px!important;
  gap:0!important;
}
.sd254-catalog .sd-premium-contractor-main{
  flex:initial!important;
  min-height:0!important;
  gap:10px!important;
  align-items:center!important;
  padding-right:35px;
}
.sd254-catalog .sd210-contractor-icon{
  flex-shrink:0;
}
.sd254-catalog .sd210-entity-text{
  padding-top:0!important;
}
.sd254-catalog .sd210-entity-text strong{
  margin-bottom:3px!important;
}
.sd254-catalog .sd210-entity-text small{
  margin-bottom:0!important;
}
.sd254-catalog .sd254-leader{
  border:0!important;
  margin:9px 0 0!important;
  padding:0 1px!important;
  min-height:21px;
}
.sd254-catalog .sd210-contractor-foot{
  border:0!important;
  margin:6px 0 0!important;
  padding:0 1px!important;
  min-height:22px;
}
.sd254-catalog .sd254-menu{
  position:absolute!important;
  top:12px;
  right:12px;
  z-index:5;
}
.sd254-catalog .sd254-menu summary{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:9px;
  color:var(--sd210-muted);
}
.sd254-catalog .sd254-menu[open] .sd-premium-menu-items{
  z-index:1000!important;
  top:calc(100% + 3px);
}
@media(max-width:680px){
 .sd254-catalog .sd254-card{min-height:0!important;padding:14px!important}
 .sd254-catalog .sd254-menu{top:9px;right:9px}
}

/* v0.3.256 — light theme header + acts register: dark styling must not leak.
   Preserve the existing dark theme completely. */
html:not([data-theme="dark"]) body:has(.sd-app-shell) .topbar {
  background:#f2f8fa!important;
  background-image:linear-gradient(100deg,#eef7fa 0%,#f7fbfc 72%,#edf5f8 100%)!important;
  border-bottom:1px solid #d5e4e8!important;
  box-shadow:none!important;
}
html:not([data-theme="dark"]) body:has(.sd-app-shell) .topbar-inner {
  background:transparent!important;
}
html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd-top-page-title,
html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd213-header-label,
html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd213-header-main {
  color:#31515d!important;
}
html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd213-header-icon,
html:not([data-theme="dark"]) body:has(.sd-app-shell) .sd214-header-icon {
  color:#557d8b!important;
}
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack,
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack .acts-register-head-inline,
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack .acts-register-title-wrap,
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack .acts-register-title-wrap-soft {
  background:#f7fafb!important;
  border-color:#dce8eb!important;
  box-shadow:none!important;
}
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack .acts-register-head-inline .kicker {
  color:#355765!important;
}
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack #actsHeaderViewport,
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack #actsHeaderTrack,
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack #actsHeaderViewport .acts-header-table,
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack #actsHeaderViewport .acts-header-table thead,
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack #actsHeaderViewport .acts-header-table thead tr,
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack #actsHeaderViewport .acts-header-table thead th {
  background:#e6f0f2!important;
  background-image:none!important;
  box-shadow:none!important;
}
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack #actsHeaderViewport {
  border-bottom:1px solid #c5d9de!important;
}
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack #actsHeaderViewport .acts-header-table thead th {
  color:#3a5965!important;
  border-right:1px solid #cddfe3!important;
  border-bottom:0!important;
}
html:not([data-theme="dark"]) .sd-app-shell #actsStickyStack #actsHeaderViewport .acts-header-table thead th:last-child {
  border-right:0!important;
}

/* v0.3.257 — shared, two-level route header and scheme cards */
body:has(.sd-app-shell) .sd-top-page-title:has(.sd213-header-sub) {align-items:center!important;}
body:has(.sd-app-shell) .sd213-header-label:has(.sd213-header-sub) {display:flex!important;flex-direction:column!important;align-items:flex-start;justify-content:center;gap:2px;min-width:0;white-space:normal!important;overflow:hidden;line-height:1.22;}
body:has(.sd-app-shell) .sd213-header-label .sd213-header-main {font-size:clamp(13px,1.07vw,19px);line-height:1.18;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;}
body:has(.sd-app-shell) .sd213-header-label .sd213-header-sub {font-size:11px!important;line-height:1.25!important;font-weight:500!important;letter-spacing:.01em!important;text-transform:none!important;color:var(--sd210-muted,#91a9b5)!important;}
.sd257-schemes {padding-top:8px;}
.sd257-scheme-tile {min-height:154px;}
.sd257-scheme-tile .sd-site-196-tile-copy {align-self:center;}
.sd257-scheme-tile .sd-site-196-tile-copy strong {font-size:16px;}
.sd257-scheme-tile .sd-site-196-tile-copy small {margin-top:5px;line-height:1.3;overflow-wrap:anywhere;}
.sd257-scheme-tile .sd-site-196-tile-copy .sd257-contract-line {font-size:12px;}
.sd257-scheme-tile .sd-site-196-tile-copy .sd257-work-line {font-size:12px;}
.sd257-scheme-tile .sd-site-196-tile-icon svg {fill:none;stroke:none;}
@media(max-width:650px){.sd257-scheme-tile{min-height:125px}}

/* v0.3.258 — materials cards match the scheme and site overview tiles */
.sd258-materials {padding-top:8px;}
.sd258-material-tile {min-height:154px;}
.sd258-material-tile .sd-site-196-tile-copy {align-self:center;}
.sd258-material-tile .sd-site-196-tile-copy strong {font-size:16px;}
.sd258-material-tile .sd-site-196-tile-copy small {margin-top:5px;line-height:1.3;overflow-wrap:anywhere;font-size:12px;}
@media(max-width:650px){.sd258-material-tile{min-height:125px}}

/* v0.3.261: quiet destructive navigation on the site edit form */
.sd261-delete-action{margin-left:auto;color:#c97b76!important;font-size:13px;text-decoration:none;align-self:center}
.sd261-delete-action:hover{text-decoration:underline}
.sd261-delete-page{max-width:720px}
.sd261-delete-page .sd261-blocked{padding:14px 16px;border:1px solid #b87955;border-radius:10px;margin:16px 0;background:rgba(181,114,70,.07)}
.sd261-delete-page .sd261-blocked p{margin:10px 0}
.sd261-delete-page ul{padding-left:24px;line-height:1.75}
.sd261-delete-page input[name="confirmation"]{width:100%;max-width:340px;display:block;margin:8px 0 16px}

.site-card{position:relative;min-width:0}
.site-card .sd-v183-site-card{height:100%}
.site-card-manageable .sd210-entity-top{padding-right:42px}
.site-card-delete{position:absolute;top:13px;right:13px}
.site-overview-actions{display:flex;gap:6px}
.site-detail-delete{color:#a53e36}
.site-detail-delete svg{
  fill:none;stroke:currentColor;stroke-width:1.65;
  stroke-linecap:round;stroke-linejoin:round;
}
.site-detail-delete:hover{background:rgba(196,89,79,.14)}
html[data-theme="dark"] .site-detail-delete{color:#efa19a}
@media(min-width:1251px){
  .sd-site-196 .sd217-hero.site-overview-manageable{padding-right:114px!important}
}
@media(max-width:1250px){
  .site-overview-manageable .sd217-identity{padding-right:88px}
  .site-overview-manageable .sd217-identity-copy h1{padding-right:0;overflow-wrap:anywhere}
}
@media(max-width:650px){
  .site-overview-manageable .sd217-identity{padding-right:80px}
}
.sd261-delete-page .site-delete-submit{background:#a53e36;border-color:#a53e36;color:#fff}
.sd261-delete-page .site-delete-submit:hover{background:#8a302a;border-color:#8a302a}
