:root {
  --ink: #171812;
  --ink-soft: #4d5047;
  --muted: #858879;
  --line: #dedfd5;
  --line-light: #e9e9e1;
  --paper: #f4f3ee;
  --card: #fbfaf6;
  --white: #fff;
  --lime: #d8ff69;
  --lime-deep: #b8e340;
  --coral: #ff826f;
  --iris: #8c83ff;
  --sun: #ffc85c;
  --ocean: #62c8de;
  --violet: #c5a6ff;
  --rose: #ff9eb5;
  --slate: #bcc4b7;
  --danger: #dc4e3f;
  --shadow: 0 20px 70px rgba(26, 28, 19, .09);
  --shadow-soft: 0 12px 34px rgba(26, 28, 19, .07);
  --sidebar-width: 246px;
  --topbar-height: 86px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(183, 223, 64, .45);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.svg-sprite {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #f7f5ed;
  background: #14150f;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: opacity .5s var(--ease), visibility .5s;
}

.boot-screen.leaving {
  opacity: 0;
  visibility: hidden;
}

.boot-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 16px;
  animation: bootPulse 1.4s infinite ease-in-out;
}

.boot-mark svg {
  width: 30px;
  height: 30px;
}

@keyframes bootPulse {
  50% { transform: rotate(8deg) scale(.92); }
}

/* Authentication */
.auth-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr);
  min-height: 100vh;
  background: #f8f7f2;
}

.auth-story {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 100vh;
  padding: 40px clamp(40px, 5vw, 88px) 54px;
  flex-direction: column;
  justify-content: space-between;
  color: #f7f5ed;
  background:
    radial-gradient(circle at 76% 70%, rgba(216, 255, 105, .17), transparent 25%),
    radial-gradient(circle at 12% 8%, rgba(255, 130, 111, .18), transparent 24%),
    #151610;
}

.auth-story::after {
  content: "";
  position: absolute;
  right: -13%;
  bottom: -35%;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(255, 255, 255, .02),
    0 0 0 160px rgba(255, 255, 255, .015);
}

.auth-brand,
.sidebar-brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .15em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--lime);
  border-radius: 11px;
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.2;
}

.auth-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: auto 0;
  padding: 90px 0 130px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #777a6e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, .48);
}

.auth-copy h1 {
  max-width: 680px;
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(64px, 7.2vw, 116px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .94;
}

.auth-copy h1 em {
  color: var(--lime);
  font-weight: 500;
}

.auth-copy > p {
  max-width: 480px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: 15px;
  line-height: 1.9;
}

.auth-proof {
  display: flex;
  gap: 44px;
  margin-top: 50px;
}

.auth-proof div {
  display: grid;
  gap: 4px;
}

.auth-proof strong {
  font-family: "Songti SC", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
}

.auth-proof span {
  color: rgba(255, 255, 255, .42);
  font-size: 10px;
  letter-spacing: .08em;
}

.floating-frame {
  position: absolute;
  z-index: 3;
  width: 236px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 19px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}

.frame-a {
  top: 22%;
  right: 7%;
  transform: rotate(5deg);
  animation: floatA 7s ease-in-out infinite;
}

.frame-b {
  right: 15%;
  bottom: 7%;
  transform: rotate(-4deg);
  animation: floatB 8s ease-in-out infinite;
}

@keyframes floatA {
  50% { transform: rotate(3deg) translateY(-12px); }
}

@keyframes floatB {
  50% { transform: rotate(-2deg) translateY(10px); }
}

.frame-scene {
  position: relative;
  height: 146px;
  overflow: hidden;
  border-radius: 13px;
}

.scene-coral {
  background:
    linear-gradient(90deg, transparent 57%, rgba(255,255,255,.2) 57.5%, transparent 58%),
    radial-gradient(circle at 70% 55%, #ffcf89 0 15%, transparent 16%),
    radial-gradient(circle at 35% 65%, #ef7163 0 22%, transparent 23%),
    linear-gradient(138deg, #1b1620 10%, #743b55 48%, #ff8c6f 100%);
}

.scene-coral::before {
  content: "";
  position: absolute;
  left: 52%;
  bottom: -16px;
  width: 70px;
  height: 135px;
  border-radius: 48% 48% 20% 20%;
  background: linear-gradient(#1f1727, #362332);
  transform: rotate(8deg);
}

.scene-green {
  background:
    radial-gradient(ellipse at 50% 43%, rgba(255, 244, 212, .9) 0 8%, transparent 9%),
    radial-gradient(ellipse at 50% 66%, #699f78 0 20%, transparent 21%),
    linear-gradient(145deg, #b9e17b, #2e6c67 62%, #132f35);
}

.scene-time,
.scene-cut,
.focus-label {
  position: absolute;
  z-index: 2;
  padding: 4px 7px;
  color: #fff;
  background: rgba(10, 12, 8, .55);
  border-radius: 5px;
  font-size: 8px;
  letter-spacing: .06em;
}

.scene-time {
  right: 10px;
  bottom: 10px;
}

.scene-cut {
  top: 10px;
  left: 10px;
}

.focus-ring {
  position: absolute;
  top: 40px;
  left: 76px;
  width: 82px;
  height: 82px;
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
}

.focus-ring::before,
.focus-ring::after {
  content: "";
  position: absolute;
  background: white;
}

.focus-ring::before {
  top: 50%;
  left: -8px;
  width: 96px;
  height: 1px;
}

.focus-ring::after {
  top: -8px;
  left: 50%;
  width: 1px;
  height: 96px;
}

.focus-label {
  top: 26px;
  left: 16px;
}

.frame-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 5px 3px;
  color: rgba(255,255,255,.75);
  font-size: 9px;
}

.green-dot,
.purple-dot,
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(216,255,105,.12);
}

.purple-dot {
  background: #b59cff;
  box-shadow: 0 0 0 3px rgba(181,156,255,.12);
}

.auth-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to right, black, transparent 85%);
}

.auth-version {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  color: rgba(255, 255, 255, .25);
  font-size: 9px;
  letter-spacing: .2em;
}

.auth-panel {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px clamp(30px, 5vw, 80px);
}

.mobile-brand {
  display: none;
}

.auth-card {
  width: min(100%, 430px);
}

.auth-tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  position: relative;
  padding: 0 0 13px;
  border: 0;
  color: #a1a397;
  background: none;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.auth-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}

.auth-tab.active {
  color: var(--ink);
}

.auth-tab.active::after {
  transform: scaleX(1);
}

.form-heading {
  margin-bottom: 32px;
}

.form-heading h2 {
  margin: 0 0 9px;
  font-family: "Songti SC", Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.form-heading p,
.modal-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.field-label {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
  color: #686b5e;
  font-size: 11px;
  font-weight: 700;
}

.text-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 450;
  transition: border-color .2s, box-shadow .2s;
}

.text-input::placeholder {
  color: #aeb0a5;
}

.text-input:hover {
  border-color: #c6c8bc;
}

.text-input:focus {
  border-color: #b7d64f;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(216, 255, 105, .22);
}

.textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.65;
}

.primary-button,
.hero-primary,
.new-project-button,
.demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}

.primary-button {
  border-radius: 12px;
  padding: 14px 18px;
  color: #f8f8f2;
  background: var(--ink);
}

.primary-button:hover,
.hero-primary:hover,
.new-project-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(20, 22, 15, .17);
}

.primary-button svg {
  width: 17px;
  height: 17px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid #dedfd5;
  border-radius: 9px;
  color: #696c60;
  background: #f8f7f1;
  font-size: 8px;
  font-weight: 650;
  cursor: pointer;
}

.secondary-button:hover {
  color: var(--ink);
  border-color: #cdd0c1;
  background: #fff;
}

.secondary-button svg {
  width: 13px;
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 15px 20px;
  color: var(--ink);
  background: var(--lime);
}

.auth-submit:hover {
  background: var(--lime-deep);
}

.auth-submit svg {
  margin-left: auto;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: #a7a99e;
  font-size: 10px;
}

.or-divider::before,
.or-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.demo-button {
  width: 100%;
  justify-content: flex-start;
  gap: 13px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  background: rgba(255, 255, 255, .65);
}

.demo-button:hover {
  border-color: #c8cbbd;
  background: white;
}

.demo-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #354516;
  background: #d2f780;
  font-family: "Songti SC", serif;
  font-size: 17px;
}

.demo-button > span:nth-child(2) {
  display: grid;
  gap: 1px;
}

.demo-button strong {
  font-size: 12px;
}

.demo-button small {
  color: var(--muted);
  font-size: 10px;
}

