@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700&display=swap");
:root {
  --ink: #17211e;
  --muted: #64706c;
  --line: #dde4df;
  --paper: #f6f8f5;
  --card: #fff;
  --green: #1f6f56;
  --lime: #dff56a;
  --nav: #13241f;
  --danger: #a63b32;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--nav);
  color: white;
}
.brand {
  padding: 42px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.mark {
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  width: 31px;
  height: 31px;
  background: var(--lime);
  color: var(--nav);
  margin-right: 10px;
}
.login-card {
  align-self: center;
  max-width: 560px;
  background: #f8faf5;
  color: var(--ink);
  padding: 56px;
  border-radius: 24px 0 0 24px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--green);
  font-weight: 700;
}
.login h1 {
  font: 700 42px/1.08 Manrope;
  margin: 15px 0;
}
.login form {
  display: grid;
  gap: 16px;
  margin: 32px 0;
}
.login label,
.field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.login input,
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  background: white;
  outline: none;
}
.login input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #1f6f5618;
}
button {
  border: 0;
  border-radius: 9px;
  padding: 12px 17px;
  background: var(--green);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
button:hover {
  filter: brightness(0.95);
}
button.secondary {
  background: #edf1ed;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.danger {
  background: #f9e7e4;
  color: var(--danger);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: #cfdbd6;
  padding: 26px 17px;
  position: fixed;
  width: 230px;
  height: 100vh;
}
.sidebar .brand {
  padding: 0 8px 35px;
  color: white;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar a {
  padding: 11px 13px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.sidebar a.active,
.sidebar a:hover {
  background: #294038;
  color: white;
}
.owner {
  position: absolute;
  bottom: 22px;
  left: 22px;
}
.owner small {
  display: block;
  color: #89a097;
}
.content {
  grid-column: 2;
  padding: 32px 42px;
  max-width: 1440px;
  width: 100%;
}
.workspace-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin: -8px 0 24px;
  padding: 8px 0 0;
}
.workspace-tab {
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-bottom: 0;
  white-space: nowrap;
}
.workspace-tab.active {
  color: var(--green);
  background: white;
  border-color: var(--line);
}
.observation-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto auto;
  gap: 7px;
  margin: 8px 0;
  align-items: center;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.top h1 {
  font: 700 29px Manrope;
  margin: 0;
}
.top p {
  margin: 5px 0;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 8px #17211e08;
}
.span4 {
  grid-column: span 4;
}
.span6 {
  grid-column: span 6;
}
.span8 {
  grid-column: span 8;
}
.span12 {
  grid-column: span 12;
}
.metric {
  font: 700 30px Manrope;
  margin: 12px 0 4px;
}
.muted {
  color: var(--muted);
}
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 9px;
  background: #e8f4ed;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.pill.warn {
  background: #fff3d6;
  color: #8b6200;
}
.pill.sim {
  background: #eee8ff;
  color: #6544a5;
}
.bar {
  height: 7px;
  background: #e9eeea;
  border-radius: 9px;
  overflow: hidden;
  margin: 13px 0;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--green);
}
.toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.list {
  display: grid;
  gap: 10px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.row strong {
  display: block;
}
.empty {
  text-align: center;
  padding: 44px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field.full {
  grid-column: 1/-1;
}
.drop {
  border: 2px dashed #b8c7bf;
  padding: 30px;
  text-align: center;
  border-radius: 12px;
  background: #fafcf9;
}
.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 13px;
}
.clip {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.clip .thumb {
  height: 100px;
  background: linear-gradient(135deg, #244b3f, #96b5a7);
  display: grid;
  place-items: center;
  color: white;
  font-size: 28px;
}
.contact-sheet {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  background: #0d1311;
}
.visual-actions {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}
.visual-actions button {
  width: 100%;
}
.approval {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
}
.approval input {
  margin-top: 2px;
}
.clip .body {
  padding: 14px;
}
.clip p {
  font-size: 13px;
  min-height: 36px;
}
.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.steps span {
  height: 5px;
  flex: 1;
  background: #dfe6e1;
  border-radius: 4px;
}
.steps span.done {
  background: var(--green);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
td,
th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 11px;
}
.plan {
  position: relative;
}
.plan.current {
  border: 2px solid var(--green);
}
.plan h3 {
  font: 700 20px Manrope;
}
.scene {
  display: grid;
  grid-template-columns: 70px 1fr 90px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.scene input {
  width: 100%;
}
.video-wrap {
  background: #0d1311;
  border-radius: 15px;
  padding: 18px;
  display: grid;
  place-items: center;
}
.video-wrap video {
  max-height: 560px;
  aspect-ratio: 9/16;
  max-width: 100%;
}
#toast {
  position: fixed;
  right: 25px;
  top: 25px;
  z-index: 20;
  background: #17211e;
  color: white;
  padding: 13px 18px;
  border-radius: 9px;
  display: none;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #d18a22;
  margin-right: 7px;
}
.steps { display: none; }

/* Cutline studio surface: calm editorial hierarchy, clear actions, no wizard chrome. */
body {
  background: radial-gradient(circle at 10% 0%, #edf6ed 0, transparent 28rem), var(--paper);
}
.shell { grid-template-columns: 268px minmax(0, 1fr); }
.sidebar {
  background: linear-gradient(180deg, #10241f 0%, #17332b 52%, #0d1c19 100%);
  padding: 28px 18px;
  box-shadow: 18px 0 45px #10241f14;
}
.sidebar .brand {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 0 10px 34px;
  letter-spacing: .14em;
}
.sidebar .brand small {
  grid-column: 2;
  color: #8fa89f;
  font-size: 11px;
  letter-spacing: .04em;
  margin-top: -10px;
}
.mark { width: 36px; height: 36px; border-radius: 12px; box-shadow: 0 0 0 5px #dff56a1c; }
.nav-label {
  padding: 0 13px 9px;
  color: #718d83;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 10px;
  font-weight: 700;
}
.nav-label-secondary { margin-top: 27px; }
.sidebar nav { gap: 4px; }
.sidebar a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.sidebar a:hover { transform: translateX(2px); background: #29483d; border-color: #ffffff12; }
.sidebar a.active { background: #dff56a; color: #10241f; border-color: #dff56a; box-shadow: 0 8px 18px #07120f28; }
.nav-glyph { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; opacity: .75; }
.sidebar a.active .nav-glyph { background: currentColor; }
.owner { display: flex; align-items: center; gap: 10px; left: 25px; }
.owner-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #dff56a; color: #10241f; font-weight: 800; }
.owner small { margin-top: 3px; }
.content { max-width: 1540px; padding: 32px clamp(24px, 4vw, 64px) 64px; }
.workspace-tabs { align-items: center; gap: 10px; margin: -8px 0 42px; padding-top: 0; border-bottom-color: #d5e1d8; }
.workspace-caption { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-right: 4px; }
.workspace-tab { border-radius: 10px 10px 0 0; padding: 10px 14px; }
.top { margin-bottom: 34px; }
.section-kicker { margin: 0 0 10px !important; color: var(--green) !important; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.top h1 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -.04em; }
.top p:last-child { font-size: 15px; }
.card { border-color: #d9e5dc; border-radius: 18px; padding: 24px; box-shadow: 0 12px 30px #1632280a; }
.card h3 { letter-spacing: -.02em; }
.metric { letter-spacing: -.05em; }
button { border-radius: 11px; padding: 12px 18px; box-shadow: 0 5px 12px #1f6f5622; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 18px #1f6f5630; }
button.secondary { box-shadow: none; }
.drop { border-radius: 18px; border-color: #9fc4ad; background: linear-gradient(135deg, #f7fcf6, #edf7ee); padding: 42px 30px; }
.clip { border-radius: 16px; background: #fbfdfb; }
.clip .body { padding: 17px; }
.scene { border-bottom-color: #e4ece5; padding: 15px 0; }
.video-wrap { min-height: 580px; background: radial-gradient(circle at 50% 20%, #274c3e, #07110e 70%); }
#toast { border: 1px solid #ffffff20; box-shadow: 0 15px 35px #07120f40; }

@media (max-width: 800px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login-card {
    margin: 20px;
    border-radius: 20px;
    padding: 30px;
  }
  .login h1 {
    font-size: 32px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
  }
  .owner {
    display: none;
  }
  .content {
    padding: 24px;
    grid-column: auto;
  }
  .span4,
  .span6,
  .span8,
  .span12 {
    grid-column: 1/-1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .observation-row {
    grid-template-columns: 1fr;
  }
}
