/* InkCro Pro Beta 2: the public site's ink-black editorial look, adapted for work. */
:root[data-theme="dark"] {
  --bg:#0a0a09; --bg-soft:#10100f; --panel:#171715; --panel-2:#20201e; --panel-3:#2a2a27;
  --line:rgba(245,241,234,.12); --line-strong:rgba(245,241,234,.28);
  --text:#f5f1ea; --muted:#c3bdb4; --faded:#a7a095;
  --ember:#65d7f2; --ember-2:#8ce5f7; --orange:#65d7f2; --accent:#65d7f2; --action:#9e255e;
  --gold:#65d7f2; --blue:#65d7f2; --shadow:0 18px 48px rgba(0,0,0,.22);
  color-scheme:dark;
}
:root[data-theme="light"] {
  --bg:#f6f4ef; --bg-soft:#eeece6; --panel:#fffefa; --panel-2:#f3f1eb; --panel-3:#e9e6dd;
  --line:rgba(34,31,27,.15); --line-strong:rgba(34,31,27,.31);
  --text:#211f1c; --muted:#554f49; --faded:#676058;
  --ember:#006985; --ember-2:#006985; --orange:#006985; --accent:#006985; --action:#9e255e;
  --gold:#006985; --blue:#006985; --shadow:0 12px 32px rgba(34,31,27,.055);
  color-scheme:light;
}
html[data-theme] {
  --font:"Avenir Next",Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --radius:13px; --radius-sm:9px;
  background:var(--bg);
}
html[data-theme] body {
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}
html[data-theme="dark"] body { background:radial-gradient(ellipse 55% 36% at 93% -10%,rgba(101,215,242,.055),transparent 80%),var(--bg); }
html[data-theme] .sidebar { background:var(--bg-soft); border-color:var(--line); }
html[data-theme] .topbar { border-color:var(--line); }
@media(max-width:1180px) {
  html[data-theme] body:not([data-inkcro-mode="beginner"]) .topbar { background:var(--bg); }
}
html[data-theme] .panel { background:var(--panel); box-shadow:var(--shadow); }
html[data-theme] .panel-head { background:var(--panel); }
html[data-theme] .nav-btn.active {
  background:var(--panel-2);
  color:var(--text); box-shadow:inset 2px 0 0 var(--accent);
}
html[data-theme] .nav-btn:hover:not(:disabled) { background:var(--panel-2); }
html[data-theme] .nav-icon { color:var(--accent); }
html[data-theme] .eyebrow { color:var(--accent); }
html[data-theme] .primary-btn {
  background:var(--action); border-color:var(--action); color:#fff;
  box-shadow:0 7px 20px color-mix(in srgb,var(--action) 13%,transparent);
}
html[data-theme] .primary-btn:hover:not(:disabled) { filter:brightness(1.08); }
html[data-theme] .secondary-btn,html[data-theme] .mini-btn { background:var(--panel-2); color:var(--text); }
html[data-theme] .ghost-btn,html[data-theme] .help-btn,html[data-theme] .icon-btn { color:var(--muted); }
html[data-theme] :is(button,input,textarea,select):focus-visible {
  outline:2px solid var(--accent); outline-offset:2px;
}
html[data-theme] :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]) {
  background:var(--panel-2); color:var(--text); border-color:var(--line-strong);
}
html[data-theme] :is(input,select,textarea):focus { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent); }
html[data-theme] :is(input,textarea)::placeholder { color:var(--faded); opacity:1; }
html[data-theme] .segmented button { background:var(--panel-2); color:var(--muted); }
html[data-theme] .segmented button.active { background:color-mix(in srgb,var(--accent) 13%,var(--panel)); border-color:var(--accent); color:var(--accent); }
html[data-theme] :is(.pro-quick-nav-btn,.guided-choice-grid button,.image-count-picker button,.asset-tray-size button,.asset-tray-tabs button,.library-picker-tabs button,.transform-action-grid button,.transform-library-size button,.body-preview-tabs button).active {
  background:color-mix(in srgb,var(--accent) 13%,var(--panel));
  border-color:var(--accent); color:var(--text); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 13%,transparent);
}
html[data-theme] .enhance-choice.active { background:color-mix(in srgb,var(--accent) 13%,var(--panel))!important; border-color:var(--accent)!important; box-shadow:none; }
html[data-theme] .create-text-decision { background:color-mix(in srgb,var(--accent) 6%,var(--panel)); }
html[data-theme] .create-text-decision.needs-decision { background:color-mix(in srgb,var(--accent) 12%,var(--panel)); border-color:var(--accent); }
html[data-theme] .create-flow-workspace .create-advanced,
html[data-theme] .composition-flow-workspace .create-advanced,
html[data-theme] .transform-flow-workspace .transform-inline-advanced .create-advanced { border-color:var(--line-strong); }
html[data-theme] .create-flow-workspace .create-advanced>summary,
html[data-theme] .composition-flow-workspace .create-advanced>summary,
html[data-theme] .transform-flow-workspace .transform-inline-advanced .create-advanced>summary { color:var(--accent); }
html[data-theme] .help-panel { background:var(--panel); }
html[data-theme="light"] .help-item { background:var(--panel-2); }
html[data-theme="light"] :is(.autosave-chip,.user-chip,.artist-switcher-row,.studio-open-item,.studio-priority-row,.studio-workflow-grid button,.composition-entry-card,.creative-artboard-row,.creative-asset,.transform-weighted-style-row,.continue-review-grid>div) {
  background:var(--panel-2); color:var(--text);
}
html[data-theme="light"] :is(.create-brief-panel,.composition-workspace,.composition-workspace-side,.pro-body-library,.body-comp-layer-panel,.library-manager-card,.library-picker-card,.project-preview-card) {
  background:var(--panel); color:var(--text);
}
html[data-theme="light"] :is(.asset-tray-tabs button,.library-picker-tabs button,.transform-action-grid button,.transform-primary-control,.transform-element-action,.library-picker-grid .library-picker-actions button) {
  background:var(--panel-2)!important; color:var(--text)!important;
}
html[data-theme="light"] .help-panel { box-shadow:0 24px 70px rgba(40,55,88,.17); }

