/* Incremental resource/workspace refinements layered after dashboard.css. */
.nav-icon {
  height: 16px;
  min-width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.row-actions {
  display: table-cell;
  text-align: right;
}
.row-actions > form,
.row-actions > button,
.row-actions > .button-link {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 7px;
}
.button-link {
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-size: 11px;
  color: var(--text);
}
.preset-network {
  position: relative;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff02;
}
.preset-network-remove {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
}
.preset-network .form-grid {
  padding-right: 44px;
}
.access-group {
  display: grid;
  grid-template-columns: 1fr 40px;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
}
.access-group select {
  min-height: 130px;
}
@media (max-width:760px) {
  .resource-panel .row-actions {
    display: block;
    text-align: left;
  }
  .preset-network .form-grid {
    padding-right: 0;
    padding-top: 38px;
  }
}

.radio-upload-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.radio-upload-status progress {
  width: min(420px,70%);
  height: 10px;
}
.radio-upload-status span {
  font-size: .84rem;
  color: var(--muted);
}
.admin-dialog.diagnostic-dialog {
  width: min(980px,calc(100vw - 32px));
}
.diagnostic-cards,
.diagnostic-charts {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.diagnostic-cards article,
.diagnostic-chart {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff03;
}
.diagnostic-cards article {
  display: grid;
  gap: 4px;
}
.diagnostic-cards small,
.diagnostic-cards span,
.diagnostic-chart small {
  color: var(--muted);
}
.diagnostic-chart > strong {
  display: block;
  margin-bottom: 8px;
}
.diagnostic-chart svg {
  display: block;
  width: 100%;
  height: 120px;
}
.chart-grid {
  stroke: #ffffff12;
  stroke-width: 1;
}
.chart-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.diagnostic-detail > h3 {
  margin-top: 24px;
}
@media (max-width:760px) {
  .diagnostic-cards,
  .diagnostic-charts {
    grid-template-columns: 1fr;
  }
}

/* WHISPY final visual direction */
.sidebar {
  background: #0d0f10;
}
.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 0;
}
.brand strong {
  letter-spacing: .2em;
}
.brand small {
  max-width: 130px;
  margin-top: 2px;
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: .05em;
}
.content {
  background: radial-gradient(ellipse at top right,#b9893212,transparent 36%);
}
.login {
  grid-template-columns: 1.08fr .92fr;
}
.login-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #080a0b url('/assets/whispy-voice-flow.png') center/cover
    no-repeat;
  border-right-color: #6f542b;
}
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#080a0bf2 5%,#080a0bc7
    44%,#080a0b38),linear-gradient(0deg,#080a0b9c,transparent 50%);
}
.login-brand img {
  width: 150px;
  height: 150px;
  margin-bottom: 52px;
  border-radius: 0;
}
.login-brand h1 {
  max-width: 620px;
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.login-form > div {
  max-width: 430px;
}
@keyframes discord-spin {
  to {
    transform: rotate(360deg);
  }
}
[data-channel-status].loading,
[data-discord-status].loading,
[data-role-status].loading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
[data-channel-status].loading::before,
[data-discord-status].loading::before,
[data-role-status].loading::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff35;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: discord-spin .7s linear infinite;
}

/* Owner commercial lists */
.owner-list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.owner-list-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff02;
}
.owner-list-item > summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto 18px;
  align-items: center;
  gap: 16px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}
