:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --paper: #fff;
  --ink: #13233c;
  --muted: #526179;
  --line: #dbe4f0;
  --accent: #184fc8;
  --accent-strong: #103c9d;
  --on: #fff;
  --soft: #e9f1ff;
  --panel: #f1f5fa;
  --danger: #a62e38;
  --shadow: 0 12px 34px rgb(27 55 95 / 7%);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  font-size: 100%;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111a29;
  --paper: #18243a;
  --ink: #ecf3ff;
  --muted: #b8c7dd;
  --line: #354663;
  --accent: #a1bfff;
  --accent-strong: #c6d7ff;
  --on: #142343;
  --soft: #24375c;
  --panel: #142038;
  --danger: #ffadad;
  --shadow: 0 12px 34px rgb(0 0 0 / 14%);
}

* { box-sizing: border-box; }
[hidden], .hidden { display: none !important; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--bg); color: var(--ink); }
button, input, select, textarea { color: inherit; font: inherit; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:where(h1, h2, h3, p) { margin: 0; }
h1 { font-size: clamp(1.56rem, 2.7vw, 1.9rem); line-height: 1.24; letter-spacing: -0.025em; font-weight: 750; }
h2 { font-size: 1.25rem; line-height: 1.42; }
h3 { font-size: 1rem; }
small, .muted { color: var(--muted); font-size: 0.875rem; }

.wrap { width: calc(100% - 3rem); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-wrap { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; font-size: 1.08rem; font-weight: 720; white-space: nowrap; }
.brand-logo { width:38px; height:38px; flex:0 0 38px; object-fit:contain; }
.header-tools, .account-control, .site-footer nav { display: flex; align-items: center; min-width: 0; gap: 0.65rem 1rem; }
.header-tools > a, .site-footer nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.header-tools > a:hover, .site-footer nav a:hover { color: var(--accent); }
.header-tools > a, .account-control label { white-space: nowrap; }
.account-control { gap: 0.6rem; }
.account-control label { color: var(--muted); font-size: 0.875rem; }
.account-control select { width: clamp(8.5rem, 15vw, 13rem); min-height: 38px; font-size: 0.9rem; }
.header-tools .theme-button, .drawer-toggle, .drawer-heading button { min-height: 38px; padding: 0.4rem 0.7rem; font-size: 0.875rem; white-space: nowrap; }
.skip { position: fixed; z-index: 20; top: 0.7rem; left: 0.7rem; padding: 0.6rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-layout { flex: 1; display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: start; gap: 20px; padding-block: 22px 30px; }
.main-wrap, .function-sidebar { background: var(--paper); border: 1px solid var(--line); border-radius: 0.85rem; box-shadow: var(--shadow); }
.main-wrap { min-width: 0; min-height: 550px; padding: clamp(1.25rem, 2vw, 1.9rem); }
.page-header { margin-bottom: 1.15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.page-header p { color: var(--muted); margin-top: 0.38rem; font-size: 0.96rem; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-wrap { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 0.65rem 1.5rem; padding-block: 1.1rem; }
.footer-wrap p { color: var(--muted); font-size: 0.86rem; }
.site-footer nav { flex-wrap: wrap; }

.function-sidebar { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 0.7rem; scrollbar-width: thin; }
.nav-group { margin-bottom: 0.6rem; }
.nav-group h2 { padding: 0.33rem 0.65rem; font-size: 0.83rem; color: var(--muted); font-weight: 680; }
.nav-group ul { margin: 0; padding: 0; list-style: none; }
.nav-group li + li { margin-top: 2px; }
.function-sidebar a { display: flex; align-items: center; gap: 0.62rem; min-height: 36px; padding: 0.38rem 0.65rem; border-radius: 0.5rem; color: var(--ink); text-decoration: none; font-size: 0.91rem; }
.function-sidebar a:hover { color: var(--accent); background: var(--panel); }
.function-sidebar a[aria-current="page"] { color: var(--accent); background: var(--soft); font-weight: 700; }
.nav-order { flex: 0 0 1.2rem; color: var(--muted); font: 0.81rem/1 ui-monospace, Consolas, monospace; }
.function-sidebar a[aria-current="page"] .nav-order { color: inherit; }
.nav-extra { border-top: 1px solid var(--line); padding-top: 0.45rem; }
.nav-extra a { color: var(--accent); }
.drawer-toggle, .drawer-heading, .drawer-backdrop { display: none; }
.storage-status { color: var(--muted); font-size: 0.82rem; margin-top: 1.35rem; }
.storage-status:empty { display: none; }

.quick-form .field:first-child { margin-top: 0; }
.input-row { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(90px, auto); }
.input-row select { max-width: 11rem; }
.quick-actions { margin-top: 1rem; }
.quick-preview { padding: 1rem; }
.quick-preview h2 { font-size: 1.05rem; }
.inline-result { margin-top: 0.85rem; padding: 0.95rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0.7rem; }
.inline-result .field { margin-top: 0; }
.quick-help { margin-top: 0.85rem; color: var(--muted); font-size: 0.9rem; }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.preset { border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.9rem; overflow-wrap: anywhere; }
.preset h2 { font-size: 1.08rem; }
.preset p { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }
.preset button { margin-top: 0.75rem; }
.preset details { font-size: 0.91rem; margin-top: 0.6rem; }

.field { display: grid; gap: 0.34rem; margin: 0.85rem 0; min-width: 0; }
.field label, .field legend { font-size: 0.94rem; font-weight: 650; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 0.57rem 0.72rem;
  border: 1px solid var(--line); border-radius: 0.55rem; background-color: var(--paper);
}
select { appearance: none; padding-right: 1.65rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-size: 5px 5px; background-position: calc(100% - 13px) center, calc(100% - 8px) center; background-repeat: no-repeat; }
textarea { resize: vertical; }
::placeholder { color: var(--muted); opacity: 0.82; }
button, .button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 0.55rem; padding: 0.47rem 0.77rem; min-height: 42px; cursor: pointer; font-weight: 620; font-size: 0.93rem; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
button:hover, .button:hover { border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: 0.55; cursor: default; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--on); }
.primary:hover { background: var(--accent-strong); color: var(--on); }
.text-button { background: transparent; border-color: transparent; color: var(--accent); }
.danger, .error { color: var(--danger); }
.error { white-space: pre-wrap; overflow-wrap: anywhere; }
.small { min-height: 39px; font-size: 0.86rem; padding: 0.3rem 0.57rem; }
.row, .toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; }
.cols, .split, .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.intro { color: var(--muted); margin: 0.45rem 0 0.9rem; }
.notice, .pane-note, .panStatus { background: var(--panel); color: var(--muted); padding: 0.68rem 0.8rem; border-radius: 0.55rem; margin-top: 0.8rem; font-size: 0.91rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.panStatus.good { color: var(--accent); }
.panStatus.bad { color: var(--danger); }
.panBox { border: 1px solid var(--line); border-radius: 0.7rem; min-width: 0; padding: 0.9rem; }
.previewCard { border: 1px solid var(--line); background: var(--panel); border-radius: 0.7rem; padding: 0.85rem; min-width: 0; margin-top: 0.85rem; }
.previewCard h3 { margin-bottom: 0.55rem; }
.chat { display: flex; align-items: flex-start; gap: 0.65rem; margin-top: 0.75rem; }
.avatar { width: 35px; height: 35px; flex: none; display: grid; place-items: center; background: var(--soft); color: var(--accent); border-radius: 0.5rem; font-size: 0.87rem; font-weight: 700; }
.bubble { padding: 0.55rem 0.75rem; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 0 0.65rem 0.65rem 0.65rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble a { font-weight: 600; }
.mono, code, pre { font-family: ui-monospace, Consolas, "Microsoft YaHei", monospace; font-size: 0.88rem; }
code, pre { overflow-wrap: anywhere; white-space: pre-wrap; }
pre { background: var(--panel); padding: 0.8rem; border-radius: 0.5rem; }
.count, .detail, .empty { color: var(--muted); font-size: 0.9rem; }
.list { display: grid; gap: 0.45rem; margin-top: 0.6rem; }
.item { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; padding: 0.62rem; border: 1px solid var(--line); border-radius: 0.55rem; }
.item .body { flex: 1 1 min(100%, 14rem); display: grid; min-width: 0; gap: 0.2rem; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 0.55rem; margin-block: 0.65rem; }
.stats > div { display: grid; background: var(--panel); border-radius: 0.55rem; padding: 0.6rem; }
.divider { border-top: 1px solid var(--line); margin-block: 1.1rem; }
.check { display: flex; align-items: baseline; gap: 0.38rem; margin-block: 0.6rem; }
fieldset { border: 1px solid var(--line); border-radius: 0.55rem; min-width: 0; margin: 0.8rem 0; }
summary { cursor: pointer; color: var(--accent); }

.modal { position: fixed; inset: 0; width: min(43rem, calc(100% - 1.4rem)); max-height: calc(100% - 1.4rem); overflow: auto; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--paper); color: var(--ink); box-shadow: 0 16px 64px rgb(0 0 0 / 30%); padding: clamp(1rem, 4vw, 1.5rem); z-index: 10; }
.modal::backdrop { background: rgb(12 23 42 / 55%); }
.modal:not([open]), .toast:empty, .dialog-status:empty { display: none; }
.dialog-status { color: var(--accent); font-weight: 650; margin-top: 0.7rem; }
.clipboard-buffer { position: fixed; left: -9999px; top: 0; }
.toast { position: fixed; z-index: 20; bottom: 1.1rem; right: 1.1rem; padding: 0.65rem 1rem; max-width: min(32rem, calc(100% - 2.2rem)); border-radius: 0.65rem; background: #13233c; color: #fff; box-shadow: var(--shadow); }
.article { max-width: 49rem; line-height: 1.8; }
.article h2:not(:first-child) { margin-top: 1.35rem; }
.article p, .article dl, .article ul, .article ol { margin: 0.55rem 0 0.85rem; }
.article ul, .article ol { padding-inline-start: 1.4rem; }
.article dt { font-weight: 650; margin-top: 0.6rem; }
.article dd { margin-inline-start: 0; color: var(--muted); }
.article details { margin-block: 0.6rem; }

@media (max-width: 980px) {
  .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 1.5rem); }
  .header-wrap { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: 0.65rem; gap: 0.65rem 0.5rem; }
  .header-tools { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 0.55rem 0.75rem; }
  .header-tools > a { align-self: end; display: flex; align-items: center; min-height: 44px; }
  .header-tools .theme-button, .drawer-toggle, .drawer-heading button { min-height: 44px; }
  .account-control { flex-direction: column; align-items: start; gap: 0.22rem; }
  .account-control select { width: 100%; min-height: 44px; }
  .site-layout { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; padding-block: 0.75rem 1.1rem; }
  .main-wrap { min-height: 0; padding: 1rem; }
  .page-header { margin-bottom: 0.9rem; padding-bottom: 0.75rem; }
  .function-sidebar { position: static; max-height: none; }
  .layout-ready .drawer-toggle { display: inline-flex; gap: 0.45rem; }
  .menu-icon { position: relative; width: 15px; height: 10px; border-block: 1px solid currentColor; }
  .menu-icon::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid currentColor; }
  .layout-ready .function-sidebar { display: none; }
  body.drawer-open { overflow: hidden; }
  .drawer-open .function-sidebar { display: block; position: fixed; inset: 0 auto 0 0; width: min(20rem, 87vw); z-index: 40; border-radius: 0 0.85rem 0.85rem 0; padding: 0.8rem; }
  .drawer-open .drawer-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 0.4rem 0.55rem; margin-bottom: 0.45rem; }
  .drawer-open .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 39; width: 100%; height: 100%; border: 0; border-radius: 0; background: rgb(9 27 50 / 48%); cursor: default; }
  .function-sidebar a { min-height: 42px; }
}

