@import "https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=DM+Sans:wght@400;500;700&display=swap";

/* src/web/style.css */
:root {
  --bg: #f6f8fb;
  --panel: #fff;
  --border: #e3e8ef;
  --text: #1a2b42;
  --muted: #6b7a90;
  --brand: #0061d5;
  --brand-fg: #fff;
  --hover: #eef3fb;
  --danger: #d64545;
  --ok-bg: #e7f5ea;
  --ok-fg: #1b6b37;
  --ok-border: #b7e2c4;
  --err-bg: #fde9e9;
  --err-fg: #d64545;
  --err-border: #f5c6c6;
  --accent-bg: #eaf2fc;
  --shadow: 0 1px 2px #1018280a, 0 1px 3px #10182814;
  --radius: 8px;
  --buncss-light: initial;
  --buncss-dark: ;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --panel: #151c2c;
  --border: #273348;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --brand: #3b82f6;
  --brand-fg: #fff;
  --hover: #1d2840;
  --danger: #f87171;
  --ok-bg: #1b6b372e;
  --ok-fg: #86efac;
  --ok-border: #1b6b3773;
  --err-bg: #ef444426;
  --err-fg: #fca5a5;
  --err-border: #ef444466;
  --accent-bg: #3b82f61f;
  --shadow: 0 1px 2px #00000059, 0 2px 8px #00000080;
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html, body, #app {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
}

button {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  padding: 8px 14px;
  transition: background .15s, border-color .15s;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

button:hover {
  background: var(--hover);
}

button svg {
  flex-shrink: 0;
}

button {
  display: inline-flex;
  align-items:  center;
  gap: 6px;
}

.inline-icon {
  display: inline-flex;
  vertical-align: middle;
  color: var(--muted);
  margin-right: 6px;
}

button.primary {
  background: var(--brand);
  color: var(--brand-fg);
  border-color: var(--brand);
}

button.primary:hover {
  filter: brightness(.9);
}

button.danger {
  color: var(--danger);
}

button.danger:hover {
  background: var(--err-bg);
  border-color: var(--err-border);
}

input, textarea {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  outline: none;
  border-radius: 6px;
  width: 100%;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}

input:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.auth {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 380px;
  margin: 80px auto;
  padding: 36px;
}

.auth h1 {
  color: var(--brand);
  margin: 0 0 8px;
  font-size: 26px;
}

.auth-logo {
  display: block;
  width: auto;
  height: 72px;
  margin: 0 auto 16px;
}

.auth h2 {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 500;
}

.auth input {
  margin-bottom: 12px;
}

.auth button {
  width: 100%;
  margin-top: 8px;
}

.auth .toggle {
  text-align: center;
  color: var(--brand);
  cursor: pointer;
  margin-top: 20px;
  font-size: 13px;
}

.auth .error {
  background: var(--err-bg);
  color: var(--err-fg);
  border: 1px solid var(--err-border);
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 10px;
  font-size: 13px;
}

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
}

.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
}

.brand {
  color: var(--brand);
  display: flex;
  align-items:  center;
  margin-bottom: 16px;
  padding: 4px;
  font-size: 20px;
  font-weight: 700;
}

.brand img {
  display: block;
  width: auto;
  height: 36px;
}

.nav {
  color: var(--text);
  cursor: pointer;
  display: flex;
  border-radius: 6px;
  align-items:  center;
  gap: 10px;
  padding: 8px 10px;
  font-weight: 500;
}

.nav svg {
  color: var(--muted);
  flex-shrink: 0;
}

.nav:hover {
  background: var(--hover);
}

.nav.active {
  background: var(--brand);
  color: var(--brand-fg);
}

.nav.active svg {
  color: var(--brand-fg);
}

.user-footer {
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding: 12px 10px;
}

.user-footer .who {
  color: var(--muted);
  font-size: 12px;
}

.user-footer .logout {
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
}

.main {
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

.toolbar {
  display: flex;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  align-items:  center;
  gap: 10px;
  padding: 14px 20px;
}

.toolbar .crumbs {
  display: flex;
  color: var(--muted);
  flex: 1;
  align-items:  center;
  gap: 6px;
  font-size: 14px;
}

.toolbar .crumbs span.crumb {
  cursor: pointer;
}

.toolbar .crumbs span.crumb:hover {
  color: var(--brand);
}

.toolbar .crumbs .sep {
  color: var(--border);
  display: inline-flex;
  align-items:  center;
}

.toolbar .crumbs .current {
  color: var(--text);
  font-weight: 500;
}

.toolbar .search {
  width: 280px;
}

.content {
  overflow: auto;
  flex: 1;
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
  padding: 16px;
  transition: transform .1s, box-shadow .15s;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #1018281a;
}

.card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand), 0 4px 12px color-mix(in srgb, var(--brand) 20%, transparent);
}

