:root {
  --ink: #20251f;
  --muted: #697068;
  --line: #e1e5dc;
  --lime: #c3f25c;
  --paper: #f7f8f4;
  --surface: #fff;
  --side: 210px;
  --green: #405b27;
  font-family: 'DM Sans', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  background: none;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #80a93e;
  outline-offset: 2px;
}
input,
textarea,
select {
  min-width: 0;
  color: var(--ink);
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid #d9dfd3;
  border-radius: 7px;
  font-size: 13px;
  padding: 9px 11px;
}
input::placeholder,
textarea::placeholder {
  color: #92988d;
}
input[type='search']::-webkit-search-cancel-button {
  cursor: pointer;
}
textarea {
  resize: vertical;
  line-height: 1.65;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.ic {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 14px;
  background: var(--ink);
  color: white;
  padding: 10px;
  z-index: 30;
}
.skip:focus {
  top: 5px;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  width: var(--side);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  background: #fdfefb;
  border-right: 1px solid var(--line);
  z-index: 10;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 25px;
  height: 88px;
}
.brand img {
  width: 41px;
  height: 41px;
}
.brand strong {
  display: block;
  font-size: 25px;
  letter-spacing: 0.015em;
  line-height: 1.05;
  font-weight: 800;
}
.brand small {
  display: block;
  font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.18em;
  margin-top: 4px;
  color: #66715c;
}
.sidebar nav {
  margin: 8px 15px;
  overflow: auto;
}
.nav-group {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.07em;
  color: #858c80;
  margin: 25px 13px 9px;
}
.nav-group:first-child {
  margin-top: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13.5px;
  line-height: 20px;
  color: #52594f;
  border-radius: 7px;
  padding: 11px 14px;
  margin: 3px 0;
  font-weight: 520;
  transition: background 0.15s;
}
.nav-item:hover,
.guide:hover {
  background: #eef1e9;
}
.nav-item.active {
  background: #e8f5cf;
  color: #344721;
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 18px 17px 19px;
}
.guide {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  color: var(--muted);
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  width: 100%;
}
.workspace-id {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 5px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #dce5d2;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #496138;
  background: #eaf0e1;
}
.workspace-id strong,
.workspace-id small {
  display: block;
}
.workspace-id strong {
  font-size: 12px;
  font-weight: 650;
}
.workspace-id small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  background: #7b9b48;
  border-radius: 50%;
}
.workspace {
  margin-left: var(--side);
}
.topbar {
  height: 61px;
  padding: 0 clamp(22px, 2.7vw, 50px);
  border-bottom: 1px solid var(--line);
  background: #fdfefb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.crumb,
.crumb-base,
.top-controls,
.global-search,
.scope-toggle {
  display: flex;
  align-items: center;
}
.crumb {
  gap: 12px;
  font-size: 12px;
  color: #737b6e;
  white-space: nowrap;
}
.crumb-base {
  gap: 7px;
}
.crumb strong {
  font-weight: 600;
  color: #424a3f;
}
.crumb-slash {
  color: #bac0b3;
}
.top-controls {
  gap: 16px;
}
.global-search {
  font-size: 11.5px;
  color: #697166;
  gap: 8px;
  padding: 6px 8px;
}
.global-search:hover,
.scope-toggle:hover {
  background: #edf1e8;
  border-radius: 5px;
}
kbd {
  font-size: 10px;
  font-family: inherit;
  color: #747c70;
  border: 1px solid #dce0d7;
  border-radius: 4px;
  padding: 1px 5px;
}
.top-divider {
  height: 17px;
  width: 1px;
  background: var(--line);
}
.scope-toggle {
  gap: 5px;
  font-size: 11px;
  color: #59664b;
}
.scope-toggle .status-dot {
  margin-right: 0;
}
#mobile-menu {
  display: none;
}
main {
  padding: clamp(23px, 2.2vw, 36px) clamp(22px, 2.7vw, 50px) 60px;
  max-width: 1720px;
  margin: auto;
}
.initial {
  color: var(--muted);
  padding: 30px;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 21px;
}
.page-title {
  font-size: clamp(27px, 2.3vw, 37px);
  line-height: 1.23;
  letter-spacing: -0.045em;
  font-weight: 730;
}
.page-lead {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 6px;
}
.intro-actions,
.btn,
.today,
.text-btn,
.icon-btn,
.metric-icon,
.feature-tag,
.hero-cta,
.card-label,
.likes,
.replicate,
.platform-chip,
.subhead,
.heading-combo,
.search-box,
.task-controls,
.field-top {
  display: flex;
  align-items: center;
}
.intro-actions {
  gap: 17px;
}
.today {
  color: var(--muted);
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 560;
  line-height: 18px;
  padding: 9px 14px;
  border: 1px solid #dce1d5;
  border-radius: 7px;
  background: #fff;
  white-space: nowrap;
}
.btn:hover {
  background: #f0f3ed;
  border-color: #c5cfb9;
}
.btn.primary,
.primary.btn {
  background: var(--lime);
  color: #263316;
  border: 1px solid #b0d954;
  font-weight: 680;
}
.btn.primary:hover {
  background: #b8e94e;
}
.btn.quiet,
.text-btn {
  background: transparent;
  border: 0;
}
.text-btn {
  display: inline-flex;
  gap: 5px;
  font-size: 12px;
  font-weight: 550;
  color: #5c6556;
  padding: 5px 0;
}
.text-btn:hover {
  color: #31461b;
}
.icon-btn {
  display: inline-flex;
  justify-content: center;
  border-radius: 6px;
  width: 32px;
  height: 32px;
}
.icon-btn:hover {
  background: #ecf0e6;
}
.feature-banner {
  height: clamp(185px, 15.2vw, 235px);
  overflow: hidden;
  isolation: isolate;
  position: relative;
  border-radius: 13px;
  background: #253623;
  color: #f5faed;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, #213122 4%, #344832 55%, #698251 100%);
}
.hero-grid:after {
  content: '';
  position: absolute;
  inset: -50px -30px -60px 44%;
  opacity: 0.28;
  transform: rotate(-9deg);
  background-image:
    linear-gradient(#b5cf94 1px, transparent 1px),
    linear-gradient(90deg, #b5cf94 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(85deg, transparent, #000 40%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 53%;
  height: 100%;
  padding: clamp(19px, 1.7vw, 27px) 0 18px clamp(22px, 2.2vw, 37px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
}
.hero-copy button {
  pointer-events: auto;
}
.feature-tag {
  border: 1px solid #899d6b;
  background: #3f5138;
  color: #dff2b8;
  font-size: 10px;
  letter-spacing: 0.07em;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
}
.hero-copy h2 {
  font-size: clamp(28px, 2.65vw, 45px);
  font-weight: 730;
  letter-spacing: -0.047em;
  line-height: 1.22;
  margin: 9px 0 5px;
  white-space: nowrap;
}
.hero-copy p {
  color: #d7e1cf;
  font-size: clamp(11px, 0.96vw, 14px);
  line-height: 1.6;
}
.hero-cta {
  background: #d1f881;
  color: #243317;
  border-radius: 6px;
  font-weight: 680;
  font-size: 12px;
  gap: 12px;
  margin-top: clamp(11px, 1.15vw, 19px);
  padding: 8px 13px;
}
.hero-cta:hover {
  background: #e2ffa0;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 49%;
  z-index: 0;
  pointer-events: none;
}
.front-photo,
.back-photo {
  position: absolute;
  background: #f2efde;
  padding: 6px 6px 16px;
  box-shadow: 0 7px 15px #15231355;
}
.front-photo {
  height: 110%;
  aspect-ratio: 1.35;
  right: 23%;
  top: 2%;
  transform: rotate(9deg);
}
.back-photo {
  height: 83%;
  aspect-ratio: 1.12;
  right: 8.5%;
  top: 24%;
  transform: rotate(-13deg);
  background: #e4e5d2;
}
.front-photo img,
.back-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.front-photo img {
  object-position: 54% 52%;
}
.art-orbit {
  position: absolute;
  top: -43%;
  left: -3%;
  width: 103%;
  height: 185%;
  border: 1px solid #c5d79a66;
  border-radius: 50%;
  transform: rotate(-19deg);
}
.hero-sticker {
  position: absolute;
  right: 15%;
  top: 18%;
  background: #cbf16d;
  color: #385025;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  transform: rotate(14deg);
  box-shadow: 0 2px 2px #1c31152b;
}
.hero-pages {
  position: absolute;
  right: 17px;
  bottom: 11px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 12px;
  background: #293a28ad;
  padding: 0 5px;
}
.hero-pages button {
  padding: 9px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-pages button:after {
  content: '';
  width: 5px;
  height: 5px;
  background: #d4dfc6;
  border-radius: 4px;
}
.hero-pages button.current:after {
  width: 16px;
  background: #ceef88;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 16px 0 25px;
}
.kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  gap: 7px;
  min-height: 85px;
  transition: border-color 0.16s;
}
.kpi:hover {
  border-color: #aabb99;
}
.kpi-label {
  color: #60695b;
  font-size: 12px;
  font-weight: 550;
}
.stat-value {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 670;
  letter-spacing: -0.05em;
  line-height: 1.15;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-value small {
  font:
    500 10px/1.2 'PingFang SC',
    sans-serif;
  letter-spacing: 0;
  margin-left: 6px;
  color: #7e8778;
}
.metric-icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  justify-content: center;
}
.metric-icon.violet {
  color: #736190;
  background: #f0eaf7;
}
.metric-icon.green {
  color: #5a783b;
  background: #eaf2dd;
}
.metric-icon.amber {
  color: #a67c40;
  background: #f7efdf;
}
.metric-icon.blue {
  color: #577e97;
  background: #e9f0f5;
}
.section-heading,
.subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-heading h2 {
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.045em;
  font-weight: 700;
}
.heading-combo {
  gap: 9px;
}
.heading-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #44582d;
  background: #e6f4cb;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 14px;
}
.chip {
  font-size: 11.5px;
  color: #646e5e;
  padding: 5px 12px;
  line-height: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #dfe4d8;
}
.chip:hover {
  border-color: #a7b59b;
}
.chip.sel {
  background: #303c2d;
  color: #fff;
  border-color: #303c2d;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.material-card {
  border: 1px solid var(--line);
  background: #fff;
  min-width: 0;
  overflow: hidden;
  border-radius: 11px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.material-card:hover {
  border-color: #bcc9af;
  box-shadow: 0 4px 12px #2631190a;
}
.thumb {
  position: relative;
  aspect-ratio: 1.6;
  overflow: hidden;
  background: #e9ece3;
}
.image-link {
  width: 100%;
  height: 100%;
  padding: 0;
  display: block;
}
.thumb img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}
.image-link:hover img {
  transform: scale(1.035);
}
.platform-chip,
.save {
  position: absolute;
  top: 9px;
}
.platform-chip {
  left: 9px;
  pointer-events: none;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #fffdf9ed;
  color: #252c24;
  font-size: 10px;
  font-weight: 660;
  line-height: 14px;
}
.platform-mark {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #e85f64;
}
.save {
  right: 9px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fffffff2;
  display: grid;
  place-items: center;
  color: #485042;
}
.save:hover,
.save.on {
  background: #dff3b7;
}
.save.on svg {
  fill: #506b32;
  stroke: #506b32;
}
.card-body {
  padding: 13px 13px 12px;
}
.card-label {
  color: #7b8376;
  gap: 7px;
  font-size: 10px;
  line-height: 15px;
}
.card-label > span {
  color: #607448;
}
.card-label i,
.task-info small i {
  font-style: normal;
}
.card-label i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #909a87;
}
.card-title {
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  font-size: clamp(13px, 1.02vw, 16px);
  line-height: 1.6;
  font-weight: 650;
  margin: 5px 0 12px;
  min-height: 3.2em;
  overflow-wrap: anywhere;
}
.card-title:hover {
  color: #536f34;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border-top: 1px solid #eef0e9;
  padding-top: 9px;
}
.likes {
  font-size: 11px;
  color: #777f70;
  gap: 4px;
}
.replicate {
  gap: 3px;
  color: #445837;
  background: #edf5e2;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 600;
}
.replicate:hover {
  background: #deefc6;
}
.recent {
  margin-top: 27px;
}
.recent .section-heading {
  margin-bottom: 14px;
}
.library-controls,
.task-controls {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 17px;
  margin: 0 0 16px;
}
.library-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.library-tabs button {
  padding: 0 0 11px;
  font-size: 13px;
  color: #737c6d;
  font-weight: 580;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 2px solid transparent;
}
.library-tabs button.active {
  color: #364d23;
  border-color: #7ba444;
}
.library-tabs small {
  font-size: 10px;
  background: #edf2e6;
  padding: 2px 5px;
  border-radius: 4px;
}
.toolbar,
.task-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.search-box {
  gap: 8px;
  background: #fff;
  border: 1px solid #d9dfd3;
  border-radius: 7px;
  padding: 0 10px;
  color: #78836f;
}
.search-box:focus-within {
  outline: 2px solid #9cba79;
}
.search-box input {
  background: none;
  border: 0;
  outline: none;
  font-size: 13px;
  width: 100%;
  height: 35px;
  padding: 4px 0;
}
.search-box input:focus-visible {
  outline: none;
}
.search-box.full {
  width: 100%;
}
.toolbar .search-box {
  min-width: 185px;
  flex: 1;
}
.toolbar select,
.task-controls select {
  min-height: 36px;
  padding: 6px 9px;
  font-size: 12px;
}
.result-count {
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0;
}
.topic-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  font-size: 12px;
  background: #e5efda;
  padding: 0 0 0 10px;
}
.topic-filter .icon-btn {
  width: 26px;
  height: 26px;
}
.pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin: 17px;
}
.pagination:empty {
  display: none;
}
.task-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.task-row,
.picker-row {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: left;
  gap: 13px;
  padding: 13px 16px;
  border-bottom: 1px solid #ebeee5;
}
.task-row:last-child,
.picker-row:last-child {
  border: 0;
}
.task-row:hover,
.picker-row:hover,
.choice:hover {
  background: #f5f8f1;
}
.task-thumb,
.picker-row img {
  width: 48px;
  height: 42px;
  object-fit: cover;
  border-radius: 5px;
  background: #edf1e9;
}
.task-info,
.picker-row > span {
  flex: 1;
  min-width: 0;
}
.task-info strong,
.picker-row strong {
  font-size: 13px;
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.task-info small,
.picker-row small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.task-info small i {
  margin: 0 6px;
}
.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.pill-status i {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.pill-status.draft {
  color: #6b705f;
  background: #eef0e8;
}
.pill-status.progress {
  background: #f9eed6;
  color: #856323;
}
.pill-status.done {
  background: #e8f2de;
  color: #4e7038;
}
.empty {
  background: #fff;
  border: 1px dashed #ccd6c3;
  border-radius: 9px;
  text-align: center;
  padding: 37px 18px;
}
.empty h3 {
  font-size: 15px;
}
.empty p,
.info-note,
.dialog-copy,
.search-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.empty p {
  margin-top: 7px;
}
.empty-icon {
  color: #7e9169;
  display: block;
  margin-bottom: 8px;
}
dialog {
  width: min(600px, calc(100vw - 26px));
  max-height: 88dvh;
  margin: auto;
  padding: 0;
  border: 1px solid #d9dfd2;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 85px #1c2b1a33;
}
dialog::backdrop {
  background: #1b261b66;
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
}
.modal-head h2 {
  font-size: 19px;
  letter-spacing: -0.03em;
}
.modal-body {
  padding: 18px 21px 21px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4e5948;
}
.field.wide {
  grid-column: 1/-1;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-weight: 400;
}
.field-top {
  justify-content: space-between;
  min-height: 20px;
}
.field-top button {
  font-size: 11px;
  padding: 0;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.form-error {
  font-size: 12px;
  line-height: 1.55;
  color: #b03627;
  margin-top: 8px;
}
.form-error:empty {
  display: none;
}
.detail-preview,
.source-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.detail-preview img {
  width: 125px;
  height: 96px;
  object-fit: cover;
  border-radius: 7px;
}
.detail-preview h3 {
  font-size: 19px;
  line-height: 1.5;
  margin: 4px 0;
}
.detail-preview p,
.detail-preview small {
  font-size: 12px;
  color: var(--muted);
}
.detail-preview small {
  display: block;
  margin-top: 5px;
}
.subhead {
  margin: 20px 0 9px;
}
.subhead h3 {
  font-size: 14px;
}
.script-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f7f1;
  border-radius: 8px;
  line-height: 1.9;
  font-size: 13px;
  padding: 15px;
  color: #4c5647;
}
.source-row {
  background: #f4f7ef;
  border-radius: 8px;
  padding: 9px;
  margin-bottom: 15px;
}
.source-row img {
  width: 48px;
  height: 43px;
  object-fit: cover;
  border-radius: 4px;
}
.source-row small,
.source-row strong {
  display: block;
}
.source-row small {
  font-size: 10px;
  color: var(--muted);
}
.source-row strong {
  font-size: 12px;
  margin-top: 3px;
}
.picker-row {
  padding: 10px 4px;
}
.picker-row img {
  width: 47px;
  height: 42px;
}
.choice-list {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.choice {
  width: 100%;
  padding: 14px;
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.choice + .choice {
  border-top: 1px solid var(--line);
}
.choice strong,
.choice small {
  display: block;
}
.choice strong {
  font-size: 14px;
}
.choice small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.guide-steps section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 17px;
}
.guide-steps b {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e9f2da;
  color: #47622e;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.guide-steps h3 {
  font-size: 14px;
}
.guide-steps p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 4px;
}
.info-note {
  background: #f2f5ed;
  padding: 10px;
  border-radius: 6px;
}
.search-hint {
  padding: 18px 1px 8px;
}
.search-group h3 {
  font-size: 11px;
  color: var(--muted);
  margin: 14px 0 5px;
}
.search-group button {
  width: 100%;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  text-align: left;
  font-size: 13px;
}
.search-group button:hover {
  background: #f0f4e9;
}
.search-group button span {
  flex: 1;
}
.search-group small {
  font-size: 10px;
  color: var(--muted);
}
.toast {
  position: fixed;
  z-index: 24;
  left: 50%;
  bottom: 23px;
  max-width: 90vw;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  background: #2d3928;
  color: #f6f9ef;
  font-size: 13px;
  border-radius: 8px;
  padding: 10px 16px;
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.scrim {
  display: none;
}
@media (min-width: 1650px) {
  :root {
    --side: 237px;
  }
  .brand {
    padding-left: 29px;
  }
  .kpi {
    padding: 20px 22px;
  }
  .card-body {
    padding: 15px 17px;
  }
  .topbar {
    height: 70px;
  }
  .card-label {
    font-size: 12px;
  }
  .chip {
    font-size: 13px;
  }
  .hero-copy {
    width: 57%;
  }
}
@media (max-width: 1170px) {
  :root {
    --side: 180px;
  }
  .brand {
    padding-left: 19px;
  }
  .sidebar nav {
    margin-inline: 10px;
  }
  .kpi {
    padding: 13px;
  }
  .card-grid {
    gap: 11px;
  }
  .hero-art {
    left: 53%;
  }
  .front-photo {
    right: 15%;
  }
  .back-photo {
    right: 2%;
  }
  .hero-sticker {
    right: 9%;
  }
  .card-body {
    padding: 10px;
  }
  .today {
    display: none;
  }
}
@media (max-width: 960px) {
  :root {
    --side: 155px;
  }
  .brand {
    gap: 8px;
    padding-left: 16px;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .brand strong {
    font-size: 22px;
  }
  .nav-item {
    gap: 9px;
    padding: 10px 11px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .thumb {
    aspect-ratio: 1.85;
  }
  .card-title {
    min-height: 0;
    font-size: 14px;
  }
  .kpi {
    gap: 3px;
    padding: 11px;
  }
  .metric-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .metric-icon svg {
    width: 17px;
  }
  .kpi-grid {
    gap: 8px;
  }
  .hero-copy {
    width: 58%;
  }
  .hero-copy p {
    max-width: 265px;
  }
  .hero-art {
    left: 59%;
  }
  .front-photo {
    height: 88%;
    top: 13%;
  }
  .back-photo {
    height: 69%;
    top: 30%;
  }
  .hero-sticker {
    right: 6%;
    width: 35px;
    height: 35px;
  }
  .hero-sticker svg {
    height: 24px;
  }
  .sidebar-bottom {
    padding-inline: 10px;
  }
}
@media (max-width: 730px) {
  :root {
    --side: 208px;
  }
  .sidebar {
    transform: translateX(-102%);
    transition: transform 0.18s;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9;
    background: #1d291c66;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 51px;
    padding-inline: 15px;
  }
  #mobile-menu {
    display: inline-flex;
    width: 27px;
  }
  .crumb {
    gap: 8px;
  }
  .top-controls {
    gap: 7px;
  }
  .global-search {
    padding: 6px;
  }
  .global-search span,
  .global-search kbd {
    display: none;
  }
  .top-divider {
    margin: 0 3px;
  }
  .scope-toggle {
    font-size: 10px;
  }
  .brand {
    height: 78px;
  }
  .nav-item {
    padding: 11px 15px;
  }
  .brand strong {
    font-size: 25px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  main {
    padding: 20px 16px 40px;
  }
  .page-intro {
    margin-bottom: 15px;
    gap: 8px;
  }
  .page-title {
    font-size: 27px;
  }
  .page-lead {
    font-size: 12px;
    margin-top: 4px;
  }
  .hero-copy {
    width: 60%;
    padding-left: 20px;
  }
  .feature-banner {
    height: 177px;
  }
  .hero-copy h2 {
    font-size: 26px;
  }
  .hero-copy p {
    font-size: 11px;
    max-width: 230px;
  }
  .hero-art {
    left: 57%;
  }
  .kpi-grid {
    gap: 8px;
    margin: 11px 0 20px;
  }
  .kpi {
    min-height: 75px;
  }
  .kpi-label {
    font-size: 11px;
  }
  .stat-value {
    font-size: 23px;
  }
  .metric-icon {
    width: 24px;
    height: 24px;
  }
  .card-body {
    padding: 12px;
  }
  .recent {
    margin-top: 21px;
  }
  .library-controls {
    padding: 12px;
  }
  .library-tabs {
    margin-bottom: 10px;
  }
  .toolbar {
    gap: 6px;
  }
  .intro-actions .btn {
    font-size: 12px;
    padding: 7px 9px;
  }
  .thumb {
    aspect-ratio: 1.5;
  }
}
@media (max-width: 520px) {
  .hero-art {
    left: 63%;
    opacity: 0.9;
  }
  .front-photo {
    right: -7%;
    height: 63%;
    top: 24%;
    transform: rotate(12deg);
  }
  .back-photo {
    height: 51%;
    right: -22%;
    top: 40%;
  }
  .hero-sticker {
    right: 8%;
    top: 19%;
    width: 29px;
    height: 29px;
  }
  .hero-sticker svg {
    width: 20px;
  }
  .hero-copy {
    width: 65%;
    padding-left: 16px;
  }
  .hero-copy h2 {
    font-size: 24px;
  }
  .hero-cta {
    font-size: 11px;
    padding: 7px 10px;
    margin-top: 10px;
  }
  .hero-pages {
    right: 8px;
    bottom: 7px;
  }
  .feature-tag {
    font-size: 9px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi {
    min-height: 63px;
    padding: 10px 13px;
  }
  .kpi > div {
    display: flex;
    align-items: baseline;
    flex-direction: column;
  }
  .kpi-label {
    font-size: 10px;
  }
  .stat-value {
    font-size: 21px;
    margin-top: 2px;
  }
  .metric-icon {
    width: 29px;
    height: 29px;
  }
  .chip-row {
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 11px 0;
  }
  .chip {
    font-size: 10.5px;
    padding: 4px 8px;
    white-space: nowrap;
  }
  .card-body {
    padding: 9px;
  }
  .card-title {
    font-size: 12.5px;
    margin-bottom: 8px;
    min-height: 3.2em;
  }
  .card-grid {
    gap: 9px;
  }
  .card-label {
    font-size: 9px;
    gap: 4px;
  }
  .replicate {
    font-size: 10px;
    padding: 4px;
  }
  .likes {
    font-size: 10px;
  }
  .thumb {
    aspect-ratio: 1.3;
  }
  .platform-chip {
    left: 6px;
    top: 6px;
    font-size: 9px;
  }
  .save {
    right: 6px;
    top: 6px;
    width: 23px;
    height: 23px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: auto;
  }
  .modal-body {
    padding: 14px;
  }
  .modal-head {
    padding: 10px 14px;
  }
  .task-row {
    gap: 8px;
    padding: 10px;
  }
  .task-info small {
    font-size: 10px;
  }
  .task-thumb {
    width: 35px;
    height: 35px;
  }
  .task-row > .ic {
    display: none;
  }
  .detail-preview img {
    width: 88px;
    height: 80px;
  }
  .detail-preview h3 {
    font-size: 15px;
  }
  .page-intro:has(.intro-actions) .page-lead {
    max-width: 235px;
  }
  .library-controls select {
    flex: 1;
  }
  .toolbar .search-box {
    flex-basis: 100%;
  }
  .modal-actions {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.media-preview img,
.media-preview video {
  display: block;
  max-width: 100%;
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 8px;
  background: #f2f4ed;
}
.field small {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}
.remove-file {
  font-size: 12px;
  color: var(--muted);
  grid-column: 1/-1;
}
.field input[type='file']::file-selector-button {
  border: 0;
  border-radius: 4px;
  background: #edf3e4;
  color: #3c552b;
  padding: 4px 7px;
  margin-right: 6px;
}
.source-links {
  display: flex;
  gap: 12px;
  margin: -10px 0 10px;
}
@media (max-width: 730px) {
  .sidebar {
    visibility: hidden;
  }
  .menu-open .sidebar {
    visibility: visible;
  }
}
.make-card-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #374e27;
  font-size: 12px;
  font-weight: 620;
  margin-top: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  background: #eff5e7;
}
.make-card-link .ic:last-child {
  margin-left: auto;
}
.make-card-link:hover {
  background: #deedcd;
}
@media (max-width: 520px) {
  .page-intro:has(#new-task) {
    flex-wrap: wrap;
  }
  .page-intro:has(#new-task) .intro-actions {
    gap: 6px;
  }
  .make-card-link {
    margin-top: 6px;
    font-size: 11px;
  }
}

.auth-view .sidebar,.auth-view .topbar{display:none}.auth-view .workspace{margin:0;width:100%}.auth-view #main{padding:0;max-width:none}.sidebar nav{overflow-y:auto}.sidebar-bottom{flex-shrink:0}.workspace-id strong{overflow-wrap:anywhere}
@media (max-width:600px) {
  .crumb-base,.crumb-slash{display:none}
  .scope-toggle,#logout{white-space:nowrap}
  .topbar{padding-inline:12px}
}