@media (max-width: 470px) {
  .quick-actions #qGen { flex: 1 0 100%; min-height: 47px; }
  .quick-actions #qClear, .quick-actions #qSave { flex: 1 1 auto; }
  .form-button, .input-row select { min-width: 0; }
  .preset-grid, .cols, .split, .two { grid-template-columns: minmax(0, 1fr); }
  .preset { padding: 0.72rem; }
  input:not([type="checkbox"]):not([type="radio"]), textarea, select { font-size: 1rem; }
}

.legacy-style-1{flex:1}
.legacy-style-2{width:auto;max-width:150px}
.legacy-style-3{margin-top:15px}
.legacy-style-4{margin-top:18px}
.legacy-style-5{font-size:12px;margin-top:12px}

#batch { font-size: 0.875rem; }
#batch .batch-step { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.25rem; }
#batch .batch-step:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
#batch .batch-head, #batch .batch-title, #batch .batch-actions, #batch .batch-tools {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
#batch .batch-head { justify-content: space-between; margin-bottom: 0.65rem; }
#batch .batch-title { gap: 0.6rem; }
#batch .batch-title h2 { font-size: 1.06rem; }
#batch .batch-num {
  display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 0.45rem; background: var(--soft); color: var(--accent); font-weight: 700;
}
#batch .batch-hint, #batch .batch-note, #batch .batch-check { color: var(--muted); font-size: 0.78rem; }
#batch label { font-weight: 600; }
#batch .batch-check { display: flex; align-items: center; gap: 0.35rem; font-weight: 400; }
#batch .batch-actions { margin-block: 0.5rem; }
#batch .batch-head .batch-actions { margin-block: 0; }
#batch .batch-spacer { flex: 1; }
#batch .batch-actions select { width: auto; max-width: 100%; }
#batch button { min-height: 38px; border-radius: 0.45rem; padding: 0.4rem 0.8rem; font-size: 0.875rem; white-space: nowrap; }
#batch button:not(.primary):hover { background: var(--soft); }
#batch #bInput { display: block; min-height: 110px; margin-block: 0.5rem 0.7rem; }
#batch .batch-status { min-height: 1.45rem; color: var(--accent); white-space: pre-wrap; overflow-wrap: anywhere; }
#batch .batch-status.error, #batch .batch-hint.error { color: var(--danger); }
#batch .batch-note { background: var(--panel); border-radius: 0.5rem; padding: 0.65rem 0.8rem; margin-top: 0.6rem; }
#batch .batch-tools {
  background: var(--panel); border: 1px solid var(--line); padding: 0.65rem;
  border-radius: 0.5rem; margin-bottom: 0.75rem;
}
#batch .batch-tools > input { width: 148px; min-height: 36px; }
#batch .batch-tools button { padding: 0.35rem 0.6rem; min-height: 34px; font-size: 0.82rem; }
#batch .batch-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 0.5rem; }
#batch table { width: 100%; min-width: 840px; border-collapse: collapse; table-layout: fixed; }
#batch .batch-col-select { width: 38px; }
#batch .batch-col-index { width: 42px; }
#batch .batch-col-name { width: 24%; }
#batch .batch-col-type { width: 95px; }
#batch .batch-col-pwd { width: 105px; }
#batch .batch-col-actions { width: 126px; }
#batch th, #batch td { padding: 0.55rem 0.5rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
#batch th { font-size: 0.78rem; background: var(--panel); color: var(--muted); }
#batch tr:last-child td { border-bottom: 0; }
#batch td input:not([type="checkbox"]) { font-size: 0.83rem; padding: 0.4rem 0.5rem; min-height: 35px; }
#batch td input.batch-invalid { border-color: var(--danger); }
#batch td .batch-mini { display: block; font-size: 0.73rem; color: var(--muted); line-height: 1.45; margin-top: 0.2rem; }
#batch td .batch-row-buttons { display: flex; gap: 0.2rem; flex-wrap: wrap; }
#batch td button { padding: 0.18rem 0.36rem; min-height: 27px; font-size: 0.75rem; }
#batch td.batch-empty { text-align: center; padding: 1.85rem 0.8rem; color: var(--muted); }
#batch .batch-output { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0.9rem; margin-top: 0.75rem; }
#batch .batch-panel { border: 1px solid var(--line); border-radius: 0.55rem; overflow: hidden; min-width: 0; }
#batch .batch-panel-top { display: block; background: var(--panel); padding: 0.55rem 0.75rem; font-weight: 600; }
#batch .batch-panel-body { padding: 0.7rem; }
#batch .batch-code {
  display: block; margin: 0; padding: 0; border: 0; border-radius: 0.25rem; resize: vertical;
  font: 0.8rem/1.6 ui-monospace, Consolas, monospace; min-height: 100px; max-height: 280px; overflow-wrap: anywhere;
}
#batch .batch-chat { display: flex; align-items: flex-start; gap: 0.5rem; background: var(--panel); min-height: 130px; max-height: 320px; overflow: auto; padding: 0.75rem; }
#batch .batch-chat .avatar { width: 30px; height: 30px; }
#batch .batch-blue { color: var(--accent); }

