@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/assets/fonts/OpenSans-ExtraBold.ttf") format("truetype");
}

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef3f9;
    --ink: #142033;
    --muted: #667387;
    --line: #dce3ee;
    --brand: #0d4fb3;
    --brand-dark: #07377f;
    --accent: #f3c800;
    --danger: #d71920;
    --success: #18805d;
    --shadow: 0 18px 45px rgba(20, 32, 51, 0.08);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
}

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

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

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

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: #111b2f;
    color: #ffffff;
}

.brand-block {
    padding: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand,
.nav-link,
.topbar-user,
.page-heading,
.panel-header,
.list-row,
.check-field {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: #111827;
    font-weight: 900;
    letter-spacing: 0;
}

.brand strong {
    display: block;
    font-size: 1rem;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: #b9c7dc;
}

.nav-list {
    display: grid;
    gap: 4px;
    padding: 14px;
}

.nav-link {
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #dce7f7;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
}

.nav-link.is-active .nav-mark {
    background: var(--accent);
    color: #111827;
}

.nav-mark {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
}

.main-area {
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
}

.topbar-user {
    gap: 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

.content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.page-heading {
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    letter-spacing: 0;
}

h2 {
    margin-bottom: 0;
    font-size: 1rem;
    letter-spacing: 0;
}

.page-subtitle {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.primary-button,
.secondary-button,
.text-button,
.danger-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

.primary-button {
    padding: 0 18px;
    background: var(--brand);
    color: #ffffff;
}

.primary-button:hover {
    background: var(--brand-dark);
}

.primary-button.compact {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.84rem;
}

.secondary-button {
    padding: 0 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
}

.text-button {
    min-height: 34px;
    padding: 0 12px;
    background: var(--surface-soft);
    color: var(--brand);
}

.danger-button {
    min-height: 34px;
    padding: 0 12px;
    background: #fff0f1;
    color: var(--danger);
}

.danger-button:hover {
    background: #ffe1e4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card,
.panel,
.login-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 18px;
}

.stat-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.stat-card.accent {
    border-color: #ead27a;
    background: #fff7cf;
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

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

.project-items-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 18px;
    margin: 18px 0;
    align-items: start;
}

.panel {
    padding: 18px;
}

.panel.wide {
    grid-column: 1 / -1;
}

.form-panel {
    max-width: 920px;
}

.table-panel {
    overflow: hidden;
}

.panel-header {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.panel-header a {
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 800;
}

.list-row {
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.list-row strong,
.list-row span,
.list-row small {
    display: block;
}

.list-row span,
.list-row small,
.empty-state,
.placeholder-panel p {
    color: var(--muted);
}

.list-row span {
    margin-top: 4px;
    font-size: 0.9rem;
}

.empty-state {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fafbfd;
}

.status-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 700;
}

.status-alert.info-alert {
    border-color: #b7cdf1;
    background: #eef5ff;
    color: #184885;
}

.table-helper {
    margin: -4px 0 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(140px, 180px) auto;
    gap: 12px;
    align-items: end;
}

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

.span-2 {
    grid-column: 1 / -1;
}

.field {
    display: block;
}

.field.compact span {
    margin-bottom: 5px;
}

.field small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.82rem;
}

.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--ink);
    background: #ffffff;
}

.field select {
    min-height: 44px;
}

.field textarea:focus,
.field select:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(13, 79, 179, 0.14);
}

.field-error {
    color: var(--danger) !important;
    font-weight: 800;
}

.toggle-field {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
}

.form-actions,
.inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-actions {
    justify-content: flex-end;
    padding-top: 4px;
}

.inline-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.responsive-table {
    overflow-x: auto;
}

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

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

td strong,
td span {
    display: block;
}

td span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.actions-column {
    width: 300px;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 900;
}

.badge.success {
    background: #ecfff7;
    color: var(--success);
}

.badge.muted {
    background: var(--surface-soft);
    color: var(--muted);
}

.badge.danger {
    margin-top: 6px;
    background: #fff0f1;
    color: var(--danger);
}

.choice-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--surface);
}

.checkbox-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.checkbox-card strong,
.checkbox-card small {
    display: block;
}

