:root { --ink: #293a33; --muted: #71796f; --line: #dce0d4; --paper: #f6f6ef; --sage: #3b5a48; }
* { box-sizing: border-box; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #70856d; outline-offset: 4px; }
[hidden] { display: none !important; }
.application-showcase { position: fixed; inset: 20vh 12vw 132px; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 340px); grid-template-rows: repeat(2, minmax(0, 1fr)); justify-content: space-between; gap: 28px 48px; z-index: 3; pointer-events: none; color: var(--ink); font: 14px/1.5 "Segoe UI", sans-serif; }
.showcase-region { display: flex; flex-direction: column; align-items: stretch; gap: 14px; max-height: 100%; overflow-y: auto; padding: 6px; pointer-events: auto; scrollbar-width: thin; }
.showcase-region > * { flex-shrink: 0; }
.region-a { grid-area: 1 / 1 / 3 / 2; align-self: end; }
.region-b { grid-area: 2 / 2 / 3 / 3; align-self: end; }
.region-c { grid-area: 1 / 2 / 2 / 3; align-self: start; }
.single-right .region-b, .single-right .region-c { grid-row: 1 / 3; }
.showcase-heading { display: flex; align-items: center; }
.showcase-heading h2 { min-width: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 0; }
.showcase-controls { display: flex; align-items: center; gap: 8px; }
.showcase-controls button { display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 30px; background: #fffdf7b8; border: 1px solid #cdd2c2; border-radius: 50%; color: #45563e; font-size: 16px; }
.showcase-controls .pause { width: auto; border-radius: 24px; padding: 0 12px; font-size: 11px; }
.showcase-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
[data-card-color="cream"] { --card-background: #fdfcf7; --card-border: #cdd3c3; --card-hover: #fffef9; --card-hover-border: #99aa91; }
[data-card-color="sage"] { --card-background: #eaf1e8; --card-border: #c6d4c1; --card-hover: #f0f6ee; --card-hover-border: #96ad8e; }
[data-card-color="blush"] { --card-background: #f7e8eb; --card-border: #e4cbd2; --card-hover: #fcf0f3; --card-hover-border: #c599a8; }
[data-card-color="lavender"] { --card-background: #efeaf8; --card-border: #d5cce7; --card-hover: #f5f0fc; --card-hover-border: #aea0c6; }
[data-card-color="sky"] { --card-background: #e8f0f8; --card-border: #c5d5e4; --card-hover: #f0f6fc; --card-hover-border: #94adc5; }
[data-card-color="peach"] { --card-background: #faeadd; --card-border: #e5cfbb; --card-hover: #fff1e6; --card-hover-border: #c6a486; }
[data-card-color="mint"] { --card-background: #e5f3ee; --card-border: #c2dcd1; --card-hover: #eefaf5; --card-hover-border: #8fb9a8; }
[data-card-color="butter"] { --card-background: #f6f0dd; --card-border: #ded4b4; --card-hover: #fcf7e8; --card-hover-border: #bfb07f; }
.application-card { min-width: 0; display: flex; align-items: center; gap: 16px; padding: 24px 22px; border: 1px solid var(--card-border, #cdd3c3); background: var(--card-background, #fdfcf7); backdrop-filter: blur(10px); border-radius: 12px; color: var(--ink); text-decoration: none; transition: background .2s, transform .2s, border-color .2s; }
.application-card:hover { transform: translateY(-3px); background: var(--card-hover, #fffef9); border-color: var(--card-hover-border, #99aa91); }
.app-mark { display: inline-flex; width: 48px; height: 48px; flex: 0 0 48px; align-items: center; justify-content: center; border-radius: 12px; background: #e6ebdf; color: #4d654d; font: 600 16px/1 "Segoe UI", sans-serif; letter-spacing: -.04em; overflow: hidden; }
.app-mark img { width: 100%; height: 100%; object-fit: contain; }
.app-copy { min-width: 0; flex: 1; }
.app-copy strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-copy small { display: block; margin-top: 4px; color: #707b68; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-arrow { align-self: flex-start; font-size: 17px; color: #849078; }
.showcase-detail { font-size: 11px; color: #6d7666; }
.showcase-description { font-family: 'Great Vibes', cursive; font-size: clamp(26px, 1.9vw, 34px); line-height: 1.45; font-weight: 400; color: #4b5747; overflow-wrap: anywhere; padding: 4px 3px 12px; }
.showcase-description > :first-child { margin-top: 0; }
.showcase-description > :last-child { margin-bottom: 0; }
.showcase-description p { margin: 0 0 .5em; }
.showcase-description h2, .showcase-description h3 { font: inherit; font-size: 1.2em; margin: .5em 0; }
.showcase-description ul, .showcase-description ol { padding-left: 1.15em; margin: .4em 0; }
.showcase-description blockquote { margin: .4em 0; padding-left: .65em; border-left: 2px solid #a7b29a; }
.showcase-description a { color: inherit; text-underline-offset: 4px; }
.application-showcase.description-in-c { grid-template-rows: minmax(0, 2fr) minmax(0, 1fr); }
.showcase-progress { display: flex; gap: 5px; align-items: center; }
.showcase-progress button { padding: 0; border: 0; width: 18px; height: 3px; background: #c7cdbd; border-radius: 3px; }
.showcase-progress button[aria-current="true"] { background: #4d6849; width: 32px; }
.showcase-empty { background: #fffdf7e6; border: 1px solid var(--line); padding: 22px; border-radius: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.showcase-empty { grid-column: 1 / -1; }
#showcaseStatus { font-size: 12px; }
@media (max-width: 1000px) { .application-showcase { left: 6vw; right: 6vw; column-gap: 28px; } }
@media (max-width: 760px), (max-height: 650px) {
  html:has(.showcase-visible), body.showcase-visible { overflow-y: auto; overflow-x: hidden; }
  .application-showcase { position: relative; inset: auto; width: auto; margin: 40svh 28px 32px; display: flex; flex-direction: column; gap: 24px; }
  .showcase-region { width: min(100%, 380px); max-height: none; overflow: visible; flex-shrink: 0; }
  .region-c { order: 0; align-self: flex-end; }
  .region-a { order: 1; align-self: flex-start; }
  .region-b { order: 2; align-self: flex-end; }
  .showcase-visible footer { position: relative; bottom: auto; padding: 0 16px 24px; }
  .showcase-heading h2 { font-size: 10px; line-height: 1.7; }
  .application-card { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { .application-card { transition: none; } }

.admin-page { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 "Segoe UI", sans-serif; }
.admin-sidebar { width: 224px; position: fixed; inset: 0 auto 0 0; background: #eef0e7; border-right: 1px solid #dfe3d5; display: flex; flex-direction: column; padding: 34px 24px; }
.admin-brand { font: italic 36px/1 Georgia, serif; letter-spacing: -.06em; text-decoration: none; color: var(--ink); }
.admin-brand small { display: block; font: 10px/1.5 "Segoe UI", sans-serif; letter-spacing: .16em; text-transform: uppercase; margin-top: 12px; color: var(--muted); }
.admin-nav { margin-top: 64px; display: grid; gap: 12px; }
.admin-nav a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 6px; text-decoration: none; color: #53644e; }
.admin-nav .active { background: #dce4d3; color: #2c452d; font-weight: 600; }
.admin-sidebar-bottom { margin-top: auto; color: var(--muted); font-size: 12px; }
.admin-sidebar-bottom p { margin-bottom: 16px; }
.text-button { background: none; border: 0; color: #52634b; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.admin-main { margin-left: 224px; padding: 32px 44px 40px; max-width: 1740px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.account-badge { display: inline-flex; gap: 6px; align-items: center; border: 1px solid #d4dcca; padding: 5px 10px; border-radius: 20px; color: #52654d; }
.admin-title { margin: 38px 0 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.admin-title h1 { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.admin-title p { color: var(--muted); margin: 8px 0 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #d4daca; border-radius: 6px; color: var(--ink); background: #fbfcf7; text-decoration: none; white-space: nowrap; }
.button.primary { color: #fffef7; background: var(--sage); border-color: var(--sage); }
.button.danger { color: #fff; background: #9c4940; border-color: #9c4940; }
.summary-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 28px 0; }
.summary-card { border-left: 2px solid #c9d3bf; padding: 2px 18px; }
.summary-card span { color: var(--muted); font-size: 12px; }
.summary-card strong { display: block; font-size: 30px; line-height: 1.5; font-weight: 500; font-variant-numeric: tabular-nums; }
.catalog-panel { margin-top: 34px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fcfcf8; }
.table-toolbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 18px 22px; }
.table-toolbar label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.table-toolbar input { width: 290px; }
.table-toolbar input, .table-toolbar select, .page-size select { border: 1px solid #d9dece; border-radius: 6px; padding: 9px 12px; background: #fffefa; color: var(--ink); }
.table-scroll { overflow-x: auto; }
.catalog-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.catalog-table th { font-size: 11px; letter-spacing: .035em; font-weight: 500; color: #71806b; background: #f0f3ea; padding: 12px 18px; }
.catalog-table td { border-bottom: 1px solid #e8ebdf; padding: 15px 18px; font-size: 13px; }
.catalog-table tr:last-child td { border-bottom: none; }
.catalog-table th:first-child, .catalog-table td:first-child { padding-left: 22px; }
.catalog-table th button { padding: 0; color: inherit; font: inherit; border: 0; background: none; }
.table-app { display: flex; align-items: center; gap: 12px; }
.table-app .app-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 12px; border-radius: 8px; }
.table-app strong { font-size: 13px; font-weight: 600; }
.table-app small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.catalog-table a { color: #6b7862; text-decoration: none; }
.catalog-table a:hover { text-decoration: underline; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 5px; background: #e8efde; color: #516b3d; font-size: 11px; }
.status::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status.draft { background: #eeeee7; color: #797b6e; }
.row-actions, .order-controls { display: flex; align-items: center; gap: 8px; }
.row-actions button { border: 0; background: transparent; color: #596d50; padding: 5px 3px; font-size: 11px; }
.row-actions .delete { color: #a06b61; }
.order-controls { gap: 3px; }
.order-controls span { width: 20px; color: #748069; font-size: 12px; font-variant-numeric: tabular-nums; }
.order-controls button { border: 1px solid #e2e6d9; border-radius: 4px; background: transparent; color: #66775d; width: 22px; height: 25px; }
.table-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 22px; font-size: 12px; color: var(--muted); }
.pagination { display: flex; align-items: center; gap: 10px; }
.pagination button { border: 1px solid #d9dece; border-radius: 4px; padding: 6px 10px; background: #fffefa; color: #59694f; }
.admin-note { color: #808776; font-size: 12px; margin: 18px 0; }
.layout-panel { margin-top: 40px; padding: 26px; background: #fcfcf8; border: 1px solid var(--line); border-radius: 10px; }
.layout-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.layout-heading h2 { margin: 0; font-size: 23px; font-weight: 500; }
.layout-heading p { color: var(--muted); font-size: 13px; max-width: 560px; }
.layout-editor { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(330px, 1fr); gap: 32px; }
.layout-map { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 30px; gap: 12px; min-height: 280px; padding: 20px; border: 1px solid #e1e2d4; border-radius: 8px; background: linear-gradient(125deg, #f2eee4, #edf0e4); }
.layout-zone { border: 1px dashed #a3b195; border-radius: 6px; background: #fffff9b0; padding: 12px; min-width: 0; }
.layout-zone strong { display: flex; align-items: center; gap: 8px; color: #3b5a48; font-size: 20px; }
.layout-zone small { font-size: 11px; font-weight: 400; }
.layout-zone > span { display: block; color: var(--muted); font-size: 11px; margin-top: 8px; overflow-wrap: anywhere; }
.layout-zone-a { grid-area: 2 / 1; } .layout-zone-b { grid-area: 2 / 2; } .layout-zone-c { grid-area: 1 / 2; }
.layout-signature { grid-area: 3 / 1 / 4 / 3; text-align: center; font: italic 22px Georgia, serif; color: #7d8273; }
#layoutFields { margin: 0; padding: 0; border: 0; min-width: 0; }
.layout-setting, .layout-settings-head { display: grid; grid-template-columns: minmax(100px, 1fr) 54px 122px; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #e8ebdf; }
.layout-settings-head { font-size: 11px; color: var(--muted); padding-top: 0; }
.layout-setting label { cursor: pointer; font-size: 13px; }
.layout-setting input { width: 18px; height: 18px; accent-color: var(--sage); margin-left: 10px; }
.layout-setting select { width: 100%; padding: 8px; color: var(--ink); border: 1px solid #d1d9c7; background: #fffefa; border-radius: 5px; font-size: 12px; }
.layout-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1200px) { .layout-editor { grid-template-columns: 1fr; } .layout-map { max-width: 520px; } }
.empty-table { text-align: center; padding: 50px !important; color: var(--muted); }
dialog { border: 1px solid #d4dbca; border-radius: 12px; padding: 28px; background: #fcfcf6; color: var(--ink); max-width: min(530px, calc(100% - 32px)); width: 530px; max-height: calc(100vh - 40px); overflow-y: auto; box-shadow: 0 20px 80px #1f2b2930; }
dialog::backdrop { background: #1f2b2955; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.dialog-heading h2 { font-size: 23px; font-weight: 500; letter-spacing: -.025em; margin: 0; }
.dialog-heading button { border: 0; background: none; font-size: 24px; color: #6d7d62; }
.dialog-description { margin: 4px 0 24px; color: var(--muted); font-size: 12px; }
.field { display: block; margin: 16px 0; color: #4d5d46; font-size: 12px; }
.field input, .field select { display: block; width: 100%; margin-top: 7px; border: 1px solid #d1d9c7; border-radius: 6px; padding: 10px 12px; background: #fffefa; color: var(--ink); }
.field small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.field input[type=file] { font-size: 11px; }
.check-field { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 18px 0; }
.check-field input { accent-color: var(--sage); width: 16px; height: 16px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.form-error { color: #9a433c; font-size: 13px; min-height: 18px; }
.account-controls { display: flex; align-items: center; gap: 16px; }
.login-view { min-height: 100svh; display: grid; place-items: center; padding: 28px 20px; background: radial-gradient(ellipse at 50% 0%, #e5eadb, transparent 65%); }
.login-card { width: min(100%, 420px); background: #fcfcf7; padding: 36px; border: 1px solid var(--line); border-radius: 12px; }
.login-card h1 { font-size: 26px; font-weight: 500; letter-spacing: -.04em; margin: 34px 0 10px; }
.login-card > p { color: var(--muted); font-size: 13px; }
.login-card > .form-error { color: #9a433c; }
.login-card .primary { width: 100%; margin-top: 8px; }
.login-back { display: block; color: var(--muted); font-size: 12px; margin-top: 20px; text-decoration: none; }
.logo-current { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.toast { position: fixed; bottom: 24px; left: calc(50% + 112px); transform: translateX(-50%); z-index: 20; padding: 12px 20px; background: #334c3a; border-radius: 8px; color: white; box-shadow: 0 5px 20px #1e2e2420; max-width: calc(100% - 32px); }
@media (max-width: 1100px) { .admin-sidebar { width: 190px; padding: 30px 20px; } .admin-main { margin-left: 190px; padding: 28px; } .toast { left: calc(50% + 95px); } }
@media (max-width: 760px) {
  .layout-panel { padding: 18px; } .layout-heading { flex-direction: column; gap: 4px; } .layout-setting, .layout-settings-head { grid-template-columns: minmax(80px, 1fr) 42px 110px; gap: 5px; } .layout-setting label { font-size: 12px; } .layout-map { padding: 12px; gap: 8px; } .layout-zone { padding: 8px; } .layout-zone strong { gap: 4px; }
  .admin-sidebar { position: static; width: 100%; flex-direction: row; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); border-right: 0; }
  .admin-brand { font-size: 26px; } .admin-brand small { display: none; }
  .admin-nav { margin: 0; display: flex; font-size: 12px; gap: 4px; } .admin-nav a { padding: 8px; } .admin-sidebar-bottom { display: none; }
  .admin-main { margin: 0; padding: 22px 20px; } .admin-title { align-items: flex-start; margin-top: 26px; } .admin-title h1 { font-size: 28px; } .admin-title p { font-size: 12px; max-width: 210px; }
  .admin-title .button { padding: 10px; font-size: 12px; } .summary-row { gap: 4px; } .summary-card { padding-left: 12px; } .summary-card span { font-size: 11px; }
  .table-toolbar { flex-wrap: wrap; padding: 16px; } .table-toolbar label:first-child { width: 100%; } .table-toolbar input { width: 100%; }
  .table-footer { flex-wrap: wrap; padding: 14px 16px; } .toast { left: 50%; } .account-badge { font-size: 10px; }
}