@media (max-width: 800px) {
  #batch .batch-output { grid-template-columns: minmax(0, 1fr); }
  #batch .batch-tools > input { flex: 1; min-width: 100px; }
  #batch .batch-actions button { flex-grow: 1; }
  #batch .batch-head { align-items: flex-start; }
  #batch .batch-step { margin-top: 0.95rem; }
  #batch #bInput, #batch td input:not([type="checkbox"]), #batch .batch-tools > input { font-size: 1rem; }
}

#quick .quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: 20px;
}
#quick .quick-editor, #quick .quick-favorites { min-width: 0; }
#quick .quick-form .field { margin: 0 0 0.8rem; }
#quick .quick-actions { margin-top: 0.8rem; }
#quick .quick-loaded { min-height: 1.4rem; margin: 0.5rem 0; color: var(--muted); font-size: 0.83rem; }
#quick .quick-result .field { margin: 0 0 0.55rem; }
#quick .quick-result textarea { min-height: 82px; }
#quick .quick-preview { margin-top: 0.9rem; min-height: 110px; padding: 1rem; }
#quick .quick-preview h2, #quick .quick-favorites h2 { font-size: 1.06rem; }
#quick .quick-preview .bubble { display: inline-block; max-width: 100%; margin: 0.7rem 0 0.35rem; border-radius: 0.55rem; }
#quick .quick-favorites { border: 1px solid var(--line); border-radius: 0.75rem; padding: 1rem; background: var(--paper); }
#quick .quick-favorites-hint { margin: 0.25rem 0 0.65rem; color: var(--muted); font-size: 0.83rem; }
#quick .quick-favorites .list { max-height: 540px; overflow: auto; gap: 0.55rem; padding: 3px; margin: 0.45rem -3px 0; }
#quick .quick-favorites .item { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.8rem; border-radius: 0.63rem; }
#quick .quick-favorites .item.selected { border-color: var(--accent); background: var(--soft); }
#quick .quick-favorites .quick-favorite-meta {
  display: block; width: 100%; min-width: 0; min-height: 0; padding: 0;
  border: 0; background: transparent; text-align: start; white-space: normal; overflow-wrap: anywhere;
}
#quick .quick-favorite-meta strong, #quick .quick-favorite-meta span { display: block; }
#quick .quick-favorites .row { width: 100%; }
#quick .quick-favorites .empty { padding: 1.2rem 0.65rem; text-align: center; background: var(--panel); border-radius: 0.45rem; }

