:root {
    --ink: #111827;
    --muted: #667085;
    --line: #e4e7ec;
    --soft: #f7f3ec;
    --gold: #c69b52;
    --gold-dark: #8a6227;
    --panel: rgba(255,255,255,.84);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(135deg, #fbfaf7, #eef2f7 58%, #fff);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.app-header {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 92px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}
.brand img { width: 180px; }
.app-header nav, .langs { display: flex; gap: 12px; align-items: center; }
.app-header nav a, .langs a {
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    padding: 9px 13px;
    background: rgba(255,255,255,.48);
    color: #344054;
    font-weight: 700;
}
.langs a.active { color: var(--gold-dark); border-color: rgba(198,155,82,.45); background: #fff8e8; }
.support-nav-link {
    position: relative;
}
.support-unread-dot {
    position: absolute;
    top: 5px;
    right: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.15);
}
.flash {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 12px;
    border: 1px solid rgba(198,155,82,.35);
    border-radius: 8px;
    background: #fff8e8;
    padding: 12px 16px;
}
.global-announcement {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 12px;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 8px;
    background: var(--announcement-bg, #eef7ff);
    color: #111827;
    padding: 13px 16px;
    font-weight: 700;
    box-shadow: 0 10px 34px rgba(17,24,39,.06);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}
.cabinet-announcement { border-color: rgba(20,83,45,.12); }
.announcement-close,
.announcement-clear {
    width: 22px;
    min-height: 22px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #d92d20;
    box-shadow: none;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}
.announcement-close:hover,
.announcement-clear:hover { background: #fff0f0; color: #b42318; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto 70px; }
.hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 44px;
    align-items: center;
}
.eyebrow {
    width: fit-content;
    margin: 0 0 18px;
    color: var(--gold-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}
h1 { margin: 0; font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: 0; }
h2 { margin: 0 0 18px; font-size: 28px; }
h3 { margin: 0 0 10px; }
.lead { max-width: 670px; color: var(--muted); font-size: 21px; }
.benefits { display: grid; gap: 10px; padding: 0; margin: 28px 0 0; list-style: none; }
.benefits li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--gold); }
.auth-card, .panel, .template-card {
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 24px 80px rgba(17,24,39,.10);
    backdrop-filter: blur(18px);
}
.auth-card { display: grid; gap: 16px; padding: 30px; }
.account-page {
    display: grid;
    justify-items: center;
    padding: 42px 0;
}
.account-card {
    width: min(560px, 100%);
    gap: 18px;
}
.account-card h1 {
    font-size: 32px;
    line-height: 1.15;
}
.account-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(248,250,252,.9);
}
.account-tabs a,
.account-tabs button {
    display: grid;
    place-items: center;
    min-height: 42px;
    width: 100%;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
    padding: 0 12px;
    font-weight: 800;
    text-decoration: none;
}
.account-tabs a.active,
.account-tabs button.active {
    background: linear-gradient(135deg, #111827, #8a6227);
    color: #fff;
    box-shadow: 0 12px 30px rgba(17,24,39,.16);
}
.account-tabs a:not(.active):hover,
.account-tabs button:not(.active):hover {
    color: var(--text);
    background: #fff;
}
.home-auth-pane[hidden] { display: none; }
.account-form {
    display: grid;
    gap: 16px;
}
.account-form button {
    width: 100%;
    justify-content: center;
}
.password-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.password-label-row a {
    font-size: 13px;
    font-weight: 600;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
label { display: grid; gap: 7px; color: #344054; font-weight: 800; }
.field-group {
    display: grid;
    gap: 7px;
}
.field-label {
    color: #344054;
    font-weight: 800;
}
input, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 14px 15px;
    font: inherit;
}
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 14px 15px;
    font: inherit;
    resize: vertical;
}
small, .hint { color: var(--muted); font-weight: 400; }
button {
    width: fit-content;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #111827, #8a6227);
    color: #fff;
    padding: 13px 20px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
    opacity: .55;
}
.section { padding: 34px 0; }
.home-seo-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    gap: 28px;
    align-items: start;
    border-top: 1px solid rgba(228,231,236,.72);
    border-bottom: 1px solid rgba(228,231,236,.72);
}
.home-seo-copy {
    padding: 26px 0;
}
.home-seo-copy p {
    max-width: 720px;
    color: var(--muted);
    font-size: 19px;
}
.home-seo-copy .button-link {
    display: inline-flex;
    margin-top: 22px;
}
.template-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}
.template-card { padding: 22px; min-height: 210px; }
.seo-region-card h3 a {
    color: var(--text);
    text-decoration: none;
}
.seo-region-card h3 a:hover { color: var(--accent); }
.seo-region-detail {
    max-width: 920px;
    font-size: 18px;
    line-height: 1.75;
}
.swatches { display: flex; gap: 7px; margin-bottom: 18px; }
.swatches span, .swatches i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.template-card p, .panel p, .dashboard-head p, .hint { color: var(--muted); }
.narrow { max-width: 520px; margin: 60px auto; }
.dashboard-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    padding: 34px 0;
}
.edit-site-head {
    justify-content: space-between;
    align-items: flex-end;
}
.edit-site-domain {
    margin-top: 10px;
}
.edit-site-actions {
    margin-top: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.workspace, .admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.dashboard-workspace {
    grid-template-columns: 1fr;
}
.dashboard-workspace .websites-panel { order: 1; }
.dashboard-workspace .create-site-form { order: 2; }
.dashboard-workspace .parse-transfer-panel { order: 3; }
.dashboard-workspace .account-chat-panel { order: 4; }
.panel { padding: 26px; }
.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.template-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.template-edit-grid .template-option {
    padding: 12px;
}
.template-edit-grid .swatches {
    margin-bottom: 10px;
}
.template-option {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    cursor: pointer;
}
.template-option input { width: auto; }
.template-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.custom-design-option {
    display: grid;
    gap: 16px;
}
.custom-color-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.custom-color-grid label {
    gap: 8px;
}
.custom-color-grid input[type="color"] {
    width: 100%;
    min-height: 48px;
    padding: 5px;
}
.edit-logo {
    display: block;
    max-width: 180px;
    max-height: 90px;
    object-fit: contain;
    margin-bottom: 10px;
}
.template-option:has(input:checked), .template-option.selected {
    border-color: rgba(198,155,82,.75);
    box-shadow: inset 0 0 0 1px rgba(198,155,82,.35);
}
.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 14px;
}
.choice-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    background: rgba(255,255,255,.72);
}
.choice-row input { width: auto; min-height: 0; }
.site-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.dashboard-site-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}
.dashboard-site-address {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.dashboard-site-address a {
    overflow-wrap: anywhere;
}
.site-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.site-status-dot-active {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}
.site-status-dot-inactive {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
.dashboard-site-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}
.dashboard-site-actions .icon-link {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
}
.site-row span, .site-row small { display: block; color: var(--muted); }
.site-row a, .dashboard-head p a {
    color: var(--gold-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.parse-request-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.parse-transfer-panel .parse-request-form {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.muted-panel {
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255,255,255,.58);
}
.account-chat-panel,
.admin-chat-panel {
    display: grid;
    gap: 18px;
}
.chat-thread {
    display: grid;
    gap: 14px;
    max-height: 520px;
    overflow: auto;
    padding: 6px 4px;
}
.chat-bubble {
    position: relative;
    width: min(420px, 92%);
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    padding: 14px 30px 14px 16px;
    background: #f2f7fb;
    box-shadow: 0 8px 24px rgba(17,24,39,.06);
}
.chat-bubble-user {
    justify-self: end;
    background: #e7f8f1;
    border-color: #bfe9dc;
}
.chat-bubble-admin {
    justify-self: start;
    background: #f3f6f9;
    border-color: #d9e1e8;
}
.admin-chat-panel .chat-bubble-user {
    justify-self: start;
}
.admin-chat-panel .chat-bubble-admin {
    justify-self: end;
}
.chat-bubble b {
    display: block;
    margin-bottom: 6px;
    color: #52677d;
    font-size: 14px;
}
.chat-bubble p {
    margin: 10px 0 8px;
    color: var(--ink);
}
.chat-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.chat-image-item {
    position: relative;
}
.chat-bubble img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 8px;
}
.chat-delete-message-form button {
    display: inline-grid;
    width: 16px;
    min-height: 16px;
    padding: 0;
    place-items: center;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #d92d20;
    padding: 0;
    box-shadow: none;
    font-size: 16px;
    line-height: 1;
}
.chat-delete-message-form {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}
.chat-bubble time {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}
.chat-form {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.admin-chat-thread {
    display: grid;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.admin-chat-thread:first-of-type {
    border-top: 0;
}
.admin-chat-thread-messages {
    max-height: 420px;
}
.chat-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: rgba(10, 15, 25, .82);
}
.chat-lightbox.open {
    display: flex;
}
.chat-lightbox img {
    max-width: min(1100px, 82vw);
    max-height: 86vh;
    border-radius: 8px;
    box-shadow: 0 24px 90px rgba(0,0,0,.35);
}
.chat-lightbox button {
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.12);
    color: #fff;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
}
.chat-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
}
.parse-request-form h3,
.request-list h3 {
    margin: 0;
}
.request-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.request-row {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.62);
}
.request-row span,
.request-row small {
    color: var(--muted);
}
.request-row a {
    color: var(--gold-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.admin { padding: 28px 0; }
.admin h1 {
    font-size: clamp(46px, 5.6vw, 72px);
    line-height: 1;
    font-weight: 850;
}
.admin .panel {
    padding: 22px;
}
.admin h2 {
    font-size: 24px;
    line-height: 1.18;
    font-weight: 800;
    margin-bottom: 16px;
}
.admin h3,
.admin label,
.admin .field-label {
    font-size: 14px;
    font-weight: 700;
}
.admin textarea,
.admin input,
.admin select {
    font-size: 14px;
    font-weight: 600;
}
.admin button {
    font-size: 14px;
    font-weight: 750;
    padding: 10px 14px;
}
.admin .site-row b,
.admin .checkbox-label {
    font-size: 14px;
    font-weight: 700;
}
.admin .site-row span,
.admin .site-row small,
.admin .hint,
.admin small {
    font-size: 13px;
}
.settings-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}
.settings-row .settings-panel { margin-bottom: 0; }
.settings-panel { margin-bottom: 22px; }
.announcement-settings {
    margin-bottom: 22px;
    padding: 26px;
}
.admin .announcement-settings {
    padding: 22px 24px;
}
.announcement-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.announcement-settings h3 {
    margin: 18px 0 8px;
    font-size: 16px;
}
.admin .announcement-settings h3 {
    margin-top: 14px;
    font-size: 13px;
}
.admin .announcement-title {
    font-size: 24px;
}
.announcement-title {
    display: flex;
    align-items: center;
    gap: 6px;
}
.announcement-lang-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}
.announcement-lang-tabs button {
    width: fit-content;
    min-height: 0;
    border: 0;
    border-radius: 999px;
    background: #e8eef3;
    color: #344054;
    padding: 5px 8px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    box-shadow: none;
}
.admin .announcement-lang-tabs button {
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 700;
}
.announcement-lang-tabs button.active {
    background: #19755d;
    color: #fff;
}
.announcement-lang-fields label { display: none; }
.announcement-lang-fields label.active { display: block; }
.announcement-lang-fields textarea {
    min-height: 90px;
}
.swatch-radio-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
}
.swatch-radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
}
.swatch-radio-row input { width: auto; min-height: 0; padding: 0; }
.swatch-radio-row span {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(17,24,39,.16);
    border-radius: 5px;
}
.button-link {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 11px 14px;
    font-weight: 800;
}
.design-panel, .menu-panel, .categories-panel, .pages-panel { margin-top: 22px; }
.design-panel form {
    display: grid;
    gap: 18px;
}
.logo-source-row {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
    gap: 14px;
}
.design-panel .template-edit-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.create-site-form .template-edit-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.design-panel .custom-design-option,
.create-site-form .custom-design-option {
    width: 100%;
}
.create-site-form {
    display: grid;
    gap: 18px;
}
.create-design-block {
    display: grid;
    gap: 12px;
}
.create-design-block h3 {
    margin: 0;
}
.custom-design-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.default-colors-button {
    width: auto;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}
