/* ReelKraft app chrome: Jamun brand kit (final 2026-11-04). No green anywhere.
   Tenant content (tiles, previews) uses the tenant's own colours. */
:root {
  --rk-jamun: #4A1A5E; --rk-jamun-press: #3A1249; --rk-jamun-soft: #EBDDF0;
  --rk-guava: #FF6F7D; --rk-guava-soft: #FFE0E3; --rk-butter: #FFD24D;
  --rk-blush: #FFF4F2; --rk-night: #2B1033;
  --bg-canvas: #FFF4F2; --bg-surface: #FFFFFF; --bg-subtle: #FBE9E7; --line: #F2D9DA;
  --ink-primary: #2B1033; --ink-secondary: #6B4A72; --ink-tertiary: #8A7590; --ink-on-brand: #FFF4F2;
  --brand: #4A1A5E; --brand-press: #3A1249; --brand-soft: #EBDDF0; --accent: #FF6F7D; --highlight: #FFD24D;
  --state-success: #4A1A5E; --state-success-soft: #EBDDF0;
  --state-info: #3E5BA9; --state-info-soft: #E1E7F6;
  --state-warning: #6E5200; --state-warning-soft: #FFF0BF;
  --state-danger: #C2273D; --state-danger-soft: #FCE1E4;
  --state-live: #B8323F; --state-live-soft: #FFE0E3;
  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Baloo 2", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(43,16,51,.06); --shadow-md: 0 6px 20px rgba(43,16,51,.08);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-canvas); }
a { color: var(--brand); }
a:hover { color: var(--brand-press); }

.rk { display: flex; flex-wrap: wrap; min-height: 100vh; background: var(--bg-canvas); color: var(--ink-primary); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }

/* sidebar */
.side { flex: 1 1 240px; max-width: 256px; background: var(--bg-surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 6px; text-decoration: none; color: var(--ink-primary); }
.logo b { font-family: var(--font-display); font-weight: 400; font-size: 23px; letter-spacing: -.015em; }
.tenant { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; background: var(--bg-surface); font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; }
.tenant img { width: 34px; height: 34px; border-radius: 50%; }
.tenant span { display: grid; line-height: 1.2; flex: 1; min-width: 0; }
.tenant strong { font-size: 14px; font-weight: 600; }
.tenant small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-secondary); }
.navsec { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-tertiary); padding: 0 10px; margin: 4px 0 2px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-secondary); text-decoration: none; font-weight: 500; font-size: 15px; min-height: 40px; }
.nav a:hover { background: var(--bg-subtle); color: var(--ink-primary); }
.nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav a .new { margin-left: auto; }
.nav svg { flex: none; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 10px 0; font-size: 13px; color: var(--ink-secondary); display: grid; gap: 6px; }
.meter { height: 6px; border-radius: 99px; background: var(--bg-subtle); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

/* main */
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 32px; border-bottom: 1px solid var(--line); background: var(--bg-canvas); }
.crumbs { font-size: 14px; color: var(--ink-secondary); display: flex; gap: 8px; align-items: center; flex: 1; min-width: 200px; }
.crumbs a { color: var(--ink-secondary); text-decoration: none; }
.crumbs b { color: var(--ink-primary); font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; background: var(--bg-surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-width: 260px; flex: 0 1 380px; color: var(--ink-tertiary); font-size: 14px; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-secondary); display: inline-grid; place-items: center; cursor: pointer; }
.iconbtn:hover { background: var(--bg-subtle); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--ink-on-brand); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.content { padding: 28px 32px 48px; max-width: 1240px; width: 100%; display: flex; flex-direction: column; gap: 22px; }

/* type */
.title { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -.015em; margin: 0; }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; margin: 0; }
.h3 { font-size: 16px; font-weight: 600; margin: 0; }
.sub { color: var(--ink-secondary); margin: 0; }
.small { font-size: 13px; color: var(--ink-secondary); }
.label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-secondary); }
.mono { font-family: var(--font-mono); }
.hl { background: var(--highlight); color: var(--ink-primary); padding: 0 4px; border-radius: 4px; }