.checkbox-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.82rem;
}

.template-cover-preview {
    display: block;
    width: min(260px, 100%);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.template-cover-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.page-sequence-editor {
    gap: 10px;
}

.page-sequence-toolbar,
.page-sequence-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.page-sequence-list {
    display: grid;
    gap: 10px;
}

.page-sequence-row {
    display: grid;
    grid-template-columns: 34px minmax(220px, 1.25fr) minmax(180px, 1fr) minmax(150px, 0.7fr);
    gap: 10px;
    align-items: end;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
}

.page-sequence-row > strong {
    display: grid;
    width: 32px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--primary);
}

.page-sequence-row label,
.page-sequence-row label span {
    display: grid;
    gap: 6px;
}

.page-sequence-row label span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.page-sequence-actions {
    grid-column: 2 / -1;
}

.page-sequence-products {
    grid-column: 2 / -1;
}

.page-sequence-products textarea {
    min-height: 96px;
    resize: vertical;
}

.pending-product-row {
    background: #fffdf2;
}

.project-page-row td {
    background: #f3f7ff;
    color: var(--primary);
    font-weight: 900;
}

.project-page-row td span,
.project-page-empty-row td {
    color: var(--muted);
}

.project-page-empty-row td {
    background: #fbfcff;
    font-weight: 800;
}

.pending-product-row td {
    vertical-align: top;
}

.drag-handle {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    margin-right: 6px;
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
    cursor: grab;
    font-weight: 900;
    letter-spacing: 0;
}

tr.is-dragging {
    opacity: 0.55;
}

.is-reordering-items {
    cursor: grabbing;
    user-select: none;
}

.project-item-action-box,
.pending-create-box {
    width: min(280px, 100%);
}

.project-item-action-box summary,
.pending-create-box summary {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    margin: 0 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 10px;
    background: var(--surface);
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 800;
    list-style: none;
}

.project-item-action-box summary::-webkit-details-marker,
.pending-create-box summary::-webkit-details-marker {
    display: none;
}

.project-item-product-form,
.project-item-swap-form,
.project-item-values-form,
.pending-create-form {
    display: grid;
    gap: 8px;
    width: min(280px, 100%);
}

.project-item-values-form label {
    display: grid;
    gap: 5px;
}

.project-item-values-form label span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.project-item-product-form input,
.project-item-product-form select,
.project-item-swap-form select,
.project-item-values-form input,
.project-item-values-form select,
.pending-create-form input {
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 9px;
    color: var(--ink);
    background: #ffffff;
    font-size: 0.86rem;
}

