#dashboard :is(.accounts-users, .accounts-domains, .accounts-settings, .accounts-profile) { min-width: 0; }
#dashboard :is(.accounts-users, .accounts-domains, .accounts-settings) { display: flex; flex-direction: column; gap: 16px; }
#dashboard :is(.accounts-users, .accounts-domains, .accounts-settings) > .card { margin: 0; padding: 24px; }
#dashboard :is(.accounts-users, .accounts-domains, .accounts-settings) .table-wrap { border: 1px solid var(--border); border-radius: 12px; box-shadow: none; }
#dashboard :is(.accounts-users, .accounts-domains, .accounts-settings) .num-col { text-align: right; }
#dashboard .account-section-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.65; padding-bottom: 16px; margin: 0 0 20px; border-bottom: 1px solid var(--line-soft, var(--border)); }
#dashboard .account-section-title > i { color: var(--primary); font-size: 15px; }
#dashboard .account-section-head h2 > i { color: var(--accent); }
#dashboard .account-help { display: block; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
#dashboard .account-table-note { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 16px 0 0; }
#dashboard .account-table-note b { font-weight: 600; }
#dashboard .account-feedback { font-size: 13px; line-height: 1.8; color: var(--danger); margin: 0; overflow-wrap: anywhere; }
#dashboard .account-feedback:empty { display: none; }
#dashboard #users-status { padding: 13px 16px; border: 1px solid var(--danger); border-radius: 10px; background: var(--danger-soft); }
#dashboard .account-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 6px; margin-top: 10px; }
#dashboard .account-form-actions button, #dashboard .account-inline button { white-space: nowrap; }
#dashboard .account-field { margin-bottom: 20px; }
#dashboard :is(.accounts-domains, .accounts-settings, .account-user-dialog) label { color: var(--text); font-size: 13px; margin-bottom: 8px; }
#dashboard :is(.accounts-domains, .accounts-settings, .account-user-dialog) input:not([type="checkbox"]), #dashboard :is(.accounts-domains, .accounts-settings, .account-user-dialog) select { min-height: 44px; }
#dashboard :is(.accounts-domains, .accounts-settings, .account-user-dialog) textarea { line-height: 1.8; }
#dashboard .account-inline { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; }
#dashboard .account-inline > input { min-width: 0; flex: 1 1 240px; }
#dashboard .account-domain-count { margin: -6px 0 16px; font-size: 12.5px; color: var(--muted); }
#dashboard .account-domain-list { min-height: 210px; padding: 14px 16px; font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; font-size: 13.5px !important; line-height: 1.75 !important; resize: vertical; }
#dashboard .account-domain-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
#dashboard .account-domain-toolbar button { min-height: 40px; font-size: 12.5px; line-height: 1.5; }
#dashboard #dm-check-meta { font-size: 12.5px; }
#dashboard .account-domain-name { color: var(--text); font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
#dashboard .account-tag { display: inline-block; padding: 2px 6px; background: var(--panel2); border-radius: 5px; color: var(--muted); font-size: 10.5px; line-height: 1.5; font-weight: 500; }
#dashboard .account-route-why { margin-top: 3px; font-size: 10.5px; line-height: 1.65; color: var(--faint); }
#dashboard .account-grant-count { color: var(--primary); font-weight: 600; }
#dashboard .accounts-domains table { min-width: 0; }
#dashboard .accounts-domains :is(th, td) { white-space: nowrap; }
#dashboard .account-domains-editor > .account-field { padding-bottom: 4px; }
#dashboard #dm-input, #dashboard #sy-ipdata { font-family: var(--font-mono); }
#dashboard .account-domain-name + .account-tag { display: inline; margin-left: 6px; padding: 1px 7px; font-size: 11px; font-weight: 400; line-height: 1.65; background: var(--field); }
#dashboard #dm-summary strong { color: var(--text); font-weight: 700; }
#dashboard #dm-summary .account-domain-breakdown { font-size: .8rem; font-weight: 400; opacity: .8; }
#dashboard .accounts-domains td .icon-btn, #dashboard #ann-list .icon-btn { margin-left: auto; width: 32px; height: 32px; min-width: 32px; min-height: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--faint); font-size: 13px; }
#dashboard .account-status-box { padding: 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-size: 12px; line-height: 1.75; margin-top: 10px; }
#dashboard .account-status-box b { font-weight: 700; }
#dashboard .account-clear-secret { margin-top: 10px; font-size: 12px !important; color: var(--muted) !important; }
#dashboard .account-switch { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 16px; }
#dashboard .account-switch > div { flex: 1; margin-right: 8px; }
#dashboard .account-switch strong > i { color: var(--accent); margin-right: 4px; }
#dashboard .account-switch strong { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.35; margin-bottom: 2px; }
#dashboard .account-switch .account-help { margin-top: 0; font-size: 11.5px; line-height: 1.65; }
#dashboard .account-toggle { position: relative; width: 48px; height: 24px; flex: 0 0 48px; margin: 0 0 8px !important; cursor: pointer; }
#dashboard .account-toggle input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
#dashboard .account-toggle > span { position: relative; display: block; width: 100%; height: 100%; border: 1px solid var(--border); border-radius: 24px; background: var(--field); pointer-events: none; transition: background .15s; }
#dashboard .account-toggle > span::before { content: ''; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 2px rgb(0 0 0 / 25%); transition: transform .15s; }
#dashboard .account-toggle input:checked + span { background: var(--primary); border-color: var(--primary); }
#dashboard .account-toggle input:checked + span::before { transform: translateX(24px); }
#dashboard .account-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
#dashboard .account-toggle input:disabled + span { opacity: .6; }
#dashboard .account-switch-note { margin: -8px 0 16px; }
#dashboard .account-advanced { margin: 16px 0; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; }
#dashboard .account-advanced summary { padding: 12px 14px; cursor: pointer; color: var(--muted); }
#dashboard .account-advanced[open] { padding-bottom: 14px; }
#dashboard .account-advanced > :not(summary) { margin: 12px 14px 0; }
#dashboard .account-lead { margin: 0 0 16px; }
#dashboard .account-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 10px; margin-bottom: 16px; }
#dashboard .account-stat { background: var(--field); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
#dashboard .account-stat > span { display: block; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.7; }
#dashboard .account-stat > strong { display: block; font-size: 26px; font-weight: 500; margin-top: 8px; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#dashboard #device-sync-time { font-size: 15px; }
#dashboard .account-subtitle { font-size: 13px; font-weight: 600; margin: 22px 0 10px; }
#dashboard .account-ann-type { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; padding: 4px 9px; line-height: 1.5; border-radius: 20px; white-space: nowrap; }
#dashboard .account-ann-type::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#dashboard .account-ann-type.info { background: var(--success-soft); color: var(--ok); }
#dashboard .account-ann-type.success { background: var(--success-soft); color: var(--ok); }
#dashboard .account-ann-type.warning { background: var(--warning-soft); color: var(--warn); }
#dashboard .account-ann-type.danger { background: var(--danger-soft); color: var(--danger); }
#dashboard #ann-card table { width: 100%; min-width: 0; }
#dashboard #ann-card th { white-space: nowrap; }
#dashboard .account-ann-message { font-size: 12.5px; line-height: 1.65; white-space: normal; }
#dashboard #ann-list td:last-child .icon-btn { margin-left: auto; }
#dashboard .account-page-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
#dashboard .account-page-actions > p { margin: 0; color: var(--muted); font-size: 13px; }
#dashboard .account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#dashboard .account-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
#dashboard .account-section-head h2 { margin: 0; font-size: 17px; line-height: 1.7; font-weight: 600; }
#dashboard .account-section-head h2 > i { margin-right: 6px; }
#dashboard .account-section-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
#dashboard .account-queue-order { color: var(--faint); font-size: 11px; white-space: nowrap; }
#dashboard #u-pending-count { display: inline-flex; vertical-align: middle; margin-left: 7px; }
#dashboard .account-approval-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#dashboard .account-approval-card { display: flex; flex-direction: column; gap: 15px; padding: 18px; border: 1px solid var(--border); background: var(--field); border-radius: 12px; min-width: 0; }
#dashboard .account-approval-identity { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
#dashboard .account-approval-identity > div { min-width: 0; }
#dashboard .account-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; color: var(--accent); background: var(--success-soft); font-size: 18px; font-weight: 500; }
#dashboard .account-user-name { color: var(--text); font-weight: 500; font-size: 13px; overflow-wrap: anywhere; }
#dashboard .account-user-email { font-size: 11.5px; color: var(--faint); margin-top: 2px; overflow-wrap: anywhere; }
#dashboard .account-approval-date { margin: auto 0 0; color: var(--faint); font-size: 11.5px; line-height: 1.6; }
#dashboard .account-approval-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#dashboard .account-approval-actions .account-approve { flex: 1; }
#dashboard button.account-approve { color: var(--ok); background: var(--success-soft); border-color: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
#dashboard .account-empty { grid-column: 1 / -1; margin: 0; padding: 24px 16px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.8; }
#dashboard .account-empty > i { display: block; margin-bottom: 9px; color: var(--ok); font-size: 24px; }
#dashboard .account-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
#dashboard .account-search { display: flex; align-items: center; position: relative; flex: 1 1 220px; }
#dashboard .account-search > i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 12px; pointer-events: none; }
#dashboard .account-search > input { padding-left: 34px; height: 38px; }
#dashboard .account-filters > select { flex: 0 1 160px; width: 160px; min-height: 38px; padding-top: 5px; padding-bottom: 5px; }
#dashboard #u-table { min-width: 1050px; }
#dashboard .account-cell-identity { min-width: 170px; max-width: 230px; }
#dashboard .account-cell-domains { max-width: 180px; }
#dashboard .account-grant-tags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; overflow-wrap: anywhere; }
#dashboard .account-key-mask { font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
#dashboard .account-action-label { display: none; }
#dashboard .account-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; font-size: 12px; color: var(--muted); }
#dashboard .account-pagination > div { display: flex; gap: 8px; }
#dashboard .account-pagination button { min-height: 38px; }
#dashboard :is(.account-pagination, .account-page-actions, .account-filters) [hidden], #dashboard .account-pagination[hidden] { display: none !important; }
#dashboard #tab-users { animation: slide-down .4s cubic-bezier(.16, 1, .3, 1); }
body.account-editor-open { overflow: hidden; }
#dashboard .account-user-dialog { width: min(650px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); color: var(--text); box-shadow: 0 20px 70px rgb(0 0 0 / 25%); overflow-y: auto; }
#dashboard .account-user-dialog:not([open]) { display: none; }
#dashboard .account-user-dialog::backdrop { background: rgb(8 28 18 / 58%); }
#dashboard .account-dialog-head { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
#dashboard .account-user-dialog .account-help { font-weight: 400; }
#dashboard .account-user-dialog [hidden] { display: none !important; }
#dashboard .account-user-dialog #u-form { display: block; }
#dashboard .account-user-dialog .form-group { margin-bottom: 20px; }
#dashboard .account-user-dialog .form-group > label { margin-bottom: 8px; }
#dashboard .account-user-dialog .account-credential-fields { display: block; margin-bottom: 0; }
#dashboard .account-user-dialog #u-form[data-mode="edit"] .account-credential-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 16px; }
#dashboard .account-user-dialog .form-help { margin-top: 5px; font-size: 12px; }
#dashboard #u-dialog :is(input, select, textarea):focus { border-color: var(--primary); background: var(--panel); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); outline: none; }
#dashboard #u-dialog :is(input[type="text"], input:not([type]), input[type="password"], input[type="email"], input[type="url"], textarea) { transition: all .3s cubic-bezier(.4, 0, .2, 1); resize: vertical; }
#dashboard #u-dialog select { transition: all .3s cubic-bezier(.4, 0, .2, 1); }
#dashboard .account-user-dialog #u-limit { width: auto; }
#dashboard #u-form-lead { margin: 0 0 20px; }
#dashboard #u-domain-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 12px; max-height: 190px; overflow-y: auto; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--field); }
#dashboard .account-grant-item { display: flex !important; align-items: center; gap: 8px; cursor: pointer; min-width: 0; margin: 0 0 8px !important; }
#dashboard .account-grant-item input { flex: none; width: auto; cursor: pointer; accent-color: var(--primary); margin: 0; }
#dashboard .account-grant-item > span { font-family: var(--font-mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dashboard #u-domains-wrap { margin-bottom: 20px; padding: 16px; border-radius: 12px; background: var(--field); }
#dashboard #u-domains-wrap .form-help { margin-top: 8px; }
#dashboard #u-status:not(:empty) { margin-bottom: 16px; }
#dashboard .accounts-profile .profile-layout { gap: 22px; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: start; }
#dashboard .accounts-profile .profile-identity-card { padding: 24px; margin: 0; }
#dashboard .accounts-profile .profile-form-card { padding: 24px; margin: 0; }
#dashboard .accounts-profile .profile-avatar { width: 76px; height: 76px; margin-bottom: 14px; }
#dashboard .accounts-profile .profile-name { font-size: 15px; font-weight: 600; margin-bottom: 7px; }
#dashboard .accounts-profile .profile-role { margin-bottom: 18px; }
#dashboard .accounts-profile .profile-kv .kv { padding: 12px 0; line-height: 1.65; }
#dashboard .accounts-profile .profile-kv + .profile-kv { border-top: 0; }
#dashboard .accounts-profile .profile-form-card > h3 { font-size: 16px; font-weight: 600; margin-bottom: 22px; }
#dashboard .accounts-profile .profile-form-card > label { margin-bottom: 0; color: var(--text); font-size: 12.5px; font-weight: 500; }
#dashboard .accounts-profile .profile-form-card input:not([type="checkbox"]) { min-height: 44px; margin-top: 8px; }
#dashboard .accounts-profile #pf-username { opacity: .65; cursor: not-allowed; }
#dashboard .accounts-profile .profile-divider { margin: 22px 0 22px; }
#dashboard .accounts-profile .profile-form-card .grid2 { margin-top: 20px; }
#dashboard .accounts-profile .profile-form-card > .row { margin-top: 10px; margin-bottom: 0; }
#dashboard #profile-form > .grid2 { margin-bottom: 16px; }
#dashboard #profile-form > .grid2 > label { margin-bottom: 20px; }
@media (max-width: 1250px) {
    #dashboard .account-approval-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #dashboard .account-queue-order { display: none; }
}
@media (max-width: 1100px) {
    #dashboard .account-users-table-wrap { overflow: visible; border: 0 !important; background: transparent !important; box-shadow: none !important; }
    #dashboard #u-table { display: block; min-width: 0; width: 100%; }
    #dashboard #u-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    #dashboard #u-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    #dashboard #u-body > tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--field); }
    #dashboard #u-body td { display: flex; align-items: flex-start; flex-direction: column; min-width: 0; max-width: none; gap: 7px; padding: 12px 14px; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
    #dashboard #u-body td[data-label]::before { content: attr(data-label); font-size: 11px; color: var(--faint); }
    #dashboard #u-body :is(.account-cell-identity, .account-cell-domains, .account-cell-actions, td[colspan]) { grid-column: 1 / -1; }
    #dashboard #u-body .account-cell-identity { border-bottom: 1px solid var(--border); padding: 16px 14px; gap: 3px; }
    #dashboard #u-body .account-cell-actions { grid-row: 2; border-bottom: 1px solid var(--border); background: var(--panel); }
    #dashboard #u-body .account-cell-count { grid-row: 4; grid-column: 2; }
    #dashboard .account-action-label { display: inline; }
    #dashboard #u-body .actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
    #dashboard #u-body .actions button { min-height: 40px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; }
    #dashboard #u-body .actions .account-approve { flex: 1 1 100%; padding: 0 10px; gap: 6px; }
    #dashboard .account-key-mask { font-size: 11px; letter-spacing: 0; white-space: normal; }
    #dashboard #u-body .account-empty-row { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    #dashboard .accounts-profile .profile-layout { grid-template-columns: minmax(0, 1fr); }
    #dashboard #ann-card table { width: max-content; min-width: 100%; }
}
@media (max-width: 650px) {
    #dashboard :is(.accounts-users, .accounts-domains, .accounts-settings) > .card, #dashboard .accounts-profile :is(.profile-identity-card, .profile-form-card) { padding: 18px 16px; }
    #dashboard .account-section-title { font-size: 14px; padding-bottom: 14px; margin-bottom: 17px; flex-wrap: wrap; }
    #dashboard .account-actions { width: 100%; }
    #dashboard .account-actions button { flex: 1; }
    #dashboard .account-section-head h2 { font-size: 15px; }
    #dashboard .account-approval-list, #dashboard #u-body { grid-template-columns: minmax(0, 1fr); }
    #dashboard .account-filters .account-search { flex-basis: 100%; }
    #dashboard .account-filters select { flex: 1 1 110px; min-width: 0; width: auto; }
    #dashboard .account-approval-card { padding: 16px; }
    #dashboard .account-user-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 20px 16px; border-radius: 14px; }
    #dashboard .account-user-dialog #u-form[data-mode="edit"] .account-credential-fields { gap: 18px; }
    #dashboard .account-switch { padding: 14px; }
    #dashboard .account-advanced .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    #dashboard .account-toggle > span, #dashboard .account-toggle > span::before { transition: none; }
}
#dashboard :is(.accounts-users, .accounts-settings, .accounts-domains, .accounts-profile) :is(input:not([type="checkbox"]), select, textarea) { background: var(--field); }
#dashboard .accounts-profile .profile-avatar { background: var(--shell); color: #d8e9c5; border: 1px solid var(--border); }
#dashboard .accounts-profile .profile-kv dd { font-weight: 600; }
#dashboard .accounts-profile .profile-kv dd.profile-html-on { color: var(--ok); }
#dashboard :is(.accounts-users, .accounts-domains) .pill { white-space: nowrap; border-radius: 20px; padding: 4px 9px; font-size: 11px; font-weight: 500; line-height: 1.5; gap: 6px; }
#dashboard :is(.accounts-users, .accounts-domains) .pill::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
#dashboard :is(.accounts-users, .accounts-domains) .pill.off { color: var(--faint); background: var(--field); }
#dashboard .accounts-users .account-role { display: inline-block; border: 1px solid transparent; border-radius: 20px; }
#dashboard .account-user-name > .account-tag { display: inline; padding: 1px 7px; font-size: 11px; line-height: 1.65; background: var(--field); white-space: nowrap; }
#dashboard .accounts-users .account-role::before { content: none; }
#dashboard .accounts-users .account-role.on { color: var(--muted); background: var(--field); }
#dashboard #u-table th { white-space: nowrap; }
#dashboard .account-cell-actions .actions { justify-content: flex-end; align-items: center; gap: 6px; }
#dashboard .account-cell-actions button { display: grid; place-items: center; width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--faint); font: 13px Arial; white-space: nowrap; }
#dashboard .account-cell-actions button.account-approve { display: inline-flex; align-items: center; width: auto; padding: 0 10px; gap: 5px; white-space: nowrap; border-color: transparent; color: var(--ok); font-family: Arial, sans-serif; font-size: 12px; font-weight: 400; line-height: normal; }
#dashboard .account-cell-actions button[data-act="suspend"] { width: auto; padding: 0 10px; gap: 6px; font-size: 12px; }
#dashboard .account-cell-actions button.account-approve { background: var(--success-soft); }
#dashboard .account-cell-actions button:hover { background: var(--panel2); }
#dashboard .account-cell-actions button.danger:hover, #dashboard :is(.accounts-domains, .accounts-settings) td .icon-btn:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
#dashboard .account-stamp { display: inline; font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 11.5px; line-height: 1.65; white-space: nowrap; }
#dashboard .account-stamp b { display: block; font-size: 11px; font-weight: 400; color: var(--faint); }
#dashboard #profile-form > h3:not(:first-child) { padding: 0; margin: 22px 0 10px; border: 0; font-size: 13px; font-weight: 600; }
#dashboard #profile-form > .account-help { margin-bottom: 16px; }
#dashboard #profile-form > label + .account-help { margin-bottom: 20px; }
@media (max-width: 1100px) {
    #dashboard .account-cell-actions .actions { justify-content: flex-start; }
    #dashboard .account-cell-actions button { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 40px; height: 40px; padding: 0 11px; gap: 6px; }
}
#dashboard .account-approval-actions .account-approve { color: var(--button-ink); background: var(--button-primary); border: 0; line-height: 1.5; gap: 8px; }
#dashboard .accounts-users .pill.suspended { color: var(--faint); background: var(--field); }
#dashboard .account-grants-locked::after { content: 'บัญชีผู้ดูแลระบบใช้ได้ทุกโดเมนอยู่แล้ว ไม่ต้องกำหนด'; grid-column: 1 / -1; font-size: 12px; line-height: 1.7; color: var(--muted); }
#dashboard .account-grants-locked label { opacity: .6; cursor: default; }
#dashboard :is(.accounts-users, .accounts-domains, .accounts-settings, .accounts-profile) { line-height: 1.55; }
#dashboard :is(.accounts-domains, .accounts-settings, .account-user-dialog) label { font-size: 12.5px; }
#dashboard #sy-ipdata-state:empty, #dashboard #device-sync-status:empty { display: none; }
#dashboard .accounts-profile .profile-note { font-size: 12px; line-height: 1.8; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft, var(--border)); }
#dashboard .accounts-profile .profile-form-card > label > i { color: var(--accent); margin-right: 5px; }
#dashboard #profile-form > h3:first-child { line-height: 1.65; font-size: 15px; font-weight: 600; border-color: var(--line-soft); }
#dashboard #profile-form > label { margin-bottom: 0; }
#dashboard .accounts-profile .profile-kv > div { font-size: 12.5px; align-items: baseline; gap: 12px; border-color: var(--line-soft); }
#dashboard .accounts-profile .profile-kv:last-of-type > div:last-child { border-bottom: 0; }
#dashboard .accounts-profile #profile-info > div:last-child dd { font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
#dashboard .accounts-profile #profile-form > h3:first-child { display: flex; align-items: center; gap: 10px; }
#dashboard .accounts-profile #profile-form > h3:first-child > i { color: var(--primary); font-size: 15px; }
#dashboard .account-device-card .account-lead code { font: 12px var(--font-mono); padding: 1px 6px; background: var(--field); border-radius: 5px; }
#dashboard .account-grant-tags > .account-tag { background: var(--field); font-size: 11.5px; padding: 2px 8px; font-weight: 400; line-height: 1.65; white-space: nowrap; }
#dashboard .account-device-card > .account-status-box { margin-bottom: 16px; }
#dashboard .accounts-profile .profile-role .pill { display: inline-block; border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 600; }
#dashboard .accounts-profile .profile-role .pill.pending { color: var(--warn); background: var(--warning-soft); }
#dashboard #u-search { min-height: 40px; height: 40px; font-size: 13px; line-height: 1.5; border-radius: 8px; padding: 6px 12px 6px 31px; display: inline-block; min-width: 0; }
#dashboard .accounts-users .pill { padding: 4px 9px; line-height: 1.5; }
#dashboard .accounts-users .pill.pending { background: var(--warning-soft); }
#dashboard .accounts-users .account-role.pending { color: var(--ok); background: var(--success-soft); }
#dashboard .account-table-hint { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: 9px 1px 0; color: var(--faint); font-size: 10.5px; }
#dashboard .account-table-hint[hidden] { display: none; }
#dashboard :is(.accounts-domains, .accounts-settings) :is(input:not([type="checkbox"]), select, textarea) { margin: 0; }
#dashboard #dm-pool-form > .account-form-actions { margin-top: 20px; }
#dashboard #dm-status { display: block; margin: 8px 0 0; }
#dashboard #ann-msg { font-size: 13.5px; line-height: 1.75; }
@media (max-width: 650px) {
    #dashboard :is(.accounts-domains, .accounts-settings) td .icon-btn { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
    #dashboard #u-body .actions .account-approve { min-width: 40px; }
    #dashboard .account-domain-toolbar { margin-bottom: 16px; }
    #dashboard #ann-msg { font-size: 16px; }
    #dashboard #profile-form > h3:first-child { font-size: 14px; padding-bottom: 14px; margin-bottom: 17px; }
    #dashboard #profile-form > .grid2 { gap: 18px; }
    #dashboard #ann-list .icon-btn { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
}

#dashboard :is(.account-actions, .account-domain-toolbar, .account-form-actions, .account-filters, .account-inline, .account-pagination > div) > button:not(.primary):not(.account-approve), #dashboard .account-approval-actions > button:not(.account-approve) { background: var(--panel); border-color: var(--border); color: var(--muted); transition: filter .12s, border-color .12s, background .12s; }
#dashboard :is(.account-actions, .account-domain-toolbar, .account-form-actions, .account-filters, .account-inline, .account-pagination > div) > button:not(.primary):not(.account-approve):hover, #dashboard .account-approval-actions > button:not(.account-approve):hover { border-color: var(--faint); color: var(--text); }