.demo-button > svg {
  width: 16px;
  margin-left: auto;
}

.form-note,
.auth-legal {
  margin: 22px 0 0;
  color: #a0a297;
  font-size: 10px;
  line-height: 1.6;
}

.admin-entry {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 4px;
  border: 0;
  color: #7d8074;
  background: transparent;
  cursor: pointer;
}

.admin-entry svg {
  width: 14px;
}

.admin-entry span {
  font-size: 9px;
  font-weight: 650;
}

.admin-entry small {
  margin-left: auto;
  color: #a0a297;
  font-size: 8px;
}

.admin-entry:hover {
  color: var(--ink);
}

.auth-legal {
  position: absolute;
  bottom: 25px;
}

/* Application shell */
.app-shell {
  min-height: 100vh;
  background: var(--paper);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: var(--sidebar-width);
  padding: 27px 18px 20px;
  flex-direction: column;
  border-right: 1px solid #dedfd6;
  background: #ecece5;
}

.sidebar-brand {
  padding: 0 9px 37px;
  font-size: inherit;
  letter-spacing: normal;
}

.sidebar-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.sidebar-brand .brand-mark svg {
  width: 21px;
  height: 21px;
}

.sidebar-brand > div {
  display: grid;
  gap: 1px;
}

.sidebar-brand strong {
  font-size: 16px;
  letter-spacing: -.03em;
}

.sidebar-brand small {
  color: #96998d;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .18em;
}

.main-nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  color: #74776b;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.nav-item span {
  font-size: 12px;
  font-weight: 600;
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(255,255,255,.55);
}

.nav-item.active {
  color: var(--ink);
  background: #fbfbf7;
  box-shadow: 0 2px 8px rgba(34,35,27,.035);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -18px;
  width: 3px;
  height: 20px;
  border-radius: 0 4px 4px 0;
  background: var(--ink);
}

.nav-item b {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: #7a7d70;
  background: #dfe0d7;
  font-size: 9px;
}

.nav-item b.nav-live {
  color: #394411;
  background: var(--lime);
}

.sidebar-section {
  display: grid;
  gap: 4px;
  margin-top: 28px;
}

.sidebar-label {
  padding: 0 12px 8px;
  color: #a0a297;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.sidebar-upgrade {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  padding: 17px;
  border-radius: 17px;
  background:
    radial-gradient(circle at 110% -20%, rgba(216,255,105,.8), transparent 46%),
    #20221b;
  color: #f5f5ed;
}

.sidebar-upgrade::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -38px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
}

.upgrade-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;
  color: var(--lime);
}

.upgrade-icon svg {
  width: 15px;
}

.sidebar-upgrade strong {
  display: block;
  font-size: 11px;
}

.sidebar-upgrade p {
  margin: 7px 0 14px;
  color: rgba(255,255,255,.48);
  font-size: 9px;
  line-height: 1.7;
}

.sidebar-upgrade button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  color: #171812;
  background: var(--lime);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.sidebar-upgrade button svg {
  width: 13px;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 15px;
  padding: 10px 8px;
  border: 0;
  border-top: 1px solid #d8d9d0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-family: "Songti SC", serif;
  font-size: 15px;
}

