﻿@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Manrope:wght@400;600;700&display=swap');

:root {
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --sand: #f6efe6;
  --sand-2: #f1e6d6;
  --sky: #cfe3f4;
  --sky-2: #9cc2e3;
  --accent: #2f6f95;
  --line: #e5dccf;
  --card: #fffaf2;
  --shadow: 0 20px 40px rgba(31, 41, 55, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 20% -10%, #ffffff 0%, var(--sand) 45%, var(--sand-2) 100%);
  font-family: "Manrope", sans-serif;
}

h1, h2, h3 {
  font-family: "Fraunces", serif;
  margin: 0 0 0.6rem 0;
  letter-spacing: 0.2px;
}

a { color: var(--accent); text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.brand {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 20px;
}

.nav-links a { margin-left: 16px; font-weight: 600; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
}

.hero-card {
  background: linear-gradient(135deg, var(--card), #ffffff 60%, var(--sky));
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--sky);
  border-radius: 999px;
  font-weight: 600;
  color: #164e63;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 16px rgba(31, 41, 55, 0.05);
}

.catalog-project-card {
  display: grid;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.catalog-project-card:hover,
.catalog-project-card:focus-visible {
  border-color: var(--sky-2);
  box-shadow: 0 14px 24px rgba(31, 41, 55, 0.08);
  transform: translateY(-1px);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.55;
  cursor: default;
}

.btn.is-disabled {
  pointer-events: none;
}

.card h3 { margin-bottom: 6px; }

.author-preview-text,
.public-profile-text {
  white-space: pre-wrap;
}

.author-preview-text p,
.author-preview-text ul,
.author-preview-text ol,
.public-profile-text p,
.public-profile-text ul,
.public-profile-text ol {
  margin: 0 0 0.75em;
}

.author-preview-text p:last-child,
.author-preview-text ul:last-child,
.author-preview-text ol:last-child,
.public-profile-text p:last-child,
.public-profile-text ul:last-child,
.public-profile-text ol:last-child {
  margin-bottom: 0;
}

.public-profile-text [data-profile-link-store="1"] {
  display: none;
}

.public-profile-text a[data-profile-link-type="popup"] {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.profile-rich-wrap {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.profile-rich-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf7;
}

.profile-rich-toolbar--inline {
  padding: 8px;
  gap: 6px;
}

.profile-rich-toolbar .profile-rich-btn {
  padding: 8px 12px;
}

.profile-rich-font-select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 34px 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.profile-rich-font-select:hover,
.profile-rich-font-select:focus {
  border-color: var(--accent);
}

.profile-rich-font-select[data-has-value="1"] {
  font-weight: 600;
}

.profile-rich-select-control {
  display: grid;
  gap: 4px;
  min-width: 148px;
  position: relative;
}

.profile-rich-select-control::after {
  content: '▾';
  position: absolute;
  right: 12px;
  bottom: 11px;
  color: var(--ink-soft);
  font-size: 12px;
  pointer-events: none;
}

.profile-rich-select-label {
  font-size: 12px;
  color: var(--ink-soft);
  padding-left: 2px;
}

.profile-rich-font-size-select {
  min-width: 108px;
}

.profile-rich-editor,
.profile-rich-inline-editor {
  width: 100%;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow: auto;
  resize: vertical;
}

.profile-rich-editor:focus,
.profile-rich-inline-editor:focus {
  outline: 2px solid rgba(47, 111, 149, 0.18);
  outline-offset: 2px;
}

.profile-rich-inline {
  display: grid;
  gap: 10px;
}

.profile-rich-inline--compact .profile-rich-inline-editor {
  min-height: 120px;
}

.profile-rich-inline-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--ink-soft);
  opacity: 0.7;
}

.profile-rich-links-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffef9 0%, #f8f4ec 100%);
}

.profile-rich-links-header {
  display: grid;
  gap: 6px;
}

.profile-rich-links-list {
  display: grid;
  gap: 12px;
}

.profile-rich-links-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-rich-links-empty {
  margin: 0;
}

.profile-rich-link-card {
  display: grid;
  gap: 10px;
}

.profile-rich-link-card__top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-rich-link-card [data-link-preview] {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-soft);
}

.profile-rich-link-card [data-link-warning]:empty {
  display: none;
}

.profile-rich-link-card [data-link-external-box][hidden],
.profile-rich-link-card [data-link-popup-box][hidden] {
  display: none;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border: none;
}