.owner-list-item > summary::-webkit-details-marker {
  display: none;
}
.owner-list-item > summary::after {
  content: "›";
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transition: transform .15s ease;
}
.owner-list-item[open] > summary::after {
  transform: rotate(90deg);
}
.owner-list-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.owner-list-main strong,
.owner-list-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.owner-list-main small,
.owner-detail-grid small,
.owner-person small {
  color: var(--muted);
}
.owner-list-content {
  padding: 20px;
  border-top: 1px solid var(--border);
}
.owner-detail-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.owner-detail-grid > div,
.owner-person {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff02;
}
.owner-list-owners {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.owner-list-owners h3 {
  margin: 0 0 4px;
}
.owner-person > span {
  display: grid;
  gap: 4px;
}
.owner-inline-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.owner-inline-form + .owner-list-owners {
  margin-top: 20px;
}
.notice.warning {
  border-color: #8d663b;
  background: #2a2118;
  color: #f0c879;
}
.billing-subscriptions {
  min-width: 960px;
}
.billing-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.billing-actions form {
  display: inline-flex;
  margin: 0;
}
.billing-subscriptions td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.searchable-select {
  display: grid;
  min-width: 0;
  gap: 7px;
}
.searchable-select > label:not(.sr-only) {
  color: var(--muted);
  font-size: 13px;
}
.searchable-select input,
.searchable-select select {
  min-width: 0;
}
@media (max-width:760px) {
  .owner-list-item > summary {
    grid-template-columns: minmax(0,1fr) auto 14px;
    gap: 8px;
  }
  .owner-detail-grid {
    grid-template-columns: 1fr;
  }
  .owner-list-content {
    padding: 14px;
  }
  .owner-list-item > summary .badge {
    font-size: 9px;
  }
}

/* Dashboard UX: intent-based navigation and operation workspace */
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #15120b;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(0);
}
button,
select,
input,
textarea {
  border-color: #4a4740;
}
input[data-generated-slug][readonly] {
  cursor: not-allowed;
  color: #8d8b86;
  border-color: #373735;
  background: #171818;
  box-shadow: inset 0 0 0 1px #0003;
  opacity: .82;
}
.sidebar nav {
  gap: 7px;
}
.sidebar nav a {
  min-height: 46px;
  padding: 11px 13px;
  font-size: 14px;
}
.sidebar nav a.active {
  border-color: #8d713b80;
  background: linear-gradient(90deg,#d3ad5428,transparent);
}
.sidebar-secondary-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.sidebar-secondary-link:hover {
  border-color: var(--gold-soft);
  color: var(--gold);
}
.section-tabs,
.workspace-tabs {
  display: flex;
  gap: 4px;
  margin: -10px 0 24px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d0f10;
  overflow-x: auto;
}
.section-tabs a,
.workspace-tabs a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.section-tabs a:hover,
.workspace-tabs a:hover {
  color: var(--text);
  background: #ffffff08;
}
.section-tabs a.active,
.workspace-tabs a.active {
  color: var(--gold);
  background: #d3ad5418;
  box-shadow: inset 0 -2px var(--gold-soft);
}
.data-update {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #806533;
  border-radius: 10px;
  background: #211c13f5;
  box-shadow: 0 12px 40px #0008;
}
.data-update[hidden] {
  display: none;
}
.data-update div {
  display: grid;
  gap: 2px;
}
.data-update small {
  color: var(--muted);
}
.page-error {
  margin-bottom: 20px;
}
.operation-context-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid #806533;
  border-radius: 10px;
  background: #d3ad540a;
}
.operation-context-strip > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.operation-context-strip .eyebrow {
  margin: 0;
}
.operation-context-strip a {
  text-decoration: none;
}
.action-center {
  margin-bottom: 22px;
}
.action-center .section-heading {
  align-items: flex-start;
}
.action-center .section-heading p {
  margin-top: 4px;
}
.warning-badge {
  min-width: 36px;
  justify-content: center;
  color: var(--warning);
  border-color: #806533;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.action-card {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 13px;
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff02;
  color: var(--text);
  text-decoration: none;
}
.action-card:hover {
  border-color: var(--gold-soft);
  background: #d3ad5408;
}
.action-card > span:last-child {
  display: grid;
  align-content: start;
  gap: 6px;
}
.action-card small {
  color: var(--muted);
  line-height: 1.45;
}
.action-card b {
  margin-top: auto;
  color: var(--gold);
  font-size: 12px;
}
.action-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #6e552838;
  color: var(--gold);
  font-weight: 800;
}
.action-card-icon.danger {
  background: #702f3038;
  color: var(--danger);
}
.ready-state {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #41644e;
  border-radius: 10px;
  background: #13241c;
}
.ready-state > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #70dda120;
  color: #70dda1;
  font-weight: 800;
}
.ready-state div {
  display: grid;
  gap: 3px;
}
.ready-state small {
  color: var(--muted);
}
.command-grid {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(280px,.6fr);
  gap: 22px;
}
.operation-focus-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff02;
}
.operation-focus-heading div {
  display: grid;
  gap: 4px;
}
.operation-focus-heading strong {
  font-size: 19px;
}
.operation-focus-heading small {
  color: var(--muted);
}
.readiness-steps {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.readiness-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 9px;
  align-items: start;
  padding-right: 10px;
}
.readiness-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 0;
  top: 16px;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.readiness-steps li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
}
.readiness-steps li.complete > span {
  border-color: var(--gold-soft);
  background: #6e552838;
  color: var(--gold);
}
.readiness-steps li.complete:not(:last-child)::after {
  background: var(--gold-soft);
}
.readiness-steps div {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 4px 8px 0 0;
  background: var(--panel);
}
.readiness-steps strong {
  font-size: 13px;
}
.readiness-steps small {
  color: var(--muted);
  font-size: 11px;
}
.operation-focus-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.operation-focus-actions > span {
  color: var(--muted);
  font-size: 12px;
}
.button-link.primary {
  min-height: 44px;
  padding: 10px 14px;
  color: #15120b;
  border-color: #e8bf70;
  font-size: 13px;
}
.live-summary {
  display: flex;
  flex-direction: column;
}
.live-summary .section-heading {
  margin-bottom: 12px;
}
.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px #70dda112;
}
.live-summary dl {
  margin: 0;
}
.live-summary dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.live-summary dt {
  color: var(--muted);
}
.live-summary dd {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}
.live-summary-link {
  margin-top: auto;
  padding-top: 18px;
  text-align: right;
  text-decoration: none;
}
.live-empty {
  padding: 28px 0;
}
.operation-workspace {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}
.workspace-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg,#151719,#0e1011);
}
.workspace-hero a {
  text-decoration: none;
  font-size: 12px;
}
.workspace-hero .eyebrow {
  margin: 20px 0 5px;
}
.workspace-hero h2 {
  margin-bottom: 6px;
  font-size: 30px;
}
.workspace-hero p:last-child {
  margin-bottom: 0;
}
.workspace-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace-tabs {
  margin: 0;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(280px,.65fr);
  gap: 18px;
}
.preparation-card .section-heading {
  align-items: flex-start;
}
.preparation-card progress {
  width: 170px;
  height: 8px;
  accent-color: var(--gold);
}
.preparation-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.preparation-list li {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.preparation-list li:last-child {
  border-bottom: 0;
}
.preparation-list .step-status {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #702f3038;
  color: var(--danger);
  font-weight: 800;
}
.preparation-list li.complete .step-status {
  background: #70dda120;
  color: var(--success);
}
.preparation-list div {
  display: grid;
  gap: 3px;
}
.preparation-list small {
  color: var(--muted);
}
.next-action-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.next-action-card h3 {
  font-size: 21px;
}
.next-action-card .button-link,
.next-action-card form,
.next-action-card form button {
  width: 100%;
}
.next-action-card .button-link,
.next-action-card form {
  margin-top: auto;
}
.ready-state-inline {
  display: block;
  margin-top: auto;
  padding: 12px;
  border: 1px solid #41644e;
  border-radius: 8px;
  background: #13241c;
  color: var(--success);
  text-align: center;
  font-weight: 650;
}
@media (max-width:1180px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
  .action-card {
    min-height: 0;
  }
  .command-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .live-summary-link,
  .next-action-card .button-link,
  .next-action-card form {
    margin-top: 18px;
  }
}
@media (max-width:760px) {
  .section-tabs {
    margin-top: 0;
  }
  .operation-context-strip,
  .workspace-hero,
  .operation-focus-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .operation-context-strip > div {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .workspace-hero-actions {
    width: 100%;
    justify-content: space-between;
  }
  .workspace-tabs {
    margin: 0;
  }
  .readiness-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .readiness-steps li:not(:last-child)::after {
    left: 16px;
    right: auto;
    top: 34px;
    bottom: -12px;
    width: 1px;
    height: auto;
  }
  .preparation-list li {
    grid-template-columns: 34px minmax(0,1fr);
  }
  .preparation-list li > a,
  .preparation-list li > button {
    grid-column: 2;
    width: 100%;
  }
  .data-update {
    top: 8px;
    align-items: stretch;
    flex-direction: column;
  }
  .data-update button {
    width: 100%;
  }
}

/* Keep translated and user-provided text inside its layout cell. */
.page-header > div,
.section-heading > div,
.workspace-hero > div,
.operation-focus-heading > div,
.resource-card > div,
.preparation-list div,
.ready-state div,
.action-card > span:last-child {
  min-width: 0;
}
.page-header h1,
.workspace-hero h2,
.operation-focus-heading strong,
.resource-card strong,
.preparation-list strong,
.action-card strong {
  overflow-wrap: anywhere;
}

.plan-delete-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.check {
  min-width: 0;
}
.check > span {
  min-width: 0;
}
.check > span > strong,
.check > span > small {
  display: block;
  overflow-wrap: anywhere;
}
.check > span > small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}
@media (max-width:760px) {
  .readiness-steps div {
    padding-right: 0;
  }
  .workspace-hero-actions {
    flex-wrap: wrap;
  }
  .operation-focus-heading {
    flex-direction: column;
  }
  .operation-focus-heading > .badge {
    align-self: flex-start;
  }
  .admin-dialog .dialog-actions {
    position: static;
  }
}

/* Commercial usage and preserved-resource restoration. */
.resource-panel-description {
  margin: 0;
  padding: 0 24px 20px;
  line-height: 1.55;
}
.usage-page {
  display: grid;
  gap: 18px;
}
.usage-page > .section-heading {
  margin-bottom: 0;
}
.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(360px,1fr));
  gap: 16px;
}
.usage-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg,#17191a,#111314);
}
.usage-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.usage-card h3,
.usage-card p {
  margin: 0;
}
.quota-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.quota-grid > div {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #ffffff02;
}
.quota-grid span,
.usage-details dt {
  color: var(--muted);
  font-size: 12px;
}
.quota-grid strong {
  font-size: 20px;
}
.quota-grid progress {
  width: 100%;
  height: 7px;
  accent-color: var(--gold);
}
.usage-details {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  margin: 0;
}
.usage-details > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.usage-details dd {
  margin: 0;
  font-weight: 700;
}
.initiator-list {
  display: grid;
  gap: 8px;
}
.initiator-list > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.initiator-list small {
  color: var(--muted);
}
.restore-callout {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #806533;
  border-radius: 9px;
  background: #d3ad540a;
}
.restore-callout > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d3ad541c;
  color: var(--gold);
  font-size: 20px;
}
.restore-callout p {
  display: grid;
  gap: 3px;
}
.restore-callout small {
  display: block;
  color: var(--muted);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 14px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff02;
}
.plan-card h3,
.plan-card p {
  margin: 0;
}
.plan-card > strong {
  font-size: 18px;
}
.plan-card ul {
  margin: 0 0 8px;
  padding-left: 18px;
  color: var(--muted);
}
.plan-card .button-link {
  margin-top: auto;
}
.badge.ok {
  color: var(--success);
  border-color: #41644e;
}
.badge.danger {
  color: var(--danger);
  border-color: #744144;
}
@media (max-width:760px) {
  .resource-panel-description {
    padding-inline: 18px;
  }
  .usage-grid {
    grid-template-columns: 1fr;
  }
  .usage-details {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .restore-callout {
    grid-template-columns: 34px minmax(0,1fr);
  }
  .restore-callout .button-link {
    grid-column: 1/-1;
  }
  .quota-grid {
    grid-template-columns: 1fr;
  }
}

.credential-panel .section-heading {
  align-items: flex-start;
}
.credential-panel .section-heading p {
  margin-top: 4px;
}
.credential-panel > .credential {
  margin-top: 12px;
}
/* Integration parameters remain readable inside dialogs and narrow tables. */
.integration-connection {
  margin: 18px 0;
  min-width: 0;
}
.integration-copy-field code,
.integration-connection code {
  overflow-wrap: anywhere;
}
.integration-copy-field dd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.integration-copy-field button {
  flex-shrink: 0;
}
.integration-examples pre {
  white-space: pre-wrap;
}
.integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width:760px) {}

