:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #1a2a25;
  background: #f5f8f6;
  --ink: #1a2a25; --muted: #4d635a; --line: #d9e4de;
  --forest: #123830; --button: #25614e; --white: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .62; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #329878; outline-offset: 2px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); letter-spacing: -.055em; line-height: 1.09; margin-bottom: .7rem; }
h2 { font-size: 1.35rem; letter-spacing: -.025em; margin-bottom: 0; }
.muted { color: var(--muted); line-height: 1.6; }
.eyebrow { font-weight: 750; font-size: .75rem; letter-spacing: .13em; }
.wordmark { display: flex; gap: .65rem; align-items: center; font-size: 1.55rem; font-weight: 750; letter-spacing: -.06em; }
.mark { display: inline-block; width: 1.65rem; height: 1.65rem; background: currentColor; border-radius: 75% 30% 75% 30%; transform: rotate(-16deg); }
.auth-shell { display: grid; grid-template-columns: minmax(18rem, .91fr) minmax(22rem, 1.09fr); min-height: 100svh; }
.brand-panel { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2rem, 6vw, 5.1rem); display: grid; align-content: space-between; gap: 5rem; background: var(--forest); color: #eafaf2; }
.brand-message { max-width: 33rem; padding-bottom: clamp(2rem, 12vh, 8rem); }
.brand-panel .eyebrow { color: #a3d8c1; }
.brand-heading { font-weight: 700; font-size: clamp(3.3rem, 7.2vw, 7.1rem); letter-spacing: -.075em; line-height: .93; margin-bottom: 1.6rem; }
.brand-message p:last-child { max-width: 24rem; line-height: 1.65; color: #d1e8de; margin-bottom: 0; }
.motif { position: absolute; z-index: -1; right: -8rem; bottom: -13rem; width: 34rem; aspect-ratio: 1; }
.motif i { inset: 0; position: absolute; border: 1px solid #417364; border-radius: 38% 62% 47% 53%; transform: rotate(-24deg); }
.motif i:nth-child(2) { inset: 1.3rem; }.motif i:nth-child(3) { inset: 2.6rem; }.motif i:nth-child(4) { inset: 4rem; }
.auth-panel { display: grid; place-items: center; padding: clamp(1.35rem, 6vw, 5rem); }
.auth-content { width: min(100%, 25rem); }
.tabs { display: inline-flex; gap: .3rem; background: #e8efeb; padding: .3rem; border-radius: 12px; margin-bottom: 2.15rem; }
.tabs button { border: 0; background: transparent; padding: .63rem .92rem; border-radius: 9px; font-weight: 650; }
.tabs button[aria-pressed=true] { background: #fff; box-shadow: 0 1px 4px #1435291e; }
form { display: grid; gap: 1rem; margin-top: 1.5rem; }
label { display: grid; gap: .45rem; font-weight: 620; }
input:not([type=range]):not([type=file]) { min-width: 0; width: 100%; background: #fff; border: 1px solid #b9ccc1; border-radius: 10px; padding: .72rem .85rem; }
.primary, .secondary, .provider-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; border-radius: 10px; border: 1px solid transparent; padding: .65rem 1rem; font-weight: 680; text-decoration: none; }
.primary { color: #fff; background: var(--button); }.primary:hover { background: #194c3b; }
.secondary, .provider-links a { background: var(--white); border-color: var(--line); color: var(--ink); }
.secondary:hover, .provider-links a:hover { background: #edf5ef; }
.hint, .feedback { margin: 0; font-size: .91rem; color: var(--muted); line-height: 1.45; }.feedback:empty { display: none; }.error { color: #9c322d; }
.divider { display: flex; align-items: center; gap: .9rem; margin: 1.3rem 0 .85rem; color: var(--muted); font-size: .9rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.provider-links { display: flex; flex-wrap: wrap; gap: .6rem; }.provider-links a { flex: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .85rem clamp(1rem, 5vw, 4rem); border-bottom: 1px solid var(--line); background: #fff; }
.topbar .wordmark { color: var(--forest); }.account { display: flex; align-items: center; gap: .8rem; color: var(--muted); }
.account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34vw; }
.workspace-content { width: min(calc(100% - 2rem), 65rem); margin: auto; padding: clamp(1.8rem, 6vw, 4.5rem) 0; }
.welcome { border: 1px solid #d5e6da; padding: clamp(1.3rem, 4vw, 2.9rem); border-radius: 24px; background: #eaf4ed; }
.welcome .eyebrow { color: #2e6452; }.welcome p:last-child { margin-bottom: 0; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin: 1rem 0 2.8rem; }
.actions button, .file-row { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 1rem; text-align: left; }
.actions button { display: grid; justify-items: start; gap: .48rem; }.actions button:hover, .file-row:hover { background: #eff6f1; border-color: #a6c2b0; }
.actions button span:last-child { font-size: .92rem; color: var(--muted); }.actions strong { font-size: 1.05rem; }
.file-icon { display: inline-grid; place-items: center; flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; border-radius: 11px; font-size: 1.45rem; }
.document { background: #e9ecfa; color: #394b95; }.spreadsheet { background: #e1f2e7; color: #256844; }.photo { background: #f7e8df; color: #904a2b; }
.section-heading, .editor-header { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .75rem; }
.search { width: min(14rem, 52%); }.files { padding: 0; margin: .65rem 0 0; list-style: none; display: grid; gap: .5rem; }
.file-row { display: flex; gap: .75rem; align-items: center; width: 100%; }.file-row strong { overflow-wrap: anywhere; min-width: 0; }.file-row time { margin-inline-start: auto; white-space: nowrap; color: var(--muted); font-size: .88rem; }
.back { border: 0; background: transparent; color: #22624c; padding: .5rem 0; margin-bottom: .5rem; font-weight: 700; }
.editor-actions { display: flex; gap: .5rem; }.file-title { font-size: clamp(1.1rem, 3.1vw, 1.65rem); font-weight: 720; }.editor-header label { min-width: 0; flex: 1; }
#editor-status { margin-bottom: .6rem; }
#editor-surface { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border: 0; font-family: inherit; }.ql-toolbar.ql-snow { border-bottom: 1px solid var(--line); }.ql-editor { min-height: 55vh; padding: clamp(1rem, 5vw, 3rem); font-size: 1rem; line-height: 1.65; }
.sheet-note { color: var(--muted); margin: 0; padding: .75rem 1rem; }.grid-wrap { overflow: auto; max-height: 67vh; }.sheet-grid { border-collapse: separate; border-spacing: 0; }.sheet-grid th { background: #e9f1ec; border: 1px solid var(--line); min-width: 2.55rem; padding: .45rem; }.sheet-grid thead th { position: sticky; top: 0; z-index: 2; }.sheet-grid tbody th { position: sticky; left: 0; z-index: 1; }
.sheet-grid td { border: 1px solid #e0e8e4; padding: 0; }.sheet-grid td input:not([type=range]):not([type=file]) { border: 0; border-radius: 0; width: 7rem; padding: .48rem; }.sheet-grid td input:focus-visible { outline-offset: -2px; }
.photo-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--line); }.photo-controls label { min-width: 8rem; }.photo-stage { display: grid; place-items: center; min-height: 17rem; background: #e6eeea; padding: 1rem; }.photo-stage canvas { max-width: 100%; max-height: 56vh; object-fit: contain; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  .auth-shell { grid-template-columns: 1fr; }.brand-panel { gap: 1.7rem; padding: 1.25rem; }.brand-message { padding: 0; }.brand-heading { font-size: clamp(2.6rem, 9vw, 4rem); margin-bottom: .72rem; }.brand-heading br { display: none; }.brand-message p:last-child { font-size: .94rem; }.motif { bottom: -22rem; }
  .auth-panel { padding: 1.6rem 1.15rem 2.2rem; }.tabs { margin-bottom: 1.4rem; }.actions { grid-template-columns: 1fr; gap: .55rem; }.actions button { grid-template-columns: auto 1fr; align-items: center; }.actions button .file-icon { grid-row: span 2; }.actions button span:last-child { grid-column: 2; }.editor-header { flex-wrap: wrap; }.editor-header label { flex-basis: 100%; }.file-row time { font-size: .8rem; }
}
