.side-user { margin-top: auto; background: #172a45; border: 1px solid #2a425f; border-radius: 12px; padding: 14px; }
.side-user-row { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.side-avatar { width: 38px; height: 38px; border-radius: 50%; background: #267c8b; color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 0 3px #1d3b52; }
.side-avatar svg { width: 20px; height: 20px; }
.side-user-text { min-width: 0; }
.side-user-name { color: #f4f8ff; font-size: 13px; font-weight: 750; line-height: 1.2; }
.side-user-email { color: #8fa5bd; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; margin: 2px 0 0; }
.side-logout { background: none; border: 0; padding: 0; color: #aebed2; font-size: 12px; font-weight: 700; cursor: pointer; }
.side-logout:hover { color: white; }
.mobile-bar form { margin: 0; }

.alert { padding: 11px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.alert-ok { background: var(--completed-bg); color: var(--completed); }
.alert-error { background: var(--spam-bg); color: var(--spam); }
.alert-error:empty, .validation-summary-valid { display: none; }
.alert ul { margin: 0; padding-left: 18px; }

.form-panel { max-width: 560px; padding: 24px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-weight: 750; color: #465973; margin: 0 0 8px; font-size: 12px; }
.field input, .field select { width: 100%; background: #fff; color: var(--ink); border: 1px solid #d8e2ea; border-radius: 9px; padding: 12px 13px; font-size: 13px; min-height: 45px; font: inherit; }
.field input:focus, .field select:focus { outline: 3px solid #85b9c6; outline-offset: 1px; }
.field-error { color: var(--spam); font-size: 12px; display: block; margin-top: 5px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #465973; }
.form-actions { display: flex; align-items: center; gap: 16px; }
.btn-block { width: 100%; border: 0; cursor: pointer; padding: 13px; font: inherit; font-weight: 700; }
a.btn-block { display: flex; }

.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--spam); }
.row-actions { display: flex; gap: 14px; justify-content: flex-end; align-items: center; }
.row-actions form { margin: 0; }
.role-admin { background: var(--spam-bg); color: var(--spam); }
.role-editor { background: var(--new-bg); color: var(--new); }
.role-user { background: var(--completed-bg); color: var(--completed); }
code { font-size: 11px; }
.panel .table-dashboard .primary-cell { white-space: normal; }

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); padding: 32px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 780; font-size: 18px; margin-bottom: 24px; }
.auth-title { margin: 0 0 6px; font-size: 24px; letter-spacing: -.6px; }
.auth-sub { color: var(--muted); margin: 0 0 22px; }
.auth-link { color: var(--accent); font-size: 12px; font-weight: 700; text-align: center; }
.auth-link:hover { text-decoration: underline; }

.input-suffix { display: flex; align-items: stretch; border: 1px solid #d8e2ea; border-radius: 9px; background: #fff; overflow: hidden; }
.input-suffix:focus-within { outline: 3px solid #85b9c6; outline-offset: 1px; }
.input-suffix input { border: 0 !important; border-radius: 0 !important; outline: none !important; min-width: 0; flex: 1; }
.input-suffix .suffix { display: flex; align-items: center; padding: 0 13px; background: #f3f6f9; color: #61768c; font-size: 13px; font-weight: 650; border-left: 1px solid #d8e2ea; white-space: nowrap; }

.panel-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.pager { justify-content: center; color: var(--muted); font-size: 12px; }
.status-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.status-form label { font-size: 12px; font-weight: 750; color: #465973; }
.status-form select { border: 1px solid #d8e2ea; border-radius: 9px; padding: 9px 12px; background: #fff; font: inherit; font-size: 13px; }
.field-value { background: #f9fbfd; border: 1px solid #e4eaf0; border-radius: 9px; padding: 11px 13px; font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; min-height: 42px; }
.site-dot.s1 { background: #7c83c9; }
.site-dot.s2 { background: #47a89a; }
a.filter-button, a.view-btn { display: inline-block; }

.brand-logo { display: block; background: #fff; border-radius: 14px; padding: 10px 14px; margin: 0 4px; }
.brand-logo img { display: block; width: 100%; height: auto; }
.mobile-brand { background: #fff; border-radius: 8px; padding: 4px 10px; }
.mobile-logo { height: 30px; width: auto; display: block; }
.auth-brand { display: block; text-align: center; margin-bottom: 20px; }
.auth-brand img { width: 170px; height: auto; }

button, .action-btn, .view-btn, .filter-button, .link-btn, .button-secondary, a[href], select, input[type=checkbox], input[type=submit] { cursor: pointer; }
button:disabled { cursor: not-allowed; }

.detail-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 18px; font: inherit; font-size: 13px; font-weight: 700; color: #6e7c91; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--accent); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-count { display: inline-block; min-width: 20px; padding: 1px 7px; margin-left: 4px; border-radius: 99px; background: #eef2f6; color: #64748a; font-size: 11px; text-align: center; }
.tab.active .tab-count { background: var(--accent-soft); color: var(--accent); }
.tab-panel[hidden] { display: none; }
.field-group-title { margin: 22px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); }
.form-preview-head + .field-group-title { margin-top: 18px; }
.submitted-fields.grouped { border: 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .submitted-fields.grouped { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .submitted-fields.grouped { grid-template-columns: 1fr; } }
.submitted-fields.grouped .field-value { min-height: 0; padding: 9px 12px; }

.step-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.step-tab { display: inline-flex; align-items: center; gap: 8px; background: #f3f6f9; border: 1px solid #e4eaf0; border-radius: 99px; padding: 7px 14px 7px 8px; font: inherit; font-size: 12px; font-weight: 700; color: #5d6e84; white-space: nowrap; }
.step-tab:hover { background: #e9f4f4; color: var(--accent); }
.step-tab .step-no { width: 22px; height: 22px; border-radius: 50%; background: #dbe3ec; color: #4c5d73; display: grid; place-items: center; font-size: 11px; }
.step-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-tab.active .step-no { background: rgba(255,255,255,.25); color: #fff; }
.step-heading { margin-bottom: 4px; }
.step-heading small { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.step-heading h2 { margin: 2px 0 0; font-size: 19px; letter-spacing: -.4px; }
.step-panel[hidden] { display: none; }
.field-group-title { color: #2b3e54; text-transform: none; letter-spacing: -.2px; font-size: 14px; border-bottom: 1px solid var(--line-soft); padding-bottom: 6px; }

.record-header { background: linear-gradient(135deg, #14223b 0%, #1d4a5c 100%); color: #fff; border-radius: 15px; padding: 22px 26px; margin-bottom: 18px; box-shadow: var(--shadow); }
.record-header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.record-kicker { color: #8fd3d8; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 4px; }
.record-title { margin: 0; font-size: 26px; letter-spacing: -.8px; font-weight: 760; }
.record-meta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.record-meta > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 10px 13px; min-width: 0; }
.record-meta span { display: block; color: #a9bdd0; font-size: 10px; font-weight: 750; letter-spacing: .7px; text-transform: uppercase; margin-bottom: 3px; }
.record-meta strong { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.record-status-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.record-status-form label { font-size: 12px; font-weight: 750; color: #c9d8e7; }
.record-status-form select { border: 0; border-radius: 9px; padding: 9px 12px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.record-status-form .action-btn { background: #2d9aa8; }
.record-status-form .action-btn:hover { background: #3bb0bf; }
@media (max-width: 900px) { .record-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