.avatar-lime { color: #3f4e18; background: #d6f78d; }
.avatar-coral { color: #623026; background: #ffb3a6; }
.avatar-ocean { color: #194e58; background: #a4e5f2; }
.avatar-sun { color: #62460e; background: #ffe093; }
.avatar-violet { color: #463267; background: #ddcafb; }

.profile-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.profile-copy strong {
  font-size: 10px;
}

.profile-copy small {
  overflow: hidden;
  color: #8b8e82;
  font-size: 8px;
  text-overflow: ellipsis;
}

.sidebar-profile > svg {
  width: 15px;
  margin-left: auto;
  color: #999c90;
}

.workspace {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: var(--topbar-height);
  padding: 0 clamp(28px, 4.2vw, 66px);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(220, 221, 211, .8);
  background: rgba(244, 243, 238, .88);
  backdrop-filter: blur(18px);
}

.global-search {
  display: flex;
  width: min(430px, 40vw);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: #999c90;
  background: none;
  text-align: left;
  cursor: pointer;
}

.global-search:hover {
  background: #eaeae2;
}

.global-search svg {
  width: 16px;
}

.global-search span {
  flex: 1;
  font-size: 10px;
}

kbd {
  padding: 3px 6px;
  border: 1px solid #d6d8cc;
  border-radius: 5px;
  color: #8d9083;
  background: #fafaf6;
  font-family: inherit;
  font-size: 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.runtime-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #73766a;
  font-size: 9px;
  white-space: nowrap;
}

.runtime-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fbe35;
  box-shadow: 0 0 0 4px rgba(111,190,53,.11);
}

.runtime-pill.offline i {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(220,78,63,.1);
}

.new-project-button {
  padding: 10px 15px;
  border-radius: 9px;
  color: #f8f8f2;
  background: var(--ink);
  font-size: 10px;
}

.new-project-button svg {
  width: 15px;
}

.mobile-menu {
  display: none;
}

.page {
  display: none;
  max-width: 1510px;
  margin: 0 auto;
  padding: clamp(34px, 4.4vw, 68px) clamp(28px, 4.2vw, 66px) 70px;
  animation: pageIn .45s var(--ease);
}

.page.active {
  display: block;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(9px); }
}

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.welcome-row p {
  margin: 0 0 5px;
  color: #8d9084;
  font-size: 11px;
}

.welcome-row h1,
.page-heading-row h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(32px, 3.3vw, 49px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.date-stamp {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 9px;
  color: #8f9286;
}

.date-stamp span {
  grid-column: 1 / 3;
  font-size: 9px;
  letter-spacing: .08em;
}

.date-stamp strong {
  color: var(--ink);
  font-family: "Songti SC", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.date-stamp small {
  font-size: 9px;
}

/* Hero */
.hero-card {
  position: relative;
  display: grid;
  min-height: 335px;
  grid-template-columns: minmax(360px, 1.1fr) minmax(340px, .9fr);
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #f7f5ee;
  background:
    radial-gradient(circle at 75% 20%, rgba(223,255,127,.22), transparent 32%),
    linear-gradient(120deg, #1b1c16 30%, #26281e 100%);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  padding: 42px clamp(34px, 4vw, 58px);
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255,255,255,.51);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .08em;
}

.hero-kicker svg {
  width: 14px;
  height: 14px;
  color: var(--lime);
}

.hero-copy h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(42px, 4.3vw, 65px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .99;
}

.hero-copy h2 em {
  color: var(--lime);
  font-weight: inherit;
}

.hero-copy > p {
  max-width: 430px;
  margin: 19px 0 26px;
  color: rgba(255,255,255,.49);
  font-size: 11px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-primary {
  padding: 12px 16px;
  border-radius: 9px;
  color: var(--ink);
  background: var(--lime);
  font-size: 10px;
}

.hero-primary svg {
  width: 14px;
}

.hero-secondary {
  padding: 0;
  border: 0;
  color: rgba(255,255,255,.6);
  background: none;
  font-size: 9px;
  cursor: pointer;
}

.hero-secondary:hover {
  color: white;
}

.hero-visual {
  position: relative;
  min-height: 335px;
}

.hero-orb {
  position: absolute;
  top: 50%;
  left: 48%;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, rgba(255,255,255,.36), transparent 7%),
    radial-gradient(circle at 48% 50%, #e9ff9e 0, #bfea4a 18%, #45522d 42%, #1f2118 67%);
  box-shadow:
    inset -20px -30px 60px rgba(0,0,0,.4),
    0 0 80px rgba(200, 244, 104, .13);
  transform: translate(-50%, -50%);
}

.hero-orb::after {
  content: "";
  position: absolute;
  inset: 23px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}

.orb-center {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 0 0 10px rgba(216,255,105,.1);
  transform: translate(-50%, -50%);
}

.orb-center svg {
  width: 18px;
  fill: currentColor;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 48%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-17deg);
}

.orbit-one {
  width: 330px;
  height: 210px;
}

.orbit-two {
  width: 390px;
  height: 275px;
  transform: translate(-50%, -50%) rotate(29deg);
}

.orb-chip {
  position: absolute;
  z-index: 4;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  background: rgba(20,21,16,.55);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
  backdrop-filter: blur(8px);
}

.chip-a { top: 19px; left: -24px; }
.chip-b { right: -44px; top: 71px; }
.chip-c { bottom: 22px; left: -46px; }

.timeline-mini {
  position: absolute;
  right: 9%;
  bottom: 34px;
  display: flex;
  gap: 3px;
  width: 200px;
  height: 24px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  background: rgba(8,9,7,.42);
  backdrop-filter: blur(7px);
}

.timeline-mini span {
  width: var(--w);
  border-radius: 2px;
  background: rgba(216,255,105,.65);
}

.timeline-mini span:nth-child(2) { background: rgba(255,130,111,.72); }
.timeline-mini span:nth-child(3) { background: rgba(98,200,222,.7); }
.timeline-mini span:nth-child(4) { background: rgba(197,166,255,.7); }

.timeline-mini i {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: #fff;
}

.hero-side-note {
  position: absolute;
  top: 25px;
  right: 27px;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255,255,255,.38);
  font-size: 7px;
  line-height: 1.65;
}

.hero-side-note span {
  font-size: 9px;
}

.hero-side-note p {
  margin: 0;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  margin-top: 40px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
  font-size: 8px;
}

.section-heading h3 {
  margin: 0;
  font-family: "Songti SC", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.section-heading.compact {
  align-items: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border: 0;
  color: #74776a;
  background: none;
  font-size: 9px;
  cursor: pointer;
}

.text-link:hover {
  color: var(--ink);
}

.text-link svg {
  width: 13px;
}

.featured-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.skill-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e1e1d8;
  border-radius: 17px;
  background: var(--card);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}

.skill-card:hover {
  z-index: 2;
  border-color: #d0d2c5;
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.skill-cover {
  position: relative;
  height: 92px;
  overflow: hidden;
  margin: 7px 7px 0;
  border-radius: 11px;
}

.skill-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .46;
  background-image:
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 27px 27px;
  mask-image: linear-gradient(140deg, black, transparent 80%);
}

.accent-lime .skill-cover,
.cover-lime { background: linear-gradient(135deg, #dfff86, #91c755 55%, #355a36); }
.accent-coral .skill-cover,
.cover-coral { background: linear-gradient(135deg, #ffc58d, #ff846f 52%, #7a3e4c); }
.accent-iris .skill-cover,
.cover-iris { background: linear-gradient(135deg, #ddd5ff, #8b82ff 53%, #3c3768); }
.accent-sun .skill-cover,
.cover-sun { background: linear-gradient(135deg, #fff0a2, #ffc85c 54%, #a56329); }
.accent-ocean .skill-cover,
.cover-ocean { background: linear-gradient(135deg, #b9f1e6, #62c8de 52%, #2f6176); }
.accent-violet .skill-cover,
.cover-violet { background: linear-gradient(135deg, #e6dbff, #c5a6ff 52%, #604d7e); }
.accent-rose .skill-cover,
.cover-rose { background: linear-gradient(135deg, #ffd7df, #ff9eb5 52%, #8e4e65); }
.accent-slate .skill-cover,
.cover-slate { background: linear-gradient(135deg, #e8e9e1, #bcc4b7 52%, #596157); }

.skill-glyph {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}

.skill-glyph svg {
  width: 25px;
  height: 25px;
}

.skill-kind {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  padding: 4px 7px;
  border-radius: 5px;
  color: rgba(255,255,255,.92);
  background: rgba(14,17,11,.35);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .08em;
  backdrop-filter: blur(8px);
}

.favorite-button {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: white;
  background: rgba(20,22,16,.28);
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background .2s;
}

.skill-card:hover .favorite-button,
.favorite-button.active {
  opacity: 1;
}

.favorite-button.active {
  color: #6d5210;
  background: #ffe493;
}

.favorite-button svg {
  width: 12px;
  height: 12px;
}

.skill-card-body {
  display: flex;
  padding: 13px 14px 14px;
  flex: 1;
  flex-direction: column;
}

.skill-card-body h4 {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.skill-card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #8c8e84;
  font-size: 8px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.skill-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid #ededE6;
  color: #9a9c92;
  font-size: 7px;
}

.skill-meta .official {
  padding: 2px 5px;
  border-radius: 4px;
  color: #5c642f;
  background: #eef7d0;
  font-weight: 700;
}

.skill-meta .skill-arrow {
  width: 14px;
  margin-left: auto;
  transition: transform .2s;
}

.skill-card:hover .skill-meta .skill-arrow {
  transform: translateX(3px);
}

.studio-status {
  padding: 19px 19px 15px;
  border: 1px solid #dfdfd6;
  border-radius: 19px;
  background: rgba(250, 249, 244, .7);
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #6dc13a;
}

.runtime-list {
  display: grid;
  gap: 2px;
}

.runtime-item {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #e8e8e0;
}

.runtime-item i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #76bf4b;
}

.runtime-item.unavailable i {
  background: #c3c5bc;
}

.runtime-item span {
  color: #66695e;
  font-size: 9px;
}

.runtime-item b {
  color: #8e9185;
  font-size: 8px;
  font-weight: 500;
}

.status-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 9px 10px;
  border: 1px solid #e1e2d8;
  border-radius: 8px;
  background: #f7f6f0;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.status-link svg {
  width: 13px;
}

.recent-section {
  margin-top: 38px;
}

.recent-task-list {
  overflow: hidden;
  border: 1px solid #e0e0d7;
  border-radius: 18px;
  background: var(--card);
}

.task-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) minmax(120px, .7fr) 110px 100px 30px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #e9e9e1;
  cursor: pointer;
  transition: background .2s;
}

.task-row:last-child {
  border-bottom: 0;
}

.task-row:hover {
  background: #f7f6f0;
}

.task-primary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.task-thumb {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
}

.task-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.task-thumb svg {
  width: 19px;
  height: 19px;
  color: rgba(255,255,255,.9);
}

.task-title {
  min-width: 0;
}

.task-title strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-title span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #96998e;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #657b33;
  background: #edf5d9;
  font-size: 8px;
  font-weight: 650;
}

.task-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #79b539;
}

.task-status.running {
  color: #645421;
  background: #fff0c7;
}

.task-status.running::before {
  background: #e7a82f;
  animation: blink 1.2s infinite;
}

.task-status.failed {
  color: #923e35;
  background: #ffe4de;
}

.task-status.failed::before {
  background: #dc594a;
}

@keyframes blink {
  50% { opacity: .25; }
}

.task-time,
.task-size {
  color: #9b9e93;
  font-size: 8px;
}

.task-row > svg {
  width: 15px;
  color: #9c9f94;
}

.empty-inline {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #8e9185;
}

.empty-inline span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  background: #eef0e6;
}

.empty-inline svg {
  width: 16px;
}

.empty-inline p {
  margin: 0;
  font-size: 10px;
}

/* Generic page headings */
.page-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 33px;
}

.page-heading-row .eyebrow {
  margin-bottom: 8px;
}

.page-heading-row > div > p {
  max-width: 600px;
  margin: 10px 0 0;
  color: #8a8d81;
  font-size: 11px;
}

.curated-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #d9dacf;
  border-radius: 9px;
  color: #73766a;
  background: rgba(251, 250, 246, .65);
  font-size: 9px;
}

.curated-chip svg {
  width: 15px;
  color: #7d9d36;
}

.market-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
  padding-bottom: 15px;
  border-bottom: 1px solid #dedfd5;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  color: #85887c;
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.filter-tabs button:hover {
  color: var(--ink);
}

.filter-tabs button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(26,28,19,.05);
  font-weight: 700;
}

.video-dot,
.image-dot,
.star-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--iris);
}

.image-dot {
  background: var(--coral);
}

.star-dot {
  color: #d2a235;
  background: none;
  font-size: 10px;
}

.inline-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  padding: 8px 10px;
  border: 1px solid #ddded5;
  border-radius: 9px;
  background: #fbfbf7;
}

.inline-search svg {
  width: 14px;
  color: #9b9e92;
}

.inline-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  font-size: 9px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.market-grid .skill-card {
  min-height: 258px;
}

.market-grid .skill-cover {
  height: 145px;
}

.market-grid .skill-glyph {
  right: 24px;
  bottom: 21px;
  width: 70px;
  height: 70px;
}

.market-grid .skill-glyph svg {
  width: 31px;
  height: 31px;
}

.market-grid .skill-card-body {
  padding: 16px 17px;
}

.market-grid .skill-card-body h4 {
  font-size: 12px;
}

.market-grid .skill-card-body p {
  font-size: 9px;
}

.owner-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #76796c;
}

.owner-pill::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a5a89d;
}

.empty-state {
  display: flex;
  min-height: 340px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border: 1px solid #dbdcd2;
  border-radius: 18px;
  color: #888b7e;
  background: #faf9f4;
}

.empty-state > span svg {
  width: 23px;
  height: 23px;
}

.empty-state h3 {
  margin: 18px 0 5px;
  font-family: "Songti SC", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}

.empty-state p {
  margin: 0 0 18px;
  color: #93968a;
  font-size: 10px;
}

/* One-tap film */
.one-tap-nav b {
  color: #435515;
  background: #dff5a1;
  letter-spacing: .05em;
}

.one-tap-heading {
  position: relative;
  display: flex;
  min-height: 220px;
  overflow: hidden;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(30px, 4vw, 52px);
  border-radius: 28px;
  color: #f8f7ef;
  background:
    radial-gradient(circle at 87% 22%, rgba(216,255,105,.35), transparent 23%),
    radial-gradient(circle at 72% 100%, rgba(98,200,222,.18), transparent 28%),
    #181a13;
}

.one-tap-heading::after {
  content: "ONE\A TAKE";
  position: absolute;
  top: -13px;
  right: 29px;
  color: rgba(255,255,255,.035);
  font-family: "Avenir Next", sans-serif;
  font-size: 108px;
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: .85;
  white-space: pre;
}

.one-tap-heading > div {
  position: relative;
  z-index: 2;
}

.one-tap-heading .eyebrow {
  color: rgba(255,255,255,.42);
  font-size: 8px;
}

.one-tap-heading h1 {
  margin: 0;
  font-family: "Songti SC", Georgia, serif;
  font-size: clamp(48px, 5vw, 74px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .96;
}

.one-tap-heading p {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.54);
  font-size: 11px;
  line-height: 1.8;
}

.one-tap-badge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.55);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .1em;
  white-space: nowrap;
}

.one-tap-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(216,255,105,.11);
}

.one-tap-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(390px, .95fr);
  gap: 18px;
  margin-top: 18px;
}

.one-tap-source-card,
.one-tap-settings-card {
  padding: 24px;
  border: 1px solid #dfdfd5;
  border-radius: 22px;
  background: #fbfaf6;
}

.one-tap-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.one-tap-card-head > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.one-tap-card-head h2 {
  margin: 0;
  font-family: "Songti SC", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.one-tap-card-head > span {
  padding-top: 6px;
  color: #96998e;
  font-size: 8px;
}

.step-number {
  color: #9da591;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 9px;
}

.one-tap-drop {
  position: relative;
  display: flex;
  min-height: 148px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  border: 1.5px dashed #cdd0c2;
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 100%, rgba(216,255,105,.17), transparent 30%),
    repeating-linear-gradient(45deg, rgba(244,244,236,.85) 0 8px, transparent 8px 16px);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.one-tap-drop:hover,
.one-tap-drop.dragging {
  border-color: #a9c84c;
  background-color: #f6fae9;
}

.one-tap-drop.has-files {
  min-height: 94px;
}

.one-tap-drop input {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  opacity: 0;
}

.one-tap-upload-mark {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d9dbcf;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(24,27,17,.06);
}

.one-tap-upload-mark svg {
  width: 20px;
}

.one-tap-drop > div {
  max-width: 310px;
}

.one-tap-drop strong {
  display: block;
  font-size: 10px;
}

.one-tap-drop p {
  margin: 5px 0 0;
  color: #8f9285;
  font-size: 8px;
}

.folder-import-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
}

.folder-import-row > span {
  color: #999c90;
  font-size: 7px;
  line-height: 1.5;
}

.folder-import-button {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #dcded3;
  border-radius: 8px;
  color: #65685d;
  background: #f5f5ee;
  font-size: 8px;
  font-weight: 650;
  cursor: pointer;
}

.folder-import-button:hover {
  color: var(--ink);
  border-color: #c8cbbe;
  background: #fff;
}

.folder-import-button input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.folder-import-button svg {
  width: 13px;
}

.one-tap-file-list {
  display: grid;
  gap: 7px;
  max-height: 280px;
  margin-top: 12px;
  overflow: auto;
}

.one-tap-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e3e3da;
  border-radius: 10px;
  background: #fff;
}

