/* The account page. Neutral gray surfaces, white cards, one green accent on main buttons and the current section. */
:root { --bg:#f4f4f4; --card:#fff; --line:#dcdcdc; --text:#1c1c1c; --dim:#5f5f5f; --accent:#0b7a5c; --accent-dark:#075c45; --on:#fff; --danger:#b3261e; --here:#e2efea; --here-text:#075c45; --off:#f4f4f4; }
@media (prefers-color-scheme: dark) { :root { --bg:#161616; --card:#212121; --line:#383838; --text:#ededed; --dim:#a3a3a3; --accent:#3ecfa3; --accent-dark:#7fe0c2; --on:#0c0c0c; --danger:#ff7a70; --here:#1f3a32; --here-text:#9be8d0; --off:#2a2a2a; } }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--text); font:15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a, button.linkish { color:var(--accent); } a:hover, button.linkish:hover { color:var(--accent-dark); }
p { margin:0; }
.dim { color:var(--dim); } .small { font-size:13px; } .center { text-align:center; padding:48px 16px; }
.err { color:var(--danger); }
.mono { font:14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break:break-all; }

.top { height:64px; padding:0 32px; display:flex; align-items:center; justify-content:space-between; gap:16px; background:var(--card); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:2; }
.top .brand { font-weight:700; font-size:19px; white-space:nowrap; }
.top .who { display:flex; align-items:center; gap:16px; font-size:14px; min-width:0; }
.top .who span { color:var(--dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.shell { display:flex; max-width:1280px; margin:0 auto; }
nav { width:240px; flex:none; padding:24px 16px; display:flex; flex-direction:column; gap:4px; position:sticky; top:64px; align-self:flex-start; }
nav button { text-align:left; border:0; background:none; color:var(--text); padding:11px 16px; border-radius:22px; font:inherit; cursor:pointer; min-height:44px; }
nav button:hover { background:var(--off); }
nav button[aria-current="page"] { background:var(--here); color:var(--here-text); font-weight:600; }
main { flex:1; min-width:0; padding:32px 48px 64px 16px; display:flex; flex-direction:column; gap:20px; }
@media (max-width:820px) {
  .top { padding:0 16px; } .top .who span { display:none; }
  .shell { flex-direction:column; }
  nav { width:auto; position:static; flex-direction:row; overflow-x:auto; padding:12px 16px 4px; gap:6px; align-self:stretch; }
  nav button { white-space:nowrap; border:1px solid var(--line); background:var(--card); }
  main { padding:16px 16px 48px; }
}

.head { display:flex; flex-direction:column; gap:4px; }
h1 { font-weight:700; font-size:28px; margin:0; letter-spacing:-0.01em; }
h2 { font-weight:600; font-size:17px; margin:0; }
h3 { font-weight:600; font-size:15px; margin:0; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:22px; display:flex; flex-direction:column; gap:10px; }
.card.rows { padding:6px 22px; gap:0; }
.card .sub { font-size:14px; color:var(--dim); line-height:1.5; }
.grid2 { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px; }
@media (max-width:820px) { .grid2 { grid-template-columns:minmax(0, 1fr); } }
.row { display:flex; align-items:center; gap:16px; padding:16px 0; border-top:1px solid var(--line); }
.row:first-child { border-top:0; }
.grow { flex:1; min-width:0; overflow-wrap:anywhere; }
.name { font-weight:600; font-size:16px; }
.detail { font-size:13px; color:var(--dim); }
.tag { font-size:12px; font-weight:500; color:var(--dim); border:1px solid var(--line); border-radius:99px; padding:1px 8px; margin-left:6px; white-space:nowrap; }
.tag.bad { color:var(--danger); border-color:var(--danger); }
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chip { font-size:13px; padding:4px 10px; border:1px solid var(--line); border-radius:99px; }
.go-link { font-size:14px; font-weight:500; margin-top:4px; background:none; border:0; padding:0; cursor:pointer; text-align:left; text-decoration:underline; font-family:inherit; }

.hello { display:flex; align-items:center; gap:18px; }
.avatar { width:72px; height:72px; flex:none; border-radius:36px; background:var(--card); border:2px solid var(--accent); display:flex; align-items:center; justify-content:center; font-weight:600; font-size:28px; }
.statusline { flex-direction:row; align-items:center; gap:14px; padding:18px 22px; }
.statusline svg { flex:none; }

button.btn { height:44px; padding:0 18px; border-radius:10px; border:1px solid var(--line); background:var(--card); color:var(--text); font:500 15px Inter, system-ui, sans-serif; cursor:pointer; white-space:nowrap; }
button.btn.go { border:0; background:var(--accent); color:var(--on); font-weight:600; }
button.btn.danger { color:var(--danger); }
button.btn:disabled { background:var(--off); color:var(--dim); cursor:default; }
button.btn.go:disabled { background:var(--off); border:1px solid var(--line); }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.with-note { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.side-note { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.needs { font-size:12px; color:var(--dim); }
label { font-size:13px; color:var(--dim); }
input.field { height:44px; width:100%; border:1px solid var(--line); border-radius:10px; padding:0 14px; font:14px Inter, system-ui, sans-serif; background:var(--bg); color:var(--text); }
.inline { display:flex; gap:10px; } .inline input { flex:1; min-width:0; }
@media (max-width:520px) { .inline { flex-direction:column; } }
.subcard { border:1px solid var(--line); border-radius:12px; padding:18px; display:flex; flex-direction:column; gap:10px; }
.dashed { min-height:44px; border:1px dashed var(--line); border-radius:10px; display:flex; align-items:center; padding:8px 14px; font-size:13px; color:var(--dim); word-break:break-all; }
.dashed.has { color:var(--text); font-family:ui-monospace, SFMono-Regular, Menlo, monospace; }
.notice { padding:12px 16px; border-radius:10px; background:var(--here); color:var(--here-text); font-size:14px; }
ul.plain { margin:0; padding-left:18px; font-size:14px; line-height:1.6; }

.signin { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px; padding:32px 16px; }
.signin .title { display:flex; flex-direction:column; align-items:center; gap:4px; }
.signin .panel { width:min(760px, 100%); background:var(--card); border:1px solid var(--line); border-radius:16px; display:flex; }
.signin .half { flex:1 1 0; min-width:0; padding:32px; display:flex; flex-direction:column; gap:12px; }
.signin .half.scan { align-items:center; gap:14px; text-align:center; }
.signin .rule { width:1px; background:var(--line); }
@media (max-width:680px) { .signin .panel { flex-direction:column; } .signin .rule { width:auto; height:1px; } }
.qr { width:184px; height:184px; border:1px solid var(--line); border-radius:10px; background:#fff; padding:10px; }
.qr svg { display:block; width:100%; height:100%; }
.signin input.field { height:46px; font-size:15px; }
.signin button.btn.go { height:46px; margin-top:6px; }
