/* Taktus Light's Settings window: Taktus's own (settings.js), styled exactly as d-orbit.html styles it — copied from
   there (lines .set-open to .lay-hint) with the App colours swatches from dark.css. Keep in step with d-orbit.html. */
.set-open { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--d-glass, #ffffffd9); border-radius: 12px; color: var(--indigo); cursor: pointer; }
.set-open:hover { background: var(--indigo-soft); }
.set-open[hidden] { display: none; }
.set-open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Settings opens beside the page, not over it (settings.js shows it without a backdrop): the page stays lit and
   narrows to make room, so a colour or style change shows at once. A narrow window lays it over the page. */
.set-dock { position: fixed; z-index: 60; margin: 0; inset-inline: auto 0; inset-block: 0; max-height: none; height: 100dvh; padding: 0; border: 0; border-inline-start: 1px solid var(--line); background: var(--bg); color: var(--ink); box-shadow: -12px 0 40px #0003; }
.set-dock[open] { animation: set-in 180ms cubic-bezier(.2, .7, .3, 1); }
@keyframes set-in { from { translate: 24px 0; opacity: 0; } }
[dir="rtl"] .set-dock[open] { animation-name: set-in-rtl; } @keyframes set-in-rtl { from { translate: -24px 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .set-dock[open] { animation: none; } }
.set-dock { width: min(720px, 100%); }
@media (min-width: 1025px) { .set-dock { width: clamp(520px, 38vw, 640px); } }
html.set-beside .app { margin-inline-end: var(--set-w); } /* settings.js: there is room beside the body */
.set-dock[open] { display: flex; flex-direction: column; }
.set-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 184px minmax(0, 1fr); border-top: 1px solid var(--line); }
.set-nav { overflow-y: auto; padding: 10px 8px; border-inline-end: 1px solid var(--line); }
.set-nav button { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 42px; margin-bottom: 2px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font: 600 14px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--muted); text-align: start; cursor: pointer; }
.set-nav button:hover { color: var(--indigo); }
.set-nav button[aria-current] { background: var(--panel); color: var(--indigo); box-shadow: 0 1px 3px #0000001a; }
.set-badge { margin-inline-start: auto; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; text-align: center; }
.set-main { overflow-y: auto; padding-block: 8px 24px; }
@media (max-width: 600px) {
  .set-body { grid-template-columns: 108px minmax(0, 1fr); }
  .set-nav { padding: 8px 4px; }
  .set-nav button { min-height: 40px; padding: 0 8px; font-size: 12.5px; }
  .set-main .set-card { margin: 8px 10px; padding: 12px; }
  .lay { margin: 8px 8px 0; padding: 6px; } .lay-hint { margin-inline: 10px; }
}
.set-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 20px; padding-inline: 20px 16px; }
.set-head h2 { margin: 0; font-size: 20px; }
.set-card { margin: 8px 16px; padding: 14px 16px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.set-card h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.set-card .lang-pick .dd-btn { width: 100%; min-height: 44px; }
.set-card .lang-pick .dd-val { margin-inline-end: auto; }
/* Display: see-through sheets stacked back (screen) to front (bones); one opens, the rest fold back (settings.js). */
.lay { margin: 8px 16px 0; padding: 10px; border-radius: 14px; perspective: 900px;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px, var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.lay-sheet { position: relative; margin-top: -5px; border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--d-panel, #fff) 82%, transparent); backdrop-filter: blur(3px); box-shadow: 0 -2px 6px #0000000d; transform-origin: top; transition: transform 300ms cubic-bezier(.2, .7, .2, 1), opacity 200ms; }
.lay-sheet:first-child { margin-top: 0; }
.lay-focus .lay-sheet:not(.on) { opacity: .7; transform: rotateX(16deg) scale(.97); }
.lay-focus .lay-sheet:not(.on):hover { opacity: .85; }
.lay-sheet.on { z-index: 1; border-color: var(--indigo); box-shadow: 0 0 0 1px var(--indigo), 0 8px 22px #0000001f; background: var(--d-panel, #fff); }
.lay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; background: none; cursor: pointer; color: var(--ink); text-align: start; }
.lay-head span { font: 600 11.5px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lay-head b { font: 600 13.5px/1.25 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--indigo); text-align: end; }
.lay-sheet.on .lay-head span { color: var(--ink); }
:is([dir="rtl"], :lang(am)) .lay-head span { font: 600 13px/1.25 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: 0; }
.lay-opts { display: grid; gap: 4px; padding: 0 10px 10px; }
.lay-opts[hidden] { display: none; }
.lay-opts button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 7px 10px; border: 1px solid transparent; border-radius: 10px; background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: start; }
.lay-opts button:hover { background: var(--bg); }
.lay-opts button[aria-checked="true"] { border-color: var(--indigo); background: color-mix(in srgb, var(--indigo) 8%, transparent); }
.lay-opts button b { display: block; font-weight: 600; font-size: 14px; }
.lay-opts button[aria-checked="true"] b { color: var(--indigo); }
.lay-opts small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.lay-opts i { width: 26px; height: 26px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px #0002; }
.lay-opts svg { width: 44px; height: 22px; flex: none; }
.lay-hint { margin: 10px 18px 0; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .lay-sheet { transition: none; } .lay-focus .lay-sheet:not(.on) { transform: none; } }
:is(.set-bones, .bstyles) .sw-t-light { background: linear-gradient(135deg, #fff 50%, #e8eafc 50%); }
:is(.set-bones, .bstyles) .sw-t-dark { background: linear-gradient(135deg, #161b2e 50%, #262d55 50%); }
:is(.set-bones, .bstyles) .sw-t-auto { background: linear-gradient(135deg, #fff 50%, #161b2e 50%); }
