/* Component geometry lives separately from optional dashboard color themes. */
html.dashboard-dialog-open { overflow: hidden; }
body.dashboard-page dialog.podly-dialog-backdrop {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: 24px; border: 0; background: transparent; box-shadow: none; color: var(--dash-text);
}
body.dashboard-page dialog.podly-dialog-backdrop[open] { display: grid; place-items: center; }
body.dashboard-page dialog.podly-dialog-backdrop:not([open]) { display: none; }
body.dashboard-page dialog.podly-dialog-backdrop::backdrop { background: #050812cc; backdrop-filter: blur(10px); }
body.dashboard-page .podly-dialog {
  position: relative; width: min(560px,100%); min-width: 0; max-height: calc(100dvh - 48px);
  overflow: auto; overscroll-behavior: contain; padding: 26px; border: 1px solid var(--dash-line-strong);
  border-radius: 22px; background: var(--dash-surface); color: var(--dash-text); box-shadow: 0 24px 90px #0008;
}
body.dashboard-page .podly-dialog-heading { padding-left: 52px; margin-bottom: 18px; }
body.dashboard-page .podly-dialog-heading h2 { margin: 4px 0 0; font-size: 22px; }
body.dashboard-page .podly-dialog-heading .eyebrow { color: var(--dash-purple); }
body.dashboard-page .podly-dialog-close {
  position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 1px solid var(--dash-line); border-radius: 12px; background: var(--dash-surface-2);
  color: var(--dash-text); font-size: 25px; cursor: pointer;
}
body.dashboard-page .podly-dialog-body > p { color: var(--dash-muted); font-size: 13px; }
body.dashboard-page button.workspace-switcher { width: 100%; color: inherit; font: inherit; text-align: right; cursor: pointer; }
body.dashboard-page .workspace-switcher .workspace-copy { display: grid; min-width: 0; }
body.dashboard-page .workspace-switcher strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-page .workspace-switcher .chevron { transition: transform .18s; }
body.dashboard-page .workspace-switcher[aria-expanded=true] .chevron { transform: rotate(180deg); }
body.dashboard-page .workspace-switcher:hover { border-color: var(--dash-purple); }
body.dashboard-page .workspace-list { display: grid; gap: 10px; margin-top: 18px; }
body.dashboard-page .workspace-option-wrap { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 6px; }
body.dashboard-page .workspace-option-wrap:has(>.workspace-option:only-child) { grid-template-columns: 1fr; }
body.dashboard-page .workspace-option {
  display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px;
  min-width: 0; width: 100%; padding: 14px; border: 1px solid var(--dash-line); border-radius: 14px;
  background: var(--dash-surface-2); color: var(--dash-text); text-align: right; cursor: pointer;
}
body.dashboard-page .workspace-option.active { border-color: var(--dash-purple); background: #25233c; }
body.dashboard-page .workspace-option > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
body.dashboard-page .workspace-option strong { font-size: 14px; overflow-wrap: anywhere; }
body.dashboard-page .workspace-option small { color: var(--dash-muted); font-size: 12px; }
body.dashboard-page .workspace-option b { color: var(--dash-purple); }
body.dashboard-page .workspace-option :is(.avatar,.workspace-add) { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #b4a6ff22; color: var(--dash-purple); font-size: 20px; }
body.dashboard-page .workspace-create-option { border-style: dashed; }
body.dashboard-page .workspace-delete { min-width: 44px; min-height: 44px; border: 1px solid var(--dash-line); border-radius: 12px; background: var(--dash-surface-2); color: var(--dash-danger); font-size: 22px; cursor: pointer; }
body.dashboard-page .workspace-create-form { display: grid; gap: 16px; }
body.dashboard-page .workspace-create-form label { display: grid; gap: 7px; font-size: 13px; }
body.dashboard-page .workspace-create-form :is(input,textarea) { width: 100%; }
body.dashboard-page :is(.workspace-form-actions,.podly-confirm-actions) { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
body.dashboard-page :is(.workspace-form-error,.workspace-status.error) { color: var(--dash-danger); font-size: 13px; }
body.dashboard-page .workspace-status { margin: 16px 0; padding: 16px; border: 1px solid var(--dash-line); border-radius: 14px; color: var(--dash-muted); }
body.dashboard-page .workspace-status button { margin-top: 10px; }
body.dashboard-page .workspace-delete-confirm > p { line-height: 2; }
body.dashboard-page .support-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
body.dashboard-page .support-grid a { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--dash-line); border-radius: 14px; background: var(--dash-surface-2); color: var(--dash-text); text-decoration: none; }
body.dashboard-page .support-grid a:hover { border-color: var(--dash-purple); }
body.dashboard-page .support-grid a > span { color: var(--dash-purple); font-size: 22px; }
body.dashboard-page .support-grid strong { font-size: 14px; }
body.dashboard-page :is(.support-grid small,.support-note) { color: var(--dash-muted); font-size: 12px; line-height: 1.9; }
body.dashboard-page .support-note { margin-top: 16px; }
body.dashboard-page .workspace-delete-confirm .danger { min-height: 44px; padding: 10px 16px; border: 1px solid #83485a; border-radius: 12px; background: #321c29; color: var(--dash-danger); }
body.dashboard-page .profile-menu { width: min(300px,calc(100vw - 24px)); max-height: calc(100dvh - 96px); padding: 8px; overflow: auto; overscroll-behavior: contain; }
body.dashboard-page .profile-menu .profile-identity { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 8px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--dash-line); }
body.dashboard-page .profile-menu .profile-avatar { position: relative; display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; border-radius: 50%; background: #b4a6ff22; color: var(--dash-purple); font-size: 15px; font-weight: 800; }
body.dashboard-page .profile-menu .profile-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
body.dashboard-page .profile-menu .profile-identity-copy { display: grid; min-width: 0; gap: 4px; }
body.dashboard-page .profile-menu .profile-identity-copy strong { padding: 0; color: var(--dash-text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-page .profile-menu .profile-identity-copy small { overflow: hidden; color: var(--dash-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
body.dashboard-page .profile-menu > button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--dash-text); font: inherit; font-size: 13px; text-align: right; cursor: pointer; }
body.dashboard-page .profile-menu > button:hover { background: var(--dash-surface-2); }
body.dashboard-page .profile-menu > button svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.dashboard-page .profile-menu > [data-logout] { color: var(--dash-danger); }
body.dashboard-page :is(.notifications-panel,.profile-menu,.hero-credit-popover) { z-index: 120; }
body.dashboard-page .notifications-panel { max-height: calc(100dvh - 96px); }
body.dashboard-page .notifications-head { min-height: 60px; gap: 12px; }
body.dashboard-page .notifications-head strong { font-size: 15px; }
body.dashboard-page .notifications-head button { min-height: 44px; font-size: 12px; }
body.dashboard-page .notifications-list .notification-open { padding: 16px 14px 16px 54px; }
body.dashboard-page .notifications-list .notification-item { border-color: var(--dash-line); background: var(--dash-surface-2); box-shadow: none; }
body.dashboard-page .notifications-list .notification-item:hover { border-color: var(--dash-line-strong); background: var(--dash-surface-3); }
body.dashboard-page .notification-open strong { font-size: 13px; }
body.dashboard-page .notification-open small { font-size: 12px; line-height: 1.9; color: var(--dash-muted); overflow-wrap: anywhere; }
body.dashboard-page .notification-open time { font-size: 11px; color: var(--dash-subtle); }
body.dashboard-page .notifications-list .notification-remove { width: 44px; height: 44px; left: 5px; top: 6px; }
body.dashboard-page .notifications-manage { min-height: 44px; font-size: 12px; background: var(--dash-surface-2); }
body.dashboard-page .hero-credit-popover { max-width: calc(100vw - 24px); max-height: calc(100dvh - 96px); overflow: auto; }
body.dashboard-page #billing .billing-trust-row > div { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 4px 12px; align-content: center; border: 1px solid var(--dash-line); border-radius: 14px; background: var(--dash-surface); }
body.dashboard-page #billing .billing-trust-row > div > span { grid-column: 1; grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #b4a6ff18; color: var(--dash-purple); }
body.dashboard-page #billing .billing-trust-row :is(strong,small) { grid-column: 2; }
body.dashboard-page #billing .billing-trust-row strong { font-size: 13px; color: var(--dash-text); }
body.dashboard-page #billing .billing-trust-row small { font-size: 12px; line-height: 1.9; color: var(--dash-muted); }
body.dashboard-page #tickets-center .ticket-search input { flex: 1; min-width: 0; width: auto; margin: 0; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; }
@media (max-width: 760px) {
  body.dashboard-page dialog.podly-dialog-backdrop { padding: 12px; }
  body.dashboard-page .podly-dialog { max-height: calc(100dvh - 24px); padding: 20px 16px; border-radius: 18px; }
  body.dashboard-page .podly-dialog-heading h2 { font-size: 20px; }
  body.dashboard-page .workspace-option { padding: 12px; gap: 8px; }
}