/* surfaces */
.card { background: var(--bg-surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.soft { background: var(--bg-subtle); border-radius: 14px; padding: 14px 16px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 4px 0; }

/* controls */
.btn { font: inherit; font-weight: 600; font-size: 15px; border-radius: 14px; padding: 10px 16px; min-height: 44px; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn.pri { background: var(--brand); color: var(--ink-on-brand); }
.btn.pri:hover { background: var(--brand-press); color: var(--ink-on-brand); }
.btn.sec { background: var(--bg-surface); color: var(--ink-primary); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.sec:hover { box-shadow: inset 0 0 0 1.5px var(--ink-secondary); color: var(--ink-primary); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn.ai svg { color: var(--accent); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--rk-guava); outline-offset: 2px; }
.input { font: inherit; font-size: 15px; color: var(--ink-primary); background: var(--bg-surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; min-height: 44px; width: 100%; }
textarea.input { min-height: 88px; resize: vertical; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; }
.seg { display: inline-flex; background: var(--bg-subtle); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--ink-secondary); border-radius: 9px; padding: 6px 12px; min-height: 36px; cursor: pointer; }
.seg button.on { background: var(--bg-surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.chip { font: inherit; font-size: 13px; font-weight: 600; border: 1.5px solid var(--line); background: var(--bg-surface); color: var(--ink-secondary); border-radius: 999px; padding: 5px 12px; min-height: 34px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.toggle { width: 42px; height: 24px; border-radius: 99px; background: var(--brand); position: relative; flex: none; border: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--rk-blush); }
.toggle.off { background: #D9C6D4; }
.toggle.off::after { right: auto; left: 3px; }

/* status pills: colour + word, never colour alone */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--state-success-soft); color: var(--state-success); }
.pill.info { background: var(--state-info-soft); color: var(--state-info); }
.pill.warn { background: var(--state-warning-soft); color: var(--state-warning); }
.pill.live { background: var(--state-live-soft); color: var(--state-live); }
.pill.err { background: var(--state-danger-soft); color: var(--state-danger); }
.pill.new { background: var(--highlight); color: var(--ink-primary); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; padding: 1px 7px; }
.pill.plain { background: var(--bg-subtle); color: var(--ink-secondary); }

/* media tiles: tenant content, painted in wallpaper-like tones */
.tile { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; display: block; color: #fff; text-decoration: none; }
.tile .art { position: absolute; inset: 0; }
.tile .cap { position: absolute; left: 10px; right: 10px; bottom: 8px; font-size: 12.5px; font-weight: 600; line-height: 1.25; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.tile .tl { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.tile .tr { position: absolute; right: 8px; top: 8px; }
.badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(43,16,51,.72); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; font-family: var(--font-mono); }
.chk { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(43,16,51,.25); display: grid; place-items: center; }
.chk.on { background: var(--brand); border-color: #fff; }
.tile.sel { box-shadow: 0 0 0 3px var(--brand); }
.t1 { background: #9C4A2E; } .t2 { background: #C9A24A; } .t3 { background: #5B3C6E; } .t4 { background: #3E4C7A; }
.t5 { background: #B76E79; } .t6 { background: #7A3B2E; } .t7 { background: #D8B98C; } .t8 { background: #2F3550; }
.t9 { background: #A3654A; } .t10 { background: #6D5A8C; }
.motif { position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(circle at 30% 35%, #fff 0 9%, transparent 10%), radial-gradient(circle at 70% 65%, #fff 0 6%, transparent 7%); background-size: 46px 46px; }
.motif.lines { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.9) 0 2px, transparent 2px 14px); opacity: .14; }
.motif.arch { background-image: radial-gradient(ellipse 40% 55% at 50% 100%, transparent 0 60%, rgba(255,255,255,.9) 61% 64%, transparent 65%); background-size: 60px 60px; opacity: .2; }

/* phone preview */
.phone { width: 270px; aspect-ratio: 9 / 16; border-radius: 30px; background: #1b1b1f; padding: 8px; box-shadow: var(--shadow-md); }
.phone .scr { position: relative; height: 100%; border-radius: 23px; overflow: hidden; }

/* table-like rows */
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.row:last-child { border-bottom: 0; }

/* stepper */
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; }
.dot.done { background: var(--brand); color: var(--ink-on-brand); }
.dot.run { background: var(--state-live-soft); color: var(--state-live); box-shadow: inset 0 0 0 2px var(--state-live); }
.dot.wait { background: var(--bg-subtle); color: var(--ink-tertiary); }

/* timeline for clips */
.track { position: relative; height: 64px; border-radius: 10px; overflow: hidden; display: flex; }
.track i { flex: 1; border-right: 1px solid rgba(255,255,255,.18); }

@media (max-width: 700px) {
  .side { max-width: none; flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .top { padding: 12px 16px; }
  .content { padding: 20px 16px 40px; }
  .search { min-width: 0; flex-basis: 100%; }
  .title { font-size: 28px; }
}
button.toggle { padding: 0; cursor: pointer; }
.rk-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: grid; gap: 2px; max-width: min(440px, calc(100% - 32px)); padding: 12px 18px; border-radius: 14px; background: var(--rk-night, #2B1033); color: var(--rk-blush, #FFF4F2); font-size: 14px; box-shadow: 0 8px 24px rgba(43, 16, 51, .3); }
.rk-toast b { font-size: 13px; color: #FFD9DD; }
