:root {
    --gold: #EAAA00;
    --gold-deep: #C89000;
    --gold-soft: #F5D56A;
    --maroon: #3A0F34;
    --live: #E84D65;
    --paid: #159B68;
    --chart: #3A0F34;
    --header: #2A0B26;
    --nav: #3A0F34;
    --ink: #2A1026;
    --muted: #5c6670;
    --cream: #DDE3E8;
    --cream-2: #E7EDF1;
    --line: #c5ced6;
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(58, 15, 52, 0.08);
    --radius: 28px;
    --sans: "Outfit", sans-serif;
    --control-h: 44px;
    --control-radius: 12px;
    --control-border: #c5ced6;
    --control-bg: #fff;
    --ring: 0 0 0 3px color-mix(in srgb, var(--maroon) 22%, transparent);
    --danger: #c8344d;
    --ok: #159B68;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    font-size: 16px;
    line-height: 1.5;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.icon { width: 20px; height: 20px; display: block; }

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
}
.skip:focus { left: 8px; background: white; padding: 8px 12px; z-index: 50; }

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 28px;
    background: var(--header);
    color: #fff;
    border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--header);
    font-weight: 800;
    background: var(--gold);
    box-shadow: none;
}
.brand strong { display: block; font-size: 16px; letter-spacing: -0.03em; }
.brand small { display: block; color: var(--gold-soft); font-weight: 700; letter-spacing: 0.01em; }
.site-links { display: flex; align-items: center; gap: 22px; }
.site-links a { text-decoration: none; font-weight: 600; font-size: 15px; }
.site-links a:hover { color: var(--gold); }
.site-nav .btn { background: var(--gold); color: var(--header); }

.hero {
    padding: 0 24px;
    background:
        linear-gradient(115deg, rgba(42, 11, 38, 0.94) 0%, rgba(58, 15, 52, 0.84) 46%, rgba(42, 11, 38, 0.55) 100%),
        url("../images/events/hero.jpg") center / cover no-repeat;
    color: #fff;
}
.hero-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
    padding: 72px 0 78px;
}
.hero-kicker {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.hero-copy h1 {
    margin: 0;
    max-width: 640px;
    font-size: clamp(38px, 4.6vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 800;
}
.hero-copy p {
    max-width: 520px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn.gold { background: var(--gold); color: var(--header); }
.btn.ghost.light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}
.btn.ghost.light:hover { background: rgba(255, 255, 255, 0.1); }
.hero-mosaic {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 180px 180px;
    gap: 12px;
}
.shot {
    position: relative;
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(16, 4, 24, 0.28);
}
.shot.tall { grid-row: 1 / span 2; }
.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}
.shot figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(42, 11, 38, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.occasion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 36px;
}
.occasion {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 250px;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow);
}
.occasion img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    transition: transform 0.35s ease;
}
.occasion:hover img { transform: scale(1.05); }
.occasion span {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 48px 18px 16px;
    background: linear-gradient(to top, rgba(42, 11, 38, 0.88), transparent);
}
.occasion strong { display: block; font-size: 22px; letter-spacing: -0.03em; }
.occasion em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    color: var(--gold-soft);
    font-size: 13px;
    font-weight: 600;
}

.band { padding: 78px 24px; }
.band.cream { background: var(--cream); }
.frame { max-width: 1120px; margin: 0 auto; }
.section-title {
    margin: 0;
    text-align: center;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.04em;
}
.section-title span { color: var(--maroon); }
.section-sub {
    max-width: 640px;
    margin: 12px auto 0;
    text-align: center;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 22px;
    margin-top: 54px;
}
.feature { display: flex; align-items: center; gap: 14px; }
.feature strong { font-size: 15.5px; line-height: 1.35; font-weight: 700; }

