/* Local workspace uses the existing CVJM colors and controls. */
body.workspace{
 --workspace-sidebar:220px;--workspace-header:82px;
 background:#f8f9fb;color:#27232d;
 font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5;
}
.workspace [hidden]{display:none!important}
.workspace svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.workspace-header{
 height:var(--workspace-header);position:fixed;inset:0 0 auto;z-index:40;
 display:flex;align-items:center;justify-content:space-between;gap:20px;
 background:#fff;border-bottom:1px solid #ececf0;padding:12px 32px 12px 24px;
}
.workspace-logo{display:inline-flex;align-items:center}
.workspace-logo img{display:block;width:148px;height:54px;object-fit:contain}
.workspace-sidebar{position:fixed;inset:var(--workspace-header) auto 0 0;width:var(--workspace-sidebar);background:#fff;border-right:1px solid #ececf0;padding:28px 14px;z-index:30;display:flex;flex-direction:column}
.workspace-sidebar>p{margin:0 14px 12px;color:#99909e;font-size:10px;font-weight:700;letter-spacing:.11em}
.workspace .admin-tabs{display:flex;flex-direction:column;gap:5px;border:0;margin:0;padding:0;overflow:visible}
.workspace .admin-tab{display:flex;align-items:center;gap:11px;text-align:left;width:100%;border:0;border-radius:10px;padding:12px 14px;background:transparent;color:#746b7b;font-size:13px;font-weight:500;line-height:1.3;min-height:44px}
.workspace .admin-tab svg{width:18px;height:18px}
.workspace .admin-tab:hover{background:#fbf5f7;color:#c20031}
.workspace .admin-tab.is-active{background:#fff0f4;color:#d10034;font-weight:700;box-shadow:none}
.sidebar-bottom{margin-top:auto;display:grid;gap:12px;padding:20px 14px 0;color:#9c939e;font-size:11px}
.sidebar-bottom a{text-decoration:none;color:#756b7a}
.workspace-main{margin-left:var(--workspace-sidebar);padding:calc(var(--workspace-header) + 30px) 32px 40px}
.workspace-main>.content{padding:0}
.workspace-main>.content>.wrap{width:100%;max-width:none;margin:0}
.workspace .admin-panel{max-width:none;width:100%;padding:0;margin:0;background:transparent;border:0;box-shadow:none}
.workspace .admin-panel::before{display:none}
.workspace .admin-heading{padding:0 0 23px;margin:0 0 24px;border-bottom:1px solid #e8e7ec;align-items:center}
.workspace .admin-heading h2{font-size:24px;line-height:1.25;font-weight:700;margin:0}
.workspace .admin-panel h3{font-size:17px;color:#282230}
.workspace .admin-tab-panel{max-width:none}
.workspace .admin-collapsible-heading{padding:20px 22px;background:#fff;border:1px solid #e9e7ec;border-radius:12px;margin-bottom:16px}
.workspace .admin-tab-title{margin:0}
.workspace .admin-heading-actions{margin-left:0}
.workspace .admin-form{max-width:none;gap:18px}
.workspace .admin-form:not([hidden]){background:#fff;padding:22px;border:1px solid #e9e7ec;border-radius:12px}
.workspace .admin-form .btn,.workspace .btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:41px;padding:10px 18px;border:0;border-radius:12px;background:#e40038;color:white;box-shadow:none;font:650 13px/1.4 inherit;cursor:pointer;text-decoration:none}
.workspace .btn:hover{background:#bd002e;transform:none}
.workspace .btn.light{border:1px solid #eadfe3;background:white;color:#bc123b}
.workspace .btn:disabled{opacity:.5;cursor:default}
.workspace label{font-size:13px;font-weight:600;color:#5d5563}
.workspace input:not([type=checkbox]):not([type=color]):not([type=file]),.workspace textarea,.workspace select{
 border:1px solid #dedbe4;background:#fff;border-radius:9px;color:#282230;min-height:43px;font:400 14px/1.4 inherit;
}
.workspace input:focus-visible,.workspace textarea:focus-visible,.workspace select:focus-visible{outline:2px solid #e4003870;outline-offset:2px}
.workspace .admin-list-heading{margin-top:28px;align-items:center}
.workspace .admin-list-heading h2{font-size:18px}
.workspace .admin-event,.workspace .admin-post-item,.workspace .registration-form-card,.workspace .admin-account-item{background:#fff;border:1px solid #e9e7ec;border-radius:12px;padding:20px;margin-bottom:12px;box-shadow:none}
.workspace .admin-event h3,.workspace .admin-post-item h3,.workspace .registration-form-card h3,.workspace .admin-account-item h3{font-size:16px}
.workspace .admin-event-filter{padding:16px 18px;border:1px solid #e9e7ec;border-radius:12px;background:#fff;margin-block:16px}
.workspace .admin-event-description,.workspace .calendar-event-meta,.workspace .admin-post-excerpt{font-size:13px;line-height:1.6}
.workspace .calendar-empty{padding:24px;border:1px dashed #e2dce5;border-radius:10px;color:#8a7e8c;background:#fff;font-size:14px}
.workspace .maintenance-section,.workspace .home-visibility-settings{padding:22px;background:white;border:1px solid #e9e7ec;border-radius:12px;margin-bottom:18px}
.workspace .registration-form-card,.workspace .admin-account-item{min-width:0}
.workspace .registration-field-row{border-radius:10px}
.workspace .rich-text-content{border-radius:9px}
.workspace .form-actions{margin-top:4px}
.workspace .admin-status{font-size:13px}
.workspace .filter-reset{border-radius:10px;font-size:12px}
.workspace .admin-account-grants{max-width:550px}
.account-username{display:block;color:#928598;font-size:12px;margin-bottom:4px}
.workspace .admin-account-permission-grid{gap:12px}
.profile-wrap{position:relative;margin-left:auto}
.profile-trigger{display:flex;align-items:center;gap:12px;padding:0;border:0;background:transparent;cursor:pointer;color:#4f4656}
.profile-name{display:grid;justify-items:end}
.profile-name strong{font-size:13px;font-weight:650}
.profile-name small{font-size:11px;color:#8e8594}
.profile-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#fbe7ed;color:#be0030;font-size:12px;font-weight:750;overflow:hidden}
.profile-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.profile-trigger>svg{width:15px;height:15px;transition:transform .2s}
.profile-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}
.profile-menu{position:absolute;right:0;top:calc(100% + 18px);width:230px;padding:8px;background:white;border:1px solid #e9e7ed;border-radius:12px;box-shadow:0 12px 32px #29203217}
.profile-menu button,.profile-menu a{display:flex;align-items:center;gap:12px;padding:11px;width:100%;border:0;background:transparent;border-radius:7px;font:500 13px/1.4 inherit;color:#5c5263;text-decoration:none;cursor:pointer}
.profile-menu button:hover,.profile-menu a:hover{background:#fff1f5;color:#bd0030}
.profile-menu [data-profile-action=logout]{position:relative;color:#c10030;border-top:0;border-radius:9px;margin-top:20px}
.profile-menu [data-profile-action=logout]::before{content:"";position:absolute;top:-11px;left:8px;right:8px;height:1px;background:#eee8ed;pointer-events:none}
.profile-menu [data-profile-action=logout]:hover{border-radius:9px}
.dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-bottom:24px}
.dashboard-stat{background:#fff;border:1px solid #e8e6ed;border-radius:10px;padding:24px;display:flex;align-items:center;gap:16px;box-shadow:0 2px 0 #e6e3e9;min-height:105px}
.stat-icon{display:grid;place-items:center;border-radius:50%;background:#fff0f4;color:#d50036;width:44px;height:44px;flex:none}
.dashboard-stat:nth-child(2) .stat-icon{background:#edf7f1;color:#31805a}
.dashboard-stat:nth-child(3) .stat-icon{background:#f1eefa;color:#8161ad}
.dashboard-stat>div{display:grid}
.dashboard-stat strong{font-size:30px;line-height:1.2;font-weight:650;color:#292330}
.dashboard-stat>div>span{font-size:11px;margin-top:3px;color:#9a8e9e}
.dashboard-history{background:#fff;border:1px solid #e8e6ed;border-radius:12px;overflow:hidden}
.dashboard-history-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px}
.dashboard-history-heading h3{margin:0;font-weight:600}
.dashboard-history-heading p{margin:3px 0 0;color:#998d9f;font-size:12px}
.workspace-pill{padding:6px 12px;border-radius:8px;background:#fff1f5;color:#b9002e;font-size:11px}
.history-table-wrap{overflow:auto;max-height:650px}
.history-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}
.history-table th{background:#faf5f7;color:#95859b;font-size:11px;font-weight:550;padding:13px 22px}
.history-table td{padding:17px 22px;border-bottom:1px solid #f0ecf1;font-size:12px;color:#73667c}
.history-table td strong{display:block;color:#3e3447;font-weight:600}
.history-table td small{display:block;margin-top:3px;color:#a092a6}
.history-table tr:last-child td{border:0}
#dashboard-status:empty{display:none}
#dashboard-status{padding:0 22px 12px;color:#b80030}
.workspace-dialog{padding:28px;border:0;border-radius:16px;width:min(480px,calc(100% - 26px));max-height:calc(100svh - 40px);overflow:auto;color:#332b3d;background:white}
.workspace-dialog::backdrop{background:#27202c50;backdrop-filter:blur(5px)}
.workspace-dialog h2{font-size:23px;margin:0 36px 20px 0}
.workspace-close{position:absolute;right:16px;top:16px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:1px solid #eee6ee;background:white;color:#76677e;cursor:pointer}
.workspace-dialog form,.login-card form{display:grid;gap:17px}
.workspace-dialog label,.login-card label{display:grid;gap:7px}
.workspace-dialog input,.login-card input{width:100%;padding:11px 12px}
.workspace-dialog p{font-size:13px;color:#8c7c94}
.workspace-dialog form p:empty{display:none}
#password-first-hint{background:#fff0f4;padding:12px;border-radius:10px}
.workspace-access .content{padding:0}
.workspace-access #main{padding:calc(var(--workspace-header) + 50px) 24px 60px}
.workspace-access .area-heading{width:min(940px,100%);margin:0 auto 28px}
.area-heading h1{font-size:28px;letter-spacing:-1px;margin:0 0 8px}
.area-heading p{font-size:14px;color:#94869c;margin:0}
.workspace-access .access-wrap{width:100%;padding:0}
.workspace-access .access-choices{justify-content:flex-start}
.workspace-access .access-choice{max-width:none;text-align:left;align-items:flex-start;gap:0;border-radius:14px;box-shadow:0 2px 0 #e6e3e9}
.workspace-access .access-choice svg{width:36px;height:36px;margin-bottom:24px}
.workspace-access .access-choice h2{font-size:21px;color:#3a2e43}
.workspace-access .access-choice p{font-size:13px;color:#93859b}
.workspace-access #access-status:empty,.workspace-access #access-status[hidden]{display:none}
.workspace-login{background:#f8f9fb}
.login-header{padding:20px 32px;background:white;border-bottom:1px solid #eeebf0}
.login-main{min-height:calc(100svh - 96px);display:grid;place-items:center;padding:30px 20px}
.login-card{width:min(420px,100%);padding:32px;border:1px solid #e6e2e9;border-radius:16px;background:#fff;box-shadow:0 8px 36px #33203d07}
.login-card h1{font-size:26px;letter-spacing:-.8px;margin:18px 0 8px}
.login-card>p{color:#97859f;font-size:13px;margin:0 0 28px}
.login-symbol{display:grid;place-items:center;width:44px;height:44px;background:#fff0f4;color:#d60036;border-radius:13px}
.login-card form>p{font-size:13px;color:#bd0030;margin:0}
.login-card form>p:empty{display:none}
.workspace .admin-form input[type=checkbox]{vertical-align:middle}
.workspace .title-presets-menu{z-index:15}
@media(min-width:1000px){
 .workspace .admin-form{grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace .event-time-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
 .workspace .event-form{max-width:none}
}
@media(max-width:1000px){
 body.workspace{--workspace-sidebar:190px}
 .workspace-header{padding-inline:18px}
 .workspace-main{padding-inline:22px}
 .dashboard-stat{padding:18px;gap:10px}
 .dashboard-stats{gap:12px}
 .workspace .admin-account-item{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
 body.workspace{--workspace-header:70px}
 .workspace-header{padding:8px 16px}
 .workspace-logo img{width:122px;height:45px}
 .profile-trigger{gap:8px}
 .profile-name strong{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
 .profile-name small{font-size:10px}
 .profile-avatar{width:32px;height:32px}
 .workspace-sidebar{inset:auto 0 0;width:100%;height:calc(72px + env(safe-area-inset-bottom));padding:6px 4px calc(6px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid #eee7ee}
 .workspace-sidebar>p,.sidebar-bottom{display:none}
 .workspace .admin-tabs{flex-direction:row;justify-content:space-around;gap:0;width:100%;height:100%;overflow-x:auto}
 .workspace .admin-tab{flex:1 0 52px;min-width:0;width:auto;flex-direction:column;justify-content:center;gap:5px;padding:6px 4px;border-radius:9px;font-size:9px;line-height:1.1;text-align:center}
 .workspace .admin-tab svg{width:19px;height:19px}
 .workspace .admin-tab span{max-width:75px;overflow-wrap:anywhere}
 .workspace-main{margin-left:0;padding:calc(var(--workspace-header) + 22px) 15px calc(98px + env(safe-area-inset-bottom))}
 .workspace .admin-heading{padding-bottom:18px;margin-bottom:20px}
 .workspace .admin-heading h2{font-size:22px}
 .dashboard-stats{grid-template-columns:1fr;gap:12px}
 .dashboard-stat{padding:15px 18px;min-height:82px}
 .dashboard-stat strong{font-size:27px}
 .dashboard-stat>div{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px}
 .dashboard-stat>div>span{font-size:12px}
 .dashboard-history-heading{padding:18px}
 .history-table th,.history-table td{padding:13px 16px}
 .workspace .admin-collapsible-heading,.workspace .admin-form:not([hidden]){padding:17px}
 .workspace .admin-collapsible-heading h3{font-size:16px}
 .workspace .admin-form{gap:14px}
 .workspace .admin-form input:not([type=checkbox]):not([type=color]):not([type=file]),.workspace .admin-form select{height:44px;font-size:16px;max-width:100%;min-width:0}
 .workspace .admin-event,.workspace .admin-post-item,.workspace .registration-form-card,.workspace .admin-account-item{padding:16px}
 .workspace .admin-event-filter{padding:14px}
 .workspace .admin-list-heading{gap:10px}
 .workspace .admin-list-heading h2{font-size:17px}
 .workspace .registration-form-list-title{font-size:17px}
 .workspace .admin-form .date-field-row,.workspace .admin-form .event-time-controls{min-width:0}
 .workspace .admin-account-grants{width:100%}
 .workspace .admin-registration-tools{display:grid;grid-template-columns:1fr;gap:12px}
 .workspace .admin-registration-tools select,.workspace .admin-registration-tools .btn{width:100%}
 .workspace-access #main{padding:calc(var(--workspace-header) + 30px) 18px 40px}
 .workspace-access .access-choice{padding:23px}
 .login-header{padding:15px 20px}
 .login-card{padding:26px}
 .workspace .admin-panel .admin-form .field-wide{min-width:0}
}

.workspace .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.workspace input[type=checkbox][hidden]{display:none!important}
.workspace .admin-panel .btn,.workspace .btn{font-family:inherit;font-size:13px;line-height:1.4;font-weight:650}
.workspace input:not([type=checkbox]):not([type=color]):not([type=file]),.workspace textarea,.workspace select{font-family:inherit;font-size:14px;line-height:1.4}
.workspace :is(h1,h2,h3,h4){font-family:inherit}

.workspace-login .login-card .btn{font-family:inherit}
.workspace .admin-tab-panel>.admin-collapsible-heading{margin-top:0}
.workspace .admin-account-password-change{display:flex;align-items:center;gap:12px}
.workspace .admin-account-password-change button{font:inherit}
@media(max-width:760px){
 .workspace #admin-tab-settings span{font-size:0}
 .workspace #admin-tab-settings span::after{content:"Website";font-size:9px}
 .workspace .admin-account-permission-grid{grid-template-columns:1fr}
 .workspace .admin-account-permission-row strong{word-break:normal;overflow-wrap:normal}
 .workspace .history-table td[colspan]{white-space:normal;min-width:250px}
}

/* Keep navigation labels legible while allowing the mobile rail to scroll. */
.workspace .admin-tab span { white-space: nowrap; }
.workspace .admin-circle-control {
  width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 34px;
}
.workspace .admin-circle-control svg { width: 17px; height: 17px; }
.workspace .website-settings-panel {
  padding: 22px;
  border: 1px solid #e9e7ec;
  border-radius: 12px;
  background: #fff;
}
.workspace .website-settings-panel h2 { margin: 0 0 16px; font-size: 19px; line-height: 1.3; }
.workspace .website-settings-grid { gap: 18px; }
.workspace .maintenance-toggle-label { line-height: 1.45; overflow-wrap: normal; }
.workspace .website-toggle-badge { white-space: nowrap; }

@media (max-width: 760px) {
  .workspace .admin-tabs {
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-inline: 4px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .workspace .admin-tabs::-webkit-scrollbar { display: none; }
  .workspace .admin-tab {
    flex: 0 0 auto;
    min-width: 78px;
    padding-inline: 10px;
    font-size: 10px;
    scroll-snap-align: center;
  }
  .workspace .admin-tab span { max-width: none; white-space: nowrap; overflow-wrap: normal; }
  .workspace #admin-tab-settings span { font-size: 10px; }
  .workspace #admin-tab-settings span::after { content: none; }
  .workspace .website-settings-panel { padding: 17px; }
  .workspace .website-settings-panel h2 { font-size: 18px; }
  .workspace .website-settings-panel .maintenance-toggle {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 5px;
    padding: 12px;
  }
  .workspace .website-settings-panel .maintenance-toggle > input[type=checkbox] {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .workspace .maintenance-toggle-label { grid-column: 2; font-size: 12px; }
  .workspace .website-toggle-state { grid-column: 2; justify-content: flex-start; margin: 0; }
  .workspace .home-notice-controls .maintenance-toggle { flex-basis: 100%; }
  .workspace .home-notice-controls .btn { margin-left: 0; }
  .workspace .admin-collapsible-heading {
    padding: 15px 14px;
    gap: 9px;
    justify-content: space-between;
  }
  .workspace .admin-collapsible-heading h3 { font-size: 14px; line-height: 1.3; }
  .workspace .admin-collapsible-heading .admin-heading-actions { flex: none; }
  .workspace .admin-circle-control { width: 32px; height: 32px; min-height: 32px; flex-basis: 32px; }
  .workspace .admin-circle-control svg { width: 16px; height: 16px; }
  .workspace .admin-form .date-field-row,
  .workspace .admin-form .event-time-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .workspace .admin-form .date-field-row label,
  .workspace .admin-form .event-time-controls label { width: auto; min-width: 0; max-width: none; }
  .workspace #calendar-event-form .date-field-row input,
  .workspace #calendar-event-form .date-field-row select,
  .workspace #calendar-event-form .event-time-controls input:not([type=checkbox]),
  .workspace #calendar-edit-form .date-field-row input,
  .workspace #calendar-edit-form .event-time-controls input:not([type=checkbox]) {
    width: 100%;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    padding-inline: 7px;
  }
  .workspace .btn,
  .workspace .filter-reset { white-space: nowrap; }
  .workspace .admin-account-permission-row { padding-inline: 10px; }
  .workspace .admin-account-permission-row strong { font-size: 12px; }
  .workspace .workspace-dialog { padding: 23px 20px; }
  .workspace .workspace-dialog h2 { font-size: 21px; }
}

@media (max-width: 360px) {
  .workspace .admin-collapsible-heading h3 { font-size: 13px; }
  .workspace .profile-name strong { max-width: 89px; }
  .workspace .profile-name small { max-width: 89px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .workspace-header { gap: 10px; }
  .workspace .admin-account-permission-row strong { font-size: 11px; }
}
.workspace .registration-type-trigger {
  height: 43px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
}
@media (max-width: 760px) {
  .workspace .registration-field-name-stack,
  .workspace .registration-type-field { grid-column: 1 / -1; }
  .workspace .registration-field-name-stack input { width: 100%; }
  .workspace .registration-type-trigger { height: 44px; font-size: 16px; }
  .workspace .registration-field-actions { justify-content: flex-start; }
  .workspace #calendar-edit-form .color-picker {
    width: 100%;
    max-width: 360px;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: repeat(2, 25px);
    gap: 8px 5px;
  }
  .workspace #calendar-edit-form .color-picker > .color-swatch {
    width: 100%;
    height: auto;
    max-width: 24px;
    max-height: 24px;
    aspect-ratio: 1;
    border-width: 2px;
  }
  .workspace #calendar-edit-form .color-picker > .color-swatch[aria-checked=true] {
    box-shadow: 0 0 0 2px var(--ink);
    transform: none;
  }
  .workspace #calendar-edit-form input[type=date],
  .workspace #calendar-edit-form input[type=time] { font-size: 13px; padding-inline: 5px; }
}
@media (max-width: 360px) {
  .workspace-login .login-card h1 { font-size: 22px; white-space: nowrap; }
}

/* Record actions sit at the top edge; colors identify the calendar entry. */
.workspace #admin-event-list .admin-event,
.workspace #admin-post-list .admin-post-item{
  position:relative;
  padding:18px 20px;
}
.workspace #admin-event-list .admin-event{
  --event-color:#e40038;
  border-inline-start:4px solid var(--event-color);
}
.workspace #admin-event-list .admin-event.color-green{--event-color:#438755}
.workspace #admin-event-list .admin-event.color-turquoise{--event-color:#248d91}
.workspace #admin-event-list .admin-event .admin-record-title-row h3{color:var(--event-color)}
.workspace :is(#admin-event-list,#admin-post-list) .admin-record-title-row{
  min-height:36px;
  padding-inline-end:132px;
  align-items:flex-start;
}
.workspace :is(#admin-event-list,#admin-post-list) .admin-event-actions{
  position:absolute;inset:16px 18px auto auto;
  width:auto;margin:0;gap:7px;flex-wrap:nowrap;
}
.workspace .admin-account-permission-grid{
  display:grid;grid-template-columns:1fr;gap:10px;
}
.workspace .admin-account-permission-row,
.workspace .admin-account-permission-row:nth-child(even){
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin:0;padding:14px 16px;border:1px solid #e9e5ec;
  border-radius:10px;background:#fff;color:#5c5262;
}
.workspace .admin-account-permission-row strong{
  font-size:13px;line-height:1.4;white-space:nowrap;
}
.account-access-options{display:inline-flex;gap:3px;padding:4px;background:#f5f2f5;border-radius:10px}
.account-access-options button{
  border:0;border-radius:7px;background:transparent;
  padding:8px 12px;font:600 12px/1.4 inherit;
  font-family:inherit;font-size:12px;font-weight:600;
  white-space:nowrap;color:#8a7d90;cursor:pointer;
}
.account-access-options button[aria-pressed=true]{
  background:#fff;color:#bd0030;box-shadow:0 1px 4px #33203b15;
}
.account-access-options button:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.workspace .admin-account-permissions{padding:18px;border:1px solid #e9e7ec;border-radius:12px}
.workspace .website-settings-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;max-width:none}
.workspace .website-settings-panel{
  display:block;padding:22px;margin:0;border:1px solid #e9e7ec;background:#fff;border-radius:12px;
}
.workspace .website-settings-panel h2{font-size:18px;margin:0 0 18px}
.workspace #admin-panel-settings>.admin-tab-title{display:none}
.workspace .website-settings-panel .maintenance-toggle{
  display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;
  gap:14px;padding:14px 16px;margin:0;background:#fbfafc;border:1px solid #eeebf0;border-radius:10px;
}
.workspace .website-settings-panel .maintenance-toggle-label{font-size:13px;line-height:1.4}
.workspace .website-settings-panel .website-toggle-state{margin:0;grid-column:auto;grid-row:auto}
.workspace .website-settings-panel .home-visibility-options{display:grid;gap:10px}
.workspace .home-notice-settings{padding-top:20px;margin-top:20px}
.workspace .home-notice-settings h3{font-size:16px;margin-bottom:12px}
.workspace .home-notice-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
.workspace .home-notice-controls .btn{margin:0}
.workspace .website-settings-panel .admin-status:empty{display:none}
@media(max-width:760px){
  .workspace #admin-event-list .admin-event,.workspace #admin-post-list .admin-post-item{padding:16px}
  .workspace :is(#admin-event-list,#admin-post-list) .admin-record-title-row{padding-inline-end:112px}
  .workspace :is(#admin-event-list,#admin-post-list) .admin-event-actions{top:14px;right:14px;gap:5px}
  .workspace :is(#admin-event-list,#admin-post-list) .registration-icon-button{width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important}
  .workspace .admin-account-permission-row{flex-direction:column;align-items:stretch;gap:9px;padding:12px}
  .account-access-options{display:flex}
  .account-access-options button{flex:1;padding:9px 6px}
  .workspace .website-settings-panel{padding:16px}
  .workspace .website-settings-panel .maintenance-toggle{grid-template-columns:48px minmax(0,1fr);gap:7px 12px;padding:12px}
  .workspace .website-settings-panel .website-toggle-state{grid-column:2;justify-content:flex-start}
  .workspace .home-notice-controls{grid-template-columns:1fr}
  .workspace .home-notice-controls .btn{justify-self:start}
}
.workspace-access .access-choice>svg{display:block;flex:none;aspect-ratio:1;width:40px;height:40px}
.workspace-games #main{max-width:1040px;margin:auto;padding:calc(var(--workspace-header) + 32px) 24px 40px}
.workspace-games .content{padding:0}
.workspace-games .content>.wrap{width:100%;max-width:none}
.workspace-games .area-heading{margin-bottom:24px}
.workspace-games .games-grid{display:grid;grid-template-columns:1fr;gap:14px;max-width:none}
.workspace-games .games-card{display:flex;flex-direction:row;justify-content:space-between;gap:28px;padding:24px;border-radius:12px}
.workspace-games .games-card img{width:min(42%,270px);height:90px;object-fit:contain}
.workspace-games .games-card .btn{flex:none}
@media(max-width:760px){
 .workspace-games #main{padding:calc(var(--workspace-header) + 24px) 16px 30px}
 .workspace-games .games-card{gap:15px;padding:18px}
 .workspace-games .games-card img{width:48%;height:70px}
}
@media(max-width:760px){
 .workspace .dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .workspace .dashboard-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:14px 6px;min-height:130px;text-align:center}
 .workspace .dashboard-stat .stat-icon{width:30px;height:30px}
 .workspace .dashboard-stat .stat-icon svg{width:17px;height:17px}
 .workspace .dashboard-stat>div{display:grid;justify-items:center;gap:5px;width:100%}
 .workspace .dashboard-stat strong{font-size:25px}
 .workspace .dashboard-stat>div>span{font-size:11px;line-height:1.25;margin:0;min-height:2.5em;overflow-wrap:anywhere}
 .workspace .workspace-sidebar{padding-inline:0}
 .workspace .admin-tabs{justify-content:flex-start;gap:0;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
 .workspace .admin-tabs::-webkit-scrollbar{display:none}
 .workspace .admin-tabs::before,.workspace .admin-tabs::after{content:"";flex:0 0 calc(50% - 48px)}
 .workspace .admin-tabs .admin-tab{flex:0 0 96px;max-width:96px;scroll-snap-align:center;scroll-snap-stop:always}
 .workspace .admin-tabs .admin-tab span{max-width:94px;font-size:10px}
 .workspace .admin-tabs #admin-tab-settings span{font-size:9px}
 .workspace .admin-collapsible-heading{
  border:1px solid #e8e3eb;border-radius:14px;padding:16px 17px;min-height:64px;
 }
 .workspace .admin-collapsible-heading .admin-tab-title{font-weight:600;font-size:15px;line-height:1.35}
}
.workspace .admin-registration-tools{
 display:flex;align-items:flex-end;gap:16px;padding:20px;margin-block:18px;
 border:1px solid #e9e5ed;border-radius:14px;background:white;
}
.workspace .admin-registration-tools>label{
 display:grid;gap:8px;flex:1;min-width:0;font-size:12px;color:#7f7188;
}
.workspace .admin-registration-tools select{width:100%;max-width:none;height:44px}
.workspace .admin-registration-tools .btn{height:44px;white-space:nowrap}
@media(max-width:760px){
 .workspace .admin-registration-tools{display:grid;grid-template-columns:1fr;gap:12px;padding:16px}
 .workspace .admin-registration-tools>label{width:100%}
 .workspace .admin-registration-tools .btn{width:100%}
}
.workspace-games .games-card+.games-card{margin-top:0}

/* Inset settings groups follow the iOS reference with quiet row dividers. */
.workspace .admin-account-permissions{border:0;padding:0;margin-block:8px 2px;min-width:0}
.workspace .admin-account-permissions legend{font-size:13px;font-weight:600;color:#746c7a;padding:0 0 12px}
.workspace .admin-account-permission-grid{gap:0;border:1px solid #e7e4e9;border-radius:18px;overflow:hidden;background:#fff}
.workspace .admin-account-permission-row,
.workspace .admin-account-permission-row:nth-child(even){border:0;border-radius:0;background:transparent;padding:14px 18px;position:relative}
.workspace .admin-account-permission-row+.admin-account-permission-row::before{content:"";position:absolute;inset:0 18px auto;height:1px;background:#eeebf0}
.workspace .admin-account-permission-row strong{display:flex;align-items:center;gap:10px;white-space:normal;font-weight:600;color:#403b47}
.workspace .admin-account-permission-row strong svg{width:18px;height:18px;flex:none;fill:none;stroke:var(--red);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.workspace .account-access-options{background:#efedf1;border-radius:10px;padding:3px;gap:2px}
.workspace .account-access-options button{min-height:34px;padding:7px 12px;color:#746c7a;transition:background .16s,color .16s,box-shadow .16s}
.workspace .account-access-options button[aria-pressed=true]{background:#fff;color:#be0030;box-shadow:0 1px 4px #30273820}
.workspace .admin-collapsible-heading{border-radius:16px}
.workspace .admin-form input:not([type=checkbox]):not([type=hidden]):not([type=color]):not([type=file]),
.workspace .admin-form select:not(.registration-native-type-select),
.workspace .admin-form textarea{background:#faf9fb;border-color:#e5e1e8;border-radius:10px;box-shadow:none}
.workspace .admin-form input:focus-visible,.workspace .admin-form textarea:focus-visible,.workspace .admin-form select:focus-visible{outline:2px solid #e4003840;outline-offset:1px}
@media(max-width:760px){
 .workspace .admin-account-permission-row,.workspace .admin-account-permission-row:nth-child(even){padding:14px;gap:10px}
 .workspace .admin-account-permission-row strong{font-size:13px}
 .workspace .account-access-options{width:100%}
 .workspace .account-access-options button{font-size:12px;min-height:36px;padding:7px 5px}
}

@media(max-width:760px){
 .workspace .admin-account-permission-row,
 .workspace .admin-account-permission-row:nth-child(even){align-items:stretch}
 .workspace .admin-account-permission-row strong{width:100%;justify-content:flex-start;text-align:left}
}

/* Let long record titles wrap inside narrow phone layouts. */
.workspace :is(#admin-post-list,#admin-event-list){min-width:0;width:100%;grid-template-columns:minmax(0,1fr)}
.workspace :is(#admin-post-list .admin-post-item,#admin-event-list .admin-event){min-width:0;max-width:100%;box-sizing:border-box}
.workspace :is(#admin-post-list .admin-post-item,#admin-event-list .admin-event)>div{min-width:0;max-width:100%}
.workspace :is(#admin-post-list,#admin-event-list) .admin-record-title-row{min-width:0}
.workspace :is(#admin-post-list,#admin-event-list) .admin-record-title-row h3{min-width:0;overflow-wrap:anywhere}
