:root {
  color-scheme: light;
  --bg: #f6f2eb;
  --panel: #fffdfa;
  --panel-strong: #ffffff;
  --ink: #1f2523;
  --muted: #6d746f;
  --line: #ddd5ca;
  --teal: #146b63;
  --teal-dark: #0d4c46;
  --coral: #d66f52;
  --amber: #b7791f;
  --green: #4d7a45;
  --mint: #dff0e9;
  --peach: #ffe6dc;
  --gold: #f7e6be;
  --shadow: 0 18px 45px rgba(49, 38, 25, 0.10);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(20, 107, 99, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(214, 111, 82, 0.10), transparent 28%),
    var(--bg);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fffdfa;
  font-weight: 850;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.tool-nav {
  display: grid;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  color: #3d4541;
  font-weight: 720;
  font-size: 14px;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: var(--mint);
  color: var(--teal-dark);
  outline: none;
}

.nav-icon,
.tool-icon,
.file-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.nav-icon {
  width: 18px;
  height: 18px;
}

.document-icon {
  border: 2px solid currentColor;
  border-radius: 3px;
}

.document-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.target-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.target-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.edit-icon::before,
.edit-small-icon::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-35deg);
  top: 7px;
  left: 2px;
}

.stack-icon::before {
  content: "";
  position: absolute;
  inset: 3px 1px;
  border: 2px solid currentColor;
  box-shadow: -4px 4px 0 -1px var(--panel), -4px 4px 0 1px currentColor;
}

.image-icon {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.image-icon::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 3px;
  right: 3px;
  border-radius: 50%;
  background: currentColor;
}

.image-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 10px;
  height: 6px;
  background: currentColor;
  clip-path: polygon(0 100%, 40% 35%, 62% 70%, 78% 48%, 100% 100%);
}

.folder-icon::before,
.folder-small-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 2px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.folder-icon::after,
.folder-small-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 8px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.sidebar-note {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(77, 122, 69, 0.13);
}

.workspace {
  padding: 26px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 6px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-button,
.upgrade-button,
.primary-button,
.ghost-button,
.full-button,
.segment {
  border: 0;
  border-radius: 8px;
  font-weight: 820;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
}

.shield-icon {
  position: relative;
  width: 18px;
  height: 20px;
}

.shield-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--teal);
  border-radius: 8px 8px 10px 10px;
  clip-path: polygon(50% 0, 100% 18%, 88% 78%, 50% 100%, 12% 78%, 0 18%);
}

.upgrade-button {
  height: 42px;
  padding: 0 16px;
  background: var(--ink);
  color: #fffdfa;
}

.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero-copy,
.resume-visual,
.trust-band,
.pricing-band,
.panel,
.tool-card,
.summary-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.92);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 22px;
  min-height: 196px;
}

.hero-copy h2 {
  max-width: 720px;
  margin: 12px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.hero-copy p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.pill,
.panel-tag,
.summary-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--peach);
  color: #873d2c;
  font-size: 12px;
  font-weight: 850;
}

.resume-visual {
  padding: 14px;
  background: #2c3430;
  color: #fffdfa;
  overflow: hidden;
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  padding: 20px;
}

.trust-copy h2,
.beta-form h2 {
  margin: 12px 0 10px;
}

.trust-copy p {
  max-width: 740px;
  color: var(--muted);
  line-height: 1.55;
}

.trust-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.trust-list strong {
  color: var(--ink);
}

.beta-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f3eb;
}

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

.form-status {
  min-height: 18px;
  margin: 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 720;
}

.pricing-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 20px;
}

.pricing-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.pricing-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.pricing-card.featured {
  border-color: rgba(20, 107, 99, 0.42);
  background: #f1faf5;
}

.pricing-card > span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.pricing-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.pricing-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.visual-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.visual-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.visual-toolbar span:nth-child(2) {
  background: var(--gold);
}

.visual-toolbar span:nth-child(3) {
  background: var(--mint);
}

.visual-page {
  position: relative;
  min-height: 168px;
  padding: 20px;
  border-radius: 8px;
  background: #fffdfa;
  color: var(--ink);
}

.visual-name {
  width: 42%;
  height: 18px;
  margin-bottom: 16px;
  background: var(--ink);
  border-radius: 3px;
}

