@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --ink: #14181f;
  --muted: #5c6675;
  --line: rgba(20, 24, 31, 0.12);
  --paper: #e9eef2;
  --panel: rgba(250, 252, 255, 0.94);
  --accent: #0f766e;
  --accent-deep: #115e59;
  --teal: #0f766e;
  --glow: rgba(15, 118, 110, 0.2);
  --shadow: 0 24px 60px rgba(20, 24, 31, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 118, 110, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(30, 58, 95, 0.12), transparent 50%),
    linear-gradient(180deg, #dfe8ef 0%, var(--paper) 45%, #eef3f6 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(243, 240, 234, 0.75);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff7f0;
  box-shadow: 0 10px 28px var(--glow);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

/* ===== Commercial home (truehunt.in) — full cinematic background ===== */
.home-page {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  color: #f8fafc;
  background: #0b1220;
}
.home-theme-cinematic .home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.home-bg-media {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1478720568477-152d9b164e26?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
  transform: scale(1.06);
  animation: homeKen 20s ease-in-out infinite alternate;
}
.home-bg-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(8, 15, 23, 0.88) 0%, rgba(15, 118, 110, 0.55) 55%, rgba(8, 15, 23, 0.82) 100%),
    linear-gradient(180deg, rgba(8, 15, 23, 0.35) 0%, rgba(8, 15, 23, 0.55) 40%, rgba(8, 15, 23, 0.9) 100%);
}
.home-shell {
  position: relative;
  z-index: 1;
}
.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(8, 15, 23, 0.55), transparent);
  backdrop-filter: blur(2px);
}
.home-nav .brand { color: #f8fafc; }
.home-nav .brand span { color: #5eead4; }
.home-nav .nav-links a { color: rgba(248, 250, 252, 0.82); }
.home-nav .nav-links a:hover { color: #fff; }
.home-nav .btn-primary {
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  box-shadow: 0 10px 28px rgba(20, 184, 166, 0.28);
}
.home-theme-navy-bronze .home-bg-shade {
  background:
    linear-gradient(115deg, rgba(6, 12, 32, 0.94) 0%, rgba(18, 28, 58, 0.72) 34%, rgba(92, 52, 24, 0.78) 68%, rgba(42, 22, 12, 0.9) 100%),
    linear-gradient(180deg, rgba(8, 12, 28, 0.2) 0%, rgba(28, 16, 8, 0.78) 100%);
}
.home-theme-navy-bronze .home-nav .brand span,
.home-theme-navy-bronze .home-brand span,
.home-theme-navy-bronze .home-footer .brand span,
.home-theme-navy-bronze .home-signed-in strong {
  color: #e6b17a;
}
.home-theme-navy-bronze .home-nav .btn-primary,
.home-theme-navy-bronze .home-hero .btn-primary,
.home-theme-navy-bronze .home-cta-band .btn-primary {
  color: #1a120c;
  background: linear-gradient(135deg, #f0c48a, #8a4b24);
  box-shadow: 0 10px 28px rgba(90, 48, 22, 0.4);
}
.home-theme-navy-bronze .btn-hero-secondary {
  color: #f6e7d4;
  border-color: rgba(230, 177, 122, 0.55);
}

.home-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: #f8fafc;
}
.home-hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1.2rem, 4vw, 3rem) clamp(2.5rem, 7vh, 4.5rem);
  max-width: 820px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.home-hero-copy.is-in {
  opacity: 1;
  transform: translateY(0);
}
.home-brand {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 10vw, 6.8rem);
  font-weight: 700;
  line-height: 0.92;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}
.home-brand span { color: #5eead4; }
.home-tagline {
  margin: 0 0 1.6rem;
  max-width: 36ch;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.9);
}
.home-signed-in {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  color: rgba(248, 250, 252, 0.78);
}
.home-signed-in strong { color: #5eead4; font-weight: 600; }
.home-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-hero-secondary {
  background: rgba(248, 250, 252, 0.06);
  border: 1px solid rgba(248, 250, 252, 0.4);
  color: #f8fafc;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
}
.btn-hero-secondary:hover {
  background: rgba(248, 250, 252, 0.12);
}

.home-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  color: #f8fafc;
}
.home-wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}
.home-section h2,
.home-cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 0.7rem;
  line-height: 1.1;
  color: #f8fafc;
}
.home-lead {
  margin: 0 0 2rem;
  max-width: 54ch;
  color: rgba(248, 250, 252, 0.78);
  font-size: 1.05rem;
  line-height: 1.6;
}
.home-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 760px) {
  .home-modules { grid-template-columns: 1fr; }
  .home-nav .nav-links a:not(.btn) { display: none; }
}
.home-module {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(248, 250, 252, 0.16);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  color: #f8fafc;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s ease, background 0.2s ease;
  transition-delay: var(--d, 0ms);
}
.home-module.is-in {
  opacity: 1;
  transform: translateY(0);
}
.home-module:hover {
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(15, 23, 42, 0.62);
  transform: translateY(-3px);
}
.home-module-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #5eead4;
}
.home-module strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
}
.home-module span:last-child {
  color: rgba(248, 250, 252, 0.75);
  line-height: 1.5;
  font-size: 0.95rem;
}