@media (max-width: 1000px) {
  #quick .quick-grid { grid-template-columns: minmax(0, 1fr); }
  #quick .quick-favorites .list { max-height: 360px; }
}
@media (max-width: 600px) {
  #quick .quick-favorites { padding: 0.75rem; }
}


#quick .quick-side { min-width: 0; display: grid; gap: 0.9rem; }
#quick .quick-recognition { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 0.75rem; }
#quick .quick-recognition h2 { font-size: 1.06rem; }
#quick .quick-recognition textarea { display: block; }
#quick .quick-share-actions { margin-top: 0.6rem; }
#quick .quick-smart-status { color: var(--accent); font-size: 0.83rem; margin-top: 0.4rem; overflow-wrap: anywhere; }
#quick .quick-smart-status:empty { display: none; }
#quick .quick-share-fields { border: 1px solid var(--line); border-radius: 0.6rem; margin: 0.7rem 0; padding: 0.45rem 0.7rem; }
#quick .quick-share-fields > summary { color: var(--accent); }
#quick .quick-share-fields .field { margin-top: 0.75rem; }
#quick .quick-share-row { padding: 0.65rem; border: 1px solid var(--line); border-radius: 0.55rem; }
#quick .quick-share-inputs { display: grid; gap: 0.4rem; margin: 0.4rem 0; }
#quick .quick-share-inputs label { font-size: 0.85rem; }
#quick .quick-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#dual .dual-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,0.8fr); gap:20px; align-items:start; }
#dual .dual-editor, #dual .dual-side { min-width:0; }
#dual .dual-side { display:grid; gap:0.9rem; }
#dual .dual-panel { padding:0.9rem; border:1px solid var(--line); border-radius:0.75rem; background:var(--paper); }
#dual .dual-provider { margin:0.65rem 0; }
#dual .dual-provider h2 { color:var(--accent); }
#dual h2 { font-size:1.06rem; }
#dual .dual-pair { display:grid; grid-template-columns:minmax(0,1fr) minmax(105px,0.31fr); gap:0.7rem; }
#dual .dual-pair.dual-equal { grid-template-columns:repeat(2,minmax(0,1fr)); }
#dual .dual-pair .field { margin:0.4rem 0 0; }
#dual .dual-hint { margin:0.25rem 0 0.65rem; }
#dual .dual-panel textarea { display:block; }
#dual .dual-actions { margin:0.65rem 0; }
#dual .dual-preview { display:block; margin:0.55rem 0; min-height:80px; overflow-wrap:anywhere; }
#dual .dual-settings { margin-top:0.8rem; }
#dual .dual-settings summary { font-weight:650; }
#dual #dpStatus:empty, #dual #dpRecognition:empty, #dual .dual-provider .error:empty { display:none; }
#dual #dpFavorites { max-height:540px; overflow:auto; padding:3px; margin-inline:-3px; }
#dual #dpFavorites .item { flex-direction:column; align-items:flex-start; gap:0.45rem; border-radius:0.6rem; }
#dual #dpFavorites .item.selected { border-color:var(--accent); background:var(--soft); }
#dual .dual-favorite-meta { display:block; width:100%; min-height:0; padding:0; text-align:start; background:transparent; border:0; white-space:normal; overflow-wrap:anywhere; }
#dual .dual-favorite-meta strong, #dual .dual-favorite-meta span { display:block; }
#dual .dual-screen-reader { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:1000px) {
  #dual .dual-grid { grid-template-columns:minmax(0,1fr); }
  #dual #dpFavorites { max-height:360px; }
}
@media(max-width:500px) {
  #dual .dual-pair, #dual .dual-pair.dual-equal { grid-template-columns:minmax(0,1fr); gap:0.3rem; }
}

