
@font-face { font-family: Figtree; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/figtree-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/figtree-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/figtree-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/figtree-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/figtree-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: light;
  --ink: #152235;
  --muted: #4f5d70;
  --blue: #2f5fd6;
  --blue-dark: #1e46a8;
  --tint: #e8eefc;
  --tint-ink: #1e3a8a;
  --line: #e3e8ef;
  --line-strong: #cfd8e3;
  --field: #b8c4d3;
  --soft: #f5f7fb;
  --good: #1f7a4d;
  --bad: #b3261e;
  --warn: #a15c00;
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 24px;
  --s5: 40px;
  --s6: 48px;
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; background: var(--soft); }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
h1 { font-size: 24px; letter-spacing: -0.02em; }
h2 { font-size: 20px; letter-spacing: -0.02em; }
h3 { font-size: 18px; }
p { margin: var(--s1) 0 0; }
code { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #91b4ff; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.spaced { margin-top: var(--s5); }

.topbar { background: #fff; border-bottom: 1px solid var(--line); }
#view-home .topbar { background: #fff; }
.bar { max-width: 1120px; margin: 0 auto; padding: 0 var(--s4); min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.bar-app { flex-wrap: wrap; justify-content: flex-start; gap: var(--s1) var(--s4); }
.brand { display: flex; align-items: baseline; gap: var(--s1); text-decoration: none; color: var(--ink); }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.brand-name span { color: var(--blue); }
.brand-by { font-size: 13px; color: var(--muted); }
.bar-links { display: flex; align-items: center; gap: var(--s1); }
.link-plain { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.site-footer .bar { padding-top: var(--s3); padding-bottom: var(--s3); flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; gap: var(--s4); }
.footer-links a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--ink); background: var(--soft); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: var(--field); }
.btn-small { min-height: 44px; padding: 0 14px; border-color: var(--line-strong); font-size: 14px; font-weight: 600; }
.btn-danger { color: var(--bad); }
.btn-accent { color: var(--blue); }
.btn-large { min-height: 48px; font-size: 16px; }
.btn:disabled { cursor: not-allowed; opacity: 0.55; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s1); }
.link-button { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.link-accent { color: var(--blue); font-weight: 600; }
.link-button:disabled { cursor: default; }

.wrap { max-width: 1120px; margin: 0 auto; padding: var(--s5) var(--s4) var(--s6); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: var(--s4); }
.narrow { max-width: 720px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s3); }
.stack { display: flex; flex-direction: column; gap: var(--s1); }
label { font-weight: 700; font-size: 15px; }
input, select, textarea { font: inherit; color: var(--ink); }
.stack input:not([type="checkbox"]), .stack select, .stack textarea, .row-form input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 8px; background: #fff; font-size: 16px;
}
.stack textarea { padding: 12px 14px; resize: vertical; overflow-wrap: anywhere; }
.check { display: flex; gap: var(--s2); align-items: flex-start; font-weight: 400; min-height: 44px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.status { min-height: 1.5em; color: var(--muted); }
[role="status"][data-kind="error"] { color: var(--bad); font-weight: 600; }
[role="status"][data-kind="ok"] { color: var(--good); font-weight: 600; }
.notice { padding: var(--s2) var(--s3); border-radius: 10px; background: var(--tint); color: var(--tint-ink); }
.notice a { color: inherit; font-weight: 700; }
.banner { margin: 0 0 var(--s4); padding: var(--s2) 14px; border-radius: 10px; background: var(--tint); color: var(--tint-ink); line-height: 1.45; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: var(--s3); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s2); line-height: 1.45; }
.ticks li { display: flex; gap: 10px; }
.tick { flex: none; margin-top: 1px; }
.tick-good { color: var(--good); }
.tick-bad { color: var(--bad); }
.plain-steps { margin: 10px 0 0; padding-left: 20px; line-height: 1.7; }
.plain-list { margin: 10px 0 0; padding-left: 20px; line-height: 1.6; }
.plain-list li { margin-bottom: 6px; }