.home-workflow {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 860px) {
  .home-workflow { grid-template-columns: 1fr; }
}
.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.home-steps li {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(248, 250, 252, 0.14);
  backdrop-filter: blur(10px);
}
.home-steps strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
  color: #f8fafc;
}
.home-steps span {
  color: rgba(248, 250, 252, 0.75);
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-cta-band {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  color: #f8fafc;
}
.home-cta-inner {
  text-align: center;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: 22px;
  border: 1px solid rgba(248, 250, 252, 0.18);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.home-cta-inner p {
  margin: 0 auto 1.4rem;
  max-width: 42ch;
  color: rgba(248, 250, 252, 0.88);
}
.home-cta-band .btn-primary,
.home-hero .btn-primary {
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
}

.home-footer {
  padding: 2rem 0 1.4rem;
  color: #cbd5e1;
  background: rgba(8, 15, 23, 0.55);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(8px);
}
.home-footer .brand { color: #f8fafc; }
.home-footer .brand span { color: #5eead4; }
.home-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1.2rem;
}
.home-footer-row p {
  margin: 0;
  max-width: 40ch;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.85);
}
.home-rights {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.8rem;
  color: #94a3b8;
}

@keyframes homeKen {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Login / Sign in — full-screen cinema mix */
.login-shell {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.login-page {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  background: #0b1220;
}
.login-cinema {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
@media (max-width: 720px) {
  .login-cinema { height: auto; min-height: 100vh; overflow-y: auto; }
}

.signin-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.signin-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1.15fr 0.85fr;
  gap: 0.4rem;
}
.signin-shot {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.signin-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8, 15, 23, 0.75));
}
.signin-shot span {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.92);
}
.signin-shot-a {
  grid-row: 1 / 3;
  animation: signinPan 18s ease-in-out infinite alternate;
}
.signin-shot-b { animation: signinPan 16s ease-in-out infinite alternate-reverse; }
.signin-shot-c { animation: signinPan 17s ease-in-out infinite alternate; }
.signin-shot-d { animation: signinPan 19s ease-in-out infinite alternate-reverse; }
.signin-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(8, 18, 36, 0.88) 0%, rgba(42, 28, 18, 0.55) 48%, rgba(10, 16, 28, 0.86) 100%),
    linear-gradient(180deg, rgba(10, 20, 36, 0.3) 0%, rgba(20, 14, 12, 0.55) 55%, rgba(10, 12, 16, 0.92) 100%);
}
.auth-theme-navy-bronze .signin-home span { color: #d4a862; }
.auth-theme-navy-bronze .signin-kicker { color: #d4a862; }
.auth-theme-navy-bronze .signin-card {
  border-color: rgba(212, 168, 98, 0.28);
  background: linear-gradient(160deg, rgba(14, 26, 46, 0.78), rgba(42, 28, 18, 0.62));
}
.auth-theme-navy-bronze .signin-form .field input:focus {
  border-color: #d4a862;
  box-shadow: 0 0 0 3px rgba(212, 168, 98, 0.2);
}
.auth-theme-navy-bronze .signin-submit {
  color: #1a120a;
  background: linear-gradient(135deg, #e0b872, #a67c3a);
  box-shadow: 0 12px 30px rgba(166, 124, 58, 0.32);
}
.auth-links {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(246, 239, 230, 0.75);
}
.auth-links a {
  color: #e0b872;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-links a:hover { color: #f0d29a; }
.success {
  background: rgba(34, 120, 72, 0.22);
  color: #c6f0d4;
  border: 1px solid rgba(110, 200, 140, 0.35);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.truehunt-id-panel {
  margin: 0.4rem 0 1.1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(212, 168, 98, 0.4);
  background: linear-gradient(135deg, rgba(212, 168, 98, 0.16), rgba(14, 26, 46, 0.45));
  text-align: center;
}
.truehunt-id-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 239, 230, 0.7);
  margin-bottom: 0.35rem;
}
.truehunt-id-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e0b872;
}
.account-meta {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.account-meta div {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(246, 239, 230, 0.12);
}
.account-meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 239, 230, 0.55);
}
.account-meta dd {
  margin: 0;
  font-size: 1.05rem;
  color: #f6efe6;
}
.account-nav {
  position: relative;
  z-index: 5;
  background: rgba(10, 20, 36, 0.85);
  color: #f6efe6;
  border-bottom: 1px solid rgba(212, 168, 98, 0.2);
}
.account-nav .brand { color: #f6efe6; }
.account-nav .brand span { color: #d4a862; }
.account-nav .nav-links a { color: rgba(246, 239, 230, 0.85); }
.account-nav .btn-ghost {
  border-color: rgba(212, 168, 98, 0.35);
  color: #f6efe6;
}
.account-main { padding-top: 1rem; }
.demo-reset a { color: #e0b872; font-weight: 700; }
.reset-timer-box { margin: 0.75rem 0 1rem; }
.resend-btn { color: #f6efe6 !important; }
@keyframes signinPan {
  from { background-position: 45% 35%; transform: scale(1.02); }
  to { background-position: 55% 65%; transform: scale(1.08); }
}

.signin-main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
}
.signin-home {
  position: absolute;
  top: 1.2rem;
  left: clamp(1.2rem, 4vw, 2.5rem);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}
.signin-home span { color: #5eead4; }

.signin-card {
  width: min(440px, 100%);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: 24px;
  border: 1px solid rgba(248, 250, 252, 0.18);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  color: #f8fafc;
  animation: rise 0.75s ease both;
}
.signin-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5eead4;
}
.signin-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}
.signin-sub {
  margin: 0 0 1.35rem;
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.5;
}
.signin-form .field label {
  color: rgba(248, 250, 252, 0.85);
}
.signin-form .field input {
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(248, 250, 252, 0.2);
  color: #f8fafc;
  border-radius: 12px;
}
.signin-form .field input:focus {
  outline: none;
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.18);
}
.signin-submit {
  width: 100%;
  margin-top: 0.25rem;
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.28);
}
.signin-card .hint {
  color: rgba(248, 250, 252, 0.7);
}
.signin-card .hint strong { color: #f8fafc; }
.signin-card .error {
  background: rgba(185, 28, 28, 0.2);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
}
.signin-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}
.signin-modules span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.22);
  background: rgba(8, 15, 23, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.88);
}
.signin-rights {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.7);
}

