:root {
  --green-950: #092923;
  --green-900: #0f312b;
  --green-800: #173e36;
  --green-700: #22564b;
  --sand-50: #fbf9f5;
  --sand-100: #f5efe6;
  --sand-200: #e8dfd0;
  --sand-300: #d7c5aa;
  --gold: #b58b51;
  --graphite: #293330;
  --stone: #66736f;
  --white: #ffffff;
  --error: #a33b35;
  --shadow-sm: 0 8px 24px rgba(15, 49, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 49, 43, 0.18);
  --radius-sm: 14px;
  --radius-md: 20px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; }
body { margin: 0; background: var(--sand-50); color: var(--graphite); font-family: var(--font-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--green-900); line-height: 1.12; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; }
h1 { margin-bottom: 10px; font-size: clamp(2.25rem, 9vw, 4.4rem); }
h2 { margin-bottom: 8px; font-size: clamp(1.75rem, 6vw, 2.65rem); }
h3 { margin-bottom: 0; font-size: 1rem; }
p { color: var(--stone); }

.admin-shell { width: min(calc(100% - 28px), 1380px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--green-950); color: var(--white); }
.skip-link:focus { top: 12px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 0.69rem; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }

.admin-header { border-bottom: 1px solid rgba(181, 139, 81, 0.22); background: rgba(251, 249, 245, 0.96); }
.admin-header-inner { display: flex; flex-direction: column; gap: 14px; padding: 14px 0; }
.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-brand-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--green-700); font-family: var(--font-display); font-size: 0.85rem; }
.admin-brand strong { display: block; color: var(--green-900); font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; }
.admin-brand p { margin: 2px 0 0; font-size: 0.72rem; }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.prototype-notice { padding: 8px 0; background: var(--green-900); color: rgba(255,255,255,.78); font-size: .76rem; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--green-700); border-radius: 999px; background: var(--green-700); color: var(--white); font-size: .8rem; font-weight: 800; line-height: 1.15; text-decoration: none; transition: .2s ease; }
.button:hover { border-color: var(--green-800); background: var(--green-800); transform: translateY(-1px); }
.button-secondary { border-color: rgba(23,62,54,.28); background: var(--white); color: var(--green-800); }
.button-secondary:hover { border-color: var(--green-800); color: var(--white); }
.button-danger { border-color: rgba(163,59,53,.36); background: #fff9f8; color: var(--error); }
.button-danger:hover { border-color: var(--error); background: var(--error); color: var(--white); }
.text-button { border: 0; background: transparent; color: var(--green-700); font-size: .78rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.icon-button { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid var(--sand-200); border-radius: 50%; background: var(--sand-50); color: var(--green-800); font-size: 1.6rem; line-height: 1; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(181,139,81,.72); outline-offset: 3px; }

.admin-main { padding: 30px 0 64px; }
.intro-panel { display: grid; gap: 18px; margin-bottom: 22px; }
.intro-panel p { max-width: 740px; margin-bottom: 0; }
.business-chip { align-self: start; padding: 14px 16px; border: 1px solid var(--sand-200); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-sm); }
.business-chip span { display: block; margin-bottom: 3px; color: var(--stone); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.business-chip strong { color: var(--green-800); font-size: .9rem; }

.admin-tabs { display: flex; gap: 5px; margin: 24px 0 14px; padding: 5px; border: 1px solid var(--sand-200); border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); }
.tab-button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--green-700); font-size: .82rem; font-weight: 850; }
.tab-button.is-active { background: var(--green-800); color: var(--white); }

.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.summary-card { min-width: 0; padding: 16px; border: 1px solid var(--sand-200); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-sm); }
.summary-card span { display: block; min-height: 34px; color: var(--stone); font-size: .72rem; font-weight: 750; }
.summary-card strong { display: block; color: var(--green-900); font-family: var(--font-display); font-size: 2.05rem; font-weight: 500; line-height: 1; }
.summary-card:first-child { grid-column: 1 / -1; background: var(--green-900); }
.summary-card:first-child span { color: rgba(255,255,255,.68); }
.summary-card:first-child strong { color: var(--white); }