.mark {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    color: white;
    background: var(--maroon);
    box-shadow: 0 10px 18px rgba(72, 24, 88, 0.22);
}
.mark .icon { width: 28px; height: 28px; }
.mark.sm { width: 46px; height: 46px; box-shadow: none; }
.mark.sm .icon { width: 20px; height: 20px; }

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}
.story {
    position: relative;
    margin-top: 28px;
    background: white;
    border-radius: 32px;
    padding: 54px 26px 30px;
    text-align: center;
    box-shadow: var(--shadow);
}
.story-avatar {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 5px solid var(--cream);
    display: grid;
    place-items: center;
    color: white;
    font-size: 26px;
    font-weight: 700;
}
.story h3 { margin: 0 0 6px; font-size: 20px; }
.story p { margin: 12px 0 0; color: #5f584f; }
.stars { color: #e5dccb; letter-spacing: 2px; font-size: 18px; }
.stars .on { color: #f0b429; }

.enquiry-grid, .split, .overview, .stats, .fields.two, .media-grid, .package-grid {
    display: grid;
    gap: 22px;
}
.enquiry-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; margin-top: 28px; }
.stats { grid-template-columns: repeat(4, 1fr); }
.split { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
.overview { grid-template-columns: 360px 1fr; align-items: start; }
.fields.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fields.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.package-grid { grid-template-columns: repeat(3, 1fr); }
.media-grid { grid-template-columns: repeat(4, 1fr); }

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.panel-head { padding: 20px 24px 0; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; font-weight: 700; }
.panel-head p, .lede, .muted { color: var(--muted); }
.panel-body { padding: 16px 24px 20px; }
.kicker {
    margin: 0 0 6px;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.page-head, .row-between {
    display: flex;
    justify-content: space-between;
    gap: 16px 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2px;
}
.page-head > :first-child,
.row-between > :first-child { min-width: 0; flex: 1 1 280px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-actions, .panel-foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    padding: 16px 24px 18px;
    border-top: 1px solid var(--line);
    background: #fbfaf7;
}
.panel > form > .panel-body,
form.panel > .panel-body { padding-bottom: 8px; }
.panel > form > .form-actions,
form.panel > .form-actions { border-radius: 0 0 20px 20px; }
.modal .form-actions, .modal .panel-foot { border-radius: 0 0 22px 22px; }
.form-actions .btn, .panel-foot .btn { min-width: 112px; justify-content: center; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px;
    background: rgba(28, 16, 18, 0.46);
    overflow: auto;
}
.modal.open { display: flex; }
.modal-card {
    width: min(880px, 100%);
    margin: auto;
    background: white;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(20, 8, 12, 0.22);
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px 0;
}
.modal-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.form-kicker {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--maroon);
}
.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.modal-form .panel-body { padding-top: 16px; }
body.modal-open { overflow: hidden; }
.page-title {
    margin: 0;
    font-size: clamp(30px, 3vw, 40px);
    letter-spacing: -0.04em;
    font-weight: 800;
}
.page-title span { color: var(--maroon); }
.lede { margin: 8px 0 0; max-width: 640px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    color: var(--header);
    background: var(--gold);
    box-shadow: none;
}
.btn:hover { filter: brightness(1.03); }
.btn.small { padding: 7px 12px; font-size: 13px; box-shadow: none; min-width: 0; }
.btn.ghost, .btn.danger {
    background: var(--card);
    box-shadow: none;
    border: 1px solid var(--line);
    color: var(--ink);
}
.btn.ghost:hover, .btn.danger:hover { background: var(--cream-2); }
.btn.danger { color: #d23b3b; border-color: #f3b4b4; background: white; }
.btn.maroon { background: var(--maroon); color: white; box-shadow: none; }
.btn .icon { width: 16px; height: 16px; }

.fields { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field[hidden] { display: none !important; }
.field.span-2 { grid-column: span 2; }
.field label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #3c362f;
}
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="color"]):not([type="range"]),
.field select,
.field textarea,
.search input,
.toolbar input,
.toolbar select {
    width: 100%;
    border: 1px solid var(--control-border);
    background: var(--control-bg);
    border-radius: var(--control-radius);
    padding: 10px 12px;
    min-height: var(--control-h);
    color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus, .toolbar input:focus, .toolbar select:focus {
    outline: none;
    border-color: var(--maroon);
    box-shadow: var(--ring);
}
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: auto; }

.banner {
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-weight: 600;
}
.content .banner,
.site-alert {
    position: static;
}
.banner p { margin: 0; }
.banner.good { background: #F4D994; color: var(--header); }
.banner.bad { background: #FCECEF; color: #8d2436; }
.site-alert { max-width: 1120px; margin: 18px auto 0; padding: 0 24px; }

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    background: var(--nav);
    color: rgba(255, 255, 255, 0.78);
}
.site-footer strong { color: #fff; }
.site-footer a { color: var(--gold); font-weight: 700; text-decoration: none; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

.shell { display: flex; height: 100dvh; max-height: 100dvh; overflow: hidden; background: var(--cream); }
.sidebar {
    width: var(--sidebar-width, 272px);
    flex: none;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: var(--nav);
    color: var(--sidebar-text);
    border-right: 0;
    display: flex;
    flex-direction: column;
}
.side-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding: 10px 12px 16px;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--gold) 72%, transparent) transparent;
}
.side-scroll::-webkit-scrollbar { width: 6px; }
.side-scroll::-webkit-scrollbar-track { background: transparent; }
.side-scroll::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--gold) 55%, transparent);
    border-radius: 999px;
}
.side-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}
.side-brand {
    flex: none;
    gap: 12px;
    padding: 18px 16px 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--sidebar-text) 14%, transparent);
}
.side-brand > span { min-width: 0; }
.side-brand strong,
.side-brand small,
.side-user strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-label {
    margin: 18px 10px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b0a496;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    color: var(--sidebar-text, #2c2824);
    max-width: 100%;
}
.nav-link > span:nth-child(2),
.nav-sublink > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-link { transition: background .15s ease, color .15s ease; }
.nav-link:hover { background: #fffaf2; }
.brand-logo { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; }
.nav-link.active { background: #fff6e4; }
.bubble {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff4dc;
    color: #a97808;
    flex: none;
}
.bubble .icon { width: 16px; height: 16px; }
.nav-link.active .bubble {
    color: white;
    background: radial-gradient(circle at 35% 30%, #f8dc86, #e2a61c 48%, #c89212);
}
.nav-count {
    margin-left: auto;
    min-width: 22px;
    text-align: center;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--line);
    font-size: 11px;
    padding: 2px 6px;
    color: #5c534c;
    font-weight: 700;
}
.nav-group { margin: 2px 0; }
.nav-group summary { list-style: none; cursor: pointer; width: 100%; }
.nav-group summary::-webkit-details-marker,
.nav-group summary::marker { display: none; content: none; }
.nav-caret {
    width: 8px;
    height: 8px;
    margin-left: auto;
    flex: none;
    border-right: 2px solid color-mix(in srgb, var(--sidebar-text, #8a8176) 70%, transparent);
    border-bottom: 2px solid color-mix(in srgb, var(--sidebar-text, #8a8176) 70%, transparent);
    transform: rotate(-45deg);
    transition: transform .22s ease;
}
.nav-group[open] .nav-caret { transform: rotate(45deg); }
.nav-group > .nav-sub {
    display: grid;
    grid-template-rows: 0fr;
    margin: 0 0 0 16px;
    padding: 0 8px;
    opacity: 0;
    transition: grid-template-rows .28s ease, opacity .2s ease, margin .28s ease, padding .28s ease;
}
.nav-group[open] > .nav-sub {
    grid-template-rows: 1fr;
    margin: 2px 0 10px 16px;
    padding: 2px 8px 6px;
    opacity: 1;
}
.nav-sub-clip {
    min-height: 0;
    overflow: hidden;
}
.nav-sub {
    display: grid;
    gap: 1px;
}
.nav-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #3d3832;
    font-size: 14px;
    font-weight: 500;
}
.nav-sublink::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid #d5cbbd;
    background: white;
    flex: none;
}
.nav-sublink:hover { background: #fffaf2; }
.nav-sublink.active {
    background: transparent;
    color: #1a1814;
    font-weight: 700;
}
.nav-sublink.active::before { background: var(--gold); border-color: var(--gold); }
.nav-sublink .nav-count {
    background: transparent;
    border: 0;
    color: #8a8176;
    font-weight: 600;
    padding: 0;
}
.side-user {
    flex: none;
    margin-top: 0;
    padding: 12px 14px;
    border-top: 1px solid color-mix(in srgb, var(--sidebar-text) 14%, transparent);
    background: color-mix(in srgb, var(--nav) 88%, black);
    display: flex;
    align-items: center;
    gap: 10px;
}
.side-user .who { min-width: 0; flex: 1; }
.side-user form { margin-left: auto; }
.avatar, .story-avatar {
    font-weight: 800;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    flex: none;
}
.avatar.lg { width: 72px; height: 72px; font-size: 28px; }
img.avatar { object-fit: cover; }
.avatar-upload { display: flex; align-items: center; gap: 16px; }
.account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.account-card { border-radius: 18px; padding: 18px 18px 16px; display: flex; justify-content: space-between; gap: 12px; min-height: 118px; }
.account-card strong { display: block; font-size: 26px; letter-spacing: -0.04em; }
.account-card span { display: block; font-weight: 700; margin-top: 4px; }
.account-card em { display: block; margin-top: 6px; color: var(--muted); font-style: normal; font-size: 13px; font-weight: 500; }
.account-card.peach { background: #fff1e6; }
.account-card.mint { background: #e7f8f3; }
.account-card.green { background: #e8f7ea; }
.account-card.rose { background: #fdecee; }
.account-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.72); color: var(--ink); flex: none; }
.account-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.line-chart { width: 100%; height: 180px; display: block; }
.line-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 8px; }
.chart-key { margin: 4px 0 0; font-size: 13px; font-weight: 700; }
.chart-key.green { color: #2f9e6b; }
.chart-key.rose { color: #e10613; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 18px; margin: 0; }
.detail-grid dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.detail-grid dd { margin: 4px 0 0; font-weight: 700; }
.btn.leave { background: #fff; color: #c47a12; border: 1px solid #e2a04a; border-radius: 999px; }
.btn.leave:hover { background: #fff8ee; }
td small { display: block; color: var(--muted); font-weight: 500; }
@media (max-width: 980px) {
    .account-stats, .account-charts, .detail-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .account-stats, .account-charts, .detail-grid { grid-template-columns: 1fr; }
}
.who { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.profile-menu { position: relative; }
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 999px;
    padding: 4px 14px 4px 4px;
    cursor: pointer;
    font: inherit;
    color: var(--ink);
}
.profile-label { text-align: left; font-weight: 700; line-height: 1.15; }
.profile-label small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.profile-drop {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 230px;
    padding: 8px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 30;
}
.profile-menu.open .profile-drop { display: grid; }
.profile-drop a, .profile-drop button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}
.profile-drop a:hover, .profile-drop button:hover { background: #fff5f5; }
.profile-drop .logout { color: var(--maroon); }
.profile-drop form { margin: 0; }
.profile-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-tabs a, .profile-tabs button {
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.profile-tabs a.active { background: var(--gold); color: var(--header); border-color: var(--gold); }
.profile-tabs form { margin: 0; }
.profile-view { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; align-items: center; }
.profile-view h2 { margin: 0; }
.profile-view .meta-grid { grid-column: 1 / -1; }
.who small, .side-user small { display: block; color: var(--muted); font-size: 12px; }

.workspace { min-width: 0; min-height: 0; display: flex; flex-direction: column; flex: 1; height: 100%; overflow: hidden; }
.topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 12;
}
.top-lead { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.crumb { display: none; line-height: 1.15; }
.crumb span { color: var(--muted); font-size: 12px; font-weight: 700; }
.crumb strong { font-size: 16px; letter-spacing: -0.03em; }
.search { flex: 1; position: relative; max-width: 460px; }
.search .icon {
    position: absolute;
    left: 14px;
    top: 13px;
    color: #b0a496;
}
.search input { padding-left: 40px; border-radius: 999px; background: var(--cream); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: white;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    place-items: center;
}
.content { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 28px 28px 64px; }
.wrap { max-width: 1180px; margin: 0 auto; }
.stack { display: grid; gap: 18px; }
.stack > * { min-width: 0; }

.stat {
    background: white;
    border-radius: 24px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: 28px; letter-spacing: -0.04em; }
.stat span { color: var(--muted); font-size: 14px; }

.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-node {
    width: 100%;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.org-node strong, .pipe strong { display: block; }
.org-node small, .pipe small { color: var(--muted); }
.org-stem { width: 2px; height: 18px; background: #e7c56a; }
.org-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pipe a {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    background: white;
    border-radius: 16px;
    padding: 10px 12px;
    border: 1px solid transparent;
}
.pipe a:hover { border-color: #efd59a; }
.pipe .count {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold-soft);
    color: #8a6208;
    font-weight: 800;
}

.table-wrap { overflow: auto; }
.sheet { width: 100%; border-collapse: separate; border-spacing: 0; }
.sheet th {
    text-align: left;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    font-weight: 600;
    padding: 4px 12px 12px;
    background: transparent;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.sheet th:first-child, .sheet th:last-child { border-radius: 0; }
.sheet td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sheet tbody tr { transition: background .15s ease; }
.sheet tbody tr:hover { background: #fffaf3; }
.sheet a { font-weight: 700; text-decoration: none; }
.sheet a:hover { color: var(--maroon); }

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    background: var(--gold-soft);
    color: #8a6208;
    white-space: nowrap;
}
.pill.maroon { background: #fde8ec; color: #a32034; }
.pill.green { background: #e5f6ef; color: var(--paid); }
.pill.ink { background: #f3f0ea; color: #4d473f; }

.stepper { display: flex; gap: 8px; overflow: auto; padding: 4px 2px 10px; }
.step {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 999px;
    padding: 8px 12px 8px 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--line);
}
.step i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f6efe4;
    font-style: normal;
    font-size: 11px;
}
.step.on { background: #fff6e0; border-color: #e7c56a; }
.step.done i, .step.on i { background: var(--gold-soft); color: var(--header); }

.service-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.service-tile {
    background: white;
    border-radius: 20px;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid var(--line);
    text-decoration: none;
}
.service-tile.on { border-color: #e7c56a; background: #fffaf0; }
.service-tile .mark { margin: 0 auto 8px; width: 54px; height: 54px; }
.service-tile .mark .icon { width: 22px; height: 22px; }
.service-tile strong { display: block; font-size: 13px; }

.quote-doc { background: white; }
.totals { margin-left: auto; width: min(280px, 100%); display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 20px; color: var(--maroon); }

.thread { display: grid; gap: 12px; }
.bubble-note {
    background: var(--cream);
    border-radius: 18px;
    padding: 12px 14px;
}
.bubble-note strong { display: block; }
.checkline {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #f3eadf;
}
.checkline form { margin: 0; }
.done-text { text-decoration: line-through; color: var(--muted); }

.swatch, .shot {
    height: 140px;
    border-radius: 18px;
    display: grid;
    place-items: end start;
    padding: 12px;
    color: white;
    font-weight: 700;
}
.swatch-gold { background: linear-gradient(160deg, #f6d56a, #e0a31a); color: #2a2112; }
.swatch-maroon { background: linear-gradient(160deg, #e36a7c, #c4334a); }
.swatch-cream { background: linear-gradient(160deg, #fff, #f3e4cc); color: #2a2112; }
.swatch-ink { background: linear-gradient(160deg, #6d645c, #2c2824); }
.media-card { display: grid; gap: 8px; }
.media-card p { margin: 0; color: var(--muted); font-size: 13px; }

.empty {
    padding: 28px 8px;
    text-align: center;
    color: var(--muted);
}
.pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding-top: 14px; }
.pager a, .pager span { text-decoration: none; font-weight: 700; }
.pager .off { color: #c8bfb4; }

.login-wrap {
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
    padding: 40px 24px 64px;
    max-width: 1100px;
    margin: 0 auto;
}
.account-list { display: grid; gap: 8px; margin-top: 18px; }
.account-list button, .account-list div {
    text-align: left;
    border: 1px solid var(--line);
    background: white;
    border-radius: 16px;
    padding: 10px 12px;
    cursor: pointer;
}

.fields.two, .fields.three { gap: 16px 18px; align-items: start; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 16px; }
.meta-grid span { display: block; color: var(--muted); letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 600; }

.toolbar, .chart-switch, .chart-legend, .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar { margin-bottom: 14px; }
.toolbar input, .toolbar select {
    height: 44px;
    min-height: 44px;
    border: 1px solid #e4d9c8;
    border-radius: 10px;
    padding: 0 12px;
    font: inherit;
    background: white;
}
.toolbar input { flex: 1; min-width: 180px; }
.actions form { margin: 0; }
.chart-switch button {
    border: 1px solid var(--line);
    background: white;
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.chart-switch button.active { background: var(--gold); color: var(--header); border-color: var(--gold); }
.chart-legend { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 99px; margin-right: 6px; }
.swatch.orders { background: var(--chart); }
.swatch.payments { background: var(--paid); }
.bars { display: flex; align-items: flex-end; gap: 8px; min-height: 210px; overflow-x: auto; }
.bar-col { flex: 1; min-width: 42px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar-pair { display: flex; align-items: flex-end; gap: 4px; height: 180px; }
.bar { width: 12px; border-radius: 8px 8px 3px 3px; background: var(--chart); }
.bar.pay { background: var(--paid); }
.bar-col span { font-size: 12px; color: var(--muted); }
.hint { color: var(--muted); font-size: 12px; }
.check-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.check-row label { display: flex; gap: 8px; align-items: center; font-weight: 600; }

.flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.flow li {
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #3c362f;
}
.quote-add {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
.quote-add > * { min-width: 0; }
.quote-add form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfaf7;
}
.quote-add form .field { margin: 0; }
.quote-add form .btn { margin-top: auto; width: 100%; min-height: var(--control-h); }
.quote-section-layout {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.quote-section-layout > * { min-width: 0; }
.quote-photo {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
}
.quote-photo .file-drop,
.quote-photo .file-drop-body { max-width: 100%; min-width: 0; }
.quote-photo .file-drop-body {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    text-align: center;
    gap: 10px;
    min-height: 168px;
    padding: 16px 14px;
}
.quote-photo .file-drop-copy { justify-items: center; min-width: 0; }
.quote-photo .file-choose,
.quote-photo .file-clear { width: 100%; }
.quote-photo img, .catalog-thumb, .line-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}
.catalog-thumb { width: 96px; height: 72px; }
.line-photo { width: 46px; height: 46px; border-radius: 8px; vertical-align: middle; margin-right: 8px; }
.quote-amount { font-size: 20px; color: var(--maroon); }
.quote-item, .quote-item.new {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.quote-item input[name="name"] { flex: 1 1 160px; min-width: 140px; }
.quote-item input[name="description"] { flex: 1.4 1 180px; min-width: 140px; }
.quote-item input[type="number"] { width: 110px; }
.quote-item img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.quote-item input[type="file"] { font-size: 12px; }
.quote-item .file-drop { flex: 1 1 180px; min-width: 180px; }
.quote-item.new { margin-top: 0; }
.quote-lines { display: grid; gap: 14px; }
.row-actions .quote-amount { white-space: nowrap; line-height: 1; }
.quote-math {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
}
.quote-math div, .quote-math label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fbfaf7;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: #3c362f;
}
.quote-math strong { font-size: 18px; }
.quote-math input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #e4d9c8;
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
}

.proposal {
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 36px 40px 32px;
    box-shadow: var(--shadow);
}
.proposal-top, .proposal-people, .proposal-sign {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 24px;
}
.proposal-brand, .proposal-id { display: flex; gap: 14px; align-items: flex-start; }
.proposal-brand img, .proposal-mark {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    flex: none;
}
.proposal-mark {
    display: grid;
    place-items: center;
    background: #fff4dc;
    color: #8a6208;
    font-size: 28px;
    font-weight: 700;
}
.proposal-brand strong, .proposal-id strong { display: block; font-size: 22px; letter-spacing: -0.03em; }
.proposal-brand span, .proposal-id span, .proposal-people p { display: block; margin: 2px 0 0; color: var(--muted); }
.proposal-id { flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.proposal-id p {
    margin: 0;
    color: var(--gold-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.proposal-banner {
    margin: 22px 0 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff6e4;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.proposal-banner strong { font-size: 18px; }
.proposal-banner.quiet { background: var(--cream); }
.proposal-people { margin-top: 22px; }
.proposal-people div {
    padding: 16px 18px;
    border-radius: 16px;
    background: #fbfaf7;
    border: 1px solid var(--line);
}
.proposal-people span {
    display: block;
    color: var(--gold-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.proposal-people strong { display: block; margin-top: 4px; font-size: 18px; }
.proposal-block { margin-top: 22px; break-inside: avoid; }
.proposal-block header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
}
.proposal-block header > div { flex: 1; min-width: 0; }
.proposal-block header img {
    width: 92px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
}
.proposal-block h2 { margin: 0; font-size: 20px; }
.proposal-block header p {
    margin: 0;
    color: var(--gold-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.proposal-block header span { display: block; color: var(--muted); font-size: 13px; }
.proposal-block header > strong { font-size: 18px; color: var(--maroon); }
.proposal table { width: 100%; border-collapse: collapse; }
.proposal th, .proposal td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #f0e7da;
    vertical-align: middle;
    font-size: 14px;
}
.proposal th { font-size: 12px; color: #4a433c; background: #f6f1e8; }
.proposal-totals {
    margin-top: 22px;
    margin-left: auto;
    width: min(420px, 100%);
    display: grid;
    gap: 8px;
}
.proposal-totals div { display: flex; justify-content: space-between; gap: 16px; }
.proposal-totals .grand {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 20px;
    color: var(--maroon);
}
.proposal-note { margin-top: 18px; }
.proposal-note h3 { margin: 0 0 4px; font-size: 15px; }
.proposal-note p { margin: 0; white-space: pre-wrap; color: #3c362f; }
.proposal-sign { margin-top: 36px; }
.proposal-sign div {
    min-height: 90px;
    border-top: 1px solid #d9cebf;
    padding-top: 10px;
}
.proposal-sign span { display: block; color: var(--muted); font-size: 13px; }
.proposal-thanks {
    margin: 28px 0 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff6e4;
    text-align: center;
    font-size: 15px;
}

@media (max-width: 1100px) {
    .feature-grid, .stats, .service-row { grid-template-columns: repeat(2, 1fr); }
    .story-grid, .package-grid, .media-grid { grid-template-columns: 1fr 1fr; }
    .overview, .split, .enquiry-grid, .login-wrap, .catalog-grid, .move-grid { grid-template-columns: 1fr; }
}
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.act {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: white;
    color: #3c342c;
    display: inline-grid;
    place-items: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.act:hover { background: #fff8ec; border-color: #efd59a; }
.act.gold { color: #8a6208; background: #fff6e4; border-color: #efd59a; }
.act.danger { color: #c4334a; }
.act.danger:hover { background: #fff5f6; border-color: #f3c4cb; }
.act:disabled { opacity: .4; cursor: not-allowed; }
.act .icon { width: 16px; height: 16px; }
.top-facts { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.top-facts span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.top-facts .icon { width: 15px; height: 15px; }
.icon-chip {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    background: white;
    color: var(--ink);
    text-decoration: none;
}
.icon-chip:hover { background: #fff8ec; }
.chip-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--maroon);
    color: white;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
}
.drop-user { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.drop-user strong, .drop-user small { display: block; }
.drop-user small { color: var(--muted); font-weight: 600; }
.nav-scrim { display: none; }
.workspace .kicker { display: none; }
.workspace .page-title { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.workspace .page-title span { color: inherit; }
.workspace .lede { margin-top: 4px; font-size: 14px; }
.workspace .panel { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(58, 15, 52, 0.05); overflow: hidden; }
.workspace .crumb { display: none; }

.mode-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f4f1ea;
    color: #6f675f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}
.cat-head { display: flex; gap: 14px; align-items: flex-start; }
.cat-head .btn { margin-left: auto; }
.cat-head .row-actions { margin-left: auto; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.row-actions form { margin: 0; }
tr.catalog-edit td { background: #faf8f7; padding-top: 8px; }
.ico-tile {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #f6f1e8;
    color: #8a6230;
    flex: none;
}
.ico-tile .icon { width: 18px; height: 18px; }
.ico-tile.sm { width: 34px; height: 34px; border-radius: 10px; }
.ico-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cat-head h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 18px; }
.cat-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.name-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.composer {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 140px 180px auto;
    gap: 12px;
    align-items: end;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #f3eadf;
}
.composer .field label { color: #8a8176; font-size: 12px; font-weight: 600; }
.file-box {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px dashed #e4d9c8;
    border-radius: 10px;
    background: white;
    color: #8a8176;
    font-size: 13px;
    text-align: center;
}
.field .file-box input {
    width: auto;
    max-width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
}
.composer .btn.small { padding: 10px 16px; font-size: 14px; min-height: 44px; }
.workspace .stat, .workspace .account-card { box-shadow: 0 10px 28px rgba(90, 58, 16, 0.06); }

@media (max-width: 860px) {
    .site-links, .top-facts { display: none; }
    .menu-toggle { display: grid; }
    .crumb, .workspace .crumb { display: grid; }
    .topbar { flex-wrap: wrap; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .shell { display: block; height: auto; max-height: none; overflow: visible; }
    body.nav-open { overflow: hidden; }
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 30;
        height: 100dvh;
        max-height: 100dvh;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        width: min(300px, 88vw);
        box-shadow: var(--shadow);
    }
    .sidebar.open { transform: none; }
    .workspace { height: auto; overflow: visible; }
    .nav-scrim { display: none; }
    body.nav-open .nav-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 25;
        background: rgba(28, 16, 18, 0.46);
    }
    .workspace { min-height: 100vh; }
    .content { overflow: visible; }
    .fields.two, .fields.three, .page-head, .row-between, .site-footer { display: grid; }
    .fields.two, .fields.three { grid-template-columns: 1fr; }
    .field.span-2 { grid-column: auto; }
    .form-actions, .panel-foot { flex-direction: column; align-items: stretch; padding: 14px 16px 16px; }
    .form-actions .btn, .panel-foot .btn { width: 100%; }
    .composer, .quote-add, .quote-section-layout { grid-template-columns: 1fr; }
    .quote-math { grid-template-columns: 1fr; }
    .proposal-people, .proposal-sign { grid-template-columns: 1fr; }
    .content { padding: 18px 16px 48px; }
    .story-grid, .package-grid, .media-grid, .feature-grid, .stats, .service-row, .occasion-grid, .hero-layout, .theme-layout, .theme-grid { grid-template-columns: 1fr; }
    .hero-layout { padding: 48px 0 56px; }
    .hero-mosaic { grid-template-rows: 220px 160px; }
}
@media print {
    .sidebar, .topbar, .site-nav, .no-print { display: none !important; }
    .content .banner, .site-alert { position: static; }
    .shell, .workspace, .content { display: block; height: auto; overflow: visible; background: white; }
    .panel { box-shadow: none; }
}

.theme-layout { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 22px; align-items: start; }
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.theme-swatch { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink); }
.theme-swatch input[type="color"] {
    width: 100%;
    height: 42px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
}
.theme-preview {
    display: grid;
    grid-template-columns: 120px 1fr;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--cream);
    color: var(--ink);
}
.theme-preview-side { background: var(--nav); color: var(--sidebar-text); padding: 16px; font-weight: 800; }
.theme-preview-bar { background: var(--header); color: var(--header-text); padding: 12px 14px; font-weight: 700; }
.theme-preview-card {
    margin: 14px;
    padding: 14px;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--card-radius, 16px);
}
.theme-preview-card strong { display: block; font-size: var(--font-h2, 22px); }
.theme-preview-card p { margin: 6px 0 12px; color: var(--muted); font-size: var(--font-body, 16px); }
.theme-preview-btn {
    display: inline-flex;
    padding: 8px 14px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: 1px solid var(--btn-border);
    border-radius: var(--btn-radius, 12px);
    font-size: var(--font-button, 14px);
    font-weight: 700;
}
.theme-studio .hint { display: block; margin: 6px 0 14px; }

.package-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.package-photos figure { margin: 0; }
.package-photos img { width: 100%; height: 140px; object-fit: cover; border-radius: 14px; }
.package-photos form { margin-top: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-head { font-size: 12px; font-weight: 800; color: var(--muted); padding: 0 4px; }
.cal-day { min-height: 92px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.cal-day.muted { opacity: 0.45; }
.cal-day strong { display: block; margin-bottom: 6px; }
.cal-day a { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--maroon); text-decoration: none; }
.panel-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px 16px;
}
.panel-head > div { flex: 1 1 220px; min-width: 0; }
.panel-head > h2,
.panel-head > h3 { flex: 1 1 auto; min-width: 0; }
.panel-head > p:not(.chart-key) { flex: 1 1 100%; margin: 2px 0 0; max-width: 75ch; }
.panel-head > .chart-key,
.panel-head > .pill,
.panel-head > .quote-amount,
.panel-head > .btn,
.panel-head > a.btn { margin: 0 0 0 auto; align-self: center; flex: none; }
.panel-head.row-between { align-items: center; }
.panel-head .row-actions { margin-left: auto; flex: none; }
.work-list { display: grid; gap: 10px; }
.work-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    text-decoration: none;
    background: var(--card);
}
.work-card small { display: block; color: var(--muted); }
.work-status { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; background: var(--cream-2); }
.work-status.submitted { background: #F4D994; }
.work-status.approved { background: #d9f5e8; }
.work-status.rejected { background: #FCECEF; }
.work-photo, .work-photos img { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; }
.work-photos { display: flex; flex-wrap: wrap; gap: 10px; }

.content { background: var(--cream); }
.shell { background: var(--cream); }

.sidebar {
    background: var(--nav);
    border-right-color: transparent;
    color: var(--sidebar-text);
}
.sidebar .brand strong,
.sidebar .nav-link,
.sidebar .side-user,
.sidebar .who { color: #fff; }
.sidebar .brand small,
.sidebar .side-user small,
.sidebar .who small { color: rgba(255, 255, 255, 0.72); }
.sidebar .nav-label { color: var(--gold); }
.sidebar .nav-link:hover,
.sidebar .nav-sublink:hover { background: color-mix(in srgb, var(--gold) 18%, transparent); }
.sidebar .nav-link.active { background: color-mix(in srgb, var(--gold) 28%, transparent); color: var(--sidebar-text); }
.sidebar .bubble { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); }
.sidebar .nav-link.active .bubble {
    color: var(--nav);
    background: var(--gold);
}
.sidebar .nav-caret { border-color: rgba(255, 255, 255, 0.7); }
.sidebar .nav-sublink { color: rgba(255, 255, 255, 0.82); }
.sidebar .nav-sublink::before { border-color: rgba(255, 255, 255, 0.35); background: transparent; }
.sidebar .nav-sublink.active { color: #fff; }
.sidebar .nav-sublink.active::before { background: var(--gold); border-color: var(--gold); }
.sidebar .nav-count { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: #fff; }
.sidebar .nav-sublink .nav-count { background: transparent; color: rgba(255, 255, 255, 0.65); }
.sidebar .side-user { border-top-color: rgba(255, 255, 255, 0.12); }

.topbar {
    background: var(--header);
    border-bottom-color: transparent;
    color: #fff;
}
.topbar .crumb span,
.topbar .crumb strong,
.topbar .top-facts,
.topbar .profile-label { color: #fff; }
.topbar .profile-label small,
.topbar .top-facts { color: rgba(255, 255, 255, 0.72); }
.topbar .menu-toggle,
.topbar .icon-chip {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.topbar .profile-trigger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.topbar .search input { background: #fff; color: var(--ink); }
.chip-count { background: var(--live); }
.profile-drop .logout { color: var(--live); }

[data-modal-open].btn {
    background: var(--gold);
    color: var(--header);
}
.stats .stat:nth-child(3n + 1) { background: #F1E8F8; }
.stats .stat:nth-child(3n + 2) { background: #EDF7FC; }
.stats .stat:nth-child(3n + 3) { background: #FCECEF; }
.stats .stat { box-shadow: none; }

.live-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    background: var(--header);
    color: #fff;
    border-radius: 20px;
    padding: 22px 24px;
}
.live-card p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.72); font-weight: 600; }
.live-card strong { display: block; margin-top: 4px; font-size: 36px; letter-spacing: -0.04em; color: #fff; }
.live-card > div > span:last-child { color: rgba(255, 255, 255, 0.72); }
.live-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--live);
    font-weight: 800;
    font-size: 13px;
}
.live-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
}
.progress-ring {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    background: conic-gradient(#F4D994 0 72%, rgba(255, 255, 255, 0.16) 0);
}
.progress-ring span {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--header);
    display: grid;
    place-items: center;
    align-content: center;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
.progress-ring small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}
.account-card.peach { background: #F1E8F8; }
.account-card.mint { background: #EDF7FC; }
.account-card.rose { background: #FCECEF; }
.chart-key.green { color: var(--paid); }

form select:not([multiple]) {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23481858' stroke-width='2' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
form select:not([multiple]):hover { border-color: #c9b6d4; }
form select:not([multiple]):focus {
    outline: 3px solid rgba(72, 24, 88, 0.22);
    border-color: var(--maroon);
}

.file-drop { position: relative; width: 100%; }
.file-drop input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.file-drop-body {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    padding: 16px;
    border: 1.5px dashed #d9cbe3;
    border-radius: 14px;
    background: #fbf8fc;
    color: var(--ink);
}
.file-drop.is-over .file-drop-body { border-color: var(--maroon); background: #F1E8F8; }
.file-drop.has-file .file-drop-body { border-style: solid; border-color: #c9b6d4; background: #fff; }
.file-drop.is-invalid .file-drop-body { border-color: #E84D65; background: #FCECEF; }
.file-drop-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: none;
    background: #F1E8F8;
    color: var(--maroon);
}
.file-drop-icon svg { width: 20px; height: 20px; display: block; }
.file-drop-copy { min-width: 0; display: grid; gap: 2px; flex: 1; }
.file-drop-copy strong { font-size: 14px; }
.file-drop-meta, .file-drop-name { color: var(--muted); font-size: 12px; font-weight: 600; }
.file-drop.has-file .file-drop-copy strong { display: none; }
.file-drop-name:empty { display: none; }
.file-drop.has-file .file-drop-name { color: var(--ink); font-size: 14px; }
.file-drop-error:empty { display: none; }
.file-drop-error { color: #8d2436; font-size: 12px; font-weight: 700; }
.file-choose, .file-clear {
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    min-height: 38px;
    padding: 8px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    flex: none;
}
.file-choose { background: var(--maroon); color: #fff; }
.file-choose:hover { filter: brightness(1.06); }
.file-clear { background: #fff; color: #E84D65; border: 1px solid #f3b4b4; }
.file-drop.compact .file-drop-body {
    min-height: 44px;
    height: 44px;
    padding: 4px 6px 4px 8px;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
}
.file-drop.compact .file-drop-icon { width: 28px; height: 28px; border-radius: 8px; }
.file-drop.compact .file-drop-icon svg { width: 16px; height: 16px; }
.file-drop.compact .file-drop-copy { display: none; }
.file-drop.compact.has-file .file-drop-copy { display: block; min-width: 0; }
.file-drop.compact.has-file .file-drop-copy strong,
.file-drop.compact.has-file .file-drop-meta,
.file-drop.compact .file-drop-error { display: none; }
.file-drop.compact.is-invalid .file-drop-copy,
.file-drop.compact.is-invalid .file-drop-error { display: block; }
.file-drop.compact .file-drop-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}
.file-drop.compact .file-choose,
.file-drop.compact .file-clear { min-height: 32px; padding: 6px 10px; }
.fin-filters .file-drop,
.staff-form-inline .file-drop,
.toolbar .file-drop,
.fields.two .file-drop,
.fields.three .file-drop {
    min-width: 0;
    max-width: 100%;
}
.fin-filters .file-drop .file-drop-body,
.staff-form-inline .file-drop .file-drop-body,
.toolbar .file-drop .file-drop-body {
    min-height: 42px !important;
    height: 42px !important;
    padding: 4px 8px !important;
    flex-wrap: nowrap;
    overflow: hidden;
}
.fin-filters .file-drop .file-drop-copy strong,
.fin-filters .file-drop .file-drop-meta,
.staff-form-inline .file-drop .file-drop-copy strong,
.staff-form-inline .file-drop .file-drop-meta {
    display: none;
}
.staff-form {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.staff-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
}
.staff-form .file-field {
    grid-column: 1 / -1;
}
.staff-form .file-field .file-drop-body {
    min-height: 88px;
    height: auto;
}
.staff-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.staff-picker {
    display: grid;
    grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1.2fr);
    gap: 12px;
    align-items: end;
}
@media (max-width: 640px) {
    .file-drop-body { flex-wrap: wrap; }
    .file-choose, .file-clear { width: 100%; }
    .staff-picker { grid-template-columns: 1fr; }
}

.ms { position: relative; display: inline-block; vertical-align: middle; min-width: 168px; max-width: 100%; }
.field > .ms { display: block; width: 100%; min-width: 0; }
.toolbar > .ms { flex: 0 1 220px; width: 220px; min-width: 180px; max-width: 100%; }
form > .ms { flex: 1 1 190px; }
.ms-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    pointer-events: none !important;
    appearance: none !important;
}
.ms-face {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 7px 7px 14px;
    border: 1px solid #e4d9c8;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(33, 13, 47, 0.03);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ms-face:hover { border-color: #c9b6d4; background: #fffcfe; }
.ms.is-open .ms-face,
.ms-face:focus-visible {
    border-color: var(--maroon);
    outline: 3px solid rgba(72, 24, 88, 0.18);
    outline-offset: 0;
}
.ms.is-invalid .ms-face { border-color: #E84D65; outline-color: rgba(232, 77, 101, 0.2); }
.ms.is-disabled .ms-face { cursor: not-allowed; background: #faf7f2; color: #8a8178; }
.ms-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ms-value.is-empty { color: var(--muted); font-weight: 500; }
.ms-caret {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex: none;
    background: #F1E8F8;
    color: var(--maroon);
}
.ms.is-open .ms-caret { background: var(--maroon); color: #fff; }
.ms-caret svg { width: 16px; height: 16px; display: block; transition: transform .16s ease; }
.ms.is-open .ms-caret svg { transform: rotate(180deg); }
.ms-menu {
    position: fixed;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(33, 13, 47, 0.16);
    overflow: hidden;
}
.ms-menu[hidden] { display: none; }
.ms-search {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    background: #fbf8fc;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}
.ms-search:focus { outline: 3px solid rgba(72, 24, 88, 0.18); border-color: var(--maroon); background: #fff; }
.ms-search[hidden] { display: none; }
.ms-list { overflow: auto; overscroll-behavior: contain; min-height: 0; }
.ms-group {
    padding: 8px 10px 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ms-opt {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    padding: 9px 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.ms-opt span:first-child { min-width: 0; }
.ms-opt:hover, .ms-opt:focus-visible { background: #F7F1FA; outline: none; }
.ms-opt.is-selected { background: #F4D994; color: var(--header); }
.ms-opt.is-selected:hover, .ms-opt.is-selected:focus-visible { background: #efd07a; }
.ms-opt:disabled { opacity: 0.45; cursor: not-allowed; }
.ms-tick {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #e0d4ea;
    flex: none;
}
.ms-opt.is-selected .ms-tick {
    border-color: var(--maroon);
    background: radial-gradient(circle at center, var(--maroon) 0 3px, #F4D994 3.5px 100%);
}
.ms-empty { padding: 12px 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.sheet td form { align-items: center; }
.sheet td form .ms { flex: 1 1 180px; min-width: 160px; width: auto; }

.field .error { margin: 0; color: #8d2436; font-size: 12px; font-weight: 700; }
.hint { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #F1E8F8;
    color: var(--maroon);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.pill.good { background: #e7f7ef; color: #0f7a4c; }
.pill.warn { background: #F4D994; color: var(--header); }
.pill.muted { background: #f4eee6; color: #6f675f; }
.catalog-grid, .move-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.catalog-page .catalog-card { overflow: hidden; }
.catalog-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.catalog-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.catalog-card-title h2 { margin: 0; }
.catalog-card-body { padding-top: 8px; }
.lookup {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.lookup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    padding: 6px 6px 6px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.lookup-row:hover {
    border-color: color-mix(in srgb, var(--accent, #c4a35a) 45%, var(--line));
    background: #fffdf8;
    box-shadow: 0 1px 0 rgba(48, 24, 40, .04);
}
.lookup-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.lookup-mark {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--header, #3b1f33);
    background: linear-gradient(180deg, #f7efdf, #efe1c4);
}
.lookup-mark.policy {
    background: linear-gradient(180deg, #f3e8f0, #e5d3df);
}
.lookup-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}
.lookup-name {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink, #24161f);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lookup-row small,
.lookup-copy small {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
}
.lookup-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}
.lookup-actions form { margin: 0; }
.lookup .empty {
    list-style: none;
    padding: 14px 12px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.lookup-add, .policy-form { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.lookup-add input {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    border: 1px solid #e4d9c8;
    border-radius: 12px;
    padding: 0 12px;
    font: inherit;
    background: #fff;
}
.policy-form { display: grid; }
.move-actions { display: grid; gap: 8px; min-width: 220px; }
.return-box { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.return-box summary {
    cursor: pointer;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}
.return-box form { padding: 0 12px 12px; }
.return-qty { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.return-qty input { min-height: 40px; }

/* Shared controls. Every form uses these, including fields outside .field. */
::placeholder { color: #9a8fa3; opacity: 1; }
* { scrollbar-width: thin; scrollbar-color: #d7c6e2 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: #d7c6e2;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: #c4aed2; border: 2px solid transparent; }

:where(
    .content input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="color"]):not([type="range"]):not(.ms-search),
    .content select,
    .content textarea,
    .modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="color"]):not(.ms-search),
    .modal select,
    .modal textarea
) {
    width: 100%;
    min-height: var(--control-h);
    padding: 10px 12px;
    border: 1px solid var(--control-border);
    border-radius: var(--control-radius);
    background: var(--control-bg);
    color: var(--ink);
    box-shadow: none;
}
:where(.content textarea, .modal textarea) { min-height: 110px; resize: vertical; }
:where(
    .content input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="color"]):focus,
    .content select:focus,
    .content textarea:focus,
    .modal input:focus,
    .modal select:focus,
    .modal textarea:focus
) {
    outline: none;
    border-color: var(--maroon);
    box-shadow: var(--ring);
}
input:disabled, select:disabled, textarea:disabled,
input[readonly], textarea[readonly] {
    background: #f7f4f8;
    color: #8d8494;
    cursor: not-allowed;
}
textarea[readonly] { cursor: text; }
input:user-invalid, select:user-invalid, textarea:user-invalid,
.dp.is-invalid input, .ms.is-invalid .ms-face {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent);
}

input[type="checkbox"], input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    flex: none;
    border: 1.5px solid #c9b6d4;
    background: #fff;
    display: inline-grid;
    place-content: center;
    vertical-align: -3px;
    cursor: pointer;
}
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked {
    background: var(--maroon);
    border-color: var(--maroon);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}
input[type="radio"]:checked {
    border-color: var(--maroon);
    background: radial-gradient(circle, var(--maroon) 0 4px, #fff 4.5px);
}
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: 0.45; cursor: not-allowed; }
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]),
.check-row label, .check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.dp { position: relative; width: 100%; min-width: 0; }
.dp input { padding-right: 44px; }
.dp.has-time input { color: transparent; caret-color: transparent; }
.dp-value {
    position: absolute;
    left: 12px;
    right: 46px;
    top: 50%;
    transform: translateY(-50%);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
    font-weight: 600;
}
.dp-value.is-empty { color: #9a8fa3; font-weight: 500; }
.dp input::-webkit-calendar-picker-indicator { opacity: 0; display: none; }
.dp-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: #f1e8f8;
    color: var(--maroon);
    cursor: pointer;
}
.dp-btn svg { width: 16px; height: 16px; display: block; }
.dp.is-disabled .dp-btn { opacity: 0.45; cursor: not-allowed; }
.dp-pop {
    position: fixed;
    z-index: 120;
    display: grid;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(33, 13, 47, 0.16);
}
.dp-pop[hidden] { display: none; }
.dp-head, .dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dp-head strong { font-size: 14px; }
.dp-head button, .dp-foot button {
    min-width: 32px;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.dp-head button:hover, .dp-foot button:hover, .dp-day:hover:not(:disabled) { background: #f7f1fa; }
.dp-week, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-week span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.dp-day {
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.dp-day.is-today { box-shadow: inset 0 0 0 1px var(--gold); }
.dp-day.is-selected, .dp-day.is-selected:hover { background: var(--maroon); color: #fff; }
.dp-day:disabled { color: #c8bfd0; cursor: not-allowed; background: transparent; }
.dp-time { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.dp-time label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.dp-time input, .dp-time select {
    width: 100%;
    min-height: 38px;
    text-align: center;
    border: 1px solid var(--control-border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
}
.dp-foot button:last-child { background: var(--maroon); color: #fff; border-color: var(--maroon); }

.ms-clear {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.ms-clear:hover { background: #f1e8f8; color: var(--maroon); }
.ms-face { min-height: var(--control-h); }
.ms-list { scrollbar-width: thin; }

.pager a, .pager span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}
.pager a:hover { border-color: var(--maroon); color: var(--maroon); }
.pager .off { background: #f7f4f8; }

.table-wrap, .modal, .ms-list, .side-scroll, .content { scroll-behavior: smooth; }
.sheet td .dp, .sheet td .ms { min-width: 140px; }
.field input:disabled, .field select:disabled, .field textarea:disabled,
.toolbar input:disabled, .toolbar select:disabled, .search input:disabled {
    background: #f7f4f8;
    color: #8d8494;
    cursor: not-allowed;
}
.toolbar input, .toolbar select { width: auto; }

.wizard { display: grid; gap: 18px; }
.wizard-hero, .wizard-hero-side { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.wizard-hero { flex-wrap: wrap; }
.wizard-hero .page-title { margin: 4px 0; }
.wizard-hero .lede { margin: 0; max-width: 640px; }
.wizard-back { color: var(--maroon); font-size: 13px; font-weight: 700; text-decoration: none; }
.wizard-progress { height: 6px; border-radius: 999px; background: #f1e8f8; overflow: hidden; }
.wizard-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--maroon), var(--gold)); }
.wizard-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wizard-facts article, .wizard-read { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.wizard-facts span, .wizard-read dt { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.wizard-facts strong, .wizard-read dd { display: block; margin-top: 4px; font-size: 16px; }
.wizard-facts small, .wizard-read dd { color: var(--muted); font-size: 13px; font-weight: 600; }
.wizard-rail { display: flex; gap: 8px; overflow: auto; padding-bottom: 4px; }
.wizard-step {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
.wizard-step i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f6efe4;
    font-style: normal;
    font-size: 12px;
}
.wizard-step.is-done { background: #f7f3ea; }
.wizard-step.is-done i { background: var(--gold-soft); color: var(--header); }
.wizard-step.is-current { background: var(--header); color: white; border-color: var(--header); }
.wizard-step.is-current i { background: var(--gold); color: var(--header); }
.wizard-step.is-locked { opacity: .55; }
.wizard-panel .panel-head h2 { margin: 0; }
.wizard-panel .panel-head p { margin: 6px 0 0; }
.wizard-read { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.wizard-read div { min-width: 0; }
.wizard-read dd { margin: 4px 0 0; color: var(--ink); font-size: 15px; }
.wizard-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0; }
.wizard-links a { font-weight: 700; color: var(--maroon); }
.wizard-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.wizard-foot p { margin: 0; color: var(--muted); }
.wizard-team { display: grid; grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; padding: 12px 0; border-top: 1px solid #f3eadf; }
.wizard-team label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.wizard-team select, .wizard-team input { min-height: 40px; }
.wizard-team .span-2 { grid-column: span 2; }
.wizard-team-name small, .wizard-status-list small, .sheet td small { display: block; color: var(--muted); font-size: 12px; }
.wizard-status-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.wizard-status-list div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.bubble-note small { color: var(--muted); }
.bubble-note p { margin: 6px 0 0; }
@media (max-width: 980px) {
    .wizard-facts, .wizard-read { grid-template-columns: 1fr 1fr; }
    .wizard-team { grid-template-columns: 1fr 1fr; }
    .wizard-team-name, .wizard-team .span-2 { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
    .wizard-facts, .wizard-read, .wizard-status-list { grid-template-columns: 1fr; }
    .wizard-foot { align-items: stretch; flex-direction: column; }
}

.item-cell { display: flex; gap: 10px; align-items: center; }
.stock-thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); }
.gallery-drop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1.5px dashed var(--line);
    border-radius: 16px;
    padding: 14px;
    background: var(--cream);
}
.gallery-drop.is-over { border-color: var(--maroon); background: var(--cream-2); }
.gallery-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gallery-picks, .gallery-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.gallery-picks figure, .gallery-card {
    width: 132px;
    margin: 0;
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    background: #fff;
    font-size: 12px;
}
.gallery-picks img, .gallery-card img, .carousel img { width: 100%; height: 88px; object-fit: cover; border-radius: 8px; }
.carousel img { display: none; height: auto; max-height: 420px; object-fit: contain; background: #210D2F; }
.carousel img.is-on { display: block; }
.carousel-nav { display: flex; gap: 8px; margin: 10px 0 16px; }
.set-line { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; background: #fff; }
.set-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
}
.set-picker .field { margin: 0; }
.set-picker .btn { min-height: var(--control-h); }
.set-product {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
}
.set-product-top {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 140px minmax(120px, 160px) auto;
    gap: 12px;
    align-items: end;
}
.set-product-name strong, .set-product-name small { display: block; }
.set-product-name small { color: var(--muted); font-size: 12px; }
.set-avail {
    min-height: var(--control-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream);
}
.set-avail span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.set-avail strong { font-size: 15px; }
.set-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--control-h);
    margin: 0;
    font-weight: 600;
}
.set-product > .field { margin-top: 12px; }
.set-product-top .field { margin-top: 0; }
.set-product-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.set-product-top .btn { align-self: end; min-height: var(--control-h); }
.panel > .form-actions { border-radius: 0 0 var(--radius) var(--radius); }
@media (max-width: 800px) {
    .set-picker, .set-product-top { grid-template-columns: 1fr; }
    .set-product-top .btn { justify-self: start; }
}
.set-new { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--cream); }
.set-new[hidden] { display: none; }
.qty-ok { color: var(--paid); font-weight: 700; }
.qty-short { color: var(--live); font-weight: 700; }
.sheet td small { display: block; color: var(--muted); }
@media (max-width: 720px) {
    .gallery-drop { align-items: stretch; flex-direction: column; }
}

.event-picks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.event-picks label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; }
.qsheet {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    font-family: var(--q-font, Helvetica, Arial, sans-serif);
    font-size: calc(15px * var(--q-scale, 1));
}
.qpage {
    width: min(100%, 820px);
    background: var(--q-paper, #f6f1e6);
    color: var(--q-ink, #2b2824);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(33, 13, 47, 0.12);
}
.qcover {
    position: relative;
    min-height: 640px;
    aspect-ratio: 210 / 297;
    background: var(--q-accent, #6f7c59);
    color: var(--q-cover, #f7f3ea);
}
.qcover-media {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat;
}
.qcover-copy {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: max-content;
    max-width: 58%;
    text-shadow: 0 1px 10px rgba(20, 16, 12, 0.28);
}
.qcover.is-solid .qcover-copy { text-shadow: none; }
.qcover.is-pos-top-left .qcover-copy { top: 6%; left: 6%; align-items: flex-start; text-align: left; }
.qcover.is-pos-top-center .qcover-copy { top: 6%; left: 50%; transform: translateX(-50%); align-items: center; text-align: center; max-width: 76%; }
.qcover.is-pos-top-right .qcover-copy { top: 6%; right: 6%; align-items: flex-end; text-align: right; }
.qcover.is-pos-center-left .qcover-copy { top: 50%; left: 6%; transform: translateY(-50%); align-items: flex-start; text-align: left; }
.qcover.is-pos-center .qcover-copy { top: 50%; left: 50%; transform: translate(-50%, -50%); align-items: center; text-align: center; max-width: 76%; }
.qcover.is-pos-center-right .qcover-copy { top: 50%; right: 6%; transform: translateY(-50%); align-items: flex-end; text-align: right; }
.qcover.is-pos-bottom-left .qcover-copy { bottom: 6%; left: 6%; align-items: flex-start; text-align: left; }
.qcover.is-pos-bottom-center .qcover-copy { bottom: 6%; left: 50%; transform: translateX(-50%); align-items: center; text-align: center; max-width: 76%; }
.qcover.is-pos-bottom-right .qcover-copy { bottom: 6%; right: 6%; align-items: flex-end; text-align: right; }
.qcover.is-solid { background-color: var(--q-accent, #6f7c59); }
.qsheet-title { display: none; margin: 0 0 12px; color: var(--q-accent, #6f7c59); font-size: calc(32px * var(--q-scale, 1)); }
.qservice.has-sheet { background: center/cover no-repeat; }
.qservice.has-sheet .qhero,
.qservice.has-sheet .qbar { display: none; }
.qservice.has-sheet .qsheet-title { display: block; }
.qhero-copy { padding: 36px 32px; }
.qlogo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    margin: 0 0 12px;
}
.qcover h2, .qhero h2 {
    margin: 8px 0;
    font-family: inherit;
    font-size: calc(48px * var(--q-scale, 1));
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 0.95;
}
.qcover p, .qhero p, .qcover em { margin: 0; font-style: normal; }
.qcover strong, .qcover em { display: block; margin-top: 8px; font-size: calc(18px * var(--q-scale, 1)); font-weight: 500; }
.qcover [data-cover-note] { display: block; margin-top: 14px; font-size: 13px; opacity: 0.85; }
.qmark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin: 0 0 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 700;
}
.qhero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
    min-height: 280px;
    background: var(--q-accent, #6f7c59);
    color: var(--q-cover, #f7f3ea);
}
.qhero:not(:has(img)) { grid-template-columns: 1fr; }
.qhero img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.qhero span { display: block; margin-top: 8px; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; }
.qbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin: 18px 22px 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--q-accent, #6f7c59);
    color: var(--q-cover, #f7f3ea);
}
.qbar.slim { margin-top: 22px; }
.qbody { padding: 18px 28px 32px; }
.qbody h3 { margin: 8px 0 12px; color: var(--q-accent, #6f7c59); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.qbody ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qbody li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; }
.qbody li em { color: var(--q-muted, #6d675f); font-style: normal; }
.modal-card.wide { width: min(1180px, 100%); }
.modal-card.confirm { width: min(460px, 100%); }
.confirm-copy { margin: 0; line-height: 1.5; }
.tpl-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 22px; align-items: start; }
.tpl-preview-wrap { display: grid; gap: 8px; }
.tpl-label { margin: 0; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tpl-preview .qcover { min-height: 280px; }
.tpl-preview .qpage { width: 100%; }
.tpl-preview .qhero { min-height: 0; }
.tpl-preview .qhero h2 { font-size: calc(32px * var(--q-scale, 1)); }
.qdeliver { display: grid; gap: 10px; margin: 14px 0 0; }
.qdeliver div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; }
.qdeliver dt { margin: 0; color: var(--q-accent, #6f7c59); font-weight: 700; text-transform: uppercase; font-size: 12px; }
.qdeliver dd { margin: 0; }
.qnotes { margin-top: 22px; }
.qtotals { display: grid; gap: 8px; margin: 18px 0; }
.qtotals div, .qtotals .grand { display: flex; justify-content: space-between; gap: 12px; }
.qtotals .grand { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--q-accent, #6f7c59); color: var(--q-cover, #f7f3ea); }
@media (max-width: 800px) {
    .qhero, .qdeliver div, .qbody li, .tpl-layout { grid-template-columns: 1fr; }
    .qcover { min-height: 420px; }
}
@media print {
    .qpage { box-shadow: none; border-radius: 0; break-after: page; width: 100%; }
}
.crm-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.crm-col { background: #f6f1ea; border: 1px solid var(--line); border-radius: 16px; padding: 10px; min-height: 160px; }
.crm-col h3 { margin: 0 0 10px; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.crm-card { display: grid; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.crm-card p, .crm-card small { margin: 0; }
.crm-card small { color: var(--muted); }
.crm-card form { margin: 0; }
.menu-label { display: inline-flex; align-items: center; gap: 8px; }
.menu-child .menu-label { padding-left: 22px; }
.menu-icon-pick { display: flex; align-items: center; gap: 10px; }
.menu-icon-pick select { flex: 1; }

.wrap:has(.emcal) { max-width: 1480px; }
.emcal { display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.emcal a { text-decoration: none; }
.emcal-head { display: flex; align-items: center; gap: 14px; }
.emcal-mark {
    width: 48px; height: 48px; border-radius: 14px; flex: none;
    display: grid; place-items: center;
    background: var(--maroon); color: var(--gold);
    box-shadow: 0 8px 18px rgba(58, 15, 52, 0.18);
}
.emcal-mark .icon { width: 24px; height: 24px; }
.emcal-head h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; color: var(--maroon); }
.emcal-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.emcal-filters {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 14px 16px; box-shadow: 0 8px 24px rgba(58, 15, 52, 0.05);
}
.emcal-field { display: flex; flex-direction: column; gap: 6px; min-width: 148px; flex: 1; }
.emcal-field span { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.emcal-field select {
    height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
    padding: 0 32px 0 12px; color: var(--ink); appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--maroon) 50%), linear-gradient(135deg, var(--maroon) 50%, transparent 50%);
    background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
    background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.emcal-field select:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
.emcal-check {
    display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px;
    font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink);
}
.emcal-check input { width: 16px; height: 16px; accent-color: var(--maroon); }
.emcal-clear { height: 40px; display: inline-flex; align-items: center; color: var(--maroon); font-weight: 700; font-size: 13px; }
.emcal-create {
    margin-left: auto; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 16px; border-radius: 12px; background: var(--gold); color: var(--maroon);
    font-weight: 700; letter-spacing: -0.01em; box-shadow: 0 8px 16px rgba(234, 170, 0, 0.28);
}
.emcal-create:hover { background: var(--gold-deep); }
.emcal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.emcal-board, .emcal-card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 10px 28px rgba(58, 15, 52, 0.05);
}
.emcal-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px 10px;
}
.emcal-nav-left { display: flex; align-items: center; gap: 8px; }
.emcal-nav h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; color: var(--maroon); }
.emcal-filter-nav { display: inline-flex; align-items: center; gap: 8px; height: 40px; }
.emcal-arrow, .emcal-today {
    height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--maroon); font-weight: 700;
}
.emcal-arrow { width: 36px; font-size: 22px; line-height: 1; }
.emcal-today { padding: 0 12px; font-size: 13px; }
.emcal-arrow:hover, .emcal-today:hover { border-color: var(--gold); background: #fff8e8; }
.emcal-switch { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--cream-2, #f4f1f5); gap: 4px; }
.emcal-switch a { padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); }
.emcal-switch a.is-on { background: var(--maroon); color: #fff; }
.emcal-scroll { padding: 0 12px 12px; }
.emcal-weekdays, .emcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.emcal-weekdays { background: var(--maroon); color: #fff; border-radius: 12px 12px 0 0; overflow: hidden; }
.emcal-weekdays span { padding: 10px 8px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.emcal-grid { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden; }
.emcal-cell {
    min-height: 124px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: #fff; display: flex; flex-direction: column; gap: 4px;
}
.emcal-grid.is-week .emcal-cell { min-height: 220px; }
.emcal-cell:nth-child(7n) { border-right: 0; }
.emcal-cell.is-out { background: #f4f7f9; }
.emcal-cell.is-out .emcal-num { color: #8b97a3; }
.emcal-cell.is-today { box-shadow: inset 0 0 0 2px var(--gold); background: #fffdf6; }
.emcal-cell.is-muhurtham { background: linear-gradient(180deg, #fff8e4 0%, #fff 46%); }
.emcal-cell.is-today.is-muhurtham { background: linear-gradient(180deg, #fff4cc 0%, #fffdf6 50%); }
.emcal-cell-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.emcal-num { margin-left: auto; min-width: 22px; height: 22px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 12px; font-weight: 700; color: var(--maroon); }
.emcal-cell.is-today .emcal-num { background: var(--gold); border-radius: 999px; }
.emcal-muhulabel { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--maroon); font-size: 10px; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emcal-muhutime { margin: 0; color: #8a6a12; font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emcal-star {
    width: 11px; height: 11px; display: inline-block; flex: none; background: var(--gold);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.emcal-chips { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.emcal-chip, .emcal-daycard {
    display: flex; flex-direction: column; gap: 1px; min-width: 0;
    border-radius: 8px; padding: 5px 7px 5px 8px; border-left: 3px solid var(--maroon);
    background: #f4eef3; color: var(--ink);
}
.emcal-chip strong, .emcal-daycard strong { font-size: 11px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emcal-chip small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emcal-chip em, .emcal-pill {
    font-style: normal; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
}
.emcal-chip em::before, .emcal-pill::before, .emcal-legend .status-confirmed::before, .emcal-legend .status-pending::before, .emcal-legend .status-progress::before, .emcal-legend .status-cancelled::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.emcal-chip .status-confirmed, .emcal-pill.status-confirmed, .emcal-legend .status-confirmed { color: #12855a; }
.emcal-chip .status-pending, .emcal-pill.status-pending, .emcal-legend .status-pending { color: #a16207; }
.emcal-chip .status-progress, .emcal-pill.status-progress, .emcal-legend .status-progress { color: #1d4f91; }
.emcal-chip .status-cancelled, .emcal-pill.status-cancelled, .emcal-legend .status-cancelled { color: #c8344d; }
.emcal-chip.type-wedding, .emcal-daycard.type-wedding { background: #fde8f2; border-left-color: #c2185b; }
.emcal-chip.type-reception, .emcal-daycard.type-reception { background: #fff3d6; border-left-color: #c89000; }
.emcal-chip.type-birthday, .emcal-daycard.type-birthday { background: #fff8d8; border-left-color: #d4a017; }
.emcal-chip.type-engagement, .emcal-daycard.type-engagement { background: #f6e8f4; border-left-color: #3a0f34; }
.emcal-chip.type-baby, .emcal-daycard.type-baby { background: #e5f7ee; border-left-color: #12855a; }
.emcal-chip.type-corporate, .emcal-daycard.type-corporate { background: #e7f0fb; border-left-color: #1d4f91; }
.emcal-chip.type-mehendi, .emcal-daycard.type-mehendi { background: #fde8d8; border-left-color: #c45c26; }
.emcal-chip.type-house, .emcal-daycard.type-house { background: #efe8ff; border-left-color: #5b3a8c; }
.emcal-chip.type-other, .emcal-daycard.type-other { background: #eef2f5; border-left-color: #3a0f34; }
.emcal-chip:hover, .emcal-daycard:hover { filter: saturate(1.05) brightness(0.98); }
.emcal-more { font-size: 11px; font-weight: 700; color: var(--maroon); padding: 0 2px; }
.emcal-dayview { padding: 4px 16px 16px; }
.emcal-dayhead { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 8px 4px 14px; }
.emcal-dayhead p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.emcal-dayhead h3 { margin: 2px 0 0; font-size: 28px; letter-spacing: -0.03em; color: var(--maroon); }
.emcal-muhubanner {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
    background: #fff6d8; border: 1px solid #f0d98a; color: var(--maroon);
}
.emcal-muhubanner strong { display: block; }
.emcal-muhubanner small { color: #8a6a12; }
.emcal-daylist { display: flex; flex-direction: column; gap: 10px; }
.emcal-daycard { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border-left-width: 5px; }
.emcal-daytime { width: 84px; flex: none; font-weight: 800; color: var(--maroon); font-size: 13px; }
.emcal-daycopy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.emcal-daycopy strong { font-size: 16px; white-space: normal; }
.emcal-daycopy small { color: var(--muted); }
.emcal-empty { margin: 0; padding: 14px 4px; color: var(--muted); font-size: 13px; }
.emcal-legend {
    display: flex; flex-wrap: wrap; gap: 14px 28px; padding: 12px 16px 16px; color: var(--muted); font-size: 12px;
}
.emcal-legend div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.emcal-legend strong { color: var(--maroon); font-size: 12px; margin-right: 4px; }
.emcal-legend .lg { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.emcal-legend .lg::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--maroon);
}
.emcal-legend .type-wedding::before { background: #c2185b; }
.emcal-legend .type-reception::before { background: #c89000; }
.emcal-legend .type-birthday::before { background: #d4a017; }
.emcal-legend .type-engagement::before { background: #3a0f34; }
.emcal-legend .type-baby::before { background: #12855a; }
.emcal-legend .type-corporate::before { background: #1d4f91; }
.emcal-legend .type-mehendi::before { background: #c45c26; }
.emcal-legend .type-other::before { background: #5c6670; }
.emcal-legend .status-confirmed::before,
.emcal-legend .status-pending::before,
.emcal-legend .status-progress::before,
.emcal-legend .status-cancelled::before { background: currentColor; }
.emcal-legend .muhu::before { display: none; }
.emcal-rail { display: flex; flex-direction: column; gap: 14px; }
.emcal-card { padding: 14px 14px 8px; }
.emcal-card header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.emcal-card h3 { margin: 0; font-size: 15px; color: var(--maroon); letter-spacing: -0.02em; }
.emcal-card header small { color: var(--muted); font-size: 12px; }
.emcal-card header a { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--maroon); }
.emcal-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.emcal-card li + li { border-top: 1px solid var(--line); }
.emcal-card li a {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
    padding: 10px 2px; color: inherit;
}
.emcal-card li a:hover strong { color: var(--maroon); }
.emcal-when { font-size: 11px; font-weight: 700; color: var(--maroon); white-space: nowrap; }
.emcal-copy { min-width: 0; display: flex; flex-direction: column; }
.emcal-copy strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emcal-copy small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emcal-pill { justify-self: end; padding: 3px 8px; border-radius: 999px; background: #f4f7f9; }
.emcal-pill.status-confirmed { background: #e7f6ef; }
.emcal-pill.status-pending { background: #fff6df; }
.emcal-pill.status-progress { background: #e7f0fb; }
.emcal-pill.status-cancelled { background: #fdecef; }
.emcal-muhucard li a { grid-template-columns: 14px minmax(0, 1fr) auto; }
.emcal-source { margin: 8px 2px 8px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.emcal-vendors-row, .vacal-dayvendors li {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 2px;
}
.emcal-vendors-row strong, .vacal-dayvendors strong { display: block; font-size: 13px; }
.emcal-vendors-row small, .vacal-dayvendors small { color: var(--muted); font-size: 11px; }
.emcal-pill.vendor-available { background: #e7f6ef; color: #12855a; }
.emcal-pill.vendor-partial { background: #fff6df; color: #a16207; }
.emcal-pill.vendor-booked { background: #fdecef; color: #c8344d; }
.vacal-cell { text-decoration: none; color: inherit; }
.vacal-cell.state-available { background: #fff; }
.vacal-cell.state-partial { background: linear-gradient(180deg, #fff8e4 0%, #fff 50%); }
.vacal-cell.state-booked { background: linear-gradient(180deg, #fdecef 0%, #fff 50%); }
.vacal-state { font-size: 10px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.vacal-state.vendor-available { color: #12855a; }
.vacal-state.vendor-partial { color: #a16207; }
.vacal-state.vendor-booked { color: #c8344d; }
.emcal-legend .vendor-available::before { background: #12855a; }
.emcal-legend .vendor-partial::before { background: #a16207; }
.emcal-legend .vendor-booked::before { background: #c8344d; }
.vacal-dayvendors { list-style: none; margin: 0 0 16px; padding: 0 4px; }
.vacal-dayvendors li + li { border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
    .emcal-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .emcal-head { flex-wrap: wrap; }
    .emcal-head h1 { font-size: 22px; }
    .emcal-create { margin-left: 0; }
    .emcal-scroll { overflow-x: auto; }
    .emcal-weekdays, .emcal-grid { min-width: 760px; }
    .emcal-daycard { flex-wrap: wrap; }
    .emcal-dayhead { flex-direction: column; align-items: flex-start; }
}


.event-ops-block { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfd; }
.event-ops-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.event-ops-head h3 { margin: 0; font-size: 16px; color: var(--maroon); }
.event-ops-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.event-crew-card { padding: 14px 0; border-top: 1px solid var(--line); }
.event-crew-card:first-of-type { border-top: 0; padding-top: 0; }
.event-crew-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.event-crew-top small { display: block; color: var(--muted); margin-top: 2px; }
.event-crew-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.event-crew-times div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.event-crew-times dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.event-crew-times dd { margin: 4px 0 0; font-weight: 700; color: var(--ink); }
.event-crew-photos { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.event-crew-photos figure, .work-photos figure { margin: 0; width: 112px; }
.event-crew-photos img, .work-photos figure img { width: 112px; height: 112px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.event-crew-photos figcaption, .work-photos figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px; }
.event-crew-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
@media (max-width: 760px) {
    .event-crew-times { grid-template-columns: 1fr 1fr; }
}

.date-multi { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.date-multi input[type=date] { min-width: 160px; }
.purchase-lines { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.purchase-lines-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.purchase-line { margin-bottom: 8px; }

.lead-form { display: flex; flex-direction: column; max-height: min(86vh, 920px); }
.lead-form-body { overflow: auto; padding: 8px 24px 18px; }
.lead-form-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; margin: 0; }
.lead-section + .lead-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.lead-section header { margin-bottom: 12px; }
.lead-section header h3 { margin: 0; font-size: 15px; color: var(--maroon); }
.lead-section header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.lead-form .fields.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lead-form .span-3 { grid-column: 1 / -1; }
.lead-form textarea { min-height: 72px; }
.lead-sublabel { margin: 10px 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.lead-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; max-height: 220px; overflow: auto; padding: 2px; }
.lead-check { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; cursor: pointer; }
.lead-check:has(input:checked) { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: #fffaf0; }
.lead-check input { margin-top: 3px; }
.lead-check strong { display: block; font-size: 13px; }
.lead-check small { color: var(--muted); }
.date-multi { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.date-chip input { min-width: 160px; }
.lead-filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.lead-filters-main { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(140px, 1fr)); gap: 10px; }
.lead-filters-dates { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; }
.lead-filter { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lead-filter span, .lead-date-group > span { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.lead-date-group { display: flex; flex-direction: column; gap: 6px; }
.lead-date-group > div { display: flex; align-items: center; gap: 8px; }
.lead-date-sep { color: var(--muted); font-size: 12px; }
.lead-filter-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 1px; }
@media (max-width: 980px) {
    .lead-filters-main, .lead-form .fields.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .lead-filters-main, .lead-form .fields.three { grid-template-columns: 1fr; }
}

/* ---------- Super admin platform desk ---------- */
.plat-desk { gap: 20px; }
.plat-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 18%, rgba(244, 217, 148, .28), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--header) 92%, #000) 0%, var(--maroon) 58%, color-mix(in srgb, var(--maroon) 70%, #5a2748) 100%);
    color: #fff;
    box-shadow: 0 18px 36px rgba(33, 13, 47, .16);
}
.plat-hero .kicker { color: var(--gold-soft, #F4D994); margin-bottom: 6px; }
.plat-hero .page-title { color: #fff; margin: 0; }
.plat-hero .page-title span { color: var(--gold, #e7c56a); }
.plat-hero .lede { color: rgba(255,255,255,.78); max-width: 560px; margin: 8px 0 0; }
.plat-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plat-hero-actions .btn.ghost {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.22);
    color: #fff;
}
.plat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 14px rgba(33, 13, 47, .04);
}
.plat-nav a {
    padding: 8px 12px;
    border-radius: 11px;
    color: var(--maroon);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.plat-nav a:hover { background: #f7f1e8; }
.plat-nav a.is-on {
    background: var(--maroon);
    color: #fff;
}
.plat-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.plat-tile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 108px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 20px rgba(33, 13, 47, .05);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.plat-tile:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
    box-shadow: 0 14px 28px rgba(33, 13, 47, .08);
}
.plat-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #f4ebe1;
    color: var(--maroon);
}
.plat-tile.tone-gold .plat-tile-icon { background: #f7eccf; color: #8a6418; }
.plat-tile.tone-warn .plat-tile-icon { background: #fde8ea; color: #b42338; }
.plat-tile.tone-soft .plat-tile-icon { background: #f3e8f0; color: var(--maroon); }
.plat-tile-copy { display: grid; gap: 2px; min-width: 0; }
.plat-tile-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.plat-tile-value { font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.plat-tile small { color: var(--muted); font-size: 12px; font-weight: 600; }
.plat-tile-go {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--maroon);
    opacity: .55;
}
.plat-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.plat-shortcuts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--maroon);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
.plat-shortcuts a:hover { background: #faf6f0; }
.plat-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}
.plat-panel-head {
    align-items: flex-start;
}
.plat-panel-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.plat-list-wrap {
    display: grid;
    gap: 8px;
}
.plat-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 10px 10px 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.plat-row:hover { background: #fffdf8; }
.plat-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--header);
    background: linear-gradient(180deg, #f7efdf, #efe1c4);
}
.plat-mark.soft { background: linear-gradient(180deg, #f3e8f0, #e5d3df); }
.plat-row-copy { min-width: 0; }
.plat-row-copy strong {
    display: block;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.plat-row-copy small,
.plat-meta {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.plat-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e7f7ef;
    color: #0f7a4c;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.plat-status.is-held {
    background: #fde8ea;
    color: #b42338;
}
.plat-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}
.plat-inline-form { margin: 0; display: inline-flex; }
@media (max-width: 1100px) {
    .plat-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .plat-split { grid-template-columns: 1fr; }
    .plat-row { grid-template-columns: auto minmax(0, 1fr) auto; }
    .plat-meta { grid-column: 2; }
}
@media (max-width: 640px) {
    .plat-tiles { grid-template-columns: 1fr; }
    .plat-hero { padding: 18px; }
}

/* ---------- Vendor desk ---------- */
.vdesk-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.vdesk-stats article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 18px rgba(33,13,47,.04);
}
.vdesk-stats span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.vdesk-stats strong { display: block; margin-top: 6px; font-size: 24px; letter-spacing: -.03em; }
.vdesk-stats small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; }
.vdesk-list { display: grid; gap: 10px; }
.vdesk-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.vdesk-card-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.vdesk-card-main strong, .vdesk-card-main small { display: block; }
.vdesk-card-main small { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 2px; }
.vdesk-mark {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    font-weight: 800; color: var(--header); background: linear-gradient(180deg, #f7efdf, #efe1c4); flex: 0 0 auto;
}
.vdesk-thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.vdesk-card-meta { display: grid; justify-items: end; gap: 4px; }
.vdesk-card-meta small { color: var(--muted); font-size: 12px; font-weight: 600; }
.vdesk-card-actions { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.vdesk-card-actions form { margin: 0; }
.vdesk-pill {
    display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; background: #f4eee6; color: #6f675f;
}
.vdesk-pill.tone-proposed, .vdesk-pill.tone-revised { background: #fff4d6; color: #8a6418; }
.vdesk-pill.tone-negotiating { background: #f3e8f0; color: var(--maroon); }
.vdesk-pill.tone-agreed, .vdesk-pill.tone-confirmed { background: #e7f7ef; color: #0f7a4c; }
.vdesk-pill.tone-rejected { background: #fde8ea; color: #b42338; }
.vdesk-pill.tone-pay-pending { background: #fff4d6; color: #8a6418; }
.vdesk-pill.tone-pay-advance_paid, .vdesk-pill.tone-pay-partially_paid { background: #eaf2ff; color: #1d4f91; }
.vdesk-pill.tone-pay-paid { background: #e7f7ef; color: #0f7a4c; }
.vdesk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.vdesk-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vdesk-invoice { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vdesk-invoice div { padding: 12px; border-radius: 14px; background: #faf7f2; border: 1px solid var(--line); }
.vdesk-invoice span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.vdesk-invoice strong { display: block; margin-top: 4px; font-size: 18px; }
.vdesk-timeline { display: grid; gap: 10px; }
.vdesk-timeline article { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.vdesk-timeline strong, .vdesk-timeline small, .vdesk-timeline p { display: block; }
.vdesk-timeline small { color: var(--muted); margin: 2px 0 6px; }
.vdesk-creds { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); background: #fffaf0; }
.vdesk-creds code { font-weight: 800; color: var(--maroon); }
@media (max-width: 980px) {
    .vdesk-stats, .vdesk-split, .vdesk-invoice { grid-template-columns: 1fr 1fr; }
    .vdesk-card { grid-template-columns: 1fr; }
    .vdesk-card-meta { justify-items: start; }
}
@media (max-width: 640px) {
    .vdesk-stats, .vdesk-split, .vdesk-invoice { grid-template-columns: 1fr; }
}

.vdesk-table { width: 100%; }
.vdesk-table td, .vdesk-table th { vertical-align: middle; }
.vdesk-table .vdesk-card-actions { justify-content: flex-start; }
.vdesk-pill.tone-progress-new { background: #fff4d6; color: #8a6418; }
.vdesk-pill.tone-progress-confirmed { background: #eaf2ff; color: #1d4f91; }
.vdesk-pill.tone-progress-in_progress { background: #f3e8f0; color: var(--maroon); }
.vdesk-pill.tone-progress-completed { background: #e7f7ef; color: #0f7a4c; }

.vdesk-filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 4px; }
.vdesk-filters-main {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
}
.vdesk-filters-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: end;
}
.vdesk-filter { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vdesk-filter span,
.vdesk-date-group > span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.vdesk-filter input,
.vdesk-filter select,
.vdesk-date-group input {
    min-height: 42px;
    width: 100%;
}
.vdesk-date-group { display: flex; flex-direction: column; gap: 6px; }
.vdesk-date-group > div { display: flex; align-items: center; gap: 8px; }
.vdesk-date-group input { width: auto; min-width: 150px; }
.vdesk-date-sep { color: var(--muted); font-size: 12px; font-weight: 600; }
.vdesk-filter-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 1px; }
.vdesk-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}
.vdesk-row-actions a {
    color: var(--maroon);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.vdesk-row-actions a:hover { border-bottom-color: color-mix(in srgb, var(--gold) 70%, transparent); }
.vdesk-pager { margin-top: 14px; display: flex; justify-content: flex-end; }
@media (max-width: 1100px) {
    .vdesk-filters-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .vdesk-filters-main { grid-template-columns: 1fr; }
    .vdesk-date-group > div { flex-wrap: wrap; }
}
.vinvoice {
    background: #fff;
    border: 1px solid #e7dcc8;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(33,13,47,.08);
}
.vinvoice-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #3b1f33 0%, #5a2748 100%);
    color: #fff;
}
.vinvoice-brand { display: flex; gap: 14px; align-items: center; min-width: 0; }
.vinvoice-brand img, .vinvoice-mark {
    width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #c9a227; flex: 0 0 auto;
}
.vinvoice-mark { display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #3b1f33; }
.vinvoice-brand strong { display: block; font-size: 20px; }
.vinvoice-brand small { display: block; margin-top: 4px; color: #f4d994; }
.vinvoice-meta { text-align: right; }
.vinvoice-kicker { margin: 0; text-transform: uppercase; letter-spacing: .08em; color: #c9a227; font-size: 12px; font-weight: 800; }
.vinvoice-meta h2 { margin: 6px 0; font-size: 22px; }
.vinvoice-meta p { margin: 2px 0; color: rgba(255,255,255,.78); }
.vinvoice-status {
    display: flex; flex-wrap: wrap; gap: 18px; padding: 14px 32px; background: #f7f1e8; border-bottom: 1px solid #e7dcc8;
}
.vinvoice-status span { color: #6f675f; font-size: 13px; }
.vinvoice-grid, .vinvoice-event, .vinvoice-lines, .vinvoice-summary, .vinvoice-payments, .vinvoice-foot { padding: 22px 32px; }
.vinvoice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vinvoice-grid > div, .vinvoice-event {
    border: 1px solid #e7dcc8; border-radius: 16px; padding: 16px 18px; background: #fff;
}
.vinvoice-label { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a6418; }
.vinvoice-grid strong, .vinvoice-event strong { display: block; margin-bottom: 6px; font-size: 16px; }
.vinvoice-grid p, .vinvoice-event p { margin: 2px 0; color: #6f675f; }
.vinvoice-lines table, .vinvoice-payments table { width: 100%; border-collapse: collapse; }
.vinvoice-lines th, .vinvoice-payments th {
    text-align: left; padding: 12px 10px; background: #3b1f33; color: #fff; font-size: 12px;
}
.vinvoice-lines td, .vinvoice-payments td { padding: 14px 10px; border-bottom: 1px solid #eee4d6; vertical-align: top; }
.vinvoice-lines td strong { display: block; }
.vinvoice-lines td small { display: block; margin-top: 4px; color: #6f675f; }
.vinvoice-summary { display: flex; justify-content: flex-end; }
.vinvoice-summary-card {
    width: min(360px, 100%); border: 1px solid #e7dcc8; border-radius: 16px; overflow: hidden; background: #fffaf0;
}
.vinvoice-summary-card div {
    display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f0e4cf;
}
.vinvoice-summary-card div:last-child { border-bottom: 0; }
.vinvoice-summary-card span { color: #6f675f; font-size: 13px; }
.vinvoice-summary-card .is-pending { background: #3b1f33; color: #fff; }
.vinvoice-summary-card .is-pending span, .vinvoice-summary-card .is-pending strong { color: #fff; }
.vinvoice-foot { border-top: 1px solid #e7dcc8; color: #8a847c; font-size: 12px; }
.vinvoice-foot p { margin: 0 0 4px; }
@media print {
    .sidebar, .topbar, .page-head, .no-print, .nav-scrim, .side-user, .brand { display: none !important; }
    .content, .wrap, .stack, body { background: #fff !important; padding: 0 !important; margin: 0 !important; }
    .vinvoice { box-shadow: none; border: 0; border-radius: 0; }
}
@media (max-width: 860px) {
    .vinvoice-head, .vinvoice-grid { grid-template-columns: 1fr; display: grid; }
    .vinvoice-meta { text-align: left; }
}

/* ---------- Finance desk + Staff desk UI ---------- */
.fin-desk, .staff-desk { display: flex; flex-direction: column; gap: 18px; }
.fin-nav, .hr-nav {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px;
}
.fin-nav a, .hr-nav a {
    padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
    color: var(--maroon); font-size: 13px; font-weight: 700; text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.fin-nav a:hover, .hr-nav a:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.fin-nav a.is-on, .hr-nav a.is-on { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.fin-cards {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.fin-card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
    box-shadow: 0 8px 18px rgba(33,13,47,.04);
}
.fin-card span {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted);
}
.fin-card strong { display: block; margin-top: 8px; font-size: 24px; letter-spacing: -.03em; color: var(--ink); }
.fin-card small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; }
.fin-card.tone-gold { background: linear-gradient(180deg, #fffaf0, #fff); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.fin-card.tone-mint { background: linear-gradient(180deg, #f3fbf7, #fff); }
.fin-card.tone-rose { background: linear-gradient(180deg, #fff5f7, #fff); }
.fin-card.tone-sky { background: linear-gradient(180deg, #f3f7ff, #fff); }
.fin-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
}
.fin-tile {
    display: flex; flex-direction: column; gap: 8px; min-height: 160px;
    background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px;
    box-shadow: 0 10px 22px rgba(33,13,47,.04);
}
.fin-tile h2 { margin: 0; font-size: 16px; color: var(--maroon); }
.fin-tile p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1; }
.fin-tile a {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
    color: var(--maroon); font-weight: 700; text-decoration: none; font-size: 13px;
}
.fin-tile a:hover { border-bottom: 1px solid color-mix(in srgb, var(--gold) 70%, transparent); }
.fin-filters {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end;
    margin-bottom: 14px;
}
.fin-filters .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fin-filters label {
    font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.fin-filters input, .fin-filters select { min-height: 42px; width: 100%; }
.fin-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fin-section-head {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between;
    margin-bottom: 12px;
}
.fin-section-head h2 { margin: 0; font-size: 18px; }
.fin-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.fin-cats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
}
.fin-cat {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px;
    text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease;
}
.fin-cat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.fin-cat strong { display: block; font-size: 15px; color: var(--maroon); }
.fin-cat span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.sheet.fin-sheet th { white-space: nowrap; }
.sheet.fin-sheet td.num, .sheet.fin-sheet th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet.fin-sheet tfoot td { font-weight: 800; background: #faf7f2; }
.staff-desk .panel-body > form.fields,
.staff-desk .panel-body > .fin-filters { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.staff-desk .page-title span { color: var(--gold); }
@media (max-width: 1100px) {
    .fin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .fin-cards { grid-template-columns: 1fr; }
}
@media print {
    .fin-nav, .hr-nav, .fin-filter-actions, .no-print { display: none !important; }
}
