:root {
  --forest-950: #0b352d;
  --forest-900: #104238;
  --forest-800: #175445;
  --forest-700: #226a55;
  --mint-100: #e5f1e7;
  --mint-50: #f0f6ee;
  --lime: #d9e879;
  --gold: #f1d77e;
  --cream: #f7f4e9;
  --paper: #fffdf7;
  --ink: #123b32;
  --muted: #6d7c76;
  --line: #dce5dc;
  --danger: #b9473f;
  --shadow: 0 18px 48px rgba(25, 67, 54, .09);
  --soft-shadow: 0 8px 26px rgba(25, 67, 54, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--mint-50);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.full { width: 100%; }
.center { text-align: center; }
.error { color: var(--danger); font-size: 13px; }
.overline {
  color: var(--forest-700);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}
.overline.light { color: var(--lime); }

.button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  color: var(--forest-950);
  background: white;
  font-weight: 800;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .48; cursor: wait; transform: none; }
.button.primary {
  color: white;
  background: var(--forest-800);
  box-shadow: 0 10px 24px rgba(23, 84, 69, .2);
}
.button.primary:hover { background: var(--forest-900); }
.button.dark { color: var(--forest-950); background: var(--lime); }
.button.dark:hover { background: #e4ef91; }
.button.ghost { border: 1px solid var(--line); background: #fff; }
.small-button { min-height: 34px; padding: 7px 12px; border: 1px solid #bfd0c5; color: white; background: var(--forest-800); font-size: 11px; }

input, textarea, select {
  width: 100%;
  border: 1px solid #cfdcd2;
  border-radius: 11px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .88);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input::placeholder, textarea::placeholder { color: #9aa7a0; }
input:focus, textarea:focus, select:focus {
  border-color: var(--forest-700);
  background: white;
  box-shadow: 0 0 0 4px rgba(34, 106, 85, .1);
}
textarea { resize: vertical; line-height: 1.65; }
label { display: grid; gap: 8px; color: #315a4e; font-size: 13px; font-weight: 800; }

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, .65fr);
  background: var(--paper);
}
.login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 42px clamp(42px, 6vw, 88px);
  color: white;
  background:
    radial-gradient(circle at 72% 24%, rgba(217, 232, 121, .18), transparent 26%),
    linear-gradient(145deg, var(--forest-950), #164f42 66%, #1d5c4b);
}
.login-visual::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}
.login-brand, .app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: var(--forest-950);
  background: linear-gradient(135deg, var(--gold), var(--lime));
  font-size: 12px;
  font-weight: 950;
}
.login-brand strong, .login-brand small,
.app-brand strong, .app-brand small { display: block; }
.login-brand strong { font-size: 18px; }
.login-brand small { margin-top: 2px; color: rgba(255,255,255,.48); font-size: 8px; letter-spacing: .15em; }
.login-copy { position: relative; z-index: 2; width: min(650px, 80%); margin-top: 14vh; }
.login-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.12;
  letter-spacing: -.055em;
}
.login-copy > p { width: min(580px, 92%); color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.8; }
.login-metrics { display: flex; gap: 46px; margin-top: 44px; }
.login-metrics strong, .login-metrics span { display: block; }
.login-metrics strong { color: var(--lime); font-size: 24px; }
.login-metrics span { margin-top: 5px; color: rgba(255,255,255,.5); font-size: 10px; }
.visual-cards { position: absolute; right: 5%; bottom: 8%; z-index: 2; width: 310px; height: 300px; }
.visual-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 30px 70px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}
.visual-card > span { position: absolute; top: 12px; right: 12px; color: rgba(255,255,255,.42); font-size: 9px; }
.vertical-card { left: 5px; bottom: 0; width: 150px; height: 250px; padding: 24px 18px; transform: rotate(-5deg); }
.vertical-card strong { position: absolute; left: 18px; bottom: 42px; font-size: 20px; line-height: .95; }
.vertical-card small, .horizontal-card small { position: absolute; left: 18px; bottom: 17px; color: rgba(255,255,255,.45); font-size: 8px; }
.product-glow { width: 86px; height: 86px; margin: 42px auto; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f5df8e, #70a88e 50%, transparent 68%); filter: blur(1px); }
.horizontal-card { right: 0; top: 0; width: 210px; height: 125px; transform: rotate(4deg); }
.logo-stage { display: grid; place-items: center; height: 100%; color: var(--gold); font-size: 25px; font-weight: 950; letter-spacing: -.04em; }
.login-form-panel { display: grid; place-items: center; min-height: 100vh; padding: 50px; background: #fbfaf4; }
.login-card { width: min(420px, 100%); display: grid; gap: 19px; }
.login-card h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.login-card > p { margin: -8px 0 8px; color: var(--muted); line-height: 1.7; }
.login-safe { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; color: #89958f; font-size: 10px; }
.login-safe i { width: 6px; height: 6px; border-radius: 50%; background: var(--forest-700); }

/* App chrome */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 232px;
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
  color: white;
  background: var(--forest-950);
}
.app-brand { padding: 0 7px 22px; }
.app-brand strong { font-size: 14px; }
.app-brand small { margin-top: 3px; color: rgba(255,255,255,.38); font-size: 7px; letter-spacing: .14em; }
.app-brand .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 10px; }
.new-project {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--forest-950);
  background: linear-gradient(135deg, var(--gold), var(--lime));
}
.new-project span { font-size: 18px; font-weight: 400; }
.side-nav { display: grid; gap: 5px; margin-top: 22px; }
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 10px;
  padding: 10px 11px;
  color: rgba(255,255,255,.57);
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.1); }
.nav-icon { width: 20px; color: var(--gold); font-size: 15px; text-align: center; }
.quota-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
}
.quota-head { display: flex; justify-content: space-between; font-size: 9px; }
.quota-head span { color: rgba(255,255,255,.48); }
.quota-head b { color: var(--lime); }
.quota-track { height: 5px; overflow: hidden; margin: 10px 0; border-radius: 99px; background: rgba(255,255,255,.12); }
.quota-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--lime)); transition: width .3s; }
.quota-card p { margin: 0; color: rgba(255,255,255,.48); font-size: 9px; }
.quota-card p strong { color: white; }
.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 15px 5px 2px; }
.user-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--forest-950); background: var(--cream); font-size: 11px; font-weight: 900; }
.sidebar-user div { min-width: 0; flex: 1; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: 10px; }
.sidebar-user small { margin-top: 2px; color: rgba(255,255,255,.4); font-size: 8px; }
.sidebar-user button { border: 0; color: rgba(255,255,255,.5); background: transparent; font-size: 9px; }
.main-area { min-height: 100vh; margin-left: 232px; }
.topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  border-bottom: 1px solid rgba(22, 78, 62, .1);
  background: rgba(247, 244, 233, .9);
  backdrop-filter: blur(14px);
}
.topbar h1 { margin: 3px 0 0; font-size: 20px; letter-spacing: -.035em; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.cloud-badge { padding: 7px 10px; border: 1px solid #d8dfd4; border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.55); font-size: 9px; }
.top-user { font-size: 11px; font-weight: 800; }
.workspace { width: min(1240px, calc(100% - 48px)); padding: 34px 0 80px; margin: 0 auto; }

/* Dashboard */
.welcome-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 190px;
  padding: 34px 40px;
  border: 1px solid #d6dfcf;
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 20%, rgba(241, 215, 126, .5), transparent 32%),
    linear-gradient(125deg, #e0efdf, #f8efd0 78%);
  box-shadow: var(--soft-shadow);
}
.welcome-banner::after { content: ""; position: absolute; right: 8%; width: 280px; height: 280px; border: 1px solid rgba(16,66,56,.08); border-radius: 50%; box-shadow: 0 0 0 42px rgba(16,66,56,.025), 0 0 0 84px rgba(16,66,56,.018); }
.welcome-banner h2 { margin: 8px 0; font-size: 36px; letter-spacing: -.045em; }
.welcome-banner p { margin: 0; color: #62766c; font-size: 13px; }
.welcome-orb { position: relative; z-index: 2; display: grid; place-items: center; width: 112px; height: 112px; margin-right: 6%; border-radius: 34px; color: var(--forest-950); background: linear-gradient(145deg, var(--gold), var(--lime)); box-shadow: 0 25px 45px rgba(85, 105, 42, .2); transform: rotate(8deg); }
.welcome-orb span { font-size: 27px; font-weight: 950; transform: rotate(-8deg); }
.project-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.project-type-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}
.project-card-top { display: flex; justify-content: space-between; align-items: center; }
.project-number { color: #a7b5ad; font-size: 11px; font-weight: 900; }
.tag { padding: 6px 9px; border-radius: 99px; color: var(--forest-800); background: var(--mint-100); font-size: 9px; font-weight: 900; }
.tag.warm { color: #765f14; background: #faedbd; }
.project-visual { position: relative; overflow: hidden; height: 160px; margin: 20px 0 24px; border-radius: 15px; }
.talk-visual { background: linear-gradient(135deg, #123e35, #26705a); }
.phone-frame { position: absolute; left: 22%; bottom: -28px; width: 100px; height: 170px; border: 6px solid #f8f6eb; border-radius: 20px; background: linear-gradient(160deg, #d8e779, #efcf6e); transform: rotate(-5deg); box-shadow: 0 20px 35px rgba(0,0,0,.22); }
.phone-frame i { position: absolute; inset: 30px 16px 50px; border-radius: 50%; background: rgba(16,66,56,.52); }
.phone-frame b { position: absolute; left: 12px; bottom: 22px; color: var(--forest-950); font-size: 9px; }
.script-lines { position: absolute; right: 16%; top: 42px; width: 35%; display: grid; gap: 12px; }
.script-lines i { height: 7px; border-radius: 99px; background: rgba(255,255,255,.7); }
.script-lines i:nth-child(2) { width: 72%; }
.script-lines i:nth-child(3) { width: 88%; background: var(--lime); }
.logo-visual { display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle at center, #286650, var(--forest-950) 67%); }
.logo-visual strong { position: relative; z-index: 2; font-size: 40px; letter-spacing: -.06em; }
.logo-visual small { position: absolute; bottom: 18px; color: rgba(255,255,255,.42); font-size: 8px; letter-spacing: .15em; }
.beam { position: absolute; width: 75%; height: 30px; background: rgba(241,215,126,.28); filter: blur(22px); transform: rotate(-10deg); }
.project-type-card h3 { margin: 7px 0 9px; font-size: 25px; letter-spacing: -.04em; }
.project-type-card > p { min-height: 46px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.project-type-card ul { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 18px 0 22px; list-style: none; }
.project-type-card li { padding: 6px 8px; border-radius: 7px; color: #557066; background: #f0f4ed; font-size: 9px; }
.project-type-card .button { display: flex; justify-content: space-between; width: 100%; }
.dashboard-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; margin-top: 24px; }
.surface, .panel { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--soft-shadow); }
.surface { padding: 24px; }
.section-heading { margin-bottom: 17px; }
.section-heading h3 { margin: 5px 0 0; font-size: 18px; }
.empty-state { display: grid; place-items: center; min-height: 120px; border: 1px dashed #cbd8ce; border-radius: 12px; color: #90a097; font-size: 11px; }
.compact-list { display: grid; gap: 8px; }
.compact-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; width: 100%; border: 1px solid #e3e9e2; border-radius: 11px; padding: 11px; color: var(--ink); background: white; text-align: left; }
.compact-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--forest-700); background: var(--mint-100); font-size: 17px; }
.compact-item strong, .compact-item small { display: block; }
.compact-item strong { font-size: 11px; }
.compact-item small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.compact-item b { padding: 5px 7px; border-radius: 99px; color: var(--forest-700); background: var(--mint-100); font-size: 8px; }
.mini-assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-asset { overflow: hidden; border: 0; border-radius: 9px; padding: 0; background: #e5ece5; }
.mini-asset video { width: 100%; height: 78px; display: block; object-fit: cover; background: var(--forest-950); }
.mini-asset span { display: block; overflow: hidden; padding: 8px; color: var(--ink); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

/* Workflows */
.view-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 25px; }
.view-intro h2 { margin: 7px 0 6px; font-size: 34px; letter-spacing: -.045em; }
.view-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.format-chip, .compute-chip { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--soft-shadow); }
.portrait-format, .landscape-format { display: block; width: 20px; height: 31px; border: 2px solid var(--forest-700); border-radius: 4px; background: var(--gold); }
.landscape-format { width: 31px; height: 20px; }
.format-chip small, .format-chip strong { display: block; }
.format-chip small { color: var(--muted); font-size: 8px; }
.format-chip strong { margin-top: 2px; font-size: 10px; }
.compute-chip { color: white; background: var(--forest-800); }
.compute-chip strong { color: var(--lime); font-size: 26px; }
.compute-chip span { font-size: 9px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 6px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); list-style: none; box-shadow: var(--soft-shadow); }
.steps li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px; color: #9aa8a0; }
.steps > li > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #82938a; background: #edf2ec; font-size: 10px; font-weight: 900; }
.steps strong, .steps small { display: block; }
.steps strong { font-size: 10px; }
.steps small { margin-top: 2px; font-size: 8px; }
.steps li.active { color: var(--forest-950); background: #e7f0df; }
.steps li.active > span { color: white; background: var(--forest-800); }
.steps li.done > span { color: var(--forest-950); background: var(--lime); }
.panel { padding: clamp(24px, 3.5vw, 38px); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 23px; margin-bottom: 25px; border-bottom: 1px solid #e7ece5; }
.panel-heading h3 { margin: 6px 0; font-size: 25px; letter-spacing: -.035em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.status-pill { flex: none; padding: 7px 10px; border: 1px solid #cddccf; border-radius: 99px; color: var(--forest-700); background: #eef5eb; font-size: 9px; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.wide { grid-column: 1 / -1; }
.aspect-field { min-width: 0; padding: 0; border: 0; margin: 0; }
.aspect-field legend { padding: 0; margin-bottom: 8px; color: #315a4e; font-size: 13px; font-weight: 800; }
.aspect-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aspect-option { position: relative; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 78px; padding: 13px 15px; border: 1px solid #d4ded5; border-radius: 12px; background: white; cursor: pointer; }
.aspect-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.aspect-option:has(input:checked) { border-color: var(--forest-700); background: #eff5e9; box-shadow: 0 0 0 3px rgba(34,106,85,.08); }
.aspect-option strong, .aspect-option small { display: block; }
.aspect-option strong { font-size: 12px; }
.aspect-option small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 500; }
.aspect-option b { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #ccd7cf; border-radius: 50%; color: transparent; font-size: 9px; }
.aspect-option:has(input:checked) b { border-color: var(--forest-800); color: white; background: var(--forest-800); }
.ratio-drawing { position: relative; display: block; width: 24px; height: 39px; border: 2px solid #7e9187; border-radius: 5px; }
.ratio-drawing::after { content: ""; position: absolute; inset: 5px; border-radius: 2px; background: linear-gradient(145deg, var(--gold), #83b798); }
.ratio-drawing.landscape { width: 39px; height: 24px; }
.panel-action { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 3px; color: #87968f; font-size: 10px; }
.result-box { display: grid; gap: 15px; padding: 19px; margin-top: 25px; border: 1px solid #dce6d9; border-radius: 13px; background: linear-gradient(145deg, #fbfcf5, #f0f5ec); }
.result-heading, .button-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.script-meta { display: flex; align-items: center; gap: 10px; }
.script-meta b { font-size: 10px; color: var(--muted); }
.save-status { padding: 4px 8px; border-radius: 999px; background: #dcefe4; color: var(--forest-700); font-size: 9px; font-weight: 800; }
.save-status.dirty { background: #fff0c9; color: #8a5b00; }
.result-heading strong { font-size: 12px; }
.result-heading span { color: var(--muted); font-size: 9px; }
.translation-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 3px; }
.translation-heading strong, .translation-heading small { display: block; }
.translation-heading strong { font-size: 12px; }
.translation-heading small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 500; }
.translation-text { color: #50675d; background: #f3f5ec; }
.text-button { border: 0; padding: 5px 0; color: var(--forest-700); background: transparent; font-size: 9px; font-weight: 800; }
.text-button:disabled { opacity: .5; cursor: wait; }
.button-row { justify-content: flex-end; }
.notice, .admin-note { padding: 11px 13px; margin-bottom: 22px; border-radius: 9px; color: #63776e; background: #eef3ea; font-size: 10px; }
.field-help { color: var(--muted); font-size: 9px; font-weight: 500; }
audio, video { width: 100%; }
audio { height: 42px; }
.result-box video { max-height: 610px; border-radius: 10px; background: var(--forest-950); }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.upload-grid.single-main { grid-template-columns: 1fr; }
.upload-card { position: relative; min-height: 175px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px dashed #b9cabf; border-radius: 13px; background: #f7faf4; cursor: pointer; }
.upload-card:hover { border-color: var(--forest-700); background: #f0f6eb; }
.upload-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: white; background: var(--forest-800); font-size: 20px; }
.upload-card strong { margin: 11px 0 4px; font-size: 12px; }
.upload-card small { color: var(--muted); font-size: 9px; font-weight: 500; }
.upload-card b { margin-top: 11px; color: var(--forest-700); font-size: 9px; }
.logo-source-block { margin: 20px 0; padding: 18px; border: 1px solid #dce4db; border-radius: 13px; background: #fbfcf7; }
.block-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.block-title strong { font-size: 12px; }
.block-title span { color: var(--muted); font-size: 9px; }
.source-tabs { display: flex; gap: 8px; }
.source-tabs label { position: relative; }
.source-tabs input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.source-tabs span { display: block; padding: 8px 12px; border: 1px solid #d1ddd3; border-radius: 8px; color: #6e8177; background: white; font-size: 10px; cursor: pointer; }
.source-tabs label:has(input:checked) span { border-color: var(--forest-700); color: white; background: var(--forest-800); }
.source-panel { margin-top: 14px; }
.inline-upload { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; border: 1px dashed #bfd0c4; border-radius: 10px; padding: 12px; cursor: pointer; }
.inline-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.inline-upload span { padding: 7px 10px; border-radius: 7px; color: white; background: var(--forest-800); font-size: 9px; text-align: center; }
.inline-upload b { color: var(--muted); font-size: 9px; }
.position-field { margin-bottom: 21px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #dfe7de; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest-700), var(--lime)); transition: width .35s; }
.completion { padding: 10px 20px 30px; text-align: center; }
.complete-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 15px; border-radius: 18px; color: var(--forest-950); background: var(--lime); font-size: 22px; font-weight: 900; box-shadow: 0 12px 25px rgba(110,139,70,.2); }
.completion h3 { margin: 7px 0; font-size: 28px; }
.completion p { color: var(--muted); font-size: 11px; }
.export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 25px; }
.export-grid button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 11px; padding: 15px; color: var(--ink); background: white; text-align: left; }
.export-grid button > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: var(--forest-800); background: var(--mint-100); font-size: 9px; font-weight: 900; }
.export-grid strong, .export-grid small { display: block; }
.export-grid strong { font-size: 11px; }
.export-grid small { margin-top: 3px; color: var(--muted); font-size: 8px; }

/* Logo generator and assets */
.logo-workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.logo-guide { position: sticky; top: 96px; overflow: hidden; padding: 28px; border-radius: 18px; color: white; background: linear-gradient(155deg, var(--forest-950), #1c5b49); box-shadow: var(--shadow); }
.logo-guide h3 { margin: 9px 0 23px; font-size: 22px; }
.logo-guide ol { display: grid; gap: 18px; padding: 0; list-style: none; counter-reset: guide; }
.logo-guide li { position: relative; padding-left: 35px; counter-increment: guide; }
.logo-guide li::before { content: counter(guide); position: absolute; left: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: var(--forest-950); background: var(--lime); font-size: 9px; font-weight: 900; }
.logo-guide b, .logo-guide span { display: block; }
.logo-guide b { font-size: 11px; }
.logo-guide span { margin-top: 4px; color: rgba(255,255,255,.5); font-size: 9px; }
.prompt-example { padding: 14px; margin-top: 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.055); font-size: 9px; line-height: 1.7; }
.logo-guide > p { margin: 16px 0 0; color: rgba(255,255,255,.4); font-size: 8px; line-height: 1.6; }
.spec-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.spec-row span { padding: 6px 9px; border-radius: 99px; color: var(--forest-700); background: var(--mint-100); font-size: 9px; font-weight: 800; }
.asset-library { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; min-height: 220px; }
.asset-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--soft-shadow); }
.asset-card video { display: block; width: 100%; height: 230px; object-fit: contain; background: var(--forest-950); }
.asset-info { padding: 13px; }
.asset-info strong, .asset-info small { display: block; }
.asset-info strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.asset-info small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.asset-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 13px 13px; }
.asset-actions button { border: 1px solid #cbd9ce; border-radius: 8px; padding: 7px; color: var(--forest-800); background: white; font-size: 8px; font-weight: 800; }
.asset-actions button:first-child { color: white; background: var(--forest-800); }
.selectable-assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-height: 310px; overflow-y: auto; }
.selectable-asset { position: relative; overflow: hidden; border: 2px solid transparent; border-radius: 10px; padding: 0; color: var(--ink); background: #e8eee8; text-align: left; }
.selectable-asset.selected { border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(34,106,85,.1); }
.selectable-asset video { display: block; width: 100%; height: 95px; object-fit: cover; background: var(--forest-950); pointer-events: none; }
.selectable-asset .asset-info { padding: 8px; }
.asset-check { position: absolute; right: 7px; top: 7px; display: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: white; background: var(--forest-700); font-size: 9px; }
.selectable-asset.selected .asset-check { display: grid; }

/* Admin */
.admin-create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-form { display: grid; gap: 14px; }
.admin-list-section { margin-top: 20px; }
.code-result { padding: 13px; margin-top: 16px; border: 1px solid #d7e1d5; border-radius: 10px; background: #f1f5e9; }
.code-result > span { display: block; margin-bottom: 9px; color: #7b6b2d; font-size: 9px; font-weight: 800; }
.code-result > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.code-result input { font-family: Consolas, monospace; font-weight: 800; letter-spacing: .05em; }
.table-status { display: inline-block; padding: 5px 7px; border-radius: 99px; color: var(--forest-700); background: var(--mint-100); font-size: 8px; font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e3e9e2; text-align: left; font-size: 10px; }
th { color: var(--muted); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: var(--muted); font-size: 8px; }
td input { width: 100px; padding: 8px; font-size: 10px; }

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  color: white;
  background: var(--forest-950);
  box-shadow: 0 20px 48px rgba(0,0,0,.22);
  font-size: 11px;
}

@media (max-width: 1100px) {
  .login-page { grid-template-columns: 1fr 430px; }
  .visual-cards { opacity: .65; }
  .logo-workspace-grid { grid-template-columns: 1fr; }
  .logo-guide { position: static; }
  .asset-library { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
  .login-page { display: block; }
  .login-visual { display: none; }
  .login-form-panel { background: radial-gradient(circle at 15% 10%, #dcebd6, transparent 35%), var(--paper); }
  .sidebar { position: static; width: 100%; min-height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 11px 14px; }
  .app-brand { padding: 0; margin-right: auto; }
  .app-brand small, .quota-card, .sidebar-user, .side-nav .nav-item:not(.active) { display: none; }
  .side-nav { display: block; margin: 0; }
  .side-nav .nav-item.active { padding: 8px 10px; }
  .new-project { width: auto; min-height: 38px; padding: 8px 12px; }
  .main-area { margin-left: 0; }
  .topbar { min-height: 62px; padding: 10px 18px; }
  .cloud-badge { display: none; }
  .workspace { width: min(100% - 28px, 760px); padding-top: 24px; }
  .project-type-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .admin-create-grid { grid-template-columns: 1fr; }
  .welcome-banner { min-height: 160px; padding: 28px; }
  .welcome-orb { width: 80px; height: 80px; margin-right: 0; }
  .steps li { justify-content: center; }
  .steps li div { display: none; }
}

@media (max-width: 600px) {
  .login-form-panel { padding: 34px 24px; }
  .login-card h2 { font-size: 29px; }
  .topbar h1 { font-size: 17px; }
  .welcome-banner h2, .view-intro h2 { font-size: 27px; }
  .welcome-orb { display: none; }
  .project-type-card { padding: 21px; }
  .view-intro, .panel-heading, .panel-action, .button-row, .block-title, .translation-heading { align-items: stretch; flex-direction: column; }
  .view-intro { align-items: flex-start; }
  .format-chip, .compute-chip { align-self: flex-start; }
  .form-grid, .aspect-options, .export-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .steps { gap: 3px; }
  .steps li { padding: 8px 4px; }
  .panel { padding: 22px 17px; }
  .panel-heading .status-pill { align-self: flex-start; }
  .panel-action .button, .button-row .button { width: 100%; }
  .source-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .source-tabs span { padding: 8px 5px; text-align: center; }
  .selectable-assets { grid-template-columns: repeat(2, 1fr); }
  .asset-library { grid-template-columns: 1fr; }
  .asset-card video { height: 270px; }
  .mini-assets { grid-template-columns: repeat(2, 1fr); }
}
