/* POINT LINK: one object, one point, one action. */
:root{
  --ink:#182b40;--muted:#68798a;--line:#cbd5df;--surface:#fbfcfd;
  --bg:#e8edf2;--panel:#edf2f6;--field:#fff;--hover:#e4edf7;
  --accent:#185b9e;--accent-bright:#44a9dc;
  --shadow:0 1px 2px #1a34480c,0 12px 28px #1a34480a;
}
body{background:radial-gradient(ellipse at 50% 0%,#e7edf3,#bdc8d4)}
#viewport{border-radius:3px;box-shadow:0 28px 72px #13273835,0 0 0 1px #8495a550}
.page{background:var(--bg)}
button{border-radius:2px;box-shadow:none;font-weight:600}
button.primary{background:#185b9e;border-color:#185b9e;box-shadow:0 3px 8px #12477c24}
button.primary:hover:not(:disabled){background:#226bad}
button.quiet:hover:not(:disabled){background:#e5edf5}
header.topbar{border-top:3px solid var(--accent-bright);height:64px;background:#f8fafc}
header.topbar .brand{height:61px;min-width:205px;background:#153d6c;font-weight:650}
.station{font-size:12px;color:#607184}
.top-right .device-status{font-size:13px;gap:7px;color:#3b596b}
.status-dot{width:7px;height:7px;border-radius:50%;background:#398b6d;box-shadow:0 0 0 3px #398b6d1f}
.sidebar{background:#1e2d3c;border-right:0;color:#b9c7d4;padding:28px 0 15px;width:154px;gap:5px}
.sidebar button{color:#aebecd;min-height:52px;font-size:14px;padding-left:18px}
.sidebar button.active{background:#29445f;color:#fff;box-shadow:inset 3px 0 #56b3df}
.sidebar button:hover{background:#2b435a;color:#fff}
.sidebar .navlabel{color:#94a9bc}
.sidebar .bottom{border-top:1px solid #ffffff1e;padding-top:10px}
.sidebar .foot{color:#bad0df;border-color:#ffffff1e}
.home-page{padding:22px 26px!important}
.gh-head{min-height:61px}
.gh-head h1{font-size:24px;letter-spacing:-.5px;font-weight:620}
.gh-head .quiet{font-size:13px;color:var(--muted)}
.gh-hero{height:360px;min-height:360px;border:1px solid #c8d4e0;box-shadow:var(--shadow);grid-template-columns:47% 53%}
.gh-part,.guided-task-art,.gi-summary-art{background:radial-gradient(ellipse at 48% 39%,#fff 0%,#edf3f7 57%,#dce6ee 100%);position:relative;overflow:hidden}
.gh-part:before,.guided-task-art:before,.gi-summary-art:before,.gi-part:before{content:'';position:absolute;inset:0;background-image:linear-gradient(#7c97ab0d 1px,transparent 1px),linear-gradient(90deg,#7c97ab0d 1px,transparent 1px);background-size:24px 24px;pointer-events:none}
.gh-part .partdrawing,.guided-task-art .partdrawing,.gi-summary-art .partdrawing,.gi-part .partdrawing{position:relative;z-index:1;filter:drop-shadow(0 18px 11px #214a6826)}
.gh-copy{padding:32px 31px 24px;align-items:stretch}
.gh-task-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.gh-task-head strong{font-family:'DIN Alternate','Bahnschrift',sans-serif;font-size:42px;line-height:1.1;font-weight:600;letter-spacing:-1px;color:var(--accent)}
.gh-task-head span{color:var(--muted);font-size:13px}
.gh-copy h2{font-size:19px;line-height:1.35;font-weight:500;margin:6px 0 21px;color:var(--ink)}
.gh-current{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.gh-current span{font-size:15px;color:var(--muted)}
.gh-current small{font-size:12px;margin-left:6px}
.gh-current strong{font-size:29px;font-weight:600;line-height:1.2;color:var(--ink)}
.gh-hero-bottom{padding-top:16px;align-items:end}
.gh-hero-bottom .primary{min-width:164px;min-height:54px;font-size:16px}
.gh-progress{display:flex;flex-direction:column;gap:10px;min-width:102px;flex:1;padding-bottom:4px}
.gh-progress span{font-family:'DIN Alternate','Bahnschrift',sans-serif;font-size:19px;color:var(--ink);font-variant-numeric:tabular-nums}
.gh-progress i{height:4px;width:100%;display:block;background:linear-gradient(90deg,var(--accent) var(--done),#d9e1e8 var(--done));font-style:normal}
.gh-attention{min-height:46px;margin-top:10px;background:#f8f7f3;border:1px solid #dfd6c2;color:#765a2c;padding:4px 15px;font-weight:600}
.gh-attention .icon{width:18px}
.gh-attention button{min-height:34px;font-size:13px;background:transparent;border-color:#cfc4ac}
.gh-lower{margin-top:14px;min-height:134px}
.gh-section-head{min-height:28px}
.gh-section-head h3{font-size:14px;font-weight:650}
.gh-section-head button{font-size:13px;color:var(--muted)}
.gh-queue-row{min-height:59px;padding:4px 2px;gap:13px}
.gh-queue-row:hover{background:#dce7f1}
.gh-queue-row strong{font-size:15px;font-weight:600}
.gh-queue-row small{font-size:12px}
.gh-queue-part{width:53px;height:47px}
.guided-task-card{min-height:440px;grid-template-columns:47% 53%;box-shadow:var(--shadow)}
.guided-task-copy{padding:42px 38px}
.guided-task-copy h1{font-family:'DIN Alternate','Bahnschrift',sans-serif;font-size:52px;font-weight:600;color:var(--accent)}
.guided-task-copy h2{font-size:22px;color:var(--ink)}
.guided-task-facts{margin:34px 0 22px;padding:18px 0}
.guided-task-facts span{font-size:13px}
.guided-task-facts strong{font-size:18px;font-weight:600}
.guided-task-resume{font-size:15px;color:#9a6d30;border-left:3px solid #bd9959;padding-left:11px}
.guided-task-copy .primary{min-height:56px;min-width:220px}
.guided-details{background:transparent;border:0;border-top:1px solid var(--line);box-shadow:none;margin-top:14px}
.guided-details summary{padding:12px 0;color:var(--muted);font-size:14px}
.gp-title{margin:10px 0 17px}
.gp-title h1{font-size:28px}
.gp-card{min-height:386px;grid-template-columns:42px 1fr;gap:13px;padding:24px;border-top:3px solid #8da6bd;box-shadow:var(--shadow)}
.gp-card.is-ready{border-top-color:#4a9a78}
.gp-number{border:0;border-radius:50%;background:#e8eef4;color:var(--accent);font-weight:650;font-size:16px}
.gp-card.is-ready .gp-number{background:#e1f0e8;color:#297759}
.gp-card-content{display:flex;flex-direction:column;min-width:0}
.gp-card h2{font-size:22px;font-weight:600;margin:3px 0 10px}
.gp-device-id{font:600 31px 'DIN Alternate','Bahnschrift',sans-serif;letter-spacing:-1px;margin:13px 0 0;color:var(--ink)}
.gp-device-visual{height:133px;width:100%;display:grid;place-items:center;margin:7px 0 5px;background:linear-gradient(130deg,#edf3f7,#f9fbfc);border:1px solid var(--line)}
.gp-device-visual svg{width:100%;max-width:300px;height:122px;filter:drop-shadow(0 9px 7px #2840572d)}
.gp-state{margin:0 0 auto;padding:13px 0;background:transparent;border-top:1px solid var(--line);gap:7px}
.gp-state strong{font-size:19px;color:#247454}
.gp-card.needs-action .gp-state strong{color:#a36b29}
.gp-state span:last-child{font-size:14px;color:var(--muted)}
.gp-part{margin:10px 0 auto;align-items:flex-start;flex-direction:column;gap:10px;width:100%}
.gp-part>div{width:100%;height:162px;background:var(--panel)}
.gp-part p{font-size:14px}
.gp-part strong{font-size:18px}
.gp-card-content>button,.gp-card-content>.badge{align-self:flex-start;margin-top:16px}
.gp-footer{margin-top:10px;padding:18px 0;justify-content:flex-end;border-top:1px solid var(--line)}
.gp-footer .primary{min-width:220px;min-height:56px}
.gi-context{min-height:74px;padding:15px 26px;background:#f7f9fb}
.gi-context>div:first-child{gap:18px}
.gi-context>div:first-child>span{font-size:14px}
.gi-context strong{font-size:24px;font-weight:620}
.gi-context small{font-size:13px}
.gi-context-actions .quiet{color:var(--muted);font-size:14px}
.gi-progress{height:60px;padding:0 20px;gap:5px;background:#f1f5f8}
.gi-progress button{width:auto;flex:1;min-height:38px;border-radius:0;border:0;border-bottom:3px solid #c6d3de;background:transparent;color:#607488;font-size:13px}
.gi-progress button.current{background:#e0edf8;border-bottom-color:#1667aa;color:#174d7f}
.gi-progress button.complete{background:#e7f1ec;border-bottom-color:#4f9c79;color:#246d51}
.gi-progress button.future{opacity:.65}
.gi-progress>span{min-width:48px;text-align:right;font:600 18px 'DIN Alternate','Bahnschrift',sans-serif;color:var(--ink)}
.gi-main{grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:14px;padding:14px 18px}
.gi-visual,.gi-reading{border:1px solid #cbd6df;box-shadow:var(--shadow)}
.gi-visual-top{min-height:76px;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line)}
.gi-visual-top h1{font-size:30px;font-weight:620}
.gi-jaw{font-size:13px;color:var(--muted)}
.gi-part{background:radial-gradient(ellipse at 50% 35%,#fff,#e5eef5 86%);position:relative}
.gi-part .partdrawing{max-height:365px}
.gi-method{min-height:70px;padding:11px 18px}
.gi-method strong{font-size:15px;line-height:1.35;font-weight:560}
.gi-method .quiet{font-size:13px;color:var(--accent)}
.gi-reading{padding:22px 23px;background:#fbfcfd;border-top:3px solid #3c88bd}
.gi-reading.is-ng{border-top-color:#b95049}
.gi-reading-head{font-size:13px;color:var(--muted)}
.gi-reading-head strong{font-size:13px;color:var(--muted);font-weight:550}
.gi-reading.is-pending .gi-reading-head strong{color:#9b6a28}
.gi-reading.is-ng .gi-reading-head strong{color:#a94741}
.gi-big-value{font-size:70px;line-height:1;margin:58px 0 15px;letter-spacing:-2.5px}
.gi-big-value small{font-size:19px}
.gi-wait{margin:68px 0 auto;gap:9px}
.gi-wait strong{font:500 76px/1 'DIN Alternate','Bahnschrift',sans-serif;letter-spacing:-3px;color:#a5b3c0}
.gi-wait strong small{font-size:20px;letter-spacing:0;margin-left:6px}
.gi-wait span{font-size:15px;color:var(--muted)}
.gi-judgment{border:0;background:transparent;padding:0}
.gi-judgment strong{font:600 36px/1 'DIN Alternate','Bahnschrift',sans-serif;color:#308460}
.gi-judgment.bad strong{color:#b44943}
.gi-range{border-top:1px solid var(--line);padding-top:17px;font-size:14px}
.gi-range strong{font-size:17px;color:var(--ink)}
.gi-footer{min-height:82px;background:#f8fafc;padding:11px 20px}
.gi-footer-left .quiet{font-size:14px;color:var(--muted)}
.gi-footer-right .primary{min-width:210px;min-height:54px}
.gi-summary{min-height:430px;grid-template-columns:42% 58%;box-shadow:var(--shadow)}
.gi-summary-copy{padding:38px}
.gi-summary-index{font-size:14px;color:var(--muted)}
.gi-summary-index span{margin-left:13px}
.gi-summary-copy h1{font-size:39px;margin:25px 0 8px;letter-spacing:-1px}
.gi-summary.has-ng h1{color:#ac4a42}
.gi-summary-count{font:600 48px/1.1 'DIN Alternate','Bahnschrift',sans-serif;margin:4px 0 22px}
.gi-summary-count span{font:400 16px sans-serif;color:var(--muted)}
.gi-summary-copy>.badge{margin-top:4px}
.gi-summary-warning{margin-top:6px;padding:14px 16px;flex-direction:row;align-items:center;justify-content:space-between;gap:14px}
.gi-summary-warning strong{font-size:16px}
.gi-summary-warning button{margin:0;min-width:150px}
.gi-summary-actions .primary{min-height:54px}
.gb-summary{min-height:302px;padding:36px}
.gb-summary h1{font-size:36px}
.gb-count{margin:24px 0}
.ng-modal{width:570px!important}
.ng-modal .modal-head{padding:16px 22px}
.ng-modal .modal-body{padding:20px 22px}
.ng-result{background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;padding:0 0 16px!important}
.ng-result-head{display:flex;justify-content:space-between;font-size:14px;color:var(--muted)}
.ng-result .value{font-size:64px!important;line-height:1.1;margin:8px 0 4px!important;color:#ae4540}
.ng-result .value small{font-size:20px}
.ng-result p{font-size:14px;color:var(--muted)}
.ng-next{margin-top:15px;padding:10px 13px}
.ng-next strong{font-size:17px}
.ng-actions{margin-top:13px!important;gap:7px!important}
.ng-actions button{min-height:52px!important;flex-direction:row;align-items:center;padding:10px 15px}
.ng-actions button strong{font-size:16px}
.ng-actions button.ng-primary{background:#ab4742;border-color:#ab4742}
#prototype-bar{height:45px}
#prototype-bar>div:first-child span{display:none}
#testbar{height:46px;opacity:.84}
[data-theme=dark]{--ink:#eaf1f6;--muted:#a1b0bf;--line:#415364;--surface:#243342;--bg:#172431;--panel:#20303e;--field:#1c2b39;--hover:#304a60;--accent:#60a8df;--accent-bright:#59b4e3;--shadow:0 2px 6px #0002,0 15px 25px #0002}
[data-theme=dark] body{background:radial-gradient(ellipse at 50% 0%,#273b4e,#111b26)}
[data-theme=dark] header.topbar,[data-theme=dark] .gi-context,[data-theme=dark] .gi-footer{background:#243342}
[data-theme=dark] header.topbar .brand{background:#1f5e9e}
[data-theme=dark] .sidebar{background:#101b26}
[data-theme=dark] .sidebar button.active{background:#1c3d59}
[data-theme=dark] .top-right .device-status,[data-theme=dark] .station{color:#bdd0df}
[data-theme=dark] .status-dot{background:#64c9a3;box-shadow:0 0 0 3px #64c9a326}
[data-theme=dark] .gh-part,[data-theme=dark] .guided-task-art,[data-theme=dark] .gi-summary-art,[data-theme=dark] .gi-part{background:radial-gradient(ellipse at 48% 36%,#374e61,#1b2b3b 86%)}
[data-theme=dark] .gh-part:before,[data-theme=dark] .guided-task-art:before,[data-theme=dark] .gi-summary-art:before,[data-theme=dark] .gi-part:before{background-image:linear-gradient(#abc8dc0b 1px,transparent 1px),linear-gradient(90deg,#abc8dc0b 1px,transparent 1px)}
[data-theme=dark] .gh-hero{border-color:#455b6e}
[data-theme=dark] .gh-task-head strong,[data-theme=dark] .guided-task-copy h1{color:#8bc6f0}
[data-theme=dark] .gh-progress i{background:linear-gradient(90deg,#68b2e7 var(--done),#425364 var(--done))}
[data-theme=dark] .gh-attention{background:#3d352b;border-color:#766148;color:#f0ce99}
[data-theme=dark] .gh-queue-row:hover{background:#2b4053}
[data-theme=dark] .gp-number{background:#2c475d;color:#a4d1ef}
[data-theme=dark] .gp-card.is-ready .gp-number{background:#254b3d;color:#a7d8bd}
[data-theme=dark] .gp-state strong{color:#8ed2ad}
[data-theme=dark] .gp-card.needs-action .gp-state strong{color:#e0be80}
[data-theme=dark] .gp-device-visual{background:linear-gradient(130deg,#293f52,#1d2e3d)}
[data-theme=dark] .gi-progress{background:#1d2b39}
[data-theme=dark] .gi-progress button{border-bottom-color:#476072;color:#a7b5c3}
[data-theme=dark] .gi-progress button.current{background:#234a67;border-bottom-color:#65b6ea;color:#dceefa}
[data-theme=dark] .gi-progress button.complete{background:#224539;border-bottom-color:#65af87;color:#c9eddb}
[data-theme=dark] .gi-visual,[data-theme=dark] .gi-reading{border-color:#405668}
[data-theme=dark] .gi-reading{background:#243342}
[data-theme=dark] .gi-wait strong{color:#577084}
[data-theme=dark] .gi-judgment strong{color:#8bd2a4}
[data-theme=dark] .gi-judgment.bad strong{color:#f49890}
[data-theme=dark] .gi-judgment.ok,[data-theme=dark] .gi-judgment.bad{background:transparent;border:0}
[data-theme=dark] .ng-result .value{color:#f38f8c}
[data-theme=dark] .ng-next{background:#443237;color:#f2c5c2}