.btn.secondary { background: #dbeaf5; color: #1f3b55; }

.section {
  margin-top: 38px;
}

.tree {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.tree ul { list-style: none; padding-left: 18px; }

.tree li { margin: 6px 0; }

.node {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.node .meta {
  color: var(--ink-soft);
  font-size: 12px;
  margin-left: auto;
  white-space: nowrap;
}

.node.disabled { opacity: 0.45; }

.tree-item { list-style: none; }

.tree-item.collapsed + ul { display: none; }
.tree-item.expanded + ul { display: block; }

.node-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fffaf4;
  border: 1px solid #efe2d2;
}

.folder-toggle {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #d8c9b6;
  background: #fff7ec;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.folder-toggle.disabled {
  opacity: 0.4;
  cursor: default;
}

.folder-toggle-spacer {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.tree-item.dragging .node-row {
  opacity: 0.6;
  background: #e9f2fb;
}

.tree-item.blocked .node-row {
  opacity: 0.5;
}

.drag-handle {
  cursor: grab;
  color: #9aa7b2;
  font-weight: 700;
}

.node-title {
  min-width: 260px;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-desc-link {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}

.node-desc-link:hover { color: var(--accent); }
.node-desc-link:disabled { opacity: 0.55; cursor: default; text-decoration: none; }

.node input[type="checkbox"] {
  width: auto;
  height: auto;
  padding: 0;
  margin: 0 2px 0 0;
  flex: 0 0 auto;
}

.node-row input[type="number"] { width: 90px; }
.node-row select { width: 140px; }

.type-label {
  min-width: 70px;
  text-transform: lowercase;
}

.tree-action-btn {
  min-width: 34px;
  padding: 6px 8px;
  line-height: 1;
}

.tree-action-btn.danger {
  background: #f7dcd9;
  color: #7b1d15;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 72px;
  white-space: nowrap;
}

.toggle input {
  width: 14px;
  height: 14px;
}

.toggle { font-size: 12px; color: var(--ink-soft); }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal.open { display: flex; }

.modal-card {
  background: #fffdf7;
  border-radius: 16px;
  padding: 18px;
  width: 420px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.desc-card {
  width: min(860px, 92vw);
  max-width: 92vw;
  min-width: min(420px, 92vw);
  max-height: 92vh;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  resize: both;
  overflow: hidden;
}
.desc-card.desc-max {
  width: 92vw;
  height: 92vh;
  max-height: 92vh;
  resize: none;
}

.desc-size-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--line);
  background: #fffdf9;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.desc-size-toggle:hover { color: var(--ink); }

.desc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.desc-tool {
  border: 1px solid var(--line);
  background: #fffdf9;
  color: var(--ink);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.desc-tool:hover { background: #f3f6f9; }

.desc-tool-sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 4px;
}

.desc-editor {
  min-height: 0;
  max-height: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 260px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.desc-editor:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 111, 149, 0.18);
}

.desc-content {
  min-height: 0;
  max-height: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 120px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.desc-content .desc-tree-list {
  list-style: none;
  padding-left: 16px;
  margin: 0;
}

.desc-content .desc-tree-node { margin: 8px 0; }

.desc-content .desc-tree-title {
  font-weight: 700;
  color: var(--ink);
  margin: 10px 0 4px 0;
}

.desc-content .desc-tree-html {
  border-left: 2px solid var(--line);
  padding-left: 10px;
  margin: 0 0 8px 0;
}

.desc-content .desc-tree-html-root { margin-bottom: 10px; }

.desc-content ul,
.desc-content ol,
.desc-editor ul,
.desc-editor ol {
  padding-left: 20px;
  margin: 6px 0;
}

.desc-content p,
.desc-content div,
.desc-editor p,
.desc-editor div {
  margin: 0 0 8px 0;
}

.desc-content li,
.desc-editor li {
  margin: 4px 0;
}

.progress-card {
  width: min(560px, 92vw);
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #ece5da;
  border: 1px solid #ddcfbe;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59a54 0%, #e76f51 100%);
  transition: width 0.25s ease;
}

.progress-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fffdf9;
  font-family: "Manrope", sans-serif;
}

label { font-weight: 600; font-size: 13px; color: var(--ink-soft); }

.footer {
  margin-top: 60px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6fd;
  color: #1f4a67;
  font-size: 12px;
}

.notice {
  background: #f7f2ea;
  border: 1px dashed var(--line);
  padding: 12px;
  border-radius: 10px;
  color: var(--ink-soft);
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-label {
  min-width: 180px;
}

.file-btn {
  cursor: pointer;
}

.file-btn input {
  display: none;
}

.publish-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff2dd;
  margin-top: 8px;
}

.publish-box input[type="checkbox"] {
  transform: scale(2);
  margin-right: 6px;
}

.publish-text {
  font-weight: 700;
}

.publish-sub {
  color: var(--ink-soft);
  font-size: 13px;
}

.period-list {
  display: grid;
  gap: 8px;
}

.period-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fffdf7;
}

.period-meta {
  color: var(--ink-soft);
  font-size: 12px;
}

.period-remove {
  background: #f4d6d3;
  color: #6b1f17;
}

.term-box {
  margin-top: 8px;
}

.term-box .meta {
  margin-top: 6px;
}

.image-usage-card {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffdf7;
}

.image-usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.usage-meter {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #ece5da;
  border: 1px solid #ddcfbe;
  overflow: hidden;
}

.usage-meter-bar {
  height: 100%;
  background: linear-gradient(90deg, #7ab4d7 0%, #2f6f95 100%);
}

.logo-placement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.logo-placement-option {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf7;
  cursor: pointer;
}

.logo-placement-option input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.logo-placement-preview {
  position: relative;
  height: 78px;
  border-radius: 12px;
  border: 1px dashed #c8b9a7;
  background: linear-gradient(135deg, #fffef9 0%, #f2eadf 100%);
}

.logo-placement-dot {
  position: absolute;
  width: 42px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f6f95 0%, #7ab4d7 100%);
  box-shadow: 0 8px 18px rgba(47, 111, 149, 0.18);
}

.logo-placement-preview--top-left .logo-placement-dot {
  top: 10px;
  left: 10px;
}

.logo-placement-preview--top-center .logo-placement-dot {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.logo-placement-preview--top-right .logo-placement-dot {
  top: 10px;
  right: 10px;
}

.logo-placement-preview--top-wide .logo-placement-dot {
  top: 10px;
  left: 10px;
  right: 10px;
  width: auto;
  height: 22px;
  border-radius: 10px;
}

.logo-placement-label {
  font-weight: 700;
  color: var(--ink);
}

.image-current-logo {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffef9 0%, #f4ece1 100%);
}

.image-current-logo img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.image-library {
  display: grid;
  gap: 14px;
}

.service-image-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
}

.service-image-thumb {
  min-height: 120px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffef9 0%, #f1e7d9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image-thumb img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  display: block;
}

.service-image-body {
  display: grid;
  gap: 10px;
}

.service-image-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.service-image-url-input {
  font-size: 13px;
}

.service-image-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.service-image-actions form {
  margin: 0;
}

.service-image-delete {
  background: #f7dcd9;
  color: #7b1d15;
}

.author-logo-stage {
  margin-top: 10px;
}

.author-logo-stage--top-left {
  display: flex;
  justify-content: flex-start;
}

.author-logo-stage--top-center {
  display: flex;
  justify-content: center;
}

.author-logo-stage--top-right {
  display: flex;
  justify-content: flex-end;
}

.author-logo-stage--top-wide {
  display: block;
}

.author-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.96) 0%, rgba(207, 227, 244, 0.88) 100%);
  box-shadow: var(--shadow);
}

.author-logo-frame--wide {
  display: flex;
  width: 100%;
  min-height: 140px;
  padding: 18px 22px;
}

.author-logo-image {
  display: block;
  max-width: min(320px, 100%);
  max-height: 90px;
  object-fit: contain;
}

.author-logo-image--wide {
  max-width: 100%;
  max-height: 180px;
  width: 100%;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .service-image-card { grid-template-columns: 1fr; }
  .service-image-thumb img { max-height: 160px; }
  .author-logo-frame,
  .author-logo-frame--wide {
    width: 100%;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.section-sub {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

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

.author-preview-wrap {
  position: relative;
  overflow: hidden;
  line-height: 1.65;
}

.author-preview-wrap > :first-child {
  margin-top: 0;
}

.author-preview-wrap > :last-child {
  margin-bottom: 0;
}

.author-preview-wrap.is-collapsed {
  max-height: calc(1.65em * 4);
}

.author-preview-wrap.is-collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0) 0%, rgba(255, 250, 242, 0.98) 100%);
}

.catalog-author-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
}

.catalog-toggle-btn {
  min-width: 130px;
}

.pricing-section {
  margin-bottom: 8px;
}

.pricing-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

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

.pricing-card {
  display: flex;
  min-height: 100%;
}

.pricing-card--equal {
  min-height: 100%;
}

.pricing-card__content {
  display: grid;
  gap: 18px;
  width: 100%;
  min-height: 100%;
  align-content: start;
}

.pricing-card-head p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.pricing-card-head h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 29px;
  line-height: 1.1;
}

