/* Classic editor palette and dimensions from NetTheme and ToolbarCustomizer.kt. */
#toolbar-customizer {
  --tc-bg:#f4f7fa; --tc-surface:#fff; --tc-secondary:#ebf0f6; --tc-selected:#e0ebf6;
  --tc-ink:#1d2531; --tc-muted:#58626f; --tc-faint:#8b94a1; --tc-line:#d9e1ea;
  --tc-accent:#2f6ba5; --tc-on-accent:#fff;
  box-sizing:border-box; position:fixed; inset:0; margin:auto;
  width:min(820px,calc(100% - 32px)); max-width:none; height:max-content;
  max-height:min(90vh,calc(100vh - 32px)); max-height:min(90dvh,calc(100dvh - 32px));
  padding:20px; border:0; border-radius:22px; background:var(--tc-bg); color:var(--tc-ink);
  box-shadow:none; overflow:hidden; font:400 19px/27px Inter,sans-serif;
  font-variation-settings:"opsz" 14; text-align:start; outline:0;
}
#toolbar-customizer[open] { display:flex; flex-direction:column; gap:12px; }
#toolbar-customizer::backdrop { background:rgb(0 0 0 / 32%); }
#toolbar-customizer *, #toolbar-customizer *::before, #toolbar-customizer *::after { box-sizing:border-box; }
#toolbar-customizer h2, #toolbar-customizer p, #toolbar-customizer h3 { margin:0; }
#toolbar-customizer h2 { font:500 22px/27px Inter,sans-serif; font-variation-settings:"opsz" 24; }
#toolbar-customizer p, #toolbar-customizer h3 { font:400 17px/27px Inter,sans-serif; color:var(--tc-muted); }
#toolbar-customizer h3 { font-weight:500; padding:0 0 6px 4px; }
#toolbar-customizer .tc-scroll { min-height:0; overflow:auto; overscroll-behavior:contain; container-type:inline-size; scrollbar-width:none; }
#toolbar-customizer .tc-scroll::-webkit-scrollbar { display:none; }
.tc-columns { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:16px; }
@container (min-width:600px) { .tc-columns { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.tc-list { overflow:hidden; border-radius:14px; background:var(--tc-surface); box-shadow:inset 0 0 0 1px var(--tc-line); }
.tc-row {
  display:flex; align-items:center; gap:10px; min-width:0; height:52px; padding:0 10px 0 4px;
  color:var(--tc-ink); position:relative;
}
#toolbar-customizer.is-reordering .tc-row:not(.is-dragging) { transition:transform 120ms ease-out; }
.tc-row[data-off=true] .tc-label { color:var(--tc-faint); }
.tc-row img { width:24px; height:24px; flex:none; object-fit:contain; pointer-events:none; }
.tc-label { min-width:0; flex:1; font:400 19px/27px Inter,sans-serif; overflow-wrap:anywhere; }
@container (max-width:280px) {
  .tc-row { gap:4px; padding-inline:2px 6px; }
  .tc-label { font-size:17px; line-height:23px; }
}
#toolbar-customizer button { font-family:Inter,sans-serif; color:inherit; border:0; margin:0; min-height:0; min-width:0; box-shadow:none; }
#toolbar-customizer .tc-grip {
  width:40px; height:52px; flex:none; display:grid; place-items:center; cursor:grab;
  color:var(--tc-faint); border-radius:8px; background:transparent; padding:0;
  touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none;
}
.tc-grip svg { width:20px; height:20px; pointer-events:none; }
.tc-row.is-dragging { z-index:1; background:var(--tc-selected); border-radius:10px; box-shadow:0 4px 12px #0003; transition:none; }
#toolbar-customizer .is-dragging .tc-grip { cursor:grabbing; color:var(--tc-accent); }
#toolbar-customizer .tc-switch { flex:none; width:52px; height:48px; padding:0; background:transparent; display:grid; place-items:center; border-radius:24px; }
.tc-switch>span { position:relative; display:block; width:52px; height:32px; border-radius:16px; background:var(--tc-secondary); border:2px solid var(--tc-faint); }
.tc-switch>span::after {
  position:absolute; content:""; top:6px; inset-inline-start:6px; width:16px; height:16px;
  border-radius:50%; background:var(--tc-faint); transition:inset-inline-start 120ms, width 120ms, height 120ms, top 120ms;
}
.tc-switch[aria-checked=true]>span { border-color:var(--tc-accent); background:var(--tc-accent); }
.tc-switch[aria-checked=true]>span::after { inset-inline-start:22px; top:2px; width:24px; height:24px; background:var(--tc-on-accent); }
#toolbar-customizer .tc-switch:disabled { opacity:1; cursor:default; }
.tc-switch:disabled>span, .tc-switch:disabled[aria-checked=true]>span { border-color:transparent; background:color-mix(in srgb,var(--tc-ink) 12%,var(--tc-surface)); }
.tc-switch:disabled>span::after { background:var(--tc-surface); }
#toolbar-customizer footer { display:flex; align-items:center; justify-content:space-between; gap:8px; flex:none; min-height:48px; position:static; padding:0; border:0; background:transparent; }
#toolbar-customizer footer button { min-height:48px; font:400 18px/25px Inter,sans-serif; }
#toolbar-customizer .tc-reset { color:var(--tc-muted); padding:0 12px; background:transparent; border-radius:22px; }
#toolbar-customizer .tc-done { color:var(--tc-on-accent); border-block:4px solid transparent; background:var(--tc-accent) padding-box; padding:0 24px; border-radius:26px; }
#toolbar-customizer details { margin-top:12px; }
#toolbar-customizer summary { padding:8px 4px; cursor:pointer; font-size:15px; color:var(--tc-muted); }
#toolbar-customizer :is(button,summary):focus-visible { outline:2px solid var(--tc-accent); outline-offset:-3px; }
.tc-sr { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (prefers-reduced-motion: reduce) { #toolbar-customizer.is-reordering .tc-row:not(.is-dragging),.tc-switch>span::after { transition:none; } }

:where(:root[data-tone="dark"]) #toolbar-customizer { --tc-bg:#141a22; --tc-surface:#1b222c; --tc-secondary:#232b37; --tc-selected:#243650;
    --tc-ink:#e8edf3; --tc-muted:#a7b1be; --tc-faint:#737d8a; --tc-line:#2c3542; --tc-accent:#8db8e8; --tc-on-accent:#0c1c30; }

