* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #000;
    --bg: #080808;
    --panel: #121212;
    --panel-light: #191919;
    --border: #2b2b2b;
    --gold: #b58a46;
    --gold-light: #d8b36a;
    --text: #f2eee6;
    --muted: #aaa29a;
    --dark-muted: #706961;
    --green: #9bd2a7;
    --red: #efaaa4;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

button,
a {
    color: inherit;
}

a {
    text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

body[data-auth-pending] .admin-shell {
    visibility: hidden;
}

.auth-loading {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: var(--bg);
    color: var(--gold-light);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-error-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.auth-error-shell .login-card {
    width: min(520px, 100%);
}

.auth-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.admin-eyebrow {
    margin-bottom: 7px;
    color: var(--gold-light);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.admin-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.admin-button.primary {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--black);
}

.admin-button.secondary {
    color: var(--text);
}

.admin-button.full {
    width: 100%;
}

/* Login */
.admin-login-page {
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at 50% 0, rgba(181, 138, 70, 0.2), transparent 36%),
        #070707;
}

.login-shell {
    width: min(470px, 100%);
}

.login-card {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.login-logo img {
    width: 130px;
    display: block;
    margin-bottom: 28px;
}

.login-card h1 {
    margin-bottom: 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 8vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.login-intro {
    color: var(--muted);
}

.login-form {
    display: grid;
    gap: 15px;
    margin: 26px 0 16px;
}

.login-form label,
.artist-editor-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.login-form input,
.artist-editor-form input,
.artist-editor-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #0b0b0b;
    color: var(--text);
}

.form-notice {
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.76rem;
}

.form-notice[data-state="error"],
#editorNotice[data-state="error"],
.error-state {
    color: var(--red);
}

.form-notice[data-state="success"],
#editorNotice[data-state="success"] {
    color: var(--green);
}

.form-notice[data-state="info"],
#editorNotice[data-state="info"] {
    color: var(--gold-light);
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.78rem;
}

/* Shared admin shell */
.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 25px 18px;
    border-right: 1px solid var(--border);
    background: #050505;
}

.admin-logo img {
    width: 108px;
    display: block;
    margin: 0 9px 27px;
}

.admin-section-label {
    margin: 0 11px 12px;
    color: var(--dark-muted);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.admin-nav {
    display: grid;
    gap: 5px;
}

.admin-nav button,
.admin-nav a {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.admin-nav button:hover,
.admin-nav a:hover,
.admin-nav button.active,
.admin-nav a.active {
    background: var(--panel);
    color: var(--text);
}

.nav-count {
    min-width: 21px;
    height: 21px;
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--gold);
    color: #050505;
    font-size: 0.62rem;
}

.admin-nav button.active,
.admin-nav a.active {
    box-shadow: inset 3px 0 var(--gold);
}

.admin-nav b {
    min-width: 23px;
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.65rem;
    text-align: center;
}

.admin-sidebar-footer {
    display: grid;
    gap: 11px;
    margin-top: auto;
    padding: 18px 11px 0;
    border-top: 1px solid var(--border);
}

.admin-sidebar-footer a {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
}

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

.admin-topbar {
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 25px clamp(24px, 5vw, 62px);
    border-bottom: 1px solid var(--border);
    background: rgba(8, 8, 8, 0.94);
}

.admin-topbar h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.live-badge span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 0 4px rgba(216, 179, 106, 0.12);
}

.admin-view {
    display: grid;
    gap: 23px;
    padding: 34px clamp(24px, 5vw, 62px) 68px;
}

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

.metric-card,
.admin-panel,
.admin-artist-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
}

.metric-card {
    display: grid;
    gap: 8px;
    padding: 23px;
}

.metric-card.accent {
    border-color: #70562e;
    background: linear-gradient(135deg, rgba(181, 138, 70, 0.2), transparent), var(--panel);
}

.metric-card span,
.metric-card small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.metric-card strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.2rem;
    line-height: 1;
}

.admin-panel {
    padding: 23px;
}

.panel-heading,
.view-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.panel-heading {
    margin-bottom: 19px;
}

.panel-heading h2,
.view-heading h2,
.muted-panel h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
}

.dashboard-split {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 18px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-actions.two-up {
    grid-template-columns: repeat(2, 1fr);
}

.quick-actions button,
.quick-actions a {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0b0b0b;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.quick-actions span {
    color: var(--muted);
    font-size: 0.7rem;
}

.muted-panel {
    display: grid;
    align-content: center;
    background: linear-gradient(145deg, rgba(181, 138, 70, 0.09), transparent), var(--panel);
}

.muted-panel p:last-child {
    margin-top: 13px;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
}

.view-heading > div > p {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.72rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.filter-pills button {
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
}

.filter-pills button.active {
    border-color: var(--gold);
    background: rgba(181, 138, 70, 0.13);
    color: var(--gold-light);
}

/* Requests */
.request-inbox-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
}

.request-inbox {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
}

.request-inbox-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(170px, 0.7fr) minmax(260px, 1.5fr) 150px auto;
    gap: 15px;
    align-items: center;
    padding: 15px 17px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.request-inbox-card:last-child {
    border-bottom: 0;
}

.request-inbox-card:hover {
    background: rgba(255, 255, 255, 0.025);
}

.request-inbox-person,
.request-inbox-idea {
    min-width: 0;
}

.request-inbox-person strong,
.request-inbox-person small,
.request-inbox-idea strong,
.request-inbox-idea small {
    display: block;
}

.request-inbox-person strong,
.request-inbox-idea strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-inbox-person small,
.request-inbox-idea small,
.request-inbox-card time {
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-closed {
    background: #242424;
    color: var(--muted);
}

.request-inbox-dialog {
    width: min(850px, calc(100% - 28px));
}

.request-detail-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.request-detail-meta > div,
.request-detail-copy,
.request-reference-section {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #0b0b0b;
}

.request-detail-meta small,
.request-detail-meta strong {
    display: block;
}

.request-detail-meta small {
    margin-bottom: 4px;
    color: var(--dark-muted);
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.request-detail-meta strong {
    font-size: 0.78rem;
}

.request-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.request-detail-copy,
.request-reference-section {
    margin-top: 12px;
}

.request-detail-copy > p:last-child {
    color: var(--muted);
    white-space: pre-wrap;
}

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

.request-reference-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel-light);
}

.request-reference-card img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
}

.request-reference-card span,
.request-reference-error {
    display: block;
    padding: 9px;
    color: var(--muted);
    font-size: 0.65rem;
}

.request-detail-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
}