.one-tap-file-index {
  color: #a4a79b;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 7px;
}

.one-tap-file-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #bbdf63, #58713a);
}

.one-tap-file-icon svg {
  width: 13px;
  fill: currentColor;
}

.one-tap-file-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.one-tap-file-copy strong {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.one-tap-file-copy small {
  color: #96998d;
  font-size: 7px;
}

.one-tap-file > button {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #8e9185;
  background: #f2f2ec;
  cursor: pointer;
}

.one-tap-file > button svg {
  width: 11px;
}

.one-tap-empty-files {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9a9d91;
}

.one-tap-empty-files svg {
  width: 17px;
}

.one-tap-empty-files p {
  margin: 0;
  font-size: 8px;
}

.one-tap-source-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #e9e9e1;
  color: #85887c;
}

.one-tap-source-note svg {
  width: 14px;
  flex: 0 0 auto;
  color: #7c9d2b;
}

.one-tap-source-note p {
  margin: 0;
  font-size: 8px;
  line-height: 1.7;
}

.one-tap-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.one-tap-fields .composer-field.full,
.one-tap-fields .toggle-field {
  grid-column: 1 / -1;
}

.one-tap-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e8e8df;
}

.one-tap-actions > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #92958a;
  font-size: 7px;
}

.one-tap-actions > span svg {
  width: 13px;
}

.one-tap-submit {
  min-width: 155px;
}

.one-tap-submit:disabled {
  cursor: not-allowed;
  opacity: .52;
  transform: none;
}

.one-tap-submit svg:first-child {
  color: var(--lime);
}

.one-tap-flow {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #dfe0d6;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(216,255,105,.14), transparent 27%),
    #f8f7f1;
}

.one-tap-flow-head .eyebrow {
  margin-bottom: 4px;
}

.one-tap-flow-head h3 {
  margin: 0 0 17px;
  font-family: "Songti SC", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.one-tap-flow-steps {
  display: flex;
  align-items: center;
}

.one-tap-flow-steps > div {
  display: grid;
  min-width: 110px;
  gap: 2px;
}

.one-tap-flow-steps b {
  color: #8ea43e;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 7px;
}

.one-tap-flow-steps span {
  font-size: 9px;
  font-weight: 700;
}

.one-tap-flow-steps small {
  color: #96998e;
  font-size: 7px;
}

.one-tap-flow-steps i {
  height: 1px;
  flex: 1;
  margin: 0 12px;
  background: linear-gradient(90deg, #d5d7cb, #e6e7df);
}

.one-tap-caveat {
  margin: 17px 0 0;
  padding-top: 13px;
  border-top: 1px solid #e7e7de;
  color: #92958a;
  font-size: 7px;
  line-height: 1.75;
}

/* AI script and voiceover */
.ai-page-heading {
  padding: 6px 0 4px;
}

.ai-studio-grid {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(380px, 1.1fr);
  gap: 17px;
  align-items: start;
}

.ai-panel {
  padding: 23px;
  border: 1px solid #dfe0d6;
  border-radius: 20px;
  background: var(--card);
}

.ai-panel-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 19px;
}

.ai-panel-title > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #57622b;
  background: #e8f3c9;
  font: 700 8px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.ai-panel-title h2 {
  margin: 1px 0 3px;
  font-family: "Songti SC", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.ai-panel-title p {
  margin: 0;
  color: #93978b;
  font-size: 8px;
}

.ai-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-field {
  display: grid;
  gap: 6px;
  color: #74786c;
  font-size: 8px;
  font-weight: 650;
}

.ai-field.full {
  grid-column: 1 / -1;
}

.ai-field input,
.ai-field select,
.ai-field textarea {
  width: 100%;
  border: 1px solid #dcddd3;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fbfaf5;
  font-family: inherit;
  font-size: 9px;
}

.ai-field input,
.ai-field select {
  height: 38px;
  padding: 0 11px;
}

.ai-field textarea {
  min-height: 92px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.65;
}

.ai-field input:focus,
.ai-field select:focus,
.ai-field textarea:focus {
  border-color: #a9c65c;
  box-shadow: 0 0 0 3px rgba(190, 220, 100, .14);
}

.ai-script-field textarea {
  min-height: 230px;
  font-size: 10px;
  line-height: 1.85;
}

.ai-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e6e7de;
}

.ai-action-row > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8c9185;
  font-size: 7px;
  line-height: 1.5;
}

.ai-action-row svg {
  width: 12px;
}

.ai-result-empty {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  padding: 30px;
  border: 1px dashed #d9dbd0;
  border-radius: 15px;
  color: #969a8e;
  text-align: center;
}

