/* Kundenportal: Bausteine auf base.css (Farben, Schriften, Kopfzeile wie IDO Plan) */
h1 { margin: 8px 0 4px; } h2 { font-size: 1.15rem; margin: 0 0 12px; } h3 { font-size: 1rem; margin: 18px 0 4px; }
.muted { color: var(--muted); } .hint { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.error { color: var(--bad); min-height: 0; margin: 6px 0; } .error:empty { display: none; }
code { font-size: 13px; line-height: 1.4; }
.login-card h1 { margin-top: 14px; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.content { padding: 24px 16px 48px; max-width: var(--page); width: 100%; margin: 0 auto; }
.page > .card, .page form > .card { margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.card-link .more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: 14px; }
.big { font-size: 18px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .content { padding: 18px 16px 40px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
}
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
input, textarea, select { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; min-height: 40px; font: inherit; color: var(--fg); background: var(--card);
  border: 1px solid var(--input-border); border-radius: var(--radius-control); }
input[type="checkbox"], input[type="radio"] { min-height: 0; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { resize: vertical; }
.row { display: flex; gap: 12px; align-items: flex-end; }
.row > * { flex: 1; min-width: 0; }
.row > .btn { flex: 0 0 auto; margin-bottom: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; min-height: 40px; font: inherit; font-weight: 550;
  border-radius: var(--radius-control); border: 1px solid var(--border-strong); background: var(--card); color: var(--fg); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); color: var(--on-primary); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-block { width: 100%; margin-top: 8px; }
.btn-sm { padding: 3px 10px; min-height: 30px; font-size: .85rem; }
.actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.actions.right { justify-content: flex-end; }
.saved { color: var(--ok); font-weight: 600; }

.switch { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; margin: 4px 0 14px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { position: relative; width: 44px; height: 24px; border-radius: 12px; background: var(--line); transition: background .15s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { left: 23px; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.vac-fields.off { opacity: .55; }

.pill { font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.on { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; max-width: 100%; overflow-wrap: anywhere; }
.chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 99px; }
.chip button:hover { background: var(--line); }

.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 14px; }
.meter div { height: 100%; width: 0; background: var(--accent); }
.steps { padding-left: 20px; } .steps li { margin-bottom: 4px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .empty { color: var(--muted); }
.settings { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.settings dt { color: var(--muted); } .settings dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .settings { grid-template-columns: 1fr; } .settings dd { margin-bottom: 8px; } }

.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: var(--backdrop); z-index: 40; }
.modal-card { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-modal); }
.narrow { max-width: 460px; }

/* Kalender, Adressbuch, Gruppenpostfächer */
/* Kalender: links Monatsübersicht und Kalenderliste, rechts Tag/Woche/Monat */
.content:has(> .cal-page:not([hidden])) { max-width: var(--page-wide); }
.cal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.cal-side { position: sticky; top: 72px; }
.cal-side h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 6px; }
.cal-side .hint { font-size: 12px; }
.cal-main { padding: 14px 16px 16px; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.cal-nav h2 { margin: 0 0 0 8px; font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-arrow { font-size: 1.3rem; line-height: 1; width: 34px; padding: 0; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-control); overflow: hidden; }
.seg button { font: inherit; font-size: .9rem; font-weight: 550; padding: 5px 14px; border: 0; border-left: 1px solid var(--border-strong); background: var(--card); color: var(--muted); cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--surface-2); color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary); }

.mini { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px 10px; margin-top: 12px; box-shadow: var(--shadow); }
.mini-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.mini-head b { font-size: .9rem; }
.mini-head .btn { width: 30px; padding: 0; font-size: 1.1rem; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mini-grid span { font-size: 11px; color: var(--subtle); padding: 2px 0; }
.mini-grid button { font: inherit; font-size: 12px; border: 0; background: transparent; color: var(--text); border-radius: 6px; padding: 4px 0; cursor: pointer; }
.mini-grid button:hover { background: var(--surface-2); }
.mini-grid button.other { color: var(--subtle); }
.mini-grid button.sel { background: var(--primary-soft); }
.mini-grid button.today { background: var(--primary); color: var(--on-primary); font-weight: 700; }

.cal-sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.cal-sources li { padding: 4px 6px; border-radius: 8px; }
.cal-sources li:hover { background: var(--surface-2); }
.cal-src { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-weight: 400; cursor: pointer; }
.cal-src input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--c); }
.cal-src span { min-width: 0; }
.cal-src b { display: block; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.cal-src small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.cal-ol { display: flex; align-items: center; gap: 6px; margin: 4px 0 0 24px; font-size: 12px; font-weight: 400; color: var(--muted); cursor: pointer; }
.cal-ol input { width: 14px; height: 14px; margin: 0; }

/* Termin-Darstellung: Farbe des Kalenders als Streifen, Hintergrund leicht getönt (hell und dunkel) */
.tg-ev, .chip-ev { font: inherit; text-align: left; color: var(--text); border: 0; border-left: 3px solid var(--c); border-radius: 6px;
  background: color-mix(in srgb, var(--c) 14%, var(--surface)); cursor: pointer; overflow: hidden; }
.tg-ev:hover, .chip-ev:hover { background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
.tg-ev.free, .chip-ev.free { background: var(--surface); border: 1px dashed color-mix(in srgb, var(--c) 60%, var(--surface)); border-left: 3px solid var(--c); }
.restricted { cursor: default; color: var(--muted);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 12%, var(--surface)) 0 6px, var(--surface) 6px 12px) !important; }
.restricted b, .restricted span { font-style: italic; }

/* Tag/Woche: Stundenraster */
.tg { --gut: 52px; border: 1px solid var(--line); border-radius: var(--radius-control); overflow: hidden; }
.tg-head, .tg-allday, .tg-grid { display: grid; grid-template-columns: var(--gut) repeat(var(--n), minmax(0, 1fr)); }
.tg-top { position: sticky; top: 0; z-index: 3; background: var(--card); }
.tg-head { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tg-dayhead { font: inherit; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); padding: 6px 4px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0; }
.tg-dayhead:hover { background: var(--surface-3); }
.tg-dayhead span { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.tg-dayhead b { font-size: 1.15rem; font-family: var(--font-head); color: var(--text); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.tg-dayhead.today span { color: var(--primary); font-weight: 600; }
.tg-dayhead.today b { background: var(--primary); color: var(--on-primary); }
.tg-one .tg-dayhead { flex-direction: row; justify-content: center; gap: 8px; }
.tg-gutter { font-size: 11px; color: var(--subtle); }
.tg-allday { border-bottom: 1px solid var(--line); }
.tg-allday > .tg-gutter { padding: 7px 4px; text-align: right; font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.tg-adcell { border-left: 1px solid var(--line); padding: 3px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.tg-body { height: min(62vh, 640px); overflow-y: auto; position: relative; }
.tg-grid { position: relative; height: calc(24 * 48px); }
.tg-grid > .tg-gutter { position: relative; }
.tg-grid > .tg-gutter span { position: absolute; right: 6px; transform: translateY(-50%); }
.tg-col { position: relative; border-left: 1px solid var(--line); cursor: copy;
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--line) 50%, transparent) 1px, transparent 1px);
  background-size: 100% 48px, 100% 24px; }
.tg-col.today { background-color: color-mix(in srgb, var(--primary) 4%, transparent); }
.tg-ev { position: absolute; padding: 3px 6px; display: flex; flex-direction: column; gap: 1px; font-size: 12px; line-height: 1.3; z-index: 1; }
.tg-ev b { font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-ev span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-ev.short { flex-direction: row; gap: 6px; align-items: center; padding-top: 1px; padding-bottom: 1px; }
.tg-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--error); z-index: 2; pointer-events: none; }
.tg-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--error); }