.card .check {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  padding: 4px;
  transition: opacity .15s;
  top: 8px;
  right: 8px;
}

.card:hover .check, .card .check.on {
  opacity: 1;
}

.card .check-box {
  border: 1.5px solid var(--border);
  background: var(--panel);
  display: flex;
  border-radius: 4px;
  justify-content: center;
  align-items:  center;
  width: 18px;
  height: 18px;
}

.card .check.on .check-box {
  background: var(--brand);
  border-color: var(--brand);
  position: relative;
}

.card .check.on .check-box:after {
  content: "";
  border: solid var(--brand-fg);
  border-width: 0 2px 2px 0;
  width: 5px;
  height: 9px;
  margin-top: -2px;
  transform: rotate(45deg);
}

.card.image-card {
  overflow: hidden;
  padding: 0;
}

.card.image-card .icon, .card.image-card .thumb {
  margin: 0;
}

.card.image-card .thumb {
  aspect-ratio: 1.6;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items:  center;
  width: 100%;
}

.card.image-card .thumb img {
  object-fit: cover;
  display: block;
  width: 100%;
  height: 100%;
}

.card.image-card .name, .card.image-card .meta, .card.image-card .row {
  padding-left: 14px;
  padding-right: 14px;
}

.card.image-card .name {
  padding-top: 10px;
}

.card.image-card .row {
  padding-bottom: 12px;
}