.pricing-card-head--centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 250px;
}

.pricing-card-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.pricing-grid {
  display: grid;
  gap: 10px;
}

.pricing-grid-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffef9 0%, #eef5fb 100%);
  border: 1px solid #e4d8c7;
}

.pricing-grid-row strong {
  white-space: nowrap;
  font-family: "Fraunces", serif;
  font-size: 22px;
  line-height: 1;
}

.pricing-grid-row__prices {
  display: inline-grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
}

.pricing-old-price {
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: 13px;
}

.gift-code-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.gift-code-row input {
  flex: 1 1 280px;
}

.order-total-card {
  display: grid;
  gap: 8px;
}

.order-total-card__base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
}

.author-balance-card {
  margin-bottom: 22px;
}

.author-balance-card__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.author-balance-card__sum {
  font-family: "Fraunces", serif;
  font-size: 30px;
  line-height: 1;
}

.author-balance-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.service-price-fold {
  margin-bottom: 22px;
}

.service-price-fold > summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.service-price-fold > summary::-webkit-details-marker {
  display: none;
}

.service-price-fold__body {
  margin-top: 14px;
}

.service-page {
  display: grid;
  gap: 18px;
}

.service-page__hero {
  padding: 26px;
}

.service-page__hero h1,
.service-block > h2 {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #e4d8c7;
  background: linear-gradient(135deg, #fffef9 0%, #eef5fb 100%);
  box-shadow: 0 12px 30px rgba(44, 82, 122, 0.08);
}

.service-page__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-page__lead {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.service-page__hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.08;
}

.service-page__content {
  display: grid;
  gap: 16px;
}

.service-block {
  display: grid;
  gap: 14px;
}

.service-block > h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
}