.ai-result-empty > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #6e7c30;
  background: #eef5d9;
}

.ai-result-empty svg {
  width: 22px;
}

.ai-result-empty h2 {
  margin: 13px 0 5px;
  color: var(--ink);
  font-family: "Songti SC", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.ai-result-empty p {
  max-width: 320px;
  margin: 0;
  font-size: 8px;
  line-height: 1.7;
}

.ai-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.ai-result-head .eyebrow {
  margin-bottom: 4px;
}

.ai-result-head h2 {
  margin: 0;
  font-family: "Songti SC", Georgia, serif;
  font-size: 25px;
  font-weight: 500;
}

.ai-result-head p {
  margin: 4px 0 0;
  color: #8f9387;
  font-size: 8px;
}

.ai-result-head > span {
  flex: none;
  padding: 6px 9px;
  border-radius: 999px;
  color: #7b6419;
  background: #fff1bd;
  font-size: 7px;
  font-weight: 700;
}

.ai-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.ai-result-meta span {
  padding: 5px 8px;
  border: 1px solid #e2e4d8;
  border-radius: 999px;
  color: #74786b;
  background: #fafaf5;
  font-size: 7px;
}

.ai-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 14px;
}

.ai-detail-grid h3 {
  margin: 0 0 7px;
  font-size: 9px;
}

.ai-structure-item,
.ai-shot-item {
  margin-bottom: 6px;
  padding: 8px 9px;
  border: 1px solid #e4e5dc;
  border-radius: 8px;
  background: #fbfbf7;
  font-size: 7px;
  line-height: 1.55;
}

.ai-structure-item strong,
.ai-shot-item strong {
  display: block;
  margin-bottom: 2px;
  color: #575b50;
  font-size: 8px;
}

.ai-structure-item span,
.ai-shot-item span {
  display: block;
  color: #969a8e;
}

.ai-uncertain {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid #f0d8a9;
  border-radius: 9px;
  color: #765e21;
  background: #fff9e8;
  font-size: 8px;
  line-height: 1.65;
}

.ai-voice-tools {
  display: grid;
  grid-template-columns: 1fr 105px auto;
  gap: 9px;
  align-items: end;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #e5e6dd;
}

.ai-voice-tools .primary-button {
  height: 38px;
  white-space: nowrap;
}

.ai-audio-result {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d7e3bb;
  border-radius: 11px;
  background: #f4f9e9;
}

.ai-audio-result audio {
  width: 100%;
  height: 34px;
}

.ai-audio-result a {
  display: inline-block;
  margin-top: 7px;
  color: #5f6b2d;
  font-size: 8px;
}

.ai-audio-result p {
  margin: 6px 0 0;
  color: #7f8577;
  font-size: 7px;
}

.ai-history-section {
  margin-top: 20px;
}

.ai-history-list {
  display: grid;
  gap: 7px;
}

.ai-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid #e1e2d9;
  border-radius: 11px;
  background: var(--card);
}

.ai-history-row > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #697535;
  background: #eef4d9;
}

.ai-history-row svg {
  width: 13px;
}

.ai-history-copy {
  display: grid;
  min-width: 0;
  flex: 1;
}

.ai-history-copy strong {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-history-copy small {
  color: #969a8e;
  font-size: 7px;
}

.ai-history-row a {
  color: #5e6b2f;
  font-size: 7px;
}

/* Administrator console */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid #dfdfd5;
  border-radius: 15px;
  background: #fbfaf6;
}

.admin-stat-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
}

.admin-stat-icon.lime { color: #4b6118; background: #e5f7ad; }
.admin-stat-icon.coral { color: #793e32; background: #ffd9d1; }
.admin-stat-icon.ocean { color: #245c69; background: #cceff4; }
.admin-stat-icon.violet { color: #513969; background: #e7dcfb; }

.admin-stat-icon svg {
  width: 17px;
}

.admin-stat div {
  display: grid;
}

.admin-stat strong {
  font-family: "Songti SC", Georgia, serif;
  font-size: 25px;
  font-weight: 500;
}

.admin-stat small {
  color: #92958a;
  font-size: 8px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr);
  align-items: start;
  gap: 18px;
}

.admin-panel {
  overflow: hidden;
  border: 1px solid #dfdfd5;
  border-radius: 18px;
  background: #fbfaf6;
}

.admin-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 20px 15px;
  border-bottom: 1px solid #e8e8df;
}

.admin-panel-head .eyebrow {
  margin-bottom: 4px;
  font-size: 7px;
}

.admin-panel-head h3 {
  margin: 0;
  font-family: "Songti SC", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.admin-panel-head small {
  color: #96998d;
  font-size: 8px;
}

.admin-skill-list {
  display: grid;
}

.admin-skill-row {
  display: grid;
  grid-template-columns: 39px minmax(150px, 1fr) 54px 42px 62px 58px;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  border-bottom: 1px solid #e9e9e1;
}

.admin-skill-row:last-child {
  border-bottom: 0;
}

.admin-skill-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 10px;
}

.admin-skill-icon svg {
  width: 17px;
  color: white;
}

.admin-skill-main {
  min-width: 0;
}

.admin-skill-main strong {
  display: block;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-skill-main span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #989b8f;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-badge,
.admin-visibility {
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 700;
}

.admin-badge.official {
  color: #5e6a2f;
  background: #eef6d5;
}

.admin-badge.managed {
  color: #55447c;
  background: #eee6ff;
}

.admin-visibility.public {
  color: #367047;
  background: #e3f3e7;
}

.admin-visibility.private {
  color: #805f37;
  background: #f7ecdb;
}

.admin-run-count {
  color: #92958a;
  font-size: 7px;
  white-space: nowrap;
}

.admin-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 7px;
  border: 1px solid #dfdfd5;
  border-radius: 7px;
  color: #696c61;
  background: #f7f6f0;
  font-size: 7px;
  cursor: pointer;
}

.admin-edit-button:hover {
  color: var(--ink);
  background: #fff;
}

.admin-edit-button svg {
  width: 10px;
}

.admin-side {
  display: grid;
  gap: 18px;
}

.admin-side .runtime-list {
  padding: 4px 17px 11px;
}

.admin-user-list {
  display: grid;
  padding: 4px 15px 10px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #e8e8df;
}

.admin-user-row:last-child {
  border-bottom: 0;
}

.admin-user-row .user-avatar {
  width: 29px;
  height: 29px;
  font-size: 12px;
}

.admin-user-row > div {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.admin-user-row strong {
  font-size: 8px;
}

.admin-user-row strong em {
  margin-left: 4px;
  padding: 2px 4px;
  border-radius: 4px;
  color: #57447d;
  background: #eee6ff;
  font-size: 6px;
  font-style: normal;
}

.admin-user-row small {
  overflow: hidden;
  color: #9a9d91;
  font-size: 7px;
  text-overflow: ellipsis;
}

.admin-user-row > span:last-child {
  color: #94978b;
  font-size: 7px;
  white-space: nowrap;
}

.admin-import-modal {
  width: min(760px, 100%);
}

.manifest-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 17px;
}

.manifest-file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px dashed #bdc0b2;
  border-radius: 9px;
  color: #676a5d;
  background: #f3f3ec;
  font-size: 8px;
  font-weight: 650;
  cursor: pointer;
}

.manifest-file-button input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.manifest-file-button svg {
  width: 14px;
}

.manifest-editor {
  min-height: 285px;
  resize: vertical;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 9px;
  line-height: 1.65;
  tab-size: 2;
}

.manifest-validation {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 3px 0 18px;
  padding: 10px 11px;
  border: 1px solid #e1e2d8;
  border-radius: 9px;
  color: #818478;
  background: #f6f5ef;
  font-size: 8px;
  line-height: 1.55;
}

.manifest-validation svg {
  width: 14px;
  flex: 0 0 auto;
}

.manifest-validation.valid {
  color: #57702b;
  border-color: #d3e5b1;
  background: #f2f8e7;
}

.manifest-validation.invalid {
  color: #943f35;
  border-color: #f0c6be;
  background: #fff0ec;
}

/* Create studio */
.create-heading {
  align-items: flex-end;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 5px;
  color: #a2a598;
  font-size: 8px;
}

.step-indicator span.active {
  color: var(--ink);
  font-weight: 700;
}

.step-indicator i {
  width: 24px;
  height: 1px;
  background: #d6d8cc;
}

.create-layout {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(440px, 1.42fr);
  min-height: 660px;
  overflow: hidden;
  border: 1px solid #dfdfd5;
  border-radius: 25px;
  background: #fbfaf6;
  box-shadow: 0 18px 55px rgba(26,28,19,.055);
}

.skill-picker-panel {
  padding: 23px 18px 20px;
  border-right: 1px solid #e2e2d9;
  background: #f0efe9;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 750;
}

.panel-heading small {
  color: #979a8e;
  font-size: 8px;
  font-weight: 500;
}

.panel-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbdcd2;
  border-radius: 9px;
  background: #faf9f4;
}

