:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#eaf2ee;background:#0b1114;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-height:100%}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #56dc9f;outline-offset:3px}[hidden]{display:none!important}body{background:radial-gradient(ellipse 90% 60% at 45% -25%,#183e34 0%,#0b1114 65%);min-height:100vh}.app-shell{max-width:860px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}.app-header{padding:27px 26px 20px;display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{display:flex;align-items:center;gap:14px}.brand-emblem{width:46px;height:46px;display:grid;place-items:center;color:#66dca0}.brand-emblem svg{width:38px;height:38px}.brand-title{font-size:26px;font-weight:850;letter-spacing:-1.1px;line-height:1}.brand-title span{color:#69dca1}.brand-subtitle{font-size:10px;letter-spacing:2px;color:#7c9690;margin-top:7px;font-weight:750}.dot{color:#49ae7d}.icon-btn{border:1px solid #2c3c3b;background:#192527;color:#c3d6d0;border-radius:14px;width:47px;height:47px;display:grid;place-items:center}.icon-btn svg{width:21px;height:21px}.demo-ribbon{background:#12231f;border-top:1px solid #214939;border-bottom:1px solid #214939;color:#88cda9;font-size:11px;font-weight:750;letter-spacing:1.4px;padding:12px 27px;display:flex;align-items:center;gap:9px}.status-dot{height:7px;width:7px;border-radius:50%;background:#56d99b;box-shadow:0 0 9px #49d58d}.ribbon-right{margin-left:auto;color:#668b7e;font-size:10px}main{padding:0 26px 42px;flex:1}.search-section{padding:48px 0 24px}.search-section h1{font-size:clamp(30px,5vw,46px);line-height:1.13;letter-spacing:-2px;font-weight:800;margin:0 0 12px}.search-section h1 span{color:#77d8a5}.hint{color:#92aaa4;font-size:15px;margin:0 0 25px}.search-wrap{height:65px;border:1px solid #527765;background:#152320;border-radius:14px;display:flex;align-items:center;padding:0 19px;gap:13px;box-shadow:0 0 0 3px rgba(66,160,109,.06)}.search-wrap:focus-within{border-color:#75dcaa;box-shadow:0 0 0 3px #4a9b6e35}.search-wrap svg{width:23px;height:23px;color:#70af8e;flex-shrink:0}.search-wrap input{background:transparent;color:#f5fff8;border:0;outline:0;flex:1;width:100%;min-width:0;font-size:18px}.search-wrap input::placeholder{color:#6c8b7f}.clear-btn{background:none;border:0;color:#96aaa5;font-size:27px;padding:0 5px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:5px 0 16px}.muted{color:#829b94;font-size:13px}.text-btn{border:0;background:none;color:#7cdba7;font-size:13px;font-weight:750;padding:8px 0}.search-results{display:flex;flex-direction:column;gap:11px}.result-card{width:100%;background:#152023;border:1px solid #27383b;border-radius:13px;min-height:90px;text-align:left;padding:19px 21px;display:flex;align-items:center;gap:16px;color:inherit;transition:border-color .15s,background .15s}.result-card:hover{background:#1a2d2b;border-color:#4b9974}.result-card .pin{width:38px;height:38px;border-radius:11px;background:#223c32;color:#77d5a6;display:grid;place-items:center;font-size:18px;flex-shrink:0}.result-info{flex:1;min-width:0}.result-info strong{font-size:17px;display:block;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-info small{display:block;color:#90a8a2;font-size:13px;margin-top:5px}.result-info .local-tag{color:#ddcda0;margin-left:7px;font-size:10px}.result-meta{color:#7fae9c;font-size:12px;white-space:nowrap}.result-chevron{color:#608776;font-size:24px}.empty{border:1px dashed #41524b;background:#141d1d;color:#95a69f;border-radius:12px;text-align:center;padding:35px 18px}.empty strong{display:block;color:#d3ddd6;font-size:17px;margin-bottom:7px}.details{padding-top:22px}.details-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.back-btn{border:0;background:none;padding:8px 0;color:#82dbab;font-weight:700}.readiness-pill{border:1px solid #335949;border-radius:99px;color:#8dd3a5;padding:6px 10px;font-size:10px;letter-spacing:.8px}.property-title{font-size:clamp(24px,4vw,35px);letter-spacing:-1px;font-weight:800}.property-address{color:#a4bdb5;font-size:16px;margin:8px 0}.property-note{color:#789087;font-size:13px;line-height:1.5}.code-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:35px 0 15px}.code-header h2{font-size:18px;margin:0 0 5px}.code-header p{margin:0}.code-list{display:flex;flex-direction:column;gap:12px}.code-card{padding:20px;background:#162325;border:1px solid #2b4040;border-radius:13px}.code-top{display:flex;align-items:start;justify-content:space-between;gap:12px}.entrance{font-weight:750;font-size:15px}.tag{display:inline-block;font-size:10px;color:#81a99b;background:#223a33;padding:5px 8px;border-radius:8px;margin-top:8px}.tag.local{color:#f0d391;background:#4d3f22}.code-main{margin-top:17px;display:flex;align-items:center;justify-content:space-between;gap:12px}.code-text{font-size:clamp(24px,5vw,36px);font-weight:850;color:#75e3a4;letter-spacing:1.2px;word-break:break-word}.secondary.small,.primary.small{padding:10px 14px;font-size:13px}.code-note{margin:12px 0 0;color:#8ca49c;font-size:13px;line-height:1.5}.code-actions{margin-top:15px;border-top:1px solid #293b3a;padding-top:12px;display:flex;gap:20px}.code-actions button{padding:5px 0;background:none;border:0;color:#a6c9b6;font-size:13px;font-weight:700}.code-actions button.remove{color:#c99d9d}.privacy-note{border-left:2px solid #49755d;padding:10px 13px;color:#8da69e;font-size:12px;margin-top:25px;line-height:1.6}.primary,.secondary{border-radius:10px;min-height:41px;padding:11px 17px;font-weight:800}.primary{background:#58cf91;border:1px solid #58cf91;color:#08170f}.primary:hover{background:#78e4a9}.secondary{background:#22312e;border:1px solid #3d5b4b;color:#d4e8db}.secondary:hover{border-color:#68c795}.overlay{position:fixed;inset:0;z-index:20;background:#000b;display:flex;align-items:center;justify-content:center;padding:20px;overflow-y:auto}.modal{width:min(100%,480px);background:#172323;border:1px solid #39534b;border-radius:17px;padding:26px;max-height:calc(100vh - 40px);overflow-y:auto;box-shadow:0 30px 80px #000b}.data-modal{width:min(100%,530px)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.modal-head h2{font-size:21px;margin:0}.close-button{border:0;background:transparent;color:#b0c3b7;font-size:30px;line-height:1}.modal label:not(.upload-label){display:flex;flex-direction:column;gap:8px;margin:0 0 17px;color:#b2cdc1;font-weight:750;font-size:13px}.modal label input,.modal label textarea{width:100%;background:#101a1c;border:1px solid #38514b;border-radius:10px;padding:12px 14px;color:#eff9ef;outline:none;font-size:15px}.modal label input:focus,.modal label textarea:focus{border-color:#63cb98}.form-info,.data-section p{color:#8ca69b;font-size:13px;line-height:1.55}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.form-row{display:grid;grid-template-columns:2fr 1fr;gap:12px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stats div{background:#21332f;padding:17px 8px;border-radius:10px;text-align:center}.stats strong{font-size:24px;display:block;color:#88d8aa}.stats span{display:block;color:#91a99d;margin-top:4px;font-size:11px}.data-section{padding:23px 0;border-bottom:1px solid #345047}.data-section h3{margin:0;font-size:17px}.data-section p{margin:8px 0 16px}.data-section.last{border:0}.button-stack{display:flex;flex-direction:column;gap:9px}.wide{display:flex;justify-content:center;align-items:center;width:100%;text-align:center;font-size:13px}.upload-label{cursor:pointer}.danger-link{border:0;background:none;color:#e2a3a3;text-align:left;padding:8px 0;font-size:13px}.toast{z-index:30;position:fixed;left:50%;bottom:25px;transform:translateX(-50%);width:min(90vw,480px);color:#e8fff0;background:#1e4636;border:1px solid #559473;border-radius:11px;padding:14px 19px;box-shadow:0 10px 35px #0008;text-align:center;font-weight:650;font-size:14px}footer{padding:22px 27px;border-top:1px solid #20312e;display:flex;justify-content:space-between;color:#638575;font-size:10px;letter-spacing:1.2px;font-weight:750;gap:9px}@media(max-width:560px){.app-header{padding:18px 18px 15px}.brand-title{font-size:24px}.brand-emblem{width:38px}.brand-emblem svg{width:34px}.brand-subtitle{font-size:9px;letter-spacing:1px}.demo-ribbon{padding:12px 17px;font-size:10px}.ribbon-right{font-size:9px}main{padding:0 17px 35px}.search-section{padding:32px 0 16px}.search-section h1{letter-spacing:-1.4px}.search-wrap{height:60px;padding:0 14px}.search-wrap input{font-size:16px}.result-card{padding:15px 13px;gap:11px;min-height:79px}.result-card .pin{width:33px;height:33px}.result-info strong{font-size:15px}.result-info small{font-size:12px}.result-meta{font-size:11px}.result-chevron{display:none}.modal{padding:20px}.code-card{padding:16px}.code-text{font-size:25px}footer{font-size:9px;padding:20px 17px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* GateScout v0.2: existing night palette preserved; optional high-contrast day palette. */
.header-actions{display:flex;gap:9px;align-items:center;flex-shrink:0}
.theme-toggle .theme-moon{display:none}
html[data-theme="light"] .theme-toggle .theme-sun{display:none}
html[data-theme="light"] .theme-toggle .theme-moon{display:block}
html[data-theme="light"]{color-scheme:light;background:#f4f8f5;color:#172923}
html[data-theme="light"] body{background:radial-gradient(ellipse 90% 55% at 45% -25%,#d6ede0 0%,#f4f8f5 70%);color:#172923}
html[data-theme="light"] .brand-emblem{color:#176c48}
html[data-theme="light"] .brand-title span{color:#176c48}
html[data-theme="light"] .brand-subtitle{color:#557065}
html[data-theme="light"] .dot{color:#237b56}
html[data-theme="light"] .icon-btn{background:#fff;color:#21523e;border-color:#bbd2c4}
html[data-theme="light"] .icon-btn:hover{background:#e3f2e9}
html[data-theme="light"] .demo-ribbon{background:#e2f3e8;border-color:#bfdccc;color:#206b45}
html[data-theme="light"] .status-dot{background:#25875b;box-shadow:none}
html[data-theme="light"] .ribbon-right{color:#3d6955}
html[data-theme="light"] .hint{color:#49665b}
html[data-theme="light"] .search-wrap{background:#fff;border-color:#a1bea9;box-shadow:0 0 0 3px rgba(37,110,72,.05)}
html[data-theme="light"] .search-wrap:focus-within{border-color:#2e8258;box-shadow:0 0 0 3px #77b99045}
html[data-theme="light"] .search-wrap svg{color:#276f4e}
html[data-theme="light"] .search-wrap input{color:#11271b}
html[data-theme="light"] .search-wrap input::placeholder{color:#587669}
html[data-theme="light"] .clear-btn{color:#3e6450}
html[data-theme="light"] .muted{color:#4b695b}
html[data-theme="light"] .text-btn{color:#146944}
html[data-theme="light"] .result-card{background:#fff;border-color:#c4d9c9;color:#172923}
html[data-theme="light"] .result-card:hover{background:#eaf5ed;border-color:#63a882}
html[data-theme="light"] .result-card .pin{background:#e0f0e5;color:#246d4a}
html[data-theme="light"] .result-info small{color:#506d60}
html[data-theme="light"] .result-info .local-tag{color:#7a4a00}
html[data-theme="light"] .result-meta{color:#416f54}
html[data-theme="light"] .result-chevron{color:#3f7359}
html[data-theme="light"] .empty{background:#fff;border-color:#b2cbbb;color:#52685b}
html[data-theme="light"] .empty strong{color:#1b3528}
html[data-theme="light"] .back-btn{color:#146b48}
html[data-theme="light"] .readiness-pill{border-color:#93bfa0;color:#236344;background:#ebf6ed}
html[data-theme="light"] .property-address{color:#375b47}
html[data-theme="light"] .property-note{color:#546d5f}
html[data-theme="light"] .code-card{background:#fff;border-color:#c3d9ca}
html[data-theme="light"] .tag{color:#235b42;background:#e2f1e8}
html[data-theme="light"] .tag.local{color:#82510e;background:#f9ecd4}
html[data-theme="light"] .code-text{color:#126842}
html[data-theme="light"] .code-note{color:#506958}
html[data-theme="light"] .code-actions{border-color:#d1e1d6}
html[data-theme="light"] .code-actions button{color:#165d3e}
html[data-theme="light"] .code-actions button.remove{color:#944343}
html[data-theme="light"] .privacy-note{border-color:#569a6f;color:#4c6455}
html[data-theme="light"] .primary{background:#216e49;border-color:#216e49;color:#fff}
html[data-theme="light"] .primary:hover{background:#175938}
html[data-theme="light"] .secondary{background:#f1f8f3;border-color:#a5c7b2;color:#1f5138}
html[data-theme="light"] .secondary:hover{background:#e3f1e7;border-color:#4b9f6f}
html[data-theme="light"] .overlay{background:rgba(24,41,31,.53)}
html[data-theme="light"] .modal{background:#fff;border-color:#bbd7c6;box-shadow:0 30px 80px #15331e40}
html[data-theme="light"] .close-button{color:#416651}
html[data-theme="light"] .modal label:not(.upload-label){color:#315844}
html[data-theme="light"] .modal label input,
html[data-theme="light"] .modal label textarea{background:#f7fbf8;border-color:#afcaba;color:#173023}
html[data-theme="light"] .form-info,
html[data-theme="light"] .data-section p{color:#506d5b}
html[data-theme="light"] .stats div{background:#e6f3e9}
html[data-theme="light"] .stats strong{color:#176b42}
html[data-theme="light"] .stats span{color:#466a56}
html[data-theme="light"] .data-section{border-color:#d1e5d8}
html[data-theme="light"] .danger-link{color:#964141}
html[data-theme="light"] .toast{color:#fff;background:#215d44;border-color:#4f9871;box-shadow:0 10px 35px #1c453a30}
html[data-theme="light"] footer{border-color:#d6e7da;color:#52745e}

/* GateScout v0.2 final: one-screen gate-code lookup and natural back controls. */
.inline-codes{margin:11px 0 24px;padding:20px 20px 22px;border:1px solid #38674d;background:linear-gradient(180deg,#192d27 0%,#111d1b 100%);border-radius:16px;box-shadow:0 4px 24px rgba(0,0,0,.14)}
.inline-codes .details-head{margin-bottom:10px;gap:12px}
.selected-caption{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#8bd9a9}
.inline-codes .property-title{font-size:clamp(21px,4vw,29px)}
.inline-codes .property-address{margin:5px 0}
.inline-codes .code-header{margin:20px 0 12px}
.inline-codes .privacy-note{margin-top:15px}
.result-card.selected{border-color:#6cdb9e;background:#203b31;box-shadow:inset 3px 0 0 #62d99c}
.modal-head{justify-content:flex-start;gap:12px}
.modal-head h2{flex:1;min-width:0}
.modal-back{border:1px solid #3f6451;border-radius:10px;color:#a4e2ba;background:#223b31;width:43px;height:43px;flex-shrink:0;font-size:24px;line-height:1;display:grid;place-items:center}
.modal-back:hover{border-color:#7ccfa5;background:#2c4d3e}
html[data-theme="light"] .inline-codes{border-color:#9ec9ab;background:linear-gradient(180deg,#f0f9f2 0%,#fff 100%);box-shadow:0 3px 14px #507f581c}
html[data-theme="light"] .selected-caption{color:#216a45}
html[data-theme="light"] .result-card.selected{background:#dff2e6;border-color:#3f9863;box-shadow:inset 3px 0 0 #318755}
html[data-theme="light"] .modal-back{background:#e8f5ec;border-color:#a4c8b2;color:#1c663f}
@media(max-width:560px){.inline-codes{padding:15px 13px 17px}.modal-back{width:40px;height:40px}.selected-caption{font-size:9px}}


/* Lookup stays on the main screen; gear opens dedicated edit management. */
.manage-gear{width:46px;height:46px;flex-shrink:0;display:grid;place-items:center;background:#244937;border:1px solid #5ea479;color:#b4f1ca;border-radius:11px}
.manage-gear svg{width:25px;height:25px}
.manage-gear:hover{background:#306749;border-color:#85ddaa}
.manage-bar{margin:20px 0 14px}
.manage-bar h3{margin:0;font-size:16px}
.manage-property-name{font-weight:800;font-size:18px;line-height:1.4}
.manage-code-list{display:flex;flex-direction:column;gap:10px}
.manage-item{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:15px;background:#132020;border:1px solid #355247;border-radius:12px}
.manage-item-info{display:flex;flex:1;min-width:140px;flex-direction:column;gap:5px;overflow-wrap:anywhere}
.manage-item-info strong{font-size:14px}
.manage-item-code{font-size:23px;font-weight:850;color:#82e0aa;letter-spacing:1px}
.manage-item-info small{font-size:12px;color:#8aa69a}
.manage-item-buttons{display:flex;gap:8px;align-items:center}
.manage-remove{border:1px solid #6c4144;background:#44252b;color:#ffb7af;border-radius:10px;min-height:41px;padding:10px 12px;font-weight:750}
.manage-remove:hover{background:#5e3135}
html[data-theme="light"] .manage-gear{background:#e2f4e7;border-color:#6ba582;color:#1b6945}
html[data-theme="light"] .manage-gear:hover{background:#cbead4}
html[data-theme="light"] .manage-item{background:#f7fbf8;border-color:#b7d4c0}
html[data-theme="light"] .manage-item-code{color:#166b44}
html[data-theme="light"] .manage-item-info small{color:#4d6a56}
html[data-theme="light"] .manage-remove{color:#87312b;background:#fff4f1;border-color:#d6a5a0}

/* Large real datasets remain quick to search without displaying hundreds of initial cards. */
.result-limit{padding:15px;color:#8ab09c;text-align:center;font-size:13px}
html[data-theme='light'] .result-limit{color:#446f56}

/* GateScout v0.5: maintain offline indicator alignment after removing test banner copy. */
.demo-ribbon{justify-content:flex-end}