.request-detail-footer > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.request-panel {
    padding-top: 11px;
}

.request-table-heading,
.request-card-button {
    display: grid;
    grid-template-columns: 88px minmax(250px, 1.4fr) minmax(130px, 0.65fr) minmax(120px, 0.55fr);
    gap: 15px;
    align-items: center;
}

.request-table-heading {
    padding: 6px 12px 12px;
    color: var(--dark-muted);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.request-card {
    border-top: 1px solid var(--border);
}

.request-card:first-child {
    border-top: 0;
}

.request-card-button {
    width: 100%;
    padding: 15px 12px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.request-card-button:hover {
    background: rgba(255, 255, 255, 0.025);
}

.request-person {
    min-width: 0;
}

.request-person strong,
.request-person small {
    display: block;
}

.request-person small {
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-artist,
.request-card time {
    color: var(--muted);
    font-size: 0.74rem;
}

.status-pill {
    display: inline-flex;
    width: max-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: #242424;
    color: #bbb;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-new,
.status-active {
    background: rgba(181, 138, 70, 0.17);
    color: var(--gold-light);
}

.status-inactive {
    background: rgba(239, 170, 164, 0.12);
    color: var(--red);
}

.status-contacted {
    background: rgba(92, 158, 106, 0.18);
    color: var(--green);
}

.status-viewed {
    background: rgba(107, 127, 158, 0.18);
    color: #b9c8e0;
}

.request-card-compact .request-card-button {
    grid-template-columns: 82px minmax(200px, 1.4fr) minmax(120px, 0.65fr) auto;
}

/* Artists */
.admin-artists-grid {
    display: grid;
    gap: 14px;
}

.admin-artist-card {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 19px;
}

.admin-artist-avatar,
.small-avatar {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(181, 138, 70, 0.22), transparent), var(--panel-light);
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
}

.admin-artist-avatar {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    font-size: 2.25rem;
}

.admin-artist-avatar.has-photo {
    overflow: hidden;
}

.admin-artist-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.admin-artist-summary h3 {
    margin: 7px 0 1px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.admin-artist-summary p,
.admin-artist-summary small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
}

.admin-artist-summary small {
    margin-top: 7px;
}

.admin-card-actions {
    display: flex;
    gap: 8px;
}

/* Daily availability and appointment calendar */
.shop-floor-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
}

.shop-floor-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1.3fr) auto;
    gap: 18px;
    align-items: center;
    padding: 15px 17px;
    border-bottom: 1px solid var(--border);
}

.shop-floor-row:last-child {
    border-bottom: 0;
}

.shop-floor-artist {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-floor-artist > span:last-child,
.shop-floor-status {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.shop-floor-artist strong,
.shop-floor-artist small {
    display: block;
}

.shop-floor-artist strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.shop-floor-artist small,
.shop-floor-status > small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-floor-actions,
.panel-heading-actions,
.booking-dialog-actions > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-floor-actions .admin-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.64rem;
}

.compact-select {
    display: grid;
    gap: 3px;
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.compact-select select {
    min-height: 38px;
    padding: 0 32px 0 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #0b0b0b;
    color: var(--text);
}

.availability-break {
    background: rgba(214, 151, 76, 0.16);
    color: #e8ba80;
}

.availability-editor-summary {
    margin: -8px 0 20px;
    color: var(--muted);
    font-size: 0.8rem;
}

.availability-editor-help {
    margin-top: 15px;
}

.booking-dialog-actions {
    justify-content: space-between;
}

.today-artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 17px;
}

.today-artist-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
}

