.office-mode {
  --navy: #182129;
  --blue: #0080e0;
  --mint: #00c0a0;
  --muted: #617488;
  --line: #e3e5e6;
  max-width: none;
  background: #f3f7fa;
  color: var(--navy);
}
.office-mode > header, .office-mode > .bottom-nav, .office-mode footer { display: none; }
.office-mode main { margin: 0; padding: 0; }
.office-mode #office { display: grid; grid-template-columns: 232px minmax(0,1fr); min-height: 100dvh; padding: 12px; gap:8px; }
.office-sidebar {
  position: sticky; top: 12px; align-self: start; height: calc(100dvh - 24px); overflow: auto;
  display: flex; flex-direction: column; padding: 32px 18px 20px; color: var(--navy); background: white; border:1px solid var(--line); border-radius:18px; box-shadow:0 2px 5px #18212908;
}
.office-wordmark { font: 800 20px/1.4 Arial,sans-serif; letter-spacing: .02em; }
.office-wordmark span { color: #007969; font-size: 12px; }
.office-sidebar > strong { margin: 18px 0 26px; padding:12px; border-radius:10px; background:#f5f6f6; color:#39454c; font-size: 13px; }
.office-sidebar nav, .office-exits { display: grid; gap: 5px; }
.office-sidebar a { padding: 11px 14px; color: #465158; text-decoration: none; border-radius: 9px; }
.office-sidebar a:hover { background: #f6f7f7; }
.office-sidebar a[aria-current] { background: #eeeff0; color: #172127; font-weight:650; }
.office-exits { margin-top: auto; padding-top: 24px; font-size: 13px; }
.office-work { min-width: 0; }
.office-bar { background: transparent; padding: 18px clamp(18px,4vw,62px); display:flex; justify-content:space-between; gap:10px; align-items:center; }
.office-bar span, #portalName { overflow-wrap:anywhere; }
.office-bar small { flex:none; }
.office-content { max-width: 1300px; margin:auto; padding: 30px clamp(18px,4vw,62px); }
.office-title { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:24px; }
.office-title h1 { color:var(--navy); margin:0; font-size:clamp(22px,3vw,32px); }
#office .metrics { padding:0; gap:14px; background:transparent; border:0; }
#office .metrics div, #office .office-panel, #office #discounts, #office .member-row, #office .channel-row {
  background:white; border:1px solid var(--line); border-radius:17px; padding:clamp(12px,2vw,24px); margin:0 0 14px;
}
#office .metrics b { font-size:clamp(19px,2.8vw,36px); color:var(--navy); font-variant-numeric:tabular-nums; }
#office .metrics div:last-child b { color:#007969; }
#office h3 { margin:0 0 14px; }
#office input,#office select { accent-color:var(--blue); }
#office #displayName { display:block; width:min(100%,420px); margin-top:8px; padding:10px; border:1px solid var(--line); border-radius:5px; font:inherit; }
#office th,#office td { padding:12px 6px; font-size:14px; border-color:var(--line); }
#office thead { background:#f6f7f7; color:#5d686e; }
#office .minor { background:#202c32; color:white; margin:12px 10px 0 0; padding:10px 16px; }
#office .channel-row:hover { border-color:var(--blue); }
@media(max-width:720px) {
  .office-mode #office { grid-template-columns: minmax(0,1fr); }
  .office-sidebar { position:static; height:auto; padding:12px; display:block; }
  .office-sidebar > strong { margin:0; }
  .office-wordmark { display:inline-block; margin-right:12px; }
  .office-sidebar nav,.office-exits { display:flex; flex-wrap:wrap; padding:4px 0 0; gap:3px; }
  .office-sidebar a { padding:7px; font-size:12px; }
  .office-content { padding:18px 10px; }
  #office .metrics { gap:5px; }
  #office .metrics div { padding:8px 5px; }
  #office td,#office th { padding:8px 2px; font-size:12px; }
}
.detail-tabs { display:flex; gap:18px; margin:14px 0 20px; border:0; }
.detail-tabs a { padding:8px 14px; border-radius:9px; color:var(--muted); text-decoration:none; }
.detail-tabs a[aria-current] { background:#202c32; color:white; font-weight:700; }
#office summary { cursor:pointer; font-weight:650; }
#createChannel input { padding:8px; border:1px solid var(--line); border-radius:5px; }
.office-mode { background:#f5f5f4; }

.office-sidebar nav { padding-top:4px; }
.office-exits { border-top:1px solid var(--line); padding-top:12px; }
.office-exits .preview-link { display:flex; align-items:center; justify-content:space-between; background:#f3f5f4; }
.office-bar { padding-block:16px; font-weight:650; }
.office-title { margin:5px 0 26px; }
.office-title h1 { letter-spacing:-.035em; }
#office .office-panel,#office #discounts { border-color:var(--line); box-shadow:0 2px 4px #18212908; }
.panel-tools,.form-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.panel-tools { margin-bottom:16px; }
#office .panel-tools h3,#office .panel-tools label { margin:0; }
#office .panel-tools h3 small { margin-left:8px; font-weight:400; }
#office .minor { margin:0; min-height:38px; padding:8px 16px; font:inherit; font-size:13px; font-weight:650; border-radius:8px; }
#office .minor:hover { background:#35434b; }
.form-actions { justify-content:flex-end; border-top:1px solid var(--line); padding-top:16px; margin-top:20px; }
#office .record-link,#office .backlink { text-decoration:none; color:#164854; font-weight:650; }
.record-link:hover,.backlink:hover { text-decoration:underline!important; }
.backlink { display:inline-block; margin-bottom:14px; }
#office th,#office td { padding:13px 10px; text-align:left; }
#office tbody tr:hover { background:#f5fbfc; }
.table-scroll { overflow-x:auto; }
.table-scroll table { min-width:435px; }
.rights-tags { display:flex; flex-wrap:wrap; gap:8px; }
.rights-tags span { padding:5px 10px; border-radius:6px; background:#e5f6f2; color:#155e56; font-size:13px; }
#office h4 { font-size:13px; color:#526a7b; margin:16px 0 8px; }
#office select { appearance:none; cursor:pointer; font:inherit; font-size:13px; color:#123952; min-height:38px; border:1px solid #bfd1dd; border-radius:8px; padding:8px 34px 8px 12px; max-width:100%; background:linear-gradient(45deg,transparent 50%,#456477 50%) right 16px center/5px 5px no-repeat,linear-gradient(135deg,#456477 50%,transparent 50%) right 11px center/5px 5px no-repeat,white; }
#office select:hover { border-color:#4282a1; }
#office :is(select,button,input,a):focus-visible { outline:3px solid #0080e06b; outline-offset:2px; }
@supports (appearance:base-select) {
  #office select,#office select::picker(select) { appearance:base-select; }
  #office select { background:white; padding-right:12px; gap:18px; align-items:center; }
  #office select::picker-icon { color:#41748b; font-size:11px; }
  #office select::picker(select) { margin-top:5px; padding:5px; border:1px solid #cbdae4; border-radius:10px; box-shadow:0 10px 30px #00204020; color:#123952; background:white; }
  #office select option { min-height:34px; padding:7px 12px; border-radius:6px; font-size:13px; }
  #office select option:checked { background:#e4f5f2; color:#145b55; }
  #office select option:hover { background:#eff5fa; }
}
#createChannel:not([hidden]) { display:flex; gap:10px; align-items:center; flex-wrap:wrap; background:#f3f7fa; padding:12px; margin:12px 0; border-radius:8px; }
@media(max-width:720px) {
 .office-sidebar nav { padding-top:5px; }
 .office-exits { padding-top:3px; }
 #office td,#office th { padding:8px 4px; }
}

@media(min-width:721px) {
  .office-sidebar nav a { display:flex; align-items:center; gap:12px; }
  .menu-symbol { display:grid; place-items:center; width:21px; font:20px/1 Arial,sans-serif; }
  .office-bar { min-height:60px; }
  .office-title h1 { font-weight:650; }
  #office td { padding-block:18px; }
}
@media(max-width:720px) {
  .menu-symbol { display:none; }
  .office-mode #office { padding:6px; gap:0; }
  .office-sidebar > strong { padding:4px 6px; }
}