/* Editorial display type gives the app the same character as the homepage;
   controls remain humanist sans so longer forms stay easy to scan. */
html[data-theme] .brand-block h1,
html[data-theme] .content-head h2,
html[data-theme] .guided-step-copy h2,
html[data-theme] .panel-head h3,
html[data-theme] .auth-copy h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  letter-spacing:-.045em;
}
html[data-theme] .content-head h2 { font-size:clamp(37px,4.5vw,58px); line-height:1.05; margin-bottom:10px; }
html[data-theme] .guided-step-copy h2 { font-size:clamp(25px,2.1vw,33px); line-height:1.12; }
html[data-theme] .panel-head h3 { font-size:18px; line-height:1.2; }
html[data-theme] .content-head p { font-size:14px; }
html[data-theme] .eyebrow { letter-spacing:.18em; }
html[data-theme] .content-head .eyebrow::before { content:"◆"; color:#db4f91; font-size:max(8px,var(--min-text,0px)); margin-right:9px; vertical-align:1px; }
html[data-theme] .guided-step-copy p { font-size:12.5px; }
html[data-theme] .panel-head p,
html[data-theme] .hint { font-size:11px; }
html[data-theme] .field label,
html[data-theme] .field-label { font-size:11px; }
html[data-theme] .nav-copy span { font-size:max(10.5px,var(--min-text,0px)); }
html[data-theme] .project-context > span:last-child { font-size:11px; }
html[data-theme] .help-btn,
html[data-theme] .secondary-btn,
html[data-theme] .ghost-btn,
html[data-theme] .primary-btn,
html[data-theme] .mini-btn { border-radius:8px; }
html[data-theme] .nav-btn { border-radius:7px; }
html[data-theme] :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]) { border-radius:8px; }
html[data-theme] .theme-toggle { border-radius:8px; }
html[data-theme] .content-head { border-bottom:1px solid var(--line); margin-bottom:17px; }