.visual-line,
.visual-section,
.visual-bullets span {
  display: block;
  border-radius: 999px;
  background: #ded6cb;
}

.visual-line {
  width: 62%;
  height: 8px;
  margin-bottom: 8px;
}

.visual-line.wide {
  width: 78%;
}

.visual-section {
  width: 26%;
  height: 10px;
  margin: 18px 0 12px;
  background: var(--teal);
}

.visual-bullets {
  display: grid;
  gap: 9px;
}

.visual-bullets span {
  height: 8px;
}

.visual-bullets span:nth-child(1) {
  width: 92%;
}

.visual-bullets span:nth-child(2) {
  width: 70%;
}

.visual-bullets span:nth-child(3) {
  width: 84%;
}

.visual-score {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  align-content: center;
  border: 8px solid var(--mint);
  border-right-color: var(--coral);
  border-radius: 50%;
}

.visual-score strong {
  font-size: 24px;
}

.visual-score span {
  color: var(--muted);
  font-size: 11px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.primary-column {
  display: grid;
  gap: 18px;
}

.insights-column {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
}

.panel,
.tool-card,
.summary-panel {
  padding: 20px;
}

.panel-header,
.tool-card-head,
.summary-head,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-header {
  margin-bottom: 18px;
}

.panel-tag {
  background: var(--mint);
  color: var(--teal-dark);
  white-space: nowrap;
}

.panel-tag.amber {
  background: var(--gold);
  color: #7a4b12;
}

.panel-tag.green {
  background: #e1f0d8;
  color: #3f6539;
}

.input-grid,
.rewrite-grid,
.pack-form,
.match-grid,
.tool-grid {
  display: grid;
  gap: 14px;
}

.input-grid {
  grid-template-columns: 240px minmax(0, 1fr);
}

.file-drop,
.mini-file {
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed #b7ab9d;
  border-radius: 8px;
  background: #fbf7f0;
  color: var(--muted);
}

.file-drop {
  min-height: 190px;
  padding: 18px;
}

.file-drop input,
.mini-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop strong {
  display: block;
  margin: 12px 0 4px;
  color: var(--ink);
}

.file-icon {
  width: 48px;
  height: 58px;
  border: 2px solid var(--teal);
  border-radius: 6px;
  background: #fff;
}

.file-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 18px;
  height: 3px;
  background: var(--teal);
  box-shadow: 0 10px 0 var(--teal), 0 20px 0 var(--teal);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #39423e;
  font-size: 13px;
  font-weight: 820;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 140px;
  padding: 12px;
  line-height: 1.45;
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 107, 99, 0.12);
}

.action-row {
  justify-content: flex-start;
  margin: 14px 0 18px;
}

.primary-button,
.ghost-button,
.full-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
}

.primary-button {
  background: var(--teal);
  color: #fffdfa;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--teal-dark);
  outline: none;
}

.primary-button.secondary {
  background: var(--coral);
}

.ghost-button {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdfa;
  color: var(--ink);
}

.ghost-button.danger-lite {
  border-color: #e2b8b3;
  color: #8f3f37;
}

.full-button {
  width: 100%;
  margin-top: 14px;
  background: var(--ink);
  color: #fffdfa;
}

.spark-icon,
.target-small-icon,
.edit-small-icon,
.folder-small-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
}

.spark-icon::before,
.spark-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.spark-icon::before {
  left: 7px;
  top: 0;
  width: 2px;
  height: 16px;
}

.spark-icon::after {
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
}

.target-small-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.target-small-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: currentColor;
}

.microcopy {
  color: var(--muted);
  font-size: 13px;
}

.data-console {
  display: grid;
  gap: 14px;
}

.endpoint-field {
  gap: 7px;
}

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

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

.data-grid div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.data-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.data-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.score-result {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: #f7f3ec;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.dimension-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.dimension-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.dimension-grid strong {
  color: var(--teal-dark);
  font-size: 24px;
}

.feedback-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.feedback-box > span {
  color: #39423e;
  font-size: 13px;
  font-weight: 820;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-action {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
}

.feedback-reason input {
  height: 38px;
}

.score-ring {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fffdfa 58%, transparent 60%),
    conic-gradient(var(--teal) calc(var(--score) * 1%), #ded6cb 0);
}

.score-ring strong {
  font-size: 30px;
}

.score-ring span {
  margin-top: -8px;
  color: var(--muted);
  font-size: 12px;
}

.result-list,
.action-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.match-grid {
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr);
}