.random-colors-button {
    width: auto;
}
.menu-panel .stack-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
}
.bottom-menu-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 10px;
    margin: 4px 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.bottom-menu-panel input,
.bottom-menu-panel select {
    min-height: 42px;
    padding: 10px 12px;
    border-color: #e6ebf2;
}
.bottom-menu-panel button {
    min-height: 42px;
    padding: 10px 15px;
}
.bottom-menu-panel .site-row {
    padding: 11px 0;
    border-color: #edf1f6;
}
.bottom-menu-panel .row-actions {
    gap: 8px;
}
.bottom-menu-panel .move-form button {
    width: 42px;
    min-height: 42px;
    padding: 0;
}
.bottom-menu-panel .stack-form {
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-color: #edf1f6;
}
.commerce-panel { margin-top: 22px; }
.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}
.section-head h2 { margin-bottom: 6px; }
.shop-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 22px;
}
.inner-panel {
    margin-top: 22px;
    box-shadow: none;
    background: rgba(255,255,255,.62);
}
.price-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.workspace .panel,
.design-panel,
.menu-panel,
.categories-panel,
.pages-panel,
.new-page-section .panel,
.commerce-panel,
.management-grid .panel {
    border-color: rgba(228,231,236,.72);
    box-shadow: 0 18px 54px rgba(17,24,39,.075);
}
.workspace input,
.workspace select,
.workspace textarea,
.design-panel input,
.design-panel select,
.design-panel textarea,
.menu-panel input,
.menu-panel select,
.menu-panel textarea,
.categories-panel input,
.categories-panel select,
.categories-panel textarea,
.pages-panel input,
.pages-panel select,
.pages-panel textarea,
.new-page-section input,
.new-page-section select,
.new-page-section textarea,
.commerce-panel input,
.commerce-panel select,
.commerce-panel textarea,
.management-grid input,
.management-grid select,
.management-grid textarea {
    min-height: 42px;
    padding: 10px 12px;
    border-color: #e6ebf2;
}
.workspace button,
.design-panel button,
.menu-panel button,
.categories-panel button,
.pages-panel button,
.new-page-section button,
.commerce-panel button,
.management-grid button {
    min-height: 42px;
    padding: 10px 15px;
}
.workspace .site-row,
.menu-panel .site-row,
.categories-panel .site-row,
.pages-panel .page-list-row,
.commerce-panel .site-row,
.management-grid .site-row {
    padding-top: 11px;
    padding-bottom: 11px;
    border-color: #edf1f6;
}
.workspace .template-option,
.design-panel .template-option {
    border-color: #e6ebf2;
    padding: 12px;
}
.workspace .row-actions,
.menu-panel .row-actions,
.categories-panel .row-actions,
.pages-panel .row-actions,
.commerce-panel .row-actions,
.management-grid .row-actions {
    gap: 8px;
}
.workspace .move-form button,
.menu-panel .move-form button,
.management-grid .move-form button {
    width: 42px;
    min-height: 42px;
    padding: 0;
}
.management-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 22px;
}
.management-grid > .panel:nth-child(2) { display: none; }
.stack-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.compact-row {
    align-items: center;
}
.new-page-section { margin-top: 22px; }
.new-page-section .panel { width: 100%; }
.import-panel {
    margin-top: 22px;
    border-color: rgba(198,155,82,.28);
}
.import-panel h2 {
    margin-bottom: 8px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 12px 0 18px;
}
.checkbox-label input {
    width: auto;
}
.page-list-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.parse-admin-row {
    align-items: center;
}
.parse-admin-row .inline-form {
    display: flex;
    align-items: end;
    gap: 10px;
}
.page-list-row span { display: block; color: var(--muted); }
.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.panel-title-row h2 { margin: 0; }
.row-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.edit-image {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}
.approvals { margin-top: 22px; }
.admin-manage { margin-top: 22px; }
.inline-form { margin: 0; }
.inline-form input[type="hidden"] { display: none; }
.inline-form button { white-space: nowrap; }
.move-form button {
    display: inline-grid;
    place-items: center;
    width: 52px;
    min-height: 52px;
    padding: 0;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
    font-size: 22px;
    line-height: 1;
}
.move-form button:disabled {
    opacity: .42;
    cursor: default;
}
.crawl-limit-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.crawl-limit-label input {
    width: 84px;
    padding: 10px;
}
.limit-form {
    display: flex;
    gap: 10px;
    align-items: end;
    margin: 0;
}
.limit-form label { gap: 4px; }
.limit-form input { width: 82px; padding: 10px; }
.limit-form button { padding: 10px 13px; }
.danger-form button {
    background: linear-gradient(135deg, #7f1d1d, #dc2626);
}
.modal {
    width: min(720px, calc(100% - 32px));
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 32px 100px rgba(17,24,39,.22);
}
.page-edit-modal {
    width: min(1280px, calc(100% - 24px));
    padding: 32px;
}
.page-edit-modal .rich-editor {
    min-height: clamp(320px, 52vh, 620px);
}
.modal::backdrop { background: rgba(17,24,39,.42); }
.modal-form { display: grid; gap: 14px; }
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #f8fafc;
}
.editor-toolbar button, .editor-toolbar select {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    box-shadow: none;
    padding: 7px 10px;
    font: inherit;
    font-weight: 800;
}
.editor-toolbar select {
    max-width: 150px;
}
.editor-toolbar .icon-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 36px;
    padding: 0;
}
.align-icon {
    display: grid;
    gap: 3px;
    width: 17px;
}
.align-icon i {
    display: block;
    height: 2px;
    background: #667085;
}
.align-icon i:nth-child(1),
.align-icon i:nth-child(3) {
    width: 17px;
}
.align-icon i:nth-child(2),
.align-icon i:nth-child(4) {
    width: 12px;
}
.align-left i {
    justify-self: start;
}
.align-center i {
    justify-self: center;
}
.align-right i {
    justify-self: end;
}
.align-full i {
    width: 17px;
    justify-self: stretch;
}
.rich-editor {
    min-height: 210px;
    border: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    background: #fff;
    padding: 14px 15px;
    font-weight: 400;
    outline: none;
}
.rich-editor:focus {
    border-color: rgba(198,155,82,.75);
    box-shadow: 0 0 0 4px rgba(198,155,82,.14);
}
.rich-editor img, .public-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.editor-source { display: none; }
.modal-close-form {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 0 12px;
}
.modal-actions .modal-close-form {
    margin: 0;
}
.modal-close-form button {
    background: #f2f4f7;
    color: var(--ink);
    box-shadow: none;
    padding: 9px 12px;
}
.owner-toolbar {
    position: sticky;
    top: 10px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: min(920px, calc(100% - 28px));
    margin: 18px auto -14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 16px 42px rgba(17,24,39,.13);
    backdrop-filter: blur(12px);
}
.owner-toolbar button,
.owner-toolbar a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    color: var(--ink);
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}
.site-preview {
    min-height: 640px;
    margin-top: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background:
        linear-gradient(135deg, var(--site-main), rgba(0,0,0,.22)),
        var(--site-bg);
    color: #fff;
    overflow: hidden;
}
.custom-site-preview {
    background: var(--site-bg);
    color: var(--site-main);
}
.custom-site-preview .public-content,
.custom-site-preview h1 {
    color: var(--site-main);
}
.custom-site-preview .public-pages a,
.custom-site-preview .category-page-list a {
    border-color: color-mix(in srgb, var(--site-accent) 45%, transparent);
    background: color-mix(in srgb, var(--site-accent) 12%, transparent);
    color: var(--site-main);
}
.site-preview-inner {
    width: min(760px, calc(100% - 40px));
    text-align: center;
}
.public-logo {
    display: block;
    max-width: min(240px, 70vw);
    max-height: 120px;
    object-fit: contain;
    margin: 0 auto 26px;
}
.site-preview p {
    margin: 0 0 18px;
    color: var(--site-accent);
    font-weight: 800;
    text-transform: uppercase;
}
.site-preview-line {
    width: 120px;
    height: 4px;
    margin: 28px auto;
    background: var(--site-accent);
}
.public-content { color: rgba(255,255,255,.86); font-size: 18px; }
.public-content a { color: #fff; text-decoration: underline; }
.public-content ul, .public-content ol { display: inline-block; text-align: left; }
.product-price {
    color: var(--site-accent, var(--gold));
    font-size: 24px;
    font-weight: 900;
}
.shop-category-nav { margin: 22px 0; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.product-card {
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255,255,255,.08);
    text-align: left;
}
.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 14px;
}
.product-card h3 { margin: 0 0 8px; }
.product-card a {
    color: #fff;
    text-decoration: none;
}
.product-card p {
    color: var(--site-accent, #fff);
    font-weight: 900;
    margin: 0 0 6px;
}
.product-card small { color: rgba(255,255,255,.72); }
.public-image {
    display: block;
    width: min(720px, 100%);
    max-height: 360px;
    margin: 28px auto 0;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.28);
}
.public-pages {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.public-pages-top {
    margin: 0 0 34px;
}
.public-pages-bottom {
    margin: 36px 0 0;
}
.public-pages a {
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    padding: 9px 13px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-weight: 700;
}
.top-menu-square a,
.bottom-menu-square a {
    border-radius: 6px;
}
.public-pages.top-menu-text a,
.public-pages.bottom-menu-text a {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding-left: 4px;
    padding-right: 4px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: none;
}
.top-menu-small a,
.bottom-menu-small a {
    padding: 6px 10px;
    font-size: 13px;
}
.top-menu-large a,
.bottom-menu-large a {
    padding: 12px 18px;
    font-size: 18px;
}
.top-menu-text.top-menu-small a,
.bottom-menu-text.bottom-menu-small a {
    padding-left: 3px;
    padding-right: 3px;
}
.top-menu-text.top-menu-large a,
.bottom-menu-text.bottom-menu-large a {
    padding-left: 5px;
    padding-right: 5px;
}
.category-page-list {
    display: grid;
    gap: 10px;
    width: min(520px, 100%);
    margin: 24px auto 0;
}
.category-page-list a {
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-weight: 800;
}
@media (max-width: 960px) {
    .app-header, .hero, .home-seo-section, .workspace, .admin-grid, .management-grid, .settings-row, .announcement-settings-grid, .design-panel .template-edit-grid, .logo-source-row, .menu-panel .stack-form, .bottom-menu-settings, .shop-admin-grid, .price-row, .product-grid { grid-template-columns: 1fr; }
    .template-grid, .custom-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .create-site-form .template-edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { min-height: 0; padding: 34px 0; }
    .site-row,
    .page-list-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        overflow: hidden;
    }
    .site-row > div:first-child,
    .page-list-row > div:first-child {
        width: 100%;
        min-width: 0;
    }
    .site-row a,
    .page-list-row a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .site-row .row-actions,
    .page-list-row .row-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .dashboard-site-row {
        grid-template-columns: 1fr;
    }
    .edit-site-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .edit-site-actions {
        margin-top: 14px;
        justify-content: flex-start;
    }
}
@media (max-width: 620px) {
    .app-header nav, .langs { flex-wrap: wrap; }
    .template-grid, .compact, .custom-color-grid, .form-row { grid-template-columns: 1fr; }
    .create-site-form .template-edit-grid { grid-template-columns: 1fr; }
    h1 { font-size: 42px; }
    .site-row,
    .page-list-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .site-row > div:first-child,
    .page-list-row > div:first-child {
        width: 100%;
        min-width: 0;
    }
    .site-row a,
    .page-list-row a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .site-row .row-actions,
    .page-list-row .row-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .panel-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .modal {
        width: calc(100% - 14px);
        padding: 18px;
    }
    .page-edit-modal {
        width: calc(100% - 4px);
        padding: 12px 8px;
    }
    .page-edit-modal .modal-form { gap: 12px; }
    .page-edit-modal .rich-editor {
        min-height: 56vh;
    }
    .page-edit-modal .field-group {
        margin-left: -4px;
        margin-right: -4px;
    }
    .page-edit-modal label {
        margin-left: 2px;
        margin-right: 2px;
    }
    .editor-toolbar {
        gap: 4px;
        padding: 5px;
    }
    .editor-toolbar button,
    .editor-toolbar select {
        min-height: 34px;
        padding: 6px 7px;
        font-size: 14px;
    }
    .rich-editor {
        padding: 12px 10px;
    }
    .editor-toolbar select {
        max-width: 100%;
        flex: 1 1 145px;
    }
}