.product-card {
    display: grid;
    grid-template-rows: 210px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.template-card {
    display: grid;
    grid-template-rows: 280px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.template-thumb {
    display: grid;
    place-items: center;
    background: #f7f9fc;
}

.template-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.template-thumb span {
    color: var(--muted);
    font-weight: 800;
}

.template-info {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.template-info p {
    margin-bottom: 0;
    color: var(--muted);
}

.product-thumb {
    display: grid;
    place-items: center;
    background: #f7f9fc;
}

.product-thumb img {
    max-width: 92%;
    max-height: 188px;
    object-fit: contain;
}

.product-thumb span {
    color: var(--muted);
    font-weight: 800;
}

.product-info {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.product-info h2 {
    margin-bottom: 6px;
}

.product-info p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

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

.meta-list dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.meta-list dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.image-gallery-panel {
    margin-top: 18px;
    max-width: 920px;
}

.format-list {
    display: grid;
    gap: 12px;
}

.format-row,
.current-background {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafbfd;
}

.format-row {
    grid-template-columns: 92px 1fr auto;
    padding: 12px;
}

.current-background {
    grid-template-columns: 90px 1fr;
    padding: 12px;
}

.format-preview,
.current-background img {
    display: grid;
    width: 90px;
    height: 112px;
    place-items: center;
    border-radius: 8px;
    background: #eef3f9;
    overflow: hidden;
}

.format-preview img,
.current-background img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.format-preview span,
.current-background span,
.format-row p {
    color: var(--muted);
}

.format-row h3 {
    margin: 0 0 5px;
}

.format-row p {
    margin-bottom: 8px;
}

.slot-editor-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.slot-workspace {
    min-width: 0;
}

.slot-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.compact-select {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 10px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 800;
}

.slot-stage-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111b2f;
    padding: 12px;
}

.slot-stage {
    position: relative;
    width: min(100%, 760px);
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    user-select: none;
}

.slot-stage > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.slot-empty-bg {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--muted);
    font-weight: 900;
}

.slot-layer {
    position: absolute;
    inset: 0;
}

.slot-box {
    position: absolute;
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: start;
    border: 2px solid rgba(13, 79, 179, 0.82);
    border-radius: 6px;
    background: rgba(13, 79, 179, 0.12);
    color: #0b2e6d;
    cursor: move;
    overflow: hidden;
    padding: 4px;
    text-align: left;
}

.slot-box.product_featured {
    border-color: rgba(215, 25, 32, 0.84);
    background: rgba(215, 25, 32, 0.12);
    color: #8b1016;
}

.slot-box.product_daily_single {
    border-color: rgba(215, 25, 32, 0.88);
    background: rgba(255, 242, 0, 0.22);
    color: #8b1016;
}

.slot-box.product_daily_group {
    border-color: rgba(16, 137, 99, 0.86);
    background: rgba(16, 137, 99, 0.12);
    color: #0b654a;
}

.slot-box.validity,
.slot-box.whatsapp,
.slot-box.footer,
.slot-box.free_text {
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(15, 23, 42, 0.24);
    color: #ffffff;
}

.slot-box.is-selected {
    box-shadow: 0 0 0 3px rgba(243, 200, 0, 0.72);
}

.slot-box.is-primary {
    border-style: solid;
}

.slot-box strong {
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
}

.slot-box span {
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.15;
    position: relative;
    z-index: 2;
}

.slot-box i {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 14px;
    height: 14px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    cursor: nwse-resize;
}

.slot-part-box {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(20, 30, 50, 0.72);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.42);
    color: #111827;
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    pointer-events: auto;
    z-index: 1;
}

.slot-part-box.image {
    background: rgba(14, 165, 233, 0.22);
    border-color: rgba(14, 116, 144, 0.78);
}

.slot-part-box.name {
    background: rgba(34, 197, 94, 0.20);
    border-color: rgba(22, 101, 52, 0.78);
}

.slot-part-box.price {
    background: rgba(250, 204, 21, 0.24);
    border-color: rgba(161, 98, 7, 0.82);
}

.slot-part-box.is-active {
    outline: 2px solid #f3c800;
    outline-offset: 1px;
}

.slot-part-box i {
    width: 10px;
    height: 10px;
}

.slot-text-preview {
    position: absolute;
    inset: 4px;
    z-index: 1;
    display: flex;
    align-items: center;
    max-width: calc(100% - 8px);
    overflow: hidden;
    font-style: normal;
    overflow-wrap: anywhere;
    pointer-events: none;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.36);
}

.slot-properties {
    position: sticky;
    top: 86px;
}

.slot-fields {
    display: grid;
    gap: 12px;
}

.slot-empty-message {
    margin-bottom: 16px;
    color: var(--muted);
}

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

.settings-card h3,
.settings-card h4 {
    margin: 0;
    color: var(--ink);
}

.settings-card h3 {
    font-size: 1rem;
}

.settings-card h4 {
    margin-top: 2px;
    font-size: 0.86rem;
}

.settings-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.price-box-designer {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(13, 79, 179, 0.16);
    border-radius: 8px;
    padding: 10px;
    background: #ffffff;
}

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

.price-sync-actions .compact {
    min-height: 36px;
    padding: 8px 9px;
    white-space: normal;
    line-height: 1.1;
}

.price-sync-help {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.3;
}

.price-box-manager-header {
    display: grid;
    gap: 8px;
}

.price-box-manager-header strong {
    display: block;
    color: var(--ink);
    font-size: 0.9rem;
}

.price-box-manager-header small {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.25;
}

.compact-actions {
    justify-content: flex-start;
    gap: 6px;
}

.color-field input[type="color"] {
    min-height: 42px;
    padding: 3px;
}

