/* ExtractHelp Sheets, the free spreadsheet (pages/sheets/index.php, assets/js/sheets.js). */
.sh-wrap { width: 100%; max-width: 1720px; margin-inline: auto; padding-inline: clamp(12px, 2vw, 28px); }
.sh-top { padding-block: 18px 12px; background: var(--bg-soft); }
.sh-top__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 28px; }
.sh-crumbs { display: flex; gap: 8px; color: var(--muted); font-size: .85rem; }
.sh-crumbs a { color: inherit; }
.sh-title { margin: 6px 0 0; font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.15; letter-spacing: -.02em; color: var(--heading); }
.sh-lead { margin: 0; max-width: 62ch; color: var(--muted); font-size: .95rem; }
.sh-section { padding-block: 0 34px; background: linear-gradient(var(--bg-soft) 0 120px, transparent 120px); }

.sh { --sh-row: 34px; --sh-num: 54px; position: relative; display: flex; flex-direction: column; height: clamp(600px, calc(100vh - 150px), 1150px); border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }

/* Full-screen mode: the spreadsheet is the whole page, fixed like Google Sheets (no site header or footer). */
body.is-fs { overflow: hidden; }
.fs-main { height: 100vh; height: 100dvh; display: flex; }
.fs-main .sh { flex: 1; height: auto; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.sh-appbar__home { display: inline-flex; flex: none; border-radius: 8px; }
.sh-appbar__home:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sh-appbar { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px 8px 14px; border-block-end: 1px solid var(--line); background: var(--surface); }
.sh-appbar__mark { flex: none; width: 26px; height: 26px; border-radius: 50%; }
.sh-name { min-width: 0; }
.sh-name input { width: min(340px, 34vw); padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--heading); font: inherit; font-size: 1.02rem; font-weight: 700; text-overflow: ellipsis; }
.sh-name input:hover { border-color: var(--line); }
.sh-name input:focus { border-color: var(--focus); outline: none; background: var(--surface); }
.sh-saved { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.sh-saved.is-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.sh-saved.is-warn { color: #9A5B00; }
.sh-saved.is-warn::before { content: "!"; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #FFE8B5; color: #7A4700; font-size: .7rem; font-weight: 800; }
.sh-appbar__space { flex: 1; }
.sh-btn--ghost { color: var(--muted); border-color: var(--line); }
.sh-btn--ghost kbd, .sh-palette kbd { padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--bg-soft); color: var(--muted); font: 600 .72rem var(--font); }
.sh-btn--health { border-color: var(--line); }
.sh-btn--health[aria-pressed="true"] { background: var(--navy-soft); border-color: transparent; }
.sh-btn--health em { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand-orange); color: #fff; font-size: .72rem; font-style: normal; font-weight: 800; }
.sh-btn--dl { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.sh-btn--dl:hover, .sh-menu[open] > .sh-btn--dl { background: #0A2B85; border-color: #0A2B85; color: #fff; }
.sh-menu--end .sh-menu__list { inset-inline: auto 0; }
.sh-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 10px; border-block-end: 1px solid var(--line); background: var(--bg-soft); }
.sh-bar__sep { width: 1px; height: 22px; margin-inline: 4px; background: var(--line-strong); }
.sh-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--heading); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; list-style: none; white-space: nowrap; }
.sh-btn::-webkit-details-marker { display: none; }
.sh-btn .icon { width: 17px; height: 17px; }
.sh-btn .sh-btn__caret { width: 13px; height: 13px; opacity: .6; }
.sh-btn:hover, .sh-menu[open] > .sh-btn { background: var(--surface); border-color: var(--line-strong); }
.sh-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.sh-btn--main { background: var(--surface); border-color: var(--line-strong); }
.sh-btn--accent { margin-inline-start: auto; background: var(--btn-bg); color: var(--btn-text); }
.sh-btn--accent:hover { background: var(--btn-bg-hover); border-color: transparent; }
.sh-menu { position: relative; }
.sh-menu__list { position: absolute; inset-block-start: calc(100% + 4px); inset-inline-start: 0; z-index: 30; min-width: 230px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: 0 14px 34px rgba(5, 28, 94, .16); }
.sh-menu__list button { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: .9rem; text-align: start; cursor: pointer; }
.sh-menu__list button:hover, .sh-menu__list button:focus-visible { background: var(--navy-soft); color: var(--heading); outline: none; }
.sh-menu__list small { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.sh-menu__list hr { margin: 5px 2px; border: 0; border-block-start: 1px solid var(--line); }
.sh-note { margin: 0; padding: 9px 14px; border-block-end: 1px solid var(--line); background: var(--accent-soft); color: var(--text); font-size: .9rem; }
.sh-note.is-error { background: var(--danger-soft); color: var(--danger); }
.sh-note button { margin-inline-start: 8px; padding: 0; border: 0; background: none; color: var(--heading); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

.sh-main { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.sh.has-panel .sh-main { grid-template-columns: minmax(0, 1fr) 330px; }
.sh-grid { position: relative; height: 100%; min-height: 0; overflow: auto; background: var(--bg-soft); outline: none; }
.sh-grid:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.sh-sizer { position: relative; min-width: 100%; }
.sh-head { position: sticky; inset-block-start: 0; z-index: 5; display: flex; height: 58px; background: var(--surface-2); border-block-end: 1px solid var(--line-strong); }
.sh-corner, .sh-num { position: sticky; inset-inline-start: 0; z-index: 4; flex: none; width: var(--sh-num); background: var(--surface-2); border-inline-end: 1px solid var(--line-strong); color: var(--muted); font-size: .76rem; }
.sh-corner { z-index: 6; border: 0; border-inline-end: 1px solid var(--line-strong); cursor: pointer; }
.sh-num { display: flex; align-items: center; justify-content: center; border: 0; border-inline-end: 1px solid var(--line-strong); border-block-end: 1px solid var(--line); cursor: pointer; font: inherit; font-size: .76rem; }
.sh-num.is-sel { background: var(--navy-strong); color: #fff; }
.sh-col { position: relative; flex: none; display: grid; grid-template-rows: 20px 1fr; align-content: start; padding: 4px 8px 5px; border-inline-end: 1px solid var(--line); cursor: pointer; min-width: 0; text-align: start; background: none; border-block: 0; border-inline-start: 0; font: inherit; color: inherit; }
.sh-col.is-sel { background: var(--navy-soft); box-shadow: inset 0 -3px 0 var(--navy-strong); }
.sh-col__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--muted); font-size: .7rem; }
.sh-col__type { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px 0 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--heading); font-size: .68rem; line-height: 17px; white-space: nowrap; }
.sh-col__type .icon { width: 11px; height: 11px; color: var(--accent-text); }
.sh-col__top > span:first-child { margin-inline-end: auto; }
.sh-col__menu { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; color: var(--muted); opacity: 0; transition: opacity .15s, background-color .15s; }
.sh-col__menu .icon { width: 12px; height: 12px; }
.sh-col:hover .sh-col__menu, .sh-col.is-sel .sh-col__menu { opacity: 1; }
.sh-col__menu:hover { background: var(--surface); color: var(--heading); }
.sh-col__name { overflow: hidden; color: var(--heading); font-weight: 700; font-size: .88rem; white-space: nowrap; text-overflow: ellipsis; }
.sh-col__grip { position: absolute; inset-block: 0; inset-inline-end: -4px; width: 8px; cursor: col-resize; z-index: 2; }
.sh-body { position: relative; }
.sh-row { position: absolute; inset-inline-start: 0; display: flex; height: var(--sh-row); background: var(--surface); }
.sh-row.is-odd { background: color-mix(in srgb, var(--bg-soft) 55%, var(--surface)); }
.sh-row:hover .sh-cell:not(.is-active) { background-color: color-mix(in srgb, var(--navy-soft) 55%, transparent); }
.sh-cell { flex: none; overflow: hidden; padding: 0 8px; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); color: var(--text); font-size: .88rem; line-height: calc(var(--sh-row) - 1px); white-space: nowrap; text-overflow: ellipsis; cursor: cell; }
.sh-cell.is-active { position: relative; z-index: 1; box-shadow: inset 0 0 0 2px var(--accent); background: var(--surface); }
.sh-cell.is-match { background: #FFF1C2; color: #1B2645; }
.sh-cell.is-match-cur { background: #FFD45C; color: #1B2645; box-shadow: inset 0 0 0 2px #E8A200; }
.sh.is-frozen .sh-cell.is-frozen, .sh.is-frozen .sh-col.is-frozen { position: sticky; inset-inline-start: var(--sh-num); z-index: 3; background: var(--surface); box-shadow: 4px 0 6px -4px rgba(3, 15, 54, .18); }
.sh.is-frozen .sh-col.is-frozen { z-index: 6; background: var(--surface-2); }
.sh-cell.is-colsel, .sh-row.is-sel .sh-cell { background: var(--navy-soft); }
.sh-cell.is-dup { background: var(--danger-soft); }
.sh-cell.hl-yellow { background: #FFF3BF; color: #1B2645; } .sh-cell.hl-green { background: #D3F9D8; color: #1B2645; } .sh-cell.hl-blue { background: #D0EBFF; color: #1B2645; } .sh-cell.hl-pink { background: #FFDEEB; color: #1B2645; }
.sh-cell.is-notfound { color: var(--muted); font-style: italic; }
.sh-edit { position: absolute; z-index: 8; margin: 0; padding: 0 7px; border: 2px solid var(--accent); border-radius: 0; background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; outline: none; }
.sh-empty { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 24px; color: var(--muted); text-align: center; background: var(--bg-soft); }
.sh-empty[hidden] { display: none; }
.sh-empty { z-index: 7; }
.sh.is-blank .sh-fx { display: none; }
.sh-empty__title { margin: 0; color: var(--heading); font-size: 1.4rem; font-weight: 750; letter-spacing: -.015em; }
.sh-start { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 12px; margin-block-start: 18px; }
.sh-start__card { display: grid; justify-items: center; gap: 4px; padding: 20px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); font: inherit; font-size: .84rem; text-align: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .18s, border-color .18s, box-shadow .18s; }
.sh-start__card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.sh-start__card:focus-visible, .sh-start__card:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.sh-start__card b { color: var(--heading); font-size: .98rem; }
.sh-start__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-block-end: 6px; border-radius: 12px; background: var(--navy-soft); color: var(--brand-navy); }
.sh-start__icon .icon { width: 20px; height: 20px; }
.sh-start__card--hl { border-color: color-mix(in srgb, var(--brand-orange) 45%, var(--line)); }
.sh-start__card--hl .sh-start__icon { background: var(--grad-accent); color: #04133F; }
.sh-start__blank { margin-block-start: 14px; padding: 4px; border: 0; background: none; color: var(--accent-text); font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sh-empty p { margin: 0; max-width: 46ch; }
.sh-empty__go { margin-block-start: 12px; pointer-events: auto; }
.sh-grid.is-drop { box-shadow: inset 0 0 0 3px var(--accent); }
.sh-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; min-height: 34px; padding: 4px 8px 4px 14px; border-block-start: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); font-size: .8rem; }
.sh-foot p { margin: 0; }
.sh-foot__col { flex: 1; text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-foot__keys { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.sh-foot__keys:hover { background: var(--surface); color: var(--heading); }
.sh-foot__keys .icon { width: 13px; height: 13px; }

/* Formula bar, find bar, filter bar */
.sh-fx { display: flex; align-items: stretch; min-height: 34px; border-block-end: 1px solid var(--line); background: var(--surface); }
.sh-fx__ref { display: grid; place-items: center; flex: none; min-width: 64px; padding: 0 8px; border-inline-end: 1px solid var(--line); color: var(--muted); font: 650 .78rem var(--font-mono); }
.sh-fx__input { flex: 1; min-width: 0; padding: 0 12px; border: 0; background: none; color: var(--text); font: inherit; font-size: .9rem; }
.sh-fx__input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--accent); }
.sh-fx__input:disabled { background: none; }
.sh-find { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 10px; border-block-end: 1px solid var(--line); background: #FFFBEA; }
:root[data-theme="dark"] .sh-find { background: rgba(255, 212, 92, .08); }
.sh-find[hidden], .sh-find__rep[hidden], .sh-filter[hidden] { display: none; }
.sh-find > .icon { width: 16px; height: 16px; color: var(--muted); }
.sh-find input[type="search"], .sh-find input[type="text"] { width: 220px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; }
.sh-find input:focus { outline: 2px solid var(--focus); outline-offset: 0; }
.sh-find__count { min-width: 76px; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.sh-find__rep { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sh-find__opt { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; }
.sh-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--heading); cursor: pointer; }
.sh-ico:hover { background: var(--surface-2); }
.sh-ico .icon { width: 16px; height: 16px; }
.sh-ico .icon.is-up { transform: rotate(180deg); }
.sh-find .sh-ico:last-child { margin-inline-start: auto; }
.sh-filter { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 14px; border-block-end: 1px solid var(--line); background: var(--navy-soft); color: var(--heading); font-size: .88rem; font-weight: 600; }
.sh-filter > .icon { width: 16px; height: 16px; color: var(--brand-navy); }
.sh-filter span { flex: 1; min-width: 0; }

/* List health panel */
.sh-panel { display: flex; flex-direction: column; min-height: 0; border-inline-start: 1px solid var(--line); background: var(--surface); animation: sh-panel-in .22s cubic-bezier(.2, .7, .2, 1); }
.sh-panel[hidden] { display: none; }
@keyframes sh-panel-in { from { opacity: 0; transform: translateX(14px); } }
.sh-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 8px 16px; }
.sh-panel__head h2 { margin: 0; color: var(--heading); font-size: 1.02rem; }
.sh-panel__body { flex: 1; min-height: 0; overflow: auto; padding: 4px 16px 18px; }
.sh-h__score { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--bg-soft); }
.sh-h__ring { --p: 0; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--success) calc(var(--p) * 1%), var(--line) 0); }
.sh-h__ring b { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--bg-soft); color: var(--heading); font-size: .92rem; font-variant-numeric: tabular-nums; }
.sh-h__score p { margin: 0; color: var(--muted); font-size: .84rem; }
.sh-h__score .sh-h__big { color: var(--heading); font-size: .98rem; font-weight: 700; }
.sh-h__list { list-style: none; display: grid; gap: 8px; margin: 14px 0 0; padding: 0; }
.sh-h__item { padding: 12px; border: 1px solid var(--line); border-radius: 12px; border-inline-start: 3px solid var(--brand-orange); }
.sh-h__item.is-check { border-inline-start-color: #E8A200; }
.sh-h__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sh-h__top b { color: var(--heading); font-size: .92rem; }
.sh-h__count { padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .76rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sh-h__item p { margin: 4px 0 8px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.sh-h__go { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-h__go .sh-btn { min-height: 30px; padding: 0 10px; border-color: var(--line-strong); font-size: .82rem; }
.sh-h__go .sh-btn--fix { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.sh-h__go .sh-btn--fix:hover { background: #0A2B85; }
.sh-h__comp { margin-block-start: 18px; }
.sh-h__comp h3 { margin: 0 0 8px; color: var(--heading); font-size: .9rem; }
.sh-h__bar { display: grid; grid-template-columns: minmax(0, 1fr) 90px 38px; align-items: center; gap: 8px; padding-block: 3px; font-size: .8rem; }
.sh-h__bar span { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.sh-h__bar i { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.sh-h__bar em { display: block; height: 100%; border-radius: 99px; background: var(--success); }
.sh-h__bar em.is-low { background: #E8A200; }
.sh-h__bar small { color: var(--muted); text-align: end; font-variant-numeric: tabular-nums; }
.sh-h__note, .sh-h__empty { margin: 16px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }

/* Column menu and command search */
.sh-colmenu { position: absolute; z-index: 40; min-width: 240px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-float); }
.sh-colmenu[hidden] { display: none; }
.sh-colmenu button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: .88rem; text-align: start; cursor: pointer; }
.sh-colmenu button:hover, .sh-colmenu button:focus-visible { background: var(--navy-soft); color: var(--heading); outline: none; }
.sh-colmenu button.is-danger { color: var(--danger); }
.sh-colmenu hr { margin: 5px 2px; border: 0; border-block-start: 1px solid var(--line); }
.sh-palette { width: min(560px, calc(100vw - 24px)); margin-block-start: 12vh; padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-panel); }
.sh-palette::backdrop { background: rgba(3, 15, 54, .45); }
.sh-palette[open] { animation: sh-pop .16s ease-out; }
@keyframes sh-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.sh-palette__in { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-block-end: 1px solid var(--line); }
.sh-palette__in .icon { width: 18px; height: 18px; color: var(--muted); }
.sh-palette__in input { flex: 1; min-width: 0; border: 0; background: none; color: var(--heading); font: inherit; font-size: 1rem; outline: none; }
.sh-palette__list { list-style: none; max-height: min(52vh, 420px); overflow: auto; margin: 0; padding: 6px; }
.sh-palette__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--text); font-size: .92rem; cursor: pointer; }
.sh-palette__list li.is-on { background: var(--navy-soft); color: var(--heading); }
.sh-palette__list small { color: var(--muted); font-size: .76rem; }
.sh-palette__none { color: var(--muted) !important; cursor: default !important; }
.sh-keys { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: .9rem; }
.sh-keys dt { color: var(--heading); font-weight: 700; white-space: nowrap; }
.sh-keys dd { margin: 0; color: var(--muted); }

.sh-dialog { width: min(560px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(3, 15, 54, .35); }
.sh-dialog::backdrop { background: rgba(3, 15, 54, .5); }
.sh-dialog form { display: grid; gap: 14px; padding: 22px; }
.sh-dialog h2 { margin: 0; font-size: 1.15rem; color: var(--heading); }
.sh-dialog__body { display: grid; gap: 12px; max-height: 62vh; overflow: auto; }
.sh-dialog__body label { display: grid; gap: 5px; font-size: .88rem; font-weight: 600; color: var(--heading); }
.sh-dialog__body p { margin: 0; color: var(--muted); font-size: .88rem; }
.sh-dialog__body .sh-check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); }
.sh-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; }
.sh-progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.sh-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

.sh-what { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px 34px; }
.sh-what h2 { margin: 0 0 6px; font-size: 1.05rem; color: var(--heading); }
.sh-what p { margin: 0; color: var(--muted); }
.sh-faq { margin-block-start: 40px; max-width: 820px; }
.sh-faq h2 { font-size: 1.3rem; color: var(--heading); }
.sh-faq details { border-block-end: 1px solid var(--line); padding-block: 12px; }
.sh-faq summary { color: var(--heading); font-weight: 700; cursor: pointer; }
.sh-faq p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 720px) {
  .sh-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sh-btn--main span, .sh-btn--accent span { position: static; width: auto; height: auto; clip-path: none; }
  .sh-foot__keys, .sh-foot__col, .sh-saved, .sh-btn--ghost, .sh-bar__sep { display: none; }
  .sh-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sh-bar .sh-menu__list { position: fixed; inset-block-start: auto; }
  .sh-btn--accent { margin-inline-start: 0; }
  .sh { height: clamp(520px, calc(100vh - 120px), 900px); }
  .sh-name input { width: 44vw; }
  .sh-start { grid-template-columns: minmax(0, 1fr); width: min(320px, 100%); }
  .sh-start__card { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: start; padding: 12px 14px; column-gap: 12px; }
  .sh-start__icon { grid-row: span 2; margin: 0; }
  .sh-find input[type="search"], .sh-find input[type="text"] { width: 150px; }
}

@media (max-width: 1100px) { .sh.has-panel .sh-main { grid-template-columns: minmax(0, 1fr); } .sh-panel { position: absolute; inset: 0 0 0 auto; z-index: 20; width: min(340px, 92%); box-shadow: var(--shadow-panel); } }
@media (prefers-reduced-motion: reduce) { .sh-progress i, .sh-start__card { transition: none; } .sh-panel, .sh-palette[open] { animation: none; } }

/* Google Drive (assets/js/sheets-drive.js) */
.sh-btn--drive.is-on { color: var(--accent-text); }
.sh-btn--drive.is-on .icon { color: #1fa463; }
.sh-drive { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 30px 70px -20px rgba(5, 28, 94, .45); overflow: auto; }
.sh-drive::backdrop { background: rgba(3, 12, 40, .5); }
.sh-drive__head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 12px 20px; }
.sh-drive__head > div { flex: 1; min-width: 0; }
.sh-drive__head h2 { margin: 0; font-size: 1.15rem; }
.sh-drive__head p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.sh-drive__logo { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #e8f5ee, #e7effd); color: #1a73e8; }
.sh-drive__logo .icon { width: 22px; height: 22px; }
.sh-drive__off, .sh-drive__on { display: grid; gap: 14px; padding: 4px 20px 20px; }
.sh-drive__off[hidden], .sh-drive__on[hidden] { display: none; }
.sh-drive__points { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.sh-drive__points li { display: flex; gap: 10px; align-items: flex-start; }
.sh-drive__points .icon { flex: none; width: 17px; height: 17px; margin-block-start: 2px; color: #1fa463; }
.sh-drive__bar { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-drive__msg { min-height: 1.2em; margin: 0; color: var(--muted); font-size: .85rem; }
.sh-drive__msg.is-error { color: var(--danger, #c0392b); font-weight: 600; }
.sh-drive__files { display: grid; gap: 6px; max-height: 340px; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.sh-drive__files li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.sh-drive__files li.is-current { border-color: #F86219; background: var(--accent-soft); }
.sh-drive__info { display: grid; flex: 1; min-width: 0; }
.sh-drive__info b { overflow: hidden; color: var(--heading); font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.sh-drive__info small { color: var(--muted); font-size: .78rem; }
.sh-drive__del { color: var(--danger, #c0392b); }
.sh-drive__empty { justify-content: center; color: var(--muted); font-size: .88rem; border-style: dashed !important; }
