:root {
  --blue: #1e50a2;
  --blue-dark: #163c7a;
  --teal: #127a7a;
  --green: #1f7a55;
  --green-soft: #e6f4ec;
  --amber: #a86400;
  --amber-bg: #fff4dc;
  --ink: #17202a;
  --stone: #5c6773;
  --line: #e2e7ee;
  --card: #ffffff;
  --page: #eef2f6;
  --bg: #ffffff;
  --grad: linear-gradient(135deg, #163a78 0%, #1e50a2 45%, #127a7a 80%, #1f7a55 100%);
  --blue-soft: #e8effa; --on-blue: #ffffff; --tile: #f3f5f8;
  --warn: #a86400; --warn-soft: #fff4dc;
  --bad: #b3261e; --bad-soft: #fdeceb;
  --shadow: 0 1px 2px rgba(20, 40, 80, 0.05), 0 4px 16px rgba(20, 40, 80, 0.05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #e8edf5; --stone: #a9b3c6; --line: #2c3547; --card: #1a2130; --page: #10151f; --bg: #141b27; --amber-bg: #3a2c10; --green-soft: #16301f; --blue: #7aa2e8; --blue-soft: #1d2a40; --on-blue: #0b1a33; --tile: #232b3b; --warn: #e3b341; --warn-soft: #3a2e10; --bad: #f2b8b5; --bad-soft: #3c1917; --shadow: none; }
}
:root[data-theme="dark"] { --ink: #e8edf5; --stone: #a9b3c6; --line: #2c3547; --card: #1a2130; --page: #10151f; --bg: #141b27; --amber-bg: #3a2c10; --green-soft: #16301f; --blue: #7aa2e8; --blue-soft: #1d2a40; --on-blue: #0b1a33; --tile: #232b3b; --warn: #e3b341; --warn-soft: #3a2e10; --bad: #f2b8b5; --bad-soft: #3c1917; --shadow: none; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.7 system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; font-weight: 700; font-size: 20px; }
.brand .mark { flex: none; margin-right: 8px; }
.brand .g { color: var(--blue); }
.brand .n { color: var(--green); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
nav[hidden] { display: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--stone); text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
nav a[hidden] { display: none; }
nav a svg { flex: none; }
nav a:hover { background: var(--page); color: var(--ink); }
nav a.on { background: var(--blue-soft); color: var(--blue); }
@media (max-width: 640px) {
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
          background: var(--card); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 12px rgba(20,40,80,.06); }
  .tabs a { flex-direction: column; gap: 2px; padding: 6px 2px; border-radius: 12px; font-size: 11px; justify-content: center; }
  .tabs a.on { background: transparent; color: var(--blue); }
  .tabs a.on svg { background: var(--blue-soft); border-radius: 999px; padding: 2px 10px; width: 44px; height: 24px; }
  body { padding-bottom: 72px; }
}
main { max-width: 640px; margin: 0 auto; padding: 16px; }
.who { position: relative; margin-left: 6px; }
.who-btn { margin: 0; min-height: 34px; padding: 4px 12px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-menu { position: absolute; right: 0; top: 40px; z-index: 10; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(20,30,50,.16); padding: 6px; display: grid; min-width: 160px; }
.who-menu[hidden] { display: none; }
.who-menu button { margin: 0; border: none; text-align: left; min-height: 40px; padding: 8px 12px; font-weight: 600; color: var(--ink); }
.band { position: relative; overflow: hidden; border-radius: 20px; padding: 22px 20px; margin-bottom: 16px; color: #fff; background: var(--grad); box-shadow: 0 8px 24px rgba(22,58,120,.22); }
.band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.band.warn { background: linear-gradient(135deg, #7a4a00 0%, #a86400 55%, #c07a10 100%); }
.band-top { display: flex; gap: 14px; align-items: center; }
.band-ic { flex: none; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.band h1 { margin: 0; font-size: 22px; line-height: 1.4; }
.band p { margin: 4px 0 0; opacity: .92; font-size: 15px; }
.band-go { margin-top: 14px; }
button.btn-white { background: #fff; color: #1e50a2; border-color: #fff; margin: 0; }
button.btn-white:hover { background: #eef4ff; }
.todo-go { margin: 6px 0 0; min-height: 36px; padding: 4px 14px; font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; margin-bottom: 16px; box-shadow: var(--shadow); overflow: hidden; }
.card > h1:first-child { margin: -18px -16px 16px; padding: 16px 18px; background: var(--grad); color: #fff; font-size: 20px; }
h1 { font-size: 20px; margin: 0 0 12px; }
h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 22px 0 6px; }
h2::before { content: ""; flex: none; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(#1e50a2, #1f7a55); }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
label[hidden] { display: none; }
input { width: 100%; font-size: 18px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
input:focus-visible, button:focus-visible { outline: 3px solid #b9cdf0; outline-offset: 2px; }
button { font: inherit; font-weight: 700; padding: 10px 18px; margin: 12px 8px 0 0; border-radius: 12px; border: 1.5px solid var(--blue); background: var(--bg); color: var(--blue); cursor: pointer; min-height: 46px; }
button:hover { background: var(--page); }
button.primary { background: linear-gradient(135deg, #1e50a2, #127a7a); color: #fff; border-color: transparent; }
button.primary:hover { background: linear-gradient(135deg, #174084, #0f6868); }
button.danger { border-color: var(--amber); color: var(--amber); }
button.danger:hover { background: var(--amber-bg); }
button.link { border: none; background: none; padding: 10px 0; text-decoration: underline; min-height: 0; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.muted { color: var(--stone); font-size: 14px; }
.big { font-size: 18px; font-weight: 600; }
.msg { min-height: 1.7em; font-weight: 600; }
.msg.err { color: var(--amber); }
.msg.ok { color: var(--green); }
.working .dots { display: inline-block; min-width: 3ch; text-align: left; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--line); padding: 12px 0; }
.list li:first-child { border-top: none; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.row[hidden] { display: none; }
.name { font-weight: 700; }
.chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--page); color: var(--stone); }
.chip[hidden] { display: none; }
.chip.ok { color: var(--green); background: var(--green-soft); }
.chip.warn, .chip.lock { color: var(--warn); background: var(--warn-soft); }
.chip.bad { color: var(--bad); background: var(--bad-soft); }
.chip.off { color: var(--stone); background: var(--tile); }
.row button.small { margin: 0; min-height: 40px; padding: 6px 14px; }
.choice { margin-top: 10px; padding: 4px 14px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); }
.choice button { width: 100%; margin: 10px 0 4px; }
.choice .muted { margin: 4px 0 0; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 2px 10px; }
.tag[hidden] { display: none; }
.kv dt { font-weight: 600; color: var(--stone); font-size: 14px; }
.kv dd { margin: 0 0 10px; }
.foot { max-width: 640px; margin: 24px auto; padding: 0 16px; color: var(--stone); font-size: 12px; }
.foot .legal a { color: var(--stone); margin-right: 12px; }
.foot .note { margin: 6px 0 0; }
a { color: var(--blue); }
.notice { background: var(--amber-bg); border-left: 4px solid var(--amber); padding: 10px 12px; border-radius: 10px; }
.plan-cycle { margin-top: 4px; }
.plans { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.plans li { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg); }
.plans li.picked { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px var(--blue); }
#plan-biz-hint.picked { border: 1.5px solid var(--blue); border-radius: 14px; padding: 12px 14px; background: var(--blue-soft); box-shadow: 0 0 0 2px var(--blue); color: inherit; }
.plans .price { font-size: 20px; font-weight: 700; }
.plans .price small { font-size: 13px; font-weight: 600; color: var(--stone); }
table.confirm { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
table.confirm th { text-align: left; vertical-align: top; width: 7.5em; padding: 8px 8px 8px 0; color: var(--stone); font-weight: 600; }
table.confirm td { padding: 8px 0; }
table.confirm tr + tr th, table.confirm tr + tr td { border-top: 1px solid var(--line); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 12px; }
label.check[hidden] { display: none; }
label.check input { width: 22px; height: 22px; flex: none; margin: 0; }
fieldset.kinds { border: 0; margin: 12px 0 0; padding: 0; }
fieldset.kinds legend { font-weight: 600; padding: 0; }
label.check.lost-tpl-item { align-items: flex-start; font-weight: 400; }
label.check.lost-tpl-item:has(input:disabled) { opacity: .5; }
#lost-text { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); resize: vertical; }
#lost-text:focus-visible { outline: 3px solid #b9cdf0; outline-offset: 2px; }
.hint { margin: 12px 0 0; font-weight: 600; }
.sec-banner { background: var(--amber-bg); border: 1.5px solid var(--amber); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.sec-banner a { font-weight: 700; margin-left: 6px; }
.qr svg { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 10px; }
.rec-code { font: 700 22px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 1px; word-break: break-all; background: var(--page); padding: 10px 12px; border-radius: 10px; }
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 0; max-width: min(92vw, 480px); background: var(--card); color: var(--ink); }
.dlg-box { padding: 18px 16px; }
.note.warn-note { background: var(--warn-soft); margin: 8px 0; }
.warn-note p { margin: 4px 0; }
dialog::backdrop { background: rgba(10,20,40,.45); }
dialog h2 { margin-top: 0; }
.ctry-list { max-height: 45vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; margin: 12px 0; }
.ctry-list label { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.ctry-seen { color: var(--green); font-weight: 700; }
.pc-note { color: var(--stone); font-size: 14px; margin-top: 8px; }
button.apple-btn { display: flex; align-items: center; justify-content: flex-start; gap: 0; height: 46px; min-height: 46px; min-width: 140px; padding: 0 8% 0 0; font: 500 20px/1 -apple-system, system-ui, "Hiragino Sans", "Segoe UI", sans-serif; background: #000; color: #fff; border: 1px solid #000; border-radius: 12px; margin: 10px 0 6px; overflow: hidden; }
button.apple-btn:hover { background: #000; color: #fff; }
button.apple-btn > span:last-child { flex: 1; text-align: center; }
.apple-btn .apple-logo { display: block; width: 24px; height: 44px; flex: none; line-height: 0; }
.apple-btn .apple-logo svg { display: block; }
.apple-btn .apple-logo-on-white { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) button.apple-btn, :root:not([data-theme="light"]) button.apple-btn:hover { background: #fff; color: #000; border-color: #fff; }
  :root:not([data-theme="light"]) .apple-btn .apple-logo-on-black { display: none; }
  :root:not([data-theme="light"]) .apple-btn .apple-logo-on-white { display: block; }
}
:root[data-theme="dark"] button.apple-btn, :root[data-theme="dark"] button.apple-btn:hover { background: #fff; color: #000; border-color: #fff; }
:root[data-theme="dark"] .apple-btn .apple-logo-on-black { display: none; }
:root[data-theme="dark"] .apple-btn .apple-logo-on-white { display: block; }
.note { background: var(--green-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.note[hidden] { display: none; }
.tap { cursor: pointer; border-radius: 10px; }
.tap:hover { background: var(--page); }
.tap:focus-visible { outline: 3px solid #b9cdf0; outline-offset: 2px; }
.msg.err.tap::after, .notice.tap::after, .note.tap::after, .pc-note.tap::after, .todo-text.tap::after, .chip.tap::after { content: var(--gn-tap-more, " ›");  font-size: 13px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.chip.tap::after { content: " ›"; color: inherit; }
.msg.err.tap { text-decoration: underline; text-decoration-color: rgba(168,100,0,.4); text-underline-offset: 3px; }
.notice.tap:hover { background: var(--amber-bg); filter: brightness(.97); }
.note.tap:hover { background: var(--green-soft); filter: brightness(.97); }
.row.tap { position: relative; padding: 4px 26px 4px 6px; margin: -4px -6px; }
.row.tap::after { content: "›"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--stone); font-weight: 700; font-size: 22px; }
.pc-note.warn { color: var(--amber); font-weight: 600; }
.sec-banner.tap:hover { background: var(--amber-bg); filter: brightness(.97); }
.sec-banner .tap-more { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--blue); }
.info-hint { background: var(--page); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.info-acts { display: grid; gap: 0; }
.info-acts button { width: 100%; margin: 10px 0 0; }
#info-dlg .kv { margin: 8px 0; }
.tl-filter { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.tl-filter select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; max-width: 100%; }
.tl-day { font-size: 14px; font-weight: 700; color: var(--stone); margin: 16px 0 4px; }
#link-phone .link-one { width: 100%; min-height: 56px; font-size: 18px; margin: 8px 0 16px; }
#link-phone .link-name-input { font-size: 14px; max-width: 280px; }
#link-phone .link-code-big { font: 700 34px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 4px; text-align: center; margin: 8px 0 2px; word-break: break-all; }
#link-phone .link-code-same { text-align: center; margin: 0 0 4px; }
#home-req-list .req-code-big, #info-list .req-code-big { font: 700 28px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 3px; margin: 6px 0 2px; word-break: break-all; }
#home-req-list .req-code-same, #info-list .req-code-same { margin: 0; }

.h-more { margin: 0 0 0 auto; min-height: 32px; width: 34px; padding: 0; border: 0; background: transparent; color: var(--stone); font-size: 22px; line-height: 1; }
.h-more:hover { background: var(--page); color: var(--blue); }
.card > h1:first-child { display: flex; align-items: center; gap: 8px; }
.card > h1:first-child .h-more { color: #fff; }
.card > h1:first-child .h-more:hover { background: rgba(255,255,255,.16); }
#info-body { white-space: pre-line; }
.list li > .row.tap { margin: -4px -6px; }

.stack[hidden] { display: none; }
.card > .card-head:first-child { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0; background: none; color: var(--ink); font-size: 18px; }
.card > h2.card-head:first-child { margin-top: 0; }
.card > h2.card-head::before { display: none; }
.card > .card-head:first-child .h-more { color: var(--stone); }
.card > .card-head:first-child .h-more:hover { background: var(--page); color: var(--blue); }
.head-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #e7f3f2; color: var(--teal); }
.row-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e8effa; color: var(--blue); }
.row { flex-wrap: nowrap; }
.row > .row-ic + div { flex: 1; min-width: 0; }
.row > div:not(.row-ic) { min-width: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .head-ic { background: #16302e; color: #7fd1c7; } :root:not([data-theme="light"]) .row-ic { background: #1d2a40; color: #9bbaf0; } }
:root[data-theme="dark"] .head-ic { background: #16302e; color: #7fd1c7; } :root[data-theme="dark"] .row-ic { background: #1d2a40; color: #9bbaf0; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

.seg { display: inline-flex; flex: none; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg[hidden] { display: none; }
.seg button { margin: 0; min-height: 38px; padding: 4px 16px; border: 0; border-radius: 0; background: var(--bg); color: var(--ink); font-size: 15px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--blue); color: var(--on-blue); }

#info-dlg[open] { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); max-width: 100vw; height: 100%; max-height: 100%; overflow: auto;
                  border: 0; border-radius: 16px 0 0 16px; padding: 0; box-shadow: -8px 0 32px rgba(10,20,40,.18); animation: gn-sheet-in .18s ease-out; }
#info-dlg .dlg-box { padding: 22px 22px 16px; min-height: 100%; box-sizing: border-box; }
#info-dlg::backdrop { background: rgba(10, 20, 40, 0.4); }
#info-dlg .DetailSheet-kind { margin: 0; font-size: 13px; color: var(--stone); }
#info-dlg h2 { display: block; margin: 4px 0 8px; font-size: 21px; line-height: 1.4; }
#info-dlg h2::before { display: none; }
#info-dlg .DetailSheet-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; }
#info-dlg .DetailSheet-chips:empty { display: none; }
#info-body { margin-top: 0; }
#info-body:empty { display: none; }
@keyframes gn-sheet-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gn-sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  #info-dlg[open] { inset: auto 0 0 0; width: 100%; height: auto; max-height: 88vh; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(10,20,40,.18);
                    animation-name: gn-sheet-up; }
  #info-dlg .dlg-box { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { #info-dlg[open] { animation: none; } }

.list li.DeviceCard { margin-top: 8px; padding: 10px 12px; border: 1px solid transparent; border-radius: 14px; background: var(--tile); }
.list li.DeviceCard:first-child { margin-top: 0; border-top: 1px solid transparent; }
.list li.DeviceCard:hover { border-color: var(--blue); }
.list li.DeviceCard .row.tap:hover { background: transparent; }
.DeviceCard .row-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.add-big { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin: 0 0 16px; font-size: 16px; font-weight: 800; }

.list li.ListRow { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.ListRow-h { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 40px; margin: 0; padding: 4px 0; border: 0; background: transparent;
             color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.ListRow-h:hover { background: transparent; color: var(--blue); }
a.ListRow-h { text-decoration: none; }
.ListRow-t { min-width: 0; }
.ListRow-side { flex: none; display: flex; align-items: center; gap: 8px; }
.ListRow-side[hidden] { display: none; }
.ListRow-go { flex: none; min-height: 32px; width: 32px; padding: 0; margin: 0; border: 0; background: transparent; color: var(--stone); font-size: 20px; line-height: 1; }
.ListRow-go:hover { background: var(--page); color: var(--blue); }

.list li[hidden] { display: none; }
.list li.ListRow > .ListRow-t { flex: 1; min-width: 0; font-weight: 700; }
.ListRow-h .ListRow-t { flex: 1; }
.ListRow-h .chip { flex: none; }
.ListRow-arrow { flex: none; color: var(--stone); font-size: 20px; line-height: 1; }
.list li.ListRow.ListRow-lock { border-top: none; padding-top: 0; padding-left: 16px; color: var(--stone); }
.ListRow-sub { display: block; font-size: 12px; font-weight: 400; color: var(--stone); }
.rec { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 4px 0 8px; font-size: 13px; color: var(--stone); }
.rec[hidden] { display: none; }
.rec .rec-chip { margin: 0; min-height: 0; border: 0; font: inherit; font-size: 13px; font-weight: 700; padding: 2px 10px; cursor: pointer; }
.list li.ListRow-rec { display: flex; border-top: none; padding: 0 0 6px; margin: 0; }
.list li.ListRow.ListRow-lang { flex-wrap: wrap; }
.lang-seg button { padding: 4px 12px; }
@media (max-width: 480px) { .list li.ListRow.ListRow-lang .ListRow-side { order: 3; flex-basis: 100%; } .lang-seg { width: 100%; } .lang-seg button { flex: auto; padding: 4px 8px; font-size: 14px; } }
#info-list:empty { display: none; }
#info-list { margin: 4px 0 8px; }
#info-list .req-code-big { font-size: 34px; text-align: center; }
#info-list .req-code-same { text-align: center; }
.add-phone { display: grid; justify-items: center; gap: 10px; text-align: center; margin: 4px 0; }
.add-phone .ph { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.add-phone p { margin: 0; }
.add-phone .qr { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 4px; }
.add-phone .qr svg { display: block; width: 100%; height: 100%; }
.dl-sheet { display: grid; gap: 10px; }
.dl-sheet .kv { margin: 0; }
.dl-sheet .dl-sha { font-family: ui-monospace, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; user-select: all; }
.dl-sheet .qr { justify-self: center; width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 4px; }
.dl-sheet .qr svg { display: block; width: 100%; height: 100%; }
.dl-sheet > p { margin: 0; }
.dl-acts { display: grid; gap: 10px; }
a.dl-btn { display: block; box-sizing: border-box; min-height: 46px; padding: 10px 18px; border: 1.5px solid var(--blue); border-radius: 12px; background: var(--bg); color: var(--blue); font-weight: 700; text-align: center; text-decoration: none; }
a.dl-btn:hover { background: var(--page); }
a.dl-btn.primary { background: linear-gradient(135deg, #1e50a2, #127a7a); color: #fff; border-color: transparent; }
a.dl-btn.primary:hover { background: linear-gradient(135deg, #174084, #0f6868); }
a.dl-btn:focus-visible { outline: 3px solid #b9cdf0; outline-offset: 2px; }
.h-all { margin: 0 0 0 auto; min-height: 32px; padding: 2px 10px; border: 0; background: transparent; color: var(--blue); font-size: 14px; font-weight: 700; }
.h-all:hover { background: var(--page); }
.card .add-big { margin: 12px 0 0; }
.card > h2.card-head .sec-open { flex: 1; min-height: 38px; padding: 0; font-size: 18px; gap: 10px; }

.sw { position: relative; flex: none; width: 46px; height: 26px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.sw:checked { background: var(--blue); }
.sw:checked::after { transform: translateX(20px); }
.sw:disabled { opacity: .45; cursor: not-allowed; }
.sw:focus-visible { outline: 3px solid #b9cdf0; outline-offset: 2px; }
.sheet-sub { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--stone); }
.list li.user-head { border-top: none; padding: 14px 0 2px; font-size: 14px; font-weight: 700; color: var(--stone); display: flex; align-items: center; gap: 8px; }
.list li.user-head:first-child { padding-top: 0; }
.user-head .chip { font-size: 12px; }
#info-list .invite-form select { font: inherit; width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
#info-list .invite-form p { margin: 8px 0 0; }
#info-list .rename-form { margin-top: 10px; }
#info-list .rename-form .msg { margin: 6px 0 0; min-height: 0; }
.login-banner p { margin: 6px 0 8px; }
.login-banner .banner-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.login-banner .banner-acts button { margin: 0; }
.name, .muted, .msg, .notice, .note, #info-body, .ListRow-t { overflow-wrap: anywhere; }
fieldset.pass-modes { display: grid; gap: 8px; margin: 8px 0 12px; min-width: 0; }
.pass-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.pass-opt.on { border-color: var(--blue); background: var(--blue-soft); }
.pass-opt input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; }
.pass-opt:has(input:disabled) { opacity: .55; cursor: default; }
.pass-opt .muted { font-size: 14px; }
.pass-why { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--blue); text-align: left; cursor: pointer; }