/* legacy login helpers still used elsewhere */
.login-panel {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: rise 0.7s ease both;
}
.login-panel h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0 0 0.4rem;
}
.login-panel p { color: var(--muted); margin: 0 0 1.4rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }
.error {
  background: #fde8e4;
  color: #8a2a16;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }

/* Modules hub */
.page {
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}
.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 0.4rem;
}
.page .lead { color: var(--muted); margin: 0 0 1.8rem; max-width: 55ch; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 760px) {
  .module-grid { grid-template-columns: 1fr; }
}
.module-tile {
  display: block;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: rise 0.65s ease both;
  cursor: pointer;
}
.module-tile:nth-child(2) { animation-delay: 0.08s; }
.module-tile:nth-child(3) { animation-delay: 0.16s; }
.module-tile:nth-child(4) { animation-delay: 0.24s; }
.module-tile:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(196, 92, 38, 0.65);
  background: #fffaf5;
  box-shadow: 0 14px 32px rgba(196, 92, 38, 0.22);
  animation: module-blink 0.9s ease-in-out infinite;
}
@keyframes module-blink {
  0%, 100% {
    box-shadow: 0 14px 32px rgba(196, 92, 38, 0.18);
    border-color: rgba(196, 92, 38, 0.55);
  }
  50% {
    box-shadow: 0 18px 40px rgba(196, 92, 38, 0.38);
    border-color: rgba(196, 92, 38, 0.95);
  }
}
@media (prefers-reduced-motion: reduce) {
  .module-tile:hover { animation: none; }
}
.module-tile h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.35rem;
}
.module-tile p { margin: 0; color: var(--muted); }
.module-tile .count {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--teal);
}