.price-box-preview {
    display: grid;
    place-items: center;
    min-height: 96px;
    border: 1px dashed rgba(15, 23, 42, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(45deg, rgba(15, 23, 42, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(15, 23, 42, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(15, 23, 42, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(15, 23, 42, 0.05) 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.text-slot-preview {
    display: grid;
    min-height: 96px;
    border: 1px dashed rgba(15, 23, 42, 0.24);
    border-radius: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #092f86, #0b5dcc 48%, #082260);
    overflow: hidden;
}

.text-slot-preview .slot-text-preview {
    position: static;
    inset: auto;
    max-width: 100%;
}

.price-preview-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 158px;
    min-height: 66px;
    padding: 4px 12px 7px;
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 900;
    line-height: 1.15;
    overflow: hidden;
}

.price-preview-shape.is-mini {
    min-width: 70%;
    min-height: 58%;
    max-width: 96%;
    max-height: 86%;
    padding: 1px 5px 3px;
}

.price-preview-integer,
.price-preview-side,
.price-preview-decimals,
.price-preview-comma,
.price-preview-unit {
    display: inline-block;
    line-height: 1.15;
    pointer-events: none;
}

.price-preview-side {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.price-preview-decimals {
    font-weight: 900;
    white-space: nowrap;
}

.price-preview-comma {
    font-family: "Arial Black", Arial, sans-serif;
    vertical-align: baseline;
}

.price-preview-unit {
    margin-top: -1px;
    font-weight: 900;
    letter-spacing: 0;
}

.layout-preset-form {
    align-items: start;
}

.layout-preset-editor {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
    gap: 16px;
    align-items: start;
}

.layout-generator-panel,
.layout-preview-panel,
.layout-rows-panel {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
}

.layout-generator-panel h2,
.layout-preview-panel h2,
.layout-rows-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.layout-generator-panel p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.inline-toggle {
    align-self: end;
    min-height: 44px;
}

.layout-preview-panel {
    grid-column: 2;
    grid-row: 1 / span 3;
}

.layout-preview-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.layout-part-toolbar {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(13, 79, 179, 0.14);
    border-radius: 8px;
    padding: 10px;
    background: #f8fbff;
}

.layout-price-style-toolbar {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(161, 98, 7, 0.20);
    border-radius: 8px;
    padding: 10px;
    background: #fffdf2;
}

.layout-scale-control {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
    gap: 8px;
    align-items: end;
}

.layout-preview-actions .compact,
.secondary-button.compact {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.82rem;
    line-height: 1.1;
    white-space: normal;
}

.layout-ruler-wrap {
    position: relative;
    padding: 18px 0 0 18px;
}

.layout-ruler {
    position: absolute;
    border-color: rgba(15, 23, 42, 0.26);
    color: var(--muted);
    font-size: 0.64rem;
    pointer-events: none;
}

.layout-ruler.horizontal {
    top: 0;
    right: 0;
    left: 18px;
    height: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.22);
    background: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(10% - 1px),
        rgba(15, 23, 42, 0.32) calc(10% - 1px),
        rgba(15, 23, 42, 0.32) 10%
    );
}

.layout-ruler.vertical {
    top: 18px;
    bottom: 0;
    left: 0;
    width: 16px;
    border-left: 1px solid rgba(15, 23, 42, 0.22);
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(10% - 1px),
        rgba(15, 23, 42, 0.32) calc(10% - 1px),
        rgba(15, 23, 42, 0.32) 10%
    );
}

.layout-preset-preview {
    position: relative;
    width: 100%;
    max-height: 680px;
    overflow: hidden;
    border: 1px solid rgba(13, 79, 179, 0.32);
    border-radius: 8px;
    background:
        linear-gradient(rgba(13, 79, 179, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 79, 179, 0.12) 1px, transparent 1px),
        #f8fbff;
    background-size: 10% 10%, 10% 10%;
}

.layout-preset-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.layout-preview-box {
    position: absolute;
    display: grid;
    place-items: center;
    border: 2px solid rgba(13, 79, 179, 0.72);
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.18);
    color: #0b2e6d;
    font-size: 0.76rem;
    font-weight: 900;
    z-index: 2;
    padding: 0;
    cursor: move;
    touch-action: none;
}

.layout-preview-number {
    position: absolute;
    top: 4px;
    left: 5px;
    z-index: 4;
    font-size: 0.72rem;
    line-height: 1;
    pointer-events: none;
}

.layout-preview-box.product_featured {
    border-color: rgba(215, 25, 32, 0.84);
    background: rgba(215, 25, 32, 0.18);
    color: #8b1016;
}

.layout-preview-box.is-selected {
    box-shadow: 0 0 0 3px rgba(243, 200, 0, 0.78);
}

.layout-preview-box > i {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 14px;
    height: 14px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    cursor: nwse-resize;
}

.layout-preview-part {
    position: absolute;
    display: grid;
    place-items: center;
    min-width: 10px;
    min-height: 10px;
    border: 1px dashed rgba(15, 23, 42, 0.72);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.46);
    color: #111827;
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
    cursor: move;
    touch-action: none;
    z-index: 3;
}

.layout-preview-part.image {
    border-color: rgba(14, 116, 144, 0.78);
    background: rgba(14, 165, 233, 0.24);
}

.layout-preview-part.name {
    border-color: rgba(22, 101, 52, 0.78);
    background: rgba(34, 197, 94, 0.20);
}

.layout-preview-part.price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-color: rgba(161, 98, 7, 0.82);
    background: rgba(255, 255, 255, 0.26);
    color: inherit;
}