/* A compact, opt-in music corner: sound never starts without a user gesture. */
.music-player { flex:none; }
.music-trigger {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;
  padding:7px 11px;border:1px solid var(--line-strong);border-radius:8px;
  background:var(--panel-2);color:var(--text);font-size:11px;font-weight:750;cursor:pointer;
}
.music-trigger>span:first-child { color:var(--accent);font-size:17px;line-height:1; }
.music-trigger[aria-expanded="true"] { border-color:var(--accent); }
.music-playing-dot { width:6px;height:6px;border-radius:50%;background:#db4f91;box-shadow:0 0 0 3px color-mix(in srgb,#db4f91 16%,transparent); }
.music-panel {
  position:fixed;z-index:1200;top:67px;right:18px;width:min(340px,calc(100vw - 24px));
  max-height:min(590px,calc(100dvh - 80px));overflow-y:auto;
  padding:17px;border:1px solid var(--line-strong);border-radius:13px;
  background:var(--panel);color:var(--text);box-shadow:0 22px 65px rgba(0,0,0,.35);
}
.music-panel[hidden],.music-playing-dot[hidden] { display:none; }
body.music-open .beta-feedback-btn { visibility:hidden; }
.music-panel-head,.music-library-head { display:flex;align-items:flex-start;justify-content:space-between;gap:12px; }
.music-panel-head strong { display:block;font:400 24px/1.15 Georgia,"Times New Roman",serif;letter-spacing:-.04em; }
.music-panel-head small { display:block;margin-top:5px;color:var(--muted);font-size:11px; }
.music-close { border:0;background:transparent;color:var(--muted);font-size:24px;line-height:1;cursor:pointer; }
.music-current { display:grid;gap:3px;margin:20px 0 13px;min-width:0; }
.music-current-title { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:750; }
.music-current-state { color:var(--muted);font-size:11px; }
.music-controls { display:flex;justify-content:center;align-items:center;gap:9px; }
.music-controls button { width:42px;height:40px;border:1px solid var(--line-strong);border-radius:8px;background:var(--panel-2);color:var(--text);font-size:17px;cursor:pointer; }
.music-controls .music-play { width:51px;height:45px;background:var(--action);border-color:var(--action);color:#fff;font-size:19px; }
.music-controls button:disabled { opacity:.4;cursor:not-allowed; }
.music-volume { display:flex;align-items:center;gap:12px;margin:17px 0 19px;color:var(--muted);font-size:11px; }
.music-volume input { flex:1;min-width:0;width:auto;padding:0;accent-color:var(--accent); }
.music-library-head { align-items:center;padding-top:14px;border-top:1px solid var(--line); }
.music-library-head strong { font-size:12px; }
.music-track-count { color:var(--muted);font-size:11px; }
.music-list { display:grid;gap:4px;max-height:180px;overflow-y:auto;margin:12px 0 8px;padding:0;list-style:none; }
.music-list li { display:flex;align-items:center;gap:5px;min-width:0;border:1px solid transparent;border-radius:7px; }
.music-list li.is-current { background:var(--panel-2);border-color:var(--line); }
.music-track-select { flex:1;min-width:0;padding:9px 7px;border:0;background:transparent;color:var(--text);text-align:left;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer; }
.music-empty,.music-note,.music-message { color:var(--muted);font-size:11px;line-height:1.45; }
.music-empty { padding:8px 1px; }
.music-note { margin:10px 0 0; }
.music-message { min-height:1em;margin:8px 0 0; }
html[data-theme] .music-trigger:focus-visible,
html[data-theme] .music-panel :is(button,input,label):focus-visible { outline:2px solid var(--accent);outline-offset:2px; }
@media(max-width:700px) {
  .music-trigger { min-width:38px;padding:7px; }
  .music-trigger-label { display:none; }
  .music-panel { top:59px;right:12px; }
}

/* The existing public logo is used as the app mark, never recolored. */
.brand-symbol { position:relative; display:block; flex:none; width:50px; height:50px; overflow:hidden; border-radius:12px; background:var(--panel-2); border:1px solid var(--line); }
.brand-symbol img { position:absolute; width:120px; height:120px; max-width:none; left:-35px; top:-18px; animation:inkcro-mark-drift 10s ease-in-out infinite; will-change:transform; }
.brand-block h1 { text-transform:none; font-size:27px; }
.brand-block p { letter-spacing:.045em; }
html[data-theme] .brand-block p { font-size:max(10.5px,var(--min-text,0px)); }
@keyframes inkcro-mark-drift {
  0%,100% { transform:translateY(0) rotate(0deg); }
  50% { transform:translateY(-2px) rotate(1deg); }
}
.auth-brand-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:25px; }
.auth-brand-row .auth-brand { margin:0; min-width:0; }
.auth-brand-row .auth-brand strong { font-size:19px; letter-spacing:-.025em; }

.theme-toggle {
  flex:none; display:inline-flex; align-items:center; justify-content:center; gap:7px;
  min-height:38px; padding:7px 11px; border:1px solid var(--line-strong); border-radius:10px;
  background:var(--panel-2); color:var(--text); font-size:11px; font-weight:750;
  line-height:1; cursor:pointer; box-shadow:none; transition:background .15s,border-color .15s;
}
.theme-toggle:hover:not(:disabled) { transform:none; background:var(--panel-3); border-color:var(--accent); }
.theme-toggle-icon { width:16px; text-align:center; color:var(--accent); font-size:18px; font-weight:500; }
.theme-toggle-sidebar { width:100%; justify-content:flex-start; min-height:42px; }
.theme-toggle-topbar { white-space:nowrap; }

/* Sign-in should feel like the same product, not a separate orange page. */
html[data-theme] .auth-gate { background:var(--bg); }
html[data-theme] .auth-card { background:var(--panel); color:var(--text); border:1px solid var(--line-strong); box-shadow:0 24px 70px rgba(9,15,37,.18); }
html[data-theme] .auth-brand span:not(.brand-symbol) { color:var(--muted); }
html[data-theme] .auth-copy p,html[data-theme] .auth-note,html[data-theme] .news-signup p,html[data-theme] .news-signup small { color:var(--muted); }
html[data-theme] .auth-form label,html[data-theme] .news-signup form>label:first-child,html[data-theme] .news-consent { color:var(--text); }
html[data-theme] .auth-form input,html[data-theme] .news-signup input[type="email"] { background:var(--panel-2); color:var(--text); border-color:var(--line-strong); }
html[data-theme] .auth-form input:focus { border-color:var(--accent); outline-color:var(--accent); }
html[data-theme] .auth-link,html[data-theme] .public-links a,html[data-theme] .news-signup .eyebrow { color:var(--accent); }
html[data-theme] .public-links,html[data-theme] .news-signup { border-color:var(--line); }
html[data-theme] .auth-divider { color:var(--muted); }
html[data-theme] .auth-divider::before,html[data-theme] .auth-divider::after { background:var(--line); }
html[data-theme] .auth-message { background:var(--panel-2); color:var(--text); }
html[data-theme] .oauth-btn { background:var(--panel-2); color:var(--text); border-color:var(--line-strong); }
html[data-theme] .logout-btn { color:var(--muted); }
html[data-theme] .logout-btn:hover { color:var(--text); }
html[data-theme="light"] .news-signup input[type="checkbox"] { accent-color:var(--accent); }

@media(max-width:700px) {
  .brand-symbol { width:44px; height:44px; }
  .brand-symbol img { width:108px; height:108px; left:-32px; top:-16px; }
  .theme-toggle-topbar { min-width:42px; padding:7px 8px; }
  .theme-toggle-topbar .theme-toggle-label { display:none; }
  .auth-card { padding:22px; }
  html[data-theme] .content-head h2 { font-size:34px; }
  html[data-theme] .guided-step-copy h2 { font-size:25px; }
}
@media(prefers-reduced-motion:reduce) {
  .theme-toggle { transition:none; }
  .brand-symbol img { animation:none; will-change:auto; }
}

/* Readability on phones: the smallest helper text was 10-12px; the mode heading pushed step 1 down the screen. */
html[data-theme] .content-head h2 { font-size:clamp(32px,3.4vw,46px); }
html[data-theme] .guided-step-copy p { font-size:13.5px; }
html[data-theme] :is(.upload-zone span,.upload-zone-helper) { font-size:12.5px; }
html[data-theme] .create-brief-copy span { font-size:11.5px; color:var(--muted); }
/* Beginner exists only locally; its composer was hard-coded black and stayed black in day mode. */
html[data-theme] .chat-composer { background:var(--panel-2); border-color:var(--line, var(--panel-2)); }
/* styles.css hard-codes ~140 dark panel colours as var(--legacy-panel,#…) fallbacks.
   Night keeps those originals; day maps them to the day panels so text stays readable. */
:root[data-theme="light"] { --legacy-panel:var(--panel-2); --legacy-panel-grad:var(--panel); }

/* Phone and tablet. ~370 desktop sizes of 7-10.5px are written as max(Npx,var(--min-text,0px)):
   the desktop keeps them, smaller screens and touch devices never go below 11px. */
@media (max-width:1180px),(pointer:coarse) { :root { --min-text:11px; } }
/* Fingers need ~40px targets; the desktop keeps its compact controls. */
@media (pointer:coarse) {
  :is(.segmented button,.secondary-btn,.ghost-btn,.icon-btn,.mini-btn,.asset-tray-tabs button,.library-picker-tabs button,.asset-tray-size button),
  select,input:not([type=range]):not([type=checkbox]):not([type=radio]) { min-height:40px !important; }
  /* Small icon buttons on cards and trays: bigger hit area, same icon. */
  :is(.info-dot,.asset-remove,.project-preview-actions button,.asset-tray button,.asset-card-actions button,.asset-card-global-actions button,.transform-library-tabs button) { min-width:36px !important; min-height:36px !important; }
  /* Step bars are 5px tall: keep the look, widen the touch area. */
  [class*="-progress"] > button { position:relative; }
  [class*="-progress"] > button::after { content:""; position:absolute; inset:-16px 0; }
}
/* iPad / small laptop: the header buttons no longer fit in one row; scroll them like on the phone
   instead of pushing the page sideways. */
@media (min-width:701px) and (max-width:1180px) {
  .topbar .top-actions { min-width:0; flex:1 1 auto; flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; padding-block:2px; }
  .topbar .top-actions::-webkit-scrollbar { display:none; }
  .topbar .top-actions > * { flex:0 0 auto; }
  .topbar .top-actions > :first-child { margin-left:auto; }
  /* The generator status dots are information only; dropping them lets the buttons fit. */
  .topbar .provider-pills { display:none; }
}
/* Work started from the large image view shows inside it. */
.lightbox-busy { position:fixed; top:18px; left:50%; transform:translateX(-50%); z-index:10050; max-width:calc(100vw - 32px); display:flex; align-items:center; gap:10px; padding:12px 16px; box-shadow:0 10px 30px rgba(0,0,0,.35); border-radius:var(--radius-sm,9px); background:color-mix(in srgb,var(--accent) 16%,var(--panel)); border:1px solid var(--accent); color:var(--text); font-weight:700; font-size:13px; }

/* Composition step 1 (Zoran, 26.10.2026): the chosen path lights up like every other selected option; the Pro high-res
   card is a separate editor you can open, so it stays quiet until hovered instead of looking like the active choice. */
html[data-theme] .composition-entry-card.active { background:color-mix(in srgb,var(--accent) 13%,var(--panel)); border-color:var(--accent); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 35%,transparent); }
html[data-theme] .composition-entry-card.active > span { color:var(--accent); }
html[data-theme] .composition-entry-card.pro { background:var(--panel); border-color:var(--line); }
html[data-theme] .composition-entry-card.pro:hover, html[data-theme] .composition-entry-card.pro:focus-within { border-color:var(--orange,#e85a24); background:color-mix(in srgb,var(--orange,#e85a24) 8%,var(--panel)); }
