:root {
  --paper: #F2EDE2;
  --card: #FFFCF5;
  --ink: #1E2A24;
  --ink-soft: #3A463F;
  --muted: #767D73;
  --muted-2: #979D93;
  --line: rgba(35, 52, 42, .12);
  --line-soft: rgba(35, 52, 42, .07);
  --green: #2F5D4A;
  --green-deep: #1E4135;
  --green-soft: #E4EDE3;
  --amber: #D99A43;
  --amber-soft: #F6E8CD;
  --clay: #BF6A4B;
  --shadow: 0 24px 55px -38px rgba(30, 42, 36, .55);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--sans);
  background:
    radial-gradient(820px 420px at 92% -6%, rgba(246, 220, 165, .58), transparent 60%),
    radial-gradient(700px 460px at -10% 22%, rgba(196, 216, 194, .5), transparent 58%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  z-index: 0;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
a { color: inherit; }

.boot {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  background: var(--paper); color: var(--muted); font-size: 12px; letter-spacing: .08em;
}
.boot-mark {
  width: 52px; height: 52px; border-radius: 17px; background: var(--green);
  color: #FAF6E9; display: grid; place-items: center;
  font-family: var(--serif); font-size: 25px; font-weight: 700;
  box-shadow: 0 18px 40px -18px rgba(47, 93, 74, .7);
}

/* login */
.login-layer {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: start center;
  overflow-y: auto; padding: max(28px, 7vh) 22px 28px;
  background:
    radial-gradient(700px 400px at 80% 8%, rgba(246, 220, 165, .68), transparent 60%),
    radial-gradient(600px 420px at 10% 92%, rgba(196, 216, 194, .62), transparent 60%),
    var(--paper);
}
.login-card {
  width: min(410px, 100%); padding: 32px 30px 26px;
  background: rgba(255, 252, 245, .9); border: 1px solid var(--line);
  border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(16px);
  animation: rise .5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.brand-row { display: flex; align-items: center; gap: 11px; margin-bottom: 28px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px; background: var(--green);
  color: #FAF6E9; display: grid; place-items: center; flex: 0 0 auto;
  box-shadow: 0 12px 24px -14px rgba(47, 93, 74, .8);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.brand-meta { margin-top: 2px; font-size: 9.5px; letter-spacing: .16em; color: var(--muted); }
.login-card h1 { margin: 0 0 9px; font-family: var(--serif); font-size: 31px; line-height: 1.22; font-weight: 600; }
.login-card h1 em { font-style: normal; color: var(--clay); }
.login-card p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.pin-input {
  width: 100%; padding: 15px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: #FBF7ED;
  font-size: 23px; letter-spacing: .4em; text-align: center; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.pin-input:focus { border-color: rgba(47, 93, 74, .5); box-shadow: 0 0 0 4px rgba(47, 93, 74, .08); }
.login-btn {
  width: 100%; margin-top: 11px; padding: 14px; border: 0; border-radius: 14px;
  background: var(--green); color: #FAF6E9; font-size: 14.5px; font-weight: 600;
  letter-spacing: .06em; transition: background .18s, transform .18s;
}
.login-btn:hover { background: #274E3D; transform: translateY(-1px); }
.login-err { min-height: 19px; margin-top: 9px; color: #A94F38; font-size: 12px; text-align: center; }
.login-foot { margin-top: 20px; text-align: center; font-size: 10.5px; color: var(--muted-2); line-height: 1.7; }

/* shell */
.wrap {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto; padding: 0 18px 54px;
}
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 -18px 22px; padding: 14px 18px;
  background: linear-gradient(180deg, rgba(242, 237, 226, .94), rgba(242, 237, 226, .72));
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .brand-mark { width: 37px; height: 37px; border-radius: 12px; }
.brand-name { font-size: 18px; }
.brand-meta { font-size: 9px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.sync {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 252, 245, .55); color: var(--muted);
  font-size: 10px; white-space: nowrap;
}
.sync .dot { width: 6px; height: 6px; border-radius: 50%; background: #C39A4E; }
.sync.online { color: #356A50; border-color: rgba(76, 139, 103, .25); }
.sync.online .dot { background: #4C8B67; box-shadow: 0 0 0 3px rgba(76, 139, 103, .12); }
.sync.offline { color: #9A5A43; border-color: rgba(181, 106, 78, .22); }
.sync.offline .dot { background: #B56A4E; }
.pill-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-soft); text-decoration: none; font-size: 10px; white-space: nowrap;
}
.pill-link:hover { background: rgba(255, 252, 245, .8); }

.intro { padding: 2px 2px 20px; }
.eyebrow { margin: 0 0 11px; color: var(--green); font-size: 10px; font-weight: 600; letter-spacing: .18em; }
.intro h1 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 6vw, 42px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.intro h1 em { font-style: normal; color: var(--clay); }
.intro-sub { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.datebar { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; flex-wrap: wrap; }
.seg {
  display: inline-flex; padding: 3px; background: rgba(255, 252, 245, .6);
  border: 1px solid var(--line); border-radius: 999px;
}
.seg button {
  border: 0; background: transparent; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; font-size: 11px; transition: background .2s, color .2s;
}
.seg button.active { background: var(--green); color: #FAF6E9; font-weight: 600; }
.date-input {
  border: 1px solid var(--line); background: rgba(255, 252, 245, .6);
  border-radius: 999px; padding: 7px 11px; font-size: 11px; color: var(--ink-soft);
  outline: none; max-width: 150px;
}
.date-input:focus { border-color: rgba(47, 93, 74, .4); }

.card {
  position: relative; background: linear-gradient(180deg, rgba(255, 252, 246, .97), rgba(255, 251, 243, .9));
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  padding: 22px 21px; margin-bottom: 15px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.label { margin: 0 0 6px; font-size: 9.5px; font-weight: 600; letter-spacing: .18em; color: var(--muted); }
.card h2 { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.25; font-weight: 600; }
.card-sub { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

/* progress ring */
.ring-wrap { position: relative; width: 64px; height: 64px; flex: 0 0 auto; }
.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-svg circle { fill: none; stroke-width: 5; }
.ring-track { stroke: rgba(35, 52, 42, .09); }
.ring-bar { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset .55s cubic-bezier(.2, .8, .2, 1); }
.ring-text { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--green-deep); }

.progress-track { height: 5px; border-radius: 99px; background: rgba(35, 52, 42, .07); overflow: hidden; margin: 16px 0 8px; }
.progress-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--green), #6C9577); transition: width .55s cubic-bezier(.2, .8, .2, 1); }
.summary { color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.summary b { color: var(--ink-soft); font-weight: 600; }

/* add form */
.add-box {
  margin: 17px 0 18px; padding: 14px; border-radius: 16px;
  background: rgba(228, 237, 227, .35);
  border: 1px dashed rgba(47, 93, 74, .22);
}
.subjects { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 9px; scrollbar-width: none; }
.subjects::-webkit-scrollbar { display: none; }
.subject-chip {
  border: 1px solid rgba(35, 52, 42, .12); background: rgba(255, 252, 245, .7);
  color: var(--muted); border-radius: 999px; padding: 6px 11px;
  font-size: 11px; white-space: nowrap; transition: all .18s;
}
.subject-chip.active { background: var(--green); border-color: var(--green); color: #FAF6E9; font-weight: 600; }
.add-row { display: flex; gap: 7px; align-items: stretch; }
.add-row input {
  flex: 1; min-width: 0; border: 1px solid rgba(35, 52, 42, .13);
  background: #FFFCF5; border-radius: 11px; padding: 11px 12px;
  font-size: 13.5px; outline: none;
}
.add-row input:focus { border-color: rgba(47, 93, 74, .45); box-shadow: 0 0 0 3px rgba(47, 93, 74, .07); }
.add-row select {
  border: 1px solid rgba(35, 52, 42, .12); background: #FFFCF5;
  border-radius: 11px; padding: 0 4px; font-size: 11px; color: var(--ink-soft); outline: none;
}
.add-btn {
  flex: 0 0 auto; border: 0; border-radius: 11px; padding: 0 15px;
  background: var(--ink); color: #FAF6E9; font-size: 12px; font-weight: 600;
  transition: background .18s, transform .18s;
}
.add-btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.add-btn:disabled { opacity: .55; transform: none; }
.hint { margin: 8px 0 0; color: var(--muted-2); font-size: 10px; line-height: 1.6; }

/* task list */
.list-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 1px 4px; color: var(--muted); font-size: 10px; letter-spacing: .04em;
}
.task-list { list-style: none; margin: 0; padding: 0; }
.task {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 2px; border-bottom: 1px dashed var(--line-soft);
}
.task:last-child { border-bottom: 0; }
.check {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px;
  border: 1.5px solid #C6CDC4; background: transparent; display: grid; place-items: center;
  color: #fff; padding: 0; transition: background .2s, border-color .2s;
}
.check svg { width: 13px; height: 13px; opacity: 0; transform: scale(.6); transition: opacity .18s, transform .22s; }
.task.done .check { background: var(--green); border-color: var(--green); }
.task.done .check svg { opacity: 1; transform: scale(1); }
.task-main { flex: 1; min-width: 0; }
.task-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; color: var(--muted-2); font-size: 9.5px; }
.task-meta .subject { color: var(--ink-soft); font-weight: 600; }
.task-title { font-size: 14px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.done .task-title { color: #9FA79D; text-decoration: line-through; text-decoration-color: rgba(120, 130, 120, .4); }
.task-side { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.task-doneat { color: #5E876E; font-size: 9.5px; white-space: nowrap; }
.del {
  width: 28px; height: 28px; border: 0; background: transparent; border-radius: 8px;
  color: #B2B9B0; font-size: 16px; line-height: 1; display: grid; place-items: center;
}
.del:hover { background: rgba(191, 106, 75, .09); color: var(--clay); }
.empty { padding: 22px 0 16px; text-align: center; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.empty b { display: block; font-family: var(--serif); font-size: 16px; color: var(--ink-soft); margin-bottom: 3px; }

/* week */
.week-card { padding-bottom: 18px; }
.week-bars { display: flex; align-items: flex-end; gap: 8px; height: 86px; margin-top: 15px; }
.wk { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.wk .bar { width: 100%; max-width: 28px; height: 62px; background: rgba(35, 52, 42, .055); border-radius: 7px; display: flex; align-items: flex-end; overflow: hidden; }
.wk .bar i { display: block; width: 100%; background: #B9CBB7; border-radius: 7px; transition: height .5s; }
.wk.today .bar { background: rgba(47, 93, 74, .1); }
.wk.today .bar i { background: var(--green); }
.wk .lbl { font-size: 9px; color: var(--muted-2); }
.wk .cnt { font-size: 8.5px; color: var(--muted-2); min-height: 11px; }
.wk.today .lbl, .wk.today .cnt { color: var(--green); font-weight: 700; }

/* details / settings */
details.card { padding: 0; overflow: hidden; scroll-margin-top: 72px; }
details.card > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 20px; cursor: pointer;
}
details.card > summary::-webkit-details-marker { display: none; }
summary .sum-title { font-family: var(--serif); font-size: 18px; font-weight: 600; }
summary .sum-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
summary .chev { color: var(--muted-2); transition: transform .25s; flex: 0 0 auto; }
summary .chev svg { width: 16px; height: 16px; display: block; }
details[open] > summary .chev { transform: rotate(180deg); }
.details-body { padding: 0 20px 20px; border-top: 1px solid var(--line-soft); }
.details-body .inner { padding-top: 15px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.field {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line); background: #FBF7ED; border-radius: 11px; padding: 10px 11px;
}
.field label { color: var(--muted); font-size: 10.5px; }
.field input {
  width: 58px; border: 0; background: transparent; text-align: right;
  font-size: 13.5px; font-weight: 600; outline: none;
}
.field input[type="time"] { width: 74px; font-weight: 500; font-size: 12px; }
.routine-tabs { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.routine-tabs::-webkit-scrollbar { display: none; }
.routine-tabs button {
  flex: 0 0 auto; white-space: nowrap;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 6px 11px; font-size: 10.5px;
}
.routine-tabs button.active { background: var(--green); border-color: var(--green); color: #FAF6E9; }
.edit-rows { display: flex; flex-direction: column; gap: 7px; }
.edit-row {
  display: grid; grid-template-columns: 62px 62px minmax(0, 1fr) 26px; gap: 6px; align-items: center;
}
.edit-row input {
  width: 100%; min-width: 0; border: 1px solid var(--line); background: #FBF7ED;
  border-radius: 9px; padding: 8px 8px; font-size: 11.5px; outline: none;
}
.edit-row input:focus { border-color: rgba(47, 93, 74, .45); }
.edit-row .row-del {
  width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent;
  color: #B2B9B0; font-size: 15px; display: grid; place-items: center;
}
.edit-row .row-del:hover { background: rgba(191, 106, 75, .09); color: var(--clay); }
.edit-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn {
  border: 1px solid var(--line); background: #FFFCF5; color: var(--ink-soft);
  border-radius: 10px; padding: 9px 14px; font-size: 11.5px; transition: background .18s;
}
.btn:hover { background: #F7F2E7; }
.btn.pri { background: var(--green); border-color: var(--green); color: #FAF6E9; font-weight: 600; }
.btn.pri:hover { background: #274E3D; }
.btn.ghost { background: transparent; border-style: dashed; }
.btn:disabled { opacity: .55; }
.tt-row { display: grid; grid-template-columns: 40px minmax(0, .9fr) 68px 68px 26px; gap: 5px; align-items: center; }
.tt-row .pno { font-size: 10px; color: var(--muted-2); text-align: center; }
.tt-row input { width: 100%; min-width: 0; border: 1px solid var(--line); background: #FBF7ED; border-radius: 9px; padding: 8px 7px; font-size: 11px; outline: none; }
.tt-row input:focus { border-color: rgba(47, 93, 74, .45); }
.tt-head { display: grid; grid-template-columns: 40px minmax(0, .9fr) 68px 68px 26px; gap: 5px; margin-bottom: 5px; color: var(--muted-2); font-size: 8.5px; text-align: center; }
.tt-head span:first-child { text-align: left; }
.notice { margin: 0 0 12px; padding: 9px 11px; border-radius: 10px; background: var(--amber-soft); color: #7D5A24; font-size: 10.5px; line-height: 1.55; }
.page-foot { padding: 18px 4px 0; color: var(--muted-2); font-size: 9.5px; line-height: 1.8; text-align: center; }
.page-foot b { color: var(--muted); font-weight: 500; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
  background: #1F3B30; color: #F8F2E4; border: 1px solid rgba(255, 255, 255, .1);
  padding: 10px 16px; border-radius: 999px; font-size: 11.5px;
  box-shadow: 0 20px 40px -18px rgba(20, 40, 30, .7);
  transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 13px; height: 13px; color: #E3AC5D; flex: 0 0 auto; }

@media (max-width: 520px) {
  .wrap { padding: 0 14px 44px; }
  .topbar { margin: 0 -14px 18px; padding: 12px 14px; }
  .card { padding: 19px 17px; border-radius: 21px; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .add-row { flex-wrap: wrap; }
  .add-row input { flex: 1 1 100%; }
  .add-row select { flex: 1; max-width: none; padding: 10px 6px; }
  .add-btn { flex: 0 0 92px; padding: 11px; }
  .edit-row { grid-template-columns: 58px 58px minmax(0, 1fr) 24px; }
  .tt-row, .tt-head { grid-template-columns: 28px minmax(0, .8fr) 62px 62px 24px; gap: 4px; }
  .tt-row input { padding: 7px 5px; font-size: 10.5px; }
  .summary { font-size: 10px; }
  .sync { padding: 6px 9px; font-size: 9px; }
  .pill-link { padding: 6px 9px; font-size: 9px; }
  .brand-name { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------- SaaS auth ---------------- */
.auth-tabs {
  display: flex; gap: 4px; padding: 3px; margin: 0 0 18px;
  background: rgba(35, 52, 42, .05); border-radius: 999px;
}
.auth-tabs button {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  border-radius: 999px; padding: 9px 8px; font-size: 11.5px;
  transition: background .2s, color .2s, box-shadow .2s;
}
.auth-tabs button.active {
  background: #FFFCF5; color: var(--green-deep); font-weight: 600;
  box-shadow: 0 4px 12px -8px rgba(30, 42, 36, .4);
}
.auth-field { display: block; margin-bottom: 10px; }
.auth-field > span {
  display: block; margin: 0 0 5px 2px; color: var(--muted);
  font-size: 10px; letter-spacing: .04em;
}
.auth-field input {
  width: 100%; border: 1px solid var(--line); background: #FBF7ED;
  border-radius: 12px; padding: 12px 13px; font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.auth-field input:focus {
  border-color: rgba(47, 93, 74, .5); box-shadow: 0 0 0 3px rgba(47, 93, 74, .08);
}
.auth-switch { text-align: center; margin: 10px 0 0; }
.text-link {
  border: 0; background: transparent; color: var(--green);
  font-size: 11.5px; padding: 4px; text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--green-deep); }

/* ---------------- family / devices ---------------- */
.family-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 13px; border-radius: 13px; background: var(--green-soft);
  margin-bottom: 16px;
}
.family-summary b { display: block; font-family: var(--serif); font-size: 18px; color: var(--green-deep); }
.family-summary span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.plan-pill {
  flex: 0 0 auto; padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 252, 245, .75); color: var(--green); font-size: 9px;
  border: 1px solid rgba(47, 93, 74, .16);
}
.subsection + .subsection { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.subhead { margin-bottom: 10px; }
.subhead b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 3px; }
.subhead span { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }
.pair-result {
  margin-top: 11px; padding: 13px; border-radius: 12px;
  background: rgba(246, 232, 205, .42); border: 1px dashed rgba(217, 154, 67, .35);
}
.pair-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 34px; font-weight: 700; letter-spacing: .18em;
  color: var(--green-deep); text-align: center; line-height: 1.1;
  padding: 2px 0 6px;
}
.pair-code.small { font-size: 27px; letter-spacing: .12em; }
.pair-result .hint { margin: 0; color: #7D5A24; }
.pair-result .hint b { font-weight: 600; word-break: break-all; }
.device-list { margin-top: 10px; }
.device-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 2px; border-bottom: 1px dashed var(--line-soft);
}
.device-row:last-child { border-bottom: 0; }
.device-row .meta { min-width: 0; }
.device-row b { display: block; font-size: 12px; font-weight: 600; }
.device-row span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 9.5px; }
.device-row button {
  flex: 0 0 auto; border: 1px solid var(--line); background: transparent;
  color: var(--muted); border-radius: 8px; padding: 5px 9px; font-size: 9.5px;
}
.device-row button:hover { color: var(--clay); border-color: rgba(191, 106, 75, .3); }
.field input[type="text"] { width: 74px; font-weight: 500; font-size: 12px; }
@media (max-width: 520px) {
  .auth-tabs button { font-size: 10.5px; padding: 8px 4px; }
  .pair-code { font-size: 31px; }
}
