:root {
  color-scheme: light;
  --ink: #26291f;
  --muted: #85887c;
  --paper: #f0efe8;
  --white: #f8f7f1;
  --surface: #f7f6f0;
  --line: #e1e0d7;
  --green: #667c50;
  --green-dark: #4e633a;
  --green-pale: #edf1e7;
  --orange: #dc835e;
  --orange-pale: #fff0e8;
  --yellow: #e4b84e;
  --shadow: 0 8px 28px rgb(48 52 39 / 5%);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6e9df;
  --muted: #a6ac9d;
  --paper: #171a17;
  --white: #232823;
  --surface: #1e231e;
  --line: #373e36;
  --green: #9bb681;
  --green-dark: #b3cc99;
  --green-pale: #2c3629;
  --orange-pale: #382b25;
  --shadow: 0 8px 28px rgb(0 0 0 / 22%);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #adc28d; outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 248px; flex: 0 0 248px; min-height: 100vh; background: var(--surface); border-right: 1px solid var(--line); padding: 28px 17px 18px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 0 41px 4px; font-size: 19px; font-weight: 700; letter-spacing: -.8px; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; background: var(--green); color: white; border-radius: 9px 9px 9px 3px; font: 700 20px Georgia, serif; }
.brand-period { color: var(--orange); }
.eyebrow { display: block; color: #a0a297; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.exhibition-switcher { padding: 0 7px; }
.exhibition-name { display: flex; align-items: center; gap: 9px; height: 42px; margin-top: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-weight: 600; }
.exhibition-dot, .live-pill span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #93a975; }
.chevron { margin-left: auto; color: var(--muted); font-size: 15px; }
.nav-label { padding: 31px 10px 10px; }
.main-nav { display: grid; gap: 4px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 11px; color: #75796c; border-radius: 7px; font-size: 12px; font-weight: 500; transition: .15s ease; }
.nav-link:hover { background: #f7f8f4; color: var(--ink); }
.nav-link.active { background: var(--green-pale); color: var(--green-dark); font-weight: 700; }
.nav-icon { width: 17px; text-align: center; font-size: 15px; }
.nav-count { margin-left: auto; min-width: 20px; padding: 3px 6px; border-radius: 10px; background: #f1f1ec; color: #818477; text-align: center; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.profile-row { display: flex; align-items: center; gap: 9px; padding: 16px 4px 0; border-top: 1px solid var(--line); }
.avatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; background: #f4e4d8; color: #8f654e; font-size: 12px; font-weight: 700; border: 0; }
.profile-copy { min-width: 0; display: grid; gap: 3px; }
.profile-copy strong { font-size: 11px; }
.profile-copy span { color: var(--muted); font-size: 10px; }
.icon-button { border: 0; background: transparent; color: #8e9184; }
.profile-menu { margin-left: auto; font-size: 18px; }
.main-area { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar { height: 67px; flex: 0 0 67px; display: flex; align-items: center; justify-content: space-between; padding: 0 5.2%; background: rgb(248 247 241 / 82%); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #929588; font-size: 11px; }
.breadcrumb strong { color: #414438; font-weight: 600; }
.slash { color: #c2c4ba; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.live-pill { display: flex; align-items: center; gap: 7px; color: var(--green-dark); font-size: 9px; font-weight: 700; letter-spacing: .6px; }
.live-pill span { width: 6px; height: 6px; background: #87a36d; }
.role-switch { display: flex; align-items: center; gap: 7px; color: #929588; font-size: 10px; }
.role-switch select { border: 1px solid var(--line); border-radius: 6px; padding: 7px 25px 7px 8px; color: var(--ink); background: #fff; font-size: 10px; font-weight: 600; }
.auth-button { min-height: 29px; padding: 0 10px; font-size: 9px; white-space: nowrap; }
.small-avatar { width: 29px; height: 29px; flex-basis: 29px; }
.page-content { width: min(1130px, 100%); flex: 1; margin: 0 auto; padding: 37px 5.2% 47px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 25px; }
.page-kicker { margin: 0 0 7px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; font: 600 31px/1.18 "Playfair Display", Georgia, serif; letter-spacing: -.6px; }
.page-description { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; font-size: 10px; font-weight: 700; transition: .15s ease; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border-color: var(--line); background: #fff; color: #515548; }
.button-secondary:hover { border-color: #cbd2c1; background: #fafbf8; }
.theme-toggle { min-height: 29px; padding: 0 10px; font-size: 9px; white-space: nowrap; }
.button-danger { border-color: #f1d8d0; background: #fff9f6; color: #a6533b; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--green-dark); font-size: 10px; font-weight: 700; }
.welcome-banner { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; min-height: 160px; padding: 26px 31px; margin-bottom: 22px; background: #edf1e7; border-radius: 10px; }
.welcome-banner::after { content: ""; position: absolute; width: 213px; height: 213px; right: 49px; top: -84px; border: 1px solid rgb(102 124 80 / 16%); border-radius: 45% 55% 60% 40%; transform: rotate(32deg); box-shadow: 0 0 0 22px rgb(102 124 80 / 3%), 0 0 0 48px rgb(102 124 80 / 3%); }
.banner-copy { position: relative; z-index: 1; max-width: 430px; }
.banner-copy .page-kicker { color: #71865b; }
.banner-copy h1 { max-width: 390px; font-size: 27px; }
.banner-copy p:last-child { margin: 8px 0 0; color: #777f6b; font-size: 11px; }
.banner-stamp { position: relative; z-index: 1; width: 78px; height: 78px; display: grid; place-items: center; border: 1px solid rgb(102 124 80 / 35%); border-radius: 50%; color: #71865b; transform: rotate(-12deg); }
.banner-stamp span { font: 600 26px "Playfair Display", Georgia, serif; }
.banner-stamp small { position: absolute; bottom: 12px; font-size: 7px; letter-spacing: 1px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.metric-card { min-height: 96px; padding: 16px 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.metric-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #f3f4ef; color: var(--green); font-size: 13px; }
.metric-value { margin: 10px 0 0; font: 600 23px "Playfair Display", Georgia, serif; }
.metric-note { margin: 4px 0 0; color: #a0a297; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 14px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 17px 13px; border-bottom: 1px solid #f0f0ec; }
.panel-header h2 { margin: 0; font-size: 12px; font-weight: 700; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.panel-body { padding: 15px 17px; }
.artwork-mini-list { display: grid; gap: 12px; }
.artwork-mini { display: flex; align-items: center; gap: 11px; }
.art-thumb { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; color: rgb(255 255 255 / 90%); font: 18px "Playfair Display", Georgia, serif; }
.art-thumb.ochre, .artwork-image.ochre { background: linear-gradient(140deg, #d8a36e, #b75942 55%, #e6c68c); }
.art-thumb.lilac, .artwork-image.lilac { background: linear-gradient(145deg, #9996b8, #5b647f 57%, #d3a99b); }
.art-thumb.moss, .artwork-image.moss { background: linear-gradient(140deg, #a9a77e, #61704e 54%, #d4bb82); }
.art-thumb.blue, .artwork-image.blue { background: linear-gradient(145deg, #8da9a7, #486e71 55%, #e3bd98); }
.artwork-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-thumb .artwork-photo { position: static; border-radius: inherit; }
.artwork-image.has-artwork-photo::before, .artwork-image.has-artwork-photo::after { display: none; }
.artwork-image.has-artwork-photo .artwork-code-chip { z-index: 1; }
.mini-art-copy { min-width: 0; flex: 1; }
.mini-art-copy strong, .mini-art-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-art-copy strong { margin-bottom: 4px; font-size: 10px; }
.mini-art-copy span { color: var(--muted); font-size: 9px; }
.art-code { color: #9b9e91; font: 9px monospace; }
.activity-list { display: grid; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.activity-item + .activity-item { border-top: 1px solid #f2f2ee; }
.activity-dot { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 4px; border-radius: 50%; background: #93a975; }
.activity-dot.orange { background: var(--orange); }
.activity-item p { margin: 0; color: #5b5f53; font-size: 10px; line-height: 1.5; }
.activity-item time { display: block; margin-top: 4px; color: #a0a297; font-size: 9px; }
.section-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.search-field { position: relative; flex: 1; max-width: 290px; }
.search-field span { position: absolute; top: 8px; left: 11px; color: #96998e; font-size: 13px; }
.search-field input { width: 100%; height: 34px; padding: 0 10px 0 31px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 10px; }
.filter-select { height: 34px; padding: 0 26px 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #666a5e; font-size: 10px; }
.artwork-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.artwork-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); transition: transform .16s ease, box-shadow .16s ease; }
.artwork-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.artwork-image { position: relative; height: 155px; display: grid; place-items: center; color: rgb(255 255 255 / 80%); font: 45px "Playfair Display", Georgia, serif; }
.artwork-image::before, .artwork-image::after { content: ""; position: absolute; border: 1px solid rgb(255 255 255 / 26%); border-radius: 49% 51% 58% 42%; transform: rotate(33deg); }
.artwork-image::before { width: 115px; height: 140px; }
.artwork-image::after { width: 76px; height: 100px; transform: rotate(-26deg); }
.artwork-code-chip { position: absolute; left: 11px; top: 11px; z-index: 1; padding: 5px 7px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 4px; background: rgb(45 46 37 / 20%); color: #fff; font: 9px monospace; }
.artwork-card-copy { padding: 13px; }
.artwork-title-line { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.artwork-title-line h3 { margin: 0; font: 600 15px "Playfair Display", Georgia, serif; }
.artwork-card-copy p { margin: 5px 0 12px; color: var(--muted); font-size: 9px; }
.artwork-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #f1f2ed; color: #8a8d81; font-size: 9px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 20px; background: #eef2e8; color: #64784f; font-size: 8px; font-weight: 700; white-space: nowrap; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.pending { background: #fff1e8; color: #b86c45; }
.status-pill.rejected { background: #fbebea; color: #b35e55; }
.status-pill.neutral { background: #f0f1ed; color: #777a6f; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 12px 15px; background: #fbfbf9; color: #96998e; font-size: 8px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
td { padding: 13px 15px; border-top: 1px solid #f0f0ec; color: #55594e; font-size: 10px; }
.table-primary { color: #33372e; font-weight: 600; }
.table-sub { display: block; margin-top: 4px; color: #999c91; font-size: 9px; font-weight: 400; }
.money { color: #35392f; font-weight: 700; }
.table-actions { display: flex; align-items: center; gap: 7px; }
.table-action { padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #6f7466; font-size: 9px; font-weight: 600; }
.table-action.approve { border-color: #dfe8d6; background: #f4f7f0; color: #5d7447; }
.table-action.reject { border-color: #f2e1dc; color: #a85c48; }
.receipt-link { color: var(--green-dark); font-weight: 600; }
.receipt-link:hover { text-decoration: underline; }
.empty-state { padding: 44px 20px; text-align: center; color: #96998e; font-size: 11px; }
.empty-state strong { display: block; margin-bottom: 6px; color: #484c42; font: 600 17px "Playfair Display", Georgia, serif; }
.vote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 16px; align-items: start; }
.vote-info { position: sticky; top: 18px; padding: 20px; border-radius: 8px; background: #eef1e8; }
.vote-info .info-symbol { width: 31px; height: 31px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 9px; background: #fff; color: var(--green); font-size: 15px; }
.vote-info h2 { margin: 0 0 8px; font: 600 18px "Playfair Display", Georgia, serif; }
.vote-info p { margin: 0; color: #737b68; font-size: 10px; line-height: 1.6; }
.vote-rule { display: flex; gap: 9px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgb(102 124 80 / 18%); color: #606a54; font-size: 9px; line-height: 1.5; }
.vote-rule span { color: var(--green); font-weight: 700; }
.vote-art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.vote-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.vote-card .artwork-image { height: 132px; }
.vote-card-copy { padding: 12px; }
.vote-card-copy h3 { margin: 0; font: 600 14px "Playfair Display", Georgia, serif; }
.vote-card-copy p { margin: 4px 0 10px; color: var(--muted); font-size: 9px; }
.vote-card-copy .button { width: 100%; min-height: 31px; }
.vote-card-copy .button:disabled { cursor: default; border-color: #e3e8dc; background: #f1f4ed; color: #6c8056; }
.vote-form-wrap { margin-top: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.vote-form-wrap h2 { margin: 0 0 6px; font-size: 12px; }
.vote-form-wrap p { margin: 0 0 12px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.vote-form-row { display: flex; gap: 8px; }
.vote-form-row input { flex: 1; min-width: 0; }
.form-control { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #e6e8e0; border-radius: 6px; background: #fff; color: var(--ink); font-size: 10px; }
.form-control::placeholder { color: #a5a79d; }
.form-label { display: block; margin: 0 0 6px; color: #5d6156; font-size: 9px; font-weight: 700; }
.field { margin-bottom: 13px; }
.field-hint { margin: 5px 0 0; color: #999c91; font-size: 9px; line-height: 1.5; }
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 18px; background: rgb(32 35 28 / 40%); backdrop-filter: blur(3px); }
.modal { width: min(450px, 100%); max-height: min(690px, 92vh); overflow-y: auto; padding: 23px; border-radius: 10px; background: var(--white); box-shadow: 0 18px 60px rgb(32 35 28 / 18%); }
.category-manager-modal { width: min(560px, 100%); }
.category-manager-modal .category-add-form { display: flex; gap: 9px; margin-bottom: 8px; }
.category-manager-modal .category-admin-list { display: grid; gap: 7px; max-height: min(420px, 48vh); overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.category-manager-modal .category-admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.category-manager-modal .category-edit-form { display: flex; min-width: 0; flex: 1; align-items: center; gap: 7px; }
.category-manager-modal .category-edit-form .form-control { min-width: 0; }
.category-manager-modal .admin-category-hint { margin-top: 10px; }
.category-empty { color: var(--muted); font-size: 14px; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 19px; }
.modal-header h2 { margin: 0; font: 600 21px "Playfair Display", Georgia, serif; }
.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.modal-close { width: 27px; height: 27px; border: 0; border-radius: 50%; background: #f5f6f2; color: #777b70; font-size: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 5px; }
.auth-modal-actions .text-button { margin-right: auto; }
.form-error { margin: -2px 0 12px; color: #aa5143; font-size: 10px; }
.file-control { padding: 7px; }
.receipt-preview { width: 100%; max-height: 220px; object-fit: contain; margin-top: 9px; border: 1px solid var(--line); border-radius: 6px; background: #fafaf8; }
.art-admin-actions { display: flex; gap: 6px; }
.award-banner { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #f2e8cf; border-radius: 8px; background: #fffbf0; }
.award-banner p { margin: 0; color: #83744d; font-size: 10px; line-height: 1.5; }
.award-banner strong { color: #675835; }
.invoice-content { color: #33372e; }
.invoice-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.invoice-heading h1 { font-size: 25px; }
.invoice-meta { display: grid; gap: 5px; color: var(--muted); text-align: right; font-size: 9px; }
.invoice-meta strong { color: #4c5145; font-size: 10px; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.invoice-parties div { display: grid; gap: 5px; align-content: start; }
.invoice-parties span { color: #929588; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.invoice-parties strong { color: #41463b; font-size: 11px; }
.invoice-parties p { margin: 0; color: var(--muted); font-size: 9px; }
.invoice-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 15px 0; }
.invoice-summary div { display: grid; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.invoice-summary span { color: var(--muted); font-size: 9px; }
.invoice-summary strong { font: 600 15px "Playfair Display", Georgia, serif; }
.invoice-table-wrap { margin-top: 10px; }
.invoice-table-wrap th, .invoice-table-wrap td { padding: 9px 10px; }
.invoice-table-wrap tfoot th { border-top: 1px solid #dfe1d9; background: #f7f8f4; color: #373b31; font-size: 10px; letter-spacing: 0; text-transform: none; }
.invoice-total-line { display: flex; justify-content: flex-end; align-items: baseline; gap: 25px; padding: 12px 10px; border-top: 2px solid #42483b; font-size: 11px; font-weight: 700; }
.invoice-total-line strong { font: 600 19px "Playfair Display", Georgia, serif; }
.invoice-footnote { margin: 11px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.invoice-modal { width: min(960px, 96vw); }
.setup-panel { max-width: 660px; margin: 50px auto; padding: 30px; }
.setup-panel h1 { font-size: 28px; }
.setup-panel code { padding: 2px 4px; border-radius: 3px; background: #f0f1ed; font-size: .9em; }
.setup-link { margin-top: 17px; }
.toast-region { position: fixed; right: 22px; bottom: 20px; z-index: 20; display: grid; gap: 8px; }
.toast { padding: 11px 15px; border-radius: 7px; background: #30362a; color: #fff; box-shadow: var(--shadow); font-size: 10px; animation: slide-up .2s ease; }
@keyframes slide-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.app-footer { display: flex; justify-content: space-between; gap: 15px; padding: 15px 5.2%; border-top: 1px solid var(--line); color: #9b9e92; font-size: 9px; }
.footer-separator { padding: 0 5px; color: #d1d2ca; }
.calendar-page-heading { align-items: center; }
.calendar-panel { overflow: hidden; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.calendar-month-control { display: flex; align-items: center; gap: 13px; }
.calendar-month-control h2 { min-width: 150px; margin: 0; font: 600 17px "Playfair Display", Georgia, serif; text-align: center; }
.calendar-nav-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font-size: 20px; line-height: 1; }
.calendar-nav-button:hover { background: var(--green-pale); }
.calendar-today-button { min-height: 30px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekday { padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; text-align: center; text-transform: uppercase; }
.calendar-day { min-width: 0; min-height: 104px; padding: 8px; overflow: hidden; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); color: var(--ink); text-align: left; vertical-align: top; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:hover { background: var(--surface); }
.calendar-day.outside-month { background: color-mix(in srgb, var(--paper) 58%, var(--white)); color: #a0a297; }
.calendar-day.selected { background: var(--green-pale); box-shadow: inset 0 0 0 1px var(--green); }
.calendar-day-number { display: inline-grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; font-size: 10px; }
.calendar-day.today .calendar-day-number { background: var(--green); color: #fff; font-weight: 700; }
.calendar-day-events { display: grid; gap: 4px; margin-top: 5px; }
.calendar-event-chip { display: block; overflow: hidden; padding: 4px 5px; border-radius: 4px; background: #eaf0e3; color: #536a3e; font-size: 8px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-chip.deadline { background: #faeee7; color: #9d573a; }
.calendar-event-chip.meeting { background: #e9eef1; color: #526a78; }
.calendar-more { color: var(--muted); font-size: 8px; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 11px 16px; color: var(--muted); font-size: 9px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.event-dot { width: 8px; height: 8px; border-radius: 50%; background: #8da477; }
.event-dot.deadline { background: #cb805b; }
.event-dot.meeting { background: #7d98a6; }
.calendar-agenda { margin-top: 15px; }
.calendar-agenda .panel-header { padding: 15px 17px; }
.calendar-agenda .panel-header h2 { font-size: 13px; }
.calendar-agenda-list { padding: 0 17px; }
.calendar-agenda-item { display: flex; align-items: flex-start; gap: 11px; padding: 14px 0; }
.calendar-agenda-item + .calendar-agenda-item { border-top: 1px solid var(--line); }
.calendar-agenda-marker { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 5px; border-radius: 50%; background: #8da477; }
.calendar-agenda-marker.deadline { background: #cb805b; }
.calendar-agenda-marker.meeting { background: #7d98a6; }
.calendar-agenda-copy { min-width: 0; flex: 1; }
.calendar-agenda-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.calendar-agenda-title h3 { margin: 0; font: 600 13px "Playfair Display", Georgia, serif; }
.calendar-type-label { color: #64784f; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.calendar-type-label.deadline { color: #a65f40; }
.calendar-type-label.meeting { color: #587382; }
.calendar-agenda-copy > p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.calendar-agenda-copy > .calendar-event-description { color: var(--ink); font-size: 10px; line-height: 1.5; white-space: pre-line; }
.calendar-item-actions { display: flex; gap: 6px; }
.calendar-empty { padding: 23px 0; color: var(--muted); font-size: 10px; text-align: center; }
.calendar-date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-optional { color: var(--muted); font-weight: 400; }
.calendar-description-input { min-height: 76px; resize: vertical; }
.dashboard-grid.single-panel { grid-template-columns: 1fr; }
.admin-footnote { margin: 10px 0 22px; }
.admin-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.admin-settings-panel { min-width: 0; }
.admin-settings-form { padding: 17px; }
.overview-section-options { display: grid; gap: 10px; margin: 0 0 17px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; }
.overview-section-options legend { padding: 0 5px; }
.overview-section-options label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 10px; }
.overview-section-options input { accent-color: var(--green); }
.category-add-form { display: flex; gap: 8px; padding: 17px 17px 10px; }
.category-admin-list { display: grid; gap: 7px; max-height: 260px; overflow-y: auto; margin: 0; padding: 0 17px; list-style: none; }
.category-admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 10px; }
.category-edit-form { display: flex; min-width: 0; flex: 1; align-items: center; gap: 7px; }
.category-edit-form .form-control { min-width: 0; max-width: 260px; min-height: 31px; }
.admin-category-hint { padding: 8px 17px 16px; }
.admin-activity-settings .admin-settings-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 0 12px; }
.admin-activity-settings .field { min-width: 0; }
.admin-activity-settings .field:nth-child(2),
.admin-activity-settings .role-target-options { grid-column: 1 / -1; }
.admin-activity-settings .admin-settings-form > .button { justify-self: start; }
.role-target-options { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
.activity-admin-list { display: grid; padding: 0 17px; }
.activity-admin-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.activity-admin-item h3 { margin: 4px 0; font: 600 13px "Playfair Display", Georgia, serif; }
.activity-admin-item p { margin: 0 0 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.activity-audience { color: var(--muted); font-size: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.admin-page .page-heading { margin-bottom: 16px; }
.admin-page .award-banner { gap: 14px; padding: 12px 15px; margin-bottom: 14px; }
.admin-page .award-banner p { font-size: 14px; line-height: 1.5; }
.admin-page .status-pill { font-size: 12px; }
.admin-page .table-wrap th { padding: 9px 12px; font-size: 12px; }
.admin-page .table-wrap td { padding: 9px 12px; font-size: 14px; }
.admin-page .table-sub { font-size: 12px; }
.admin-page .filter-select { height: 34px; font-size: 14px; }
.admin-page .admin-footnote { margin: 7px 0 14px; font-size: 13px; }
.admin-page .admin-settings-grid { gap: 11px; margin-top: 0; }
.admin-page .admin-activity-settings .admin-settings-form { gap: 0 12px; }
.admin-page .panel-header { padding: 12px 14px 10px; }
.admin-page .panel-header h2 { font-size: 16px; }
.admin-page .panel-header p { margin-top: 3px; font-size: 13px; }
.admin-page .admin-settings-form { padding: 13px 14px; }
.admin-page .field { margin-bottom: 10px; }
.admin-page .form-label { margin-bottom: 4px; font-size: 13px; }
.admin-page .form-control { min-height: 38px; padding: 8px 10px; font-size: 14px; }
.admin-page .calendar-description-input { min-height: 68px; }
.admin-page .field-hint { font-size: 13px; }
.admin-page .button { min-height: 36px; font-size: 13px; }
.admin-page .overview-section-options { gap: 7px; margin-bottom: 12px; padding: 10px 11px; }
.admin-page .overview-section-options label { gap: 7px; font-size: 13px; }
.admin-page .category-add-form { gap: 7px; padding: 12px 14px 8px; }
.admin-page .category-admin-list { gap: 4px; padding: 0 14px; }
.admin-page .category-admin-list li { gap: 8px; padding: 5px 0; font-size: 14px; }
.admin-page .category-edit-form { gap: 6px; }
.admin-page .category-edit-form .form-control { min-height: 34px; }
.admin-page .admin-category-hint { padding: 6px 14px 11px; }
.admin-page .role-target-options { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.admin-page .activity-admin-list { padding: 0 14px; }
.admin-page .activity-admin-item { gap: 11px; padding: 10px 0; }
.admin-page .activity-admin-item h3 { margin: 3px 0; font-size: 16px; }
.admin-page .activity-admin-item p { margin-bottom: 4px; font-size: 13px; }
.admin-page .activity-audience { font-size: 12px; }
.admin-page .calendar-type-label { font-size: 12px; }
.admin-page .category-manager-trigger-body { min-height: 85px; }
.admin-page .admin-voting-content { padding: 11px 14px 13px; }
.admin-page .voting-status-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; }
.admin-page .voting-total { margin: 8px 0; }
.admin-page .voting-tally-wrap { max-height: 190px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; }
.admin-page .voting-tally { white-space: normal; }
.admin-page .voting-tally th,
.admin-page .voting-tally td { padding: 6px 8px; }
.admin-page .voting-tally th:last-child,
.admin-page .voting-tally td:last-child { width: 64px; text-align: right; }
.artwork-page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.category-manager-trigger-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.category-manager-trigger-body .field-hint { margin: 0; }
:root[data-theme="dark"] .category-manager-modal .category-admin-list li { border-color: var(--line); }

:root[data-theme="dark"] body { color: var(--ink); }
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .breadcrumb,
:root[data-theme="dark"] .role-switch,
:root[data-theme="dark"] .metric-note,
:root[data-theme="dark"] .art-code,
:root[data-theme="dark"] .artwork-card-footer,
:root[data-theme="dark"] .table-sub,
:root[data-theme="dark"] .app-footer { color: #a6ac9d; }
:root[data-theme="dark"] .topbar { background: rgb(30 35 30 / 90%); }
:root[data-theme="dark"] .nav-link { color: #b0b6a9; }
:root[data-theme="dark"] .nav-link:hover,
:root[data-theme="dark"] .button-secondary:hover { background: #30372f; }
:root[data-theme="dark"] .nav-count,
:root[data-theme="dark"] .metric-icon,
:root[data-theme="dark"] .vote-info .info-symbol,
:root[data-theme="dark"] .modal-close,
:root[data-theme="dark"] .setup-panel code { background: #30372f; }
:root[data-theme="dark"] .breadcrumb strong,
:root[data-theme="dark"] .button-secondary,
:root[data-theme="dark"] .table-primary,
:root[data-theme="dark"] .money,
:root[data-theme="dark"] .empty-state strong,
:root[data-theme="dark"] .invoice-content,
:root[data-theme="dark"] .invoice-meta strong,
:root[data-theme="dark"] .invoice-parties strong { color: var(--ink); }
:root[data-theme="dark"] .button-secondary { background: var(--white); }
:root[data-theme="dark"] .button-danger { border-color: #65453b; background: #382b25; color: #f0aa92; }
:root[data-theme="dark"] .welcome-banner,
:root[data-theme="dark"] .vote-info { background: #293228; }
:root[data-theme="dark"] .banner-copy .page-kicker,
:root[data-theme="dark"] .banner-stamp { color: #b3cc99; }
:root[data-theme="dark"] .banner-copy p:last-child,
:root[data-theme="dark"] .vote-info p,
:root[data-theme="dark"] .vote-rule { color: #b2bba7; }
:root[data-theme="dark"] .panel-header { border-bottom-color: var(--line); }
:root[data-theme="dark"] .activity-item + .activity-item,
:root[data-theme="dark"] .artwork-card-footer { border-color: var(--line); }
:root[data-theme="dark"] .activity-item p,
:root[data-theme="dark"] .form-label { color: #c7cdc0; }
:root[data-theme="dark"] .search-field input,
:root[data-theme="dark"] .filter-select,
:root[data-theme="dark"] .role-switch select,
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .table-action { border-color: var(--line); background: var(--white); color: var(--ink); }
:root[data-theme="dark"] .table-action.approve,
:root[data-theme="dark"] .vote-card-copy .button:disabled,
:root[data-theme="dark"] .status-pill { border-color: #46513e; background: #303a2c; color: #c1d6ac; }
:root[data-theme="dark"] th { background: #292e29; color: #a6ac9d; }
:root[data-theme="dark"] td { border-color: var(--line); color: #c7cdc0; }
:root[data-theme="dark"] .empty-state { color: #a6ac9d; }
:root[data-theme="dark"] .vote-info .info-symbol { color: var(--green); }
:root[data-theme="dark"] .vote-rule { border-color: #46513e; }
:root[data-theme="dark"] .form-control::placeholder { color: #858d80; }
:root[data-theme="dark"] .field-hint,
:root[data-theme="dark"] .form-control { color: var(--ink); }
:root[data-theme="dark"] .modal-close { color: #c7cdc0; }
:root[data-theme="dark"] .receipt-preview { background: #1d221d; }
:root[data-theme="dark"] .award-banner { border-color: #51452d; background: #302b20; }
:root[data-theme="dark"] .award-banner p,
:root[data-theme="dark"] .award-banner strong { color: #d7c28a; }
:root[data-theme="dark"] .invoice-table-wrap tfoot th { border-color: var(--line); background: #30372f; color: var(--ink); }
:root[data-theme="dark"] .invoice-total-line { border-color: #aab69f; }
:root[data-theme="dark"] .setup-panel code { color: var(--ink); }
:root[data-theme="dark"] .calendar-weekday { border-color: var(--line); }
:root[data-theme="dark"] .calendar-day { border-color: var(--line); }
:root[data-theme="dark"] .calendar-day.outside-month { background: #1d221d; color: #858d80; }
:root[data-theme="dark"] .calendar-event-chip { background: #35412f; color: #c1d6ac; }
:root[data-theme="dark"] .calendar-event-chip.deadline { background: #46342b; color: #f0b394; }
:root[data-theme="dark"] .calendar-event-chip.meeting { background: #2d3b43; color: #b1cbd7; }
:root[data-theme="dark"] .calendar-nav-button { border-color: var(--line); background: var(--white); color: var(--ink); }
:root[data-theme="dark"] .calendar-agenda-item + .calendar-agenda-item { border-color: var(--line); }
:root[data-theme="dark"] .calendar-type-label { color: #c1d6ac; }
:root[data-theme="dark"] .calendar-type-label.deadline { color: #f0b394; }
:root[data-theme="dark"] .calendar-type-label.meeting { color: #b1cbd7; }
:root[data-theme="dark"] .activity-admin-item { border-color: var(--line); }
:root[data-theme="dark"] .admin-page .table-wrap td { color: var(--ink); }
:root[data-theme="dark"] .admin-page .table-wrap th { background: var(--surface); color: var(--muted); }
:root[data-theme="dark"] .admin-page .award-banner { background: var(--green-pale); color: var(--ink); }
:root[data-theme="dark"] .admin-page .award-banner p { color: var(--ink); }
:root[data-theme="dark"] .admin-page .status-pill.neutral { background: #30372f; color: var(--ink); }

@media (max-width: 980px) {
  .sidebar { width: 215px; flex-basis: 215px; }
  .page-content { padding-right: 4%; padding-left: 4%; }
  .topbar { padding-right: 4%; padding-left: 4%; }
  .artwork-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; z-index: 5; top: 0; width: 100%; min-height: auto; height: auto; padding: 10px 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0 0 9px 1px; font-size: 16px; }
  .brand-mark { width: 25px; height: 25px; font-size: 17px; }
  .sidebar .nav-label, .sidebar-bottom { display: none; }
  .main-nav { display: flex; overflow-x: auto; gap: 5px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link { min-height: 33px; flex: 0 0 auto; gap: 6px; padding: 0 10px; font-size: 10px; }
  .nav-icon { font-size: 13px; }
  .topbar { height: 53px; padding: 0 16px; }
  .breadcrumb { gap: 6px; font-size: 9px; }
  .topbar-actions { gap: 10px; }
  .live-pill { display: none; }
  .role-switch { gap: 4px; font-size: 9px; }
  .role-switch select { max-width: 102px; padding: 6px 19px 6px 6px; font-size: 9px; }
  .small-avatar { display: none; }
  .page-content { padding: 25px 16px 32px; }
  .welcome-banner { min-height: 138px; padding: 21px; }
  .welcome-banner::after { right: -54px; }
  .banner-stamp { width: 60px; height: 60px; flex: 0 0 60px; }
  .banner-stamp span { font-size: 20px; }
  .banner-stamp small { bottom: 8px; font-size: 6px; }
  .banner-copy h1 { font-size: 23px; }
  .dashboard-grid, .vote-layout { grid-template-columns: 1fr; }
  .vote-info { position: static; grid-row: 1; }
  .vote-info h2 { font-size: 16px; }
  .vote-info .info-symbol { float: right; margin: 0 0 5px 10px; }
  .calendar-day { min-height: 72px; padding: 5px; }
  .calendar-event-chip { width: 7px; height: 7px; padding: 0; border-radius: 50%; font-size: 0; }
  .calendar-more { font-size: 7px; }
  .calendar-agenda-item { flex-wrap: wrap; }
  .calendar-item-actions { margin-left: 19px; }
  .app-footer { padding: 14px 16px; font-size: 8px; }
  .admin-settings-grid { grid-template-columns: 1fr; }
  .admin-activity-settings .admin-settings-form { grid-template-columns: 1fr 1fr; }
  .admin-activity-settings .admin-settings-form > .field:nth-child(2) { grid-column: 1 / -1; }
  .admin-activity-settings .activity-admin-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  h1 { font-size: 27px; }
  .page-heading { align-items: flex-start; }
  .page-heading .button { flex: 0 0 auto; padding: 0 10px; font-size: 9px; }
  .metric-grid { gap: 8px; }
  .metric-card { min-height: 86px; padding: 12px; }
  .metric-value { font-size: 20px; }
  .artwork-grid { grid-template-columns: 1fr; }
  .artwork-image { height: 178px; }
  .vote-art-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .vote-card .artwork-image { height: 105px; }
  .vote-card-copy { padding: 9px; }
  .vote-card-copy h3 { font-size: 12px; }
  .vote-form-row { flex-direction: column; }
  .vote-form-row .button { width: 100%; }
  .section-toolbar { flex-wrap: wrap; }
  .search-field { max-width: unset; flex-basis: 100%; }
  .award-banner { align-items: flex-start; flex-direction: column; }
  .app-footer span:last-child { text-align: right; }
  .calendar-month-control { gap: 7px; }
  .calendar-month-control h2 { min-width: 115px; font-size: 15px; }
  .calendar-toolbar { padding: 11px; }
  .calendar-weekday { padding: 8px 2px; font-size: 8px; }
  .calendar-day { min-height: 60px; padding: 3px; }
  .calendar-day-number { width: 20px; height: 20px; font-size: 9px; }
  .calendar-day-events { gap: 2px; margin-top: 3px; }
  .calendar-legend { gap: 9px; padding: 10px; font-size: 8px; }
  .calendar-agenda-list { padding: 0 12px; }
  .calendar-date-fields { grid-template-columns: 1fr; gap: 0; }
}

@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; }
  body > *:not(#active-modal) { display: none !important; }
  #active-modal.invoice-backdrop { position: static !important; display: block !important; padding: 0 !important; background: #fff !important; backdrop-filter: none !important; }
  #active-modal .invoice-modal { width: 100% !important; max-width: none !important; max-height: none !important; overflow: visible !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  #active-modal .no-print { display: none !important; }
  .invoice-heading { padding-bottom: 12px; }
  .invoice-summary { grid-template-columns: repeat(4, 1fr); }
  .invoice-parties { grid-template-columns: 1fr 1fr; }
  .invoice-table-wrap { overflow: visible; border: 0; }
  .invoice-table-wrap table { white-space: normal; }
  .invoice-table-wrap th, .invoice-table-wrap td { padding: 7px 6px; border-bottom: 1px solid #e7e8e2; font-size: 8pt; }
  .invoice-table-wrap thead { display: table-header-group; }
  .invoice-table-wrap tfoot { display: table-footer-group; }
}

body .eyebrow,
body .page-kicker,
body .live-pill,
body .calendar-type-label,
body .activity-item time,
body .activity-audience,
body .invoice-parties span { font-size: 12px; }
body .exhibition-name,
body .nav-link,
body .breadcrumb,
body .role-switch,
body .role-switch select,
body .auth-button,
body .theme-toggle,
body .button,
body .text-button,
body .table-action,
body .status-pill,
body .field-hint,
body .form-label,
body .toast,
body .vote-rule,
body .invoice-meta,
body .invoice-summary span,
body .invoice-footnote,
body .calendar-weekday,
body .calendar-more,
body .calendar-legend,
body .calendar-empty,
body .calendar-agenda-copy > p,
body .calendar-agenda-copy > .calendar-event-description,
body .page-description,
body .banner-copy p:last-child,
body .panel-header p,
body .activity-item p,
body .artwork-card-copy p,
body .vote-info p,
body .vote-card-copy p { font-size: 14px; }
body .profile-copy strong,
body .profile-copy span,
body .nav-count,
body .metric-top,
body .metric-note,
body .mini-art-copy span,
body .art-code,
body .search-field input,
body .filter-select,
body .artwork-card-footer,
body .table-sub,
body .modal-header p,
body .form-error,
body .award-banner p,
body .invoice-parties p,
body .calendar-event-chip { font-size: 12px; }
body .panel-header h2,
body .mini-art-copy strong,
body .artwork-title-line h3,
body .vote-card-copy h3,
body .calendar-agenda-title h3 { font-size: 16px; }
body .form-control { font-size: 14px; }
body th { font-size: 12px; }
body td { font-size: 14px; }
body .app-footer { font-size: 12px; }

@media (max-width: 700px) {
  body .calendar-event-chip { font-size: 0; }
}