.today-artist-heading {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 13px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.today-artist-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: var(--panel-light);
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.today-artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.today-artist-heading p {
    color: var(--muted);
    font-size: 0.68rem;
}

.today-artist-heading h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.availability-pill,
.booking-status {
    width: max-content;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.availability-walkins {
    background: rgba(92, 158, 106, 0.2);
    color: var(--green);
}

.availability-inshop {
    background: rgba(181, 138, 70, 0.18);
    color: var(--gold-light);
}

.availability-busy,
.booking-status-scheduled {
    background: rgba(82, 139, 201, 0.2);
    color: #b9d8f7;
}

.availability-off,
.availability-unchecked,
.booking-status-cancelled {
    background: #242424;
    color: var(--muted);
}

.booking-status-no-show {
    background: rgba(190, 66, 66, 0.2);
    color: #ffaaa4;
}

.booking-status-completed {
    background: rgba(70, 155, 92, 0.22);
    color: #aee3b9;
}

.availability-form {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.availability-form > label,
.availability-time-grid label,
.booking-editor-grid label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.availability-form input[type="text"],
.availability-form input[type="time"],
.booking-editor-grid input,
.booking-editor-grid select,
.booking-editor-grid textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #0b0b0b;
    color: var(--text);
}

.availability-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.availability-toggles label {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #0b0b0b;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
}

.availability-toggles input {
    width: 17px;
    height: 17px;
    margin-right: 9px;
    accent-color: var(--gold);
}

.availability-time-grid,
.booking-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.availability-form > small {
    margin-top: -7px;
    color: var(--dark-muted);
    font-size: 0.65rem;
}

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

.availability-form-footer .media-notice {
    margin: 0;
}

.today-bookings {
    display: grid;
    gap: 7px;
}

.today-booking-card {
    width: 100%;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0b0b0b;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.today-booking-card time {
    color: var(--gold-light);
    font-weight: 900;
}

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

.today-booking-card small {
    margin-top: 2px;
    color: var(--muted);
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
}

.calendar-toolbar strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.today-summary-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--panel);
}

.today-summary-bar button {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 17px;
    border: 0;
    border-right: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.today-summary-bar button:last-child {
    border-right: 0;
}

.today-summary-bar button:hover {
    background: rgba(181, 138, 70, 0.08);
}

.today-summary-bar span {
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 800;
}

.today-summary-bar strong {
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.view-heading-actions,
.calendar-view-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
}

.calendar-view-toggle {
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
}

.calendar-view-toggle button {
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.calendar-view-toggle button.active {
    background: var(--gold);
    color: #050505;
}

.calendar-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: 0.8rem 0 1rem;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calendar-status-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.calendar-status-legend span::before {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: var(--status-color);
    content: "";
}

.calendar-legend-scheduled { --status-color: #5f8dd3; }
.calendar-legend-in-progress { --status-color: #d8b36a; }
.calendar-legend-completed { --status-color: #4d9a68; }
.calendar-legend-cancelled { --status-color: #777; }
.calendar-legend-no-show { --status-color: #c54f55; }

.booking-calendar {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
}

.booking-calendar.week-calendar-view,
.booking-calendar.month-calendar-view {
    display: block;
    max-height: min(820px, calc(100vh - 190px));
    overflow: auto;
}

.week-calendar-inner {
    min-width: 1050px;
}

.week-calendar-header {
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: 68px repeat(7, minmax(135px, 1fr));
    border-bottom: 1px solid var(--border);
    background: #111;
}

.week-calendar-header > span,
.week-calendar-header > button {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-right: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}

.week-calendar-header > button {
    cursor: pointer;
}

.week-calendar-header small {
    color: var(--muted);
    font-size: 0.63rem;
    font-weight: 900;
    text-transform: uppercase;
}

.week-calendar-header strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.week-calendar-header .time-header {
    color: var(--dark-muted);
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
}

.week-calendar-body {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
}

.week-time-axis {
    position: relative;
    border-right: 1px solid var(--border);
    background: #0c0c0c;
}

.week-time-axis span {
    position: absolute;
    right: 9px;
    color: var(--muted);
    font-size: 0.66rem;
    transform: translateY(-50%);
}

.week-time-axis span:first-child {
    transform: none;
}

.week-day-columns {
    display: grid;
    grid-template-columns: repeat(7, minmax(135px, 1fr));
}

.timed-day-column {
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border);
    background-color: #101010;
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(255, 255, 255, 0.035) 32px, transparent 33px, transparent 63px, rgba(255, 255, 255, 0.08) 64px);
    background-size: 100% 64px;
}

.timed-day-column.is-today {
    background-color: rgba(181, 138, 70, 0.08);
}

.timed-day-add {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    border: 0;
    background: transparent;
    cursor: crosshair;
}

.timed-booking-wrap {
    position: absolute;
    z-index: 2;
    padding: 1px 2px;
}

.calendar-booking.timed-calendar-booking {
    width: 100%;
    height: 100%;
    align-content: start;
    overflow: hidden;
    padding: 7px;
    border-left-width: 3px;
    border-radius: 7px;
}

.timed-calendar-booking strong,
.timed-calendar-booking small,
.timed-calendar-booking time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.month-calendar {
    min-width: 860px;
}

.month-calendar > header,
.month-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.month-calendar > header {
    position: sticky;
    top: 0;
    z-index: 8;
    border-bottom: 1px solid var(--border);
    background: #111;
}

.month-calendar > header span {
    padding: 13px;
    border-right: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.63rem;
    font-weight: 900;
    text-transform: uppercase;
}

.month-calendar-day {
    min-height: 145px;
    overflow: hidden;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #101010;
}

.month-calendar-day.is-outside {
    opacity: 0.42;
}

.month-calendar-day.is-today {
    background: rgba(181, 138, 70, 0.08);
}

.month-day-heading {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.month-day-heading span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.month-calendar-day > div {
    display: grid;
    gap: 4px;
    padding: 0 6px 7px;
}

.calendar-booking.month-calendar-booking {
    min-width: 0;
    padding: 6px 7px;
    border-radius: 6px;
}

.month-calendar-booking small {
    display: none;
}

.calendar-day {
    min-height: 470px;
    border-right: 1px solid var(--border);
}

.calendar-day:last-child {
    border-right: 0;
}

.calendar-day.is-today {
    background: rgba(181, 138, 70, 0.06);
}

.calendar-day-heading {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.calendar-day-heading span {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.calendar-day-heading strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
}

.calendar-day > div {
    display: grid;
    gap: 7px;
    padding: 8px;
}

.calendar-empty {
    padding: 16px 5px;
    color: var(--dark-muted);
    font-size: 0.68rem;
}

.calendar-booking {
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 9px;
    background: #0b0b0b;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.calendar-booking time {
    color: var(--gold-light);
    font-size: 0.68rem;
    font-weight: 900;
}

.calendar-booking small {
    color: var(--muted);
    font-size: 0.63rem;
}

.calendar-booking.booking-status-cancelled,
.calendar-booking.booking-status-no-show {
    border-left-color: var(--dark-muted);
}

.calendar-booking.booking-status-scheduled {
    border-color: rgba(82, 139, 201, 0.56);
    border-left-color: #5d9fdf;
    background: rgba(47, 86, 126, 0.34);
}

.calendar-booking.booking-status-completed {
    border-color: rgba(70, 155, 92, 0.5);
    border-left-color: #5eb575;
    background: rgba(43, 106, 60, 0.3);
}

.calendar-booking.booking-status-cancelled {
    border-color: #363636;
    border-left-color: #777;
    background: #1a1a1a;
    color: #9a9a9a;
    opacity: 0.68;
}

.calendar-booking.booking-status-no-show {
    border-color: rgba(190, 66, 66, 0.55);
    border-left-color: #d85b55;
    background: rgba(111, 36, 36, 0.35);
    color: #ffd0cc;
}

.booking-dialog {
    width: min(760px, calc(100% - 28px));
    max-height: calc(100vh - 38px);
    margin: auto;
    overflow-y: auto;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 21px;
    background: var(--panel);
    color: var(--text);
}

.booking-dialog::backdrop {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
}

.booking-editor-grid .wide {
    grid-column: 1 / -1;
}

.booking-editor-grid textarea {
    min-height: 92px;
    resize: vertical;
}

/* Request dialog */
.request-dialog {
    width: min(610px, calc(100% - 28px));
    margin: auto;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 21px;
    background: var(--panel);
    color: var(--text);
}

.request-dialog::backdrop {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
}

.dialog-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.dialog-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.dialog-heading button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #0b0b0b;
    color: var(--text);
    font-size: 1.35rem;
    cursor: pointer;
}

.request-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.request-details div,
.request-copy {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #0b0b0b;
}

.request-details dt {
    color: var(--dark-muted);
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.request-details dd {
    margin-top: 4px;
    font-size: 0.82rem;
}

.request-copy > p:not(.admin-eyebrow) {
    margin-bottom: 16px;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
}

.request-copy > p:last-child {
    margin-bottom: 0;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
}

/* Artist editor */
.artist-editor-topbar {
    align-items: center;
}

.editor-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.small-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 1.8rem;
}

.artist-editor-view {
    max-width: 1200px;
}

.artist-editor-form textarea {
    min-height: 120px;
    resize: vertical;
}

.field-help {
    display: block;
    color: var(--dark-muted);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0;
}

.artist-editor-form .checkbox-label {
    display: flex;
    align-items: center;
    align-self: end;
    min-height: 47px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #0b0b0b;
    color: var(--text);
}

.artist-editor-form .checkbox-label input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: var(--gold);
}

.admin-button:disabled,
.admin-button[aria-disabled="true"] {
    cursor: wait;
    opacity: 0.58;
}

.admin-button.danger {
    border-color: rgba(239, 170, 164, 0.45);
    color: var(--red);
}

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

.editor-form-grid .wide {
    grid-column: 1 / -1;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
}

.form-footer p {
    color: var(--muted);
    font-size: 0.72rem;
}

.editor-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 22px;
}

.profile-image-editor {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) 1fr;
    gap: 24px;
    align-items: center;
}

.profile-image-preview {
    min-height: 280px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel-light);
    color: var(--dark-muted);
}

.profile-image-preview img {
    width: calc(100% + 34px);
    height: 314px;
    margin: -17px;
    display: block;
    object-fit: cover;
}

.media-upload-controls,
.portfolio-card-fields {
    display: grid;
    gap: 12px;
}

.media-upload-controls label,
.portfolio-upload-form label,
.portfolio-card-fields label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.media-upload-controls input,
.portfolio-upload-form input,
.portfolio-card-fields input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #0b0b0b;
    color: var(--text);
}

.portfolio-upload-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #0b0b0b;
}

.portfolio-upload-form > button {
    align-self: end;
}

.portfolio-upload-form .checkbox-label,
.portfolio-card-fields .checkbox-label {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
}

.portfolio-upload-form .checkbox-label input,
.portfolio-card-fields .checkbox-label input {
    width: 18px;
    height: 18px;
    margin-right: 9px;
    padding: 0;
    accent-color: var(--gold);
}

.media-notice {
    min-height: 22px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.74rem;
}

.media-notice[data-state="error"] {
    color: var(--red);
}

.media-notice[data-state="success"] {
    color: var(--green);
}

.media-notice[data-state="info"] {
    color: var(--gold-light);
}

.portfolio-admin-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #0b0b0b;
}

