.hidden { display: none !important; }

.records-setup {
  max-width: 760px;
  margin: 0 auto;
}

.records-admin-page { height:100dvh; min-height:0; overflow:hidden; background:#edf3f5; }
.records-admin-page .records-admin-shell,
.records-admin-page .records-admin-shell > .portal-layout { height:calc(100dvh - 76px); min-height:0; overflow:hidden; }
.records-admin-page .records-directory-app { min-width:0; min-height:0 !important; height:100%; padding:0 !important; overflow:hidden; background:#fff; border:0; border-radius:0; box-shadow:none; }
.records-directory-workbench { display:grid; grid-template-columns:340px minmax(0,1fr); height:100%; min-height:0; }
.records-directory-list-pane { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding:1.1rem; background:#fbfcfd; border-right:1px solid var(--portal-line); }
.records-directory-pane-head { display:flex; align-items:flex-start; justify-content:space-between; gap:.75rem; margin-bottom:1rem; }
.records-directory-pane-head strong { display:block; margin-top:.18rem; font-size:1rem; }
.records-directory-pane-head > span { color:var(--portal-muted); font-size:.75rem; font-weight:800; }
.records-directory-search { display:grid; gap:.4rem; color:var(--portal-muted); font-size:.67rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.records-directory-search input { width:100%; min-height:42px; padding:.65rem .75rem; color:var(--portal-ink); background:#fff; border:1px solid var(--portal-line); border-radius:4px; font:inherit; font-size:.8rem; }
.records-directory-refresh { width:100%; margin-top:.55rem; padding:.55rem .7rem; color:#166875; background:#eef7f8; border:1px solid #d5e8eb; border-radius:5px; font:800 .7rem Manrope,Arial,sans-serif; cursor:pointer; }
.records-directory-refresh:hover { background:#e3f2f4; }
.records-admin-org-list,
.records-usage-account-list { display:grid; gap:.12rem; margin-top:.85rem; }
.records-directory-list-empty { margin:1rem .35rem; color:var(--portal-muted); font-size:.78rem; }
.records-admin-org-item,
.records-usage-account-item { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.7rem; width:100%; padding:.78rem .7rem; color:var(--portal-ink); background:transparent; border:0; border-left:3px solid transparent; font:inherit; text-align:left; cursor:pointer; }
.records-admin-org-item:hover,
.records-usage-account-item:hover { background:#f0f6f7; }
.records-admin-org-item.is-selected,
.records-usage-account-item.is-selected { background:#edf6f4; border-left-color:#0a7b83; }
.records-directory-avatar { display:grid; place-items:center; width:35px; height:35px; color:#fff; background:#0a7b83; border-radius:50%; font-size:.67rem; font-weight:800; letter-spacing:.03em; }
.records-admin-org-main,
.records-admin-org-meta,
.records-usage-account-copy { display:grid; min-width:0; }
.records-admin-org-main strong,
.records-admin-org-main span,
.records-admin-org-meta span,
.records-usage-account-copy strong,
.records-usage-account-copy small,
.records-usage-account-copy em { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.records-admin-org-main span,
.records-admin-org-meta,
.records-usage-account-copy small { color:var(--portal-muted); font-size:.71rem; }
.records-admin-org-meta { grid-column:2 / -1; margin-top:-.35rem; }
.records-usage-account-copy em { margin-top:.18rem; color:#788890; font-size:.64rem; font-style:normal; font-weight:700; }
.records-usage-list-state { width:8px; height:8px; background:#16856d; border-radius:50%; }
.records-usage-list-state.has-warning { background:#d79717; box-shadow:0 0 0 3px #fff1c2; }
.records-directory-list-pane > .status { margin:.75rem .35rem 0; font-size:.7rem; }
.records-directory-detail-pane { min-width:0; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; background:#fff; }
.selected-organization-head,
.records-usage-detail-head { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; min-height:132px; padding:1.5rem clamp(1.25rem,3vw,2.5rem); border-bottom:1px solid var(--portal-line); background:#fff; }
.selected-organization-head h2,
.selected-organization-head p,
.records-usage-detail-head h2,
.records-usage-detail-head p { margin:0; }
.selected-organization-head h2,
.records-usage-detail-head h2 { margin-top:.18rem; font:700 clamp(1.65rem,2.6vw,2.15rem)/1.08 "Fraunces",Georgia,serif; }
.selected-organization-head p:not(.portal-kicker),
.records-usage-detail-head p:not(.portal-kicker) { margin-top:.35rem; color:var(--portal-muted); font-size:.8rem; }
.selected-organization-head .portal-button,
.records-usage-detail-head .portal-button { flex:none; }
.records-organization-fact-grid,
.records-usage-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:0 clamp(1.25rem,3vw,2.5rem); border-bottom:1px solid var(--portal-line); }
.records-organization-fact-grid article,
.records-usage-facts article { min-width:0; padding:1.15rem; border-right:1px solid var(--portal-line); border-bottom:1px solid var(--portal-line); }
.records-organization-fact-grid article:nth-child(4n+1),
.records-usage-facts article:first-child { padding-left:0; }
.records-organization-fact-grid article:nth-child(4n),
.records-usage-facts article:last-child { padding-right:0; border-right:0; }
.records-organization-fact-grid article:nth-last-child(-n+4) { border-bottom:0; }
.records-organization-fact-grid span,
.records-usage-facts > article > span,
.records-usage-metric-grid article > span,
.records-usage-breakdown span { display:block; color:var(--portal-muted); font-size:.66rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.records-organization-fact-grid strong,
.records-usage-facts strong { display:block; margin-top:.3rem; overflow-wrap:anywhere; font-size:.86rem; }
.records-organization-fact-grid small { display:block; margin-top:.25rem; color:var(--portal-muted); font-size:.69rem; line-height:1.45; }
.records-state-value { text-transform:capitalize; }
.records-state-value.is-active { color:#14725d; }
.records-state-value.is-past_due,
.records-state-value.is-suspended,
.records-state-value.is-canceled { color:#a33041; }
.records-directory-guidance { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; margin:0; padding:1.5rem clamp(1.25rem,3vw,2.5rem); border-bottom:1px solid var(--portal-line); }
.records-directory-guidance h3,
.records-directory-guidance p { margin:0; }
.records-directory-guidance h3 { margin-top:.2rem; font:700 1.3rem "Fraunces",Georgia,serif; }
.records-directory-guidance p:not(.portal-kicker) { max-width:680px; margin-top:.35rem; color:var(--portal-muted); }
.records-directory-empty { display:grid; min-height:100%; place-content:center; padding:3rem; text-align:center; }
.records-directory-empty h2,
.records-directory-empty h3 { margin:.2rem 0; font:700 1.6rem "Fraunces",Georgia,serif; }
.records-directory-empty p:not(.portal-kicker) { max-width:520px; margin:0; color:var(--portal-muted); }
.records-usage-section { padding:1.5rem clamp(1.25rem,3vw,2.5rem); border-bottom:1px solid var(--portal-line); }
.records-usage-section > header { display:flex; align-items:flex-end; justify-content:space-between; gap:1.5rem; margin-bottom:1rem; }
.records-usage-section > header h3,
.records-usage-section > header p { margin:0; }
.records-usage-section > header h3 { margin-top:.2rem; font:700 1.3rem "Fraunces",Georgia,serif; }
.records-usage-section > header > p { max-width:460px; color:var(--portal-muted); font-size:.76rem; text-align:right; }
.records-usage-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid var(--portal-line); border-bottom:1px solid var(--portal-line); }
.records-usage-metric-grid article { min-width:0; padding:1rem; border-right:1px solid var(--portal-line); }
.records-usage-metric-grid article:first-child { padding-left:0; }
.records-usage-metric-grid article:last-child { padding-right:0; border-right:0; }
.records-usage-metric-grid article > small { display:block; margin-top:.45rem; color:var(--portal-muted); font-size:.68rem; }
.records-usage-metric-grid .admin-usage-metric { margin-top:.45rem; }
.records-usage-breakdown { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--portal-line); }
.records-usage-breakdown article { padding:1rem 0; border-bottom:1px solid var(--portal-line); }
.records-usage-breakdown article:not(:nth-child(3n)) { padding-right:1rem; border-right:1px solid var(--portal-line); }
.records-usage-breakdown article:not(:nth-child(3n+1)) { padding-left:1rem; }
.records-usage-breakdown strong { display:block; margin-top:.3rem; font:700 1.45rem "Fraunces",Georgia,serif; }
.records-support-workspace { height:100%; padding:1.5rem clamp(1.25rem,3vw,2.5rem); overflow-y:auto; }
.records-organization-form,
.selected-support-form { margin-top:0; }

.setting-toggles,
.records-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.setting-toggles { margin-top: 1rem; }
.toggle-pill {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .45rem !important;
  padding: .65rem .75rem;
  color: var(--portal-ink) !important;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.toggle-pill input { width: auto; min-height: auto; }

.status,
.field-note {
  margin: .65rem 0 0;
  color: var(--portal-muted);
  font-size: .82rem;
}
.status.success { color: #14725d; }
.status.error { color: #a33041; }

.admin-usage-metric { display: grid; gap: .3rem; min-width: 6.5rem; }
.admin-usage-meter {
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: rgba(11, 16, 22, .1);
}
.admin-usage-meter span { display: block; height: 100%; background: #16b9ed; }
.admin-usage-metric.is-near .admin-usage-meter span { background: #d88a27; }
.admin-usage-metric.is-over .admin-usage-meter span { background: #b53649; }
.admin-usage-flags { display: flex; flex-wrap: wrap; gap: .3rem; }
.admin-usage-flag {
  padding: .2rem .42rem;
  border-radius: 999px;
  background: #eef1f4;
  color: var(--portal-muted);
  font-size: .68rem;
  font-weight: 800;
}
.admin-usage-flag.is-clear { color: #14725d; background: #e5f5f0; }
.admin-usage-flag.is-near { color: #85520d; background: #fff2db; }
.admin-usage-flag.is-over { color: #9e2f40; background: #fde9ed; }

.records-support-workspace { display: grid; gap: 1rem; }
.records-support-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.records-support-state {
  display: grid;
  gap: .3rem;
  padding: 1rem;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  color: var(--portal-muted);
  background: #f7f9fb;
}
.records-support-state strong { color: var(--portal-ink); }
.records-support-state.is-active { border-color: rgba(20, 114, 93, .28); background: #eef8f4; }
.records-support-scope-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.records-support-scope {
  padding: .45rem .65rem;
  border-radius: 999px;
  color: var(--portal-muted);
  background: #eef1f4;
  font-size: .76rem;
  font-weight: 800;
}
.records-support-scope.is-active { color: #146d59; background: #dcf3eb; }
.records-support-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.records-support-overview-card { margin-top: 0; }
.records-support-facts { display: grid; gap: .65rem; margin: 0; }
.records-support-facts > div,
.records-support-feature-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--portal-line);
}
.records-support-facts > div:last-child,
.records-support-feature-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.records-support-facts dt,
.records-support-feature-list span,
.records-support-metrics > div > span { color: var(--portal-muted); font-size: .74rem; font-weight: 800; }
.records-support-facts dd { margin: 0; font-size: .8rem; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.records-support-feature-list { display: grid; gap: .65rem; }
.records-support-feature-list strong { color: var(--portal-muted); font-size: .75rem; }
.records-support-feature-list strong.is-enabled { color: #14725d; }
.records-support-metrics { display: grid; gap: .75rem; }
.records-support-metrics > div { display: grid; gap: .25rem; }
.records-support-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.records-support-content-card,
.records-support-audit-card { margin-top: 0; }
.records-support-list { display: grid; gap: .55rem; }
.records-support-locked {
  display: grid;
  gap: .25rem;
  padding: 1rem;
  border: 1px dashed var(--portal-line);
  border-radius: 8px;
  color: var(--portal-muted);
  background: #f8f9fa;
}
.records-support-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: #fff;
}
.records-support-item > div { display: grid; gap: .15rem; min-width: 0; }
.records-support-item span { color: var(--portal-muted); font-size: .76rem; }
.records-support-badge { flex: 0 0 auto; padding: .25rem .45rem; border-radius: 999px; background: #eef1f4; font-weight: 800; }
.records-support-recording { display: block; }
.records-support-recording summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.records-support-recording summary::-webkit-details-marker { display: none; }
.records-support-recording summary > div { display: grid; gap: .15rem; }
.records-support-transcript { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--portal-line); color: var(--portal-ink); font-size: .82rem; line-height: 1.55; white-space: pre-wrap; }
.records-support-audit-more { margin-top: .2rem; }
.records-support-audit-more > summary {
  width: fit-content;
  padding: .55rem .75rem;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.records-support-audit-more > summary::-webkit-details-marker { display: none; }
.records-support-audit-more[open] > summary { margin-bottom: .65rem; }

@media (max-width: 900px) {
  .records-directory-workbench { grid-template-columns:300px minmax(0,1fr); }
  .records-organization-fact-grid,
  .records-usage-facts,
  .records-usage-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .records-organization-fact-grid article:nth-child(4n+1),
  .records-organization-fact-grid article:nth-child(4n),
  .records-usage-facts article:first-child,
  .records-usage-facts article:last-child,
  .records-usage-metric-grid article:first-child,
  .records-usage-metric-grid article:last-child { padding-inline:1rem; border-right:1px solid var(--portal-line); }
  .records-organization-fact-grid article:nth-child(2n+1),
  .records-usage-facts article:nth-child(2n+1),
  .records-usage-metric-grid article:nth-child(2n+1) { padding-left:0; }
  .records-organization-fact-grid article:nth-child(2n),
  .records-usage-facts article:nth-child(2n),
  .records-usage-metric-grid article:nth-child(2n) { padding-right:0; border-right:0; }
  .records-organization-fact-grid article { border-bottom:1px solid var(--portal-line); }
  .records-organization-fact-grid article:nth-last-child(-n+2) { border-bottom:0; }
  .records-usage-metric-grid article:nth-child(-n+2) { border-bottom:1px solid var(--portal-line); }
  .records-support-overview-grid { grid-template-columns: 1fr; }
  .records-support-content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .records-admin-page { height:auto; overflow:auto; }
  .records-admin-page .records-admin-shell,
  .records-admin-page .records-admin-shell > .portal-layout { height:auto; overflow:visible; }
  .records-admin-page .records-directory-app { overflow:visible; }
  .records-directory-workbench { grid-template-columns:1fr; grid-template-rows:minmax(260px,42svh) minmax(520px,auto); }
  .records-directory-list-pane { border-right:0; border-bottom:1px solid var(--portal-line); }
  .records-directory-detail-pane { min-height:520px; overflow:visible; }
  .selected-organization-head,
  .records-usage-detail-head,
  .records-directory-guidance,
  .records-usage-section > header,
  .portal-form-actions { align-items: flex-start; flex-direction: column; }
  .records-usage-section > header > p { text-align:left; }
  .records-usage-breakdown { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .records-usage-breakdown article,
  .records-usage-breakdown article:not(:nth-child(3n)),
  .records-usage-breakdown article:not(:nth-child(3n+1)) { padding-inline:1rem; border-right:1px solid var(--portal-line); }
  .records-usage-breakdown article:nth-child(2n+1) { padding-left:0; }
  .records-usage-breakdown article:nth-child(2n) { padding-right:0; border-right:0; }
  .records-support-workspace { height:auto; overflow:visible; }
  .records-support-workspace-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .records-organization-fact-grid,
  .records-usage-facts,
  .records-usage-metric-grid,
  .records-usage-breakdown { grid-template-columns:1fr; }
  .records-organization-fact-grid article,
  .records-organization-fact-grid article:nth-child(n),
  .records-usage-facts article,
  .records-usage-facts article:nth-child(n),
  .records-usage-metric-grid article,
  .records-usage-metric-grid article:nth-child(n),
  .records-usage-breakdown article,
  .records-usage-breakdown article:nth-child(n) { padding:1rem 0; border-right:0; border-bottom:1px solid var(--portal-line); }
  .records-organization-fact-grid article:last-child,
  .records-usage-facts article:last-child,
  .records-usage-metric-grid article:last-child,
  .records-usage-breakdown article:last-child { border-bottom:0; }
}
