:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #21382e;
  background: #f5f7f4;
  font-synthesis: none;
  font-size: 15px;
  --accent: #176b4a;
  --muted: #627268;
  --line: #dce4dc;
  --surface: #fdfefd;
  --danger: #ad3030;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fbfffc;
  padding: 0.65rem 1rem;
  border-radius: 7px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  text-decoration: none;
  min-height: 40px;
}
button:hover,
.button:hover {
  background: #115238;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary,
.button.secondary {
  background: var(--surface);
  color: #284d39;
  border-color: var(--line);
}
button.secondary:hover {
  background: #edf3ec;
}
.danger {
  color: var(--danger) !important;
  background: #fff7f5 !important;
  border-color: #edc6be !important;
}
button.small,
.button.small {
  font-size: 0.82rem;
  min-height: 32px;
  padding: 0.35rem 0.65rem;
}
button.link {
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0.2rem;
  min-height: 28px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #cf941e;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-weight: 650;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-weight: 630;
}
h3 {
  font-size: 1rem;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: var(--muted);
}
code {
  overflow-wrap: anywhere;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}
.brand {
  font-size: 1.35rem;
  color: #203b2b;
  font-weight: 750;
  letter-spacing: -0.055em;
}
.brand span {
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.4rem;
}
.topbar {
  height: 72px;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  gap: 1rem;
}
.actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}
.public {
  max-width: 1160px;
  margin: auto;
  padding: 4.5rem 2rem;
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 2rem 0 5rem;
}
.hero h1 {
  font-size: 3.65rem;
  letter-spacing: -0.06em;
  max-width: 650px;
}
.hero p {
  font-size: 1.08rem;
  max-width: 580px;
  color: var(--muted);
}
.eyebrow {
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.workflow {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.8rem;
  border-radius: 12px;
}
.workflow ol {
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.workflow li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.workflow li:last-child {
  border: 0;
}
.workflow li:before {
  content: counter(steps, decimal-leading-zero);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 0.15rem;
}
.workflow b {
  display: block;
  margin-bottom: 0.25rem;
}
.workflow small {
  line-height: 1.5;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
.pricing {
  width: 100%;
  background: var(--surface);
}
.public-section {
  margin-bottom: 4rem;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #eef2eb;
  border-right: 1px solid var(--line);
  padding: 1.65rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.sidebar .brand {
  padding: 0 0.75rem 1.8rem;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sidebar nav a {
  color: #536458;
  padding: 0.7rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.sidebar nav a:hover {
  background: #e5ece2;
  text-decoration: none;
}
.sidebar nav a.active {
  background: #dae9d8;
  color: #154a30;
  font-weight: 650;
}
.nav-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #6a7a6c;
  margin: 1.6rem 0.8rem 0.55rem;
}
.account {
  margin-top: auto;
  padding: 0.9rem 0.7rem 0;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  border-top: 1px solid var(--line);
}
.account strong {
  display: block;
  margin-bottom: 0.3rem;
}
.workspace-header {
  padding: 1.1rem 2.2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  font-size: 0.83rem;
}
.workspace-header .breadcrumb {
  color: var(--muted);
}
.workspace-header b {
  font-weight: 600;
}
.content {
  max-width: 1380px;
  padding: 2rem 2.2rem;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.65rem;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 0.93rem;
  max-width: 780px;
}
.page-heading h1 {
  margin-bottom: 0.6rem;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 1.45rem;
  margin-bottom: 1.4rem;
}
.panel.flush {
  padding: 0;
  overflow: hidden;
}
.panel-title {
  padding: 1.3rem 1.4rem 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.grid > .panel {
  margin-bottom: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--surface);
}
.metric {
  padding: 1.2rem 1.4rem;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric b {
  display: block;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  margin: 0.35rem 0;
}
.metric span {
  font-size: 0.8rem;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.87rem;
  text-align: left;
}
th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: #667869;
  font-weight: 600;
  background: #f5f8f3;
  white-space: nowrap;
}
td,
th {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  line-height: 1.6;
}
td .actions {
  flex-wrap: nowrap;
}
td.title-cell {
  min-width: 230px;
  max-width: 450px;
}
td:first-child {
  font-weight: 550;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  white-space: nowrap;
  background: #edf0ed;
  color: #536455;
}
.badge.good {
  background: #e3efdf;
  color: #285432;
}
.badge.wait {
  background: #f8f0dc;
  color: #806018;
}
.badge.bad {
  background: #f9e8e4;
  color: #983b2d;
}
.empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.empty h3 {
  font-size: 1.05rem;
}
.empty p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 1.2rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
  min-width: 0;
}
.field > span,
label > span {
  font-size: 0.83rem;
  font-weight: 600;
}
.field small {
  font-size: 0.78rem;
  line-height: 1.45;
}
input,
select,
textarea {
  width: 100%;
  background: #fdfefd;
  border: 1px solid #ccd7cc;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  color: inherit;
  min-height: 41px;
}
textarea {
  resize: vertical;
  line-height: 1.55;
  min-height: 110px;
}
input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  accent-color: var(--accent);
}
.check {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.87rem;
  margin: 1rem 0;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
}
.field-grid .wide {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1rem;
}
.smtp-test {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1rem;
}
.smtp-test [data-smtp-test-status]:empty {
  display: none;
}
.notice-inline {
  background: #f7f0dd;
  border: 1px solid #e8d8a9;
  border-radius: 6px;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}
.notice-inline.error {
  background: #fff0ec;
  border-color: #efcdc4;
  color: #953721;
}
.tabs {
  display: flex;
  gap: 1.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
  overflow: auto;
}
.tabs a {
  white-space: nowrap;
  font-size: 0.86rem;
  color: var(--muted);
  padding: 0.8rem 0.1rem;
}
.tabs a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  font-weight: 650;
}
.auth {
  max-width: 450px;
  margin: 4rem auto;
  padding: 2rem;
}
.auth .brand {
  display: block;
  margin-bottom: 2.2rem;
}
.auth h1 {
  font-size: 1.7rem;
}
.auth button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
}
.auth footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}
.auth-links {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
}
dialog {
  width: min(900px, calc(100% - 2rem));
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  color: inherit;
  background: var(--surface);
  box-shadow: 0 25px 70px #13271c25;
}
dialog::backdrop {
  background: #15231b66;
}
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-body {
  padding: 1.5rem;
}
.dialog-head button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.3rem;
  min-width: 40px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #213d2e;
  color: #f6fff8;
  border-radius: 8px;
  padding: 1rem 1.3rem;
  box-shadow: 0 5px 25px #14291b24;
  max-width: 480px;
  z-index: 10;
  font-size: 0.88rem;
}
.error-text {
  color: var(--danger);
  font-size: 0.85rem;
}
.loading {
  padding: 4rem;
  color: var(--muted);
}
.skeleton {
  height: 14px;
  background: #e8eee5;
  border-radius: 4px;
  width: 65%;
  margin: 1rem 0;
}
.skeleton:nth-child(2) {
  width: 90%;
}
.skeleton:nth-child(3) {
  width: 45%;
}
.editor {
  min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.83rem;
}
.preview {
  width: 100%;
  min-height: 380px;
  border: 1px solid var(--line);
  background: #fdfefd;
}
.rich-editor {
  min-height: 150px;
  border: 1px solid #ccd7cc;
  padding: 1rem;
  border-radius: 6px;
  line-height: 1.6;
}
.toolbar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.break {
  overflow-wrap: anywhere;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--surface);
  padding: 1rem;
  z-index: 20;
}
.skip:focus {
  top: 1rem;
}
.stat-line {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.request-message {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.request-message p {
  white-space: pre-wrap;
  font-size: 0.9rem;
  margin: 0.4rem 0;
}
.mobile-menu {
  display: none;
}
.code-value {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}
@media (max-width: 1000px) {
  .hero {
    gap: 2rem;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .content {
    padding: 1.5rem;
  }
  .workspace-header {
    padding: 1rem 1.5rem;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric:nth-child(2) {
    border: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: 0 1rem;
    height: 64px;
  }
  .topbar .actions > a:not(.button) {
    display: none;
  }
  .public {
    padding: 2.5rem 1.1rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 0 0 3rem;
    gap: 2rem;
  }
  .hero h1 {
    font-size: 2.65rem;
  }
  .feature-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 5;
    width: 230px;
    box-shadow: 10px 0 40px #213d2e20;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-menu {
    display: inline-flex;
    background: none;
    border-color: var(--line);
    color: var(--accent);
    padding: 0.4rem 0.65rem;
  }
  .workspace-header {
    padding: 0.8rem 1rem;
  }
  .content {
    padding: 1.4rem 1rem;
  }
  .page-heading {
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 1.6rem;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    font-size: 0.85rem;
  }
  .metric {
    padding: 1rem;
  }
  .panel {
    padding: 1rem;
  }
  .dialog-body {
    padding: 1rem;
  }
  .dialog-head {
    padding: 0.8rem 1rem;
  }
  .auth {
    margin: 1rem auto;
  }
  .footer {
    flex-direction: column;
  }
  .section-title {
    flex-direction: column;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions button {
    flex: 1;
  }
  #notice:not(:empty) {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
  .tabs {
    gap: 1rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a,
  input {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
  dialog[open] {
    animation: appear 0.15s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.ck-editor__editable {
  min-height: 180px;
}
.ck.ck-balloon-panel {
  z-index: 1100;
}

/* VNcake product tokens: quiet sage surfaces, strong green actions. */
:root {
  --accent: oklch(44% 0.1 157);
  --muted: oklch(47% 0.022 150);
  --line: oklch(88% 0.015 145);
  --surface: oklch(99% 0.004 140);
  --danger: oklch(47% 0.16 27);
  color: oklch(28% 0.026 155);
  background: oklch(97% 0.008 140);
  font-size: 15px;
  line-height: 1.5;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  overflow-wrap: break-word;
}
.shell > div {
  min-width: 0;
}
.content {
  max-width: 1500px;
  padding: 2.3rem 2.8rem;
}
.sidebar {
  background: oklch(95.5% 0.014 142);
  padding-top: 1.8rem;
}
.sidebar .brand {
  padding-bottom: 0.8rem;
  font-size: 1.5rem;
}
.sidebar .nav-label:first-of-type {
  margin-top: 0.5rem;
}
.sidebar nav a {
  padding: 0.6rem 0.8rem;
}
.sidebar nav a.active {
  background: oklch(89% 0.04 145);
  color: oklch(32% 0.08 152);
}
.account {
  margin-top: 1.8rem;
  padding-bottom: 0.5rem;
}
.account .small {
  margin-top: 0.8rem;
}
.workspace-header {
  padding: 1rem 2.8rem;
  min-height: 69px;
}
.workspace-header > span {
  white-space: nowrap;
}
.page-heading h1 {
  font-size: 2rem;
  letter-spacing: -0.045em;
}
.page-heading {
  margin-bottom: 2rem;
}
.page-heading .actions {
  justify-content: flex-end;
}
.metric b {
  font-variant-numeric: tabular-nums;
}
.panel {
  box-shadow: 0 1px 2px oklch(30% 0.02 145 / 0.025);
}
.panel > .panel {
  border: 0;
  padding: 0;
  box-shadow: none;
}
.table-controls {
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.table-search {
  flex: 1;
  min-width: 160px;
  max-width: 380px;
}
.table-search input {
  padding-left: 0.85rem;
  min-height: 38px;
  font-size: 0.85rem;
  background: oklch(98% 0.006 145);
}
.table-controls select {
  font-size: 0.85rem;
  min-height: 38px;
}
.table-count {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.76rem;
  color: var(--muted);
}
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.table-no-results {
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
tbody tr:hover {
  background: oklch(98% 0.008 145);
}
td {
  line-height: 1.5;
}
td .button,
td button {
  white-space: nowrap;
}
td:first-child button {
  font-weight: 650;
}
th {
  background: oklch(97% 0.009 140);
  font-size: 0.68rem;
}
td small {
  font-size: 0.76rem;
}
td.title-cell {
  min-width: 210px;
}
.data-table {
  min-width: 0;
}
.data-table .table-wrap {
  outline-offset: -3px;
}
.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
}
.section-toolbar h2 {
  margin: 0;
  font-size: 1.05rem;
}
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
}
.inline-form .field {
  margin: 0;
  min-width: 180px;
  flex: 1;
  max-width: 480px;
}
.inline-form .form-actions {
  margin: 0;
}
.inline-form .error-text:empty {
  display: none;
}
.inline-form .error-text {
  order: 3;
  flex-basis: 100%;
}
.work-links {
  margin: 1.5rem 0;
}
.work-links a {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.work-links span {
  color: var(--muted);
  font-size: 0.88rem;
}
.loyalty-strip,
.license-offer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  margin: 1.2rem 0;
  border-block: 1px solid var(--line);
}
.loyalty-strip small {
  display: block;
  margin-top: 0.25rem;
}
.editor-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  flex-wrap: wrap;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 1.5rem;
  align-items: start;
}
.writing-surface {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 1.5rem;
  min-width: 0;
}
.writing-surface > [id="title-count"] {
  display: block;
  margin-top: -0.7rem;
  margin-bottom: 1rem;
}
.writing-surface input[name="title"] {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}
.editor-toolbar {
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  padding: 0.7rem 0;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.editor-toolbar .segmented {
  margin: 0 0.4rem 0 0;
}
.editor-toolbar .segmented button {
  border: 0;
  border-radius: 4px;
  font-size: 0.75rem;
}
.editor-toolbar [aria-pressed="true"] {
  background: var(--accent);
  color: var(--surface);
}
.article-editable {
  min-height: 540px;
  line-height: 1.8;
  font-size: 1rem;
  outline: 0;
  padding: 0.5rem;
  overflow-wrap: anywhere;
}
.article-editable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.article-editable h2 {
  font-size: 1.6rem;
  margin-top: 1.8rem;
}
.article-editable p {
  line-height: 1.85;
}
.article-editable img {
  max-width: 100%;
  height: auto;
}
.article-editable table {
  display: block;
  overflow: auto;
}
.article-editable a {
  text-decoration: underline;
}
.article-editable blockquote {
  margin-inline: 0;
  padding: 1rem;
  background: oklch(96% 0.012 145);
}
.writing-surface textarea {
  min-height: 540px;
}
.editor-save {
  position: sticky;
  bottom: 0.5rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 0.8rem 0 0;
}
.editor-aside .panel {
  padding: 1.2rem;
}
.search-preview {
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  overflow-wrap: anywhere;
}
.search-preview h3 {
  color: oklch(40% 0.12 260);
  font-size: 1.1rem;
  margin: 0.4rem 0;
}
.search-preview p {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.article-images figure {
  margin: 0 0 1rem;
}
.article-images img {
  width: 100%;
  border-radius: 5px;
  min-height: 60px;
  object-fit: contain;
  background: oklch(96% 0.01 145);
}
.article-images figcaption {
  font-size: 0.75rem;
  color: var(--muted);
}
.article-preview {
  height: 65vh;
}
.pricing-intro {
  max-width: 780px;
  margin: 1rem auto 3rem;
  text-align: center;
}
.pricing-intro h1,
.guide-heading h1 {
  font-size: 3.2rem;
  letter-spacing: -0.055em;
  margin-bottom: 1.3rem;
}
.pricing-intro > p:not(.eyebrow) {
  max-width: 600px;
  margin-inline: auto;
  color: var(--muted);
}
.segmented {
  display: inline-flex;
  background: oklch(93% 0.012 145);
  padding: 0.3rem;
  border-radius: 8px;
  gap: 0.25rem;
  margin-top: 0.8rem;
}
.segmented a {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  border-radius: 5px;
  color: var(--muted);
}
.segmented a.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 4px oklch(30% 0.02 145 / 0.08);
}
.price-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.price-option {
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: 10px;
  background: var(--surface);
}
.price-option.recommended {
  background: oklch(93% 0.035 146);
  border-color: oklch(78% 0.055 147);
}
.price-option h2 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
  white-space: nowrap;
}
.price-option .button {
  width: 100%;
  margin: 0.8rem 0;
}
.price-option ul {
  padding-left: 1.1rem;
  line-height: 2.15;
  font-size: 0.88rem;
}
.license-offer p {
  max-width: 65ch;
  color: var(--muted);
  margin-bottom: 0;
}
.license-offer .button {
  flex-shrink: 0;
}
.faq {
  max-width: 850px;
  margin: 3rem auto;
}
.faq > h2 {
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
}
.faq details {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq details p {
  max-width: 70ch;
  color: var(--muted);
  margin: 0.85rem 0 0.2rem;
  font-size: 0.94rem;
}
.guide-heading {
  margin: 1rem 0 3rem;
}
.guide-steps {
  list-style: none;
  padding: 0;
  max-width: 850px;
}
.guide-steps li {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.step-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 0.15rem;
}
.guide-steps p {
  color: var(--muted);
  max-width: 68ch;
}
.topbar nav {
  gap: 1.5rem;
}
.topbar nav a:not(.button) {
  font-size: 0.87rem;
}
.public .hero {
  padding-top: 1.5rem;
}
.hero .workflow {
  background: oklch(94% 0.026 145);
  border-color: oklch(86% 0.03 145);
}
.hero h1 {
  font-weight: 650;
}
.public-section {
  margin-top: 1rem;
}
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 4;
  background: oklch(20% 0.02 150 / 0.4);
  border: 0;
  border-radius: 0;
  width: 100%;
  height: 100%;
}
.menu-scrim:hover {
  background: oklch(20% 0.02 150 / 0.4);
}
progress {
  width: 100%;
  accent-color: var(--accent);
  height: 0.55rem;
  margin: 1rem 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
button:disabled {
  cursor: not-allowed;
}
dialog .table-controls {
  padding-inline: 0;
}
dialog .panel {
  padding: 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.check {
  align-items: flex-start;
}
.check input {
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.field > span {
  line-height: 1.5;
}
.content[aria-busy="true"] {
  opacity: 0.8;
}
a.skip {
  position: fixed;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 3rem;
  }
  .hero {
    gap: 6rem;
  }
}
@media (max-width: 1150px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .content {
    padding: 1.7rem;
  }
  .price-option {
    padding: 1.4rem;
  }
  .price-option h2 {
    font-size: 1.7rem;
  }
  .workspace-header {
    padding: 1rem 1.7rem;
  }
  .work-links a {
    flex-direction: column;
    gap: 0.35rem;
  }
}
@media (max-width: 700px) {
  :root {
    font-size: 15px;
  }
  .topbar {
    height: auto;
    min-height: 70px;
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .topbar nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .topbar .actions > a:not(.button) {
    display: block;
  }
  .topbar .brand {
    font-size: 1.5rem;
  }
  .topbar .button {
    font-size: 0.78rem;
  }
  .content {
    padding: 1.35rem 1rem;
  }
  .workspace-header {
    padding: 0.8rem 1rem;
  }
  .workspace-header .breadcrumb {
    font-size: 0.78rem;
  }
  .workspace-header .breadcrumb b {
    display: block;
  }
  .workspace-header > span {
    font-size: 0.75rem;
  }
  .sidebar {
    width: min(280px, 85vw);
    z-index: 6;
  }
  .sidebar nav a {
    padding: 0.7rem 0.8rem;
  }
  .sidebar .brand {
    margin-left: 0;
  }
  .page-heading {
    gap: 1rem;
  }
  .page-heading > .actions {
    justify-content: flex-start;
    width: 100%;
  }
  .page-heading > .actions > .button,
  .page-heading > .actions > button {
    min-height: 42px;
  }
  .page-heading h1 {
    font-size: 1.8rem;
  }
  .price-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .price-option {
    padding: 1.6rem;
  }
  .price-option h2 {
    font-size: 2rem;
  }
  .pricing-intro h1,
  .guide-heading h1 {
    font-size: 2.45rem;
  }
  .price-option ul {
    margin-bottom: 0;
  }
  .license-offer,
  .loyalty-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }
  .editor-aside {
    display: block;
  }
  .writing-surface {
    padding: 1rem;
  }
  .article-editable {
    min-height: 380px;
  }
  .editor-toolbar .small {
    min-height: 38px;
  }
  .table-controls {
    gap: 0.5rem;
    padding: 0.7rem;
  }
  .table-count {
    font-size: 0.72rem;
  }
  .table-search {
    min-width: 130px;
  }
  .table-controls select {
    max-width: 165px;
  }
  .panel.flush {
    border-radius: 8px;
  }
  .section-toolbar {
    padding: 1rem;
    gap: 0.5rem;
  }
  .section-toolbar h2 {
    font-size: 1rem;
  }
  .metric b {
    font-size: 1.4rem;
  }
  .inline-form {
    gap: 0.65rem;
  }
  .inline-form .field {
    min-width: 140px;
  }
  .guide-steps li {
    gap: 1.1rem;
  }
  .guide-steps h2 {
    font-size: 1.2rem;
  }
  button.small,
  .button.small {
    min-height: 36px;
  }
  dialog {
    width: calc(100% - 1rem);
    max-height: 94dvh;
  }
  .dialog-head h2 {
    font-size: 1.1rem;
  }
  .form-actions {
    gap: 0.65rem;
  }
  .notice-inline {
    font-size: 0.86rem;
  }
  .table-wrap {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 2.7rem;
  }
  .public {
    padding-top: 2rem;
  }
  .panel .inline-form {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.outcome-strip {
  display: flex;
  gap: 2.5rem;
  margin: 1.8rem 0 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.3rem;
}
.outcome-strip a {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  color: inherit;
}
.outcome-strip b {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.outcome-strip span {
  font-size: 0.83rem;
  color: var(--muted);
}
#app[aria-busy="true"]::before {
  content: "Đang tải…";
  position: fixed;
  right: 1rem;
  top: 0.5rem;
  z-index: 15;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.75rem;
  color: var(--muted);
}
@media (max-width: 700px) {
  .outcome-strip {
    gap: 1rem;
    justify-content: space-between;
  }
  .outcome-strip a {
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
  }
  .outcome-strip span {
    font-size: 0.73rem;
  }
  .outcome-strip b {
    font-size: 1.25rem;
  }
}
th,
.nav-label {
  color: var(--muted);
}
.public .table-controls,
.public .table-pagination {
  display: none;
}
.price-options {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
p > a:not(.button),
.auth footer a,
.notice-inline a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