.metric-card,
.keyword-box,
.rewrite-output,
.pack-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.metric-card {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 132px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  color: var(--coral);
  font-size: 34px;
}

.keyword-box {
  padding: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 720;
}

.chips.missing span {
  background: var(--peach);
  color: #873d2c;
}

.rewrite-grid,
.pack-form {
  grid-template-columns: minmax(160px, 0.4fr) minmax(0, 1fr);
  margin-bottom: 14px;
}

.rewrite-output {
  margin-top: 14px;
  padding: 16px;
}

.rewrite-output span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.rewrite-output p {
  margin: 8px 0 0;
  line-height: 1.55;
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.tool-card-head {
  justify-content: flex-start;
}

.tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal);
}

.compress-icon::before,
.compress-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.compress-icon::before {
  top: 12px;
}

.compress-icon::after {
  bottom: 12px;
}

.image-small-icon::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 8px;
  background: #f1ebe2;
}

.segment {
  min-height: 36px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.segment.active {
  background: #fffdfa;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(49, 38, 25, 0.08);
}

.mini-file {
  min-height: 48px;
  padding: 10px;
  font-weight: 720;
}

.tool-status {
  min-height: 20px;
  font-size: 13px;
}

.compact select {
  height: 42px;
}

.image-preview-wrap {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, #efe7dc 25%, transparent 25%),
    linear-gradient(-45deg, #efe7dc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #efe7dc 75%),
    linear-gradient(-45deg, transparent 75%, #efe7dc 75%),
    #fffdfa;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

canvas {
  display: block;
  width: min(100%, 240px);
  max-height: 170px;
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: 0 12px 26px rgba(49, 38, 25, 0.14);
}

.pack-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pack-list {
  display: grid;
  gap: 0;
  margin-top: 14px;
  overflow: hidden;
}

.pack-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.pack-list div:last-child {
  border-bottom: 0;
}

.pack-list span {
  color: var(--muted);
}

.pack-list strong {
  overflow-wrap: anywhere;
}

.summary-panel {
  box-shadow: none;
}

.summary-head {
  align-items: flex-start;
}

.summary-badge {
  background: var(--gold);
  color: #7a4b12;
}

.summary-score {
  display: grid;
  margin: 18px 0;
  padding: 16px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fffdfa;
}

.summary-score span {
  font-size: 54px;
  line-height: 1;
  font-weight: 900;
}

.summary-score p {
  margin: 4px 0 0;
  color: #dcd6cd;
}

.progress-stack {
  display: grid;
  gap: 12px;
}

.progress-stack div {
  display: grid;
  gap: 6px;
}

.progress-stack span,
.quota-row span {
  color: var(--muted);
  font-size: 13px;
}

meter {
  width: 100%;
  height: 10px;
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: #e6ded4;
}

meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: var(--teal);
}

.action-list {
  padding-left: 22px;
}

.action-list li + li {
  margin-top: 9px;
}

.quota-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.quota-row:last-of-type {
  border-bottom: 0;
}

.privacy-dialog {
  width: min(620px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(31, 37, 35, 0.28);
}

.privacy-dialog::backdrop {
  background: rgba(31, 37, 35, 0.44);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.dialog-body {
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.dialog-body p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

@media (max-width: 1180px) {
  .content-grid,
  .hero-strip,
  .trust-band,
  .pricing-band {
    grid-template-columns: 1fr;
  }

  .insights-column {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tool-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-link {
    justify-content: center;
    min-height: 48px;
    text-align: center;
  }

  .nav-icon,
  .sidebar-note {
    display: none;
  }

  .workspace {
    padding: 16px;
  }

  .topbar,
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .input-grid,
  .match-grid,
  .rewrite-grid,
  .pack-form,
  .dimension-grid,
  .form-grid,
  .pricing-cards,
  .tool-grid,
  .insights-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .tool-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 30px;
  }

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

  .score-result {
    grid-template-columns: 1fr;
  }

  .score-ring {
    margin: 0 auto;
  }

  .pack-list div {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    width: 100%;
  }

  .upgrade-button {
    flex: 1;
  }
}