.hero { max-width: 1120px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); }
#view-home { background: #fff; }
.hero-text { flex: 1 1 420px; min-width: 0; }
.hero h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.lead { margin: var(--s3) 0 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.hero-actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.mock { flex: 1 1 400px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); padding: 20px; }
.mock-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 14px; height: 48px; color: var(--muted); }
.mock-search span { color: var(--ink); font-size: 16px; }
.mock-count { margin: 14px 2px 8px; font-size: 13px; color: var(--muted); }
.mock-list { display: flex; flex-direction: column; gap: var(--s1); }
.mock-row { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: var(--s2) 14px; display: flex; flex-direction: column; gap: 2px; }
.mock-row strong { font-size: 15px; }
.mock-row span { font-size: 13px; color: var(--muted); }
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { padding-top: var(--s5); padding-bottom: var(--s5); }
.band h2, .sees h2 { font-size: 26px; margin-bottom: 20px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s3); }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--blue); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin: var(--s2) 0 6px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.5; }
.sees { padding-top: var(--s5); padding-bottom: var(--s6); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s3); }
.two-col h3 { margin-bottom: var(--s2); font-size: 17px; }
.sees > p { margin-top: var(--s3); }

.guest { display: flex; flex-wrap: wrap; gap: var(--s5) 32px; align-items: flex-start; padding-top: var(--s5); }
.signin { flex: 1 1 400px; max-width: 460px; min-width: 0; padding: 28px; }
.signin h1 { font-size: 28px; }
#email-signin { margin-top: 22px; }
.code-input { font-size: 20px !important; letter-spacing: 0.2em; }
.link-row { margin-top: var(--s1); display: flex; flex-wrap: wrap; gap: 4px var(--s3); font-size: 15px; }
.or { display: flex; align-items: center; gap: var(--s2); margin: 18px 0; color: var(--muted); font-size: 14px; }
.or span { flex: 1; height: 1px; background: var(--line); }
#signin-link { width: 100%; }
.benefits { flex: 1 1 320px; min-width: 0; padding-top: var(--s1); }
.benefits h2 { margin-bottom: 14px; }
.benefits > p { margin-top: 18px; line-height: 1.5; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.tabs a:hover { background: var(--soft); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--tint); color: var(--tint-ink); font-weight: 700; }
.menu-button { display: none; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.menu-button:hover, .menu-button:focus-visible { background: var(--soft); }
.space-picker { display: flex; align-items: center; gap: var(--s1); font-size: 14px; }
.space-picker label { font-weight: 600; color: var(--muted); font-size: 14px; }
.space-picker select { min-height: 44px; max-width: 220px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.account { position: relative; display: flex; align-items: center; }
.account-button { min-height: 44px; display: flex; align-items: center; gap: var(--s1); padding: 0 12px; border: 1px solid var(--line); border-radius: 22px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--blue); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.account-email { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: var(--s1); box-shadow: 0 8px 24px rgb(21 34 53 / 12%); display: flex; flex-direction: column; }
.menu-email { margin: 0; padding: var(--s1) var(--s2); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.menu a, .menu button { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s2); border: 0; border-radius: 8px; background: none; font: inherit; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--soft); }
.app-main { padding-top: 28px; }

.searchbar { display: flex; flex-wrap: wrap; gap: 10px; }
.searchbox { flex: 1 1 360px; min-width: 0; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--field); border-radius: 10px; padding: 0 14px; height: 52px; color: var(--muted); }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 17px; background: transparent; }
.searchbox:focus-within { outline: 3px solid #91b4ff; outline-offset: 2px; }
.searchbar .btn { min-height: 52px; padding: 0 26px; }
#folder-setup-status { margin-top: var(--s1); font-size: 14px; }
.filters { margin-top: var(--s2); display: flex; flex-wrap: wrap; gap: var(--s1); align-items: center; }
.pill { min-height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 22px; background: #fff; font-size: 14px; }
.range { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s1); font-size: 14px; }
.range label { font-weight: 600; color: var(--muted); font-size: 14px; }
.sep { width: 1px; height: 24px; background: var(--line-strong); margin: 0 4px; }
.filters > label { font-weight: 600; color: var(--muted); font-size: 14px; }
.exact-chips { margin-top: var(--s1); }
#type-note:empty { display: none; }
.type-chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 22px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--tint); color: var(--tint-ink); font-weight: 600; }
.resultbar { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s1); }
.count { margin: 0; font-size: 15px; }
.sort { display: flex; align-items: center; gap: var(--s1); }
.sort label { font-size: 14px; color: var(--muted); font-weight: 400; }
#app-status { margin-top: var(--s1); }
.search-results { margin: var(--s2) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s1); }
.result-card { display: flex; gap: var(--s3); align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px var(--s3); }
.result-body { min-width: 0; flex: 1; }
.result-name { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.result-name mark { background: #fff1a8; color: inherit; border-radius: 3px; }
.result-path, .result-details, .result-snippet { margin: 3px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.result-found { margin: 4px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.result-actions { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s2); }
.type-badge { flex: none; width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #eef2f7; color: #475569; font-size: 12px; font-weight: 800; }
.type-badge[data-group="doc"] { background: var(--tint); color: var(--tint-ink); }
.type-badge[data-group="sheet"] { background: #e3f4ea; color: #1f6b43; }
.type-badge[data-group="slides"] { background: #fff0e0; color: #9a4b00; }
.type-badge[data-group="image"] { background: #f3e8ff; color: #6b2fa3; }
.load-more { margin-top: var(--s3); text-align: center; }

.row-form { margin-top: 14px; display: flex; flex-wrap: wrap; gap: var(--s1); }
.row-form input { flex: 1 1 240px; min-width: 0; min-height: 46px; padding: 0 12px; font-size: 15px; border: 1px solid var(--field); border-radius: 8px; }
.row-form .btn { min-height: 46px; }
#tasks .status { margin-top: var(--s2); white-space: pre-wrap; }
.task-list { margin: var(--s3) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.task-row { border-top: 1px solid var(--line); }
.task-row:first-child { border-top: 0; }
.task-main { padding: var(--s2) 0 var(--s1); }
.task-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.task-title { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.task-date { font-size: 14px; }
.task-row[data-state="done"] .task-title { color: var(--muted); text-decoration: line-through; }
.task-row[data-state="cancelled"] .task-title { color: var(--muted); text-decoration: line-through; }
.task-row[data-overdue="yes"] .task-date { color: #b42318; font-weight: 600; }
.task-notes { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.task-tools { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s1); }
.task-tools select, .task-tools input { min-height: 44px; padding: 0 10px; font-size: 15px; border: 1px solid var(--field); border-radius: 8px; background: #fff; }
.task-tools input { flex: 1 1 180px; min-width: 0; }
.task-actions { display: flex; flex-wrap: wrap; gap: var(--s1); padding: 0 0 var(--s2); }
.task-inline { padding: 0 0 var(--s2); }
.task-menu-wrap { position: relative; }
.task-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 6; min-width: 210px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: var(--s1); box-shadow: 0 8px 24px rgb(21 34 53 / 12%); display: flex; flex-direction: column; }
.task-menu button { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s2); border: 0; border-radius: 8px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.task-menu button:hover, .task-menu button:focus-visible { background: var(--soft); }
.task-menu .task-delete, .task-menu .task-delete-series { color: #b42318; }
.task-inline p { margin: 0 0 var(--s1); }
.task-form-edit { display: flex; flex-direction: column; gap: var(--s2); }
.task-field { display: flex; flex-direction: column; gap: 4px; font-weight: 400; flex: 1 1 160px; min-width: 0; }
.task-field-label { font-size: 14px; font-weight: 600; }
.task-field input, .task-field textarea, .task-field select { min-height: 44px; padding: 8px 10px; font-size: 15px; border: 1px solid var(--field); border-radius: 8px; background: #fff; font-family: inherit; }
.task-field-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.task-check-inline { display: flex; gap: var(--s1); align-items: center; font-weight: 400; min-height: 44px; }
.task-check-inline input { width: 22px; height: 22px; flex: none; }
.task-settings { margin-top: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s2); }
.task-settings summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
#tz-input { width: 100%; }
#usage h1 { margin-bottom: 18px; }
.card-title { font-size: 16px; color: var(--muted); font-weight: 600; }
.big { margin: var(--s1) 0 0; font-size: 30px; font-weight: 800; line-height: 1.2; }
.big.na { font-size: 18px; font-weight: 600; color: var(--muted); }
.big-note { font-size: 16px; font-weight: 600; color: var(--muted); }
.activity { margin-top: var(--s3); }
.activity h2 { font-size: 18px; margin-bottom: 6px; }
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-row { padding: var(--s2) 0; border-top: 1px solid #eef2f6; overflow-wrap: anywhere; }
.activity-row:first-child { border-top: 0; }

#connections h1 { margin-bottom: 18px; }
#connections h2 { font-size: 18px; margin-bottom: 10px; }
.pc-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s2); }
#connections .card { margin-top: var(--s2); }
.pc-card { margin-top: 0 !important; padding: 18px 20px; }
.pc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1); }
.pc-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-name { font-size: 18px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa6b5; flex: none; }
.dot[data-kind="ok"] { background: var(--good); }
.dot[data-kind="error"] { background: var(--warn); }
.pc-line { margin: 6px 0 0; font-size: 15px; }
.pc-part { margin-top: 14px; }
.pc-part > .pc-line { margin-top: 0; }
.pc-subhead { margin: 14px 0 4px; font-size: 14px; color: var(--muted); font-weight: 700; }
.confirm, .folder-confirm { margin: var(--s1) 0 0; color: var(--muted); font-size: 14px; }
.folder-row { display: flex; flex-wrap: wrap; gap: 4px var(--s2); align-items: center; justify-content: space-between; min-height: 44px; border-top: 1px solid #eef2f6; }
.folder-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.folder-button { flex: none; white-space: nowrap; }
.folder-confirm { flex: 1 0 100%; }
#telegram-connection p { line-height: 1.5; }
#telegram-connection .stack { margin-top: var(--s2); }
#telegram-connection .btn { margin-top: var(--s1); }

#help h1 { margin-bottom: var(--s3); }
#help .card { margin-top: var(--s3); }
#help h2 { margin-bottom: var(--s1); font-size: 20px; }
#help .stack { margin-top: var(--s3); }

#sca-connect-dialog { max-width: 32rem; width: calc(100% - 2rem); max-height: 90vh; overflow: auto; border-radius: 1rem; padding: 1.5rem; border: 1px solid #64748b; color: var(--ink); font: inherit; }
#sca-connect-dialog::backdrop { background: rgb(0 0 0 / 45%); }
#sca-connect-dialog h2 { margin-bottom: var(--s1); }
#sca-connect-form { display: grid; gap: 1rem; margin-top: 1rem; }
#sca-connect-form select { width: 100%; min-height: 44px; padding: .5rem .75rem; }
#sca-connect-form label { font-weight: 400; display: flex; gap: var(--s1); align-items: flex-start; }
#sca-connect-form label[for] { font-weight: 700; display: block; }
#sca-connect-form summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
#sca-connect-cancel { margin-top: var(--s2); }

.wordmark { color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; }
.wordmark span { color: var(--blue); }
.legal-draft { max-width: 820px; margin: 0 auto; padding: 44px 28px 88px; background: #fff; }
.draft-banner { margin: 34px 0 18px; padding: 13px 16px; border: 1px solid #f2c987; border-radius: 8px; background: #fff6e8; color: #754500; font-size: 0.9rem; font-weight: 750; }
.legal-title { font-size: clamp(2.5rem, 8vw, 4rem); letter-spacing: -0.065em; line-height: 1.05; }
.legal-draft p, .legal-draft li { color: var(--muted); line-height: 1.75; }
.legal-draft h2 { margin-top: 34px; }
.legal-draft code { padding: 2px 5px; border-radius: 4px; background: #eef2f7; }

@media (max-width: 720px) {
  .hero { padding-top: var(--s4); gap: var(--s4); }
  .hero h1 { font-size: 32px; }
  .wrap { padding-left: var(--s3); padding-right: var(--s3); }
  .bar { padding-left: var(--s3); padding-right: var(--s3); }
  .hero { padding-left: var(--s3); padding-right: var(--s3); }
  .tabs { order: 3; flex-basis: 100%; }
  .account { margin-left: auto; }
  .account-email { display: none; }
  .result-card { flex-direction: column; gap: var(--s1); }
  .signin { padding: var(--s4); }
  .btn-large, .searchbar .btn { width: 100%; }
}

@media (max-width: 640px) {
  .menu-button { display: inline-flex; }
  .tabs { display: none; flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: var(--s1); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .tabs.open { display: flex; }
  .tabs a { width: 100%; }
  .space-picker { flex: 1 1 100%; order: 4; }
}

.changes-card { margin-top: var(--s3); }
.stats { margin-top: var(--s2); display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s1); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: var(--s2) var(--s3); }
.stat-n { font-size: 26px; font-weight: 800; line-height: 1.2; }
.stat-label { font-size: 14px; }
.changes-card .btn { margin-top: var(--s2); }
.alert-banner { margin-top: var(--s3); padding: 14px var(--s3); border-radius: 12px; background: #fde8e6; border: 1px solid #f0c2bd; color: #5c1a14; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.alert-banner strong { color: #8a1f17; }
.alert-banner > div { flex: 1 1 260px; min-width: 0; }
.alert-banner .banner-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: var(--s2); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
#changes h1 { margin: 6px 0 0; }
.ch-limits { max-width: 800px; }
.ch-table-box { margin-top: var(--s2); overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ch-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.ch-table th { padding: 10px 14px; text-align: left; background: var(--soft); font-size: 13px; color: var(--muted); }
.ch-table td { padding: 12px 14px; vertical-align: top; border-top: 1px solid #eef2f6; overflow-wrap: anywhere; }
.ch-when { white-space: nowrap; }
.kind-chip { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--tint); color: var(--tint-ink); }
.kind-chip[data-kind="added"] { background: #e3f4ea; color: #1f6b43; }
.kind-chip[data-kind="deleted"] { background: #fde8e6; color: #9b2c22; }
.kind-chip[data-kind="renamed"] { background: #eef0f3; color: #3b4656; }
.kind-chip[data-kind="changed_same_date"] { background: #fff1d6; color: #7a4b00; }
.watch-mark { display: inline-block; margin-top: 2px; padding: 0 8px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line-strong); color: var(--muted); }
.ch-watch { margin-top: var(--s4); }
.watch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s2); min-height: 44px; border-top: 1px solid #eef2f6; font-weight: 400; }
.watch-row input { width: 22px; height: 22px; flex: none; }
@media (max-width: 720px) {
  .ch-table { min-width: 560px; }
}
.task-capture-slot:empty { display: none; }
.task-capture { margin: 0 0 var(--s1) 34px; }
.task-capture .link-button { min-height: 32px; text-decoration: underline; color: inherit; }
@media (max-width: 480px) { .task-capture { margin-left: 0; } }
.pc-reading { font-variant-numeric: tabular-nums; }

.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: var(--s2); }
.faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 var(--s3); font-weight: 600; }
.faq details > p { margin: 0; padding: 0 var(--s3) var(--s3); color: var(--muted); }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 12px; }
.faq-link { font-weight: 600; white-space: nowrap; }
.plan-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--s2); border-radius: 14px; background: var(--tint); color: var(--tint-ink); font-size: 13px; font-weight: 600; margin-right: var(--s2); }
#account .card { margin-top: var(--s3); }
#delete-confirm label { font-weight: 600; }
#delete-word { max-width: 240px; letter-spacing: 0.08em; }
@media (max-width: 600px) { .plan-badge { display: none; } }
.result-match { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--tint-ink); }
.result-match[data-match="inside"] { color: var(--good); }

.result-removed { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--bad); overflow-wrap: anywhere; }
.folder-delete { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 4px var(--s2); align-items: center; }
.result-actions .btn[disabled] { opacity: .55; cursor: not-allowed; }

.ask-log { margin: var(--s3) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s2); max-height: 60vh; overflow-y: auto; }
.ask-msg { max-width: 85%; padding: var(--s2) var(--s3); border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.ask-user { align-self: flex-end; background: var(--tint); color: var(--tint-ink); }
.ask-jerem { align-self: flex-start; background: var(--soft); border: 1px solid var(--line); }
.ask-pending { color: var(--muted); font-style: italic; }
.ask-link { overflow-wrap: anywhere; word-break: break-word; }
.ask-via { display: block; font-size: 12px; color: var(--muted); }
.ask-cost { display: block; margin-top: var(--s1); font-size: 12px; color: var(--muted); }
.ask-choices { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s1); }
.ask-form { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s1); align-items: flex-end; }
.ask-form textarea { flex: 1 1 240px; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 8px; background: #fff; font-size: 16px; resize: vertical; }
.ask-form .btn { min-height: 48px; }

.ask-file { margin-top: var(--s3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); }
.ask-file-name { display: inline-flex; align-items: center; max-width: 100%; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--tint); color: var(--tint-ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ask-file-remove { min-width: 44px; min-height: 44px; border: 0; border-radius: 22px; background: none; color: var(--ink); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.ask-file-remove:hover, .ask-file-remove:focus-visible { background: var(--soft); }
.ask-file-hint { flex: 1 1 100%; margin: 0; }
.ask-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s1); }
.ask-foot p { margin: 0; }
@media (max-width: 480px) { .ask-msg { max-width: 94%; } .ask-log { max-height: 50vh; } }

.ask-consent { display: flex; flex-direction: column; gap: var(--s1); margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--line); white-space: normal; }
.ask-consent-title { font-size: 16px; }
.ask-consent-text { color: var(--muted); font-size: 14px; }
.ask-sources { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--line); white-space: normal; }
.ask-sources-head { display: block; font-size: 14px; color: var(--muted); }
.ask-source-list { margin: var(--s1) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s2); }
.ask-source { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); min-width: 0; }
.ask-source-name { flex: 1 1 100%; font-weight: 600; overflow-wrap: anywhere; }
.ask-source-where { flex: 1 1 100%; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
#ask-settings-link { display: inline-flex; align-items: center; text-decoration: underline; }
#ask-settings-link[hidden] { display: none; }
#file-answers-card .task-check-inline span { font-weight: 600; }

.ask-handoff { margin: var(--s1) 0 0; font-weight: 600; }
.ask-handoff .link-button { min-height: 44px; margin-left: var(--s1); text-decoration: underline; color: var(--blue-dark); font-weight: 400; }
.back-ask { margin: 0 0 var(--s2); }
.back-ask a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--blue-dark); }
.task-new { padding: 0 var(--s2) var(--s1); outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 8px; background: var(--tint); }
.task-new-label { display: inline-block; margin: var(--s1) 0 0; padding: 2px 10px; border: 2px solid var(--blue-dark); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--blue-dark); background: #fff; }

.cc-tree, .cc-children { list-style: none; margin: 0; padding: 0; }
.cc-tree { margin-top: var(--s3); }
.cc-pc { margin-bottom: var(--s3); }
.cc-pc-name { font-size: 16px; color: var(--muted); margin-bottom: var(--s1); }
.cc-children { margin-left: var(--s4); }
.cc-pc > .cc-children { margin-left: 0; }
.cc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s2); min-height: 44px; border-top: 1px solid #eef2f6; }
.cc-check, .cc-type input { width: 22px; height: 22px; flex: none; }
.cc-arrow { width: 44px; height: 44px; flex: none; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; }
.cc-arrow:disabled { opacity: 0.4; cursor: not-allowed; }
.cc-file { padding-left: 44px; }
.cc-name { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.cc-size { white-space: nowrap; }
.cc-reason { flex-basis: 100%; color: var(--warn); }
.is-grey .cc-name, .is-grey .cc-size { color: var(--muted); }
.cc-more, .cc-empty { padding: var(--s1) 0 var(--s1) 44px; }
.cc-types-card { margin-bottom: var(--s4); }
.cc-types { display: flex; flex-direction: column; gap: var(--s1); margin-top: var(--s2); }
.cc-type-group { border-top: 1px solid #eef2f6; }
.cc-type-group:first-child { border-top: 0; }
.cc-type-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s3); }
.cc-type-list { display: flex; flex-wrap: wrap; gap: 0 var(--s4); padding: 0 0 var(--s2) 30px; }
.cc-type-list[hidden] { display: none; }
.cc-type { display: flex; align-items: center; gap: var(--s1); min-height: 44px; }
.cc-bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s4); padding: var(--s3); background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; }
@media (max-width: 480px) { .cc-children { margin-left: var(--s2); } .cc-bar .btn { width: 100%; } }