.thumb-skeleton {
  background: linear-gradient(90deg, var(--bg) 0%, var(--hover) 50%, var(--bg) 100%);
  animation: shimmer 1.4s infinite;
  background-size: 200% 100%;
  width: 100%;
  height: 100%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.thumb-fallback {
  color: var(--muted);
}

.selbar {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  position: sticky;
  z-index: 3;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 16px;
  padding: 10px 16px;
  top: 0;
}

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

.picker-crumbs {
  display: flex;
  color: var(--muted);
  flex-wrap: wrap;
  align-items:  center;
  gap: 6px;
  padding: 8px 0 10px;
  font-size: 13px;
}

.picker-crumbs .crumb {
  cursor: pointer;
}

.picker-crumbs .crumb:hover {
  color: var(--brand);
}

.picker-crumbs .current {
  color: var(--text);
  font-weight: 500;
}

.picker-crumbs .sep {
  display: inline-flex;
  color: var(--border);
  align-items:  center;
}

.picker-list {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  max-height: 320px;
  padding: 6px;
}

.picker-row {
  display: flex;
  cursor: pointer;
  color: var(--text);
  border-radius: 6px;
  align-items:  center;
  gap: 10px;
  padding: 8px 10px;
}

.picker-row:hover:not(.disabled) {
  background: var(--hover);
}

.picker-row.disabled {
  opacity: .4;
  cursor: not-allowed;
}

.picker-empty {
  text-align: center;
  color: var(--muted);
  padding: 20px;
  font-size: 13px;
}

.card .icon {
  color: var(--brand);
  display: flex;
  align-items:  center;
  margin-bottom: 10px;
}

.card .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.card .meta {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.card .row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.card .row button {
  padding: 4px 8px;
  font-size: 12px;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 80px 20px;
}

.empty .big {
  display: inline-flex;
  color: var(--border);
  justify-content: center;
  align-items:  center;
  margin-bottom: 14px;
}

.dropzone {
  border: 2px dashed var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  margin-bottom: 20px;
  padding: 24px;
  transition: border-color .15s, background .15s;
}

.dropzone.over {
  border-color: var(--brand);
  background: var(--accent-bg);
  color: var(--brand);
}

.modal-backdrop {
  position: fixed;
  display: flex;
  z-index: 10;
  background: #10182880;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.modal {
  background: var(--panel);
  border-radius: var(--radius);
  width: 420px;
  max-width: 90vw;
  padding: 24px;
  box-shadow: 0 8px 24px #10182833;
}

.modal h3 {
  margin-top: 0;
}

.modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.share-link {
  background: var(--bg);
  border: 1px solid var(--border);
  word-break: break-all;
  border-radius: 6px;
  margin: 10px 0;
  padding: 10px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.shares-table {
  border-collapse: collapse;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  width: 100%;
}

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

.shares-table th {
  background: var(--bg);
  color: var(--muted);
  font-weight: 600;
}

.shares-table tr:last-child td {
  border-bottom: none;
}

.versions {
  display: flex;
  overflow: auto;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  margin-top: 8px;
}

.version-row {
  display: flex;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 6px;
  justify-content: space-between;
  align-items:  center;
  padding: 12px 14px;
}

.version-row.current {
  border-color: var(--brand);
  background: var(--accent-bg);
}

.version-title {
  display: flex;
  align-items:  center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

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

.version-actions {
  display: flex;
  gap: 6px;
}

.version-actions button {
  padding: 4px 10px;
  font-size: 12px;
}

.chip {
  background: var(--brand);
  color: var(--brand-fg);
  letter-spacing: .3px;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
}

.badge {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-fg);
  vertical-align: middle;
  border-radius: 10px;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
}

.settings {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 620px;
}

.settings-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.settings-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

.settings-card label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 600;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.msg {
  border-radius: 6px;
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.msg.ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
  border: 1px solid var(--ok-border);
}

.msg.err {
  background: var(--err-bg);
  color: var(--err-fg);
  border: 1px solid var(--err-border);
}

.danger-zone {
  border-color: var(--err-border);
}

.admin-tabs {
  display: inline-flex;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  border-radius: 6px;
  gap: 0;
  margin-bottom: 8px;
}

.admin-tabs button {
  color: var(--muted);
  border: none;
  border-right: 1px solid var(--border);
  background: none;
  border-radius: 0;
  padding: 8px 14px;
  font-size: 13px;
}

.admin-tabs button:last-child {
  border-right: none;
}

.admin-tabs button.active {
  background: var(--panel);
  color: var(--brand);
  font-weight: 600;
}

.admin-tabs button:hover:not(.active) {
  background: var(--hover);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.admin-row {
  display: flex;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  align-items:  flex-start;
  gap: 16px;
  padding: 14px 16px;
}

.admin-row-main {
  flex: 1;
  min-width: 0;
}

.admin-row-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}

.admin-row-name {
  color: var(--muted);
}

.admin-row-when {
  color: var(--muted);
  margin-left: auto;
  font-size: 12px;
}

.admin-row-reason {
  color: var(--muted);
  white-space: pre-wrap;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.admin-row-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.admin-row-actions button {
  padding: 6px 12px;
  font-size: 12px;
}

.admin-sections {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
}

.admin-sections button {
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}

.admin-sections button.active {
  background: var(--brand);
  color: var(--brand-fg);
}

.admin-sections button:hover:not(.active) {
  background: var(--hover);
  color: var(--text);
}

.admin-count {
  color: var(--muted);
  margin-left: 8px;
  font-size: 13px;
  font-weight: 400;
}

.admin-pill {
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
}

.admin-pill-owner {
  background: var(--accent-bg);
  color: var(--brand);
  border-color: #0000;
}

.admin-pill-used {
  background: var(--ok-bg);
  color: var(--ok-fg);
  border-color: var(--ok-border);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.admin-stat {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  padding: 16px;
}

.admin-stat-value {
  letter-spacing: -.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 600;
}

.admin-stat-label {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.sub-current {
  margin-top: 4px;
}

.sub-tier-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

.sub-tier {
  letter-spacing: -.01em;
  font-size: 22px;
  font-weight: 600;
}

.sub-status {
  color: var(--muted);
  text-transform: capitalize;
  margin-top: 2px;
  font-size: 12px;
}

.sub-usage-text {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

.sub-bar {
  background: var(--bg);
  overflow: hidden;
  border-radius: 3px;
  height: 6px;
}

.sub-fill {
  background: var(--brand);
  height: 100%;
  transition: width .3s;
}

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

.sub-upgrade-grid button {
  display: flex;
  text-align: left;
  flex-direction: column;
  align-items:  flex-start;
  padding: 12px 16px;
}

.sub-up-tier {
  font-size: 14px;
  font-weight: 600;
}

.sub-up-meta {
  opacity: .7;
  margin-top: 2px;
  font-size: 11px;
}

.plan-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 10px;
  padding: 16px;
}

.plan-head {
  margin-bottom: 12px;
}

.plan-name {
  letter-spacing: -.01em;
  font-size: 16px;
  font-weight: 600;
}

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

.plan-periods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.plan-period {
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  border-radius: 8px;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.plan-period.ok {
  border-color: var(--ok-border);
  background: var(--ok-bg);
}

.plan-period.missing {
  border-style: dashed;
}

.plan-period-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.plan-period-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.plan-period-status {
  font-size: 11px;
  font-weight: 500;
}

.plan-period-status.ok {
  color: var(--ok-fg);
}

.plan-period-status.missing {
  color: var(--muted);
}

.plan-price {
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 600;
}

.plan-period input {
  padding: 6px 9px;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 12px;
}

.autosetup-card {
  background: linear-gradient(180deg, var(--accent-bg), var(--panel));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  display: flex;
  border-radius: 10px;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.autosetup-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.autosetup-title {
  font-size: 15px;
  font-weight: 600;
}

.autosetup-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.autosetup-result {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  border-radius: 10px;
  padding: 16px;
}

.autosetup-check {
  background: var(--ok-fg);
  color: var(--panel);
  display: inline-flex;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  font-weight: 700;
}

.autosetup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.autosetup-tier {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}

.autosetup-tier.ok {
  border-color: var(--ok-border);
}

.autosetup-tier.warn {
  background: var(--err-bg);
  border-color: var(--err-border);
}

.autosetup-tier-name {
  text-transform: capitalize;
  font-size: 13px;
  font-weight: 600;
}

.autosetup-tier-status {
  color: var(--muted);
  margin-top: 2px;
  font-size: 11px;
}

.autosetup-tier-periods {
  display: flex;
  font-variant-numeric: tabular-nums;
  gap: 10px;
  margin-top: 6px;
  font-size: 11px;
}

.autosetup-tier-periods .yes {
  color: var(--ok-fg);
  font-weight: 600;
}

.autosetup-tier-periods .no {
  color: var(--muted);
}

.dev-config {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
  padding: 12px;
}

.dev-config-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}

.dev-config-row > span:first-child {
  color: var(--muted);
  flex-shrink: 0;
  width: 80px;
  font-weight: 500;
}

.dev-config-row code {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 12px;
}

.dev-config-note {
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
}

.dev-create {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 12px;
  padding: 14px;
}

.dev-secret {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.dev-secret label {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
}

.dev-secret-row {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.dev-secret-row code {
  background: var(--panel);
  border: 1px solid var(--border);
  word-break: break-all;
  border-radius: 4px;
  flex: 1;
  padding: 8px 10px;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 12px;
}

.dev-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.dev-row {
  display: flex;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  align-items:  center;
  gap: 12px;
  padding: 12px;
}

.dev-row-main {
  flex: 1;
  min-width: 0;
}

.dev-row-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.dev-row-line code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 12px;
}

.dev-row-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.dev-row-meta {
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
}

.dev-row-desc {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.dev-section {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 18px;
}

.dev-section:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.dev-section h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.dev-section-desc {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 13px;
}

.dev-empty {
  color: var(--muted);
  margin-top: 16px;
  font-size: 13px;
}

.mode-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  gap: 2px;
  padding: 3px;
}

.mode-toggle button {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
}

.mode-toggle button.active {
  background: var(--text);
  color: var(--panel);
}

.mode-toggle button:not(.active):hover {
  color: var(--text);
}

.theme-group {
  display: inline-flex;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  border-radius: 6px;
  gap: 0;
  margin-top: 4px;
}

.theme-group button {
  color: var(--muted);
  border: none;
  border-right: 1px solid var(--border);
  background: none;
  border-radius: 0;
  padding: 8px 14px;
  font-size: 13px;
}

.theme-group button:last-child {
  border-right: none;
}

.theme-group button.active {
  background: var(--panel);
  color: var(--brand);
  font-weight: 600;
}

.theme-group button:hover:not(.active) {
  background: var(--hover);
}

.danger-zone h3 {
  color: var(--danger);
}

.danger-desc {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 13px;
}

.preview-backdrop {
  position: fixed;
  display: flex;
  z-index: 20;
  background: #101828bf;
  justify-content: center;
  align-items:  center;
  padding: 24px;
  inset: 0;
}

.preview {
  background: var(--panel);
  border-radius: var(--radius);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  width: min(1100px, 100%);
  height: min(800px, 100vh - 48px);
  box-shadow: 0 20px 40px #0000004d;
}

.preview-head {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  padding: 14px 20px;
}

.preview-title {
  display: flex;
  align-items:  center;
  gap: 12px;
  min-width: 0;
}

.preview-icon {
  display: inline-flex;
  color: var(--brand);
  align-items:  center;
}

.preview-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
  font-size: 15px;
  font-weight: 600;
}

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

.preview-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.preview-body {
  overflow: auto;
  display: flex;
  background: #0f172a;
  flex: 1;
  justify-content: center;
  align-items:  center;
  min-height: 0;
  padding: 0;
}

.preview-body img {
  object-fit: contain;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.preview-body video {
  outline: none;
  max-width: 100%;
  max-height: 100%;
}

.preview-body iframe {
  background: #fff;
  border: none;
  width: 100%;
  height: 100%;
}

.preview-audio {
  background: var(--panel);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items:  center;
  gap: 16px;
  padding: 40px;
}

.preview-audio-icon {
  color: var(--brand);
  display: inline-flex;
}

.preview-audio audio {
  width: 380px;
}

.preview-text {
  background: var(--panel);
  color: var(--text);
  overflow: auto;
  white-space: pre;
  tab-size: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 20px;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.preview-empty {
  color: #cbd5e1;
  text-align: center;
  padding: 60px 20px;
  font-size: 14px;
}

.preview-empty-icon {
  color: #94a3b8;
  display: inline-flex;
  margin-bottom: 14px;
}

.upload-panel {
  position: fixed;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 30;
  overflow: hidden;
  width: 340px;
  max-width: calc(100vw - 32px);
  bottom: 16px;
  right: 16px;
  box-shadow: 0 8px 24px #1018282e;
}

.upload-panel-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  justify-content: space-between;
  align-items:  center;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

.upload-panel-header button {
  padding: 3px 8px;
  font-size: 11px;
}

.upload-list {
  overflow: auto;
  max-height: 50vh;
}

.upload-item {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 10px 32px 10px 12px;
}

.upload-item:last-child {
  border-bottom: none;
}

.upload-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.upload-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.upload-meta {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  font-size: 11px;
}

.upload-bar {
  background: var(--bg);
  overflow: hidden;
  border-radius: 2px;
  height: 3px;
  margin-top: 6px;
}

.upload-fill {
  background: var(--brand);
  height: 100%;
  transition: width .15s ease-out;
}

.upload-item.done .upload-fill {
  background: var(--ok-fg);
}

.upload-item.error .upload-fill {
  background: var(--danger);
}

.upload-item.error .upload-meta {
  color: var(--danger);
}

.upload-cancel {
  position: absolute;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px;
  top: 8px;
  right: 8px;
}

.upload-cancel:hover {
  color: var(--text);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px;
}

.gallery .tile {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  position: relative;
  border-radius: 4px;
}

.thumb-wrap {
  position: absolute;
  background: var(--bg);
  overflow: hidden;
  inset: 0;
}

.thumb-wrap img {
  position: absolute;
  object-fit: cover;
  display: block;
  opacity: 0;
  width: 100%;
  height: 100%;
  transition: opacity .25s, transform .25s;
  inset: 0;
}

.thumb-wrap img.loaded {
  opacity: 1;
}

.gallery .tile:hover .thumb-wrap img.loaded {
  transform: scale(1.04);
}

.thumb-spinner {
  position: absolute;
  display: flex;
  z-index: 1;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.thumb-spinner:before {
  content: "";
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  animation: stohrspin .8s linear infinite;
  border-radius: 50%;
  width: 22px;
  height: 22px;
}

@keyframes stohrspin {
  to {
    transform: rotate(360deg);
  }
}

.lightbox {
  position: fixed;
  z-index: 50;
  display: flex;
  background: #000000eb;
  flex-direction: column;
  inset: 0;
}

.lightbox-bar {
  display: flex;
  color: #fff;
  justify-content: space-between;
  align-items:  center;
  padding: 12px 20px;
}

.lightbox-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 500;
}

.lightbox-bar button {
  color: #fff;
  background: none;
  border: 1px solid #fff3;
}

.lightbox-bar button:hover {
  background: #ffffff1a;
}

.lightbox-stage {
  display: flex;
  position: relative;
  flex: 1;
  justify-content: center;
  align-items:  center;
  min-height: 0;
  padding: 0 64px 32px;
}

.lightbox-stage img, .lightbox-stage video {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-nav {
  position: absolute;
  color: #fff;
  display: flex;
  cursor: pointer;
  background: #ffffff14;
  border: 1px solid #fff3;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav:hover {
  background: #ffffff2e;
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.public-folder {
  background: var(--bg);
  min-height: 100vh;
}

.public-header {
  display: flex;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items:  center;
  padding: 18px 28px;
}

.public-brand {
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  align-items:  center;
  font-size: 20px;
  font-weight: 700;
}

.public-brand img {
  display: block;
  width: auto;
  height: 36px;
}

.public-meta {
  text-align: right;
}

.public-title {
  font-weight: 600;
}

.public-owner {
  color: var(--muted);
  font-size: 12px;
}

.public-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.share-viewer {
  display: flex;
  justify-content: center;
  align-items:  center;
  min-height: calc(100vh - 100px);
}

.share-viewer .share-media {
  object-fit: contain;
  box-shadow: var(--shadow);
  display: block;
  border-radius: 6px;
  max-width: 100%;
  max-height: calc(100vh - 140px);
}

.share-viewer .share-pdf {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  width: min(1100px, 100%);
  height: calc(100vh - 140px);
}

.share-viewer .share-audio {
  background: var(--panel);
  border-radius: var(--radius);
  display: flex;
  border: 1px solid var(--border);
  flex-direction: column;
  align-items:  center;
  gap: 16px;
  padding: 40px;
}

.share-viewer .share-audio audio {
  width: 380px;
}

.share-viewer .preview-text {
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 100%;
  max-height: calc(100vh - 140px);
  padding: 20px;
}

.share-page {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  max-width: 420px;
  margin: 80px auto;
  padding: 36px;
}

.share-page .file-icon {
  color: var(--brand);
  display: inline-flex;
  justify-content: center;
  align-items:  center;
  margin: 16px 0;
}

.share-page .filename {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
}

.share-page .filemeta {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 13px;
}

.share-page .dl-btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 14px;
}

.lp {
  --lp-bg: #fbf7ec;
  --lp-bg-2: #f5efde;
  --lp-ink: #14182b;
  --lp-ink-soft: #2a2f48;
  --lp-muted: #756c5c;
  --lp-line: #d8cfb8;
  --lp-accent: #0061d5;
  --lp-warm: #c2674c;
  background: var(--lp-bg);
  color: var(--lp-ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-family: DM Sans, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.lp h1 {
  letter-spacing: -.03em;
  color: var(--lp-ink);
  font-variation-settings: "opsz" 144;
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
}

.lp h2, .lp h3 {
  letter-spacing: -.025em;
  color: var(--lp-ink);
  margin: 0;
  font-family: DM Sans, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.08;
}

.lp h1 em, .lp h2 em, .lp h3 em {
  font-variation-settings: "opsz" 144;
  letter-spacing: -.02em;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

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

.lp-banner {
  display: flex;
  letter-spacing: .02em;
  color: #fbf7ec;
  border-bottom: 1px solid var(--lp-ink);
  text-align: center;
  background: linear-gradient(90deg, #14182b 0%, #2a2f48 50%, #14182b 100%);
  justify-content: center;
  align-items:  center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
}

.lp-banner em {
  color: #f5d4a4;
  letter-spacing: -.01em;
  margin: 0 4px;
  font-family: Fraunces, serif;
  font-style: italic;
  font-weight: 500;
}

.lp-banner-pulse {
  display: inline-block;
  background: var(--lp-warm);
  position: relative;
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 8px #c2674c99;
}

.lp-banner-pulse:after {
  content: "";
  position: absolute;
  background: var(--lp-warm);
  animation: lp-pulse 2s cubic-bezier(.22, 1, .36, 1) infinite;
  opacity: .8;
  border-radius: 50%;
  inset: 0;
}

@keyframes lp-pulse {
  0% {
    transform: scale(1);
    opacity: .7;
  }

  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.lp-nav {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 5vw, 64px);
}

.lp-brand {
  letter-spacing: -.025em;
  display: inline-flex;
  align-items:  center;
  font-family: Fraunces, serif;
  font-size: 22px;
  font-weight: 600;
}

.lp-brand img {
  display: block;
  width: auto;
  height: 32px;
}

.lp-nav-links {
  display: none;
  gap: 32px;
}

@media (width >= 880px) {
  .lp-nav-links {
    display: flex;
  }
}

.lp-nav-links a {
  color: var(--lp-ink-soft);
  position: relative;
  padding: 4px 0;
  font-size: 15px;
}

.lp-nav-links a:after {
  content: "";
  position: absolute;
  background: var(--lp-ink);
  transform-origin: right;
  height: 1px;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  inset: auto 0 0;
  transform: scaleX(0);
}

.lp-nav-links a:hover:after {
  transform-origin: left;
  transform: scaleX(1);
}

.lp-nav-cta {
  display: flex;
  align-items:  center;
  gap: 14px;
}

.lp-link {
  color: var(--lp-ink-soft);
  font-size: 15px;
}

.lp-link:hover {
  color: var(--lp-ink);
}

.lp .lp-btn {
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: 10px;
  justify-content: center;
  align-items:  center;
  gap: 6px;
  padding: 11px 22px;
  transition: transform .2s cubic-bezier(.22,1,.36,1), background .2s, color .2s, border-color .2s, box-shadow .2s;
  font-family: DM Sans, sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.lp .lp-btn-primary {
  color: #fbf7ec;
  background: linear-gradient(#2a2f48 0%, #14182b 100%);
  box-shadow: inset 0 1px #ffffff14, 0 1px 2px #14182b1a, 0 8px 20px -8px #14182b66;
}

.lp .lp-btn-primary:hover {
  background: linear-gradient(#1d2238 0%, #0a0d1a 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px #ffffff1a, 0 2px 4px #14182b1f, 0 12px 28px -8px #14182b73;
}

.lp .lp-btn-ghost {
  color: var(--lp-ink);
  border-color: var(--lp-line);
  background: none;
}

.lp .lp-btn-ghost:hover {
  border-color: var(--lp-ink);
  background: #14182b0a;
}

.lp-btn-lg {
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 16px;
}

.lp-btn-block {
  width: 100%;
}

.lp-hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items:  center;
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(64px, 10vw, 140px);
}

@media (width >= 980px) {
  .lp-hero {
    grid-template-columns: 1.15fr 1fr;
    gap: 80px;
  }
}

.lp-eyebrow {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin: 0 0 24px;
  font-size: 13px;
}

.lp-hero h1 {
  animation: lp-rise .9s cubic-bezier(.22, 1, .36, 1) both;
  margin-bottom: 28px;
  font-size: clamp(44px, 7.6vw, 96px);
}

.lp-lede {
  color: var(--lp-muted);
  animation: lp-rise .9s cubic-bezier(.22, 1, .36, 1) 80ms both;
  max-width: 540px;
  margin: 0 0 36px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
}

.lp-cta-row {
  display: flex;
  animation: lp-rise .9s cubic-bezier(.22, 1, .36, 1) .16s both;
  flex-wrap: wrap;
  gap: 12px;
}

@keyframes lp-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lp-hero-form {
  animation: lp-rise 1.1s cubic-bezier(.22, 1, .36, 1) .24s both;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.lp-invite-card {
  display: flex;
  background: #fff;
  border: 1px solid #c8bfa6;
  border-radius: 16px;
  flex-direction: column;
  gap: 18px;
  padding: clamp(26px, 4vw, 34px);
  box-shadow: 0 1px 2px #14182b0f, 0 16px 36px -12px #14182b38, 0 6px 16px -6px #14182b1a;
}

.lp-invite-head h3 {
  letter-spacing: -.015em;
  color: var(--lp-ink);
  margin: 0 0 6px;
  font-family: DM Sans, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.lp-invite-head p {
  color: var(--lp-muted);
  margin: 0;
  font-size: 14px;
}

.lp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-field > span {
  color: var(--lp-ink);
  font-family: DM Sans, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.lp-field-opt {
  color: var(--lp-muted);
  margin-left: 4px;
  font-size: 13px;
  font-weight: 400;
}

.lp-field input, .lp-field textarea {
  color: var(--lp-ink);
  outline: none;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #c8bfa6;
  border-radius: 8px;
  width: 100%;
  padding: 11px 14px;
  transition: border-color .15s, box-shadow .15s;
  font-family: DM Sans, sans-serif;
  font-size: 15px;
}

.lp-field textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}

.lp-field input::placeholder, .lp-field textarea::placeholder {
  color: #14182b5c;
}

.lp-field input:focus, .lp-field textarea:focus {
  border-color: var(--lp-ink);
  box-shadow: 0 0 0 3px #14182b14;
}

.lp-invite-error {
  color: #8a3d24;
  background: #c2674c14;
  border: 1px solid #c2674c47;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
}

.lp-invite-card .lp-btn-block {
  margin-top: 4px;
}

.lp-invite-success {
  text-align: center;
  align-items:  center;
  gap: 12px;
  padding: clamp(40px, 6vw, 56px) clamp(24px, 4vw, 32px);
}

.lp-invite-check {
  color: #fff;
  display: flex;
  background: linear-gradient(#d97f57, #c2674c);
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  font-size: 26px;
  font-weight: 600;
  box-shadow: 0 8px 16px -6px #c2674c66;
}

.lp-invite-success h3 {
  letter-spacing: -.02em;
  color: var(--lp-ink);
  margin: 0;
  font-family: DM Sans, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.lp-invite-success p {
  color: var(--lp-muted);
  max-width: 320px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.lp-invite-success p strong {
  color: var(--lp-ink);
  font-weight: 600;
}

.lp-features {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 140px) clamp(20px, 5vw, 64px);
}

.lp-features h2 {
  max-width: 760px;
  margin-bottom: clamp(48px, 7vw, 96px);
  font-size: clamp(34px, 5.5vw, 64px);
}

.lp-features h2 em {
  color: var(--lp-accent);
}

.lp-feature-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.lp-feature-list li {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--lp-line);
  gap: 16px;
  padding: clamp(28px, 4vw, 44px) 0;
}

.lp-feature-list li:last-child {
  border-bottom: 1px solid var(--lp-line);
}

@media (width >= 720px) {
  .lp-feature-list li {
    grid-template-columns: 100px 1fr;
    align-items:  start;
    gap: 40px;
  }
}

.lp-num {
  color: var(--lp-warm);
  letter-spacing: .02em;
  padding-top: 6px;
  font-family: Fraunces, serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
}

.lp-feature-list h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.6vw, 32px);
}

.lp-feature-list p {
  color: var(--lp-muted);
  max-width: 620px;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.lp-feature-list code {
  color: var(--lp-ink);
  border: 1px solid var(--lp-line);
  background: #14182b0f;
  border-radius: 4px;
  padding: 1px 7px;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: .88em;
}

.lp-pricing {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 140px) clamp(20px, 5vw, 64px);
}

.lp-pricing-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.lp-pricing-head h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5.5vw, 64px);
}

.lp-pricing-head p {
  color: var(--lp-muted);
  max-width: 520px;
  margin: 0;
  font-size: 17px;
}

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

@media (width >= 720px) {
  .lp-tiers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 1080px) {
  .lp-tiers {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lp-tier {
  border: 1px solid var(--lp-line);
  display: flex;
  background: #ffffff80;
  border-radius: 18px;
  flex-direction: column;
  padding: 28px;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}

.lp-tier:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px #14182b14;
}

.lp-tier-head {
  display: flex;
  letter-spacing: -.02em;
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: Fraunces, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
}

.lp-tier-pop {
  background: var(--lp-ink);
  color: var(--lp-bg);
  border-color: var(--lp-ink);
  position: relative;
}

.lp-tier-pop .lp-tier-head {
  color: var(--lp-bg);
}

.lp-pop {
  text-transform: uppercase;
  letter-spacing: .14em;
  background: var(--lp-warm);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: DM Sans, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.lp-price {
  font-variation-settings: "opsz" 144;
  letter-spacing: -.04em;
  display: flex;
  align-items: baseline;
  margin-bottom: 6px;
  font-family: Fraunces, serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
}

.lp-price .lp-period {
  color: inherit;
  opacity: .55;
  letter-spacing: 0;
  margin-left: 2px;
  font-size: 16px;
  font-weight: 400;
}

.lp-storage {
  color: var(--lp-muted);
  letter-spacing: .02em;
  margin-bottom: 22px;
  font-size: 14px;
}

.lp-tier-pop .lp-storage {
  color: #fbf7ecb3;
}

.lp-tier .lp-btn-block {
  margin: 0 0 22px;
}

.lp .lp-tier-pop .lp-btn-primary {
  color: var(--lp-ink);
  background: linear-gradient(#fffaf0 0%, #fbf7ec 100%);
  box-shadow: inset 0 1px #fff9, 0 1px 2px #0003, 0 8px 20px -8px #0000004d;
}

.lp .lp-tier-pop .lp-btn-primary:hover {
  background: linear-gradient(#fff 0%, #fdf9ee 100%);
}

.lp-tier ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.lp-tier ul li {
  position: relative;
  color: var(--lp-muted);
  padding-left: 20px;
  line-height: 1.4;
}

.lp-tier ul li:before {
  content: "→";
  position: absolute;
  color: var(--lp-warm);
  top: 0;
  left: 0;
}

.lp-tier ul li em {
  color: var(--lp-ink-soft);
  font-style: italic;
}

.lp-tier-pop ul li {
  color: #fbf7ecb8;
}

.lp-tier-pop ul li:before {
  color: var(--lp-warm);
}

.lp-tier-pop ul li em {
  color: #fbf7ecf2;
}

.lp-pricing-foot {
  color: var(--lp-muted);
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
}

.lp-pricing-foot strong {
  color: var(--lp-ink);
  font-weight: 600;
}

.lp-footer {
  display: flex;
  border-top: 1px solid var(--lp-line);
  color: var(--lp-muted);
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding: 32px clamp(20px, 5vw, 64px);
  font-size: 14px;
}

.lp-footer-brand {
  font-family: Fraunces, serif;
  font-style: italic;
}

.lp-footer-links {
  display: flex;
  gap: 24px;
}

.lp-footer-links a {
  color: var(--lp-ink-soft);
}

.lp-footer-links a:hover {
  color: var(--lp-ink);
}

@media (width <= 720px) {
  .lp-tier-pop {
    order: -1;
  }
}
