:root {
  --text: #202124;
  --muted: #5f6368;
  --line: #d9dce1;
  --blue: #0b57d0;
  --blue-soft: #e8f0fe;
  --green: #188038;
  --surface-soft: #f6f8fa;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: white; color: var(--text); font-family: var(--system); font-style: normal; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.trademark { font-size: .55em; line-height: 0; vertical-align: super; font-weight: 400; letter-spacing: 0; margin-left: 1px; }
main { width: 100%; max-width: 1200px; flex: 1; margin: auto; padding: clamp(46px, 7vw, 94px) clamp(22px, 5vw, 72px); display: grid; grid-template-columns: minmax(340px,.8fr) minmax(430px,1.2fr); align-items: center; gap: clamp(60px, 10vw, 140px); }
.access-card { max-width: 440px; }
.eyebrow { margin: 0 0 17px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .09em; }
h1 { margin: 0; font-size: clamp(40px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.048em; font-weight: 640; }
.intro { margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
form { margin-top: 34px; display: grid; gap: 9px; }
label { margin-top: 7px; color: #3c4043; font-size: 12px; font-weight: 600; }
input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid #bdc1c6; border-radius: 8px; background: white; color: var(--text); outline: 0; font: 14px/1 var(--system); }
input::placeholder { color: #9aa0a6; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,87,208,.12); }
button { height: 46px; margin-top: 13px; border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); color: white; cursor: pointer; font-weight: 600; }
button:hover { background: #0847ad; }button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(11,87,208,.2); outline-offset: 2px; }
.error { margin-top: 12px; padding: 11px 13px; border-radius: 7px; background: #fce8e6; color: #a50e0e; font-size: 12px; }
.access-note { margin: 18px 0 0; color: #80868b; font-size: 11px; line-height: 1.5; }
.public-demo-link { margin-top: 15px; display: inline-block; color: var(--blue); font-size: 12px; font-weight: 600; }
aside { min-width: 0; }
.sheet-preview { overflow: hidden; border: 1px solid #c7cbd1; border-radius: 13px; background: white; box-shadow: 0 18px 50px rgba(32,33,36,.12); }
.preview-title { height: 53px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 650; }.saved { color: var(--green); font-size: 9px; font-weight: 600; }
.formula { height: 43px; padding: 0 10px; display: grid; grid-template-columns: 42px 25px 1fr; align-items: center; gap: 6px; border-bottom: 1px solid #c7cbd1; }
.formula > span { height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #f8f9fa; font: 600 9px/1 var(--mono); }.formula b { color: var(--blue); font: 700 10px/1 var(--mono); }.formula code { min-width: 0; overflow: hidden; color: #3c4043; text-overflow: ellipsis; white-space: nowrap; font: 500 9px/1 var(--mono); }
.grid-head, .grid-row { display: grid; grid-template-columns: 34px repeat(3,1fr); }
.grid-head > *, .grid-row > * { min-width: 0; min-height: 37px; padding: 8px; display: flex; align-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; font-size: 9px; white-space: nowrap; }.grid-head > *:last-child, .grid-row > *:last-child { border-right: 0; }
.grid-head > *, .grid-row > span { justify-content: center; background: #f1f3f4; color: var(--muted); font-weight: 600; }.grid-row b { background: #f8f9fa; font-size: 9px; }.grid-row div { color: var(--muted); }
.grid-row.active > span { background: #dbe8fc; color: #174ea6; }.grid-row.active > div:last-child { position: relative; z-index: 1; background: #f8fbff; outline: 2px solid var(--blue); outline-offset: -2px; color: var(--text); font-weight: 600; }
.result-card { margin: 17px; padding: 15px; border-radius: 9px; background: var(--blue-soft); display: grid; gap: 5px; }.result-card small { color: #174ea6; font-size: 8px; font-weight: 700; letter-spacing: .07em; }.result-card > strong { font-size: 15px; }.result-card ul { list-style: none; margin: 7px 0 0; padding: 0; display: grid; gap: 1px; border: 1px solid #d2e3fc; border-radius: 6px; overflow: hidden; }.result-card li { padding: 8px 10px; display: flex; justify-content: space-between; background: white; font-size: 10px; }.result-card li b { color: var(--blue); font-family: var(--mono); font-size: 9px; }
aside > p { margin: 18px 8px 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
@media (max-width: 850px) { main { grid-template-columns: 1fr; }.access-card { max-width: 540px; margin: auto; }.sheet-preview, aside > p { display: none; } }
@media (max-width: 520px) { main { padding: 50px 22px; }h1 { font-size: 42px; } }