.panel-search svg {
  width: 14px;
  color: #999c8f;
}

.panel-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  font-size: 9px;
}

.picker-tabs {
  display: flex;
  gap: 3px;
  margin: 12px 0 8px;
}

.picker-tabs button {
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  color: #878a7d;
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

.picker-tabs button.active {
  color: var(--ink);
  background: white;
  font-weight: 700;
}

.create-skill-list {
  display: grid;
  max-height: 510px;
  gap: 5px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.picker-skill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.picker-skill:hover {
  background: rgba(255,255,255,.55);
}

.picker-skill.active {
  border-color: #d7d8ce;
  background: #fff;
  box-shadow: 0 3px 14px rgba(30,32,23,.045);
}

.picker-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
}

.picker-icon svg {
  width: 17px;
  height: 17px;
  color: rgba(255,255,255,.9);
}

.picker-copy {
  min-width: 0;
}

.picker-copy strong {
  display: block;
  overflow: hidden;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-copy span {
  display: block;
  margin-top: 3px;
  color: #999c90;
  font-size: 7px;
}

.picker-skill > svg {
  width: 12px;
  margin-left: auto;
  color: #a7aa9e;
}

.composer-panel {
  padding: clamp(25px, 3.3vw, 45px);
  background:
    radial-gradient(circle at 98% 0, rgba(216,255,105,.12), transparent 28%),
    #fbfaf6;
}

.composer-empty {
  display: flex;
  min-height: 560px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.empty-spark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 17px;
  border: 1px solid #dfe0d6;
  border-radius: 19px;
  color: #7a7e70;
  background: #f5f4ee;
}

.empty-spark svg {
  width: 24px;
  height: 24px;
}

.composer-empty h3 {
  margin: 0 0 6px;
  font-family: "Songti SC", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.composer-empty p {
  max-width: 290px;
  margin: 0;
  color: #979a8e;
  font-size: 10px;
}

.composer-head {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.composer-icon {
  display: grid;
  width: 47px;
  height: 47px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
}

.composer-icon svg {
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,.94);
}

.composer-title {
  min-width: 0;
}

.composer-title h2 {
  margin: 0 0 5px;
  font-family: "Songti SC", Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -.025em;
}

.composer-title p {
  max-width: 570px;
  margin: 0;
  color: #8d9084;
  font-size: 10px;
  line-height: 1.65;
}

.composer-badge {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #6b7338;
  background: #edf5d5;
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.composer-form {
  display: grid;
  gap: 20px;
}

.drop-zone {
  position: relative;
  display: flex;
  min-height: 195px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1.5px dashed #cfd2c4;
  border-radius: 17px;
  background:
    linear-gradient(rgba(255,255,255,.65), rgba(255,255,255,.65)),
    repeating-linear-gradient(45deg, #f3f2eb 0 7px, transparent 7px 14px);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: #a7c84b;
  background: #f7faea;
}

.drop-zone input {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 11px;
  border: 1px solid #dcddd3;
  border-radius: 13px;
  color: #4e5147;
  background: #fff;
  box-shadow: 0 4px 14px rgba(25,27,18,.06);
}

.upload-icon svg {
  width: 19px;
}

.drop-zone strong {
  font-size: 10px;
}

.drop-zone p {
  margin: 5px 0 0;
  color: #979a8e;
  font-size: 8px;
}

.drop-zone.has-files {
  min-height: 130px;
  align-items: stretch;
  justify-content: flex-start;
  padding: 14px;
  border-style: solid;
  background: #f7f8ef;
}

.drop-zone.has-files > .drop-prompt {
  display: none;
}

.file-list {
  display: grid;
  gap: 7px;
  width: 100%;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e2e3da;
  border-radius: 9px;
  background: #fff;
}

.file-thumb {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  color: rgba(255,255,255,.9);
  background: #9fa497;
}

.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-thumb svg {
  width: 16px;
}

.file-item-copy {
  min-width: 0;
  flex: 1;
}

.file-item-copy strong {
  display: block;
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item-copy small {
  color: #9b9e92;
  font-size: 7px;
}

.remove-file {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #8e9185;
  background: #f4f4ee;
  cursor: pointer;
}

.remove-file svg {
  width: 12px;
}

.composer-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.composer-field {
  display: grid;
  gap: 7px;
}

.composer-field.full {
  grid-column: 1 / -1;
}

.composer-field > span {
  color: #6e7165;
  font-size: 8px;
  font-weight: 700;
}

.composer-field select,
.composer-field input[type="text"],
.composer-field textarea {
  width: 100%;
  border: 1px solid #dcddd3;
  border-radius: 9px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  font-size: 9px;
}

.composer-field textarea {
  min-height: 105px;
  resize: vertical;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  line-height: 1.6;
}

.segment-control {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #dcddd3;
  border-radius: 9px;
  background: #f0f0e9;
}

.segment-control button {
  flex: 1;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  color: #85887c;
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

.segment-control button.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 2px 5px rgba(30,32,22,.07);
  font-weight: 700;
}

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid #dcddd3;
  border-radius: 9px;
  background: #fff;
}

.toggle-field span {
  color: #65685d;
  font-size: 9px;
}

.switch {
  position: relative;
  display: inline-flex;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch > span {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: #d3d5cb;
  cursor: pointer;
  transition: background .2s;
}

.switch > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .2s;
}

.switch input:checked + span {
  background: #94bd39;
}

.switch input:checked + span::after {
  transform: translateX(15px);
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-wrap input {
  flex: 1;
  accent-color: #85a82f;
}

.range-wrap b {
  width: 31px;
  color: #777a6e;
  font-size: 8px;
  font-weight: 600;
  text-align: right;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
}

.composer-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #979a8e;
  font-size: 7px;
}

.composer-note svg {
  width: 13px;
}

.run-button {
  min-width: 150px;
}

.run-button svg {
  color: var(--lime);
}

.run-button:disabled {
  cursor: wait;
  opacity: .55;
  transform: none;
}

.spinner {
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tasks */
.task-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 23px;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid #e0e0d7;
  border-radius: 16px;
  background: var(--card);
}

.summary-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  color: #5c622f;
  background: #eef6d4;
}

.summary-icon svg {
  width: 17px;
}

.summary-card div {
  display: grid;
}

.summary-card strong {
  font-family: "Songti SC", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}

.summary-card span {
  color: #93968a;
  font-size: 8px;
}

.task-full-list {
  overflow: hidden;
  border: 1px solid #dfdfd5;
  border-radius: 19px;
  background: var(--card);
}

/* Drawers and modals */
.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(19, 21, 14, .32);
  backdrop-filter: blur(4px);
  animation: fadeIn .25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
}

.drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(580px, 94vw);
  overflow-y: auto;
  padding: 36px;
  background: #f9f8f3;
  box-shadow: -20px 0 70px rgba(20,22,14,.16);
  transform: translateX(105%);
  transition: transform .4s var(--ease);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-close,
.modal-close {
  position: absolute;
  top: 19px;
  right: 19px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #dedfd5;
  border-radius: 50%;
  background: #f5f4ee;
  cursor: pointer;
}

.drawer-close svg,
.modal-close svg {
  width: 14px;
}

.icon-button {
  padding: 0;
}

.drawer-task-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-right: 40px;
}

.drawer-task-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
}

.drawer-task-icon svg {
  width: 21px;
  color: white;
}

.drawer-task-head h2 {
  margin: 0 0 5px;
  font-family: "Songti SC", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.drawer-task-head p {
  margin: 0;
  color: #919488;
  font-size: 9px;
}

.drawer-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0 22px;
  padding: 13px 14px;
  border: 1px solid #dfdfd5;
  border-radius: 12px;
  background: #fff;
}

.drawer-status > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: #5b672d;
  background: #edf5d1;
}

.drawer-status > span svg {
  width: 14px;
}

.drawer-status.running > span {
  background: #fff0c8;
  color: #8b6818;
}

.drawer-status.failed > span {
  background: #ffe4de;
  color: #993f35;
}

.drawer-status div {
  min-width: 0;
  flex: 1;
}

.drawer-status strong {
  display: block;
  font-size: 9px;
}

