:root {
  --ink: #1e302c;
  --muted: #6d7974;
  --paper: #f4f6f2;
  --line: #e2e7df;
  --green: #215847;
  --lime: #d6edb9;
  --danger: #a64836;
  --white: #fff;
  --radius: 14px;
  font:
    14px/1.5 Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 620;
}
h2 {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  font-weight: 650;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 12px;
  margin: 6px 0 0;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 650;
}
.loading {
  padding: 12vh;
  text-align: center;
}
.shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fcfdfa;
  border-right: 1px solid var(--line);
  padding: 27px 16px 20px;
  position: fixed;
  width: 235px;
  inset: 0 auto 0 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 11px 28px;
}
.brand img {
  width: 37px;
  height: 37px;
}
.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.6px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 650;
  color: #909a93;
  margin: 20px 14px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: #57675f;
  text-decoration: none;
  width: 100%;
  padding: 9px 13px;
  border-radius: 9px;
  text-align: left;
  font-size: 12px;
}
.nav-item:hover {
  background: #edf2e8;
}
.nav-item.active {
  background: #e5eedc;
  color: #254b37;
  font-weight: 650;
}
.nav-item svg {
  height: 17px;
  width: 17px;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.user {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 12px;
  color: var(--muted);
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #fcfdfa;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.site-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-control select {
  border: 0;
  background: transparent;
  font-weight: 600;
  max-width: 270px;
  padding: 9px;
}
.topbar small {
  font-size: 11px;
  color: var(--muted);
}
.site-dot {
  width: 9px;
  height: 9px;
  background: #b7c3ac;
  border-radius: 50%;
}
.site-dot.connected {
  background: #438c5d;
}
.page {
  padding: 36px 42px 60px;
  max-width: 1600px;
  margin: 0 auto;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.page-header p {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 13px;
}
.page-header h1 {
  margin: 5px 0 0;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 15px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.btn:hover {
  border-color: #9db59b;
  background: #f6faf1;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.btn.primary:hover {
  background: #174b3b;
}
.btn.small {
  padding: 5px 10px;
  font-size: 11px;
}
.btn.danger {
  color: var(--danger);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.banner {
  border-radius: var(--radius);
  background: #e8efdf;
  padding: 23px 27px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  border: 1px solid #dbe6ce;
}
.banner h2 {
  margin-bottom: 5px;
}
.banner p {
  margin: 0;
  max-width: 650px;
  color: #53654e;
  font-size: 13px;
}
.banner.dark {
  background: #1f5141;
  color: #f7f9f2;
  border: 0;
}
.banner.dark p {
  color: #c2d2bc;
}
.banner.dark .eyebrow {
  color: #b6cda4;
}
.banner.dark .btn {
  background: var(--lime);
  border: 0;
  color: #1f402c;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}
.stat .number {
  font-size: 31px;
  letter-spacing: -1.1px;
  margin: 8px 0 4px;
  font-weight: 580;
}
.stat .label {
  font-size: 12px;
  color: var(--muted);
}
.stat .sub {
  font-size: 11px;
  color: #7e8a7d;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-head {
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.panel-head h2,
.panel-head h3 {
  margin: 0;
}
.panel-body {
  padding: 23px;
}
.empty {
  padding: 48px 25px;
  text-align: center;
}
.empty svg {
  width: 34px;
  height: 34px;
  color: #8ba37d;
  margin-bottom: 15px;
}
.empty h2 {
  margin-bottom: 7px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 20px;
}
.setup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0e9;
}
.setup-row:last-child {
  border: 0;
}
.setup-row .step {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #f0f3eb;
  color: #66755f;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex: none;
}
.setup-row .step.done {
  background: #dcecc9;
  color: #315e30;
}
.setup-row > div:nth-child(2) {
  flex: 1;
}
.setup-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0 0;
}
.setup-row strong {
  font-size: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  border-radius: 20px;
  padding: 4px 9px;
  background: #eef2ea;
  color: #64705e;
  white-space: nowrap;
}
.badge.green {
  background: #e1f1de;
  color: #367043;
}
.badge.amber {
  background: #fff0d8;
  color: #986b28;
}
.badge.red {
  background: #fbe6df;
  color: #a34a37;
}
.badge.blue {
  background: #e6edf9;
  color: #4d6a97;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: #fcfdfa;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 22px;
  border-bottom: 1px solid #edf0e9;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td.title {
  max-width: 350px;
  font-weight: 550;
}
td .muted {
  font-size: 11px;
  font-weight: 400;
  display: block;
  margin-top: 4px;
}
.row-link {
  color: var(--ink);
  text-decoration: none;
}
.row-link:hover {
  color: var(--green);
  text-decoration: underline;
}
.toolbar {
  display: flex;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.toolbar input {
  flex: 1;
  max-width: 420px;
}
.toolbar select {
  width: auto;
}
.pagination {
  padding: 15px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 580;
  margin-bottom: 7px;
}
input:not([type='checkbox']),
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dce3d6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 40px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #76966b;
  outline: 2px solid #e1ecd9;
}
textarea {
  resize: vertical;
  min-height: 110px;
  font-size: 13px;
}
input[type='checkbox'] {
  accent-color: var(--green);
}
.field {
  margin-bottom: 19px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.field.full {
  grid-column: 1/-1;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
  font-size: 12px;
  margin: 12px 0;
}
.asset-category-fields {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 18px 0;
  padding: 12px 16px;
}
.asset-category-fields legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 6px;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 14px;
}
.alert {
  background: #fff4df;
  border: 1px solid #eadbbd;
  color: #805f2f;
  font-size: 12px;
  padding: 13px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.alert.error {
  color: #973d30;
  background: #fff0e9;
  border-color: #efd2c5;
}
.notice {
  font-size: 12px;
  padding: 14px 18px;
  border-left: 3px solid #a2bc8c;
  background: #f4f7ef;
  margin-bottom: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  width: min(660px, calc(100vw - 32px));
  max-height: 90vh;
  box-shadow: 0 20px 100px #1a2d2740;
}
dialog::backdrop {
  background: #183c2c55;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 23px 27px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-body {
  padding: 25px 27px;
}
.close {
  background: transparent;
  border: 0;
  font-size: 23px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #244f3f;
  color: white;
  box-shadow: 0 5px 25px #183c2c22;
  border-radius: 10px;
  padding: 12px 20px;
  max-width: 600px;
  font-size: 13px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
}
#toast.error {
  background: #914937;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: #204d3d;
  color: #fff;
  padding: 10vh 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: '';
  position: absolute;
  border: 1px solid #89b17833;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  right: -250px;
  bottom: -100px;
  box-shadow:
    0 0 0 70px #89b1780c,
    0 0 0 140px #89b17808;
}
.auth-story .brand {
  padding: 0 0 70px;
}
.auth-story h1 {
  font-size: 50px;
  font-weight: 500;
  line-height: 1.1;
  max-width: 470px;
  letter-spacing: -2px;
}
.auth-story p {
  color: #becfb6;
  max-width: 390px;
  font-size: 15px;
  line-height: 1.7;
}
.auth-story small {
  color: #b3cca9;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.auth-form > div {
  max-width: 390px;
  width: 100%;
}
.auth-form h1 {
  font-size: 27px;
}
.auth-form .btn {
  width: 100%;
  margin-top: 10px;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.image-brand-controls {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}
.image-brand-controls .actions {
  margin: 14px 0;
  flex-wrap: wrap;
}
.image-brand-controls h3 {
  margin-top: 20px;
}
.logo-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.logo-preview img {
  width: 120px;
  height: 100px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f4f6f1;
}
.reference-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.reference-previews figure {
  width: 140px;
  margin: 0;
}
.reference-previews img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f6f1;
}
.reference-previews figcaption {
  font-size: 12px;
  overflow-wrap: anywhere;
  margin-top: 5px;
}
.asset {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.asset img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  background: #e9eee3;
}
.asset-info {
  padding: 15px;
}
.asset h3 {
  margin-bottom: 4px;
}
.asset p {
  font-size: 11px;
  color: var(--muted);
}
.activity {
  padding: 16px 23px;
  border-bottom: 1px solid #edf0e9;
  font-size: 12px;
}
.activity small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.activity:last-child {
  border: 0;
}
.progress {
  height: 5px;
  border-radius: 10px;
  background: #edf1e7;
  overflow: hidden;
  width: 100px;
  margin-top: 6px;
}
.progress span {
  display: block;
  height: 100%;
  background: #6e9f58;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
}
.tabs button {
  padding: 13px 15px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
}
.tabs button.active {
  border-bottom-color: var(--green);
  color: var(--green);
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
}
.editor {
  min-height: 540px;
  padding: 30px;
  line-height: 1.8;
  outline: none;
  font-family: Georgia, serif;
  font-size: 16px;
}
.editor h2 {
  font-family: Inter, ui-sans-serif, sans-serif;
  margin-top: 28px;
  font-size: 22px;
}
.editor img {
  max-width: 100%;
  height: auto;
}
.editor figure {
  margin: 24px 0;
}
.editor figcaption {
  font-size: 12px;
  color: var(--muted);
}
.editor-tools {
  display: flex;
  gap: 7px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.check {
  font-size: 11px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f2eb;
  display: flex;
  gap: 8px;
}
.check i {
  font-style: normal;
  color: #52914a;
}
.check.failed i {
  color: #bc7252;
}
.check span {
  flex: 1;
}
.score {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -1px;
}
.score small {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}
.pill-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
.option {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.option.selected {
  border-color: #90ad73;
  background: #f3f8ec;
}
.option h3 {
  margin-bottom: 6px;
}
.option p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.code {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
}
.section-list {
  display: grid;
  gap: 14px;
}
.section-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 23px;
}
.section-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
}
.section-card p {
  color: var(--muted);
  font-size: 12px;
}
.section-card .actions {
  margin-top: 12px;
}
.mobile-menu {
  display: none;
}
.wide {
  grid-column: 1/-1;
}
.stack > * + * {
  margin-top: 16px;
}
@media (max-width: 1200px) {
  .page {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .editor-layout {
    grid-template-columns: 1fr 250px;
  }
  .asset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    z-index: 10;
    box-shadow: 10px 0 40px #223d3322;
  }
  .shell.menu-open .sidebar {
    display: flex;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    height: 66px;
    padding: 0 18px;
  }
  .topbar small {
    display: none;
  }
  .site-control select {
    max-width: 185px;
  }
  .page {
    padding: 25px 18px;
  }
  .page-header {
    align-items: flex-start;
  }
  .page-header h1 {
    font-size: 26px;
  }
  .page-header .actions {
    justify-content: flex-end;
  }
  .banner {
    padding: 20px;
    display: block;
  }
  .banner .actions {
    margin-top: 15px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .field-grid,
  .editor-layout,
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-form {
    min-height: 100vh;
  }
  .asset-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  td,
  th {
    padding: 13px 16px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .editor {
    padding: 22px;
  }
  .pill-options {
    grid-template-columns: 1fr;
  }
  .panel-body {
    padding: 20px;
  }
  .page-header {
    flex-wrap: wrap;
  }
  .main {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.asset video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #121e1b;
}
.hint code,
code.hint {
  overflow-wrap: anywhere;
  white-space: normal;
}


