/* 1.5: accessible light palette, fewer dashboard surfaces. */
:root:is([data-theme="light"],[data-theme="mist"]){--text:#1c2c43;--muted:#465971;--subtle:#53657c;--cyan:#245fc5;--green:#126445;--amber:#865611;--red:#a82a40}
:root:is([data-theme="light"],[data-theme="mist"]) :is(.guidance-item h3,.mapping-empty h3,.mapping-tip h4,.profile-benefits li,.checkbox-row,.page-note strong,.callout strong,.inset-row h4,.stat-value,.template-meta strong,.preview-tabs button.active){color:var(--text)}
:root:is([data-theme="light"],[data-theme="mist"]) :is(.network-label,.nav-item:hover,.form-help code,.link-field code,.link-field .icon-btn,.workspace-footer,.guidance-number,.tab-count,.mapping-tip h4 svg){color:var(--muted)}
:root:is([data-theme="light"],[data-theme="mist"]) :is(.callout.warning strong,.preview-warning-list,.modal-attention){color:#79521b}
:root:is([data-theme="light"],[data-theme="mist"]) :is(.error-panel,.error-panel h2,.callout.danger-callout strong,.toast.error){color:#97263a}
:root:is([data-theme="light"],[data-theme="mist"]) .toast.warning{color:#785014}
:root:is([data-theme="light"],[data-theme="mist"]) :is(.site-symbol,.stat-icon,.avatar){color:#275aac;background:#eaf1fc}
:root:is([data-theme="light"],[data-theme="mist"]) :is(.site-card .site-symbol,.stat-card .stat-icon){color:#275aac;background:#eaf1fc}
:root:is([data-theme="light"],[data-theme="mist"]) .badge{color:#16613f;background:#ecf7f0;border-color:#bddbc8}
:root:is([data-theme="light"],[data-theme="mist"]) .badge.purple-badge{color:#664090;background:#f2ebfa;border-color:#dbcbeb}
:root:is([data-theme="light"],[data-theme="mist"]) .badge.cyan-badge{color:#25539a;background:#ebf2fc;border-color:#c8d9f3}
:root:is([data-theme="light"],[data-theme="mist"]) .badge.muted-badge{color:#4d5e74;background:#f0f3f7;border-color:#d1dbe5}
:root:is([data-theme="light"],[data-theme="mist"]) :is(input::placeholder,textarea::placeholder){color:#60718a;opacity:1}
:root:is([data-theme="light"],[data-theme="mist"]) .preview-tabs button.active{background:#e9f0fb}
:root:is([data-theme="light"],[data-theme="mist"]) .callout strong{color:inherit}
:root:is([data-theme="light"],[data-theme="mist"]) :is(.conversion-output,.conversion-input){color:#22394f;background:#f8fafd}
.compact-details{border:1px solid var(--line);border-radius:12px;padding:15px 18px;background:var(--panel);margin:18px 0;color:var(--text)}
.compact-details>summary{cursor:pointer;list-style-position:inside;font-size:13px;font-weight:600}
.compact-details>p{margin-top:12px}
.activity-metrics{margin-top:0;margin-bottom:18px}
.activity-controls{margin:16px 0}
.ip-groups-table{min-width:780px}
.ip-groups-table th{font-size:12px}.ip-groups-table td{font-size:13px}
.table-sub{font-size:12px!important;line-height:1.6}
.activity-report>.page-note{margin:14px 0 0}
.converter-toolbar{margin-bottom:20px}.converter-toolbar .button-row{flex-wrap:wrap}
.converter-toolbar select{width:200px}.converter-toolbar .form-help{margin-top:12px}
.converter-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.converter-pane{min-width:0;padding:22px}.converter-pane h3{font-size:15px;margin-bottom:14px}
.converter-pane .template-editor{min-height:410px;height:410px;resize:vertical;border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:1.7;white-space:pre;overflow:auto}
.converter-pane .button-row{margin-top:14px;flex-wrap:wrap}.converter-notice{margin-top:10px}
.converter-share{padding:18px 0}.converter-share .form-help{margin-bottom:12px}.converter-share .button-row{flex-wrap:wrap}
.converter-details .code-content{margin-top:16px;max-height:480px;overflow:auto}.converter-warnings{padding:15px 0 0 20px;line-height:1.8;font-size:12px;color:var(--muted)}
.btn:disabled{opacity:.6}.dns-policy-muted{opacity:1;color:var(--muted)}
@media(max-width:1100px){.converter-columns{grid-template-columns:1fr}.converter-pane .template-editor{min-height:320px;height:320px}}
@media(max-width:760px){.tab-button{font-size:12px!important}.tab-button svg{flex-shrink:0}.converter-pane{padding:16px}.converter-toolbar select{width:100%}.converter-pane .template-editor{font-size:12px}.form-help,.page-note,.profile-benefits li,.profile-text{font-size:12px!important}.stat-header{font-size:12px!important}.stat-meta{font-size:11px!important}.compact-details{padding:14px}.converter-share .button-row{gap:8px}.conversion-input,.conversion-output{max-width:100%}}

:root:is([data-theme="light"],[data-theme="mist"]) .link-field .icon-btn{color:#25539a;background:#eaf1fc;border-color:#c8d9f3}
:root:is([data-theme="light"],[data-theme="mist"]) .link-field .icon-btn:hover{color:#183e7b;background:#dae8fc}
.ip-groups-table td>code,.ip-detail-heading strong{font-size:13px;letter-spacing:0}
.builtin-template-card{margin-bottom:20px}.builtin-template-card>.button-row{margin-top:12px}

.converter-columns>.card{margin:0}

/* 1.5.1: independent persisted download names, no full-page reload. */
.filename-card { margin-bottom: 20px; }
.filename-controls { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.filename-controls .form-group { flex: 1 1 320px; margin-bottom: 4px; min-width: 0; }
.filename-controls > .btn { margin-top: 27px; flex: 0 0 auto; }
.filename-current { overflow-wrap: anywhere; }
.filename-current strong { color: var(--text, #17233c); }
@media(max-width: 600px) {
  .filename-controls { display: block; }
  .filename-controls > .btn { margin-top: 8px; width: 100%; }
}