.drawer-status small {
  display: block;
  margin-top: 2px;
  color: #95988d;
  font-size: 8px;
}

.progress-track {
  width: 76px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e9e1;
}

.progress-track i {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: #a4cc45;
  transition: width .5s var(--ease);
}

.output-section h3,
.log-section h3,
.director-plan-section h3 {
  margin: 23px 0 11px;
  font-size: 10px;
  font-weight: 750;
}

.director-plan-section {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #dce2c9;
  border-radius: 14px;
  background: linear-gradient(145deg, #f5f9e8, #fff);
}

.task-quality {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #d7e2bc;
  border-radius: 13px;
  background: #f5f9e9;
}

.task-quality.needs_fix {
  border-color: #efcfb0;
  background: #fff7ea;
}

.task-quality.unverified {
  border-color: #e7dfc3;
  background: #fbf8ec;
}

.task-quality > div {
  display: grid;
  gap: 3px;
}

.task-quality > div > span {
  color: #92978a;
  font-size: 7px;
}

.task-quality > div > strong {
  font-size: 10px;
}

.task-quality > div:first-child strong {
  font-family: "Songti SC", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.task-quality > div:first-child small {
  color: #989c90;
  font-family: inherit;
  font-size: 8px;
}

.task-quality p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: #7f8477;
  font-size: 7px;
  line-height: 1.6;
}

.director-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.director-plan-head h3 {
  margin: 0;
}

.director-plan-head p {
  margin: 3px 0 0;
  color: #8d9283;
  font-size: 8px;
}

.director-plan-head > span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #5c672e;
  background: #e7f1c8;
  font-size: 7px;
  font-weight: 700;
}

.director-plan-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 13px 0;
}

.director-plan-stats div {
  display: grid;
  gap: 2px;
  padding: 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .72);
}

.director-plan-stats strong {
  font: 500 18px/1 "Songti SC", Georgia, serif;
}

.director-plan-stats span {
  color: #969b8c;
  font-size: 7px;
}

.director-bgm-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 0 12px;
  padding: 9px 10px;
  border: 1px solid #dce4c0;
  border-radius: 9px;
  background: #fff;
}

.director-bgm-card > span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #5e7130;
  background: #edf4d3;
}

.director-bgm-card svg {
  width: 13px;
}

.director-bgm-card div {
  display: grid;
  gap: 2px;
}

.director-bgm-card strong {
  font-size: 8px;
}

.director-bgm-card small {
  color: #929789;
  font-size: 7px;
}

.director-changes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 11px;
}

.director-changes b {
  width: 100%;
  font-size: 7px;
}

.director-changes span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #687237;
  background: #edf3da;
  font-size: 7px;
}

.director-shot-list {
  display: grid;
  gap: 5px;
  max-height: 205px;
  overflow: auto;
}

.director-shot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid #e5e8da;
  border-radius: 8px;
  background: #fff;
}

.director-shot > b {
  color: #829044;
  font: 700 8px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.director-shot > span {
  display: grid;
  min-width: 0;
}

.director-shot strong {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.director-shot small {
  margin-top: 2px;
  color: #969a8f;
  font-size: 7px;
}

.revision-panel {
  margin: 18px 0;
  padding: 17px;
  border: 1px solid #d7d9ce;
  border-radius: 14px;
  background: #fff;
}

.revision-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.revision-head h3 {
  margin: 3px 0 0;
  font-family: "Songti SC", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.revision-head > span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #65695e;
  background: #f0f0e9;
  font-size: 7px;
}

.revision-panel > p {
  margin: 10px 0;
  color: #7e8378;
  font-size: 8px;
  line-height: 1.65;
}

.revision-panel textarea {
  width: 100%;
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid #daded1;
  border-radius: 10px;
  outline: 0;
  background: #fbfbf7;
  color: #25271f;
  font: 9px/1.65 "PingFang SC", sans-serif;
}

.revision-panel textarea:focus {
  border-color: #9ebd4a;
  box-shadow: 0 0 0 3px #eff5de;
}

.revision-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 13px;
}

.revision-suggestions button {
  padding: 6px 9px;
  border: 1px solid #dfe3d5;
  border-radius: 999px;
  background: #f8f9f3;
  color: #62685a;
  font-size: 7px;
  cursor: pointer;
}

.revision-suggestions button:hover {
  border-color: #b8cc7a;
  color: #46521f;
}

.revision-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.revision-actions > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #969a8f;
  font-size: 7px;
}

.revision-actions > span svg {
  width: 12px;
}

.revision-actions .primary-button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 8px;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.output-card {
  overflow: hidden;
  border: 1px solid #dfdfd5;
  border-radius: 14px;
  background: white;
}