.cloud-open, .cloud-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s1); }
.cloud-none { align-self: center; }
.btn-quiet { background: transparent; color: var(--muted); }
.viewer-body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; margin: 0; background: #e9edf3; }
.viewer-head { display: flex; align-items: center; gap: var(--s3); min-height: 52px; padding: 4px var(--s3); background: #fff; border-bottom: 1px solid var(--line); }
.viewer-title { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 600; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); padding: var(--s1) var(--s3); background: #fff; border-bottom: 1px solid var(--line); }
.viewer-group { display: flex; align-items: center; gap: var(--s1); }
.viewer-find-group { flex: 1 1 260px; min-width: 0; }
.viewer-find { flex: 1 1 120px; min-width: 0; min-height: 44px; padding: 0 var(--s2); border: 1px solid var(--field); border-radius: 8px; background: #fff; }
.viewer-page-number { width: 64px; min-height: 44px; padding: 0 var(--s1); text-align: center; border: 1px solid var(--field); border-radius: 8px; background: #fff; }
.viewer-zoom { min-width: 64px; }
.viewer-download { margin-left: auto; }
.viewer-status { margin: var(--s3); text-align: center; }
.viewer-status:empty { display: none; }
.viewer-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--s2) 0; -webkit-overflow-scrolling: touch; }
.viewer-pages { display: flex; flex-direction: column; align-items: center; min-width: min-content; }
.viewer-page { position: relative; flex: none; background: #fff; box-shadow: 0 1px 4px rgba(21, 34, 53, 0.25); }
.viewer-page canvas { display: block; }
.viewer-marks { position: absolute; inset: 0; pointer-events: none; }
.viewer-mark { position: absolute; background: rgba(255, 214, 0, 0.4); mix-blend-mode: multiply; }
.viewer-mark.is-current { background: rgba(255, 140, 0, 0.55); outline: 2px solid #d96c00; }
.viewer-note { margin: 0; padding: var(--s1) var(--s3); background: #fff; border-top: 1px solid var(--line); text-align: center; }
@media (max-width: 480px) {
  .viewer-head { padding: 4px var(--s2); }
  .viewer-bar { gap: var(--s1) var(--s2); padding: var(--s1) var(--s2); }
  .viewer-find-group { flex-basis: 100%; }
  .viewer-download { margin-left: 0; }
}
@media (min-width: 900px) {
  .viewer-head, .viewer-bar { padding-left: var(--s4); padding-right: var(--s4); }
  .viewer-scroll { padding: var(--s3) 0; }
}
.viewer-bar .btn, .viewer-bar .viewer-find, .viewer-bar .viewer-page-number { min-width: 44px; min-height: 44px; }
.viewer-bar .viewer-zoom { min-width: 64px; }

.billing-test { margin: 0 0 var(--s2); padding: var(--s1) var(--s2); border-radius: 8px; background: var(--tint); color: var(--tint-ink); font-weight: 600; }
.billing-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s2); margin: var(--s3) 0; }
.billing-product { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3); border: 1px solid var(--line); border-radius: 12px; }
.billing-product p { margin: 0; }
.billing-price { font-size: 22px; font-weight: 800; }
.billing-product .btn { margin-top: auto; align-self: flex-start; }
#billing-receipts-h { margin: var(--s3) 0 var(--s1); font-size: 16px; }
.billing-receipts { list-style: none; margin: 0; padding: 0; }
.billing-receipt { display: flex; flex-direction: column; gap: 2px; padding: var(--s2) 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
@media (max-width: 480px) { .billing-product .btn { align-self: stretch; } }

.share-list { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.share-row { padding: var(--s2) 0; border-top: 1px solid #eef2f6; }
.share-row:first-child { border-top: 0; }
.share-name { overflow-wrap: anywhere; }
.share-people { margin: var(--s1) 0; padding-left: var(--s4); }
.share-file { font-weight: 600; overflow-wrap: anywhere; }
#share-dialog { max-width: 32rem; width: calc(100% - 2rem); max-height: 90vh; overflow: auto; border-radius: 1rem; padding: 1.5rem; border: 1px solid #64748b; color: var(--ink); font: inherit; }
#share-dialog::backdrop { background: rgb(0 0 0 / 45%); }
#share-dialog textarea { width: 100%; box-sizing: border-box; min-height: 88px; font: inherit; padding: var(--s1); }
.share-buttons { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
@media (max-width: 480px) { .share-buttons .btn { width: 100%; } }
.persona-box { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin: 0 0 var(--s3); }
.persona-box select { min-height: 44px; max-width: 100%; }
.persona-box p { flex-basis: 100%; margin: 0; }
.card-subtitle { margin: var(--s3) 0 var(--s1); font-size: 16px; }
#ask-credit-hint { margin: var(--s1) 0 0; }
