/* mobile.css (Phase 3 scaffold)
   Intent: a lightweight mobile-friendly manager that can run in any modern browser.
   No framework, no remote deps. */

:root{
  --bg: #fbfbff;
  --card: #ffffff;
  --ink: #15151f;
  --muted: #61627a;
  --border: #ececff;
  --primary: #5a45ff;
  --primary-ink: #ffffff;
  --danger: #ff3d5c;
  --ok: #2fbf71;
  --warn: #ff9b3d;
  --radius: 16px;
  --status-overlay: linear-gradient(180deg, rgba(246,248,255,0.96), rgba(246,248,255,0.78) 52%, rgba(246,248,255,0));
}

[data-theme="dark"]{
  --bg: #090c1f;
  --card: #121736;
  --ink: #eaf0ff;
  --muted: #9ea9c9;
  --border: #2a3566;
  --primary: #7467ff;
  --primary-ink: #f8f9ff;
  --danger: #ff6c8b;
  --ok: #41c783;
  --warn: #ffb35f;
  --status-overlay: linear-gradient(180deg, rgba(11,16,34,0.96), rgba(11,16,34,0.82) 52%, rgba(11,16,34,0));
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(90,69,255,0.12), transparent 55%),
    radial-gradient(900px 520px at 92% -20%, rgba(40,187,255,0.10), transparent 55%),
    var(--bg);
}
body::before{
  content:"";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(env(safe-area-inset-top, 0px) + 20px);
  z-index: 1000;
  pointer-events: none;
  background: var(--status-overlay);
}

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px));
  position: relative;
}

.top{
  display:flex;
  flex-direction: column;
  gap:4px;
  padding: 12px 14px 14px 14px;
  width: 100%;
  position: relative;
  border-radius: 16px;
  background: rgba(255,255,255,0.54);
  border: 1px solid rgba(90,69,255,0.12);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(16,24,58,0.07);
}

.brand-row{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding-right: 104px;
}

.brandText{
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.buildStamp{
  font-size: 10px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(90,69,255,0.6);
  white-space: nowrap;
}

#brandTitle{
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
  text-align: left;
}

