
@font-face { font-family:"Newsreader"; font-style:normal; font-weight:400; font-display:swap; src:url(/fonts/newsreader-latin-400.woff2) format("woff2"); }

:root { color-scheme:light dark; --canvas:#f5f2e8; --paper:#f5f2e8; --ink:#1c1f1c; --moss:#3d5947; --ink2:rgba(28,31,28,.64); --ink3:rgba(28,31,28,.45); --line:rgba(28,31,28,.1); --fill:rgba(28,31,28,.05); --warn:#915500; --warn-fill:rgba(145,85,0,.08); --danger:#c4352b; --danger-fill:#c4352b; --lift:0 1px 2px rgba(28,31,28,.05),0 6px 20px rgba(28,31,28,.05); --sans:-apple-system,BlinkMacSystemFont,system-ui,"Helvetica Neue",sans-serif; --serif:"Newsreader","New York",ui-serif,Georgia,serif; }
@media (prefers-color-scheme: dark) { :root { --canvas:#161816; --paper:#1f221f; --ink:#ecebe4; --moss:#8fb39b; --ink2:rgba(236,235,228,.62); --ink3:rgba(236,235,228,.45); --line:rgba(236,235,228,.12); --fill:rgba(236,235,228,.06); --warn:#f0b35a; --warn-fill:rgba(240,179,90,.1); --danger:#ff6b5e; --danger-fill:#c93a32; --lift:none; } }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--canvas); color:var(--ink); font:400 17px/22px var(--sans); -webkit-font-smoothing:antialiased; text-wrap:pretty; }
main { max-width:440px; margin:0 auto; padding:max(40px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 48px max(20px,env(safe-area-inset-left)); }

main.wide { max-width:600px; }

main.solo { min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; justify-content:center; max-width:400px; padding-bottom:max(64px,env(safe-area-inset-bottom)); }

main.solo .icon { width:56px; height:56px; margin-bottom:22px; }
h1.serif { margin:0 0 10px; font:400 36px/42px var(--serif); letter-spacing:-.012em; }
a { color:var(--moss); text-decoration:none; }
a:hover { text-decoration:underline; }
:focus-visible { outline:2px solid var(--moss); outline-offset:3px; }
h1 { margin:0 0 8px; font:700 28px/34px var(--sans); letter-spacing:-.02em; }:where(:root:lang(zh-Hans)) h1{font-weight:600}
h2 { margin:28px 0 8px; padding:0 16px; font:600 13px/18px var(--sans); letter-spacing:.02em; text-transform:uppercase; color:var(--ink2); }:where(:root:lang(zh-Hans)) h2{font-weight:500}
p { margin:0 0 14px; color:var(--ink2); }
p strong { color:var(--ink); font-weight:600; }:where(:root:lang(zh-Hans)) p strong{font-weight:500}
small, .fine { font-size:13px; line-height:18px; color:var(--ink2); }
.fine { margin:20px 0 0; }

.fine a { text-decoration:underline; text-underline-offset:3px; }
.center { text-align:center; }
.vh { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }


.brand { display:flex; width:fit-content; align-items:center; gap:8px; margin:0 0 32px; color:var(--ink); }
a.brand:hover { text-decoration:none; }
.brand img { width:28px; height:28px; display:block; }
.brand svg { height:13px; width:62px; fill:currentColor; display:block; }
.icon { display:block; width:64px; height:64px; margin:0 auto 20px; filter:drop-shadow(0 2px 6px rgba(28,31,28,.12)); }
.pair { display:flex; align-items:center; justify-content:center; gap:14px; margin:0 0 20px; }
.pair .icon { width:56px; height:56px; margin:0; }

.pair .agent { width:70px; height:70px; margin:-7px; }
.monogram { width:56px; height:56px; border-radius:14px; display:grid; place-items:center; background:var(--paper); border:1px solid var(--line); box-shadow:var(--lift); font:600 26px/1 var(--sans); color:var(--ink); }:where(:root:lang(zh-Hans)) .monogram{font-weight:500}
.dots { display:flex; gap:5px; }
.dots i { width:5px; height:5px; border-radius:50%; background:var(--ink3); }


button, .button { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:44px; margin:12px 0 0; padding:10px 20px; border-radius:999px; border:1px solid var(--line); background:var(--paper); color:var(--ink); font:600 17px/22px var(--sans); text-align:center; text-decoration:none; cursor:pointer; -webkit-tap-highlight-color:transparent; }:where(:root:lang(zh-Hans)) button,:where(:root:lang(zh-Hans)) .button{font-weight:500}
.button:hover { text-decoration:none; }
:is(button, .button):not(.primary, .apple):hover:not(:disabled) { background:color-mix(in srgb, var(--ink) 5%, var(--paper)); }
:is(button, .button).primary:hover:not(:disabled) { opacity:.88; }
button.apple:hover:not(:disabled) { background:#f2f2f2; }
button:active, .button:active { opacity:.8; }
button.primary { background:var(--ink); border-color:var(--ink); color:var(--canvas); }
button.quiet { background:transparent; border-color:transparent; color:var(--ink2); font-weight:400; }

button.destructive { color:var(--danger); }
a.button.quiet { border-color:transparent; background:transparent; color:var(--ink2); font-weight:400; }
form { margin:0; }

.signin { display:grid; grid-template-columns:minmax(0,1fr); grid-auto-rows:1fr; gap:10px; margin:28px 0 0; container-type:inline-size; }
.signin button { height:100%; min-height:48px; margin:0; }
.signin + .fine { margin-top:22px; }


button.apple { gap:6px; padding:0 16px; background:#fff; border:1px solid #747775; color:#000; font-size:15px; line-height:20px; font-weight:500; letter-spacing:-.01em; }:where(:root:lang(zh-Hans)) button.apple{font-weight:400}
button.apple svg { width:10.6px; height:38.8px; flex:none; fill:currentColor; }
button.apple span { padding:8px 0; }


button.google { position:relative; gap:10px; padding:0 12px; background:#fff; border:1px solid #747775; color:#1f1f1f; }
button.google img { width:20px; height:20px; flex:none; }
button.google .label { display:flex; flex-wrap:wrap; justify-content:center; gap:2px 3px; min-width:0; }
button.google svg { height:auto; fill:currentColor; }
button.google svg:nth-child(1) { width:42.2px; max-width:calc(100% * 42.2 / 49.2); aspect-ratio:42.2/20; }
button.google svg:nth-child(2) { width:28.6px; max-width:calc(100% * 28.6 / 49.2); aspect-ratio:28.6/20; }
button.google svg:nth-child(3) { width:49.2px; max-width:100%; aspect-ratio:49.2/20; }
@container (width < 182px) { button.google .label { width:74px; padding:8px 0; } }
@container (width < 130px) { button.google .label { width:49.2px; } }

.dev { margin:28px 0 0; padding:16px 0 0; border-top:1px solid var(--line); }
.dev button { margin-top:0; font-size:15px; font-weight:500; }:where(:root:lang(zh-Hans)) .dev button{font-weight:400}
.dev p { margin:8px 0 0; text-align:center; line-height:18px; }


.card { background:var(--paper); border:1px solid var(--line); border-radius:16px; box-shadow:var(--lift); padding:4px 16px; margin:0; }
.card p { margin:12px 0; }

.row { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:4px 12px; min-height:48px; padding:11px 0; border-top:1px solid var(--line); }
.row:first-child { border-top:none; }

a.row { color:inherit; text-decoration:none; }
.row > * { min-width:0; overflow-wrap:break-word; }
.row > div:first-child { flex:1 1 10em; }
.row > span:last-child:not(:first-child) { color:var(--ink2); text-align:right; }
.row small { display:block; margin-top:2px; }
.row form { flex:none; }
.row button, .row .button, .under .button { flex:0 1 auto; width:auto; max-width:100%; min-height:36px; margin:0; padding:6px 14px; font-size:15px; }
.row button, .row .button { white-space:nowrap; }


h1 + .card { margin-top:20px; }
.me { display:flex; align-items:center; gap:14px; padding:14px 16px; }
.me > div { min-width:0; overflow-wrap:anywhere; font-weight:600; }:where(:root:lang(zh-Hans)) .me > div{font-weight:500}
.me small { display:block; margin-top:2px; font-weight:400; }
.avatar { flex:none; width:48px; height:48px; display:block; color:var(--ink3); }
.avatar .face { fill:var(--paper); }


.row.agent { display:grid; grid-template-columns:32px minmax(0,1fr) auto; column-gap:12px; }
.row.agent > .about { grid-column:2; }
.row.agent code { margin-left:6px; font:500 13px/18px ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--ink2); }:where(:root:lang(zh-Hans)) .row.agent code{font-weight:400}

.mark { grid-column:1; width:32px; height:32px; display:grid; place-items:center; overflow:hidden; border-radius:8px; background:var(--canvas); border:1px solid var(--line); font:600 15px/1 var(--sans); color:var(--ink); }:where(:root:lang(zh-Hans)) .mark{font-weight:500}

.mark.icon-mark { background:none; border:none; overflow:visible; }
.mark.icon-mark img { width:40px; height:40px; margin:-4px; display:block; }
.row.agent > .button { grid-column:3; }

.editor { display:flex; min-width:0; flex-direction:column; gap:8px; }
.mark-pick { all:unset; grid-column:1; position:relative; display:grid; place-items:center; border-radius:9px; cursor:pointer; transition:box-shadow .12s; }
.mark-pick:hover { box-shadow:0 0 0 2px var(--paper), 0 0 0 3.5px var(--line); }
.mark-pick:hover .mark { filter:brightness(.94); }
.mark-pick:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
dialog.faces-sheet { width:min(420px, calc(100% - 32px)); }
fieldset.faces { margin:0; padding:20px; border:0; min-width:0; }
fieldset.faces legend { float:left; width:100%; padding:0; margin:0 0 14px; color:var(--ink); font-size:17px; font-weight:600; }:where(:root:lang(zh-Hans)) fieldset.faces legend{font-weight:500}
fieldset.faces small { display:block; margin:6px 0 0; color:var(--ink2); }

.face-picks { clear:both; display:flex; flex-wrap:wrap; gap:8px; margin:0 0 6px; }
.editor .face-pick { margin:0; position:relative; display:block; width:40px; height:40px; border-radius:9px; cursor:pointer; }
.face-pick input { position:absolute; opacity:0; pointer-events:none; }
.face-pick img, .face-pick .face-none { display:grid; place-items:center; width:40px; height:40px; box-sizing:border-box; border-radius:9px; }
.face-pick .face-none { background:var(--fill); color:var(--ink2); font:600 17px/1 var(--sans); }:where(:root:lang(zh-Hans)) .face-pick .face-none{font-weight:500}
.face-pick::after { content:""; position:absolute; inset:0; border-radius:9px; box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 12%,transparent); pointer-events:none; }
.face-pick:has(input:checked) { box-shadow:0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.face-pick:has(input:focus-visible) { outline:2px solid var(--ink); outline-offset:6px; }
.mark.icon-mark.pic img { width:32px; height:32px; margin:0; border-radius:8px; outline:1px solid var(--line); outline-offset:-1px; }
.editor .line { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.editor .line button { flex:none; }

.editor .line code.address { flex:1 1 12ch; margin:0; align-self:center; font-size:13px; line-height:18px; color:var(--ink2); }
.editor label { margin:6px 0 -2px; font-size:13px; line-height:18px; color:var(--ink2); }
.editor input { flex:1; min-width:0; min-height:36px; padding:0 12px; border-radius:8px; border:1px solid var(--line); background:var(--canvas); color:var(--ink); font:400 15px/22px var(--sans); }
.editor textarea { min-height:264px; padding:8px 12px; border-radius:8px; border:1px solid var(--line); background:var(--canvas); color:var(--ink); font:400 15px/22px var(--sans); resize:vertical; }
.editor p, .editor small { margin:0; font-size:13px; line-height:18px; color:var(--ink2); }
.editor button { width:auto; min-height:36px; margin:0; padding:6px 14px; font-size:15px; }
.editor button:disabled { opacity:.4; cursor:default; }
.editor button.remove { align-self:flex-start; }
.editor label:first-child { margin-top:0; }

@media (pointer: coarse) { .row button, .row .button, .under .button, .editor button, .editor input, .choices button, .choices .button, .bar .button { min-height:44px; } }

@media (max-width: 360px) {
  .me { flex-direction:column; align-items:flex-start; gap:8px; }
  .row.agent { grid-template-columns:minmax(0,1fr); }
  .row.agent > .mark, .row.agent > .about, .row.agent > .button { grid-column:1; }
  .row.agent > .mark { margin-bottom:6px; }
  .row.agent > .button { justify-self:start; margin-top:8px; }
  .row > span:last-child:not(:first-child) { text-align:left; }
  .under { flex-direction:column; }
  .under .button { width:100%; }
}
.button.destructive, button.destructive { color:var(--danger); }

.under { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin:8px 0 0; }
p.warn + .card, h2 + p.warn { margin-top:0; }
h2 + p.warn { margin-bottom:8px; }

.card.data { margin-top:28px; }
.signout { margin-top:28px; }
.address { font:500 15px/20px ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--ink); overflow-wrap:anywhere; user-select:all; }:where(:root:lang(zh-Hans)) .address{font-weight:400}
[hidden] { display:none !important; }

.whole { display:inline-block; max-width:100%; }


label.scope { display:grid; grid-template-columns:22px 1fr; gap:12px; padding:14px 0; border-top:1px solid var(--line); color:var(--ink); cursor:pointer; }
label.scope:first-child { border-top:none; }
label.scope input { width:20px; height:20px; margin:1px 0 0; accent-color:var(--moss); }
label.scope b { font-weight:600; }:where(:root:lang(zh-Hans)) label.scope b{font-weight:500}
label.scope span { display:block; margin-top:3px; color:var(--ink2); font-size:15px; line-height:20px; }
.warn { color:var(--warn); }
p.warn { background:var(--warn-fill); border-radius:12px; padding:12px 14px; overflow-wrap:anywhere; }
.who { margin:20px 0 0; text-align:center; }

.word { display:inline-block; max-width:100%; overflow-wrap:anywhere; }
.actions { margin:20px 0 0; }
.actions button { margin-top:10px; }


form.routine, form.review, form.email-agent, form.device-code { display:flex; flex-direction:column; gap:8px; margin:12px 0 0; }
form.review, form.email-agent { margin-top:28px; }
form.review + p.warn { margin-top:16px; }

.msg ~ p.warn { margin-top:16px; }

.why:not([hidden]) ~ form.email-agent { margin-top:4px; }
form.routine input, form.review input, form.email-agent input, form.device-code input { min-height:44px; padding:0 14px; border-radius:12px; border:1px solid var(--line); background:var(--paper); color:var(--ink); font:400 17px/22px var(--sans); }
form.routine button, form.review button, form.email-agent button, form.device-code button { margin:4px 0 0; }

.key { display:flex; flex-direction:column; gap:8px; margin:0; }
.key .warn, .key .cmd { margin:0; }
.key .cmd code { word-break:break-all; }

form.device-code input { font:600 20px/24px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.08em; text-align:center; text-transform:uppercase; }:where(:root:lang(zh-Hans)) form.device-code input{font-weight:500}
form.routine ol.steps { margin:8px 0 0; }

form.email-agent label { margin:8px 0 -2px; font-size:15px; line-height:20px; color:var(--ink2); }
form.email-agent small { margin:-2px 0 0; font-size:13px; line-height:18px; color:var(--ink2); }
.tiles { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; margin:20px 0 0; }
@media (max-width: 340px) { .tiles { grid-template-columns:minmax(0,1fr); } }
.tile { display:grid; justify-items:center; gap:10px; padding:20px 12px; border-radius:16px; background:var(--paper); border:1px solid var(--line); box-shadow:var(--lift); color:var(--ink); font-weight:600; }:where(:root:lang(zh-Hans)) .tile{font-weight:500}
.tile:hover { text-decoration:none; border-color:var(--ink3); }
.tile:last-child:nth-child(odd) { grid-column:1 / -1; }
.tile img, .tile .mono { width:52px; height:52px; border-radius:13px; }
.mono { display:grid; place-items:center; background:var(--canvas); border:1px solid var(--line); font:600 20px/1 ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--ink); }:where(:root:lang(zh-Hans)) .mono{font-weight:500}
ol.steps { margin:0 0 4px; padding:0 0 0 22px; color:var(--ink); }
ol.steps li { margin:0 0 8px; }
a.button.primary { background:var(--ink); border-color:var(--ink); color:var(--canvas); }
.cmd { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:6px 0 0; padding:8px 8px 8px 12px; border-radius:10px; background:var(--paper); border:1px solid var(--line); }
.cmd code { flex:1 1 16em; min-width:0; font:500 13px/18px ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--ink); overflow-wrap:anywhere; user-select:all; }:where(:root:lang(zh-Hans)) .cmd code{font-weight:400}
.cmd code.path { overflow-wrap:normal; }
.cmd button { flex:none; width:auto; min-height:44px; margin:0; padding:10px 14px; font-size:15px; }

.msg { --sent:#0071e3; --behind:var(--canvas); position:relative; z-index:0; margin:10px 0 0; }
.msg > p { position:relative; width:fit-content; max-width:88%; margin:0 7px 0 auto; padding:8px 15px 9px 13px; border:1px solid transparent; border-radius:20px; background:var(--sent); color:#fff; overflow-wrap:anywhere; white-space:pre-line; user-select:all; }
.msg p::selection, .msg p ::selection { background:rgba(255,255,255,.32); color:#fff; }
.msg > p::before { content:""; position:absolute; z-index:-1; bottom:-1px; right:-8px; width:28px; height:20px; border-bottom-right-radius:2px; background:var(--sent); }
.msg > p::after { content:""; position:absolute; z-index:-1; bottom:1px; right:-11px; width:10px; height:20px; background:var(--behind); border-bottom-left-radius:10px; }

@media (max-width: 300px) { .msg > p { max-width:none; padding-left:11px; padding-right:11px; } }

@media (forced-colors: active) { .msg > p::before, .msg > p::after { display:none; } }

.chat { --chat-bg:#070707; --chat-sent:#0071e3; --chat-got:#1f1f1f; --chat-field:#212121; --chat-go:#0177f1; }
.chat-grok { --chat-bg:#151515; --chat-sent:#5c5c5c; --chat-got:#212121; --chat-field:#383838; --chat-go:#fff; }

.chat-grok .chat-field { color:#aeaeb2; }

.chat-grok-mac { --chat-bg:#131313; --chat-sent:#3d3d3d; --chat-got:#1c1c1c; --chat-field:#1d1d1d; --chat-go:#fff; }
.chat-grok-mac .chat-app { border-radius:14px; }
.chat-grok-mac .chat-field { color:#aeaeb2; box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.chat-grok-mac .chat-field .in { color:#aeaeb2; }
.chat-lights { display:flex; gap:5px; padding:4px 0 0 2px; }
.chat-lights i { width:9px; height:9px; border-radius:50%; background:#ff5f57; }
.chat-lights i + i { background:#febc2e; }
.chat-lights i + i + i { background:#28c840; }
.chat-note { justify-self:center; display:flex; align-items:center; gap:5px; margin:0; font-size:12px; line-height:16px; color:#8e8e93; }
.chat-note svg { width:12px; height:12px; }
.chat-links { margin:6px 0 0; padding:0; list-style:none; }
.chat-links li { display:flex; align-items:center; gap:6px; margin:2px 0 0; }
.chat-links svg { flex:none; width:14px; height:14px; color:#8e8e93; }
.chat-imessage { --chat-bg:#000; --chat-got:#3a3a3c; --chat-field:#1c1c1e; }
.chat-dot { --chat-bg:#020202; --chat-sent:#336af0; --chat-got:#212121; }

.chat-duet { --chat-bg:#f8f8f6; --chat-sent:#f4cbb7; --chat-field:#fff; --chat-go:#141413; }
.chat-duet .chat-app, .chat-duet .chat-sent { color:#20201e; }
.chat-duet .chat-btn { background:#fff; box-shadow:0 1px 4px #00000014; }
.chat-duet .chat-field { color:#62625e; box-shadow:inset 0 0 0 1px #e4e4df; }
.chat-duet .chat-field .in { color:#20201e; }
.chat-duet .chat-go i { width:14px; height:14px; border-radius:0; background:linear-gradient(90deg,#fff 0 2px,transparent 2px 4px,#fff 4px 6px,transparent 6px 8px,#fff 8px 10px,transparent 10px 12px,#fff 12px 14px); }
.chat-tabs { display:flex; justify-content:space-around; margin-top:10px; padding:8px; border:1px solid #e4e4df; border-radius:22px; color:#454542; font:600 12px/16px -apple-system,BlinkMacSystemFont,system-ui,"Helvetica Neue",sans-serif; }:where(:root:lang(zh-Hans)) .chat-tabs{font-weight:500}
.chat-tabs span { padding:2px 8px; border-radius:16px; }
.chat-tabs span:first-child { background:#e9e9e6; }
.chat-app { padding:12px 12px 10px; border:1px solid var(--line); border-radius:26px; background:var(--chat-bg); color:#fff; font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif; }
.chat svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.chat-top { display:grid; grid-template-columns:40px minmax(0,1fr) 40px; align-items:start; margin:0 0 14px; }
.chat-btn { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:#1c1c1e; box-shadow:inset 0 0 0 1px rgba(255,255,255,.1); }
.chat-who { display:grid; justify-items:center; gap:4px; min-width:0; font:600 14px/18px -apple-system,system-ui,sans-serif; text-align:center; }:where(:root:lang(zh-Hans)) .chat-who{font-weight:500}
.chat-who img { display:block; width:56px; height:56px; border-radius:50%; background:#fff; object-fit:cover; }
.chat-who img.dot { background:none; border-radius:0; width:44px; height:44px; margin:8px 0 6px; transform:scale(1.68); }
.chat-pill { display:inline-flex; align-items:center; gap:8px; justify-self:center; max-width:100%; min-height:40px; padding:5px 16px 5px 5px; border-radius:20px; background:#262626; box-shadow:inset 0 0 0 1px rgba(255,255,255,.1); font:600 16px/20px -apple-system,system-ui,sans-serif; }:where(:root:lang(zh-Hans)) .chat-pill{font-weight:500}
.chat-pill img { flex:none; width:30px; height:30px; border-radius:50%; }
.chat-name { position:relative; padding:2px 10px; white-space:nowrap; border-radius:11px; background:#2c2c2e; font-size:12px; line-height:18px; }
.chat-face { display:block; width:46px; height:46px; border-radius:50%; overflow:hidden; background:#fff; }
.chat-face img { display:block; width:100%; height:100%; transform:scale(1.2); }
.chat-imessage .chat-btn { background:none; box-shadow:none; color:#0a84ff; }
.chat-body { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
.chat-sent, .chat-got { margin:0; padding:9px 14px 10px; border:1px solid transparent; border-radius:20px; color:#fff; font-size:16px; line-height:21px; overflow-wrap:anywhere; }
.chat-sent { justify-self:end; max-width:86%; background:var(--chat-sent); white-space:pre-line; user-select:all; }
.chat-got { justify-self:start; max-width:80%; background:var(--chat-got); }
.chat-got u { text-underline-offset:3px; }
.chat-card { justify-self:start; display:flex; flex-wrap:wrap; align-items:center; gap:12px; width:80%; padding:10px 14px 10px 10px; border:1px solid transparent; border-radius:16px; background:var(--chat-got); }
.chat-card .tile { flex:none; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; box-shadow:none; border-radius:10px; background:#3a3a3c; font:600 13px/1 -apple-system,system-ui,sans-serif; color:#c7c7cc; }:where(:root:lang(zh-Hans)) .chat-card .tile{font-weight:500}
.chat-card > span:nth-child(2) { flex:1 1 0; min-width:0; overflow-wrap:anywhere; }

.chat-card-button { flex:1 0 100%; padding:6px 0; border-radius:999px; background:#545456; color:#fff; text-align:center; font:500 15px/20px -apple-system,system-ui,sans-serif; }:where(:root:lang(zh-Hans)) .chat-card-button{font-weight:400}
.chat-card .tile.white { background:#fff; color:#1c1c1e; }
.chat-card .tile.white svg { width:24px; height:24px; }
.chat-card b { display:block; font:600 15px/20px -apple-system,system-ui,sans-serif; }:where(:root:lang(zh-Hans)) .chat-card b{font-weight:500}
.chat-card small { display:block; font-size:13px; line-height:18px; color:#8e8e93; }
.chat-bar { display:flex; align-items:center; gap:8px; margin:14px 0 0; }
.chat-plus { flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:#1c1c1e; box-shadow:inset 0 0 0 1px rgba(255,255,255,.1); font:300 24px/1 -apple-system,system-ui,sans-serif; }
.chat-field { flex:1; display:flex; align-items:center; gap:8px; min-width:0; height:40px; padding:0 5px 0 14px; border-radius:20px; background:var(--chat-field); color:#8e8e93; font-size:16px; }
.chat-field .ph { flex:1; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.chat-field .in { margin-left:-4px; color:#fff; font:300 24px/1 -apple-system,system-ui,sans-serif; }
.chat-go { flex:none; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--chat-go); }
.chat-go i { width:10px; height:10px; border-radius:2px; background:#fff; }
.chat-grok .chat-go i, .chat-grok-mac .chat-go i { width:12px; height:12px; border-radius:0; background:linear-gradient(90deg,#000 0 2px,transparent 2px 5px,#000 5px 7px,transparent 7px 10px,#000 10px 12px); }
.chat-app + .msg-actions { margin-top:14px; }

@media (max-width: 300px) { .chat-btn, .chat-plus, .chat-lights, .chat-field svg, .chat-go, .chat-card .tile, .chat-tabs { display:none; } .chat-top { grid-template-columns:minmax(0,1fr); } .chat-sent, .chat-got, .chat-card { max-width:none; width:auto; }
  .chat-app { padding:8px 6px; border-radius:18px; } .chat-sent, .chat-got { padding-left:10px; padding-right:10px; } .card.pad .chat { margin-left:-10px; margin-right:-10px; } }

.grok-routine { margin:12px 0 0; padding:12px 14px 14px; border:1px solid var(--line); border-radius:14px; background:#131313; color:#e5e5e5; font:400 13px/18px -apple-system,BlinkMacSystemFont,system-ui,sans-serif; }
.grok-routine svg { flex:none; width:14px; height:14px; fill:none; stroke:#8e8e93; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.gr-head { display:grid; grid-template-columns:20px minmax(0,1fr) 20px; align-items:center; margin:0 0 4px; text-align:center; font-weight:600; }:where(:root:lang(zh-Hans)) .gr-head{font-weight:500}
.gr-head b { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-weight:600; }:where(:root:lang(zh-Hans)) .gr-head b{font-weight:500}
.grok-routine small { display:block; margin:10px 0 4px; font-size:12px; line-height:16px; color:#8e8e93; }
.gr-when { display:flex; align-items:center; gap:6px; }
.gr-row { display:grid; grid-template-columns:52px minmax(0,1fr); align-items:center; gap:8px; margin:6px 0 0; }
.gr-row > span { color:#8e8e93; }
.gr-row code { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; padding:5px 8px; border-radius:7px; background:#1c1c1c; color:#e5e5e5; font:400 12px/16px ui-monospace,Menlo,monospace; }
.gr-row.pick code { box-shadow:0 0 0 2px #8fb39b; }

@media (max-width: 300px) { .chat-links svg, .gr-head svg { display:none; } .chat-note { display:block; text-align:center; } .chat-note svg { display:inline; margin:0 3px; vertical-align:-1px; }
  .gr-head { grid-template-columns:minmax(0,1fr); } .gr-head b { white-space:normal; } .gr-row { grid-template-columns:minmax(0,1fr); gap:2px; } }
.msg code { display:inline-block; max-width:100%; font:500 14px/20px ui-monospace,SFMono-Regular,Menlo,monospace; }:where(:root:lang(zh-Hans)) .msg code{font-weight:400}
.msg-actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 0; }
.msg-actions button { flex:1 1 7em; margin:0; font-size:15px; }
.msg-actions button[hidden] { display:none; }

.gpt { margin:6px 0 4px; border-radius:12px; background:var(--paper); border:1px solid var(--line); overflow:hidden; }
.gpt svg { display:block; width:100%; height:auto; }

@media (max-width: 300px) { .gpt svg { width:144%; margin-left:-44%; } }
.gpt text { font-family:var(--sans); fill:var(--ink); }
.gpt .h { font-size:20px; font-weight:700; letter-spacing:-.01em; }:where(:root:lang(zh-Hans)) .gpt .h{font-weight:600}
.gpt .m { font-size:13px; }
.gpt .b { font-weight:600; }:where(:root:lang(zh-Hans)) .gpt .b{font-weight:500}
.gpt .dim { font-size:12px; fill:var(--ink3); }
.gpt .url { font-size:10.5px; fill:var(--ink2); text-anchor:middle; }
.gpt .chrome { fill:var(--canvas); }
.gpt .rule { stroke:var(--line); }
.gpt .search { fill:none; stroke:var(--line); }
.gpt .bar, .gpt .open, .gpt .hl, .gpt .lights { fill:var(--line); }
.gpt .add, .gpt .tile, .gpt .field { fill:var(--fill); }
.gpt .tile { stroke:var(--line); }
.gpt .glyph { fill:none; stroke:var(--ink2); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.gpt .chev { stroke:var(--ink); }
.gpt .sheet-bg { fill:var(--paper); stroke:var(--line); }
.gpt .menu { filter:drop-shadow(0 6px 14px rgba(0,0,0,.14)); }
.gpt .ring { fill:none; stroke:var(--moss); stroke-width:2; opacity:0; transform-box:fill-box; transform-origin:center; }
.gpt .pointer path { fill:#111; stroke:#fff; stroke-width:1.2; stroke-linejoin:round; }
.gpt .pointer { transform:translate(303px,158px); }
@media (prefers-reduced-motion: no-preference) {
  .gpt .pointer, .gpt .press, .gpt .menu, .gpt .open, .gpt .hl, .gpt .ring { animation-duration:7s; animation-delay:-.56s; animation-iteration-count:2; }
  .gpt .pointer { animation-name:gpt-pointer; }
  .gpt .press { animation-name:gpt-press; transform-box:fill-box; transform-origin:0 0; }
  .gpt .menu { animation-name:gpt-menu; }
  .gpt .open { animation-name:gpt-open; }
  .gpt .hl { animation-name:gpt-hl; }
  .gpt .ring.one { animation-name:gpt-ring-one; }
  .gpt .ring.two { animation-name:gpt-ring-two; }
}
@keyframes gpt-pointer {
  0% { transform:translate(303px,158px); opacity:1; }
  5% { transform:translate(303px,158px); opacity:0; }
  6% { transform:translate(190px,150px); opacity:0; }
  12% { transform:translate(190px,150px); opacity:1; }
  26%, 38% { transform:translate(305px,41px); }
  54%, 100% { transform:translate(303px,158px); opacity:1; }
}
@keyframes gpt-press { 0%, 27%, 33%, 55%, 61%, 100% { transform:none; } 29%, 58% { transform:scale(.86); } }
@keyframes gpt-menu { 0%, 35%, 100% { opacity:1; transform:none; } 5%, 30% { opacity:0; transform:translateY(-4px); } }
@keyframes gpt-open { 0%, 30%, 100% { opacity:1; } 5%, 27% { opacity:0; } }
@keyframes gpt-hl { 0%, 54%, 100% { opacity:1; } 5%, 50% { opacity:0; } }
@keyframes gpt-ring-one { 0%, 28% { opacity:0; transform:scale(.4); } 29% { opacity:.8; transform:scale(.4); } 37%, 100% { opacity:0; transform:scale(1.8); } }
@keyframes gpt-ring-two { 0%, 57% { opacity:0; transform:scale(.4); } 58% { opacity:.8; transform:scale(.4); } 66%, 100% { opacity:0; transform:scale(1.8); } }


ol.steps + ol.steps, .button + ol.steps, .form + ol.steps, .gpt + ol.steps, .cmd + ol.steps, .msg + ol.steps, .key + ol.steps { margin-top:20px; }
.form { margin:6px 0 4px; border-radius:12px; background:var(--paper); border:1px solid var(--line); }
.field { padding:10px 12px; border-top:1px solid var(--line); }
.field:first-child { border-top:none; }
.field small { display:block; }

.field div { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:2px; color:var(--ink); }
.field div span { flex:1 1 auto; overflow-wrap:break-word; }
.field code { flex:1 1 12ch; font:500 14px/20px ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap:anywhere; user-select:all; }:where(:root:lang(zh-Hans)) .field code{font-weight:400}
.field button, .field .button { flex:none; width:auto; min-height:44px; margin:0; padding:10px 12px; font-size:15px; }
.wait { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:24px 0 0; padding:10px 10px 10px 14px; border-radius:12px; background:var(--fill); color:var(--ink2); }

.wait [role=status] { flex:1 1 auto; min-width:0; max-width:calc(100% - 28px); }
.wait .button { width:auto; min-height:44px; margin:0; padding:10px 16px; font-size:15px; }
.spin { flex:none; width:18px; height:18px; border-radius:50%; border:2px solid var(--line); border-top-color:var(--moss); animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation:none; } }
.big { display:grid; place-items:center; width:64px; height:64px; margin:0 auto 20px; border-radius:50%; background:var(--fill); color:var(--moss); }
.big svg { width:34px; height:34px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }

.fine.why { margin:4px 0 0; }
.fine.why button { display:inline-flex; width:auto; min-height:44px; margin:0; padding:0; border:0; border-radius:0; background:none; color:var(--moss); font:inherit; text-decoration:underline; text-underline-offset:3px; }
.back { display:flex; align-items:center; justify-content:center; min-height:44px; margin:16px 0 0; font-size:15px; text-align:center; }
.center code { font:500 15px/20px ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--ink); }:where(:root:lang(zh-Hans)) .center code{font-weight:400}


.bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 32px; }
.bar .brand { margin:0; }
.bar .button { width:auto; min-height:36px; margin:0; padding:6px 16px; font-size:15px; }

@media (max-width: 240px) { .bar .brand:not(:only-child) svg { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); } }

.card.pad { padding:16px; }
.card.pad > :first-child { margin-top:0; }
.card.pad > :last-child { margin-bottom:0; }
.card.pad .cmd { background:var(--canvas); }
.card.pad .msg { --behind:var(--paper); }

.card.pad > p a { text-decoration:underline; text-underline-offset:3px; }
.card.pad form.routine input { background:var(--canvas); }
.button.next { margin-top:28px; }


dialog { width:min(420px, calc(100% - 32px)); max-width:none; max-height:calc(100% - 32px); margin:auto; padding:0; border:none; border-radius:18px; background:var(--paper); color:var(--ink); box-shadow:0 0 0 1px var(--line),0 24px 64px rgba(0,0,0,.28); overflow:auto; overscroll-behavior:contain; }
dialog::backdrop { background:rgba(15,17,15,.42); }
@media (prefers-color-scheme: dark) { dialog::backdrop { background:rgba(0,0,0,.6); } }

dialog.alert { width:min(360px, calc(100% - 32px)); }

@media (max-width: 560px) { dialog:not(.alert) { width:100%; max-height:calc(100% - 24px); margin:auto 0 0; border-radius:18px 18px 0 0; } }
main > .sheet.alert { max-width:360px; margin:0 auto; width:100%; }

:root:is(:lang(ja), :lang(zh-Hans)) main.solo:has(> .sheet.alert) { max-width:460px; }
:root:is(:lang(ja), :lang(zh-Hans)) main > .sheet.alert { max-width:420px; }
.sheet.alert .detail { color:var(--ink3); font-size:12px; overflow-wrap:anywhere; }
html:has(dialog[open]) { overflow:hidden; }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation:rise .2s cubic-bezier(.2,.8,.2,1); }
  dialog[open]::backdrop { animation:fade .2s ease-out; }
}
@keyframes rise { from { opacity:0; transform:translateY(8px) scale(.98); } }
@keyframes fade { from { opacity:0; } }
.sheet { padding:24px; }
main > .sheet { background:var(--paper); border:1px solid var(--line); border-radius:18px; box-shadow:var(--lift); }
.sheet .icon { width:56px; height:56px; margin:0 0 16px; }
.sheet .title { margin:0 0 8px; padding:0; font:700 20px/26px var(--sans); letter-spacing:-.01em; text-transform:none; color:var(--ink); }:where(:root:lang(zh-Hans)) .sheet .title{font-weight:600}
.sheet .title:focus { outline:none; }
.sheet > p, .sheet form > p { font-size:15px; line-height:20px; }
.sheet .head { display:grid; grid-template-columns:32px minmax(0,1fr); align-items:center; column-gap:12px; margin:0 0 20px; }
.sheet .head .title { margin:0; overflow-wrap:anywhere; }
.sheet .head small { display:block; }

@media (max-width: 360px) { .sheet .head { grid-template-columns:minmax(0,1fr); row-gap:8px; } }
.editor p.warn { color:var(--warn); }

.choices { display:flex; flex-wrap:wrap-reverse; gap:10px; margin:24px 0 0; }

.choices > * { flex:1 1 calc(50% - 5.5px); }
@media (min-width: 241px) { .choices > * { min-width:fit-content; } }
.choices button, .choices .button { width:100%; margin:0; }

.choices.stack { flex-direction:column-reverse; flex-wrap:nowrap; }
.choices.stack > * { flex:none; }

.choices.ends { flex-wrap:wrap; justify-content:space-between; padding-top:16px; border-top:1px solid var(--line); }
.choices.ends > * { flex:0 1 auto; }

.choices.ends > :only-child { margin-left:auto; }
.choices.ends button, .choices.ends .button { width:auto; min-height:36px; padding:6px 16px; font-size:15px; }

button.danger { background:var(--danger-fill); border-color:var(--danger-fill); color:#fff; }


@font-face { font-family:"Ellipsis JA"; src:local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"); unicode-range:U+2026; font-weight:100 500; }
@font-face { font-family:"Ellipsis JA"; src:local("HiraginoSans-W6"), local("Hiragino Sans W6"), local("YuGothic-Bold"); unicode-range:U+2026; font-weight:600 900; }
@font-face { font-family:"Ellipsis ZH"; src:local("PingFangSC-Regular"), local("PingFang SC Regular"), local("MicrosoftYaHei"); unicode-range:U+2026; font-weight:100 500; }
@font-face { font-family:"Ellipsis ZH"; src:local("PingFangSC-Semibold"), local("PingFang SC Semibold"), local("MicrosoftYaHei-Bold"); unicode-range:U+2026; font-weight:600 900; }
:root:lang(ja) { --sans:"Ellipsis JA",-apple-system,BlinkMacSystemFont,system-ui,"Hiragino Sans","Yu Gothic",sans-serif; }
:root:lang(zh-Hans) { --sans:"Ellipsis ZH",-apple-system,BlinkMacSystemFont,system-ui,"PingFang SC","Microsoft YaHei",sans-serif; }
:root:is(:lang(ja),:lang(zh-Hans)) body { line-break:strict; }

:root:lang(ja) :is(h1, h2, button, .button, p, li, .scope b, .scope span) { word-break:auto-phrase; }
:root:lang(zh-Hans) :is(p, li, .scope b, .scope span) { text-wrap:pretty; }

:root:is(:lang(ja),:lang(zh-Hans)) .why button { font-feature-settings:"halt"; }

:root:is(:lang(ja),:lang(zh-Hans)) h1.serif { font:700 36px/1.25 var(--sans); letter-spacing:0; }:root:where(:lang(zh-Hans)):is(:lang(ja),:lang(zh-Hans)) h1.serif{font-weight:600}
:root:is(:lang(ja),:lang(zh-Hans)) h2 { text-transform:none; letter-spacing:0; }

a.en-only { white-space:nowrap; }
a.en-only span { display:inline-block; }
.can-do { margin:0 0 8px; color:var(--ink); font-weight:600; }:where(:root:lang(zh-Hans)) .can-do{font-weight:500}

button.google .label.words { display:block; padding:8px 0; font:500 15px/20px var(--sans); color:#000; letter-spacing:-.01em; }:where(:root:lang(zh-Hans)) button.google .label.words{font-weight:400}

.locale-switch { display:flex; flex-wrap:wrap; justify-content:center; gap:0 20px; margin:32px 0 0; }
.locale-switch a { display:inline-flex; align-items:center; min-width:44px; min-height:44px; justify-content:center; font-size:13px; line-height:18px; color:var(--ink2); }
.locale-switch [aria-current="page"] { color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.msg-note { margin:8px 0 0; text-align:center; }
.msg-note + ol.steps { margin-top:20px; }
