.reference-page{color:var(--text)}.reference-hero{padding:27px 28px 24px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.reference-eyebrow,.reference-section-kicker{display:flex;align-items:center;gap:7px;color:var(--accent);font-size:9px;font-weight:700;letter-spacing:.13em}.reference-hero h1{margin:13px 0 7px;color:var(--text);font-size:27px}.reference-hero>p{margin:0;color:var(--muted);font-size:12px}.reference-search{display:flex;align-items:center;gap:11px;max-width:760px;height:48px;margin-top:21px;padding:0 13px;border:1px solid var(--line-strong);border-radius:7px;background:var(--control-bg, var(--surface));color:var(--muted)}.reference-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.reference-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font-size:11px}.reference-search input::placeholder{color:var(--muted-2)}.reference-search kbd{flex:0 0 auto;padding:4px 6px;border:1px solid var(--line);border-radius:4px;color:var(--muted-2);font:9px Inter,Segoe UI,Arial,sans-serif}.reference-search-examples{margin-top:9px;color:var(--muted-2);font-size:9px}.reference-section{margin-top:25px}.reference-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:13px}.reference-section-heading h2{margin:5px 0 0;color:var(--text);font-size:16px}.reference-count{color:var(--muted-2);font-size:9px;white-space:nowrap}.reference-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.reference-category-card{position:relative;display:flex;min-height:100px;flex-direction:column;align-items:flex-start;gap:7px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);text-align:left;transition:border-color .15s,transform .15s}.reference-category-card:hover{border-color:var(--accent);transform:translateY(-1px)}.reference-category-card>strong{font-size:10px}.reference-category-card>span:not(.reference-category-icon){max-width:90%;color:var(--muted);font-size:9px;line-height:1.45}.reference-category-card>svg{position:absolute;right:11px;top:13px;color:var(--muted-2)}.reference-category-icon{display:grid;width:27px;height:27px;place-items:center;border-radius:6px;background:var(--accent-soft);color:var(--accent)}.reference-filters{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.reference-filters button{min-height:29px;padding:0 10px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--muted);font-size:9px}.reference-filters button:hover,.reference-filters button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.reference-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.reference-card{min-width:0;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text)}.reference-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.reference-designation{color:var(--accent);font-size:11px;font-weight:700}.reference-status{display:inline-flex;align-items:center;max-width:100%;padding:4px 7px;border:1px solid var(--line);border-radius:20px;background:var(--surface-soft);color:var(--muted);font-size:8px;line-height:1.3}.status-listed{border-color:#b7cfeb;background:#eff6fd;color:#355f8b}.status-active{border-color:#b8dfc7;background:#edf8f0;color:#38764d}.status-replaced{border-color:#e7d2a9;background:#fbf5e8;color:#8b672b}.status-cancelled{border-color:#e6c6c6;background:#fcf0f0;color:#9b4545}.reference-card h3{margin:11px 0 6px;color:var(--text);font-size:12px;line-height:1.45}.reference-card p{margin:0;color:var(--muted);font-size:10px;line-height:1.55}.reference-effective-date{margin-top:9px;color:var(--muted);font-size:9px}.reference-effective-date strong{color:var(--text)}.reference-card-meta{display:flex;flex-direction:column;gap:4px;margin-top:11px;padding-top:9px;border-top:1px solid var(--line);color:var(--muted);font-size:9px;line-height:1.5}.reference-card-meta>span{color:var(--muted-2);font-size:8px;text-transform:uppercase;letter-spacing:.06em}.reference-card-actions{display:flex;align-items:center;gap:12px;margin-top:12px}.reference-link-button,.reference-source-link{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;color:var(--accent);font-size:9px;font-weight:600;text-decoration:none;cursor:pointer}.reference-link-button:hover,.reference-source-link:hover{color:var(--accent-dark);text-decoration:underline}.reference-icon-button{display:grid;width:28px;height:28px;place-items:center;margin-left:auto;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--accent)}.reference-icon-button:hover{background:var(--accent-soft)}.reference-checked{margin-top:8px;color:var(--muted-2);font-size:8px}.article-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;cursor:pointer}.article-card:hover{border-color:var(--accent)}.article-card .reference-link-button{margin-top:12px}.reference-category-label{display:inline-block;color:var(--accent);font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.reference-empty{padding:28px 14px;border:1px dashed var(--line-strong);border-radius:7px;color:var(--muted);font-size:10px;text-align:center}.reference-subheading{margin-top:28px}.reference-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:14px;padding:4px 0;border:0;background:transparent;color:var(--accent);font-size:10px;cursor:pointer}.reference-back:hover{text-decoration:underline}.reference-detail{max-width:900px;margin:0 auto}.reference-detail-heading{padding:21px 23px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.reference-detail-heading h1{margin:8px 0;color:var(--text);font-size:25px}.reference-detail-heading h2{margin:0 0 12px;color:var(--muted);font-size:14px;font-weight:500;line-height:1.5}.reference-detail-heading>p{margin:5px 0 0;color:var(--muted);font-size:10px}.reference-tabs{display:flex;gap:5px;overflow-x:auto;margin:13px 0;border-bottom:1px solid var(--line)}.reference-tabs button{flex:0 0 auto;padding:10px 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:10px;cursor:pointer}.reference-tabs button.active{border-bottom-color:var(--accent);color:var(--accent);font-weight:700}.reference-panel{margin-bottom:11px;padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.reference-panel h2,.reference-panel h3{margin:0 0 8px;color:var(--text);font-size:12px}.reference-panel h3:not(:first-child){margin-top:17px}.reference-panel p{margin:0;color:var(--muted);font-size:10px;line-height:1.7}.reference-facts{margin:17px 0 0;border-top:1px solid var(--line)}.reference-facts>div{display:grid;grid-template-columns:minmax(140px,.7fr) 1.5fr;gap:15px;padding:10px 0;border-bottom:1px solid var(--line)}.reference-facts dt{color:var(--muted-2);font-size:9px}.reference-facts dd{margin:0;color:var(--text);font-size:9px;line-height:1.5}.reference-caveat{padding:13px;border:1px solid var(--line);border-radius:6px;background:var(--surface-soft);color:var(--muted);font-size:10px;line-height:1.6}.reference-caveat strong{display:block;margin-bottom:5px;color:var(--text)}.reference-list{display:flex;flex-direction:column}.reference-list-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 2px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--accent);text-align:left;cursor:pointer}.reference-list-item:last-child{border-bottom:0}.reference-list-item>button{display:flex;flex:1;flex-direction:column;gap:3px;padding:0;border:0;background:transparent;color:var(--muted);font-size:9px;line-height:1.4;text-align:left;cursor:pointer}.reference-list-item>button:hover{color:var(--accent)}.reference-list-item>button strong{color:var(--text);font-size:10px}.reference-list-item>a{display:grid;width:28px;height:28px;place-items:center;border-radius:4px;color:var(--accent)}.reference-list-item>a:hover{background:var(--accent-soft)}.reference-list-item>span{display:flex;flex:1;flex-direction:column;gap:3px;color:var(--muted);font-size:9px;line-height:1.4}.reference-list-item>span strong{color:var(--text);font-size:10px}.reference-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}.reference-detail-actions .button{text-decoration:none}.article-section{margin-top:11px}.article-section h2{margin-bottom:8px}.reference-not-found{text-align:center}.reference-not-found .reference-back{margin:10px auto 0}.reference-notice{position:fixed;right:24px;bottom:23px;z-index:31;display:flex;align-items:center;gap:8px;padding:11px 14px;border-radius:7px;background:var(--sidebar-bg, #263e39);color:#fff;font-size:10px;box-shadow:0 8px 25px #0f231e33}.reference-diagram{display:flex;align-items:center;gap:15px;margin:11px 0;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.reference-diagram svg{width:min(360px,52%);max-height:190px;fill:var(--accent-soft);stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.reference-diagram svg text{fill:var(--text);stroke:none;font:9px Inter,Segoe UI,Arial,sans-serif}.reference-diagram figcaption{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:9px;line-height:1.5}.reference-diagram figcaption strong{color:var(--text);font-size:10px}.materials-comparison{margin:14px 0}.materials-comparison>p{margin-bottom:12px}.reference-table-scroll{width:100%;overflow-x:auto;margin:10px 0;border:1px solid var(--line);border-radius:6px}.reference-table-scroll table{width:100%;min-width:880px;border-collapse:collapse;background:var(--surface);text-align:left}.reference-table-scroll th,.reference-table-scroll td{padding:9px 10px;border-bottom:1px solid var(--line);color:var(--muted);font-size:8px;line-height:1.5;vertical-align:top}.reference-table-scroll thead th{background:var(--surface-soft);color:var(--text);font-size:8px}.reference-table-scroll tbody th{color:var(--text);font-weight:600}.reference-table-scroll td button{padding:0;border:0;background:transparent;color:var(--accent);text-align:left;font:inherit;cursor:pointer}.reference-table-scroll td button:hover{text-decoration:underline}.app-shell[data-theme=cosmic-tree] .reference-search,.app-shell[data-theme=cosmic-tree] .reference-filters button,.app-shell[data-theme=cosmic-tree] .reference-category-card,.app-shell[data-theme=cosmic-tree] .reference-card,.app-shell[data-theme=cosmic-tree] .reference-detail-heading,.app-shell[data-theme=cosmic-tree] .reference-panel,.app-shell[data-theme=cosmic-tree] .reference-icon-button{background:var(--surface);border-color:var(--line)}.app-shell[data-theme=cosmic-tree] .reference-page,.app-shell[data-theme=cosmic-tree] .reference-page h1,.app-shell[data-theme=cosmic-tree] .reference-page h2,.app-shell[data-theme=cosmic-tree] .reference-page h3,.app-shell[data-theme=cosmic-tree] .reference-page strong,.app-shell[data-theme=cosmic-tree] .reference-facts dd{color:var(--text)!important}.app-shell[data-theme=cosmic-tree] .reference-page p,.app-shell[data-theme=cosmic-tree] .reference-page .reference-card-meta,.app-shell[data-theme=cosmic-tree] .reference-page .reference-list-item>span{color:var(--muted)!important}.app-shell[data-theme=cosmic-tree] .reference-diagram,.app-shell[data-theme=cosmic-tree] .reference-table-scroll table{background:var(--surface);border-color:var(--line)}.app-shell[data-theme=cosmic-tree] .reference-diagram svg text{fill:var(--text)}@media(max-width:900px){.reference-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.reference-hero{padding:19px 15px}.reference-hero h1{font-size:22px}.reference-search{height:44px;padding:0 9px}.reference-search kbd{display:none}.reference-category-grid,.reference-card-grid{grid-template-columns:1fr}.reference-category-card{min-height:85px}.reference-section-heading{align-items:flex-start}.reference-detail-heading{padding:16px}.reference-detail-heading h1{font-size:21px}.reference-panel{padding:14px}.reference-facts>div{grid-template-columns:1fr;gap:4px}.reference-notice{left:70px;right:10px;bottom:12px;justify-content:center}.reference-diagram{align-items:flex-start;flex-direction:column}.reference-diagram svg{width:100%}}:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#20252b;background:#f4f5f6;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--bg: #f4f5f6;--surface: #ffffff;--surface-soft: #fafbfb;--line: #e9ecee;--line-strong: #dfe4e7;--text: #20252b;--muted: #7d8790;--muted-2: #a1a9af;--accent: #347c70;--accent-dark: #28685f;--accent-soft: #eaf3f1;--danger: #bd5959;--shadow: 0 5px 24px rgba(29, 44, 53, .035), 0 1px 2px rgba(29, 44, 53, .025)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}.app-shell{min-height:100vh;display:flex;background:var(--bg)}.sidebar{width:252px;flex:0 0 252px;min-height:100vh;background:#20272d;color:#e8edef;padding:28px 17px 18px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:10}.brand{display:flex;align-items:center;gap:11px;padding:2px 10px 39px}.brand-mark{height:37px;width:37px;flex:0 0 37px;border-radius:10px;background:#35796e;display:grid;place-items:center;color:#fff;box-shadow:0 4px 12px #185a4f3d}.brand-mark img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}.brand-name{color:#f1f4f4;font:800 14px/1.15 Inter,Segoe UI,Arial,sans-serif;letter-spacing:.055em;white-space:nowrap}.brand-name span{display:block;color:#a7b4b7;font-size:10px;letter-spacing:.17em;margin-top:3px}.brand-caption{font-size:8px;letter-spacing:.12em;color:#869399;margin-top:6px}.sidebar-section-label{color:#78858c;font-size:9px;font-weight:700;letter-spacing:.15em;padding:0 11px 12px}.side-nav{display:flex;flex-direction:column;gap:4px}.nav-item{height:43px;border:0;background:transparent;color:#aab4b8;border-radius:7px;display:flex;align-items:center;gap:12px;padding:0 12px;text-align:left;font-size:12px;font-weight:500;transition:background .18s,color .18s}.nav-item:hover{background:#ffffff0e;color:#f5f8f8}.nav-item.active{color:#f6fbfa;background:#3e8b7d36;box-shadow:inset 2px 0 #60a697}.nav-item.active svg{color:#80c2b4}.nav-count{margin-left:auto;color:#b9c5c8;background:#ffffff1a;min-width:20px;height:19px;display:grid;place-items:center;border-radius:10px;font-size:10px}.sidebar-bottom{display:flex;align-items:flex-start;gap:10px;margin:auto 7px 21px;padding:13px 11px;background:#ffffff0b;border:1px solid rgba(255,255,255,.07);border-radius:8px}.sidebar-note-icon{color:#82b8ad;padding-top:1px}.sidebar-note-title{color:#d5dfe0;font-size:10px;font-weight:700}.sidebar-bottom p{color:#879499;font-size:10px;line-height:1.55;margin:5px 0 0}.sidebar-version{color:#6e7b81;font-size:9px;letter-spacing:.08em;padding:0 9px}.sidebar-version span{float:right;color:#758288}.main-area{width:calc(100% - 252px);margin-left:252px;min-height:100vh}.topbar{height:65px;display:flex;align-items:center;justify-content:space-between;background:#ffffffe0;border-bottom:1px solid #e9ecee;padding:0 43px;position:sticky;top:0;z-index:5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.breadcrumb{display:flex;align-items:center;gap:11px;font-size:11px;color:#939ca2}.breadcrumb strong{color:#465058;font-weight:600}.crumb-slash{color:#c8ced1}.topbar-right{display:flex;align-items:center;gap:20px}.local-status{display:flex;align-items:center;gap:7px;font-size:10px;color:#7e898e}.status-dot,.result-live span{width:6px;height:6px;border-radius:50%;background:#4b9d82;box-shadow:0 0 0 3px #4b9d821c}.top-icon-button{border:0;background:transparent;color:#758087;display:grid;place-items:center;width:31px;height:31px;border-radius:6px}.top-icon-button:hover{background:#f1f4f4;color:var(--accent)}.mobile-brand{display:none;align-items:center;gap:8px;font-size:11px;letter-spacing:.04em}.mobile-brand .brand-mark{width:30px;height:30px;flex-basis:30px;border-radius:8px}.content-wrap{max-width:1160px;padding:37px 43px 25px;margin:0 auto}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}.eyebrow{color:var(--accent);font-size:9px;font-weight:700;letter-spacing:.16em;margin-bottom:9px}h1,h2,h3,p{margin-top:0}h1{margin-bottom:7px;font:700 27px/1.22 Inter,Segoe UI,Arial,sans-serif;letter-spacing:-.045em;color:#20272c}.page-heading p{color:#7e888e;font-size:12px;margin:0;line-height:1.6}.heading-meta{text-align:right;padding-bottom:3px;min-width:155px}.meta-chip{display:inline-flex;color:#458477;background:#eaf3f1;border:1px solid #dbece7;border-radius:4px;padding:5px 7px;font-size:8px;font-weight:700;letter-spacing:.1em}.meta-caption{display:block;color:#9aa3a7;font-size:9px;margin-top:7px}.panel{background:var(--surface);border:1px solid #e9edef;border-radius:10px;box-shadow:var(--shadow)}.calculator-panel{padding:25px 27px 0}.panel-topline{display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-title-wrap{display:flex;align-items:center;gap:13px}.section-index{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;background:#eff5f3;color:#4c8a7d;font:700 10px Inter,Segoe UI,Arial,sans-serif;border-radius:6px}.panel-title-wrap h2{color:#313a40;font:700 13px Inter,Segoe UI,Arial,sans-serif;margin:0 0 4px;letter-spacing:-.01em}.panel-title-wrap p{color:#939ca1;font-size:10px;margin:0}.text-button{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#438578;font-size:10px;font-weight:600;padding:7px 3px;white-space:nowrap}.text-button:hover{color:#24685d}.danger-text{color:#b45f5f}.danger-text:hover{color:#983e3e}.scale-select-grid{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);align-items:end;gap:16px;margin-top:24px;max-width:760px}.field-block{display:flex;flex-direction:column;gap:8px;min-width:0}.field-label{display:block;color:#69747a;font-size:10px;font-weight:600}.select-wrap{position:relative;display:flex;align-items:center}.select-wrap select{width:100%;height:44px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #e1e7e8;border-radius:6px;background:#fbfcfc;padding:0 37px 0 13px;color:#384249;font-size:13px;font-weight:600;outline:none;cursor:pointer}.select-wrap select:focus,input:focus,textarea:focus,.unit-select:focus-within{border-color:#80b4a8;box-shadow:0 0 0 3px #418b7a17}.select-wrap svg{position:absolute;right:13px;color:#89949a;pointer-events:none}.swap-button{align-self:end;margin-bottom:2px;height:40px;width:40px;border:1px solid #e2e8e9;background:#fbfcfc;color:#648c83;border-radius:7px;display:grid;place-items:center;transition:all .15s}.swap-button:hover{border-color:#b7d4cc;background:#f0f7f5;transform:rotate(180deg)}.inline-form{margin-top:15px;padding:13px;border:1px solid #dcebe7;background:#f7fbfa;border-radius:7px}.scale-form{display:flex;align-items:flex-end;gap:10px;max-width:760px;flex-wrap:wrap}.scale-form>div:first-child{width:min(230px,100%)}.scale-form input{height:36px;margin-top:6px}.form-error{color:#b75050;font-size:10px;flex-basis:100%}.icon-button{width:31px;height:31px;display:grid;place-items:center;border:1px solid transparent;border-radius:6px;background:transparent;color:#7e898f}.icon-button:hover{color:#347c70;background:#f0f6f4;border-color:#e2eeea}.panel-divider{height:1px;background:#edf0f1;margin:24px 0 21px}.input-section{max-width:760px}.input-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px}.helper-text{color:#a0a9ad;font-size:9px}.measurement-input-wrap{display:flex;align-items:center;width:100%;height:56px;border:1px solid #dfe6e7;border-radius:7px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}.measurement-input-wrap:focus-within{border-color:#80b4a8;box-shadow:0 0 0 3px #418b7a17}.measurement-input{width:100%;height:100%;border:0!important;outline:0;box-shadow:none!important;padding:0 16px;color:#263039;font:600 21px Inter,Segoe UI,Arial,sans-serif;background:transparent;min-width:0}.measurement-input::placeholder{color:#c4cbce}.unit-select{height:34px;min-width:70px;position:relative;display:inline-flex;align-items:center;border:1px solid #e5e9ea;border-radius:5px;background:#f9fbfb;padding:0 25px 0 11px;color:#56636a}.measurement-input-wrap>.unit-select{margin-right:10px}.unit-select select{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;outline:none;background:transparent;color:inherit;font-size:11px;font-weight:600;cursor:pointer}.unit-select svg{position:absolute;right:7px;pointer-events:none;color:#899499}.input-error{color:#bd5555;font-size:10px;margin-top:7px}.result-block{margin-top:23px;border:1px solid #dcebe6;background:#f6faf8;border-radius:8px;padding:19px 20px 0}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.result-label{color:#63867e;font-size:9px;font-weight:700;letter-spacing:.15em}.result-live{display:inline-flex;align-items:center;gap:7px;color:#90a39e;font-size:8px;font-weight:600;letter-spacing:.07em}.result-live span{width:5px;height:5px}.result-main-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:6px 0 15px}.result-value{color:#28685d;font:700 38px/1.25 Inter,Segoe UI,Arial,sans-serif;letter-spacing:-.05em;overflow-wrap:anywhere}.result-value>span{color:#7b9992;font:500 15px Inter,Segoe UI,Arial,sans-serif;letter-spacing:0;margin-left:8px}.result-actions{display:flex;align-items:center;gap:9px}.copy-result-button{display:inline-flex;align-items:center;gap:7px;height:35px;padding:0 11px;border:1px solid #d8e5e0;background:#fff;border-radius:5px;color:#4d756d;font-size:10px;font-weight:600;white-space:nowrap}.copy-result-button:hover{border-color:#b5d1c8;background:#fbfefd}.result-details{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #e2eeea;border-bottom:1px solid #e2eeea;padding:13px 0;gap:15px}.result-details>div{display:flex;flex-direction:column;gap:5px;min-width:0}.result-details>div+div{border-left:1px solid #e3ece8;padding-left:17px}.result-details span{color:#98a5a2;font-size:9px}.result-details strong{color:#536a65;font-size:11px;font-weight:700;overflow-wrap:anywhere}.result-footer{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#879994;font-size:9px}.result-footer>span{display:flex;align-items:center;gap:8px}.arrow-inline{color:#9aaba6}.result-history-button{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#518276;font-size:9px;font-weight:600;padding:5px 0;white-space:nowrap}.result-history-button:hover{color:#28685d}.formula-row{display:flex;align-items:center;gap:10px;padding:17px 1px 18px}.formula-icon{color:#96aaa4}.formula-row>div:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}.formula-row strong{font-size:9px;color:#727f84}.formula-row span{color:#9ba4a8;font-size:9px;line-height:1.5;overflow-wrap:anywhere}.quick-tips-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}.tip-card{display:flex;align-items:flex-start;gap:11px;padding:14px 16px;border:1px solid #eaedef;border-radius:8px;background:#ffffffbf}.tip-icon{width:29px;height:29px;flex:0 0 29px;display:grid;place-items:center;border-radius:6px;background:#edf4f2;color:#5c8d82}.tip-card strong{display:block;color:#5d696f;font-size:10px;margin:1px 0 4px}.tip-card p{color:#98a1a5;font-size:9px;line-height:1.5;margin:0}.page-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#aab2b6;font-size:8px;padding:28px 1px 4px;letter-spacing:.025em}.page-footer a{color:inherit;text-decoration:none}.page-footer a:hover{color:var(--accent);text-decoration:underline}.bulk-panel{padding:25px 27px 23px}.rows-count{color:#6e8e85;background:#eff6f3;border-radius:4px;padding:6px 9px;font-size:9px;font-weight:600;white-space:nowrap}.bulk-scale-grid{max-width:760px;margin-top:20px}.bulk-units{display:flex;align-items:flex-end;gap:13px;margin-top:16px}.bulk-units>div:not(.bulk-unit-arrow){display:flex;flex-direction:column;gap:7px}.bulk-unit-arrow{color:#9ba7a5;padding:0 0 8px}.bulk-units .unit-select{min-width:80px}.table-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin:0 0 13px}.table-toolbar h3,.paste-heading h3{margin:0 0 4px;color:#384248;font:700 12px Inter,Segoe UI,Arial,sans-serif}.table-toolbar p,.paste-heading p{margin:0;color:#9aa3a7;font-size:9px}.toolbar-actions{display:flex;align-items:center;gap:8px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:5px;font-weight:600;transition:background .15s,border-color .15s;white-space:nowrap}.button-small{height:33px;padding:0 11px;font-size:9px}.button-primary{color:#fff;background:#347c70;border:1px solid #347c70}.button-primary:hover{background:#286b60;border-color:#286b60}.button-secondary{color:#5c756f;background:#fff;border:1px solid #dfe7e5}.button-secondary:hover{background:#f5faf8;border-color:#c4dad3}.button-danger{color:#a94f4f;background:#fff;border:1px solid #ead8d8}.button-danger:hover{background:#fff8f8}.table-scroll{width:100%;overflow-x:auto;border:1px solid #e9edef;border-radius:7px}.data-table{width:100%;min-width:660px;border-collapse:collapse;text-align:left}.data-table thead{background:#f7f9f9}.data-table th{height:37px;padding:0 12px;color:#909b9f;font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.data-table td{height:53px;border-top:1px solid #edf0f1;padding:6px 12px;color:#657177;font-size:10px}.data-table tbody tr:hover{background:#fbfcfc}.col-number{width:43px}.col-action{width:42px}.row-number{color:#aab3b6!important;font:600 9px Inter,Segoe UI,Arial,sans-serif}.table-input{height:32px;width:100%;min-width:0;border:1px solid transparent;border-radius:4px;padding:0 7px;background:transparent;color:#536067;font-size:10px;outline:none}.table-input:focus{border-color:#9bc3b8;background:#fff;box-shadow:0 0 0 2px #418b7a12}.table-input::placeholder{color:#bec6c9}.numeric-input{max-width:145px;font-variant-numeric:tabular-nums}.result-column{color:#5e887c!important}.result-cell{background:#f9fcfb;white-space:nowrap;position:relative}.result-cell strong{color:#347768;font:700 12px Inter,Segoe UI,Arial,sans-serif}.unit-muted{color:#94a8a2;font-size:9px;margin-left:5px}.muted-dash{color:#c0c7ca}.cell-copy{margin-left:10px;border:0;padding:4px;color:#99aaa5;background:transparent;vertical-align:middle;opacity:0}.data-table tr:hover .cell-copy{opacity:1}.cell-copy:hover{color:#347c70}.row-delete{display:grid;place-items:center;border:0;background:transparent;color:#b1b9bc;width:28px;height:28px;border-radius:5px}.row-delete:hover{color:#b65454;background:#fff3f3}.table-error{display:block;color:#b65454;font-size:8px;padding-left:7px}.bulk-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}.bulk-footer>span{color:#9aa4a6;font-size:9px}.bulk-footer strong{color:#5b8178}.paste-panel{border-top:1px solid #edf0f1;padding-top:17px;margin-top:7px}.paste-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}.paste-panel textarea{display:block;width:100%;resize:vertical;min-height:85px;border:1px solid #e5eaeb;border-radius:6px;outline:none;padding:10px 12px;background:#fbfcfc;color:#536067;font:11px/1.7 Inter,Segoe UI,Arial,sans-serif}.paste-panel textarea::placeholder{color:#b9c2c5}.paste-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.paste-footer>span{color:#a3acb0;font-size:8px}.mode-panel{padding:25px 27px 0}.mode-fields{display:grid;grid-template-columns:minmax(150px,.85fr) minmax(180px,1fr) minmax(160px,.9fr);align-items:end;gap:16px;margin-top:24px;max-width:880px}.measurement-input-wrap.compact{height:44px}.measurement-input-wrap.compact .measurement-input{font-size:16px}.mode-direction{display:flex;align-items:center;gap:8px;padding:0 0 12px 3px;color:#82918e;font-size:9px;line-height:1.4}.mode-direction svg{color:#639588;flex:0 0 auto}.mode-result{margin-top:25px}.mode-details{grid-template-columns:repeat(3,1fr)}.warning-note{display:flex;align-items:flex-start;gap:11px;margin-top:15px;padding:14px 16px;background:#f8f8f4;border:1px solid #ececdf;border-radius:7px;color:#9b966e}.warning-note svg{flex:0 0 auto;margin-top:1px}.warning-note p{margin:0;color:#918d75;font-size:10px;line-height:1.6}.warning-note strong{color:#77734e}.history-panel{padding:25px 27px}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:55px 20px 50px}.empty-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:12px;background:#f0f5f3;color:#6d988d;margin-bottom:15px}.empty-state>strong{font:700 13px Inter,Segoe UI,Arial,sans-serif;color:#455057}.empty-state p{max-width:350px;color:#9aa3a7;font-size:10px;line-height:1.6;margin:7px 0 16px}.history-list{margin-top:20px}.history-item{display:grid;grid-template-columns:95px minmax(0,1fr) auto;align-items:center;gap:15px;min-height:91px;padding:12px 4px;border-top:1px solid #edf0f1}.history-date{color:#a0aaae;font-size:9px}.history-content{min-width:0}.history-mode{display:block;color:#8e999e;font-size:8px;margin-bottom:5px}.history-route{display:flex;align-items:center;gap:8px;color:#67757a;font-size:10px}.history-route svg{color:#9eaaa7}.history-math{color:#66737a;font-size:10px;margin-top:6px}.history-math strong{color:#347768;font:700 12px Inter,Segoe UI,Arial,sans-serif}.history-equals{color:#b1b9bc;padding:0 5px}.history-coefficient{color:#9eaaa7;margin-left:10px;font-size:9px}.history-actions{display:flex;align-items:center;gap:1px}.muted-delete:hover{color:#b65454;background:#fff3f3}.settings-panel{padding:23px 27px;margin-bottom:14px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 0 17px}.setting-row strong,.reset-row strong{color:#4d5960;font-size:11px}.setting-row p,.reset-row p{color:#9aa4a8;font-size:9px;margin:5px 0 0}.precision-options{display:flex;align-items:center;gap:5px;padding:4px;border:1px solid #e8eded;border-radius:6px;background:#f9fbfb}.precision-option{width:31px;height:29px;border:0;border-radius:4px;background:transparent;color:#879297;font-size:10px}.precision-option:hover{background:#eef4f2;color:#457c70}.precision-option.selected{background:#347c70;color:#fff;box-shadow:0 2px 4px #347c7033}.example-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0 2px;border-top:1px solid #eff1f2;color:#9aa4a8;font-size:9px}.example-preview>div{display:flex;align-items:center;gap:8px}.example-preview strong{color:#527e73;font-size:10px}.preview-divider{color:#c4cbcd;margin:0 4px}.settings-empty{padding:22px 0 5px;color:#9aa4a8;font-size:10px;line-height:1.6}.custom-scale-list{margin-top:14px}.custom-scale-item{display:flex;align-items:center;gap:12px;min-height:58px;border-top:1px solid #eff1f2}.custom-scale-symbol{width:35px;height:35px;display:grid;place-items:center;background:#f0f5f3;border-radius:6px;color:#6a9186;font:700 9px Inter,Segoe UI,Arial,sans-serif}.custom-scale-item>div:nth-child(2){display:flex;flex-direction:column;gap:3px}.custom-scale-item strong{color:#4d5b60;font-size:11px}.custom-scale-item span{color:#a0aaae;font-size:9px}.custom-scale-item .icon-button{margin-left:auto}.storage-status{display:flex;align-items:center;gap:11px;margin:18px 0;padding:13px 14px;background:#f3f8f6;border:1px solid #e4f0eb;border-radius:6px;color:#5a9485}.storage-status>div{display:flex;flex-direction:column;gap:4px}.storage-status strong{color:#567e74;font-size:10px}.storage-status span{color:#94a69f;font-size:9px}.reset-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #eff1f2;padding-top:16px}.toast{position:fixed;z-index:30;right:25px;bottom:23px;display:flex;align-items:center;gap:9px;padding:12px 15px;border-radius:7px;color:#f8fcfa;background:#263e39;box-shadow:0 8px 25px #0f231e33;font-size:11px;animation:toast-in .18s ease-out}.toast svg{color:#8dc4b4}@keyframes toast-in{0%{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1500px){.content-wrap{padding-top:47px}.calculator-panel,.bulk-panel,.mode-panel,.history-panel,.settings-panel{padding-left:32px;padding-right:32px}}@media(max-width:1120px){.sidebar{width:220px;flex-basis:220px}.main-area{width:calc(100% - 220px);margin-left:220px}.content-wrap{padding-left:28px;padding-right:28px}.topbar{padding:0 28px}.mode-fields{grid-template-columns:1fr 1fr}.mode-direction{grid-column:1 / -1;padding:0}}@media(max-width:780px){.sidebar{width:61px;flex-basis:61px;padding:18px 8px 13px;align-items:center}.brand{padding:0 0 29px}.brand>div:last-child,.sidebar-section-label,.nav-item span,.sidebar-bottom,.sidebar-version{display:none}.brand-mark{width:37px;height:37px}.side-nav{width:100%;align-items:center}.nav-item{width:43px;justify-content:center;padding:0}.nav-item svg{width:18px;height:18px}.main-area{width:calc(100% - 61px);margin-left:61px}.topbar{height:57px;padding:0 20px}.content-wrap{padding:28px 20px 20px}.breadcrumb{display:none}.mobile-brand{display:flex}.local-status{font-size:9px}.topbar-right{gap:9px}.page-heading{align-items:flex-start}.heading-meta{display:none}h1{font-size:24px}.calculator-panel,.bulk-panel,.mode-panel,.history-panel,.settings-panel{padding-left:19px;padding-right:19px}}@media(max-width:560px){.sidebar{width:52px;flex-basis:52px;padding:14px 5px 10px}.brand{padding-bottom:22px}.brand-mark{width:34px;height:34px;flex-basis:34px}.nav-item{width:40px;height:41px}.main-area{width:calc(100% - 52px);margin-left:52px}.topbar{height:54px;padding:0 12px}.mobile-brand{font-size:9px;gap:6px}.mobile-brand .brand-mark{width:27px;height:27px;flex-basis:27px}.local-status{display:none}.content-wrap{padding:23px 11px 17px}.page-heading{margin-bottom:18px}h1{font-size:21px}.page-heading p{font-size:10px;max-width:310px}.eyebrow{font-size:8px}.calculator-panel,.bulk-panel,.mode-panel,.history-panel,.settings-panel{padding-left:13px;padding-right:13px;border-radius:8px}.calculator-panel,.bulk-panel,.mode-panel,.history-panel,.settings-panel{padding-top:17px}.panel-title-wrap{gap:9px}.panel-title-wrap h2{font-size:11px}.panel-title-wrap p{font-size:8px}.section-index{width:26px;height:26px;flex-basis:26px}.panel-topline{align-items:flex-start}.panel-topline>.text-button{font-size:8px}.scale-select-grid{grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);gap:7px;margin-top:18px}.select-wrap select{height:41px;padding-left:9px;font-size:11px}.swap-button{width:33px;height:36px}.field-label{font-size:9px}.input-label-row{align-items:flex-start;flex-direction:column;gap:5px}.helper-text{font-size:8px}.measurement-input-wrap{height:51px}.measurement-input{font-size:19px;padding-left:12px}.unit-select{min-width:60px;padding-left:8px}.result-block{padding:14px 12px 0;margin-top:17px}.result-label{font-size:8px}.result-live{font-size:7px;gap:5px}.result-main-row{align-items:flex-start;flex-direction:column;gap:6px;padding-bottom:12px}.result-value{font-size:clamp(31px,10vw,38px)}.result-actions{width:100%;justify-content:flex-start}.copy-result-button{height:31px;font-size:9px}.result-details{gap:7px;padding:11px 0}.result-details>div+div{padding-left:8px}.result-details span{font-size:8px;line-height:1.3}.result-details strong{font-size:9px}.result-footer{font-size:8px;min-height:38px}.result-history-button{font-size:8px}.formula-row{padding:13px 0 14px}.formula-row span{font-size:8px}.quick-tips-grid{grid-template-columns:1fr;gap:8px;margin-top:10px}.tip-card{padding:11px}.page-footer{flex-wrap:wrap;font-size:7px;padding-top:20px}.page-footer span:nth-child(2){display:none}.mode-fields{grid-template-columns:1fr;gap:15px;margin-top:17px}.mode-direction{grid-column:auto}.mode-result{margin-top:17px}.warning-note{padding:11px;gap:8px}.warning-note p{font-size:9px}.table-toolbar{flex-direction:column;align-items:flex-start}.toolbar-actions{width:100%}.toolbar-actions .button{flex:1;padding:0 6px;font-size:8px}.bulk-units{gap:8px}.bulk-units .field-label{max-width:100px;min-height:22px}.bulk-units .unit-select{min-width:65px}.bulk-footer{align-items:flex-start;flex-direction:column;padding:7px 0;gap:3px}.paste-footer{align-items:flex-start;flex-direction:column}.rows-count{font-size:8px;padding:5px 6px}.history-item{grid-template-columns:1fr auto;gap:8px}.history-date{grid-column:1 / 2;grid-row:1}.history-content{grid-column:1 / 2;grid-row:2}.history-actions{grid-column:2 / 3;grid-row:1 / 3}.history-math{line-height:1.7}.setting-row,.reset-row{align-items:flex-start;flex-direction:column}.precision-options{align-self:stretch;justify-content:space-between}.precision-option{flex:1}.example-preview{align-items:flex-start;flex-direction:column}.example-preview>div{flex-wrap:wrap}.toast{left:61px;right:9px;bottom:12px;justify-content:center;font-size:10px}}.theme-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;padding-top:20px}.theme-option{min-width:0;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);text-align:left;transition:border-color .15s,box-shadow .15s,transform .15s}.theme-option:hover{border-color:var(--accent);transform:translateY(-1px)}.theme-option.selected{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.theme-preview{display:flex;height:34px;overflow:hidden;border-radius:4px}.theme-preview>span{flex:1}.theme-name{display:block;padding:9px 2px 2px;color:var(--text);font-size:10px;font-weight:600}.app-shell[data-theme=cat-meadow]{--bg: #edf4f2;--surface: #fff;--surface-soft: #f5faf8;--line: #dce9e5;--line-strong: #cadbd6;--text: #20352f;--muted: #647a74;--muted-2: #92a59f;--accent: #386e64;--accent-dark: #28564e;--accent-soft: #e3f0ec;--danger: #bd5959;--shadow: 0 5px 24px rgba(27, 62, 54, .06), 0 1px 2px rgba(27, 62, 54, .04);--sidebar-bg: #1d3935;--control-bg: #f8fbfa;--result-bg: #edf6f3;--result-line: #d2e7df}.app-shell[data-theme=neon-bloom]{--bg: #f5eff9;--surface: #fff;--surface-soft: #faf6fc;--line: #e7dced;--line-strong: #dac9e5;--text: #30243c;--muted: #75657f;--muted-2: #a293ad;--accent: #f42e5f;--accent-dark: #8048ad;--accent-soft: #f0e5f7;--danger: #df2858;--shadow: 0 5px 24px rgba(54, 25, 82, .07), 0 1px 2px rgba(54, 25, 82, .04);--sidebar-bg: #291348;--control-bg: #fcf9fe;--result-bg: #f7effa;--result-line: #ead9f2}.app-shell[data-theme=cosmic-tree]{--bg: #101c29;--surface: #0a1c3d;--surface-soft: #102449;--line: #253b5c;--line-strong: #345179;--text: #edf4ff;--muted: #b7c8e1;--muted-2: #8fa7c9;--accent: #91d2f4;--accent-dark: #2868c6;--accent-soft: #1d1f5a;--danger: #ff8585;--shadow: 0 8px 26px rgba(0, 0, 0, .2);--sidebar-bg: #0b1423;--control-bg: #102449;--result-bg: #11264a;--result-line: #304b73}.app-shell[data-theme=starlight]{--bg: #fbf7e9;--surface: #fffdf6;--surface-soft: #faf4dc;--line: #ece3c4;--line-strong: #dfd1a5;--text: #252b3e;--muted: #6b7180;--muted-2: #9898a0;--accent: #1b3a68;--accent-dark: #191939;--accent-soft: #f7edc4;--danger: #bd5959;--shadow: 0 5px 24px rgba(68, 57, 28, .07), 0 1px 2px rgba(68, 57, 28, .04);--sidebar-bg: #191939;--control-bg: #fffdf6;--result-bg: #fbf3d9;--result-line: #f0df9e}.app-shell[data-theme=harvest]{--bg: #f2eee7;--surface: #fffaf2;--surface-soft: #f8f1e5;--line: #e7ddcd;--line-strong: #d9c7aa;--text: #392f26;--muted: #75695d;--muted-2: #a29688;--accent: #c88635;--accent-dark: #8e5c25;--accent-soft: #f4e3c8;--danger: #b84d45;--shadow: 0 5px 24px rgba(73, 52, 28, .07), 0 1px 2px rgba(73, 52, 28, .04);--sidebar-bg: #354f60;--control-bg: #fffdf8;--result-bg: #f8efdf;--result-line: #ecdbbd}.app-shell[data-theme]{color:var(--text);background:var(--bg)}.app-shell[data-theme] .sidebar{background:var(--sidebar-bg)}.app-shell[data-theme] .brand-mark{background:var(--accent)}.app-shell[data-theme] .main-area{background:var(--bg)}.app-shell[data-theme] .topbar,.app-shell[data-theme] .panel,.app-shell[data-theme] .tip-card{background:var(--surface);border-color:var(--line)}.app-shell[data-theme] .measurement-input-wrap,.app-shell[data-theme] .copy-result-button{background:var(--surface);border-color:var(--line-strong)}.app-shell[data-theme] .select-wrap select,.app-shell[data-theme] .unit-select,.app-shell[data-theme] .precision-options,.app-shell[data-theme] .paste-panel textarea{background:var(--control-bg);border-color:var(--line)}.app-shell[data-theme] .select-wrap select,.app-shell[data-theme] .measurement-input,.app-shell[data-theme] .unit-select,.app-shell[data-theme] .table-input,.app-shell[data-theme] .paste-panel textarea{color:var(--text)}.app-shell[data-theme] .result-block{background:var(--result-bg);border-color:var(--result-line)}.app-shell[data-theme] .result-details,.app-shell[data-theme] .result-details>div+div,.app-shell[data-theme] .paste-panel,.app-shell[data-theme] .history-item,.app-shell[data-theme] .reset-row,.app-shell[data-theme] .example-preview,.app-shell[data-theme] .custom-scale-item{border-color:var(--result-line)}.app-shell[data-theme] .section-index,.app-shell[data-theme] .tip-icon,.app-shell[data-theme] .custom-scale-symbol,.app-shell[data-theme] .empty-icon,.app-shell[data-theme] .inline-form{background:var(--accent-soft)}.app-shell[data-theme] .section-index,.app-shell[data-theme] .tip-icon,.app-shell[data-theme] .custom-scale-symbol,.app-shell[data-theme] .eyebrow,.app-shell[data-theme] .text-button,.app-shell[data-theme] .icon-button:hover,.app-shell[data-theme] .swap-button{color:var(--accent)}.app-shell[data-theme] .button-primary,.app-shell[data-theme] .precision-option.selected{background:var(--accent);border-color:var(--accent)}.app-shell[data-theme] .button-primary:hover{background:var(--accent-dark);border-color:var(--accent-dark)}.app-shell[data-theme] .precision-option.selected{color:#fff}.app-shell[data-theme] .button-secondary{background:var(--surface);border-color:var(--line-strong);color:var(--accent)}.app-shell[data-theme] .button-secondary:hover,.app-shell[data-theme] .swap-button:hover{background:var(--accent-soft);border-color:var(--accent)}.app-shell[data-theme] .result-value,.app-shell[data-theme] .result-cell strong,.app-shell[data-theme] .history-math strong,.app-shell[data-theme] .example-preview strong{color:var(--accent-dark)}.app-shell[data-theme] .data-table{background:var(--surface)}.app-shell[data-theme] .table-scroll{border-color:var(--line)}.app-shell[data-theme] .data-table thead,.app-shell[data-theme] .data-table tbody tr:hover,.app-shell[data-theme] .result-cell{background:var(--surface-soft)}.app-shell[data-theme] .data-table td{border-color:var(--line)}.app-shell[data-theme] h1,.app-shell[data-theme] .panel-title-wrap h2,.app-shell[data-theme] .table-toolbar h3,.app-shell[data-theme] .paste-heading h3,.app-shell[data-theme] .setting-row strong,.app-shell[data-theme] .reset-row strong,.app-shell[data-theme] .custom-scale-item strong,.app-shell[data-theme] .empty-state>strong{color:var(--text)}.app-shell[data-theme] .page-heading p,.app-shell[data-theme] .panel-title-wrap p,.app-shell[data-theme] .field-label,.app-shell[data-theme] .table-toolbar p,.app-shell[data-theme] .paste-heading p,.app-shell[data-theme] .tip-card strong,.app-shell[data-theme] .setting-row p,.app-shell[data-theme] .reset-row p,.app-shell[data-theme] .history-route,.app-shell[data-theme] .history-math,.app-shell[data-theme] .formula-row strong,.app-shell[data-theme] .data-table td{color:var(--muted)}.app-shell[data-theme] .meta-chip,.app-shell[data-theme] .rows-count,.app-shell[data-theme] .storage-status{background:var(--accent-soft);border-color:var(--line);color:var(--accent)}.app-shell[data-theme] .storage-status strong,.app-shell[data-theme] .storage-status span{color:var(--text)}.app-shell[data-theme] .warning-note{background:var(--surface-soft);border-color:var(--line);color:var(--accent)}.app-shell[data-theme] .warning-note p,.app-shell[data-theme] .warning-note strong{color:var(--muted)}.app-shell[data-theme] .input-error,.app-shell[data-theme] .form-error,.app-shell[data-theme] .table-error,.app-shell[data-theme] .danger-text{color:var(--danger)}.app-shell[data-theme] .button-danger{color:var(--danger);border-color:var(--line);background:var(--surface)}.app-shell[data-theme] .toast{background:var(--sidebar-bg)}.app-shell[data-theme] .theme-option{background:var(--surface);border-color:var(--line);color:var(--text)}.app-shell[data-theme] .theme-option.selected,.app-shell[data-theme] .theme-option:hover{border-color:var(--accent)}.app-shell[data-theme=cosmic-tree] .sidebar{background:var(--sidebar-bg)}.app-shell[data-theme=cosmic-tree] .topbar,.app-shell[data-theme=cosmic-tree] .panel,.app-shell[data-theme=cosmic-tree] .tip-card,.app-shell[data-theme=cosmic-tree] .measurement-input-wrap,.app-shell[data-theme=cosmic-tree] .copy-result-button,.app-shell[data-theme=cosmic-tree] .button-secondary,.app-shell[data-theme=cosmic-tree] .table-scroll,.app-shell[data-theme=cosmic-tree] .theme-option{background:var(--surface);border-color:var(--line)}.app-shell[data-theme=cosmic-tree] .app-shell,.app-shell[data-theme=cosmic-tree] .main-area{background:var(--bg)}.app-shell[data-theme=cosmic-tree] .result-block,.app-shell[data-theme=cosmic-tree] .result-cell,.app-shell[data-theme=cosmic-tree] .data-table thead,.app-shell[data-theme=cosmic-tree] .data-table tbody tr:hover,.app-shell[data-theme=cosmic-tree] .select-wrap select,.app-shell[data-theme=cosmic-tree] .unit-select,.app-shell[data-theme=cosmic-tree] .precision-options,.app-shell[data-theme=cosmic-tree] .paste-panel textarea,.app-shell[data-theme=cosmic-tree] .inline-form,.app-shell[data-theme=cosmic-tree] .section-index,.app-shell[data-theme=cosmic-tree] .tip-icon,.app-shell[data-theme=cosmic-tree] .custom-scale-symbol,.app-shell[data-theme=cosmic-tree] .empty-icon,.app-shell[data-theme=cosmic-tree] .storage-status,.app-shell[data-theme=cosmic-tree] .warning-note{background:var(--surface-soft);border-color:var(--line)}.app-shell[data-theme=cosmic-tree] .measurement-input-wrap,.app-shell[data-theme=cosmic-tree] .copy-result-button,.app-shell[data-theme=cosmic-tree] .select-wrap select,.app-shell[data-theme=cosmic-tree] .unit-select,.app-shell[data-theme=cosmic-tree] .paste-panel textarea,.app-shell[data-theme=cosmic-tree] .table-input{color:var(--text)!important}.app-shell[data-theme=cosmic-tree] .button-primary,.app-shell[data-theme=cosmic-tree] .precision-option.selected{background:#2868c6;border-color:#2868c6}.app-shell[data-theme=cosmic-tree] .button-primary *,.app-shell[data-theme=cosmic-tree] .precision-option.selected *{color:#fff!important}.app-shell[data-theme=cosmic-tree] .eyebrow,.app-shell[data-theme=cosmic-tree] .text-button,.app-shell[data-theme=cosmic-tree] .result-value,.app-shell[data-theme=cosmic-tree] .result-cell strong,.app-shell[data-theme=cosmic-tree] .history-math strong,.app-shell[data-theme=cosmic-tree] .example-preview strong,.app-shell[data-theme=cosmic-tree] .storage-status{color:#91d2f4!important}.app-shell[data-theme=cosmic-tree] .section-index,.app-shell[data-theme=cosmic-tree] .tip-icon,.app-shell[data-theme=cosmic-tree] .custom-scale-symbol,.app-shell[data-theme=cosmic-tree] .empty-icon{color:#cba2ea!important}.app-shell[data-theme=cosmic-tree] .result-details,.app-shell[data-theme=cosmic-tree] .result-details>div+div,.app-shell[data-theme=cosmic-tree] .paste-panel,.app-shell[data-theme=cosmic-tree] .history-item,.app-shell[data-theme=cosmic-tree] .reset-row,.app-shell[data-theme=cosmic-tree] .example-preview,.app-shell[data-theme=cosmic-tree] .custom-scale-item,.app-shell[data-theme=cosmic-tree] .data-table td{border-color:var(--line)}.app-shell[data-theme=cosmic-tree] .theme-option.selected{box-shadow:0 0 0 2px #2868c6}.app-shell[data-theme=cosmic-tree] h1,.app-shell[data-theme=cosmic-tree] h2,.app-shell[data-theme=cosmic-tree] h3,.app-shell[data-theme=cosmic-tree] .breadcrumb,.app-shell[data-theme=cosmic-tree] .breadcrumb strong,.app-shell[data-theme=cosmic-tree] .local-status,.app-shell[data-theme=cosmic-tree] .page-heading p,.app-shell[data-theme=cosmic-tree] .panel-title-wrap h2,.app-shell[data-theme=cosmic-tree] .table-toolbar h3,.app-shell[data-theme=cosmic-tree] .paste-heading h3,.app-shell[data-theme=cosmic-tree] .setting-row strong,.app-shell[data-theme=cosmic-tree] .reset-row strong,.app-shell[data-theme=cosmic-tree] .custom-scale-item strong,.app-shell[data-theme=cosmic-tree] .empty-state>strong,.app-shell[data-theme=cosmic-tree] .data-table td,.app-shell[data-theme=cosmic-tree] .history-route,.app-shell[data-theme=cosmic-tree] .history-math,.app-shell[data-theme=cosmic-tree] .formula-row strong{color:var(--text)}.app-shell[data-theme=cosmic-tree] .panel-title-wrap p,.app-shell[data-theme=cosmic-tree] .table-toolbar p,.app-shell[data-theme=cosmic-tree] .paste-heading p,.app-shell[data-theme=cosmic-tree] .setting-row p,.app-shell[data-theme=cosmic-tree] .reset-row p,.app-shell[data-theme=cosmic-tree] .formula-row span,.app-shell[data-theme=cosmic-tree] .empty-state p,.app-shell[data-theme=cosmic-tree] .reference-status{color:var(--muted)}.app-shell[data-theme=cosmic-tree] .reference-status.status-active{color:#38764d}.app-shell[data-theme=cosmic-tree] .reference-status.status-replaced{color:#8b672b}.app-shell[data-theme=cosmic-tree] .reference-status.status-cancelled{color:#9b4545}.app-shell[data-theme=neon-bloom] .button-primary,.app-shell[data-theme=neon-bloom] .precision-option.selected{background:linear-gradient(110deg,#f42e5f,#ff7040 55%,#ff9848);border-color:#ff7040}.app-shell[data-theme=neon-bloom] .button-primary:hover{background:linear-gradient(110deg,#df2858,#f45e37 55%,#eac57b);border-color:#f45e37}.app-shell[data-theme=neon-bloom] .result-block{background:linear-gradient(125deg,#fff4f5,#fff8f0 55%,#fffbea);border-color:#f5d6c6}.app-shell[data-theme=neon-bloom] .result-value,.app-shell[data-theme=neon-bloom] .result-cell strong,.app-shell[data-theme=neon-bloom] .history-math strong,.app-shell[data-theme=neon-bloom] .example-preview strong{color:#e85a3b}.app-shell[data-theme=neon-bloom] .tip-icon,.app-shell[data-theme=neon-bloom] .rows-count{background:#fff0dc;color:#d66b2c}.app-shell[data-theme=neon-bloom] .meta-chip{background:#fff0dc;border-color:#f4d5a5;color:#bd6229}.app-shell[data-theme=neon-bloom] .section-index,.app-shell[data-theme=neon-bloom] .custom-scale-symbol{color:#8048ad}.app-shell[data-theme=neon-bloom] .theme-option.selected{box-shadow:0 0 0 2px #ff7040}@media(max-width:780px){.theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