.content-card { margin-top: 14px; padding: 18px; border: 1px solid var(--sand-200); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-heading p:last-child { margin-bottom: 0; font-size: .86rem; }
.filter-grid, .settings-grid { display: grid; gap: 12px; }
.field-group { min-width: 0; }
.field-group label { display: block; margin-bottom: 6px; color: var(--green-900); font-size: .77rem; font-weight: 850; }
.field-group small { display: block; margin-top: 5px; color: var(--stone); font-size: .7rem; }
input, select, textarea { width: 100%; border: 1px solid #d7d0c5; border-radius: 10px; background: var(--white); color: var(--graphite); }
input, select { min-height: 48px; padding: 10px 11px; }
textarea { min-height: 110px; padding: 11px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #968f85; }

.results-counter { margin: 0; color: var(--stone); font-size: .76rem; font-weight: 700; }
.desktop-table-wrapper { display: none; }
.mobile-request-list { display: grid; gap: 10px; }
.request-card { padding: 14px; border: 1px solid var(--sand-200); border-radius: 14px; background: var(--sand-50); }
.request-card-top, .request-card-bottom { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.request-card-id { color: var(--gold); font-size: .69rem; font-weight: 900; letter-spacing: .08em; }
.request-card h3 { margin: 8px 0 5px; font-size: 1rem; }
.request-card p { margin: 0 0 4px; font-size: .78rem; }
.request-card-bottom { align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--sand-200); }
.detail-button { min-height: 38px; padding: 8px 11px; border: 1px solid rgba(23,62,54,.24); border-radius: 999px; background: var(--white); color: var(--green-800); font-size: .73rem; font-weight: 850; }
.detail-button:hover { background: var(--green-800); color: var(--white); }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: .67rem; font-weight: 850; white-space: nowrap; }
.status-badge::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.status-new { background: #edf6f2; color: #1e6c59; }
.status-contact { background: #edf2f7; color: #46657d; }
.status-waiting { background: #fff7df; color: #9a6a12; }
.status-quoted { background: #f1edfb; color: #7053a6; }
.status-closed { background: #edf7e9; color: #477c38; }
.status-lost { background: #faecea; color: #9b433d; }
.empty-state { padding: 34px 16px; text-align: center; }
.empty-state strong { color: var(--green-900); }
.empty-state p { margin: 8px 0 0; font-size: .86rem; }

.editable-lists-grid { display: grid; gap: 12px; margin-top: 18px; }
.editable-list-card { padding: 14px; border: 1px solid var(--sand-200); border-radius: var(--radius-sm); background: var(--sand-50); }
.list-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.editable-list { display: grid; gap: 8px; }
.editable-list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.editable-list-row input { min-height: 42px; background: var(--white); }
.remove-list-item { width: 42px; border: 1px solid rgba(163,59,53,.26); border-radius: 10px; background: #fff9f8; color: var(--error); font-size: 1.2rem; }
.settings-actions, .data-tools-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.file-button { cursor: pointer; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(9,41,35,.62); }
.modal-backdrop[hidden] { display: none; }
.request-modal { display: flex; width: 100%; max-height: 92vh; flex-direction: column; border-radius: 22px 22px 0 0; background: var(--white); box-shadow: var(--shadow-lg); }
.modal-header, .modal-footer { display: flex; gap: 10px; padding: 16px; }
.modal-header { align-items: start; justify-content: space-between; border-bottom: 1px solid var(--sand-200); }
.modal-header h2 { margin-bottom: 0; font-size: 1.8rem; }
.modal-body { overflow-y: auto; padding: 16px; }
.modal-footer { flex-direction: column; border-top: 1px solid var(--sand-200); }
.request-detail-grid { display: grid; gap: 0; margin: 0 0 18px; }
.request-detail-grid div { padding: 9px 0; border-bottom: 1px solid var(--sand-200); }
.request-detail-grid dt { color: var(--stone); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.request-detail-grid dd { margin: 3px 0 0; color: var(--green-900); font-size: .88rem; font-weight: 750; overflow-wrap: anywhere; }
.modal-form-grid { display: grid; gap: 12px; }
.toast-region { position: fixed; right: 14px; bottom: 14px; z-index: 120; max-width: min(360px, calc(100vw - 28px)); padding: 0; }
.toast-message { padding: 12px 14px; border: 1px solid rgba(23,62,54,.16); border-radius: 12px; background: var(--green-900); color: var(--white); box-shadow: var(--shadow-lg); font-size: .8rem; font-weight: 750; }
.toast-message.is-error { background: var(--error); }

@media (min-width: 640px) {
  .admin-header-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .intro-panel { grid-template-columns: 1fr auto; align-items: end; }
  .admin-tabs { max-width: 420px; }
  .summary-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .summary-card:first-child { grid-column: auto; }
  .filter-grid { grid-template-columns: minmax(0, 1.7fr) minmax(170px, .8fr) minmax(150px, .7fr); }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
  .editable-lists-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modal-backdrop { align-items: stretch; justify-content: flex-end; padding: 0; }
  .request-modal { width: min(620px, 92vw); max-height: 100vh; border-radius: 22px 0 0 22px; }
  .modal-footer { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 980px) {
  .admin-main { padding-top: 42px; }
  .content-card { padding: 22px; }
  .desktop-table-wrapper { display: block; overflow-x: auto; }
  .mobile-request-list { display: none; }
  .requests-table { width: 100%; border-collapse: collapse; }
  .requests-table th { padding: 10px 8px; border-bottom: 1px solid var(--sand-200); color: var(--stone); font-size: .68rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
  .requests-table td { padding: 13px 8px; border-bottom: 1px solid var(--sand-200); color: var(--graphite); font-size: .78rem; vertical-align: middle; }
  .requests-table td:first-child { color: var(--gold); font-size: .7rem; font-weight: 900; white-space: nowrap; }
  .requests-table td:last-child { text-align: right; }
}
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.pagination span { color: var(--stone); font-size: .78rem; font-weight: 800; }
.pagination .button { min-width: 86px; }
.pagination .button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--sand-100); }
.login-card { width: min(100%, 440px); padding: 24px; border: 1px solid var(--sand-200); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-lg); }
.login-card .admin-brand { margin-bottom: 24px; }
.login-card form { display: grid; gap: 14px; }
.login-status { min-height: 22px; margin: 10px 0 0; color: var(--error); font-size: .8rem; font-weight: 800; }
.login-note { margin-top: 16px; padding: 12px; border: 1px solid var(--sand-200); border-radius: 10px; background: var(--sand-50); color: var(--stone); font-size: .77rem; }
.login-footer { margin-top: 18px; font-size: .78rem; }
[hidden] { display: none !important; }

/* v0.5 — equipe comercial */
[hidden] { display: none !important; }
.identity-grid { display: grid; gap: 10px; }
.business-chip small { display: block; margin-top: 3px; color: var(--stone); font-size: .72rem; }
.admin-feedback { min-height: 22px; margin: 4px 0; color: var(--green-700); font-size: .8rem; font-weight: 750; }
.admin-feedback.is-error { color: var(--error); }
.commercial-filter-grid { align-items: end; }
.check-filter { display: flex; min-height: 48px; align-items: center; gap: 8px; padding: 10px 11px; border: 1px solid #d7d0c5; border-radius: 10px; color: var(--green-900); font-size: .78rem; font-weight: 750; }
.check-filter input { width: 18px; min-height: 18px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; color: var(--stone); font-size: .78rem; font-weight: 800; }
.team-invite-grid { display: grid; gap: 12px; align-items: end; }
.team-list { display: grid; gap: 10px; }
.member-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--sand-200); border-radius: var(--radius-sm); background: var(--sand-50); }
.member-card-main { min-width: 0; }
.member-card strong { color: var(--green-900); }
.member-card p { margin: 3px 0 0; overflow-wrap: anywhere; font-size: .76rem; }
.member-meta, .member-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.member-badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: var(--sand-100); color: var(--green-700); font-size: .68rem; font-weight: 850; }
.member-status-active { background: #edf7e9; color: #477c38; }
.member-status-invited { background: #fff7df; color: #9a6a12; }
.member-status-disabled { background: #faecea; color: #9b433d; }
.member-actions .button { min-height: 36px; padding: 7px 10px; font-size: .72rem; }
.commercial-edit-grid { display: grid; gap: 12px; margin-top: 16px; }
.history-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--sand-200); }
.history-list { display: grid; gap: 9px; margin-top: 10px; }
.history-item { padding: 11px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--sand-50); }
.history-item strong { display: block; color: var(--green-900); font-size: .78rem; }
.history-item p { margin: 3px 0 0; font-size: .72rem; }
.detail-muted { color: var(--stone); }
.login-status.is-error { color: var(--error); }
.invite-body { display: grid; min-height: 100vh; place-items: center; padding: 18px; background: var(--sand-100); }
.invite-card { width: min(100%, 520px); padding: 24px; border: 1px solid var(--sand-200); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-lg); }
.invite-card h1 { font-size: clamp(2rem, 9vw, 3.4rem); }
.invite-card .button { width: 100%; margin-top: 8px; }

@media (min-width: 720px) {
  .identity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-invite-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(150px, .7fr) auto; }
  .commercial-edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-wide { grid-column: 1 / -1; }
  .member-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
@media (min-width: 1040px) {
  .commercial-filter-grid { grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, .8fr)) minmax(160px, .8fr) minmax(180px, .8fr); }
}
.request-detail-grid span { display: block; color: var(--stone); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.request-detail-grid strong { display: block; margin-top: 3px; color: var(--green-900); font-size: .88rem; overflow-wrap: anywhere; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* v0.6 — Site Studio */
.site-studio-summary { display: grid; gap: 10px; margin-top: 14px; }
.site-studio-summary article { padding: 14px; border: 1px solid var(--sand-200); border-radius: var(--radius-sm); background: var(--sand-50); }
.site-studio-summary span { display: block; color: var(--stone); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.site-studio-summary strong { display: block; margin-top: 5px; color: var(--green-900); font-size: 1rem; }
.template-grid { display: grid; gap: 12px; }
.template-card { overflow: hidden; border: 1px solid var(--sand-200); border-radius: var(--radius-md); background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.template-card.is-selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(181,139,81,.18); }
.template-card.is-locked { background: #fbfaf8; opacity: .82; }
.template-thumbnail { display: grid; min-height: 116px; place-items: end start; padding: 14px; background: #eee; color: #fff; font-family: var(--font-display); font-size: 1.25rem; }
.template-thumbnail-essential-clean { background: linear-gradient(145deg,#f7f3eb,#d4ded9); color: var(--green-900); }
.template-thumbnail-pedra-editorial { background: linear-gradient(145deg,#173e36,#09241f); }
.template-thumbnail-comercial-moderno { background: linear-gradient(145deg,#b58b51,#173e36); }
.template-card-body { padding: 14px; }
.template-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.template-card p { margin: 7px 0 0; font-size: .78rem; }
.template-lock { color: var(--error); font-weight: 800; }
.template-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.template-actions .button { min-height: 38px; padding: 8px 11px; font-size: .72rem; }
.template-actions .button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.site-media-grid { display: grid; gap: 12px; }
.media-upload-card { display: grid; align-content: start; gap: 9px; min-width: 0; padding: 14px; border: 1px solid var(--sand-200); border-radius: var(--radius-sm); background: var(--sand-50); }
.media-upload-card img { width: 100%; aspect-ratio: 16 / 10; border-radius: 9px; object-fit: cover; background: var(--sand-200); }
.media-upload-card .button { width: 100%; min-height: 40px; padding: 9px 11px; font-size: .72rem; }
.media-upload-card small { min-height: 18px; color: var(--stone); font-size: .7rem; }
.site-studio-actions { display: flex; flex-wrap: wrap; gap: 9px; }
@media (min-width: 700px) { .site-studio-summary { grid-template-columns: repeat(3,minmax(0,1fr)); } .template-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .site-media-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
/* v0.6 — quatro abas sem overflow em telas estreitas */
@media (max-width: 639px) {
  .admin-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
  .tab-button { min-width: 0; padding-inline: 8px; font-size: .76rem; }
}

/* v0.6.1 — limite de equipe por plano e fonte oficial do Site Studio */
.team-plan-summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.team-plan-summary span, .team-plan-summary strong { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: var(--sand-100); color: var(--green-700); font-size: .74rem; font-weight: 850; }


/* v0.6.3 — Site Studio guiado */
.guided-theme-card { overflow: hidden; }
.theme-studio-section { padding: 20px 0; border-top: 1px solid var(--line); }
.theme-studio-section:first-of-type { border-top: 0; padding-top: 0; }
.theme-section-heading h3 { margin-bottom: 4px; }
.theme-section-heading p { margin-bottom: 14px; font-size: .86rem; }
.theme-preset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.theme-preset-card { display: grid; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.theme-preset-card:hover { border-color: #b58b51; transform: translateY(-1px); }
.theme-preset-card.is-selected { border-color: #173e36; box-shadow: 0 0 0 3px rgba(23,62,54,.12); }
.theme-preset-card h4 { margin: 0; color: #173e36; font-size: .94rem; }
.theme-preset-card p { min-height: 50px; margin: 0; font-size: .76rem; line-height: 1.45; }
.theme-preset-preview { display: flex; height: 42px; overflow: hidden; border-radius: 12px; border: 1px solid rgba(0,0,0,.06); }
.theme-preset-preview i { flex: 1; }
.theme-preset-preview i:nth-child(1){background:var(--preset-primary)} .theme-preset-preview i:nth-child(2){background:var(--preset-secondary)} .theme-preset-preview i:nth-child(3){background:var(--preset-accent)} .theme-preset-preview i:nth-child(4){background:var(--preset-bg)}
.theme-color-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.theme-color-field { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #173e36; font-size: .82rem; font-weight: 800; }
.theme-color-field input[type=color] { width: 100%; min-height: 52px; padding: 3px; cursor: pointer; }
.theme-color-field code { color: #746b60; font-size: .72rem; }
.theme-choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.theme-live-wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: end; padding: 20px 0; border-top: 1px solid var(--line); }
.theme-preview-actions { display: grid; gap: 8px; }
.theme-mini-preview { overflow: hidden; max-width: 620px; border: 1px solid var(--site-border,#e8dfd0); border-radius: var(--site-radius-md,20px); background: var(--site-page-bg,#fbf9f5); box-shadow: 0 14px 34px rgba(24,43,38,.12); }
.theme-mini-header { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--site-surface,#fff); }
.theme-mini-header span,.theme-mini-header b { display:block; height:7px; border-radius:9px; background:var(--site-primary,#173e36); } .theme-mini-header span{width:35%}.theme-mini-header b{width:14%;background:var(--site-accent,#b58b51)}
.theme-mini-hero { padding: 18px; background: linear-gradient(145deg,var(--site-primary-soft,#edf3ef),var(--site-page-bg,#fbf9f5)); }
.theme-mini-hero small { display:block;color:var(--site-accent,#b58b51);font-size:.54rem;font-weight:900;letter-spacing:.12em; }
.theme-mini-hero strong { display:block;max-width:70%;margin-top:5px;color:var(--site-primary-strong,#0f312b);font-family:Georgia,serif;font-size:1.23rem;line-height:1.08; }
.theme-mini-hero em { display:block;width:56%;height:5px;margin:9px 0;border-radius:8px;background:var(--site-muted,#746b60);opacity:.42; }
.theme-mini-hero button { padding:7px 10px;border:1px solid var(--site-button-bg,#b58b51);border-radius:999px;background:var(--site-button-bg,#b58b51);color:var(--site-button-text,#17201e);font-size:.58rem;font-weight:900; }
.theme-mini-process { display:flex;gap:7px;padding:11px;background:var(--site-process-bg,#0f312b); }.theme-mini-process i{height:20px;flex:1;border:1px solid color-mix(in srgb,var(--site-process-text,#fff) 22%,transparent);border-radius:var(--site-radius-sm,10px)}
.theme-mini-cards { display:flex;gap:7px;padding:12px;background:var(--site-surface-alt,#f4f0e8); }.theme-mini-cards span{height:30px;flex:1;border:1px solid var(--site-border,#e8dfd0);border-radius:var(--site-radius-sm,10px);background:var(--site-card,#fff)}
.theme-mini-footer{height:18px;background:var(--site-footer-bg,#09241f)}
.theme-contrast-warning { margin: 0 0 18px; padding: 11px 13px; border: 1px solid #bdd8c3; border-radius: 12px; background: #f4fbf5; color: #276237; font-size: .81rem; font-weight: 750; }
.theme-contrast-warning.has-warning { border-color: #dbc28d; background: #fffaf0; color: #7b5a18; }
.theme-contrast-warning.is-critical { border-color: #e3a2a2; background: #fff5f5; color: #9a2c2c; }
.theme-advanced { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf7; }
.theme-advanced summary { color:#173e36;font-weight:900;cursor:pointer; }.theme-advanced>p{margin:9px 0 14px;font-size:.82rem}
.advanced-token-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px; }
.advanced-token-field { display:grid;gap:4px; }.advanced-token-field span{color:#173e36;font-size:.78rem;font-weight:800}.advanced-token-field input{min-height:42px}.advanced-token-field small{color:#746b60;font-size:.68rem}
@media (max-width: 900px){.theme-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-color-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.advanced-token-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 560px){.theme-preset-grid,.theme-color-grid,.theme-choice-grid,.advanced-token-grid,.theme-live-wrap{grid-template-columns:1fr}.theme-preset-card p{min-height:0}.theme-preview-actions{grid-template-columns:1fr}.theme-mini-preview{width:100%}}

#team-access-tools .app-code{display:inline-flex;padding:10px 14px;border-radius:10px;background:#eef3ef;color:#173e36;font-weight:900;letter-spacing:.12em}.team-plan-summary{flex-wrap:wrap}