/* Organization readiness, upgrades and plan-gated identity. */
.organization-context {
  display: flex;
  align-items: center;
  gap: 9px;
}
.organization-context > img,
.organization-context > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  object-fit: contain;
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 800;
}
.organization-context form {
  margin: 0;
}
.upgrade-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.setup-checklist {
  margin-bottom: 20px;
}
.setup-checklist .section-heading progress {
  width: min(240px,35vw);
  accent-color: var(--gold);
}
.setup-checklist ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.setup-checklist li {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.setup-checklist li > span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 2px solid var(--border);
  border-radius: 50%;
  font-weight: 800;
  color: var(--muted);
}
.setup-checklist li.complete > span {
  border-color: #41644e;
  background: #13241c;
  color: var(--success);
}
.setup-checklist li div {
  display: grid;
  gap: 3px;
}
.setup-checklist li small {
  color: var(--muted);
}
.branding-panel {
  margin-bottom: 20px;
}
.branding-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.branding-preview > img,
.branding-preview > span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  object-fit: contain;
  border-radius: 12px;
  background: var(--panel-raised);
  color: var(--gold);
  font-size: 24px;
  font-weight: 800;
}
.branding-preview div {
  display: grid;
  gap: 5px;
}
.branding-preview small {
  color: var(--muted);
}
.locked-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 10px;
}
.locked-feature > span {
  color: var(--gold);
  font-size: 24px;
}
.locked-feature p {
  margin: 4px 0 0;
}
.upgrade-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.upgrade-plan div {
  display: grid;
  gap: 4px;
}
.upgrade-plan small {
  color: var(--muted);
}
@media (max-width:760px) {
  .organization-context > img,
  .organization-context > span {
    display: none;
  }
  .setup-checklist .section-heading {
    display: grid;
  }
  .setup-checklist .section-heading progress {
    width: 100%;
  }
  .setup-checklist li {
    grid-template-columns: 34px minmax(0,1fr);
  }
  .setup-checklist li > a {
    grid-column: 2;
  }
  .upgrade-plan {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Space cards reuse dashboard controls while keeping long invitation URLs contained. */
.open-whispy-guide {
  margin-bottom: 20px;
}
.open-whispy-guide .section-heading {
  margin-bottom: 0;
}
.open-whispy-guide .section-heading p:last-child {
  margin-top: 8px;
}
.open-whispy-space-list,
.open-whispy-network-list {
  display: grid;
  gap: 20px;
}
.open-whispy-space {
  min-width: 0;
}
.open-whispy-space h2 {
  overflow-wrap: anywhere;
}
.open-whispy-metadata {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff03;
}
.open-whispy-metadata dt {
  color: var(--muted);
  font-size: 12px;
}
.open-whispy-metadata dd {
  margin: 6px 0 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.open-whispy-share h3,
.open-whispy-network-heading h3 {
  margin: 0;
  font-size: 14px;
}
.open-whispy-share h3 {
  margin-bottom: 10px;
}
.open-whispy-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}
.open-whispy-copy input {
  flex: 1;
  min-width: 0;
}
.open-whispy-copy button,
.open-whispy-copy .button-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
}
.open-whispy-networks {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.open-whispy-network-heading,
.open-whispy-network-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.open-whispy-network-list {
  gap: 10px;
}
.open-whispy-network-actions {
  flex-shrink: 0;
}
.open-whispy-space-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.open-whispy-space-actions form {
  margin: 0;
}
.open-whispy-audience-checks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}
.open-whispy-empty {
  margin: 0;
}
.open-whispy-empty p {
  margin: 0;
}
@media (max-width: 760px) {
  .open-whispy-metadata {
    grid-template-columns: 1fr;
  }
  .open-whispy-copy {
    flex-wrap: wrap;
  }
  .open-whispy-copy input {
    flex-basis: 100%;
  }
  .open-whispy-copy button,
  .open-whispy-copy .button-link {
    flex: 1;
  }
  .open-whispy-network-list .resource-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .open-whispy-audience-checks {
    grid-template-columns: 1fr;
  }
}
