.lucide { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; pointer-events: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; }
.account-dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1px solid #dce1e7; border-radius: 8px; padding: 28px; color: var(--text); background: white; overflow: auto; box-shadow: 0 20px 80px #11182726, 0 2px 8px #1118270a; font-size: 14px; line-height: 1.5; }
.account-dialog::backdrop { background: rgba(21, 28, 40, .38); }
.account-dialog.account-wide { width: min(860px, calc(100% - 32px)); }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.account-title-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-title-group > .lucide { width: 22px; height: 22px; color: #466585; }
.account-heading h2 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
.account-icon-button { width: 34px; height: 34px; min-width: 34px; min-height: 34px; display: inline-flex; justify-content: center; align-items: center; padding: 0; border: 1px solid transparent; background: transparent; color: #687384; border-radius: 6px; cursor: pointer; }
.account-icon-button:hover { background: #f0f3f6; color: #1d2939; }
.account-close { margin: -8px -8px -8px 0; }
.account-close .lucide { width: 20px; height: 20px; }
.account-dialog button, .account-dialog a { transition: background-color .15s, border-color .15s, color .15s; }
.account-dialog :is(button, a, input):focus-visible { outline: 2px solid #4384c8; outline-offset: 3px; }
.account-dialog form { display: grid; gap: 18px; }
.account-field { display: grid; gap: 7px; }
.account-field label { display: block; font-size: 13px; font-weight: 600; color: #445063; }
.account-dialog input, .account-filters input, .account-filters select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: white; font: inherit; color: var(--text); }
.account-dialog input { height: 44px; padding: 10px 12px; border-color: #ced6df; border-radius: 6px; }
.account-dialog input:hover { border-color: #a4b1c0; }
.account-dialog input:focus { border-color: #4384c8; }
.account-password { position: relative; }
.account-password input { padding-right: 46px; }
.account-reveal { position: absolute; right: 5px; top: 5px; }
.account-dialog .primary-btn { min-height: 44px; border: 1px solid #1769c2; border-radius: 6px; font-weight: 600; font-size: 14px; }
.account-dialog .primary-btn:hover:not(:disabled) { background: #1259a7; }
.account-links, .account-commands, .account-pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.account-links { display: grid; grid-template-columns: auto auto; justify-content: space-between; margin-top: 14px; gap: 8px; }
.account-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; max-width: 100%; padding: 7px 11px; border: 1px solid #dce2e9; border-radius: 6px; background: white; color: #465468; font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none; cursor: pointer; }
.account-action span { min-width: 0; overflow-wrap: anywhere; }
.account-action .lucide { width: 16px; height: 16px; }
.account-action:hover { background: #f4f7fa; border-color: #bfcbd7; color: #203e61; }
.account-links .account-action { font-size: 12px; padding: 6px 8px; min-height: 34px; border-color: transparent; background: #f6f8fa; }
.account-form-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding-top: 20px; margin-top: 22px; border-top: 1px solid #e9edf1; color: #778190; font-size: 13px; }
.account-accent { color: #1769b5; border-color: #d5e5f3; background: #f4f8fc; }
.account-back { margin-top: 18px; }
.account-back .account-action { border-color: transparent; padding-left: 0; background: transparent; }
.account-back .account-action:hover { color: #1769b5; }
.account-intro { margin: -10px 0 22px; color: #687384; font-size: 14px; }
.account-note { margin: 0; color: #738092; line-height: 1.6; font-size: 12px; }
.account-message { margin: 18px 0 0; padding: 10px 12px; background: #f0f7f4; border: 1px solid #d7eade; border-radius: 6px; color: #276448; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.account-message:empty { display: none; }
.account-message.account-error { background: #fff5f4; border-color: #f2dcd8; color: #b4433a; }
.account-error { color: var(--danger); }
.account-profile { display: flex; align-items: center; gap: 14px; }
.account-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; border: 1px solid #e0e7ef; border-radius: 8px; color: #527394; background: #f2f6fa; }
.account-avatar .lucide { width: 23px; height: 23px; }
.account-identity { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.account-identity > span { color: #85909d; font-size: 12px; }
.account-identity strong { color: #253346; font-size: 16px; font-weight: 600; }
.account-commands { margin-top: 20px; }
.account-signout { margin-left: auto; color: #b14d48; border-color: #ecdcd9; }
.account-signout:hover { background: #fff4f2; border-color: #dbb7b2; color: #a52f29; }
.account-jobs-section { border-top: 1px solid #e7ebf0; padding-top: 23px; margin-top: 26px; }
.account-section-heading, .account-section-heading > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.account-section-heading { margin-bottom: 16px; }
.account-section-heading h3 { margin: 0; font-size: 15px; font-weight: 650; }
.account-limit { color: #929ca8; font-size: 12px; }
.account-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 190px; gap: 12px; color: #8c97a4; text-align: center; }
.account-empty > .lucide { width: 30px; height: 30px; stroke-width: 1.4; color: #aab6c2; }
.account-empty p { margin: 0; font-size: 13px; }
.account-spin { animation: account-spin 1.4s linear infinite; }
@keyframes account-spin { to { transform: rotate(360deg); } }
.account-table-wrap { overflow: auto; border: 1px solid var(--line); }
.account-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.account-table th { background: #edf2f8; }
.account-table th, .account-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; min-width: 110px; max-width: 300px; }
.account-table td button { margin: 2px; font-size: 13px; }
.account-jobs { table-layout: fixed; }
.account-jobs th { background: #f6f8fa; color: #7b8795; font-size: 12px; font-weight: 500; }
.account-jobs th:first-child { width: 35%; border-radius: 5px 0 0 5px; }
.account-jobs th:last-child { width: 16%; border-radius: 0 5px 5px 0; }
.account-jobs :is(th, td) { min-width: 0; max-width: none; padding: 12px 10px; border-color: #edf0f4; vertical-align: middle; }
.account-jobs td { font-size: 12px; color: #6f7c8c; }
.account-jobs td:last-child, .account-jobs th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.account-jobs tr:last-child td { border-bottom: 0; }
.account-scene { display: flex; align-items: center; gap: 8px; color: #36465b; font-weight: 500; }
.account-scene .lucide { width: 16px; height: 16px; color: #8a9bad; }
.account-status { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12px; color: #3b7e65; }
.account-status::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-running { color: #b07d23; }
.status-failed { color: #bb514a; }
.status-muted { color: #8c96a3; }
.account-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); margin: 14px 0 20px; gap: 8px 20px; }
.account-counts > div { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 8px; padding: 8px 0; }
.account-counts dt { font-size: 14px; color: var(--muted); }
.account-counts dd { margin: 0; font-weight: 650; }
.account-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.account-filters label { display: grid; gap: 6px; font-size: 14px; flex: 1 1 160px; max-width: 300px; }
.account-filters button, .account-filters a { min-height: 40px; }
.account-filters a.secondary-btn { display: inline-flex; align-items: center; padding: 8px 12px; text-decoration: none; }
.account-admin { border-top: 1px solid var(--line); padding: 20px 0; }
.account-admin h2 { font-size: 20px; margin: 0 0 16px; }
#accountBtn { max-width: 170px; white-space: normal; gap: 7px; }
@media(max-width: 700px) {
  .topbar { height: auto; min-height: 96px; flex-wrap: wrap; }
  .topbar-actions { width: 100%; }
  .brand-subtitle { font-size: 14px; }
  .account-dialog { padding: 22px; }
  .account-filters label { max-width: none; }
}
@media(max-width: 540px) {
  .account-dialog { width: calc(100% - 24px); padding: 22px 20px; }
  .account-heading { margin-bottom: 24px; }
  .account-heading h2 { font-size: 20px; }
  .account-identity strong { font-size: 14px; }
  .account-links { grid-template-columns: 1fr; justify-items: stretch; }
  .account-links .account-action { justify-content: flex-start; padding: 8px 10px; }
  .account-signout { margin-left: 0; }
  .account-jobs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .account-jobs, .account-jobs tbody { display: block; }
  .account-jobs tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 16px 0; border-bottom: 1px solid #edf0f4; }
  .account-jobs tr:last-child { border-bottom: 0; }
  .account-jobs td { display: block; border: 0; padding: 0; font-size: 12px; }
  .account-jobs td:nth-child(2) { text-align: right; }
  .account-jobs td:last-child::before { content: attr(data-label) " "; color: #929ca8; }
  .account-scene { font-size: 13px; }
  .account-section-heading { gap: 8px; }
  .account-section-heading h3 { font-size: 14px; }
  .account-limit { font-size: 11px; }
}
@media(prefers-reduced-motion: reduce) { .account-spin { animation: none; } .account-dialog button, .account-dialog a { transition: none; } }