.logoWrap{
  width:56px;
  height:56px;
  flex: 0 0 56px;
  border-radius: 12px;
  border:1px solid rgba(90,69,255,0.18);
  background:
    radial-gradient(24px 24px at 30% 28%, rgba(255,255,255,0.9), rgba(255,255,255,0.0) 70%),
    linear-gradient(135deg, rgba(90,69,255,0.85), rgba(40,187,255,0.75));
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.logoImg{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.floatingControls{
  display: flex;
  flex-direction: row;
  gap: 4px;
  position: absolute;
  top: 12px;
  right: 14px;
}

.floatingControls .iconToggle{
  box-shadow: 0 4px 12px rgba(18,25,56,0.12);
  border: 1px solid rgba(90,69,255,0.15);
  background: rgba(255,255,255,0.8);
}

[data-theme="dark"] .floatingControls .iconToggle{
  background: rgba(20,24,45,0.9);
  color: #eaf0ff;
}

.verBadge{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
[data-theme="dark"] .verBadge{
  background: rgba(10,14,31,0.85);
}

.iconToggle{
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 12px;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand h1{
  margin:0;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.brand p{
  margin:4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.brandSlogan{
  margin: 0;
  color: #8b5cf6;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  white-space: nowrap;
  width: 100%;
  padding-right: 104px;
  text-align: justify;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tabs{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:8px;
  align-items:stretch;
  width: 100%;
  margin-top: 2px;
}

.tab{
  border:1px solid var(--border);
  background: rgba(255,255,255,0.75);
  color: #2a2a3d;
  padding: 10px 4px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 10px;
  cursor:pointer;
  white-space: nowrap;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.tab[data-active="1"]{
  background: rgba(90,69,255,0.12);
  border-color: rgba(90,69,255,0.35);
  color: #2f2a71;
}

.count-badge{
  font-size: 12px;
  color: var(--muted);
  font-weight: normal;
  margin-left: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
  width: 100%;
  align-items: start;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px;
  width: 100%;
  justify-self: stretch;
  box-shadow: 0 10px 30px rgba(20,18,60,0.05);
}

#panel-words,
#panel-quotes,
#panel-review,
#panel-settings{
  max-width: none;
}

.card h2{
  margin:0 0 10px;
  font-size: 14px;
  letter-spacing:0.2px;
}

.row{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.muted{ color: var(--muted); }
.small{ font-size: 12px; }

.btn{
  border:1px solid var(--border);
  background:#fff;
  color:#2a2a3d;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
  min-height: 44px;
  cursor:pointer;
}
.btn:disabled{ opacity:0.55; cursor:not-allowed; }

.btn.primary{
  border-color: rgba(90,69,255,0.30);
  background: var(--primary);
  color: var(--primary-ink);
}
.btn.danger{
  border-color: rgba(255,61,92,0.3);
  background: rgba(255,61,92,0.08);
  color: #8a1530;
}
.btn.is-playing{
  border-color: rgba(90,69,255,0.45);
  background: rgba(90,69,255,0.14);
  color: #2f2a71;
}

.pill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 800;
  color: #31314c;
}
.pill.warn{
  border-color: rgba(255,155,61,0.32);
  background: rgba(255,155,61,0.10);
  color:#7a3b00;
}
.pill.error{
  border-color: rgba(255,61,92,0.30);
  background: rgba(255,61,92,0.10);
  color:#8a1530;
}
.pill.laser{
  border-color: rgba(90,69,255,0.35);
  background: rgba(90,69,255,0.10);
  color: #2f2a71;
}

.stat{
  display:flex;
  gap:10px;
  align-items:baseline;
  flex-wrap:wrap;
}
.stat b{ font-size: 22px; }

input[type="number"], input[type="text"]{
  border:1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
  min-height: 44px;
  outline:none;
}
input[type="file"].fileInputNative{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.filePicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: min(520px, calc(100% - 8px));
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.86);
  cursor: pointer;
}
.filePickerBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(90,69,255,0.28);
  border-radius: 10px;
  background: rgba(90,69,255,0.08);
  color: #2f2a71;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.filePickerName{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
[data-theme="dark"] .filePicker{
  background: rgba(12,17,40,0.84);
}
[data-theme="dark"] .filePickerBtn{
  border-color: rgba(116,103,255,0.46);
  background: rgba(116,103,255,0.20);
  color: #dfe4ff;
}
select{
  border:1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  min-height: 44px;
  outline:none;
}
/* Compact select for sort - fits ~3 Chinese chars */
#w-sort, #q-sort{
  min-width: 64px;
  max-width: 64px;
  padding: 10px 8px;
  text-align: center;
}
#rv-status-filter, #rv-meaning-mode{
  min-width: 128px;
}
#limit{
  width: 64px !important;
  text-align: center;
}
#w-batch-del, #q-batch-del{
  display: none;
}
.toolbar-words, .toolbar-quotes{
  align-items: stretch;
}
input[readonly]{
  opacity: 0.96;
  cursor: default;
}
input::placeholder{
  color: var(--muted);
}
/* Search button styling */
#w-search, #q-search{
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.phoneticRow{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.phoneticPill{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.76);
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}
[data-theme="dark"] .phoneticPill{
  background: rgba(12,17,40,0.88);
}

.reviewCard{
  display:none;
  margin-top: 16px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background:
    radial-gradient(420px 180px at 20% 0%, rgba(90,69,255,0.10), transparent 60%),
    var(--card);
  padding: 14px 14px;
}
.reviewCard[data-on="1"]{ display:block; }
.reviewHeadRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.rvMoreWrap{
  position: relative;
}
.rvMoreBtn{
  width: 38px;
  height: 34px;
  min-width: 38px;
  padding: 0;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
}
.rvMoreMenu{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  z-index: 20;
  display: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 14px 30px rgba(10,14,31,0.18);
  padding: 8px;
  gap: 8px;
}
.rvMoreMenu[data-open="1"]{
  display: grid;
}
.rvMoreMenu .btn{
  width: 100%;
  justify-content: flex-start;
}

.qWord{
  font-size: 32px;
  font-weight: 1000;
  letter-spacing: 0.2px;
  margin: 2px 0 6px;
  word-break: break-word;
}
.qMeaning{
  font-size: 14px;
  line-height: 1.6;
  color: #2c2c44;
  margin: 0;
  white-space: pre-wrap;
}

.rateRow{
  display:flex;
  gap:10px;
  margin-top: 12px;
}
.rate{
  flex:1;
  height: 46px;
  border-radius: 16px;
  border: none;
  color:#fff;
  font-weight: 1000;
  font-size: 14px;
  cursor:pointer;
}
.rate.r0{ background: var(--danger); }
.rate.r3{ background: var(--warn); }
.rate.r5{ background: var(--ok); }

.toast{
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #44445f;
  border-radius: 8px;
  padding: 8px 12px;
  transition: background 0.2s, border-color 0.2s;
}

/* Toast types - Light mode */
.toast[data-toast-type="success"] {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}
.toast[data-toast-type="warning"] {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}
.toast[data-toast-type="info"] {
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e40af;
}
.toast[data-toast-type="error"] {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Toast types - Dark mode */
@media (prefers-color-scheme: dark) {
  .toast[data-toast-type="success"] {
    background: #166534;
    border-color: #86efac;
    color: #dcfce7;
  }
  .toast[data-toast-type="warning"] {
    background: #b45309;
    border-color: #fcd34d;
    color: #fef3c7;
  }
  .toast[data-toast-type="info"] {
    background: #1e40af;
    border-color: #93c5fd;
    color: #dbeafe;
  }
  .toast[data-toast-type="error"] {
    background: #991b1b;
    border-color: #fca5a5;
    color: #fee2e2;
  }
}

/* Toast types - Force dark mode */
body.vb-force-dark .toast[data-toast-type="success"] {
  background: #15803d;
  border-color: #86efac;
  color: #dcfce7;
}
body.vb-force-dark .toast[data-toast-type="warning"] {
  background: #b45309;
  border-color: #fcd34d;
  color: #fef3c7;
}
body.vb-force-dark .toast[data-toast-type="info"] {
  background: #1e40af;
  border-color: #93c5fd;
  color: #dbeafe;
}
body.vb-force-dark .toast[data-toast-type="error"] {
  background: #991b1b;
  border-color: #fca5a5;
  color: #fee2e2;
}
.hintBox{
  border:1px dashed var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.72);
}

.qExportProgress{
  margin-top: 10px;
}
.qExportProgressBar{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(90,69,255,0.14);
  border: 1px solid rgba(90,69,255,0.22);
  overflow: hidden;
}
.qExportProgressFill{
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5a45ff, #2bbcff);
  transition: width .16s ease;
}
.qExportFailWrap{
  margin-top: 10px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.74);
}
.qExportFailList{
  margin: 8px 0 0;
  padding-left: 18px;
  max-height: 148px;
  overflow: auto;
}
.qExportFailList li{
  margin: 4px 0;
  font-size: 12px;
  color: #4a4b64;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listItem{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 12px;
  background: rgba(255,255,255,0.92);
  cursor:pointer;
  margin-bottom: 10px;
  position: relative;
}
.phonRow{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}
.btn.mini{
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.listItem:hover{
  border-color: rgba(90,69,255,0.32);
}
.liTop{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.liTitle{
  font-weight: 1000;
  font-size: 16px;
  color:#1b1b2a;
  word-break: break-word;
}
.liSub{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.liBadges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.liPick{
  display:none;
  position:absolute;
  left: 12px;
  top: 12px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.listItem[data-pick="1"] .liPick{
  display:block;
}
.listItem[data-pick="1"]{
  padding-left: 40px;
}
.badge{
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 900;
  color:#3b3b55;
}
.badge.fav{
  border-color: rgba(255,180,0,0.35);
  background: rgba(255,180,0,0.10);
  color:#6a4b00;
}
.badge.due{
  border-color: rgba(255,61,92,0.30);
  background: rgba(255,61,92,0.08);
  color:#8a1530;
}
.badge.exportBtn{
  cursor: pointer;
  border-color: rgba(90,69,255,0.32);
  background: rgba(90,69,255,0.10);
  color: #2f2a71;
}
[data-theme="dark"] .brandSlogan{
  color: #9da9cf;
}
[data-theme="dark"] .buildStamp{
  color: rgba(209, 198, 255, 0.64);
}
[data-theme="dark"] .badge.exportBtn{
  border-color: rgba(116,103,255,0.48);
  background: rgba(116,103,255,0.20);
  color: #dfe4ff;
}

/* List hosts: page scroll, not inner fixed-scroll. */
#w-list, #q-list{
  position: relative;
  max-height: none;
  overflow: visible;
  padding-right: 4px;
}
.virtSpacer{ width:100%; }
.virtLayer{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.virtRow{
  position: absolute;
  left: 0;
  right: 0;
}

.toTopBtn{
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border:1px solid rgba(90,69,255,0.3);
  background: var(--primary);
  color: #fff;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(20,18,60,0.22);
  display: none;
}
.toTopBtn[data-on="1"]{ display: inline-flex; align-items:center; justify-content:center; }

[data-theme="dark"] .tab{
  background: rgba(17,24,52,0.82);
  border-color: #2a3566;
  color: #dbe3ff;
}
[data-theme="dark"] .tab[data-active="1"]{
  background: rgba(116,103,255,0.18);
  color: #e8ebff;
  border-color: rgba(116,103,255,0.45);
}
[data-theme="dark"] .btn{
  background: #131a3d;
  color: #e7ecff;
  border-color: #2a3566;
}
[data-theme="dark"] .btn.primary{
  background: var(--primary);
  color: #fff;
}
[data-theme="dark"] .btn.danger{
  color: #ffd7e0;
  background: rgba(255,108,139,0.14);
}
[data-theme="dark"] .card,
[data-theme="dark"] .listItem,
[data-theme="dark"] .hintBox,
[data-theme="dark"] .qExportFailWrap{
  background: rgba(18,23,54,0.96);
}
[data-theme="dark"] .qMeaning,
[data-theme="dark"] .liTitle{
  color: var(--ink);
}
[data-theme="dark"] .pill.laser{
  border-color: rgba(116,103,255,0.55);
  background: rgba(116,103,255,0.16);
  color: #dfe4ff;
}
[data-theme="dark"] .reviewCard{
  background:
    radial-gradient(420px 180px at 20% 0%, rgba(116,103,255,0.20), transparent 60%),
    rgba(16,21,46,0.98) !important;
  border-color: #2a3566;
}
[data-theme="dark"] .reviewCard .qWord{
  color: #eef2ff;
}
[data-theme="dark"] .reviewCard .qMeaning{
  color: #d9e2ff;
}
[data-theme="dark"] .top{
  background: rgba(18,23,54,0.54);
  border-radius: 16px;
  padding: 10px 60px 8px 10px;
  border: 1px solid rgba(90,69,255,0.12);
}
[data-theme="dark"] .top::before{
  background: linear-gradient(180deg, rgba(116,103,255,0.24), rgba(116,103,255,0));
}
[data-theme="dark"] select{
  background: #131a3d;
  color: #e7ecff;
  border-color: #2a3566;
}

dialog::backdrop{
  background: rgba(3, 8, 22, 0.58);
  backdrop-filter: blur(10px);
}
body.modal-open{
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
.dlgActions{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  align-items: stretch;
  position: static;
  padding-top: 10px;
  padding-bottom: 2px;
  background: transparent;
  border-top: 0;
}
.dlgActions .btn{
  min-height: 46px;
  border-radius: 14px;
}
.dlgQuoteBody{
  padding: 14px;
  max-height: min(76vh, 780px);
  overflow: auto;
}
.quotePreviewBox{
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  padding: 10px;
}
.quotePreviewHead{
  align-items: center;
  margin-bottom: 8px;
}

.quotePreviewCtrl{
  align-items: center;
  margin-top: 10px;
  row-gap: 8px;
  column-gap: 8px;
}
.quotePreviewCanvas{
  display: block;
  width: 100%;
  min-height: 260px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f1430;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.quotePreviewStage{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  column-gap: 10px;
  align-items: start;
  overflow: visible;
}

.quotePreviewSideCtrl{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  position: sticky;
  top: 8px;
  z-index: 3;
  padding-top: 6px;
}

.quotePreviewYSlider{
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  width: 34px;
  height: 260px;
}

.quotePreviewFlags{
  margin-top: 10px;
  gap: 10px;
  align-items: center;
}

.quotePreviewFlags label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.quotePreviewCtrl input[type="range"]{
  width: 120px;
  min-width: 100px;
}
.dlgQuoteView{
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.64);
}
.quoteReadEn{
  font-size: 34px;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
  word-break: break-word;
}
.quoteReadCn{
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
  color: #2f356b;
  margin-bottom: 8px;
}
.quoteReadNoteWrap{
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: 10px;
}
.quoteReadNoteWrap > summary{
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}
.quoteReadNote{
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.dlgQuoteEdit{
  margin-top: 12px;
}
[data-theme="dark"] .dlgActions{
  background: transparent;
}
[data-theme="dark"] .dlgQuoteView{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
}
[data-theme="dark"] .quotePreviewBox{
  background: rgba(15,20,46,0.92);
}
[data-theme="dark"] .quotePreviewCanvas{
  background: #090d1f;
}
[data-theme="dark"] .quoteReadCn{
  color: #c6d2ff;
}
[data-theme="dark"] dialog{
  background: #121736;
  color: var(--ink);
}
[data-theme="dark"] dialog > div:first-child{
  background: rgba(16,21,46,0.95) !important;
  border-bottom-color: #2a3566 !important;
}

@media (max-width: 899px){
  .top{
    padding: 12px 12px 14px 12px;
  }
  .brand-row{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-right: 86px;
  }
  .brandSlogan{
    padding-right: 86px;
    margin-top: 2px;
  }
  .floatingControls{
    position: absolute;
    flex-direction: column;
    gap: 8px;
    top: 12px;
    right: 12px;
  }
  .tabs{
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }
  .tab{
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 10px 6px;
    font-size: 11px;
  }
}

@media (max-width: 620px){
  .dlgActions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quoteReadEn{
    font-size: 30px;
  }
  .quoteReadCn{
    font-size: 18px;
  }
  .quotePreviewStage{
    grid-template-columns: minmax(0, 1fr) 48px;
    column-gap: 8px;
  }
  .quotePreviewYSlider{
    height: 220px;
  }
}