.layout-preview-box.product_featured .layout-preview-part.price {
    background: rgba(255, 255, 255, 0.26);
    color: inherit;
}

.layout-preview-part.is-active {
    outline: 2px solid #f3c800;
    outline-offset: 1px;
}

.layout-preview-part i {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    cursor: nwse-resize;
}

.layout-rows-panel {
    grid-column: 1;
}

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

.layout-row-item {
    display: grid;
    grid-template-columns: 0.7fr 1fr 0.7fr 0.8fr 0.8fr auto;
    gap: 8px;
    align-items: end;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 8px;
    background: #fafbfd;
}

.layout-row-item strong {
    align-self: center;
    color: var(--ink);
    font-size: 0.84rem;
}

.editor-filter-bar {
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 280px) auto;
}

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

.editor-projects-panel {
    min-width: 0;
}

.editor-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.editor-project-card {
    display: grid;
    grid-template-rows: 190px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.editor-project-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #0f1c30;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 900;
}

.editor-project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editor-project-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.editor-project-title {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.editor-project-title strong,
.editor-project-title span {
    display: block;
}

.editor-project-title strong {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.15;
}

.editor-project-title div > span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.25;
}

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

.editor-progress div,
.editor-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.editor-progress span,
.editor-progress strong {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.editor-progress i {
    display: block;
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: #e9eef6;
}

.editor-progress b {
    display: block;
    width: var(--progress);
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
}

.editor-card-meta {
    display: grid;
    gap: 8px;
    margin: 0;
}

.editor-card-meta div {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
}

.editor-card-meta dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.editor-card-meta dd {
    margin: 0;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.22;
}

.editor-card-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.editor-recent-row {
    color: inherit;
    text-decoration: none;
}

.editor-recent-row:hover strong {
    color: var(--brand);
}

.export-file-cell {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 280px;
}

.export-thumb {
    display: grid;
    overflow: hidden;
    width: 58px;
    height: 72px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 6px;
    background: #0f1c30;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.74rem;
    font-weight: 900;
}

.export-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.editor-main {
    min-width: 0;
}

.editor-toolbar {
    position: sticky;
    z-index: 8;
    top: 78px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.editor-toolbar .compact,
.danger-button.compact {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.84rem;
}

.editor-page-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.editor-page-tab {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 10px;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
}

.editor-page-tab.is-active {
    border-color: var(--primary);
    background: #edf4ff;
    color: var(--primary);
}

.template-slot-page-tabs {
    margin-bottom: 12px;
}

.editor-toolbar-divider {
    width: 1px;
    height: 28px;
    background: var(--line);
}

.editor-check {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.editor-zoom,
.editor-status {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 800;
}

.editor-zoom {
    width: 64px;
    justify-content: center;
    background: var(--surface-soft);
    color: var(--ink);
}

.editor-status {
    margin-left: auto;
    padding: 0 10px;
    background: var(--surface-soft);
    color: var(--muted);
}

.editor-status[data-tone="success"] {
    background: #ecfff7;
    color: var(--success);
}

.editor-status[data-tone="pending"] {
    background: #fff7cf;
    color: #7b5c00;
}

.editor-status[data-tone="error"] {
    background: #fff0f1;
    color: var(--danger);
}

.editor-stage-wrap {
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 520px;
    height: clamp(520px, calc(100vh - 235px), 860px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111b2f;
    padding: 14px;
}

.editor-stage {
    display: grid;
    width: 100%;
    height: 100%;
    min-width: 0;
    place-items: center;
}

.editor-stage .canvas-container {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
    max-width: 100%;
    max-height: 100%;
}

.editor-stage canvas {
    display: block;
}

.editor-stage canvas.lower-canvas {
    background: #ffffff;
}

.editor-stage canvas.upper-canvas {
    background: transparent;
}

.editor-side {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 14px;
}

.editor-item-settings[hidden] {
    display: none;
}

.editor-item-settings .form-stack {
    gap: 12px;
}

.editor-meta,
.editor-shortcuts {
    display: grid;
    gap: 10px;
    margin: 0;
}

.editor-meta div,
.editor-shortcuts div {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 10px;
    align-items: baseline;
}

.editor-meta dt,
.editor-shortcuts dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.editor-meta dd,
.editor-shortcuts dd {
    min-width: 0;
    margin: 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.editor-item-list {
    display: grid;
    gap: 8px;
    max-height: 430px;
    overflow: auto;
    padding-right: 4px;
}

.editor-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    width: 100%;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: #fafbfd;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.editor-item:hover,
.editor-item.is-active {
    border-color: var(--brand);
    background: #eef5ff;
}

.editor-item-thumb {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #eef3f9;
}

.editor-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.editor-item-thumb i {
    color: var(--muted);
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

.editor-product-tools {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 10px;
}

.editor-product-tools summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 900;
}

.editor-product-tools[open] summary {
    margin-bottom: 10px;
}

.editor-empty-slot-list {
    display: grid;
    gap: 8px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}

.editor-empty-slot {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafbfd;
    padding: 10px;
}

.editor-empty-slot summary {
    cursor: pointer;
    font-weight: 900;
}

.editor-empty-slot summary small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-weight: 800;
}

.editor-empty-slot[open] summary {
    margin-bottom: 10px;
}

.editor-empty-slot-form {
    gap: 10px;
}

.editor-item strong,
.editor-item small {
    display: block;
}

.editor-item strong {
    line-height: 1.2;
}

.editor-item small {
    margin-top: 5px;
    color: var(--muted);
    font-weight: 800;
}

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

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.image-tile {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fafbfd;
}

.image-tile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.image-tile span {
    color: var(--muted);
}

.trash-row {
    align-items: flex-start;
}

nav[role="navigation"] {
    margin-top: 18px;
}

nav[role="navigation"] > div:first-child {
    display: none;
}

nav[role="navigation"] > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

nav[role="navigation"] span[aria-current="page"] span,
nav[role="navigation"] a,
nav[role="navigation"] span[aria-disabled="true"] span {
    display: inline-flex;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

nav[role="navigation"] span[aria-current="page"] span {
    background: var(--brand);
    color: #ffffff;
}

.placeholder-panel {
    max-width: 720px;
}

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

.backup-info-grid article {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.backup-info-grid strong {
    color: var(--ink);
    font-size: 0.95rem;
}

.backup-info-grid span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.stacked-action {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.stacked-action input[type="file"] {
    width: 100%;
    min-height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
}

.stacked-action .toggle-field {
    padding: 10px;
    background: #ffffff;
}

.audit-details {
    display: block;
    max-width: 380px;
    overflow: hidden;
    padding: 8px;
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-version-list {
    display: grid;
    gap: 10px;
}

.project-version-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.project-version-row strong,
.project-version-row span {
    display: block;
}

.project-version-row span {
    color: var(--muted);
    font-size: 0.86rem;
}

.status-pill {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #fff3b6;
    color: #6f5200;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.notice,
.form-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
}

.notice {
    position: relative;
    border: 1px solid #c6eadb;
    background: #ecfff7;
    color: var(--success);
    font-weight: 800;
}

.notice.is-error {
    border-color: #ffd1d4;
    background: #fff3f4;
    color: var(--danger);
}

.notice ul {
    margin: 8px 24px 0 18px;
    padding: 0;
}

.notice li {
    margin: 3px 0;
}

.notice button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.notice button::before,
.notice button::after {
    position: absolute;
    top: 8px;
    left: 2px;
    width: 14px;
    height: 2px;
    background: currentColor;
    content: "";
}

.notice button::before {
    transform: rotate(45deg);
}

.notice button::after {
    transform: rotate(-45deg);
}

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

.icon-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px auto;
    background: var(--ink);
}

.auth-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: linear-gradient(120deg, rgba(13, 79, 179, 0.94), rgba(17, 27, 47, 0.98));
}

.auth-panel {
    display: grid;
    width: min(940px, 100%);
    grid-template-columns: 1fr 420px;
    gap: 22px;
    align-items: stretch;
}

.auth-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    color: #ffffff;
}

.auth-intro h1 {
    margin: 18px 0 10px;
}

.auth-intro p {
    max-width: 500px;
    margin-bottom: 0;
    color: #dbe8ff;
    line-height: 1.7;
}

.login-card {
    padding: 28px;
}

.login-card h2 {
    margin-bottom: 22px;
    font-size: 1.35rem;
}

.form-alert {
    border: 1px solid #f3b8bc;
    background: #fff0f1;
    color: var(--danger);
}

.form-stack {
    display: grid;
    gap: 16px;
}

.field span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--ink);
}

.field input:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(13, 79, 179, 0.14);
}

.check-field {
    gap: 9px;
    color: var(--muted);
}

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

    .sidebar {
        position: fixed;
        z-index: 20;
        width: 272px;
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .icon-button {
        display: inline-grid;
    }

    .stats-grid,
    .dashboard-grid,
    .product-grid,
    .template-grid,
    .editor-hub-grid,
    .editor-project-grid,
    .image-gallery,
    .auth-panel {
        grid-template-columns: 1fr;
    }

    .slot-editor-shell,
    .editor-shell,
    .layout-preset-editor {
        grid-template-columns: 1fr;
    }

    .layout-preview-panel,
    .layout-rows-panel {
        grid-column: auto;
        grid-row: auto;
    }

    .project-items-layout {
        grid-template-columns: 1fr;
    }

    .page-sequence-row {
        grid-template-columns: 1fr;
    }

    .page-sequence-row > strong {
        width: 100%;
    }

    .page-sequence-actions,
    .page-sequence-products {
        grid-column: auto;
    }

    .slot-properties,
    .editor-side,
    .editor-toolbar {
        position: static;
    }

    .editor-stage-wrap {
        height: min(72vh, 620px);
        min-height: 360px;
    }

    .format-row {
        grid-template-columns: 80px 1fr;
    }

    .format-row .inline-actions {
        grid-column: 1 / -1;
    }

    .filter-bar,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .auth-intro {
        padding: 12px 4px;
    }
}

@media (max-width: 680px) {
    .content {
        width: min(100% - 28px, 1180px);
        padding-top: 20px;
    }

    .topbar {
        padding: 0 14px;
    }

    .topbar-user span {
        display: none;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .heading-actions {
        width: 100%;
        justify-content: stretch;
    }

    .heading-actions a,
    .heading-actions button {
        flex: 1;
    }

    .card-footer,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions a,
    .form-actions button,
    .inline-actions,
    .inline-actions form,
    .inline-actions button,
    .inline-actions a {
        width: 100%;
    }

    .editor-toolbar {
        align-items: stretch;
    }

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

    .editor-toolbar .compact,
    .danger-button.compact,
    .editor-check,
    .editor-status {
        flex: 1 1 120px;
    }

    .editor-status {
        margin-left: 0;
    }

    .editor-toolbar-divider {
        display: none;
    }
}
