.ft-workspace {
  --ft-surface: #171813;
  --ft-surface-soft: #111411;
  --ft-line: #373426;
  --ft-text: #f6f3eb;
  --ft-muted: #ada99d;
  --ft-gold: #e2b638;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 4px 0 28px;
  color: var(--ft-text);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  line-height: 1.45;
}

.ft-workspace *, .ft-workspace *::before, .ft-workspace *::after { box-sizing: border-box; }
.ft-workspace :is(button, input, select, textarea) { font-family: inherit; }
.ft-workspace :is(p, h1, h2, h3) { overflow-wrap: anywhere; }

.ft-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  padding: 17px 19px;
  border: 1px solid var(--ft-line);
  border-radius: 10px;
  background: var(--ft-surface);
}
.ft-kicker {
  color: var(--ft-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}
.ft-hero h1 {
  margin: 3px 0 2px;
  font-size: clamp(23px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.ft-hero p, .ft-card > p {
  max-width: 900px;
  margin: 0;
  color: var(--ft-muted);
  font-size: 11px;
  line-height: 1.45;
}
.ft-pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #34654b;
  border-radius: 999px;
  color: #9be3ba;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}
.ft-notice {
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid #64551f;
  border-left: 3px solid var(--ft-gold);
  border-radius: 8px;
  background: #211d11;
  color: #e7d59b;
  font-size: 10px;
  line-height: 1.45;
}
.ft-error:empty { display: none; }
.ft-error {
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid #a14646;
  border-radius: 8px;
  background: #391d1d;
  color: #ffe3e0;
  font-size: 10px;
}

.ft-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}
.ft-summary > p { grid-column: 1 / -1; margin: 0; color: var(--ft-muted); }
.ft-metric, .ft-card {
  min-width: 0;
  border: 1px solid var(--ft-line);
  border-radius: 10px;
  background: var(--ft-surface);
}
.ft-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 84px;
  padding: 11px 13px;
}
.ft-metric small {
  color: var(--ft-muted);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.ft-metric strong {
  color: var(--ft-text);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.ft-metric span {
  color: #c8a74e;
  font-size: 9px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}
.ft-card {
  margin-bottom: 10px;
  padding: 15px 17px;
}
.ft-card h2 {
  margin: 0 0 3px;
  color: var(--ft-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.ft-card form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 9px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ft-line);
}
.ft-card label {
  display: flex;
  flex: 1 1 160px;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  color: var(--ft-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}
.ft-card :is(input, select, textarea) {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #494636;
  border-radius: 7px;
  background: #0d100e;
  color: var(--ft-text);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
}
.ft-card input[type="file"] { padding: 6px 8px; }
.ft-card textarea { min-height: 58px; resize: vertical; }
.ft-card button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #ba912c;
  border-radius: 7px;
  background: #dbad33;
  color: #18160f;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.ft-card button:disabled { opacity: .55; cursor: wait; }
.ft-card :is(button, input, select, textarea):focus-visible {
  outline: 2px solid var(--ft-gold);
  outline-offset: 2px;
}
.ft-scroll { max-height: 390px; margin-top: 10px; overflow: auto; }
.ft-card table { width: 100%; border-collapse: collapse; font-size: 10px; text-align: left; }
.ft-card th, .ft-card td { padding: 8px; border-bottom: 1px solid var(--ft-line); vertical-align: top; }
.ft-card th { color: #d6b75b; font-size: 9px; font-weight: 650; white-space: nowrap; }
.ft-card td small { display: block; color: var(--ft-muted); font-size: 9px; }
.ft-review { display: block !important; padding: 13px; border-radius: 8px; background: var(--ft-surface-soft); }
.ft-review h3 { margin: 0 0 5px; font-size: 13px; }
.ft-review p { margin: 0; color: var(--ft-muted); font-size: 10px; }
.ft-line { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 9px; width: 100%; margin-bottom: 9px; }
.ft-preview { margin-top: 10px; padding: 11px; border: 1px solid #42664e; border-radius: 8px; background: #19231c; }
.ft-preview p { margin: 3px 0 9px; color: var(--ft-muted); font-size: 10px; }
.ft-check { flex-direction: row !important; align-items: center; gap: 7px !important; }
.ft-check input { width: auto; min-height: 0; }

html[data-roc-theme="light"] .ft-workspace {
  --ft-surface: #fffdfa;
  --ft-surface-soft: #f7f4eb;
  --ft-line: #ded8c8;
  --ft-text: #1c201d;
  --ft-muted: #686c68;
}
html[data-roc-theme="light"] .ft-pill { color: #17633c; background: #eff9f1; }
html[data-roc-theme="light"] .ft-notice { background: #fff9e8; color: #674d0c; border-color: #d7bd70; }
html[data-roc-theme="light"] .ft-error { background: #fff0ef; color: #7f2929; }
html[data-roc-theme="light"] .ft-metric span { color: #8c6818; }
html[data-roc-theme="light"] .ft-card :is(input, select, textarea) { background: #fff; color: var(--ft-text); border-color: #cfc9ba; }
html[data-roc-theme="light"] .ft-preview { background: #f1f8f0; }

@media (max-width: 1380px) {
  .ft-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .ft-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ft-workspace { padding-bottom: 20px; }
  .ft-hero { align-items: flex-start; flex-direction: column; gap: 8px; padding: 14px; }
  .ft-hero h1 { font-size: 23px; }
  .ft-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .ft-metric { min-height: 76px; padding: 10px; }
  .ft-metric strong { font-size: 17px; }
  .ft-card { padding: 13px; }
  .ft-card :is(button, input, select) { min-height: 40px; }
  .ft-line { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .ft-summary { grid-template-columns: 1fr; }
}
