/* Extensions only: the existing v2 tokens, typography and cards remain authoritative. */
.restore-root [hidden]{display:none!important}
.restore-root [data-card-list]{display:grid;gap:18px;min-width:0}
.restore-root [data-record] summary{cursor:pointer;font-weight:600}
.restore-root [data-record] time{font-size:12px;color:var(--muted);white-space:nowrap}
.restore-root small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.5}
.restore-root .restore-stats .kpi{min-width:0;height:auto}
.restore-root .restore-stats .v{overflow-wrap:anywhere}
.restore-root [data-range-body],.restore-root [data-report-panel],.restore-root [data-report-tabs],.restore-root [data-coa-library]{display:grid;gap:22px}
.restore-root .restore-tabs .btn[aria-pressed=true]{background:var(--deep,#0e6e60);color:#fff;border-color:var(--deep,#0e6e60)}
.restore-root .restore-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.restore-pager{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:20px;font-size:12px}
.restore-bars{display:grid;gap:16px}.restore-bars>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(40px,2fr) auto;gap:14px;align-items:center;font-size:12px}.restore-bars meter{width:100%;height:14px;accent-color:#0e6e60}.restore-bars meter::-webkit-meter-optimum-value{background:#0e6e60}
.restore-chart{display:block;width:100%;height:auto;min-height:190px}.restore-chart text{font-size:11px;fill:var(--muted);font-family:inherit}.restore-chart .grid-line{stroke:var(--line,#e1e9e4);stroke-width:1}.restore-chart polyline{fill:none;stroke-width:2.5}.restore-chart .current-line{stroke:#0e6e60;fill:none}.restore-chart .prior-line{stroke:#9bb8ae;stroke-dasharray:5 5;fill:none}.restore-chart circle{fill:#fff;stroke-width:2}
.restore-pipeline{display:flex;gap:4px;flex-wrap:wrap}.restore-pipeline a{display:flex;flex:1;min-width:95px;flex-direction:column;gap:14px;background:var(--wash,#edf5f0);padding:20px;border-radius:12px;font-size:12px;text-decoration:none!important}.restore-pipeline a b{font-size:28px}.restore-pipeline a:nth-child(1){background:#fbefd9}.restore-pipeline a:nth-child(3){background:#d4eee6}.restore-pipeline a:nth-child(4){background:#b7dfd1}
.restore-hero{font-size:54px;letter-spacing:-.05em;color:var(--deep);font-weight:600;margin:16px 0 28px!important}
.restore-settings summary,.restore-coa summary{padding:20px;cursor:pointer;font-weight:600}.restore-coa summary .note{margin-left:16px;font-weight:400}.restore-drop{display:grid;gap:12px;border:2px dashed var(--line,#ccdcd2);border-radius:16px;padding:26px;text-align:center;margin:20px 0}.restore-root form>label{display:block;margin:14px 0}.restore-root .grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
@media(max-width:1000px){.restore-root .restore-stats,.restore-root .kpis:has(>:nth-child(6)){grid-template-columns:repeat(2,minmax(0,1fr))}.restore-root .grid3{grid-template-columns:1fr}.restore-hero{font-size:40px}}
@media(max-width:700px){.restore-pager{justify-content:flex-start;flex-wrap:wrap}.restore-chart{min-height:140px}.restore-bars>div{grid-template-columns:minmax(85px,1fr) 1fr auto}.restore-pipeline a{padding:14px;min-width:80px}}
.footprint-filters{flex-wrap:wrap}
.sections-v2 .depth-root .footprint-filters .btn{display:inline-flex;align-items:center;gap:10px;background:var(--card,#fff);color:var(--ink,#172520)}
.sections-v2 .depth-root .footprint-filters .btn[aria-pressed=true]{background:#0e6e60;color:#fff;border-color:#0e6e60}
.footprint-filters .btn b{padding:2px 7px;border-radius:6px;background:rgb(128 128 128 / 12%);font-variant-numeric:tabular-nums}
.footprint-pager{justify-content:flex-end;margin-top:18px;flex-wrap:wrap;font-size:12px}
.footprint-pager .btn:disabled{opacity:.45;cursor:default}
.footprint-session{border-bottom:1px solid var(--line,#e4e8e5)}.footprint-session:last-child{border-bottom:0}
.footprint-session[hidden]{display:none}.footprint-session summary{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));gap:18px;align-items:center;padding:18px 8px;cursor:pointer;font-size:13px;list-style:none}
.footprint-session summary::before{content:none}.footprint-session summary::-webkit-details-marker{display:none}
.footprint-session summary:hover,.footprint-session[open] summary{background:var(--bg,#f6f8f7)}
.footprint-session summary:focus-visible{outline:2px solid #0e6e60;outline-offset:2px}
.footprint-session small{display:block;margin-top:6px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.footprint-path{min-width:0;overflow-wrap:anywhere}.footprint-path b::before{content:'›';margin-right:8px}.footprint-session[open] .footprint-path b::before{content:'⌄'}
.footprint-device{width:16px;height:16px;vertical-align:middle;margin-right:5px}
.footprint-timeline{padding:8px 22px 22px}.footprint-timeline ol{list-style:none;padding:0;margin:0}
.footprint-timeline li{display:flex;justify-content:space-between;gap:16px;border-left:2px solid var(--line,#e4e8e5);padding:10px 18px;font-size:12px}
.footprint-timeline time{white-space:nowrap;color:var(--muted);font-size:11px}
@media(max-width:800px){.footprint-session summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.footprint-timeline{padding:8px}.footprint-timeline li{padding:10px;flex-wrap:wrap}}
.depth-root{display:grid;gap:22px;min-width:0}.depth-root .grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.depth-notice{color:var(--muted);font-size:12px}.depth-root .kpis:has(>:nth-child(6)){grid-template-columns:repeat(3,minmax(0,1fr))}
#depth-detail .detail-stats{grid-template-columns:repeat(var(--detail-columns),minmax(0,1fr));align-items:start}
#depth-detail .detail-stats .kpi{height:auto;min-height:0;padding:16px;display:flex;flex-direction:column;gap:8px}
#depth-detail .detail-stats .k{margin:0;color:var(--muted);font-size:12px;line-height:1.4}
#depth-detail .detail-stats .v{margin:0;font-size:22px;line-height:1.3;overflow-wrap:anywhere}
#depth-detail .detail-stats .pill{font-size:12px;vertical-align:middle}
@media(max-width:1200px){#depth-detail .detail-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#depth-detail .detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#depth-detail .detail-stats .v{font-size:18px}}
#depth-globe{display:block;width:min(100%,460px);height:auto;aspect-ratio:1;justify-self:center}.depth-root .chart-wrap{position:relative}.depth-root .tip{display:none;position:absolute;top:0;right:0;padding:8px 12px;background:var(--deep);color:white;border-radius:10px}
.depth-table{overflow:auto;max-width:100%}.depth-root table{width:100%;border-collapse:collapse}.depth-root td,.depth-root th{overflow-wrap:anywhere}
.depth-root a:not(.btn){color:var(--deep);text-decoration:underline;text-underline-offset:3px}.depth-root tr[data-depth-href]{cursor:pointer}.depth-root tr[data-depth-href]:hover{background:var(--wash)}
.depth-root .tools{flex-wrap:wrap}.depth-root .btn,.depth-root input,.depth-root select,.depth-root textarea{font:inherit;border:1px solid var(--border);border-radius:12px;background:#f0f6f3;padding:10px 12px;min-height:44px;max-width:100%}.depth-root .btn{display:inline-flex;align-items:center;background:white;margin:4px 4px 4px 0}.depth-root button:disabled{opacity:.5;cursor:default}
.depth-field{display:grid;gap:7px;margin-bottom:14px}.depth-field textarea{width:100%;resize:vertical}.depth-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.depth-form label{display:grid;gap:7px}
.depth-facts{display:grid;gap:14px;margin:0}.depth-facts>div{display:grid;grid-template-columns:minmax(105px,1fr) 2fr;gap:14px}.depth-facts dt{color:var(--muted);font-size:12px}.depth-facts dd{margin:0;overflow-wrap:anywhere}.depth-address{white-space:pre-line}
.depth-root .prod{display:flex;align-items:center;gap:12px}.depth-root .thumb{display:block;width:54px;height:62px;flex:none;background:var(--wash);border-radius:16px}.depth-root .thumb img{width:100%;height:100%;object-fit:contain}
.depth-root .card-b>p{margin:14px 0}.depth-root .card-b>table+.depth-facts,.depth-root .depth-table+.depth-facts{margin-top:20px}
.sample-certificate{background:white;border:1px solid var(--border);padding:36px;max-width:800px;display:grid;gap:28px}.sample-banner{font-weight:700;letter-spacing:.06em;border:2px solid currentColor;padding:10px;text-align:center}
.label-pages{display:flex;flex-wrap:wrap;gap:24px}.sample-label{width:4in;min-height:6in;max-width:100%;background:white;color:black;border:1px solid black;padding:16px;font:14px/1.4 Arial,sans-serif;display:flex;flex-direction:column;gap:14px;break-after:page}.sample-label p{margin:0}.label-service{font-size:24px;font-weight:bold}.label-recipient{font-size:18px}.sample-bars{height:55px;background:repeating-linear-gradient(90deg,#000 0 2px,#fff 2px 4px,#000 4px 5px,#fff 5px 9px);margin-top:auto}.sample-label .sample-banner{font-size:12px}.sample-label hr{width:100%;border:0;border-top:1px solid black}.sample-label small{font-size:11px}.packing-slip table{font-size:11px}.packing-slip td,.packing-slip th{padding:8px 4px}
.sample-label{box-sizing:border-box;height:6in;min-height:0;padding:14px;gap:9px;font-size:12px;line-height:1.25;flex-shrink:0;break-inside:avoid}
.sample-label .sample-banner{padding:7px 3px;font-size:11px;letter-spacing:.025em}
.label-service{display:flex;justify-content:space-between;align-items:center;font-size:25px;border-bottom:3px solid black;padding-bottom:7px}
.label-service strong{font-size:20px}.label-meta{display:flex;justify-content:space-between;font-size:10px;font-weight:bold}
.label-from{font-size:11px}.label-recipient{font-size:16px;border-top:1px solid black;padding-top:8px}
.label-routing{display:flex;align-items:center;gap:18px;border-top:3px solid black;border-bottom:3px solid black;padding:8px 0}
.label-routing span{font-size:11px;font-weight:bold}.label-routing strong{font-size:42px;line-height:1;letter-spacing:3px}
.label-tracking{margin-top:auto;text-align:center}.tracking-barcode{display:block;width:100%;height:52px;fill:black;margin-bottom:5px}.label-tracking p{font-size:16px;letter-spacing:2px}
.packing-slip h2{font-size:19px;margin:8px 0}.packing-slip .depth-table{overflow:visible}.packing-slip table{display:table}.packing-slip thead{display:table-header-group}.packing-slip tbody{display:table-row-group}.packing-slip tr{display:table-row}.packing-slip td,.packing-slip th{display:table-cell}.packing-slip td::before{display:none}
@media(max-width:700px){.depth-root .grid2,.depth-form{grid-template-columns:1fr}.depth-root .card-h,.depth-root .card-b{padding:16px}.depth-root .depth-facts>div{grid-template-columns:1fr}.sample-certificate{padding:18px}.depth-root .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{@page{size:4in 6in;margin:0}body:has(.label-pages) .side,body:has(.label-pages) .utility,body:has(.label-pages) .title-row,body:has(.label-pages) .demo-ribbon,body:has(.label-pages) .footnote,body:has(.label-pages) .tools,body:has(.label-pages) .depth-notice,body:has(.label-pages) #depth-detail>p{display:none!important}body:has(.label-pages) .app,body:has(.label-pages) .main,body:has(.label-pages) .content,body:has(.label-pages) .sections-v2,body:has(.label-pages) .depth-root{display:block!important;padding:0!important;margin:0!important}.label-pages{display:block}.sample-label{width:4in;height:6in;min-height:0;border:0;overflow:hidden;break-after:page}.sample-label:last-child{break-after:auto}.a-toast{display:none!important}}
/* Round 4: preserve v2 controls and reduce avoidable empty space. */
.dashboard-extra>.grid2>section.card:last-child{grid-column:1/-1}
.restore-root [data-card-list="audit"]{gap:0}
.restore-root .restore-audit-row{display:grid;grid-template-columns:120px 125px minmax(170px,1fr) 130px 90px;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--card,#fff);font-size:12px}
.restore-root .restore-audit-row[hidden]{display:none}
.restore-audit-row .pill{justify-self:start}.restore-audit-row details[open]{grid-column:1/-1}.restore-audit-row details p{margin:8px 0}
.restore-root .restore-switch{display:inline-flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}
.depth-root .restore-switch input[type="checkbox"]{appearance:none;position:relative;display:block;flex:0 0 40px;width:40px!important;height:24px!important;min-height:24px!important;padding:0!important;margin:0;border:1px solid #82998e;border-radius:999px;background:#b7c8bf;box-shadow:none;background-image:none}
.depth-root .restore-switch input[type="checkbox"]::before{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:white;transform:none}
.depth-root .restore-switch input[type="checkbox"]::after{content:none}
.depth-root .restore-switch input[type="checkbox"]:checked{background:#0e6e60;border-color:#0e6e60}
.depth-root .restore-switch input[type="checkbox"]:checked::before{left:19px}
.depth-root .restore-switch input[type="checkbox"]:focus-visible{outline:2px solid #0e6e60;outline-offset:3px}
@media(max-width:1100px){.restore-root .restore-audit-row{grid-template-columns:115px 100px minmax(130px,1fr);gap:8px}.restore-audit-row details{grid-column:3}}
@media(max-width:600px){.restore-root .restore-audit-row{grid-template-columns:1fr 1fr}.restore-audit-row strong{grid-column:1/-1}.restore-audit-row details{grid-column:auto}}
