:root {
  color-scheme: light;
  --canvas: #f5f7f7;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --line: #e3e9e7;
  --ink: #20302f;
  --muted: #687976;
  --teal: #117d72;
  --teal-dark: #0b6259;
  --teal-soft: #e5f3ef;
  --red: #bf4b49;
  --red-soft: #fbeeed;
  --amber: #9e671d;
  --amber-soft: #fbf2df;
  --blue: #436e9d;
  --blue-soft: #eaf1f9;
  --shadow: 0 12px 32px rgba(31, 54, 49, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
button, input, textarea, select { letter-spacing: 0; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(17, 125, 114, .25); outline-offset: 2px; }
.lucide { width: 18px; height: 18px; stroke-width: 1.8; flex: 0 0 auto; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.spinner { width: 18px; height: 18px; border: 2px solid #bfd5d1; border-top-color: var(--teal); border-radius: 50%; display: inline-block; animation: spin .75s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.boot-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; z-index: 30; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; min-height: 78px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 7px; }
.brand-mark .lucide { width: 21px; height: 21px; stroke-width: 2; }
.brand-name { font-size: 16px; font-weight: 700; line-height: 1.2; }
.brand-subtitle { margin-top: 3px; color: var(--muted); font-size: 11px; }
.nav-label { margin: 30px 22px 9px; font-size: 11px; color: #91a09c; font-weight: 700; }
.nav { display: grid; gap: 3px; padding: 0 10px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #536660; text-align: left; font-weight: 600; }
.nav-item:hover { background: #f4f7f6; color: var(--ink); }
.nav-item.active { background: var(--teal-soft); color: var(--teal-dark); }
.nav-item .lucide { width: 17px; height: 17px; }
.sidebar-spacer { flex: 1; }
.sidebar-foot { border-top: 1px solid var(--line); padding: 16px 18px 20px; }
.sidebar-bot { display: flex; gap: 9px; align-items: center; min-width: 0; }
.sidebar-bot .lucide { color: var(--teal); }
.sidebar-bot-copy { min-width: 0; }
.sidebar-bot-name { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-bot-state { font-size: 12px; color: var(--muted); }
.sidebar-bot-state.online { color: var(--teal); }
.logout-btn { margin-top: 16px; width: 100%; min-height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); text-align: left; }
.logout-btn:hover { background: var(--surface-soft); color: var(--ink); }
.logout-btn .lucide { width: 16px; height: 16px; }
.sidebar-backdrop { display: none; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-left { flex: 1 1 auto; overflow: hidden; }
.topbar-actions { flex: 0 0 auto; }
.topbar-title { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-separator { color: #b7c2bf; }
.topbar-parent { color: var(--muted); white-space: nowrap; }
.topbar-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.content { width: min(100%, 1480px); margin: 0 auto; padding: 30px 36px 64px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: 24px; line-height: 1.3; font-weight: 700; }
h2 { margin-bottom: 0; font-size: 16px; line-height: 1.4; font-weight: 700; }
h3 { font-size: 14px; }
.page-subtitle { color: var(--muted); margin: 0; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; font-weight: 650; white-space: nowrap; }
.btn .lucide { width: 16px; height: 16px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--teal-dark); }
.btn-secondary { background: #fff; border-color: #d8e2df; color: var(--ink); }
.btn-secondary:hover:not(:disabled) { background: #f7f9f8; }
.btn-danger { color: #fff; background: var(--red); }
.btn-danger:hover:not(:disabled) { background: #a93a38; }
.btn-quiet { color: var(--teal); background: transparent; padding: 0 8px; }
.btn-quiet:hover { background: var(--teal-soft); }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: transparent; }
.icon-btn:hover:not(:disabled) { background: #eff4f2; color: var(--ink); }
.icon-btn.danger:hover:not(:disabled) { color: var(--red); background: var(--red-soft); }
.menu-btn { display: none; }
.status-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 62px; padding: 12px 16px; margin-bottom: 20px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 6px; background: #fff; }
.status-band.warning { border-left-color: var(--amber); }
.status-band.error { border-left-color: var(--red); }
.status-band-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.status-band-main > .lucide { color: var(--teal); width: 20px; height: 20px; }
.status-band.warning .status-band-main > .lucide { color: var(--amber); }
.status-band.error .status-band-main > .lucide { color: var(--red); }
.status-band-title { font-weight: 650; }
.status-band-detail { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.status-band-tail { color: var(--muted); font-size: 12px; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 27px; }
.metric { min-height: 112px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.metric-top .lucide { width: 18px; height: 18px; color: var(--blue); }
.metric:nth-child(2) .metric-top .lucide { color: var(--red); }
.metric:nth-child(3) .metric-top .lucide { color: var(--teal); }
.metric:nth-child(4) .metric-top .lucide { color: var(--amber); }
.metric-value { margin-top: 14px; font-size: 27px; font-weight: 720; line-height: 1; font-variant-numeric: tabular-nums; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.section-head-meta { color: var(--muted); font-size: 12px; }
.panel { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); overflow: hidden; }
.panel-pad { padding: 20px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 43px; background: #f9fbfa; color: var(--muted); font-size: 12px; font-weight: 650; text-align: left; white-space: nowrap; }
th, td { padding: 10px 18px; border-bottom: 1px solid #edf0ef; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfc; }
td { height: 62px; vertical-align: middle; }
.cell-title { display: block; max-width: 260px; color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.cell-sub { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
.cell-actions { text-align: right; }
.cell-actions .icon-btn { margin: 0 -8px 0 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.badge .lucide { width: 13px; height: 13px; }
.badge-good { background: var(--teal-soft); color: var(--teal-dark); }
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.badge-bad { background: var(--red-soft); color: var(--red); }
.badge-neutral { background: #eef2f1; color: #64736f; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.tiny-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mobile-groups { display: none; }
.empty-state { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; text-align: center; color: var(--muted); }
.empty-state > .lucide { width: 28px; height: 28px; color: #94aaa4; margin-bottom: 14px; }
.empty-state strong { color: var(--ink); font-size: 15px; }
.empty-state p { margin: 5px 0 15px; max-width: 470px; }
.empty-actions { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.loading-state { min-height: 240px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.error-state > .lucide { color: var(--red); }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.detail-title-line { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.detail-title-line h1 { margin: 0; overflow-wrap: anywhere; }
.detail-meta { margin-top: 6px; color: var(--muted); font-size: 12px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(260px, .76fr); gap: 17px; margin-top: 22px; }
.detail-section { min-width: 0; }
.detail-section .section-head { min-height: 26px; }
.rule-row { min-height: 84px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf0ef; }
.rule-row:last-child { border-bottom: 0; }
.rule-copy { min-width: 0; }
.rule-title { display: block; font-weight: 650; }
.rule-desc { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.switch { position: relative; width: 42px; height: 24px; flex: 0 0 auto; }
.switch input { width: 100%; height: 100%; margin: 0; opacity: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch-track { display: block; width: 42px; height: 24px; background: #c5d1cd; border-radius: 20px; transition: background .18s ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #0002; transition: transform .18s ease; }
.switch input:checked + .switch-track { background: var(--teal); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 3px solid rgba(17, 125, 114, .25); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .5; }
.test-panel { padding: 20px; }
.test-panel h3 { margin: 0 0 4px; }
.test-panel .panel-note { margin: 0 0 15px; }
.field-label { display: block; margin-bottom: 7px; font-size: 12px; color: #50615c; font-weight: 650; }
.field { width: 100%; min-height: 38px; padding: 8px 11px; border: 1px solid #d5dfdb; border-radius: 6px; background: #fff; color: var(--ink); outline: 0; }
.field::placeholder { color: #9ca9a5; }
.field:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(17, 125, 114, .12); }
textarea.field { min-height: 95px; resize: vertical; }
.field-error { border-color: var(--red) !important; }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.form-error { color: var(--red); font-size: 12px; margin: 8px 0 0; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.test-result { margin-top: 15px; display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 5px; background: var(--teal-soft); color: var(--teal-dark); }
.test-result.hit { background: var(--red-soft); color: #a23d3a; }
.test-result .lucide { width: 17px; height: 17px; margin-top: 2px; }
.test-result strong { font-weight: 700; overflow-wrap: anywhere; }
.words-section { margin-top: 29px; }
.words-toolbar { display: flex; gap: 9px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.search-box { position: relative; width: min(100%, 260px); }
.search-box .lucide { position: absolute; top: 10px; left: 10px; width: 17px; height: 17px; color: #94a29e; }
.search-box .field { padding-left: 34px; }
.word-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 18px; border-bottom: 1px solid var(--line); background: #fcfdfc; }
.word-form textarea { min-height: 70px; }
.word-form .btn { align-self: end; min-height: 38px; }
.word-list-head { padding: 11px 18px; color: var(--muted); background: #f9fbfa; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 650; }
.word-list { max-height: 420px; overflow: auto; }
.word-row { min-height: 51px; display: grid; grid-template-columns: minmax(0, 1fr) 145px 36px; align-items: center; gap: 8px; padding: 6px 18px; border-bottom: 1px solid #edf0ef; }
.word-row:last-child { border-bottom: 0; }
.word-phrase { font-weight: 600; overflow-wrap: anywhere; }
.word-date { font-size: 12px; color: var(--muted); }
.word-list .empty-state { min-height: 140px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .field { width: auto; min-width: 180px; }
.log-kind { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.log-kind .lucide { width: 15px; height: 15px; color: var(--blue); }
.log-kind.join .lucide { color: var(--teal); }
.log-excerpt { display: block; max-width: 410px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #435450; }
.log-error { display: block; max-width: 410px; margin-top: 2px; color: var(--red); font-size: 12px; overflow-wrap: anywhere; }
.logs-table { min-width: 760px; }
.mobile-logs { display: none; }
.log-card { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 14px; }
.log-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; }
.log-card-group { margin-top: 12px; font-weight: 700; overflow-wrap: anywhere; }
.log-card-id { margin-top: 2px; color: var(--muted); font-size: 11px; }
.log-card-kind { display: flex; align-items: center; gap: 5px; margin-top: 12px; color: var(--blue); font-size: 12px; font-weight: 650; }
.log-card-kind .lucide { width: 15px; height: 15px; }
.log-card-excerpt { margin-top: 5px; overflow-wrap: anywhere; }
.log-card-phrase { margin-top: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.log-card-error { margin-top: 8px; color: var(--red); font-size: 12px; overflow-wrap: anywhere; }
.error-banner { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; margin-bottom: 18px; color: #9f413e; background: var(--red-soft); border: 1px solid #f2cfcd; border-radius: 6px; }
.error-banner .lucide { width: 17px; height: 17px; margin-top: 2px; }
.error-banner button { margin-left: auto; }
.notice { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; border-radius: 5px; background: var(--amber-soft); color: #8b5b20; font-size: 12px; }
.notice .lucide { width: 16px; height: 16px; margin-top: 1px; }
.notice strong { color: #744710; }

.modal-layer { position: fixed; z-index: 80; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(24, 42, 38, .38); }
.modal { width: min(100%, 470px); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border: 1px solid #d5e0db; border-radius: 8px; box-shadow: var(--shadow); }
.modal-wide { width: min(100%, 620px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 12px; }
.modal-head h2 { font-size: 17px; }
.modal-body { padding: 4px 20px 20px; }
.modal-body p { color: var(--muted); margin-bottom: 17px; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line); background: #fcfdfc; }
.recognized-list { display: grid; gap: 8px; max-height: min(52vh, 390px); overflow-y: auto; padding-right: 2px; }
.recognized-group { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.recognized-group:hover { border-color: #a6c8bd; background: #f8fbfa; }
.recognized-group-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.recognized-group-copy strong { overflow-wrap: anywhere; }
.recognized-group-copy .mono { color: var(--muted); font-size: 12px; }
.recognized-group > .lucide:last-child { width: 17px; height: 17px; color: #8ba49c; flex: 0 0 auto; }
.recognized-empty { min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #cbdad5; border-radius: 6px; color: var(--muted); text-align: center; }
.recognized-empty .lucide { width: 27px; height: 27px; color: #8aa69d; margin-bottom: 4px; }
.recognized-empty strong { color: var(--ink); }
.recognized-empty span { max-width: 390px; font-size: 12px; }
.toast-stack { position: fixed; z-index: 100; bottom: 22px; right: 22px; width: min(360px, calc(100vw - 32px)); display: grid; gap: 8px; }
.toast { display: flex; gap: 9px; align-items: flex-start; min-height: 47px; padding: 12px 14px; border: 1px solid #cde4dc; border-radius: 6px; background: #fff; box-shadow: var(--shadow); color: var(--ink); }
.toast .lucide { width: 18px; height: 18px; color: var(--teal); margin-top: 1px; }
.toast.error { border-color: #f0d0cd; }
.toast.error .lucide { color: var(--red); }
.toast-message { flex: 1; overflow-wrap: anywhere; }
.toast .icon-btn { width: 24px; height: 24px; margin: -3px -5px -3px 0; }
.toast .icon-btn .lucide { width: 15px; height: 15px; color: var(--muted); }

.auth-screen { min-height: 100vh; display: grid; grid-template-rows: 1fr auto; padding: 28px; }
.auth-center { width: min(100%, 390px); align-self: center; justify-self: center; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 11px; margin-bottom: 27px; }
.auth-brand .brand-mark { width: 42px; height: 42px; }
.auth-brand strong { font-size: 20px; }
.auth-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 15px 45px rgba(29, 57, 49, .06); }
.auth-card h1 { margin-bottom: 6px; font-size: 22px; }
.auth-card p { margin-bottom: 25px; color: var(--muted); }
.auth-card .field { height: 43px; }
.auth-card .field-wrap { margin-bottom: 16px; }
.auth-card .btn { width: 100%; min-height: 43px; margin-top: 7px; }
.auth-foot { color: #8b9b95; text-align: center; font-size: 12px; padding: 18px; }

@media (max-width: 1120px) {
  .content { padding-left: 25px; padding-right: 25px; }
  .topbar { padding: 0 25px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-section:last-child { max-width: none; }
}

@media (max-width: 850px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; width: 252px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(27, 45, 41, .36); }
  .menu-btn { display: inline-grid; }
  .topbar { height: 60px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .content { padding: 21px 16px 42px; }
  .topbar { padding: 0 12px; }
  .topbar-time { display: none; }
  .page-heading { flex-direction: column; align-items: stretch; margin-bottom: 17px; }
  h1 { font-size: 20px; }
  .page-heading .btn { min-height: 36px; }
  .status-band { align-items: flex-start; }
  .status-band-tail { display: none; }
  .metrics { gap: 8px; margin-bottom: 23px; }
  .metric { min-height: 91px; padding: 12px; }
  .metric-value { font-size: 23px; margin-top: 10px; }
  .desktop-groups { display: none; }
  .desktop-logs { display: none; }
  .mobile-logs { display: grid; gap: 8px; }
  .mobile-groups { display: grid; gap: 8px; }
  .mobile-group { display: block; width: 100%; min-height: 107px; padding: 15px; text-align: left; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
  .mobile-group:hover { border-color: #b6cfc6; }
  .mobile-group-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
  .mobile-group-top > div { min-width: 0; }
  .mobile-group-name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
  .mobile-group-id { color: var(--muted); font-size: 11px; margin-top: 1px; }
  .mobile-group-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 12px; }
  .mobile-group-bottom span + span::before { content: "·"; margin-right: 7px; color: #abb8b4; }
  .detail-header { display: block; }
  .detail-header .heading-actions { margin-top: 15px; }
  .rule-row { padding: 14px 16px; min-height: 78px; }
  .word-form { display: block; padding: 14px; }
  .word-form .btn { margin-top: 10px; width: 100%; }
  .word-row { grid-template-columns: minmax(0, 1fr) 36px; padding: 6px 12px; }
  .word-date { display: none; }
  .word-list-head { padding-left: 12px; }
  .words-toolbar { display: block; }
  .words-toolbar .search-box { width: 100%; margin-top: 10px; }
  .toolbar { width: 100%; }
  .toolbar .field { flex: 1; min-width: 0; }
  .auth-screen { padding: 16px; }
  .auth-card { padding: 23px; }
}
