/* V0.165 Letter Hive deep-authority surface. Page-scoped to avoid changing other games. */
.lh165-page{--lh-accent:#a36c00;--lh-soft:#fff6d8;--lh-edge:#e8d5a0;--lh-ink:#202018}.lh165-hero{align-items:flex-end}.lh165-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.lh165-tabs a{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:inherit;text-decoration:none;font-weight:800}.lh165-tabs a span{font-size:12px;font-weight:500;color:var(--muted)}.lh165-tabs a.active{border-color:var(--lh-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--lh-accent) 15%,transparent)}
.lh165-toolbar{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px;padding:12px}.lh165-diffs{display:flex;gap:6px;flex-wrap:wrap}.lh165-diffs a,.lh165-utils button{border:1px solid var(--line);background:var(--card);border-radius:10px;padding:9px 11px;text-decoration:none;color:inherit;font-weight:750}.lh165-diffs a span{font-size:11px;color:var(--muted)}.lh165-diffs a.active{background:var(--lh-soft);border-color:var(--lh-accent)}.lh165-utils{display:flex;gap:6px;flex-wrap:wrap}.lh165-day-nav{display:flex;align-items:center;gap:12px}.lh165-day-nav span{display:flex;flex-direction:column;text-align:center}.lh165-day-nav small{font-size:10px;color:var(--muted)}
.lh165-runbar{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:0 0 12px}.lh165-runbar>div{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 12px}.lh165-runbar small,.lh165-proof-grid small,.lh165-coach-metrics small,.lh165-stats small{display:block;color:var(--muted);font-size:10px;letter-spacing:.05em;text-transform:uppercase}.lh165-runbar strong{font-size:17px}.lh165-integrity.clean{color:#217a43}.lh165-integrity.assisted{color:#9a5b00}
.lh165-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:14px}.lh165-side-stack{display:flex;flex-direction:column;gap:14px}.lh165-board-panel{padding:18px}.lh165-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.lh165-panel-head>div{display:flex;flex-direction:column;gap:2px}.lh165-panel-head small{font-size:10px;color:var(--muted);letter-spacing:.06em}.lh165-panel-head strong{font-size:17px}.lh165-pill{white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:6px 9px;font-size:11px}.lh165-progress{height:8px;background:var(--soft);border-radius:99px;overflow:hidden}.lh165-progress span{display:block;width:0;height:100%;background:var(--lh-accent);transition:width .2s}.lh165-progress-copy{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:6px}.lh165-current{text-align:center;margin:18px 0 6px;min-height:49px}.lh165-current small{display:block;font-size:10px;color:var(--muted)}.lh165-current strong{font-size:24px;letter-spacing:.08em}
.lh165-hive,.lh165-mini-hive{position:relative;width:310px;height:286px;margin:4px auto 12px}.lh165-letter{position:absolute;width:84px;height:74px;border:1px solid var(--lh-edge);background:var(--card);clip-path:polygon(25% 5%,75% 5%,100% 50%,75% 95%,25% 95%,0 50%);font-weight:900;font-size:25px;display:grid;place-items:center;touch-action:manipulation}.lh165-letter:hover{transform:scale(1.04)}.lh165-letter.center{background:var(--lh-soft);border-color:var(--lh-accent)}.lh165-letter:nth-child(1){left:28px;top:53px}.lh165-letter:nth-child(2){left:113px;top:5px}.lh165-letter:nth-child(3){left:198px;top:53px}.lh165-letter:nth-child(4){left:198px;top:151px}.lh165-letter:nth-child(5){left:113px;top:199px}.lh165-letter:nth-child(6){left:28px;top:151px}.lh165-letter.center{left:113px;top:102px}.lh165-rule{text-align:center;margin:5px auto 14px;max-width:520px}.lh165-entry-actions,.lh165-tools{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.lh165-entry-actions button,.lh165-tools button,.lh165-inspector-head button,#lh165InspectorAnswers{min-height:42px;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:9px 13px;font-weight:800}.lh165-entry-actions .primary{background:var(--ink);color:var(--bg)}.lh165-tools{margin:9px 0}.lh165-tools .emphasized{border-color:var(--lh-accent);background:var(--lh-soft)}.lh165-tools .danger-soft{border-style:dashed}.lh165-board-panel .status{margin-top:12px}
.lh165-integrity-card,.lh165-coach-card,.lh165-proof-card{padding:16px}.lh165-legend{display:grid;gap:8px;font-size:12px}.lh165-legend span{display:flex;align-items:center;gap:7px}.lh165-legend i{width:9px;height:9px;border-radius:50%}.lh165-legend i.clean{background:#3c9b62}.lh165-legend i.assisted{background:#d18a20}.lh165-coach-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:10px 0}.lh165-coach-metrics span{border:1px solid var(--line);border-radius:9px;padding:8px}.lh165-coach-metrics strong{font-size:18px}.lh165-recommend{padding:10px 12px;border-radius:10px;background:var(--lh-soft);font-weight:700}.lh165-branch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.lh165-branch-grid>div{min-width:0}.lh165-branch-grid small{font-size:9px;color:var(--muted)}.lh165-bars{display:flex;flex-direction:column;gap:4px;margin-top:5px}.lh165-bar{display:grid;grid-template-columns:32px 1fr 28px;gap:5px;align-items:center;font-size:11px}.lh165-bar i{height:6px;background:var(--lh-accent);border-radius:99px;opacity:.65}.lh165-proof-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.lh165-proof-grid span{border:1px solid var(--line);border-radius:10px;padding:9px}.lh165-proof-grid strong{display:block;font-size:18px}.lh165-proof-grid em{font-style:normal;color:var(--muted);font-size:10px}
.lh165-found-panel,.lh165-progress-panel,.lh165-archive-panel,.lh165-settings-panel{margin-top:14px;padding:16px}.lh165-found-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.lh165-found-title{display:flex;justify-content:space-between;margin-bottom:7px}.lh165-chips{display:flex;gap:6px;flex-wrap:wrap;max-height:200px;overflow:auto}.lh165-chips span{border:1px solid var(--line);border-radius:999px;padding:5px 8px;font-size:12px}.lh165-chips span.pangram{background:var(--lh-soft);border-color:var(--lh-accent);font-weight:800}.lh165-chips.muted span{opacity:.76}.lh165-reveal{margin-top:12px;border-top:1px solid var(--line);padding-top:12px}.lh165-reveal h4{margin:8px 0}.lh165-reveal-list{display:flex;flex-wrap:wrap;gap:5px}.lh165-reveal-list span{font-size:12px;padding:4px 7px;background:var(--soft);border-radius:7px}.lh165-stats{display:grid;grid-template-columns:repeat(8,1fr);gap:7px}.lh165-stats>div{border:1px solid var(--line);border-radius:10px;padding:9px}.lh165-stats strong{font-size:17px}.lh165-stats.compact{grid-template-columns:repeat(2,1fr);margin:12px 0}.lh165-recent{display:grid;gap:6px;margin-top:10px}.lh165-recent-row{display:grid;grid-template-columns:1fr auto auto auto;gap:10px;align-items:center;border-top:1px solid var(--line);padding-top:7px;font-size:12px}.lh165-recent-row small{color:var(--muted)}
.lh165-month-label{font-size:12px;color:var(--muted)}.lh165-month-label input{margin-left:5px}.lh165-archive-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.lh165-archive-grid a,.lh165-archive-grid span{min-height:54px;border:1px solid var(--line);border-radius:9px;padding:7px;text-decoration:none;color:inherit;display:flex;flex-direction:column;justify-content:space-between;font-size:11px}.lh165-archive-grid a.done{border-color:#64a97b;background:#f0fff5}.lh165-archive-grid span.locked{opacity:.45}.lh165-archive-grid .pad{border:0}.lh165-settings{display:flex;gap:15px;flex-wrap:wrap}.lh165-settings label{display:flex;gap:6px;align-items:center}
.lh165-mode-panel{margin-top:14px}.lh165-lab-head,.lh165-inspector-head{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px}.lh165-lab-head h2,.lh165-inspector-head h2{margin:3px 0}.lh165-lab-controls{display:flex;gap:7px;flex-wrap:wrap}.lh165-lab-controls select{min-height:42px;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:7px}.lh165-lab-layout,.lh165-inspector-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:14px;margin-top:14px}.lh165-lab-layout>.panel,.lh165-inspector-layout>.panel{padding:18px}.lh165-mini-hive{transform:scale(.78);margin-top:-25px;margin-bottom:-20px}.lh165-lab-options{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:12px 0}.lh165-lab-option{min-height:64px;border:1px solid var(--line);background:var(--card);border-radius:12px;padding:10px;text-align:left}.lh165-lab-option strong{display:block;font-size:18px}.lh165-lab-option span{font-size:11px;color:var(--muted)}.lh165-lab-option.correct{border-color:#3f995f;background:#f0fff5}.lh165-lab-option.wrong{border-color:#bb6b5c;background:#fff4f1}.lh165-inspector-form{display:grid;grid-template-columns:1fr 140px auto;gap:10px;align-items:end}.lh165-inspector-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700}.lh165-inspector-form input{min-height:44px;border:1px solid var(--line);border-radius:10px;padding:9px 11px;font:inherit;text-transform:uppercase}.lh165-inspector-form .btn{min-height:44px}.lh165-inspector-layout .status{margin:12px 0}.lh165-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:14px;padding:16px}.lh165-guide small{color:var(--muted);font-size:10px}.lh165-guide strong{display:block;margin:3px 0}
body.lh165-large .lh165-hive{transform:scale(1.12);margin-top:22px;margin-bottom:30px}body.lh165-contrast .lh165-page{--lh-accent:#5b3b00;--lh-soft:#fff0a6;--lh-edge:#4b3a10}body.lh165-contrast .lh165-letter{border-width:2px}body.lh165-reduced *{scroll-behavior:auto!important;transition:none!important;animation:none!important}body.lh165-hide-timer .lh165-time{display:none}
@media(max-width:900px){.lh165-tabs{grid-template-columns:1fr 1fr}.lh165-workspace,.lh165-lab-layout,.lh165-inspector-layout{grid-template-columns:1fr}.lh165-stats{grid-template-columns:repeat(4,1fr)}.lh165-branch-grid{grid-template-columns:1fr}.lh165-proof-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.lh165-page{padding-bottom:90px}.lh165-tabs{grid-template-columns:1fr 1fr;gap:7px}.lh165-tabs a{padding:11px;font-size:13px}.lh165-toolbar{align-items:stretch}.lh165-diffs{display:grid;grid-template-columns:repeat(3,1fr);width:100%}.lh165-diffs a{text-align:center;padding:8px 5px;font-size:11px}.lh165-utils{display:grid;grid-template-columns:repeat(4,1fr);width:100%}.lh165-utils button{padding:8px 3px;font-size:11px}.lh165-runbar{grid-template-columns:repeat(5,1fr);gap:4px}.lh165-runbar>div{padding:8px 5px;text-align:center}.lh165-runbar small{font-size:8px}.lh165-runbar strong{font-size:14px}.lh165-board-panel{padding:14px}.lh165-hive{width:290px;transform:scale(.92);transform-origin:center}.lh165-current{margin-top:10px}.lh165-entry-actions button{flex:1}.lh165-tools{display:grid;grid-template-columns:1fr 1fr}.lh165-tools button:last-child{grid-column:1/-1}.lh165-coach-metrics{grid-template-columns:repeat(2,1fr)}.lh165-proof-grid{grid-template-columns:repeat(2,1fr)}.lh165-found-grid{grid-template-columns:1fr}.lh165-stats{grid-template-columns:repeat(2,1fr)}.lh165-archive-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.lh165-archive-grid a,.lh165-archive-grid span{padding:5px 3px;min-height:48px}.lh165-lab-head,.lh165-inspector-head{align-items:flex-start;flex-direction:column}.lh165-lab-options{grid-template-columns:1fr}.lh165-inspector-form{grid-template-columns:1fr 90px}.lh165-inspector-form .btn{grid-column:1/-1}.lh165-guide{grid-template-columns:1fr}.lh165-recent-row{grid-template-columns:1fr auto}.lh165-recent-row span:nth-child(3),.lh165-recent-row span:nth-child(4){display:none}}
@media print{.topbar,.preview-note,.mobile-dock,.lh165-tabs,.lh165-toolbar,.lh165-tools,.lh165-settings-panel,.lh165-archive-panel,.lh165-progress-panel,.lh165-integrity-card,.lh165-coach-card{display:none!important}.lh165-workspace{display:block}.lh165-board-panel{border:0}.lh165-found-panel{break-before:page}.lh165-page{max-width:none}}
