/* Kislap's public identity continues through owner sign-in and both workspaces.
   Theme previews keep their own occasion colours. */
:root {
  color-scheme: dark;
  --paper: #130e19;
  --ink: #faf2e8;
  --muted: #b8aebc;
  --line: #e7c68e26;
  --gold: #e5bd78;
  --wine: #e5bd78;
  --k-paper: #130e19;
  --k-ink: #faf2e8;
  --workspace-panel: #211929;
  --workspace-inset: #19131f;
}
body { background: var(--paper); color: var(--ink); }
.topbar { background: #100b16; border-color: var(--line); }
.topbar .brand { color: #fff3de; }
.topbar .brand-mark { background: transparent; color: var(--gold); border: 1px solid #e5bd784a; }
.topbar .brand-dot { color: var(--gold); }
.topbar nav>a, .topbar nav button:not(.button) { color: #d2c7d4; }
.button, .topbar .button {
  background: linear-gradient(115deg,#f4dba7,#dfb16a);
  border-color: #e8c789;
  color: #281b16;
  box-shadow: 0 3px 13px #0002, inset 0 1px #fff6;
}
.button:hover, .topbar .button:hover { background: #f6d99f; box-shadow: 0 5px 22px #e5bd781b; }
.button.secondary, .button.light { background: #ffffff04; color: #ead7b7; border-color: #e5bd7855; box-shadow: none; }
.button.secondary:hover, .button.light:hover { background: #e5bd7812; }
.button:disabled { opacity: .65; }
.button:disabled::after {
  content: ''; width: 12px; height: 12px; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: workspace-spin .75s linear infinite;
}
.eyebrow, .text-link { color: var(--gold); }
.text-link { text-decoration-color: #e5bd7860; }
.text-link:hover { color: #fff0cf; text-decoration-color: currentColor; }
.help, .field>small, .subtle { color: var(--muted); }
.error { color: #ffa4b5; }
.field input, .field select, .field textarea {
  color: var(--ink); background: #120e18; border-color: #b59bba48;
  border-radius: 8px; min-height: 46px; caret-color: var(--gold);
}
.field input::placeholder, .field textarea::placeholder { color: #a59bad; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field input[type=checkbox] { min-height: auto; accent-color: var(--gold); }
.field small { display: block; margin-top: 7px; line-height: 1.5; font-weight: 400; }
dialog {
  color: var(--ink); background: radial-gradient(ellipse at 100% 0,#37283c 0,transparent 55%),#1c1424;
  border: 1px solid #e5bd7860; border-radius: 18px; padding: 40px;
  box-shadow: 0 32px 120px #0009, inset 0 1px #ffecbd16;
}
dialog::backdrop { background: #090510be; backdrop-filter: blur(9px); }
dialog h2 { font-size: clamp(30px,4vw,39px); color: #fff3df; margin-top: 16px; }
dialog .close { color: #d8c8d9; min-width: 36px; min-height: 36px; top: 8px; }
dialog .help { color: #c1b3c4; }
dialog .field { font-weight: 500; margin-block: 18px; }
dialog #accountForm input[readonly] { background: #2b2231; color: #c8bdca; }
dialog #accountForm .password-control button { background: #35283d; border-color: #b59bba48; color: #f2dab2; }
dialog .payment-instructions { background: #302337; }
.payment-instructions strong { color: #f0d29b; }
.route-gate {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(ellipse at 86% 25%,#5b365040 0,transparent 48%),linear-gradient(130deg,#1b1224,#100c17);
}
.route-gate::before {
  content: ''; position: absolute; right: 9%; top: 17%; width: 230px; height: 310px;
  border: 1px solid #e5bd782d; border-radius: 120px 120px 8px 8px; transform: rotate(12deg); z-index: -1;
  box-shadow: 22px 22px 0 -1px #1d1426,22px 22px 0 #e5bd781c;
}
.route-gate::after { content: '✧'; position: absolute; right: 16%; top: 29%; font: 90px Georgia,serif; color: #e5bd7848; z-index: -1; }
.route-gate h1 { color: #fff3e1; max-width: 15ch; letter-spacing: -.045em; }
.route-gate p { color: #bbafc2; }
.route-gate .button { margin-top: 10px; }
.route-gate-actions .button { margin-top: 0; }
footer { color: var(--ink); border-color: var(--line); }
footer .brand { color: #ddc7a5; }
.notice { background: #eed4a7; color: #251b19; box-shadow: 0 8px 30px #0005; }
.studio-shell { background: transparent; }
.studio-summary, .studio-account-actions, .studio-invite-footer, .studio-bottom, .studio-messages { border-color: var(--line); }
.studio-intro p, .studio-summary span, .studio-section-head>span, .studio-invite-body p,
.studio-invite-footer, .studio-occasion, .studio-bottom p, .studio-empty p, .studio-messages p,
.studio-message-list small, .studio-message-list article>span { color: var(--muted); }
.studio-summary strong { color: #efd7ac; }
.studio-invite, .studio-message-list article { background: var(--workspace-panel); border-color: var(--line); }
.studio-invite { box-shadow: 0 12px 35px #0002; transition: border-color .25s,transform .25s; }
.studio-invite:hover { border-color: #e5bd7870; transform: translateY(-2px); }
.studio-invite-art { background: #100b18; }
.studio-empty { background: linear-gradient(120deg,#2c1e34,#1c1424); border-color: #e5bd783d; }
.studio-status, .badge { background: #3b3043; color: #e3d4e9; }
.studio-status.is-live, .badge.active, .badge.approved { background: #214035; color: #a3e2b9; }
.studio-status.is-pending, .badge.pending { background: #47371f; color: #f3d494; }
.badge.rejected { background: #522733; color: #ffb4c4; }
.studio-message-error, .admin-inbox-error { background: #43252d; color: #ffd4cc!important; border-color: #d78a74; }
.hero p, .benefits, .pricing-note p, .filter { color: var(--muted); }
.hero-art::before { background: #302039; }
.theme-cover { background: #22172c; }
.pricing-note, .custom-note, .empty, .invite-card, .admin-create, .manual-invite, .account-table { background: var(--workspace-panel); border-color: var(--line); }
.filter.active { background: #e5bd78; border-color: #e5bd78; color: #281b16; }
.filter:hover { border-color: #e5bd786b; }
.offline-catalog-note { background: #322817; color: #e8d4aa; border-color: #e5bd7855; }
.admin-workspace { --admin-ink: #faf2e8; --admin-gold: #e5bd78; background: var(--paper); color: var(--admin-ink); }
.admin-rail { background: #100b16; border-right: 1px solid var(--line); }
.admin-topline, .admin-focus-heading, .admin-focus-item, .admin-table-scroll td,
.admin-table-scroll th, .admin-recent-list>div, .admin-thread-heading, .admin-reply-form { border-color: var(--line); }
.admin-metrics article, .admin-focus-grid>section, .admin-list-row, .admin-empty,
.admin-settings-card, .admin-recent, .admin-table-scroll, .admin-conversation,
.admin-thread { background: var(--workspace-panel); border-color: var(--line); color: var(--ink); }
.admin-metrics article:first-child { background: linear-gradient(120deg,#3b2942,#21172c); border-color: #e5bd7855; }
.admin-metrics strong { color: #efd7ac; }
.admin-topline p, .admin-panel-heading p, .admin-panel-heading>span, .admin-metrics span,
.admin-metrics small, .admin-focus-item small, .admin-muted, .admin-empty, .admin-row-main p,
.admin-row-main small, .admin-table-scroll td span, .admin-table-scroll th, .admin-settings-card>p,
.admin-recent-list span, .admin-conversation>span:not(.admin-conversation-head), .admin-conversation small,
.admin-thread-heading p, .admin-reply-form small, .admin-search { color: var(--muted); }
.admin-topline .eyebrow, .admin-panel-heading .eyebrow, .admin-toplink { color: var(--gold); }
.admin-request, .admin-grant, .admin-review, .admin-table-scroll th, .account-table th,
.admin-thread-message, .admin-mail-disabled { background: #2c2234; }
.admin-request p, .admin-mail-disabled p { color: #c8baca; }
.admin-mail-disabled strong { color: #f1d29f; }
.admin-mail-disabled { border-color: #e5bd78; }
.admin-warning { background: #3c2c1f; color: #f0caaa; }
.admin-conversation.is-selected { background: #36243e; border-color: #e5bd7870; }
.admin-search input { background: #120e18; color: var(--ink); border-color: #b59bba48; }
.admin-thread-message.is-maker { background: #4a344c; color: #fff3e5; }
.studio-skeleton>div, .admin-skeleton { background: linear-gradient(100deg,#251b2e 20%,#3a2a43 42%,#251b2e 64%); background-size: 230% 100%; }
@keyframes workspace-spin { to { transform: rotate(360deg); } }
@media(max-width:800px) {
  .route-gate::before { right: -80px; opacity: .4; }
  .route-gate::after { right: 6%; opacity: .35; }
}
@media(max-width:700px) {
  dialog { padding: 33px 24px 25px; }
  .route-gate { padding-inline: 24px; }
  .route-gate h1 { max-width: 13ch; }
  .studio-account-actions { border-color: var(--line); }
  .admin-rail { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media(prefers-reduced-motion:reduce) {
  .button:disabled::after { animation: none; }
  .studio-invite:hover { transform: none; }
}