/* Workspace */
.app-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 15;
}
.app-top .brand { font-size: 1.35rem; }
.module-switch { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
}
.chip.active {
  background: var(--ink);
  color: #f7f2ea;
  border-color: var(--ink);
}

.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 1rem;
  padding: 1rem;
  min-height: calc(100vh - 70px);
}
@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }
}

.craft-rail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: rise 0.7s ease both;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  position: sticky;
  top: 70px;
}
.craft-rail h3 {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.craft-category {
  margin: 1rem 0 0.45rem;
  padding: 0.2rem 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-deep, #134e4a);
  opacity: 0.85;
}
.craft-category:first-child {
  margin-top: 0;
}
a.craft-link {
  text-decoration: none;
  color: inherit;
}
.craft-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid transparent;
  margin-bottom: 0.45rem;
  background: rgba(15, 118, 110, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.craft-item:hover,
.craft-item.selected {
  border-color: rgba(15, 118, 110, 0.45);
  transform: translateX(2px);
  background: rgba(15, 118, 110, 0.12);
}
.craft-logo {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f766e, #134e4a);
  color: #ecfeff;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.25);
}
.craft-logo svg {
  width: 18px;
  height: 18px;
  display: block;
}
.craft-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.craft-text strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
}
.craft-text span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

.form-stage {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  animation: rise 0.75s ease both;
}
.form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
}
.form-tabs a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
}
.form-tabs a.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff7f0;
  border-color: transparent;
}
.form-stage h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.25rem;
}
.form-stage .meta {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}
.toolbar .field { margin: 0; flex: 1; min-width: 180px; }
.flash {
  background: #e7f5f1;
  color: #145349;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-grid .full { grid-column: 1 / -1; }

.form-section {
  margin: 0 0 1.1rem;
  padding: 1rem 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.06), transparent 42%),
    #fff;
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  color: var(--ink);
}
.form-section-title span {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ecfeff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.form-section .field label {
  color: #334155;
}
.form-section textarea {
  min-height: 84px;
}
.form-stage .btn-primary {
  margin-top: 0.35rem;
}

.pre-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .pre-layout { grid-template-columns: 1fr; }
}
.pre-list-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.pre-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.pre-list-head h3 {
  margin: 0;
  font-size: 0.95rem;
}
.btn-small {
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
}
.pre-list-hint {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.pre-list-empty {
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.06);
  color: var(--muted);
  font-size: 0.85rem;
}
.pre-list-item {
  display: block;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 0.45rem;
  background: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pre-list-item strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}
.pre-list-item span {
  font-size: 0.75rem;
  color: var(--muted);
}
.pre-list-item:hover,
.pre-list-item.active {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(15, 118, 110, 0.1);
}
.pre-editor h2 {
  margin-top: 0;
}