.portfolio-admin-card > img {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
}

.portfolio-card-fields {
    padding: 16px;
}

.portfolio-card-checks,
.portfolio-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.portfolio-card-checks > label {
    flex: 1;
}

.empty-state {
    padding: 20px;
    color: var(--muted);
}

@media (max-width: 1050px) {
    .metric-grid,
    .dashboard-split,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .request-table-heading {
        display: none;
    }

    .request-inbox-card {
        grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.3fr) auto;
    }

    .request-inbox-card time {
        display: none;
    }

    .request-card-button,
    .request-card-compact .request-card-button {
        grid-template-columns: 82px 1fr auto;
    }

    .request-card time {
        display: none;
    }

    .admin-artist-card {
        grid-template-columns: 64px 1fr;
    }

    .admin-artist-avatar {
        width: 64px;
        height: 64px;
    }

    .admin-card-actions {
        grid-column: 2;
    }

    .shop-floor-row {
        grid-template-columns: minmax(200px, 0.8fr) 1.2fr;
    }

    .shop-floor-actions {
        grid-column: 1 / -1;
        padding-left: 66px;
    }
}

@media (max-width: 760px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .admin-logo img {
        width: 86px;
        margin: 0 7px 12px;
    }

    .admin-section-label,
    .admin-sidebar-footer {
        display: none;
    }

    .admin-nav {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-nav button,
    .admin-nav a {
        justify-content: center;
        gap: 7px;
        min-height: 40px;
        padding: 0 8px;
        text-align: center;
    }

    .admin-nav button.active,
    .admin-nav a.active {
        box-shadow: inset 0 -3px var(--gold);
    }

    .admin-topbar {
        min-height: 98px;
        padding: 20px 17px;
    }

    .live-badge {
        display: none;
    }

    .admin-view {
        padding: 22px 16px 55px;
    }

    .panel-heading,
    .view-heading,
    .form-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .request-card-button,
    .request-card-compact .request-card-button {
        grid-template-columns: 75px 1fr;
    }

    .request-inbox-card {
        grid-template-columns: 1fr auto;
    }

    .request-inbox-idea {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .request-detail-meta,
    .request-reference-grid {
        grid-template-columns: 1fr;
    }

    .request-reference-card img {
        height: auto;
        max-height: 360px;
    }

    .request-detail-footer,
    .request-detail-footer > div {
        align-items: stretch;
        flex-direction: column;
    }

    .request-artist {
        display: none;
    }

    .editor-form-grid,
    .editor-portfolio-grid,
    .portfolio-upload-form,
    .profile-image-editor,
    .booking-editor-grid {
        grid-template-columns: 1fr;
    }

    .editor-form-grid .wide,
    .booking-editor-grid .wide {
        grid-column: auto;
    }

    .today-artists-grid {
        grid-template-columns: 1fr;
    }

    .panel-heading-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .view-heading-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-view-toggle,
    .view-heading-actions > .admin-button {
        width: 100%;
    }

    .calendar-view-toggle button {
        flex: 1;
    }

    .today-summary-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .today-summary-bar button:nth-child(2) {
        border-right: 0;
    }

    .today-summary-bar button:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .panel-heading-actions .admin-button,
    .compact-select select {
        width: 100%;
    }

    .booking-calendar {
        grid-template-columns: repeat(7, 155px);
    }
}

@media (max-width: 520px) {
    .admin-login-page {
        padding: 15px;
    }

    .login-card {
        padding: 28px 21px;
    }

    .admin-nav button,
    .admin-nav a {
        font-size: 0.68rem;
    }

    .admin-artist-card {
        grid-template-columns: 52px 1fr;
        gap: 12px;
    }

    .admin-artist-avatar {
        width: 52px;
        height: 52px;
        font-size: 1.55rem;
    }

    .admin-card-actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }

    .request-details {
        grid-template-columns: 1fr;
    }

    .today-summary-bar {
        grid-template-columns: 1fr;
    }

    .today-summary-bar button,
    .today-summary-bar button:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .today-summary-bar button:last-child {
        border-bottom: 0;
    }

    .today-artist-heading {
        grid-template-columns: 48px 1fr;
    }

    .today-artist-avatar {
        width: 48px;
        height: 48px;
    }

    .availability-pill {
        grid-column: 1 / -1;
    }

    .availability-time-grid,
    .today-booking-card {
        grid-template-columns: 1fr;
    }

    .availability-form-footer,
    .calendar-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-floor-row {
        grid-template-columns: 1fr;
    }

    .shop-floor-actions {
        grid-column: auto;
        padding-left: 0;
    }

    .shop-floor-actions .admin-button {
        flex: 1;
    }

    .shop-floor-status > small {
        white-space: normal;
    }

    .booking-dialog-actions,
    .booking-dialog-actions > div {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

@media (max-width: 760px) {
    .admin-nav {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }
}

/* Staff access, timed operations, and Gallery */
.public-site-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    border: 1px solid rgba(181, 138, 70, 0.55);
    border-radius: 10px;
    background: rgba(181, 138, 70, 0.1);
    color: var(--gold-light) !important;
    font-weight: 900;
}

.staff-identity {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.request-view-toggle {
    display: flex;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #0b0b0b;
}

.request-view-toggle button {
    min-height: 35px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.request-view-toggle button.active {
    background: var(--gold);
    color: #050505;
}

.request-assignment-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0b0b0b;
}

.request-assignment-row small {
    color: var(--muted);
}

.request-owner {
    color: var(--gold-light);
    font-weight: 800;
}

.request-inbox-card {
    grid-template-columns: minmax(160px, 0.7fr) minmax(230px, 1.4fr) minmax(90px, 0.45fr) 135px auto;
}

.today-appointment-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.today-appointment-summary > span,
.today-appointment-summary > button {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #0b0b0b;
    color: var(--muted);
    font-size: 0.68rem;
}

.today-appointment-summary > button {
    border-left: 4px solid var(--artist-color);
    color: var(--text);
    cursor: pointer;
}

.today-appointment-summary .needs-update {
    border-color: rgba(216, 91, 85, 0.65);
    color: #ffd0cc;
}

.booking-calendar.week-calendar-view {
    width: 100%;
}

.week-calendar-inner {
    width: 100%;
}

.calendar-booking {
    border-left-color: var(--artist-color, var(--gold));
}

.calendar-booking.booking-status-scheduled,
.calendar-booking.booking-status-in-progress {
    border-color: var(--border);
    border-left-color: var(--artist-color, var(--gold));
    background: #20242a;
}

.calendar-booking.booking-status-in-progress {
    box-shadow: inset 0 0 0 1px rgba(216, 179, 106, 0.4);
}

.calendar-artist-badge {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 6px;
    border: 1px solid var(--artist-color, var(--gold));
    border-radius: 999px;
    color: var(--text);
    font-size: 0.58rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timed-booking-wrap.is-compact .calendar-booking {
    padding: 5px 4px;
}

.timed-booking-wrap.is-compact .calendar-booking > strong,
.timed-booking-wrap.is-compact .calendar-booking > small {
    display: none;
}

.timed-booking-wrap.is-compact .calendar-artist-badge {
    max-width: 100%;
    padding-inline: 3px;
}

.today-timed-calendar {
    max-height: min(760px, calc(100vh - 170px)) !important;
}

.today-timed-calendar .week-calendar-header {
    min-width: 100%;
}

.today-timed-calendar .week-day-columns {
    min-width: calc(100% - 68px);
}

.month-calendar-day {
    height: 154px;
    min-height: 154px;
}

.month-calendar-day > div {
    max-height: 112px;
    overflow: hidden;
}

.calendar-booking.month-calendar-booking {
    height: 29px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border-left-color: var(--artist-color, var(--gold));
}

.month-calendar-booking > strong,
.month-calendar-booking > small {
    display: none;
}

.month-calendar-booking time {
    flex: 0 0 auto;
    font-size: 0.6rem;
}

.month-calendar-booking .calendar-artist-badge {
    min-width: 0;
    padding: 1px 5px;
}

.month-more-bookings {
    width: 100%;
    min-height: 25px;
    border: 0;
    border-radius: 5px;
    background: rgba(181, 138, 70, 0.12);
    color: var(--gold-light);
    font-size: 0.62rem;
    font-weight: 900;
    cursor: pointer;
}

.appointment-review-dialog {
    width: min(620px, calc(100% - 28px));
}

.appointment-review-copy {
    display: grid;
    gap: 5px;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid rgba(216, 91, 85, 0.5);
    border-radius: 13px;
    background: rgba(111, 36, 36, 0.18);
}

.appointment-review-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.appointment-review-copy span,
.appointment-review-copy small {
    color: var(--muted);
}

.appointment-review-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.review-custom-time {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    color: var(--muted);
    font-size: 0.7rem;
}

.review-custom-time input {
    grid-column: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #090909;
    color: var(--text);
}

.review-custom-time button {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

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

.admin-gallery-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #0b0b0b;
}

.gallery-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    display: block;
    overflow: hidden;
    border: 0;
    border-bottom: 4px solid var(--artist-color);
    background: #171717;
    cursor: pointer;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-missing-image {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.gallery-photo-count,
.gallery-image-actions {
    position: absolute;
    z-index: 2;
    top: 9px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 0.62rem;
}

.gallery-photo-count { left: 9px; }
.gallery-image-actions { right: 9px; display: flex; gap: 5px; }
.gallery-icon.is-active { color: #9bd2a7; }
.gallery-icon.is-featured { color: var(--gold-light); }

.gallery-card-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
}

.gallery-card-copy > span {
    min-width: 0;
    display: grid;
}

.gallery-card-copy strong,
.gallery-card-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-card-copy small { color: var(--muted); }
.gallery-card-copy > div { display: flex; gap: 5px; }

.gallery-card-copy button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #151515;
    color: var(--gold-light);
    cursor: pointer;
}

.gallery-dialog {
    width: min(880px, calc(100% - 28px));
}

.gallery-mode-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
    border: 0;
}

.gallery-mode-picker legend {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-mode-picker label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0b0b0b;
    cursor: pointer;
}

.gallery-mode-picker span { display: grid; gap: 3px; }
.gallery-mode-picker small { color: var(--muted); }

.gallery-upload-queue {
    display: grid;
    gap: 7px;
    margin-top: 15px;
}

.gallery-upload-row {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #0b0b0b;
}

.gallery-upload-row span { position: relative; z-index: 1; display: grid; }
.gallery-upload-row small { color: var(--muted); }
.gallery-upload-row i { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(181, 138, 70, 0.13); }
.gallery-upload-row > button { position: relative; z-index: 2; border: 1px solid rgba(209, 86, 78, 0.65); border-radius: 999px; background: rgba(118, 36, 31, 0.28); color: #f0aaa4; padding: 6px 10px; font: inherit; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.gallery-upload-uploading i { width: 58%; animation: gallery-upload-pulse 1.2s ease-in-out infinite; }
.gallery-upload-complete i { width: 100%; background: rgba(70, 155, 92, 0.16); }
.gallery-upload-failed { border-color: rgba(216, 91, 85, 0.6); }

@keyframes gallery-upload-pulse { 50% { opacity: 0.45; } }

.gallery-project-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.gallery-project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #0b0b0b;
}

.gallery-project-image.is-hidden { opacity: 0.52; }
.gallery-project-image img { width: 100%; height: 100%; object-fit: cover; }

.gallery-project-image-actions {
    position: absolute;
    right: 7px;
    bottom: 7px;
    left: 7px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.gallery-project-image-actions button {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    cursor: pointer;
}

.gallery-project-image-actions .is-active { color: #9bd2a7; }
.gallery-project-image-actions .is-featured { color: var(--gold-light); }
.gallery-project-image-actions .is-cover { color: #9fc4ef; }

.feature-replacement-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 17px 0;
}

.feature-replacement-projects label {
    position: relative;
    cursor: pointer;
}

.feature-replacement-projects input {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 20px;
    height: 20px;
}

.feature-replacement-projects span {
    height: 160px;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    border: 2px solid var(--border);
    border-radius: 11px;
    background: #0b0b0b;
}

.feature-replacement-projects input:checked + span { border-color: var(--gold); }
.feature-replacement-projects img { width: 100%; height: 120px; object-fit: cover; }
.feature-replacement-projects strong { padding: 7px; font-size: 0.7rem; }

@media (max-width: 1150px) {
    .admin-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .admin-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-project-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .request-assignment-row { align-items: stretch; flex-direction: column; }
    .request-inbox-card { grid-template-columns: 1fr auto; }
    .request-inbox-idea,
    .request-owner,
    .request-inbox-card time { display: none; }
}

@media (max-width: 560px) {
    .admin-gallery-grid,
    .gallery-mode-picker,
    .gallery-project-images,
    .feature-replacement-projects,
    .appointment-review-actions { grid-template-columns: 1fr; }
    .gallery-card-image { height: 250px; }
    .review-custom-time { grid-column: auto; }
    .request-view-toggle { width: 100%; }
    .request-view-toggle button { flex: 1; }
}

.staff-access-dialog { width: min(760px, calc(100vw - 28px)); }

.staff-invite-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: 22px;
}

.staff-invite-form label,
.staff-invite-result label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.staff-invite-form input,
.staff-invite-form select,
.staff-invite-result input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #0a0a0a;
    color: var(--cream);
    padding: 10px 12px;
    font: inherit;
}

.staff-invite-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(201, 151, 79, 0.45);
    border-radius: 10px;
    background: rgba(201, 151, 79, 0.08);
}

.staff-invite-result[hidden] { display: none; }

.staff-account-section {
    margin-top: 26px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.staff-account-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.staff-account-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #0c0c0c;
}

.staff-account-row span { display: grid; gap: 2px; }
.staff-account-row small { color: var(--muted); }
.staff-account-row.is-inactive { opacity: 0.58; }

@media (max-width: 700px) {
    .staff-invite-form,
    .staff-invite-result { grid-template-columns: 1fr; }

    .staff-account-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* 2026 operations and mobile staff refinement */
.admin-topbar-actions,
.notification-button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-button {
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #0b0b0b;
    color: var(--cream);
    font: inherit;
    font-size: .72rem;
    font-weight: 900;
    cursor: pointer;
}

.notification-button b {
    min-width: 22px;
    min-height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #b73f3a;
    color: #fff;
}

.notification-dialog { width: min(620px, calc(100vw - 28px)); }
.notification-list { display: grid; gap: 8px; margin-top: 16px; }
.notification-list > button {
    display: grid;
    gap: 4px;
    padding: 13px;
    text-align: left;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    background: #0b0b0b;
    color: var(--cream);
    cursor: pointer;
}
.notification-list small { color: var(--muted); }

.appointment-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(260px, 1fr);
    gap: 18px;
    align-items: end;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0b0b0b;
}
.filter-label,
.quick-filter-label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.today-appointment-summary { margin: 0; }
.today-appointment-summary > span { background: #121212; }
.today-appointment-summary .status-key-progress { border-color: rgba(211, 177, 104, .48); }
.today-appointment-summary .status-key-completed { border-color: rgba(91, 159, 105, .55); color: #a9d7b2; }
.today-appointment-summary .status-key-cancelled { border-color: rgba(150, 150, 150, .38); }
.today-appointment-summary .status-key-noshow { border-color: rgba(213, 63, 57, .58); color: #ffaaa5; }
.today-artist-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.today-artist-filters .quick-filter-label { flex-basis: 100%; }
.today-artist-filters button {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #141414;
    color: var(--cream);
    font: inherit;
    font-size: .7rem;
    cursor: pointer;
}
.today-artist-filters button i { width: 8px; height: 8px; border-radius: 50%; background: var(--artist-color, var(--gold)); }
.today-artist-filters button.active { outline: 2px solid var(--artist-color, var(--gold)); outline-offset: 1px; }

.shop-floor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    border: 0;
    background: transparent;
}
.shop-floor-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    align-content: start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #101010;
}
.shop-floor-row:last-child { border-bottom: 1px solid var(--border); }
.shop-floor-status { align-items: flex-start; }
.shop-floor-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
.shop-floor-actions .admin-button { min-height: 36px; padding: 7px 10px; }

.booking-calendar.week-calendar-view,
.booking-calendar.month-calendar-view { overflow: auto; scrollbar-gutter: stable; }
.week-calendar-inner { width: max-content; min-width: 100%; }
.week-calendar-header { position: sticky; top: 0; z-index: 8; }
.calendar-booking { min-width: 0; overflow: hidden; }
.calendar-booking > * { flex-shrink: 0; }
.timed-calendar-booking.duration-short { display: flex; align-items: center; padding: 3px 5px; gap: 4px; }
.timed-calendar-booking.duration-short > strong,
.timed-calendar-booking.duration-short > small { display: none; }
.timed-calendar-booking.duration-medium > small { display: none; }
.timed-calendar-booking.duration-short time { font-size: .62rem; }
.timed-calendar-booking.duration-short .calendar-artist-badge { font-size: .54rem; padding: 1px 4px; }
.calendar-booking.booking-status-completed { background: #213522; border-color: #4e8758; }
.calendar-booking.booking-status-cancelled { background: #242424; border-color: #656565; color: #aaa; }
.calendar-booking.booking-status-no-show { background: #3a1e1c; border-color: #c94b45; }
.calendar-booking.booking-status-scheduled,
.calendar-booking.booking-status-in-progress,
.calendar-booking.booking-status-completed,
.calendar-booking.booking-status-cancelled,
.calendar-booking.booking-status-no-show { border-left-color: var(--artist-color, var(--gold)) !important; }
.month-calendar-day { height: 148px; min-height: 148px; }
.month-calendar-day > div { max-height: 107px; display: grid; grid-template-rows: repeat(2, 29px) 27px; gap: 4px; overflow: hidden; }
.month-more-bookings { position: relative; z-index: 3; height: 27px; }

.request-inbox-headings {
    display: grid;
    grid-template-columns: minmax(160px, .7fr) minmax(230px, 1.4fr) minmax(90px, .45fr) 135px auto;
    gap: 16px;
    padding: 0 22px 8px;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.request-inbox-toolbar { align-items: end; gap: 14px; padding: 16px; }
.request-inbox-card { gap: 16px; padding: 17px 22px; }

.gallery-project-toggles { display: flex; gap: 6px; }
.gallery-card-copy .gallery-project-toggles button {
    width: auto;
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--muted);
}
.gallery-project-toggles button small { color: inherit; font-size: .58rem; }
.gallery-project-toggles button.is-active { border-color: #5b9f69; color: #a9d7b2; }
.gallery-project-toggles button.is-featured { border-color: var(--gold); color: var(--gold-light); }
.gallery-project-image-actions button.is-cover { background: var(--gold); color: #090909; }

.artist-color-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.artist-color-field > legend { padding: 0; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .04em; }
.artist-color-field > .field-help { display: block; margin-top: 7px; }
.artist-color-control { display: grid; grid-template-columns: 70px minmax(170px, 1fr) auto; gap: 14px; align-items: end; margin-top: 10px; }
.artist-color-preview { width: 70px; height: 54px; border: 1px solid var(--border); border-radius: 10px; background: var(--artist-color, #c9974f); box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .18); }
.artist-color-presets { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 5px; }
.artist-color-presets button { width: 30px; height: 30px; border: 2px solid transparent; border-radius: 50%; background: var(--preset); cursor: pointer; }
.artist-color-presets button.selected { border-color: #fff; outline: 2px solid var(--preset); outline-offset: 2px; }
.artist-slug-control { min-width: 0; display: flex; align-items: stretch; }
.artist-slug-control > span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--border); border-right: 0; border-radius: 11px 0 0 11px; background: #181818; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.artist-editor-form .artist-slug-control input { min-width: 0; flex: 1; width: auto; border-radius: 0 11px 11px 0; }
.artist-editor-form label.has-error input,
.artist-editor-form label.has-error textarea { border-color: var(--red); box-shadow: 0 0 0 2px rgba(239, 170, 164, .12); }
.artist-editor-form .field-error { color: var(--red); font-size: .68rem; font-weight: 700; letter-spacing: 0; line-height: 1.35; text-transform: none; }
.artist-identity-line { display: flex; align-items: center; gap: 8px; }
.artist-color-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--artist-color, var(--gold)); }
.artist-order-actions { display: flex; gap: 5px; }
.artist-order-actions .icon-button { width: 40px; padding: 0; }

.shop-hours-grid { display: grid; gap: 8px; }
.shop-hours-row { display: grid; grid-template-columns: minmax(120px, .7fr) auto minmax(130px, 1fr) minmax(130px, 1fr); gap: 12px; align-items: end; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.shop-hours-row legend { float: left; align-self: center; color: var(--cream); font-weight: 900; }
.shop-hours-row label,
.shop-closure-form label { display: grid; gap: 6px; color: var(--muted); font-size: .68rem; font-weight: 800; }
.shop-hours-row input[type="time"],
.shop-closure-form input { min-height: 42px; border: 1px solid var(--border); border-radius: 8px; background: #080808; color: var(--cream); padding: 8px 10px; font: inherit; }
.shop-closure-form { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(220px, 1fr) auto; gap: 12px; align-items: end; }
.shop-closure-list { display: grid; gap: 7px; margin-top: 16px; }
.shop-closure-list article { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--border); border-radius: 9px; }
.shop-closure-list article span { display: grid; gap: 2px; }
.shop-closure-list small { color: var(--muted); }
.staff-invite-form { grid-template-columns: 150px minmax(170px, .8fr) minmax(190px, 1fr) auto; }

@media (max-width: 900px) {
    .appointment-filter-toolbar { grid-template-columns: 1fr; }
    .request-inbox-headings { display: none; }
    .shop-hours-row { grid-template-columns: 1fr 1fr; }
    .shop-hours-row legend { grid-column: 1 / -1; }
    .staff-invite-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .admin-topbar-actions { gap: 6px; }
    .notification-button span { display: none; }
    .notification-button { width: 42px; justify-content: center; padding: 6px; }
    .notification-button b[hidden] + * { display: none; }
    .view-heading { align-items: flex-start; }
    .view-heading-actions { width: 100%; flex-wrap: wrap; }
    .calendar-toolbar { grid-template-columns: 1fr 1fr; }
    .calendar-toolbar strong { grid-column: 1 / -1; grid-row: 1; }
    .calendar-toolbar .compact-select { grid-column: 1 / -1; }
    .artist-color-control,
    .shop-hours-row,
    .shop-closure-form,
    .staff-invite-form { grid-template-columns: 1fr; }
    .shop-hours-row legend { grid-column: auto; }
    .gallery-card-copy { align-items: flex-start; flex-direction: column; }
    .gallery-project-toggles { width: 100%; }
    .gallery-project-toggles button { flex: 1; justify-content: center; }
}

/* Admin control and calendar hardening -------------------------------------- */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.admin-page select {
    min-height: 38px;
    padding-right: 38px !important;
    border: 1px solid var(--border);
    border-radius: 10px;
    appearance: none;
    color-scheme: dark;
    background-color: #0b0b0b !important;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gold-light) 50%),
        linear-gradient(135deg, var(--gold-light) 50%, transparent 50%) !important;
    background-position:
        calc(100% - 16px) 50%,
        calc(100% - 11px) 50% !important;
    background-repeat: no-repeat !important;
    background-size: 5px 5px, 5px 5px !important;
    color: var(--text);
}

.admin-page select:hover {
    border-color: #5a4931;
}

.admin-page select option {
    background: #111;
    color: var(--text);
}

.admin-page,
.admin-page * {
    scrollbar-width: thin;
    scrollbar-color: #8e6a35 #0e0e0e;
}

.admin-page::-webkit-scrollbar,
.admin-page *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.admin-page::-webkit-scrollbar-track,
.admin-page *::-webkit-scrollbar-track {
    background: #0e0e0e;
}

.admin-page::-webkit-scrollbar-thumb,
.admin-page *::-webkit-scrollbar-thumb {
    border: 2px solid #0e0e0e;
    border-radius: 999px;
    background: #765a31;
}

.admin-page::-webkit-scrollbar-thumb:hover,
.admin-page *::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.admin-page::-webkit-scrollbar-corner,
.admin-page *::-webkit-scrollbar-corner {
    background: #0e0e0e;
}

.week-calendar-inner {
    width: 100%;
    min-width: 100%;
}

.today-timed-calendar .week-calendar-inner,
.today-timed-calendar .week-calendar-header,
.today-timed-calendar .week-calendar-body {
    width: 100%;
    min-width: 0;
}

.today-timed-calendar .week-calendar-header {
    grid-template-columns: 68px minmax(0, 1fr) !important;
}

.today-timed-calendar .week-day-columns {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) !important;
}

.review-custom-time {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.review-custom-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.review-custom-time input {
    width: 100%;
    grid-column: auto;
}

.review-custom-time button {
    min-width: 150px;
    grid-column: auto;
    grid-row: auto;
}

.settings-editor-stack {
    display: grid;
    gap: 23px;
}

.shop-hours-summary-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(105px, 1fr));
    gap: 8px;
}

.shop-hours-summary-grid > span {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #0b0b0b;
}

.shop-hours-summary-grid strong {
    color: var(--gold-light);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-hours-summary-grid small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-hours-summary-grid .is-closed {
    opacity: 0.62;
}

.artist-danger-zone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    border-color: rgba(239, 170, 164, 0.3);
    background: rgba(108, 31, 31, 0.08);
}

.artist-danger-zone h2 {
    margin: 3px 0 5px;
    font-family: Georgia, "Times New Roman", serif;
}

.artist-danger-zone p:not(.admin-eyebrow):not(.media-notice) {
    max-width: 720px;
    color: var(--muted);
    font-size: 0.78rem;
}

.artist-danger-zone .media-notice {
    grid-column: 1 / -1;
    margin: 0;
}

@media (max-width: 900px) {
    .shop-hours-summary-grid {
        grid-template-columns: repeat(4, minmax(105px, 1fr));
    }
}

@media (max-width: 620px) {
    .review-custom-controls,
    .artist-danger-zone {
        grid-template-columns: 1fr;
    }

    .review-custom-time button,
    .artist-danger-zone .admin-button {
        width: 100%;
    }

    .shop-hours-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
