/* Lot 3: shared theme tokens; no image or language overrides. */
#sidebar > .panel-section[hidden] { display:none !important; }
.veyran-settings { position:relative; flex-shrink:0; }
.veyran-settings > summary,
.veyran-zone-options > summary {
  cursor:pointer; color:var(--ink); border:1px solid var(--edge);
  border-radius:4px; padding:10px 12px; min-height:44px;
  box-sizing:border-box; font:600 13px var(--sans,system-ui);
  background:var(--panel,var(--bg));
}
.veyran-settings > summary:hover,
.veyran-zone-options > summary:hover { border-color:var(--accent); }
.veyran-settings > summary:focus-visible,
.veyran-zone-options > summary:focus-visible,
.veyran-settings-content button:focus-visible {
  outline:2px solid var(--accent); outline-offset:3px;
}
.veyran-settings-content {
  position:absolute; right:0; top:calc(100% + 7px); z-index:60;
  display:grid; gap:8px; width:250px; max-width:calc(100vw - 24px);
  padding:12px; box-sizing:border-box; border:1px solid var(--edge);
  background:var(--bg); box-shadow:0 10px 30px #0006; border-radius:5px;
}
.veyran-settings:not([open]) > .veyran-settings-content { display:none; }
.top-actions .veyran-settings-content button {
  display:flex !important; width:100%; justify-content:flex-start;
  min-height:44px; white-space:normal;
}
.top-actions .veyran-settings-content .theme-name { display:inline !important; }
.veyran-zone-options { margin:14px 0; }
.veyran-zone-options:not([open]) > :not(summary) { display:none !important; }
.veyran-zone-options > .veyran-zone-extra { margin:12px 0; }
.veyran-zone-options > .period-card { margin:12px 0; }
#ai-provider-capability { padding:10px; border-left:3px solid var(--accent); line-height:1.5; }
@media(max-width:760px) {
  .topbar { flex-wrap:wrap; height:auto; min-height:56px; gap:8px; padding:8px 12px; }
  .topbar .top-actions { flex-wrap:wrap; gap:6px; min-width:0; }
  .top-actions .veyran-settings { display:block; }
  .veyran-settings-content { position:fixed; top:var(--veyran-settings-top,64px); right:12px; max-height:calc(100dvh - var(--veyran-settings-top,64px) - 12px); overflow:auto; }
}