/* Google Forms–inspired pre-production editor */
.gform {
  background: transparent;
}
.gform-banner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.4rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}
.gform-banner-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  background: linear-gradient(90deg, #0f766e, #0e7490 55%, #155e75);
}
.gform-brand-line {
  margin: 0.65rem 0 0.2rem !important;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink) !important;
}
.gform-brand-line span { color: var(--accent); }
.gform-banner h2 {
  margin: 0.35rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}
.gform-banner p {
  margin: 0;
  color: var(--muted);
}
.gform-required-note {
  display: inline-block;
  margin-top: 0.75rem;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 600;
}
.gform-progress {
  margin-top: 1rem;
}
.gform-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.gform-progress-fill {
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #0e7490);
  transition: width 0.35s ease;
}
.gform-progress-text {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
}
.gform-step-hint {
  margin: -0.35rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.gform-card {
  background: #fff !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent !important;
}
.gform-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.35) !important;
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.12);
}
.gform-card .field label em {
  color: #b91c1c;
  font-style: normal;
  margin-left: 2px;
}
.gform-card input,
.gform-card select,
.gform-card textarea {
  border: 0;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.gform-card input:focus,
.gform-card select:focus,
.gform-card textarea:focus {
  outline: none;
  border-bottom-color: #0f766e;
  box-shadow: none;
  background: linear-gradient(180deg, transparent, rgba(15, 118, 110, 0.04));
}
.gform-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.6rem 0 0.2rem;
}
.gform-actions .btn-submit-app {
  min-width: 220px;
  padding: 0.95rem 1.8rem;
  font-size: 1rem;
  border-radius: 12px;
}
.gform-footer-note {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.gform-rights {
  margin: 1.4rem 0 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  letter-spacing: 0.02em;
}

.thanks-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(15, 118, 110, 0.16), transparent 55%),
    radial-gradient(700px 380px at 90% 10%, rgba(30, 58, 95, 0.12), transparent 50%),
    linear-gradient(180deg, #dfe8ef 0%, #e9eef2 50%, #eef3f6 100%);
}
.thanks-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.2rem 1.8rem 1.6rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(20, 24, 31, 0.12);
  position: relative;
  overflow: hidden;
  animation: rise 0.7s ease both;
}
.thanks-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  background: linear-gradient(90deg, #0f766e, #0e7490 55%, #155e75);
}
.thanks-brand {
  margin: 0.4rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.thanks-brand span { color: var(--accent); }
.thanks-check {
  width: 64px;
  height: 64px;
  margin: 0.4rem auto 1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f766e, #134e4a);
  color: #ecfeff;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
}
.thanks-card h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
}
.thanks-lead {
  margin: 0 0 0.55rem;
  color: #334155;
  line-height: 1.5;
}
.thanks-sub {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.thanks-footer {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.thanks-rights {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 1rem;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.table th, .table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.table th { color: var(--muted); font-weight: 600; }
.empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}

/* Direction Department */
a.craft-link {
  color: inherit;
  text-decoration: none;
}
.direction-workspace {
  grid-template-columns: 220px minmax(0, 1fr) 220px;
}
.dir-back {
  margin-top: 1rem;
  width: 100%;
}
.dir-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.dir-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.dir-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}
.dir-hero-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.dir-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 1.1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.04);
}
.dir-filters label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.dir-filters input,
.dir-filters select,
.dir-form-grid input,
.dir-form-grid select,
.dir-form-grid textarea,
.dir-day-tools select,
.dir-att-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}
.dir-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.dir-summary-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.dir-equip {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.dir-card {
  background: linear-gradient(180deg, #fff, #f5faf9);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 24px rgba(20, 24, 31, 0.06);
}
.dir-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.dir-card strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
}
.dir-card-total {
  background: linear-gradient(145deg, #0f766e, #134e4a);
  color: #ecfeff;
  border: 0;
}
.dir-card-total span { color: rgba(236, 254, 255, 0.8); }
.dir-panels {
  display: grid;
  gap: 1rem;
}
.dir-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
}
.dir-panel-head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.dir-panel-head p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.dir-table-wrap { overflow-x: auto; }
.dir-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.dir-table th,
.dir-table td {
  text-align: left;
  padding: 0.7rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.dir-table th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.dir-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
}
.dir-avatar.lg { width: 88px; height: 88px; border-radius: 18px; }
.dir-badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #115e59;
  font-size: 0.75rem;
  font-weight: 700;
}
.dir-contact { font-size: 0.8rem; color: var(--muted); }
.dir-resp { max-width: 220px; font-size: 0.82rem; color: var(--muted); }
.dir-actions { white-space: nowrap; }
.linkish {
  background: none;
  border: 0;
  color: var(--accent-deep);
  font-weight: 700;
  cursor: pointer;
  padding: 0.15rem 0.3rem;
}
.linkish.danger { color: #b91c1c; }
.btn-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  vertical-align: middle;
  border-radius: 8px;
}
.btn-eye:hover {
  background: rgba(15, 23, 42, 0.06);
}
.btn-eye svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  display: block;
}
.dir-empty { text-align: center; color: var(--muted); padding: 1.4rem; }
.dir-schedule { display: grid; gap: 0.85rem; }
.dir-day {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: #fff;
}
.dir-day header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.dir-day-stats { font-size: 0.85rem; color: var(--muted); }
.dir-scene { margin: 0.55rem 0; }
.dir-day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.dir-assigned { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.65rem; }
.dir-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.08);
}
.dir-chip .btn-unassign {
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.lighting-attendance-report {
  margin: 0 0 1.25rem;
}
.lighting-workspace .dir-summary-6 {
  margin-bottom: 1.1rem;
}
.script-workspace .dir-summary-6,
.script-workspace .script-task-summary {
  margin-bottom: 1.1rem;
}
.dir-summary-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 900px) {
  .dir-summary-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.script-progress {
  display: grid;
  gap: 0.2rem;
  min-width: 5.5rem;
}
.script-progress progress {
  width: 100%;
  height: 0.45rem;
}
.script-revision-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}
.script-revision-form {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
}
.craft-dept-workspace .dir-day-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  background: #fff;
}
.craft-dept-workspace .dir-day-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.craft-dept-workspace .dir-day-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
  margin: 0.65rem 0;
}
.craft-dept-workspace .dir-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.craft-dept-workspace .dir-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.82rem;
  background: #f8fafc;
}
.dir-attendance { display: grid; gap: 0.4rem; margin-bottom: 0.65rem; }
.dir-att-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
}
.dir-day-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.dir-day-tools select { max-width: 280px; }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.dir-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 1rem;
}
.dir-modal[hidden] { display: none !important; }
.dir-modal-card {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}
.dir-modal-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.dir-modal-card h2 { margin: 0; font-family: var(--font-display); }
.dir-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.dir-form-grid label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.dir-form-grid label.full { grid-column: 1 / -1; }
.dir-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}
.dir-form-error { color: #b91c1c; font-size: 0.88rem; }
.dir-profile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.dir-profile h3 { margin: 0 0 0.35rem; font-family: var(--font-display); }
@media (max-width: 1100px) {
  .dir-filters { grid-template-columns: 1fr 1fr; }
  .dir-summary,
  .dir-summary-6 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .direction-workspace { grid-template-columns: 1fr; }
  .dir-form-grid { grid-template-columns: 1fr; }
  .dir-att-row { grid-template-columns: 1fr; }
}

.prod-with-scenes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 980px) {
  .prod-with-scenes { grid-template-columns: 1fr; }
}
.prod-scenes-panel {
  position: sticky;
  top: 1rem;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.prod-scenes-head {
  margin-bottom: 0.85rem;
}
.prod-scenes-head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.prod-add-scene-btn {
  width: 100%;
}
.prod-scene-picker {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.prod-scene-picker select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}
.prod-scenes-board {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.prod-scenes-board-head {
  margin-bottom: 0.85rem;
}
.prod-scenes-board-head h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.prod-scenes-round-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.85rem;
  align-items: flex-start;
}
.prod-scene-round {
  width: 8.75rem;
  height: 8.75rem;
  border-radius: 50%;
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #eef7f5 55%, #dceeea 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.7rem 0.65rem 0.55rem;
  gap: 0.15rem;
  overflow: hidden;
}
.prod-scene-round-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: 0.01em;
}
.prod-scene-round-summary {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--ink);
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-scene-round-loc {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.2;
  color: var(--muted);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-scene-round .prod-scene-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: center;
  margin-top: 0.2rem;
}
.prod-scene-round .prod-scene-actions .linkish {
  font-size: 0.62rem;
  font-weight: 700;
}
.prod-dashboard .prod-table-wrap,
.prod-page .prod-table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.prod-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.prod-tabs a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
}
.prod-tabs a.active,
.prod-tabs a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
}
.prod-page .check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* —— Serial Dashboard —— */
.serial-dash-stage { min-width: 0; }
.serial-dash-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.15fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .serial-dash-layout { grid-template-columns: 1fr; }
}
.serial-dash-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.serial-dash-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.serial-dash-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.serial-dash-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.serial-detail-row {
  display: grid;
  grid-template-columns: minmax(140px, 38%) 1fr;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.65rem;
}
.serial-label-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ecfeff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.serial-field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.serial-details-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #fff;
  font: inherit;
}
.serial-details-form[data-readonly="true"] input {
  background: rgba(15, 118, 110, 0.04);
  color: var(--ink, #0f172a);
}
.serial-details-form[data-readonly="false"] input:not([readonly]) {
  background: #fff;
  border-color: rgba(15, 118, 110, 0.45);
}
.serial-budget-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.serial-currency {
  font-weight: 700;
  color: var(--accent-deep, #134e4a);
}
.serial-progress-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.serial-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.serial-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  overflow: hidden;
}
.serial-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: inherit;
}
.serial-save-ok {
  color: #0f766e;
  font-weight: 600;
  margin: 0.5rem 0 0;
}
.serial-workflow-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.serial-workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.9rem;
}
@media (max-width: 640px) {
  .serial-workflow-grid { grid-template-columns: 1fr; }
  .serial-detail-row { grid-template-columns: 1fr; }
}
.serial-workflow-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.serial-workflow-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.45);
}
.serial-workflow-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f766e, #134e4a);
  color: #ecfeff;
}
.serial-workflow-icon svg { width: 18px; height: 18px; }
.serial-workflow-card strong { font-size: 1rem; }
.serial-workflow-status {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.serial-workflow-card.status-idle .serial-workflow-status { background: #e2e8f0; color: #475569; }
.serial-workflow-card.status-active .serial-workflow-status { background: #ccfbf1; color: #0f766e; }
.serial-workflow-card.status-ok .serial-workflow-status { background: #dcfce7; color: #166534; }
.serial-workflow-card.status-hold .serial-workflow-status { background: #ffedd5; color: #9a3412; }
.serial-workflow-date { font-size: 0.82rem; color: var(--muted); }
.serial-back-dash { margin: 0 0 0.85rem; }

.brand-lockup { display: flex; align-items: center; gap: 0.55rem; }
.back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  flex: 0 0 auto;
}
.back-icon:hover { border-color: var(--accent); color: var(--accent-deep); }
.floor-workspace { align-items: start; }
.floor-side { display: grid; align-content: start; gap: 0.45rem; }
.floor-nav, .floor-stage {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.floor-nav.is-on, .floor-stage.is-on, .floor-stage:hover, .floor-nav:hover {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-deep);
}
.floor-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; }
.floor-head h1 { margin: 0; }
.floor-head-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-left: 1.5rem; }
.floor-form, .floor-list, .floor-schedule {
  position: relative;
  margin-top: 1.2rem;
  display: grid;
  gap: 0.85rem;
}
.floor-close { justify-self: end; border: 0; background: transparent; font-weight: 700; cursor: pointer; }
.floor-field { display: grid; gap: 0.35rem; font-weight: 650; }
.floor-field input, .floor-field select, .floor-field textarea {
  width: 100%;
  font-weight: 500;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.floor-choices { display: flex; flex-wrap: wrap; gap: 0.8rem; font-weight: 600; }
.floor-count, .floor-note { margin: 0; color: var(--muted); }
.loc-row, .participant-add, .floor-actions, .floor-list-tools { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.loc-row input { flex: 1; }
.map-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--accent-deep); display: grid; place-items: center; cursor: pointer;
}
.place-chip { display: grid; gap: 0.1rem; font-weight: 500; color: var(--muted); font-size: 0.86rem; }
.participant-list { margin: 0; padding-left: 1.1rem; }
.floor-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.floor-row p { margin: 0.15rem 0 0; }
.floor-map { height: 360px; border-radius: 12px; }
.floor-map-card { width: min(720px, 100%); }
.linkish.danger { color: #9f1239; }
.payflow-embed { margin-top: 0.4rem; }
.payflow-embed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 0.7rem; }
.payflow-embed h2 { margin: 0; font-size: 1.35rem; }
.payflow-frame { width: 100%; height: calc(100vh - 150px); min-height: 760px; border: 1px solid #e8dcc0; border-radius: 16px; background: #fff; }
#releaseAdd[hidden], #releaseAdded[hidden], #releaseBoard[hidden], #releaseForm[hidden], #releaseList[hidden], #releaseNote[hidden] { display: none !important; }
.release-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.85rem; width: 100%; max-width: 100%; min-width: 0; }
.release-grid .full { grid-column: 1 / -1; }
#releaseForm {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#releaseForm .release-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
#releaseForm .release-grid,
#releaseForm .floor-field,
#releaseForm .floor-field > span,
#releaseForm input,
#releaseForm select,
#releaseForm textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: static;
  margin-left: 0;
  margin-right: 0;
}
#releaseForm .floor-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
#releaseForm .floor-field > span {
  display: block;
  white-space: normal;
}
#releaseForm input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  max-width: 100%;
  justify-self: start;
}
.release-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.release-filters, .release-search { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: end; margin-top: 0.4rem; }
.release-filters label, .release-search label { display: grid; gap: 0.25rem; font-size: 0.82rem; font-weight: 700; }
.release-filters input, .release-filters select, .release-search input { padding: 0.45rem 0.6rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; }
.release-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1rem; }
.release-stat, .release-chart { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.85rem; }
.release-stat span { color: var(--muted); font-size: 0.82rem; }
.release-stat strong { display: block; font-size: 1.45rem; margin-top: 0.2rem; }
.release-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 0.9rem; }
.release-chart h3 { margin: 0 0 0.65rem; font-size: 1rem; }
.release-chart p { margin: 0.25rem 0; }
.release-bar { display: grid; grid-template-columns: minmax(5rem, 8rem) 1fr auto; gap: 0.45rem; align-items: center; margin: 0.35rem 0; font-size: 0.84rem; }
.release-bar .track { height: 10px; background: #f3ead7; border-radius: 99px; overflow: hidden; }
.release-bar i { display: block; height: 100%; background: #8a5a2b; }
.release-donut { display: flex; gap: 0.8rem; align-items: center; }
.release-donut ul { margin: 0; padding-left: 1rem; }
.release-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.release-cal .dow { text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.release-day { min-height: 78px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.3rem; font-size: 0.72rem; }
.release-day b { display: block; }
.release-mark { display: block; margin-top: 0.12rem; color: #7c4a1e; }
.release-reminders { display: grid; gap: 0.4rem; margin-top: 0.8rem; }
.release-reminders p, .release-log { margin: 0; background: #fff8ee; border: 1px solid #ead7b4; border-radius: 10px; padding: 0.55rem 0.7rem; }
.release-log + .release-log { margin-top: 0.4rem; }
@media (max-width: 900px) {
  .release-stats, .release-charts, .release-grid { grid-template-columns: 1fr; }
}

/* Release Management (embedded React app on 5176) */
.workspace.release-full { display: block; padding: 0; min-height: 0; }
.release-embed { width: 100%; }
.release-embed .floor-note { margin: 1rem; }
.release-embed iframe { display: block; width: 100%; height: calc(100vh - 70px); min-height: 520px; border: 0; background: #fff; }
