.admin-page .container { width: min(1240px, calc(100% - 64px)); }
.admin-workspace { display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 48px; padding-block: 45px 72px; }
.admin-sidebar-title { font-size: 11px; font-weight: 550; color: var(--subtle); padding: 0 12px; margin: 0 0 12px; }
.admin-sidebar nav { display: grid; gap: 3px; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; min-height: 37px; padding: 8px 12px; color: #73757e; border-radius: 6px; font-size: 13px; }
.admin-sidebar .icon { width: 16px; height: 16px; color: #8d9098; }
.admin-sidebar a:hover { background: #f8f8fa; }
.admin-sidebar [aria-current] { background: #f2f3f5; color: var(--ink); font-weight: 550; }
.admin-sidebar [aria-current] .icon { color: #4f535c; }
.admin-content { min-width: 0; }
.admin-heading, .admin-title, .admin-toolbar { display: flex; align-items: center; }
.admin-heading { justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.admin-title { gap: 12px; }
.admin-title h1 { font-size: 27px; font-weight: 580; line-height: 1.3; letter-spacing: -.038em; }
.admin-title .ports-count { height: 22px; min-width: 22px; font-size: 11px; }
.admin-heading .button { font-size: 12px; min-height: 35px; }
.admin-heading .button > span:first-child { font-size: 19px; font-weight: 400; line-height: 1; }
.admin-toolbar { gap: 20px; justify-content: space-between; padding-bottom: 17px; }
.admin-search { display: flex; align-items: center; gap: 8px; min-width: 0; width: 290px; }
.admin-search .icon { color: #a1a4ad; width: 16px; height: 16px; }
.admin-search input { padding: 5px 0; width: 100%; border: 0; background: transparent; font-size: 12px; outline-offset: 4px; }
.admin-search input::placeholder { color: #999ca5; }
.admin-port-filter { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; cursor: pointer; }
.admin-port-filter[hidden] { display: none; }
.admin-port-filter input { margin: 0; accent-color: var(--ink); }
.admin-table-scroll { position: relative; width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.admin-table th { padding: 11px 16px; background: #fafafb; color: #858892; font-size: 11px; font-weight: 450; white-space: nowrap; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 16px; border-bottom: 1px solid #eff0f2; height: 64px; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fdfdfe; }
.admin-table td:last-child { text-align: right; width: 1%; white-space: nowrap; }
.admin-table strong { font-weight: 550; }
.admin-table.audit-table { min-width: 960px; }
.audit-table td { vertical-align: top; padding-block: 18px; }
.audit-table td:last-child { text-align: left; width: 38%; white-space: normal; }
.audit-table td:nth-child(2) { min-width: 205px; max-width: 250px; overflow-wrap: anywhere; }
.audit-time { width: 128px; color: #727681; font-size: 11px; font-variant-numeric: tabular-nums; }
.audit-time time { display: block; max-width: 110px; line-height: 1.7; }
.audit-actor { min-width: 180px; max-width: 220px; overflow-wrap: anywhere; }
.audit-change + .audit-change { margin-top: 10px; }
.audit-field { display: block; margin-bottom: 3px; color: #8b8f99; font-size: 10px; }
.audit-change > div { line-height: 1.65; overflow-wrap: anywhere; }
.audit-before { color: #858992; }
.audit-arrow { color: #a2a6ae; margin-inline: 4px; }
.audit-unchanged { color: #858992; }
.audit-table .audit-order-id { display: block; margin-top: 8px; max-width: 210px; font-size: 9px; color: #a5a8af; }
.admin-table small { display: block; color: #90939b; font-size: 10px; margin-top: 4px; font-weight: 400; }
.admin-table .numeric { font-variant-numeric: tabular-nums; }
.admin-mono { font-family: var(--mono); font-size: 11px; letter-spacing: -.02em; }
.admin-table code { font-size: 10px; font-family: var(--mono); color: #9599a2; overflow-wrap: anywhere; }
.admin-table .record-link { display: block; max-width: 260px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: #666d7b; }
.record-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.admin-table button { padding: 5px 6px; color: #787d87; font-size: 11px; border-radius: 4px; }
.admin-table button:hover { color: #25262a; background: #eff1f4; }
.admin-table button + button { margin-left: 3px; }
.admin-operator { display: flex; align-items: center; gap: 10px; }
.admin-logo { width: 28px; height: 28px; border-radius: 5px; object-fit: contain; flex-shrink: 0; }
.admin-logo-placeholder { display: grid; place-items: center; background: #f4f5f7; color: #8c909a; font-size: 12px; font-weight: 550; }
.admin-empty { padding: 65px 24px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.admin-empty h2 { font-size: 16px; font-weight: 550; letter-spacing: -.025em; }
.admin-empty p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.admin-loading { padding: 40px 0; color: var(--subtle); font-size: 12px; }
.admin-feedback { margin: 0 0 16px; font-size: 12px; color: #8e463e; line-height: 1.65; }
.admin-feedback[data-success] { color: #377655; }
.proxy-credentials { width: 255px; max-width: 100%; }
.proxy-password-control { display: flex; align-items: center; gap: 7px; }
.proxy-password-control input { width: 188px; min-width: 0; padding: 7px 8px; border: 1px solid #e6e8ed; border-radius: 5px; background: #fafbfc; font-size: 11px; color: #444a57; }
.proxy-password-control button { flex-shrink: 0; padding: 6px; font-size: 11px; color: #686e7a; border-radius: 4px; }
.proxy-password-control button:hover { background: #eff1f4; color: #25262a; }
.proxy-password-control button:disabled { opacity: .5; cursor: wait; }
.proxy-password-status { max-width: 255px; white-space: normal; line-height: 1.6; }
.proxy-password-status[data-state=error] { color: #98632c; }
.admin-page .field .proxy-credentials { width: 100%; }
.admin-page .field .proxy-password-control input { flex: 1; font-size: 12px; }
#access-feedback { padding-top: 40px; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; font-size: 11px; color: #8d919b; font-variant-numeric: tabular-nums; }
.admin-pagination > div { display: flex; gap: 7px; }
.admin-pagination .button { min-height: 29px; padding: 4px 10px; font-size: 11px; font-weight: 450; }
.admin-page dialog { width: min(500px, calc(100% - 32px)); }
.admin-page .dialog-header h2 { font-size: 19px; }
.admin-close { color: #9397a1; font-size: 23px; line-height: 1; padding: 0 4px; }
.admin-page .field { margin-bottom: 20px; gap: 8px; }
.admin-page .field:last-child { margin-bottom: 0; }
.admin-page .field input, .admin-page .field select { min-height: 39px; }
.admin-page .field small, .admin-field-note { color: #9599a3; font-size: 11px; line-height: 1.65; }
.user-field > label { font-size: 12px; font-weight: 450; color: #6a6f79; }
.user-picker { position: relative; min-width: 0; }
.user-picker input { padding-right: 34px; }
.user-picker-chevron { position: absolute; right: 11px; top: 12px; width: 15px; height: 15px; color: #9599a3; pointer-events: none; }
.user-options { position: absolute; z-index: 5; top: calc(100% + 6px); inset-inline: 0; max-height: min(200px, 35dvh); overflow-y: auto; overscroll-behavior: contain; padding: 4px; border: 1px solid #e1e3e8; border-radius: 7px; background: #fff; box-shadow: 0 8px 24px #18202c12, 0 2px 5px #18202c06; }
.user-option { display: block; width: 100%; padding: 9px 10px; border-radius: 4px; text-align: left; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.user-option:hover, .user-option[aria-selected="true"] { background: #f1f3f6; color: #25262a; }
.user-options-message { padding: 9px 10px; font-size: 12px; color: var(--muted); }
.admin-page .form-grid { gap: 16px; }
.admin-page .form-grid .field { margin-bottom: 20px; }
.admin-page .dialog-content > .admin-feedback { margin-top: 20px; margin-bottom: 0; }
.admin-page .dialog-footer { background: #fff; }
.admin-logo-field { display: flex; align-items: center; gap: 14px; }
.admin-logo-preview { width: 50px; height: 50px; object-fit: contain; background: #fafafb; border: 1px solid var(--line); border-radius: 8px; padding: 5px; }
.admin-logo-field input[type=file] { border: 0; padding: 0; box-shadow: none; font-size: 11px; min-height: 0; }
.admin-check { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #888d97; margin-top: 10px; }
.availability-switch { appearance: none; display: inline-block; position: relative; flex: 0 0 auto; width: 34px; height: 20px; margin: 0; padding: 0; border: 1px solid #d9dce2; border-radius: 12px; background: #e5e7eb; vertical-align: middle; cursor: pointer; transition: background .15s, border-color .15s; }
.availability-switch::before { content: ''; position: absolute; width: 14px; height: 14px; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0002; transition: transform .15s; }
.availability-switch:checked { background: var(--ink); border-color: var(--ink); }
.availability-switch:checked::before { transform: translateX(14px); }
.availability-switch:disabled { opacity: .5; cursor: wait; }
.availability-setting { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.availability-setting small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.admin-field-note { margin-bottom: 20px; }
.admin-user-billing { min-width: 0; margin: 28px 0 0; padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); }
.admin-user-billing > legend { padding: 0 10px 0 0; font-size: 14px; font-weight: 550; color: var(--ink); }
.admin-user-billing input[aria-invalid=true], .admin-user-billing select[aria-invalid=true] { border-color: #a5493f; }
.admin-id { padding: 11px 12px; background: #f8f9fa; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-family: var(--mono); overflow-wrap: anywhere; }
.button-danger { background: #a5493f; color: #fff; border-color: #993f35; }
.button-danger:hover { background: #923d34; }
#delete-name { font-size: 15px; font-weight: 550; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
#delete-description { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.65; }
@media (max-width: 960px) {
  .admin-workspace { grid-template-columns: 145px minmax(0, 1fr); gap: 24px; }
  .admin-table td, .admin-table th { padding-inline: 12px; }
  .admin-table { min-width: 620px; }
}
@media (max-width: 700px) {
  .admin-page .container { width: calc(100% - 32px); }
  .admin-workspace { display: block; padding-top: 20px; }
  .admin-sidebar { margin-bottom: 30px; }
  .admin-sidebar-title { display: none; }
  .admin-sidebar nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .admin-sidebar a { white-space: nowrap; padding: 8px 10px; font-size: 12px; }
  .admin-sidebar .icon { display: none; }
  .admin-title h1 { font-size: 23px; }
  .admin-title { gap: 7px; }
  .admin-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
  .admin-search { width: 210px; }
  .admin-page .header-inner { gap: 16px; }
  .admin-page .header-nav { gap: 15px; padding-left: 16px; }
  .admin-page .header-nav > a:first-child { display: none; }
  .admin-page .brand { font-size: 18px; }
  .admin-page .account-button { margin-left: auto; }
  .admin-page .dialog-header, .admin-page .dialog-content { padding: 20px; }
  .admin-page .dialog-footer { padding: 14px 20px; }
}
.admin-table small.access-sync-error { color: #98632c; }
.monitoring-note { margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.incident-table td { vertical-align: top; }
.incident-table .incident-problem { min-width: 170px; max-width: 280px; white-space: normal; line-height: 1.6; }
.incident-status { display: inline-block; color: #35784c; font-size: 12px; }
.incident-status.incident-open { color: #ad403d; }
.admin-payment-summary { color: #787d87; font-size: 11px; line-height: 1.7; }
.payment-options { min-width: 0; padding: 0; margin: 0 0 20px; border: 0; }
.payment-options:last-child { margin-bottom: 0; }
.payment-options legend { padding: 0; margin-bottom: 12px; color: #6a6f79; font-size: 12px; font-weight: 450; }
.payment-options label { display: flex; align-items: center; gap: 10px; min-height: 35px; font-size: 13px; cursor: pointer; }
.payment-options input { width: 16px; height: 16px; margin: 0; accent-color: #292b30; flex: 0 0 auto; }
.announcement-form { padding-bottom: 28px; }
.announcement-description { margin: 0 0 24px; max-width: 650px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.announcement-tabs { display: flex; gap: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.announcement-tabs button { position: relative; padding: 0 0 12px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.announcement-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 550; }
.announcement-tabs button[aria-selected="true"]::after { position: absolute; content: ''; height: 2px; background: currentColor; bottom: -1px; left: 0; right: 0; }
.announcement-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.announcement-tabs button:disabled { cursor: default; opacity: .5; }
.announcement-languages { min-width: 0; }
.announcement-editor { margin-top: 20px; min-width: 0; }
.editor-label { display: block; margin-bottom: 9px; font-size: 12px; color: var(--muted); }
.announcement-editor .ql-toolbar.ql-snow { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 8px 8px 0 0; background: #fafafb; }
.announcement-editor .ql-toolbar button { width: 32px; height: 30px; border-radius: 4px; }
.announcement-editor .ql-toolbar button:hover, .announcement-editor .ql-toolbar button.ql-active { background: #e9ebef; color: var(--ink); }
.announcement-editor .ql-toolbar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.announcement-editor .ql-toolbar button:disabled { opacity: .4; cursor: default; }
.announcement-editor .ql-undo, .announcement-editor .ql-redo { font-size: 23px; line-height: 22px; }
.announcement-editor .ql-container.ql-snow { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; font: inherit; }
.announcement-editor .ql-container:focus-within { border-color: #9297a2; }
.announcement-editor .ql-editor { min-height: 240px; max-height: 560px; padding: 18px 20px; font-size: 14px; line-height: 1.8; color: var(--ink); overflow-wrap: anywhere; }
.announcement-editor .ql-editor p { margin: 0 0 12px; }
.announcement-editor .ql-editor h2 { font-size: 22px; margin: 16px 0 10px; }
.announcement-editor .ql-editor h3 { font-size: 18px; margin: 14px 0 8px; }
.announcement-editor .ql-editor a { color: var(--ink); text-decoration: underline; }
.editor-count { margin: 7px 0 0; text-align: right; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.editor-count-error { color: #ba3434; }
.announcement-cta-toggle { display: flex; align-items: center; gap: 9px; margin-top: 20px; width: fit-content; cursor: pointer; font-size: 13px; }
.announcement-cta-toggle input { width: 16px; height: 16px; accent-color: #25262a; }
.announcement-cta-preview { margin-top: 20px; }
.announcement-editor .ql-snow .ql-tooltip { z-index: 2; max-width: 100%; white-space: normal; border-color: var(--line); box-shadow: 0 4px 20px #25262a15; border-radius: 6px; }
.announcement-editor .ql-snow .ql-tooltip input[type=text] { max-width: 170px; }
.announcement-editor .ql-snow .ql-tooltip::before { content: attr(data-visit-label); }
.announcement-editor .ql-snow .ql-tooltip.ql-editing::before { content: attr(data-link-label); }
.announcement-editor .ql-snow .ql-tooltip a.ql-action::after { content: attr(data-edit-label); }
.announcement-editor .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: attr(data-save-label); }
.announcement-editor .ql-snow .ql-tooltip a.ql-remove::before { content: attr(data-remove-label); }
.announcement-actions { display: flex; align-items: flex-start; gap: 20px; justify-content: space-between; margin-top: 20px; }
.announcement-actions .button { margin-left: auto; flex-shrink: 0; }
.announcement-actions .admin-feedback { margin: 0; }
@media (max-width: 540px) {
  .admin-page .header-nav { gap: 6px; padding-left: 0; border-left: 0; }
  .admin-page .header-inner { gap: 10px; }
}