.service-block p,
.service-block li,
.service-block blockquote {
  line-height: 1.7;
}

.service-block ul {
  margin: 0;
  padding-left: 22px;
}

.service-block blockquote {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(207, 227, 244, 0.35);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.service-summary-list {
  margin: 0;
  padding-left: 22px;
}

.service-pricing-block {
  display: grid;
  gap: 18px;
}

.service-pricing-block__intro,
.service-pricing-block__footer {
  display: grid;
  gap: 8px;
}

.service-pricing-block__intro h2,
.service-pricing-block__footer h3 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.service-page__footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.students-page,
.student-shell {
  display: grid;
  gap: 18px;
}

.students-page__hero,
.student-subjects-hero,
.student-profile-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.students-page__hero-actions,
.students-password-row,
.students-picker__row,
.students-stats-row,
.student-stats-grid,
.student-subjects-grid {
  display: flex;
  gap: 12px;
}

.students-page__grid,
.student-stats-grid,
.student-subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.students-dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.students-dialog::backdrop {
  background: rgba(31, 41, 55, 0.45);
  backdrop-filter: blur(4px);
}

.students-dialog__window {
  width: min(760px, calc(100vw - 32px));
  margin: 6vh auto;
}

.students-dialog__head,
.students-assignment summary,
.students-assignment--plain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.students-list,
.students-assignments {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.students-list__item,
.student-subject-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffdf9;
  color: var(--ink);
}

.students-list__item.is-active {
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(47, 111, 149, 0.12);
}

.students-checkbox {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  cursor: pointer;
}

.students-assignment {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  padding: 14px 16px;
}

.students-assignment summary {
  list-style: none;
  cursor: pointer;
}

.students-assignment summary::-webkit-details-marker {
  display: none;
}

.students-assignment__body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.student-profile-card {
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(207, 227, 244, 0.85));
}

.student-profile-card__teacher {
  font-family: "Fraunces", serif;
  font-size: 24px;
}

.student-stat-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.student-stat-row:first-of-type {
  border-top: 0;
}

.student-subject-card {
  min-height: 180px;
  align-content: start;
  box-shadow: var(--shadow);
}

.student-subject-card--math {
  background: linear-gradient(145deg, #fffaf2, #dcecf8);
}

.student-subject-card--disabled {
  opacity: 0.6;
}

.student-subject-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .author-balance-card__head {
    flex-direction: column;
  }

  .section-head {
    align-items: start;
  }

  .pricing-layout--equal {
    grid-template-columns: 1fr;
  }

  .students-page__hero,
  .student-subjects-hero,
  .student-profile-card,
  .students-dialog__head,
  .students-assignment summary,
  .students-assignment--plain {
    flex-direction: column;
    align-items: stretch;
  }
}