.output-preview {
  position: relative;
  display: grid;
  height: 150px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(45deg, #e7e8df 25%, transparent 25%),
    linear-gradient(-45deg, #e7e8df 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e7e8df 75%),
    linear-gradient(-45deg, transparent 75%, #e7e8df 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.output-preview img,
.output-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.output-preview > svg {
  width: 34px;
  height: 34px;
  color: #8b8f81;
}

.output-info {
  padding: 10px;
}

.output-info strong {
  display: block;
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output-info span {
  display: block;
  margin: 2px 0 8px;
  color: #999c90;
  font-size: 7px;
}

.output-actions {
  display: flex;
  gap: 5px;
}

.output-actions a,
.output-actions button {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid #dedfd5;
  border-radius: 6px;
  color: #66695d;
  background: #f9f8f3;
  font-size: 7px;
  text-decoration: none;
  cursor: pointer;
}

.output-actions a:hover,
.output-actions button:hover {
  background: #f0f1e8;
}

.output-actions svg {
  width: 11px;
}

.log-box {
  max-height: 220px;
  overflow: auto;
  padding: 13px;
  border-radius: 10px;
  color: #bdc7b5;
  background: #1d1f19;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 8px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.error-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #f0c1b8;
  border-radius: 10px;
  color: #8c3d34;
  background: #fff0ec;
  font-size: 9px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.drawer-no-outputs {
  padding: 30px;
  border: 1px dashed #d9dbd0;
  border-radius: 13px;
  color: #95988c;
  text-align: center;
  font-size: 9px;
}

.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px;
  border-radius: 25px;
  background: #faf9f4;
  box-shadow: 0 35px 100px rgba(20,22,14,.25);
  animation: modalIn .35s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(15px) scale(.98); }
}

.modal h2 {
  margin: 0 0 8px;
  font-family: "Songti SC", Georgia, serif;
  font-size: 33px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.modal-intro {
  margin-bottom: 25px;
  line-height: 1.7;
}

.visibility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 24px;
  padding: 13px;
  border: 1px solid #e1e2d8;
  border-radius: 11px;
  background: white;
}

.visibility-row > span {
  display: grid;
  gap: 2px;
}

.visibility-row strong {
  font-size: 9px;
}

.visibility-row small {
  color: #979a8e;
  font-size: 7px;
}

.modal-submit {
  width: 100%;
}

.modal-submit svg {
  margin-left: auto;
}

.profile-popover {
  position: fixed;
  z-index: 70;
  left: calc(var(--sidebar-width) - 205px);
  bottom: 76px;
  width: 220px;
  padding: 13px;
  border: 1px solid #dedfd5;
  border-radius: 14px;
  background: #fbfaf6;
  box-shadow: 0 18px 50px rgba(20,22,14,.15);
  animation: modalIn .25s var(--ease);
}

.profile-popover-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 3px 12px;
  border-bottom: 1px solid #e6e6de;
}

.profile-popover-head div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.profile-popover-head strong {
  font-size: 10px;
}

.profile-popover-head small {
  overflow: hidden;
  color: #92958a;
  font-size: 7px;
  text-overflow: ellipsis;
}

.profile-popover button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  color: #7a4c43;
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.profile-popover button:hover {
  background: #fff0ec;
}

.profile-popover button svg {
  width: 14px;
}

.toast-stack {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: min(340px, calc(100vw - 48px));
  gap: 9px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #f4f4ed;
  background: rgba(25,27,20,.95);
  box-shadow: 0 15px 45px rgba(15,17,11,.2);
  font-size: 9px;
  line-height: 1.55;
  backdrop-filter: blur(12px);
  animation: toastIn .3s var(--ease);
}

.toast.error {
  background: rgba(112,44,36,.96);
}

.toast svg {
  width: 16px;
  flex: 0 0 auto;
  color: var(--lime);
}

.toast.error svg {
  color: #ffd5cd;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
}

/* Responsive */
@media (max-width: 1180px) {
  .market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-skills {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-skills .skill-card:nth-child(n+5) {
    display: none;
  }

  .auth-story {
    padding-inline: 48px;
  }

  .floating-frame {
    transform: scale(.85);
  }

  .frame-a {
    right: 2%;
  }

  .frame-b {
    right: 8%;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  :root {
    --sidebar-width: 78px;
  }

  .sidebar {
    align-items: center;
    padding-inline: 12px;
  }

  .sidebar-brand {
    padding: 0 0 31px;
  }

  .sidebar-brand > div,
  .nav-item span,
  .nav-item b,
  .sidebar-section,
  .sidebar-upgrade,
  .profile-copy,
  .sidebar-profile > svg {
    display: none;
  }

  .main-nav {
    width: 100%;
  }

  .nav-item {
    justify-content: center;
    padding: 13px;
  }

  .nav-item.active::before {
    left: -12px;
  }

  .sidebar-profile {
    justify-content: center;
    padding: 10px 0;
  }

  .profile-popover {
    left: 89px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .studio-status {
    display: none;
  }

  .create-layout {
    grid-template-columns: 250px 1fr;
  }

  .composer-panel {
    padding: 26px;
  }

  .composer-fields {
    grid-template-columns: 1fr;
  }

  .auth-screen {
    grid-template-columns: 1fr 470px;
  }

  .auth-copy h1 {
    font-size: 68px;
  }

  .floating-frame {
    display: none;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-skill-row {
    grid-template-columns: 39px minmax(120px, 1fr) 54px 42px 58px;
  }

  .admin-run-count {
    display: none;
  }

  .one-tap-layout {
    grid-template-columns: 1fr;
  }

  .one-tap-heading {
    min-height: 200px;
  }
}

@media (max-width: 720px) {
  :root {
    --topbar-height: 64px;
    --sidebar-width: 0px;
  }

  .auth-screen {
    display: block;
  }

  .auth-story {
    display: none;
  }

  .auth-panel {
    min-height: 100svh;
    padding: 90px 24px 64px;
    background:
      radial-gradient(circle at 100% 0, rgba(216,255,105,.36), transparent 28%),
      #f8f7f2;
  }

  .mobile-brand {
    position: absolute;
    top: 28px;
    left: 24px;
    display: flex;
  }

  .mobile-brand .brand-mark {
    width: 32px;
    height: 32px;
  }

  .auth-card {
    width: 100%;
  }

  .auth-tabs {
    margin-bottom: 40px;
  }

  .auth-legal {
    right: 24px;
    bottom: 18px;
    left: 24px;
    text-align: center;
  }

  .sidebar {
    z-index: 100;
    width: min(270px, 82vw);
    align-items: stretch;
    padding: 24px 18px;
    box-shadow: 20px 0 60px rgba(20,22,14,.16);
    transform: translateX(-105%);
    transition: transform .35s var(--ease);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-brand > div,
  .nav-item span,
  .nav-item b,
  .sidebar-section,
  .sidebar-upgrade,
  .profile-copy,
  .sidebar-profile > svg {
    display: initial;
  }

  .sidebar-brand {
    padding: 0 9px 31px;
  }

  .sidebar-section {
    display: grid;
  }

  .sidebar-upgrade {
    display: block;
  }

  .nav-item {
    justify-content: flex-start;
    padding: 11px 12px;
  }

  .nav-item b {
    display: block;
  }

  .sidebar-profile {
    justify-content: flex-start;
  }

  .workspace {
    margin-left: 0;
  }

  .topbar {
    padding: 0 16px;
    gap: 10px;
  }

  .mobile-menu {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #dedfd5;
    border-radius: 9px;
    background: #faf9f4;
    cursor: pointer;
  }

  .mobile-menu svg {
    width: 17px;
  }

  .global-search {
    width: auto;
    flex: 1;
    padding: 8px;
  }

  .global-search span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .global-search kbd,
  .runtime-pill,
  .topbar-actions .new-project-button span {
    display: none;
  }

  .topbar-actions {
    gap: 0;
  }

  .topbar-actions .new-project-button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
  }

  .page {
    padding: 28px 16px 60px;
  }

  .welcome-row {
    align-items: flex-start;
  }

  .date-stamp {
    display: none;
  }

  .welcome-row h1,
  .page-heading-row h1 {
    font-size: 34px;
  }

  .one-tap-heading {
    min-height: 250px;
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 24px;
  }

  .one-tap-heading h1 {
    font-size: 48px;
  }

  .one-tap-heading::after {
    top: 15px;
    right: -18px;
    font-size: 68px;
  }

  .one-tap-badge {
    align-self: flex-start;
  }

  .one-tap-source-card,
  .one-tap-settings-card,
  .one-tap-flow {
    padding: 19px;
  }

  .one-tap-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .one-tap-drop {
    min-height: 165px;
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .folder-import-row {
    flex-wrap: wrap;
  }

  .one-tap-fields {
    grid-template-columns: 1fr;
  }

  .one-tap-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .one-tap-submit {
    width: 100%;
  }

  .one-tap-flow-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .one-tap-flow-steps i {
    width: 1px;
    height: 13px;
    margin: 0 0 0 4px;
  }

  .hero-card {
    display: block;
    min-height: 0;
    border-radius: 24px;
  }

  .hero-copy {
    padding: 31px 25px;
  }

  .hero-copy h2 {
    font-size: 43px;
  }

  .hero-visual {
    min-height: 235px;
  }

  .hero-orb {
    width: 175px;
    height: 175px;
  }

  .orbit-one {
    width: 260px;
    height: 170px;
  }

  .orbit-two {
    width: 300px;
    height: 210px;
  }

  .timeline-mini {
    right: 26px;
    bottom: 20px;
    width: 160px;
  }

  .dashboard-grid {
    margin-top: 30px;
  }

  .featured-skills {
    grid-template-columns: 1fr;
  }

  .featured-skills .skill-card {
    display: flex;
  }

  .section-heading h3 {
    font-size: 22px;
  }

  .recent-section {
    margin-top: 30px;
  }

  .task-row {
    grid-template-columns: minmax(0, 1fr) auto 22px;
    gap: 9px;
    padding: 13px;
  }

  .task-row .task-time,
  .task-row .task-size {
    display: none;
  }

  .task-status {
    font-size: 7px;
  }

  .page-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .page-heading-row > .new-project-button,
  .page-heading-row > .primary-button {
    width: 100%;
  }

  .market-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .filter-tabs button {
    white-space: nowrap;
  }

  .inline-search {
    width: 100%;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .market-grid .skill-cover {
    height: 155px;
  }

  .step-indicator {
    display: none;
  }

  .create-layout {
    display: block;
    min-height: 0;
    border-radius: 19px;
  }

  .skill-picker-panel {
    border-right: 0;
    border-bottom: 1px solid #e2e2d9;
  }

  .create-skill-list {
    max-height: 245px;
  }

  .composer-panel {
    min-height: 500px;
    padding: 23px 18px;
  }

  .composer-empty {
    min-height: 380px;
  }

  .composer-head {
    flex-wrap: wrap;
  }

  .composer-title {
    flex: 1;
    min-width: 190px;
  }

  .composer-title h2 {
    font-size: 24px;
  }

  .composer-badge {
    display: none;
  }

  .drop-zone {
    min-height: 160px;
  }

  .composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .run-button {
    width: 100%;
  }

  .task-summary-row {
    grid-template-columns: 1fr;
  }

  .admin-stat-grid,
  .admin-side {
    grid-template-columns: 1fr;
  }

  .admin-skill-row {
    grid-template-columns: 35px minmax(100px, 1fr) 42px 56px;
    gap: 8px;
    padding: 11px;
  }

  .admin-skill-icon {
    width: 35px;
    height: 35px;
  }

  .admin-badge {
    display: none;
  }

  .admin-visibility,
  .admin-edit-button {
    font-size: 6px;
  }

  .manifest-actions {
    flex-direction: column;
  }

  .manifest-file-button,
  .manifest-actions .secondary-button {
    width: 100%;
  }

  .drawer {
    width: 100%;
    padding: 28px 18px;
  }

  .output-grid {
    grid-template-columns: 1fr;
  }

  .ai-studio-grid,
  .ai-fields,
  .ai-detail-grid,
  .ai-voice-tools {
    grid-template-columns: 1fr;
  }

  .ai-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-action-row .primary-button,
  .ai-voice-tools .primary-button {
    width: 100%;
  }

  .modal {
    padding: 29px 21px;
  }

  .modal h2 {
    font-size: 29px;
  }

  .toast-stack {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