/* Monat */
.mv { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--radius-control); overflow: hidden; }
.mv-head { padding: 6px 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mv-cell { min-height: 108px; padding: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: copy; }
.mv-cell.other { background: var(--surface-2); }
.mv-cell.other .mv-date { color: var(--subtle); }
.mv-date { font: inherit; font-size: 13px; font-weight: 600; align-self: flex-start; border: 0; background: transparent; color: var(--text); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; }
.mv-date:hover { background: var(--surface-3); }
.mv-cell.today .mv-date { background: var(--primary); color: var(--on-primary); }
.chip-ev { display: flex; gap: 4px; align-items: baseline; padding: 1px 6px; font-size: 12px; line-height: 1.5; white-space: nowrap; min-width: 0; }
.chip-ev span { overflow: hidden; text-overflow: ellipsis; }
.chip-ev small { color: var(--muted); font-size: 11px; flex: none; }
.chip-ev.timed { background: transparent; border-left-width: 0; padding-left: 4px; }
.chip-ev.timed::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; align-self: center; }
.mv-more { font: inherit; font-size: 12px; color: var(--primary); border: 0; background: transparent; text-align: left; padding: 0 6px; cursor: pointer; }

@media (max-width: 900px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .cal-side { position: static; display: grid; grid-template-columns: minmax(0, 1fr); }
  .cal-side .mini, .cal-side .hint { display: none; }
  .cal-sources { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 600px) {
  .cal-main { padding: 10px; }
  .cal-nav h2 { font-size: 1rem; }
  .tg { --gut: 40px; }
  .mv-cell { min-height: 64px; padding: 2px; }
  .chip-ev { font-size: 11px; padding: 0 3px; }
  .chip-ev small { display: none; }
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 8px; flex: none; }
.src { display: flex; align-items: center; min-width: 0; }
.src span { overflow-wrap: anywhere; }
.src-opts { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
label.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; white-space: nowrap; }
label.check input { width: auto; margin: 0; }
.row.checks { align-items: center; flex-wrap: wrap; }
.row.checks > label.check { flex: 0 0 auto; }
.share-row select { width: auto; min-width: 200px; margin: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab { font: inherit; font-weight: 600; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; }
.tab.active { background: var(--primary-soft); border-color: var(--primary-border); color: var(--primary); }
.contacts li { cursor: default; }
.contacts li.click { cursor: pointer; }
.contacts li.click:hover { background: var(--bg); }
.contacts .who { min-width: 0; }
.contacts .who b, .contacts .who div { overflow-wrap: anywhere; }
.contacts .who div { color: var(--muted); font-size: 13px; }
#ct-search { margin: 0 0 8px; }
.modal-card.wide { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.actions .spacer { flex: 1; }
label.zip { flex: 0 0 110px; }
@media (max-width: 600px) {
  .row { flex-wrap: wrap; }
  .row > label { flex: 1 1 140px; }
  .share-row { flex-wrap: wrap; }
  .share-row select { width: 100%; min-width: 0; }
}

/* Umzug */
.ok-text { color: var(--ok); font-weight: 600; margin: 8px 0; }
.ok-text.warn { color: var(--bad); }
pre.log { max-height: 60vh; overflow: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.mig-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mig-row .btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill.bad { background: var(--bad-bg); border-color: var(--error-border); color: var(--bad); }
.pill.run { background: var(--primary-soft); border-color: var(--primary-border); color: var(--accent); }

/* GoBD-Archiv */
.arc-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.arc-search input[type=search] { flex: 2 1 260px; margin: 0; }
.arc-search label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.arc-search label input, .arc-search select { margin: 0; width: auto; }
.arc-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.arc-grid .card { margin: 0; }
.arc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 6px; }
.arc-bar label.check { margin: 0; }
.arc-list { max-height: 70vh; overflow: auto; }
.arc-item { cursor: pointer; justify-content: flex-start !important; padding: 8px 6px !important; border-radius: 6px; }
.arc-item:hover, .arc-item.active { background: var(--page, #f3f4f6); }
.arc-item input { width: auto; margin: 0; flex: none; }
.arc-item .who { flex: 1; min-width: 0; }
.arc-item .who b, .arc-item .who div { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-meta { text-align: right; font-size: 13px; white-space: nowrap; }
.arc-preview { position: sticky; top: 76px; max-height: 80vh; overflow: auto; }
.arc-head { font-size: 14px; display: grid; gap: 2px; margin-bottom: 10px; word-break: break-word; }
.arc-text { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 14px; background: var(--page, #f7f7f8); padding: 12px; border-radius: 8px; margin-top: 12px; }
.inv-checks { margin: 6px 0 10px; padding-left: 18px; font-size: 14px; }
.inv-checks .error { color: #b42318; }
@media (max-width: 860px) { .arc-grid { grid-template-columns: 1fr; } .arc-preview { position: static; max-height: none; } }

/* Signatur */
.sig-preview { background: #fff; color: #222; border: 1px solid var(--line); border-radius: 8px; padding: 14px; min-height: 100px; overflow: auto; }

/* Firma (Firmen-Admin) */
.firm-sub { font-size: .9rem; color: var(--muted); margin: 14px 0 4px; text-transform: uppercase; letter-spacing: .04em; }
.firm-hint { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }
.firm-who { font-size: .9rem; text-align: right; overflow-wrap: anywhere; }
.firm-table-wrap { overflow-x: auto; }
.firm-table { width: 100%; border-collapse: collapse; }
.firm-table th { text-align: left; font-size: .85rem; color: var(--muted); font-weight: 600; padding: 6px 6px; }
.firm-table td { padding: 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.firm-table input { width: 100%; min-width: 110px; }
.firm-table td:last-child { white-space: nowrap; }
.firm-legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.firm-legal-grid label.check { align-self: end; }
.firm-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }

/* Firmen-Cloud */
.cl-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.cl-side { position: sticky; top: 80px; }
.cl-views { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.cl-views button { text-align: left; font: inherit; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.cl-views button:hover { background: var(--surface-2); }
.cl-views button.active { background: var(--primary-soft); color: var(--accent); font-weight: 600; }
.cl-meter { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 4px 0; }
.cl-meter span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.cl-meter span.warn { background: var(--warn); }
.cl-meter span.bad { background: var(--bad); }
.cl-main { position: relative; min-height: 320px; }
.cl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cl-crumbs { font-weight: 600; overflow-wrap: anywhere; }
.cl-crumbs a { color: inherit; text-decoration: none; }
.cl-crumbs a:hover { color: var(--accent); }
.cl-sep { color: var(--muted); margin: 0 6px; }
.cl-search input { min-width: 220px; }
.cl-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cl-tools label.btn { cursor: pointer; }
.cl-cell { display: flex; flex-direction: column; min-width: 0; }
.cl-name { font-weight: 600; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
a.cl-name:hover { color: var(--accent); }
.cl-folder::before { content: "📁"; margin-right: 8px; }
.cl-doc::before { content: "📄"; margin-right: 8px; }
.cl-menu summary { list-style: none; }
.cl-menu summary::-webkit-details-marker { display: none; }
.cl-menu-panel { min-width: 190px; }
.cl-menu-panel button { display: block; width: 100%; text-align: left; font: inherit; padding: 8px 12px; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 6px; }
.cl-menu-panel button:hover { background: var(--surface-2); }
.cl-menu-panel button.danger { color: var(--bad); }
.cl-progress { display: flex; flex-direction: column; gap: 6px; }
.cl-up { font-size: .9rem; }
.cl-drop { position: absolute; inset: 0; display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--card) 85%, transparent); font-weight: 600; color: var(--accent); pointer-events: none; }
.cl-newlink { display: flex; gap: 8px; margin: 10px 0; }
.cl-newlink input { flex: 1; }
.cl-preview-card { width: min(1000px, 100%); height: calc(100vh - 32px); display: flex; flex-direction: column; }
.cl-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cl-preview-head h2 { margin: 0; overflow-wrap: anywhere; }
.cl-preview-body { flex: 1; min-height: 0; margin-top: 12px; display: flex; align-items: center; justify-content: center; }
.cl-preview-body iframe { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cl-preview-msg { max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cl-preview-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
#cl-share-list select { min-width: 170px; }
@media (max-width: 800px) {
  .cl-layout { grid-template-columns: 1fr; }
  .cl-side { position: static; }
  .cl-views { flex-direction: row; flex-wrap: wrap; }
  .cl-search input { min-width: 0; width: 100%; }
  .cl-search { flex: 1 1 100%; }
}
.cl-menu > summary { padding: 3px 12px; min-height: 30px; border: 1px solid var(--line); color: var(--text); font-weight: 700; letter-spacing: .1em; }
.dns-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 8px; } .dns-head h3 { margin: 0; }
