/* A single quieter visual system. Settings do not modify server permissions. */
:root { --hd-forest:#174d3f; --hd-copper:#ba7d57; --hd-limestone:#f6f2eb; --hd-radius:18px; }
.hd-starter,.hd-passport-entry,.hd-settings{color:var(--ink);}
.hd-starter{margin:26px 0;padding:clamp(16px,2.4vw,27px);border:1px solid rgba(153,156,145,.26);background:linear-gradient(132deg,rgba(240,234,224,.07),rgba(28,91,76,.08));border-radius:var(--hd-radius)}
.hd-starter-heading,.hd-passport-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.hd-starter-heading h2{margin:5px 0 7px;font-size:clamp(20px,2vw,28px)}
.hd-starter-heading p{margin:0;font-size:14px;opacity:.76}
.hd-starter-progress{flex-shrink:0;padding:8px 12px;border-radius:12px;border:1px solid rgba(127,127,127,.26);font-weight:700}
.hd-starter-track{height:5px;border-radius:30px;background:rgba(125,139,133,.2);overflow:hidden;margin:20px 0}
.hd-starter-track span{display:block;height:100%;background:linear-gradient(90deg,var(--hd-forest),#7baa91);transition:width .2s ease}
.hd-starter-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:9px}
.hd-starter-list li{border:1px solid rgba(140,143,137,.2);border-radius:12px;padding:13px;display:flex;align-items:center;gap:9px;min-height:60px;font-size:13px}
.hd-starter-list li.done{opacity:.72}
.hd-starter-list li>span:first-child{color:#66ac84;font-size:17px}
.hd-starter-list li button{margin-left:auto;border:0;border-radius:10px;padding:8px 9px;background:var(--hd-forest);color:white;cursor:pointer;font-size:12px}
.hd-starter-discover{margin-top:18px;padding:12px;border:1px solid rgba(127,127,127,.18);border-radius:12px}
.hd-starter-discover>summary{cursor:pointer;font-weight:600}
.hd-starter-discover>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:13px}
.hd-starter-discover button{background:transparent;border:1px solid rgba(127,127,127,.2);border-radius:12px;padding:14px;text-align:left;cursor:pointer;color:inherit}
.hd-starter-discover button strong,.hd-starter-discover button small{display:block}
.hd-starter-discover button small{opacity:.74;margin:4px 0 8px}
.hd-starter-discover button span{color:var(--hd-copper);font-size:12px}
.hd-starter-discover>p{font-size:12px;opacity:.72}
.hd-passport-entry{padding:15px 20px;border:1px solid rgba(130,149,136,.23);border-radius:14px;margin-bottom:20px}
.hd-passport-entry p{font-size:13px;opacity:.75;margin:5px 0 0}
.hd-settings{max-width:1000px;border-radius:var(--hd-radius)}
.hd-settings-tabs{display:flex;gap:6px;overflow:auto;scrollbar-width:thin;padding:6px;border-bottom:1px solid rgba(138,138,138,.2);margin-bottom:20px}
.hd-settings-tabs button{white-space:nowrap;padding:11px 15px;background:transparent;border:0;border-radius:11px;font-weight:600;color:inherit;cursor:pointer}
.hd-settings-tabs button[aria-selected="true"]{background:var(--hd-forest);color:#fff}
.hd-settings-panel{padding:clamp(12px,2vw,24px);max-width:740px;margin:0 auto;border:1px solid rgba(128,128,128,.16);border-radius:15px}
.hd-settings-panel[hidden]{display:none!important}
.hd-settings-panel h2{font-size:clamp(23px,2.5vw,31px);margin:0 0 5px}
.hd-settings-panel>p{font-size:14px;opacity:.78;margin:7px 0 18px;line-height:1.55}
.hd-settings-panel label:not(.setting-row),.hd-setting-form>label{display:block;margin:14px 0;font-size:14px;font-weight:600}
.hd-settings-panel input:not([type="checkbox"]),.hd-settings-panel select{width:100%;background:transparent;border:1px solid rgba(140,142,140,.4);border-radius:10px;padding:12px;color:inherit;font:inherit;margin-top:7px}
.hd-settings-panel select option{background:#fff;color:#152a25}
.hd-settings-panel .setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid rgba(130,130,130,.17);padding:15px 0;font-weight:500}
.hd-settings-panel input[type="checkbox"]{width:21px;height:21px;accent-color:var(--hd-forest);flex:none}
.hd-settings-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hd-setting-inline{margin-top:20px;display:flex;gap:15px;align-items:center;flex-wrap:wrap;justify-content:space-between}
.hd-settings-panel .hd-setting-note{font-size:12px;opacity:.69;line-height:1.55;margin:19px 0 0}
.hd-preview-messages{border-left:3px solid var(--hd-forest);padding:4px 12px;margin:10px 0}
.hd-passport-card{background:linear-gradient(120deg,#12382f,#1c5545);color:#fdf7ed!important;border-radius:20px;padding:26px;max-width:440px;box-shadow:0 14px 28px #0003}
.hd-passport-card>span{font-size:10px;letter-spacing:.17em;color:#e4b38c}
.hd-passport-card h2{font-size:30px;line-height:1.1;margin:15px 0}
.hd-passport-card p{color:#ede4d9;font-size:13px}
.hd-passport-metrics{display:flex;gap:12px;border-top:1px solid #ffffff44;border-bottom:1px solid #ffffff44;padding:17px 0;margin:18px 0}
.hd-passport-metrics strong{font-size:24px;flex:1}
.hd-passport-metrics small{display:block;font-size:10px;font-weight:400;color:#ded6ce}
.hd-qr-panel{display:flex;align-items:center;gap:18px;padding:13px 0;flex-wrap:wrap}
.hd-qr-panel img{max-width:170px;width:42%;background:white;padding:5px;border-radius:9px}
.hd-qr-panel p{max-width:220px;font-size:13px}
[data-hd-density="compact"] .hd-starter-list li{padding:8px;min-height:44px}
[data-hd-density="compact"] .hd-settings-panel .setting-row{padding:9px 0}
[data-hd-theme="light"] .hd-settings-panel,[data-hd-theme="light"] .hd-starter{background:#fcfaf5;color:#152c25}
[data-hd-theme="light"] .hd-starter-discover button,[data-hd-theme="light"] .hd-settings-panel input,[data-hd-theme="light"] .hd-settings-panel select{color:#152c25}
:focus-visible{outline:3px solid #da9e6e!important;outline-offset:3px}
@media(max-width:600px){.hd-starter-list{grid-template-columns:1fr}.hd-settings-pair{grid-template-columns:1fr}.hd-settings-panel{padding:16px}.hd-settings-tabs button{font-size:13px;padding:9px 12px}.hd-starter{margin:16px 0}.hd-passport-card{padding:18px}}
@media(prefers-reduced-motion:reduce){.hd-starter-track span{transition:none}}

/* Consistent dark mode across the authenticated workspace, not merely Settings. */
[data-hd-theme="dark"] .appshell{background:#101d1b;color:#e9f0eb}
[data-hd-theme="dark"] .appheader{background:#172925;border-color:#35544b}
[data-hd-theme="dark"] .page-content, [data-hd-theme="dark"] .pagetitle-row h1,[data-hd-theme="dark"] .pagetitle-row p{color:#e7efea}
[data-hd-theme="dark"] .next-card,[data-hd-theme="dark"] .data-panel,[data-hd-theme="dark"] .metric,[data-hd-theme="dark"] .hd-starter,[data-hd-theme="dark"] .hd-settings-panel,[data-hd-theme="dark"] .hd-passport-entry{background:#19342c;color:#eaf2e9;border-color:#38554a;box-shadow:none}
[data-hd-theme="dark"] .next-card p,[data-hd-theme="dark"] .hd-starter p,[data-hd-theme="dark"] .hd-setting-note{color:#d1dfd5}
[data-hd-theme="dark"] .data-table th,[data-hd-theme="dark"] .data-table td{color:#e7eee8;border-color:#456354}
[data-hd-theme="dark"] .btn:not(.primary),[data-hd-theme="dark"] .hd-settings-panel input,[data-hd-theme="dark"] .hd-settings-panel select{color:#e7f0e9;background:#1d3a31;border-color:#5d736b}
[data-hd-theme="dark"] .hd-settings-panel select option{color:#102920;background:white}
[data-hd-theme="dark"] .hd-settings-tabs button[aria-selected="true"]{background:#427f66;color:white}
[data-hd-theme="dark"] .hd-starter-list li,[data-hd-theme="dark"] .hd-starter-discover,[data-hd-theme="dark"] .hd-starter-discover button{border-color:#436256}
[data-hd-theme="dark"] .hd-starter-list li button{background:#4a8e71}
[data-hd-theme="dark"] .hd-journey,[data-hd-theme="dark"] .hd-milestones,[data-hd-theme="dark"] .hd-evidence-gaps{background:#1a3a30!important;color:#eaf2e9;border-color:#436455}

.hd-email-preview{padding:16px;margin:18px 0;background:rgba(100,126,109,.08);border-radius:13px}
.hd-email-preview label{display:block;font-weight:650;font-size:13px}
.hd-email-preview button{margin:10px 0}
.hd-email-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 ui-sans-serif,system-ui;padding:14px;margin:0;border:1px solid rgba(120,130,120,.2);border-radius:10px;color:inherit}
/* V20 evidence-aware footer is deliberately quiet and available on every workspace view. */
.hd-evidence-footer{border-top:1px solid var(--hd-line,#354d47);padding:14px 25px;display:flex;flex-wrap:wrap;gap:12px 19px;align-items:center;font-size:.8rem;color:#8ca89d}.hd-evidence-footer a,.hd-evidence-footer button{font:inherit;color:var(--hd-accent,#b98454);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.hd-evidence-footer span{margin-left:auto;max-width:370px;font-size:.73rem}.hd-evidence-footer :focus-visible{outline:2px solid #bb916e;outline-offset:4px}
