:root {
    --staff-accent: #a83d2c;
    --staff-accent-dark: #8b2f22;
    --staff-accent-soft: #f8eeeb;
    --staff-ink: #292b2b;
    --staff-muted: #767977;
    --staff-border: #e6e7e3;
    --staff-bg: #f6f7f4;
    --staff-white: #fff;
    --staff-radius: 14px;
}
.staff-body { margin: 0; background: var(--staff-bg); color: var(--staff-ink); font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.staff-body *, .staff-body *::before, .staff-body *::after { box-sizing: border-box; }
.staff-body a { color: inherit; text-decoration: none; }
.staff-body button, .staff-body input, .staff-body select, .staff-body textarea { font: inherit; }
.staff-body a, .staff-body button, .staff-body input, .staff-body select, .staff-body textarea { -webkit-tap-highlight-color: transparent; }
.staff-body :focus-visible { outline: 3px solid #bd6d5f; outline-offset: 3px; }
.staff-body h1, .staff-body h2, .staff-body h3 { color: var(--staff-ink); font-weight: 650; letter-spacing: -.035em; }
.staff-body h1 { font-size: clamp(27px, 2.5vw, 34px); line-height: 1.2; margin: 0 0 10px; }
.staff-body h2 { font-size: 19px; line-height: 1.3; margin: 0; }
.staff-body h3 { font-size: 17px; line-height: 1.4; }
.staff-body p { margin-top: 0; }
.staff-icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.staff-arrow { width: 14px; height: 14px; }
.staff-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.staff-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.staff-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 30px 17px 18px; background: #fff; border-right: 1px solid var(--staff-border); overflow-y: auto; }
.staff-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 14px 31px; }
.staff-brand img { display: block; max-width: 100%; object-fit: contain; object-position: left; }
.staff-brand > span { color: var(--staff-muted); font-size: 11px; letter-spacing: .04em; }
.staff-nav { display: flex; flex-direction: column; gap: 5px; }
.staff-nav-heading { margin: 0 12px 7px; font-size: 10px; font-weight: 650; letter-spacing: .08em; color: #8b8d89; text-transform: uppercase; }
.staff-nav-heading--secondary { margin-top: 25px; }
.staff-nav > a { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 10px 13px; border-radius: 8px; color: #656963; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.staff-nav > a:hover { background: #f5f6f3; color: var(--staff-ink); }
.staff-nav > a[aria-current="page"] { color: var(--staff-accent); background: var(--staff-accent-soft); font-weight: 650; }
.staff-sidebar-bottom { margin-top: auto; padding: 40px 12px 0; }
.staff-public-link { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--staff-muted) !important; margin-bottom: 22px; }
.staff-public-link:hover { color: var(--staff-accent) !important; }
.staff-identity { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--staff-border); padding-top: 20px; }
.staff-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #ebe7e0; color: #78695a; font-weight: 600; flex-shrink: 0; }
.staff-identity > div { min-width: 0; }
.staff-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.staff-identity div > span { display: block; color: var(--staff-muted); font-size: 10px; margin-top: 2px; }
.staff-logout { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; padding: 15px 0 0; color: var(--staff-muted); font-size: 11px !important; }
.staff-logout .staff-icon { width: 16px; height: 16px; }
.staff-logout:hover { color: var(--staff-accent); }
.staff-workspace { min-width: 0; display: flex; flex-direction: column; }
.staff-topbar { min-height: 73px; border-bottom: 1px solid var(--staff-border); background: rgba(255, 255, 255, .7); padding: 0 38px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 11px; }
.staff-topbar > div { display: flex; align-items: center; gap: 14px; color: var(--staff-muted); }
.staff-topbar > div > span:last-child { color: var(--staff-ink); }
.staff-private-label { display: flex; align-items: center; gap: 7px; color: var(--staff-muted); font-size: 10px; white-space: nowrap; }
.staff-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #7b8d78; flex-shrink: 0; }
.staff-dot--new { background: var(--staff-accent); }
.staff-dot--progress { background: #c18b3e; }
.staff-main { padding: 36px 38px 44px; width: 100%; max-width: 1580px; margin: 0 auto; flex: 1; }
.staff-footer { padding: 18px 38px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--staff-border); font-size: 10px; color: #92948e; }
.staff-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.staff-page-heading > div > p:last-child { margin-bottom: 0; }
.staff-kicker { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--staff-muted); margin-bottom: 8px; }
.staff-muted { color: var(--staff-muted); font-size: 12px; }
.staff-button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 42px; border: 1px solid var(--staff-border); border-radius: 8px; padding: 10px 17px; font-size: 12px !important; font-weight: 600; line-height: 1.5; text-align: center; cursor: pointer; transition: background .15s; }
.staff-button--primary { color: #fff !important; background: var(--staff-accent); border-color: var(--staff-accent); }
.staff-button--primary:hover { background: var(--staff-accent-dark); border-color: var(--staff-accent-dark); }
.staff-button--secondary { background: #fff; color: var(--staff-ink) !important; }
.staff-button--secondary:hover { background: #f4f4f0; }
.staff-button--danger { background: #fff; color: #a3352b !important; border-color: #e3bcb6; }
.staff-button--danger:hover { background: #fff1ef; }
.staff-button--success { color: #fff !important; background: #54794b; border-color: #54794b; }
.staff-button--success:hover { background: #42663a; border-color: #42663a; }
.staff-button--small { min-height: 34px; padding: 6px 11px; font-size: 11px !important; }
.staff-button:disabled { opacity: .5; cursor: default; }
.staff-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 27px; }
.staff-stat { display: flex; flex-direction: column; gap: 15px; background: #fff; border: 1px solid var(--staff-border); border-radius: var(--staff-radius); padding: 21px; }
.staff-stat:hover { border-color: #c4aaa2; }
.staff-stat-label { display: flex; align-items: center; gap: 8px; color: #636760; font-size: 11px; }
.staff-stat-label .staff-icon { width: 14px; height: 14px; color: #8b8d86; }
.staff-stat > strong { font-size: 34px; line-height: 1; font-weight: 600; letter-spacing: -.06em; }
.staff-stat > .staff-muted { display: flex; justify-content: space-between; font-size: 10px; }
.staff-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 22px; margin-bottom: 24px; }
.staff-panel { background: #fff; border: 1px solid var(--staff-border); border-radius: var(--staff-radius); min-width: 0; overflow: hidden; }
.staff-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--staff-border); }
.staff-panel-header .staff-kicker { font-size: 9px; margin-bottom: 5px; }
.staff-panel-header h2 { font-size: 17px; }
.staff-panel-body { padding: 24px; }
.staff-link { color: var(--staff-accent) !important; font-size: 11px; font-weight: 600; }
.staff-link:hover { text-decoration: underline; }
.staff-table-wrap { overflow-x: auto; width: 100%; }
.staff-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.staff-table th { text-align: left; padding: 12px 24px; background: #fafbf8; font-size: 10px; font-weight: 500; color: var(--staff-muted); white-space: nowrap; }
.staff-table td { padding: 17px 24px; border-top: 1px solid #eeefeb; vertical-align: middle; }
.staff-table tr:last-child td { border-bottom: 0; }
.staff-order-phone { white-space: nowrap; }
.staff-table tr:hover td { background: #fdfdfb; }
.staff-order-row[data-staff-order-url] { cursor: pointer; }
.staff-order-row--new { --staff-row-bg: #fffbf5; --staff-row-hover: #fff7e9; --staff-row-accent: #caab77; }
.staff-order-row--inprogress { --staff-row-bg: #fffdf3; --staff-row-hover: #fcf6dc; --staff-row-accent: #c6ad57; }
.staff-order-row--completed, .staff-order-row--cancelled { --staff-row-bg: #f7f8f6; --staff-row-hover: #eff1ed; --staff-row-accent: #cbd0c8; color: #70766d; }
.staff-order-row:is(.staff-order-row--completed, .staff-order-row--cancelled) :is(.staff-link, .staff-order-link) { color: inherit !important; }
.staff-table .staff-order-row > td { background: var(--staff-row-bg, #fff); }
.staff-table .staff-order-row > td:first-child { box-shadow: inset 3px 0 var(--staff-row-accent, transparent); }
.staff-table .staff-order-row:hover > td { background: var(--staff-row-hover, #fdfdfb); }
.staff-source-label { font-size: 11px; font-weight: 600; }
.staff-source-subject { max-width: 210px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.staff-orders-table td:nth-child(2) { min-width: 160px; }
.staff-order-link { color: var(--staff-ink) !important; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.staff-order-link:hover { color: var(--staff-accent) !important; }
.staff-table-secondary { display: block; color: var(--staff-muted); font-size: 10px; margin-top: 3px; }
.staff-date { white-space: nowrap; font-size: 11px; }
.staff-status { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; background: #f6eee9; color: #a96232; padding: 4px 8px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.staff-status::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.staff-status--new { background: #f8ece8; color: #a34e35; }
.staff-status--inprogress { background: #fbf3df; color: #9b732a; }
.staff-status--completed { background: #eaf3e9; color: #54824c; }
.staff-status--cancelled { background: #f9e9e4; color: #a35c4a; }
.staff-empty { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 52px 28px; }
.staff-empty h2, .staff-empty h3 { margin: 0 0 10px; }
.staff-empty p { color: var(--staff-muted); max-width: 370px; font-size: 12px; margin-bottom: 0; }
.staff-empty--compact { min-height: 269px; }
.staff-empty-icon { width: 35px; height: 35px; fill: none; stroke: #a6aaa0; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 21px; }
.staff-empty--compact h3 { font-size: 14px; font-weight: 600; }
.staff-empty--compact p { font-size: 11px; max-width: 220px; }
.staff-count { background: #f2f3ee; color: #7a8074; padding: 3px 8px; font-size: 11px; border-radius: 5px; }
.staff-assigned-list { list-style: none; padding: 0; margin: 0; }
.staff-assigned-list li { padding: 17px 24px; border-bottom: 1px solid var(--staff-border); }
.staff-assigned-list li:last-child { border: 0; }
.staff-assigned-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.staff-assigned-list strong { display: block; font-size: 12px; font-weight: 600; }
.staff-assigned-list small { color: var(--staff-muted); font-size: 10px; }
.staff-assigned-list a > span:last-child { color: var(--staff-muted); }
.staff-empty--service { min-height: 480px; }
.staff-service-icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; background: var(--staff-accent-soft); color: var(--staff-accent); margin-bottom: 24px; }
.staff-service-icon .staff-icon { width: 34px; height: 34px; stroke-width: 1.4; }
.staff-connection-label { background: #f2f3ef; color: var(--staff-muted); font-size: 10px; border-radius: 20px; padding: 4px 10px; margin-bottom: 15px; }
.staff-empty--service h2 { font-size: 24px; }
.staff-empty--service p { max-width: 380px; }
.staff-empty--service .staff-button { margin-top: 27px; }
.staff-filter-form { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(150px, 1fr)) auto; align-items: end; gap: 15px; padding: 21px 24px; border-bottom: 1px solid var(--staff-border); }
.staff-filter-form--orders { grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(140px, 1fr)) auto; }
.staff-field { display: flex; flex-direction: column; gap: 7px; }
.staff-field > label { font-size: 11px; color: #60665d; font-weight: 600; }
.staff-input { display: block; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dce0d7; border-radius: 7px; background-color: #fff; color: var(--staff-ink); font-size: 12px !important; }
textarea.staff-input { min-height: 110px; resize: vertical; }
.staff-input:focus { border-color: #ba7d70; box-shadow: 0 0 0 3px #a83d2c0d; outline: 0; }
.staff-input::placeholder { color: #a0a499; }
.staff-input:disabled, .staff-input[readonly] { background: #f7f8f4; color: #797f71; }
.staff-button[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }
.staff-badge { border: 1px solid var(--staff-border); border-radius: 6px; padding: 6px 10px; background: #fff; color: var(--staff-muted); font-size: 11px; }
.staff-detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; gap: 24px; }
.staff-stack { display: flex; flex-direction: column; gap: 20px; }
.staff-meta { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px 20px; margin: 0; font-size: 12px; }
.staff-meta dt { color: var(--staff-muted); font-weight: 400; }
.staff-meta dd { margin: 0; overflow-wrap: anywhere; }
.staff-callback-fields { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px 24px; margin: 0; font-size: 13px; }
.staff-callback-fields dt { font-weight: 500; color: var(--staff-muted); }
.staff-callback-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.staff-callback-fields a[href^="tel:"] { font-size: 13px; white-space: nowrap; }
.staff-completion-actions { display: flex; flex-direction: column; gap: 11px; border-top: 1px solid var(--staff-border); padding: 22px 24px 24px; background: #fdfdfa; }
.staff-completion-actions .staff-kicker { margin-bottom: 2px; }
.staff-completion-actions .staff-muted { margin: -4px 0 2px; font-size: 11px; }
.staff-completion-actions .staff-button { gap: 9px; }
.staff-completion-actions .staff-icon { width: 17px; height: 17px; }
.staff-note { border: 1px solid #ebe8df; background: #fbfaf5; border-radius: 8px; padding: 15px 17px; font-size: 12px; }
.staff-note .staff-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--staff-muted); font-size: 10px; margin-bottom: 10px; }
.staff-note .staff-meta strong { color: var(--staff-ink); font-weight: 600; }
.staff-note > p:last-child { margin-bottom: 0; }
.staff-inline-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.staff-inline-form > .staff-input { flex: 1 1 180px; width: auto; min-width: 0; }
.staff-inline-form .staff-field { flex: 1; min-width: 170px; }
.staff-panel-body.staff-page-heading { margin-bottom: 0; }
.staff-pagination { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 18px 24px; border-top: 1px solid var(--staff-border); font-size: 11px; }
.staff-pagination a { padding: 6px 10px; border: 1px solid var(--staff-border); border-radius: 6px; }
.staff-pagination a:hover { border-color: var(--staff-accent); color: var(--staff-accent); }
.staff-alert { border: 1px solid #e8d8bb; background: #fffbf2; padding: 14px 18px; border-radius: 8px; font-size: 12px; margin-bottom: 20px; }
.staff-alert--success { background: #f1f8ee; border-color: #d2e2c9; color: #45653a; }
.staff-alert--danger { background: #fff2ef; border-color: #e8c6bd; color: #9b3b2d; }
.staff-push-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.staff-push-banner[hidden] { display: none; }
.staff-push-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.staff-settings-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--staff-border); margin-bottom: 28px; font-size: 12px; }
.staff-settings-tabs a { padding-bottom: 10px; color: var(--staff-muted); border-bottom: 2px solid transparent; }
.staff-settings-tabs a[aria-current="page"] { color: var(--staff-accent); border-color: var(--staff-accent); }
.staff-main > .container { max-width: 780px; margin-left: 0; padding: 28px; border: 1px solid var(--staff-border); border-radius: var(--staff-radius); background: #fff; }
.staff-body .btn-primary { background: var(--staff-accent); border-color: var(--staff-accent); }
.staff-body .btn-primary:hover { background: var(--staff-accent-dark); border-color: var(--staff-accent-dark); }
.staff-body .form-control:focus, .staff-body .form-select:focus { border-color: #ba7d70; box-shadow: 0 0 0 3px #a83d2c0d; }
.staff-body .validation-summary-valid { display: none; }
.staff-body .field-validation-error, .staff-body .validation-summary-errors { font-size: 11px; color: #a33d2c; }
.staff-body .validation-summary-errors ul { padding-left: 17px; margin-bottom: 0; }
.staff-main > h1 + p { color: var(--staff-muted); font-size: 12px; max-width: 700px; }
.staff-main > .table-responsive { margin-top: 24px; border: 1px solid var(--staff-border); border-radius: var(--staff-radius); background: #fff; }
.staff-main > .table-responsive .table { margin: 0; font-size: 12px; }
.staff-main > .table-responsive th { background: #fafbf8; color: var(--staff-muted); font-size: 10px; font-weight: 500; padding: 14px 20px; border-bottom-color: var(--staff-border); }
.staff-main > .table-responsive td { padding: 18px 20px; vertical-align: top; border-color: var(--staff-border); }
.staff-main > .table-responsive td:last-child { min-width: 170px; }
.staff-main > .table-responsive td form { display: inline-block; margin-top: 6px; }
.staff-main > .table-responsive .staff-button { min-height: 32px; padding: 6px 10px; font-size: 10px !important; }
.staff-auth-form > label { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 13px 0; }
.staff-auth-form input[type="checkbox"] { accent-color: var(--staff-accent); }
.staff-auth-form > p { color: var(--staff-muted); font-size: 11px; }
.staff-auth-form > .staff-button { margin-top: 12px; }
.staff-mobile-bar { display: none; }
.staff-skip { position: fixed; top: -70px; left: 20px; z-index: 100; padding: 10px 15px; border-radius: 8px; background: var(--staff-accent); color: #fff !important; }
.staff-skip:focus { top: 12px; }
.staff-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(350px, .95fr) minmax(430px, 1.05fr); }
.staff-auth-intro { display: flex; flex-direction: column; padding: 48px 12%; position: relative; overflow: hidden; background: #edece5; border-right: 1px solid #e4e2d8; }
.staff-auth-brand { display: block; }
.staff-auth-brand img { max-width: 100%; height: auto; }
.staff-auth-message { margin: auto 0; padding: 70px 0; position: relative; z-index: 1; }
.staff-auth-message .staff-kicker { color: var(--staff-accent); margin-bottom: 22px; }
.staff-auth-message h2 { font-size: clamp(37px, 4vw, 60px); font-weight: 500; line-height: 1.13; letter-spacing: -.05em; margin-bottom: 25px; }
.staff-auth-message > p:last-of-type { color: #787a6e; max-width: 290px; font-size: 14px; line-height: 1.8; }
.staff-auth-bricks { display: grid; grid-template-columns: repeat(3, 72px); gap: 7px; margin-top: 55px; transform: rotate(-6deg); }
.staff-auth-bricks i { display: block; height: 34px; background: #aa4d3a; border-radius: 2px; box-shadow: inset 0 -5px #0000000a; }
.staff-auth-bricks i:nth-child(2) { background: #b77458; }
.staff-auth-bricks i:nth-child(3) { background: #bd8a6c; }
.staff-auth-bricks i:nth-child(n+4) { transform: translateX(36px); }
.staff-auth-bricks i:nth-child(4) { background: #c39377; }
.staff-auth-bricks i:nth-child(5) { background: #aa4d3a; }
.staff-auth-bricks i:nth-child(6) { background: #b47558; }
.staff-auth-caption { color: #909286; font-size: 10px; }
.staff-auth-content { display: flex; flex-direction: column; align-items: center; padding: 43px 11% 26px; background: #fff; }
.staff-auth-back { align-self: flex-start; color: var(--staff-muted) !important; font-size: 12px; }
.staff-auth-back > span { margin-right: 8px; }
.staff-auth-back:hover { color: var(--staff-accent) !important; }
.staff-auth-form { width: 100%; max-width: 600px; }
.staff-auth-form .staff-field { margin-bottom: 19px; }
.staff-auth-card { width: 100%; max-width: 370px; margin: auto; padding: 68px 0; }
.staff-auth-card h1 { font-size: 30px; margin-bottom: 14px; }
.staff-auth-card .staff-muted { font-size: 13px; line-height: 1.7; }
.staff-auth-card form { margin-top: 30px; }
.staff-auth-card .staff-field { margin-bottom: 19px; }
.staff-auth-card .staff-field label { font-size: 12px; }
.staff-auth-card .staff-input { min-height: 48px; padding: 12px 14px; font-size: 13px !important; }
.staff-auth-card .staff-button--primary { width: 100%; min-height: 47px; font-size: 13px !important; }
.staff-auth-card .form-check { margin: 21px 0 25px; font-size: 12px; color: var(--staff-muted); }
.staff-auth-card .form-check-input:checked { background-color: var(--staff-accent); border-color: var(--staff-accent); }
.staff-auth-help { color: var(--staff-muted); font-size: 11px; line-height: 1.7; border-top: 1px solid var(--staff-border); padding-top: 23px; margin-top: 27px; }
.staff-auth-footer { color: #9a9d94; margin: 0; font-size: 10px; }
@media (min-width: 1500px) { .staff-main { padding: 44px 52px; } .staff-topbar { padding: 0 52px; } }
@media (max-width: 1220px) {
    .staff-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .staff-sidebar { padding-inline: 12px; }
    .staff-main { padding: 28px 24px; }
    .staff-topbar { padding-inline: 24px; }
    .staff-stat-grid { gap: 12px; }
    .staff-stat { padding: 17px; }
    .staff-stat-label { font-size: 10px; }
    .staff-dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); gap: 17px; }
    .staff-table th, .staff-table td { padding-inline: 18px; }
    .staff-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
    .staff-shell { display: block; min-height: calc(100vh - 63px); }
    .staff-mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 24px; min-height: 63px; background: #fff; border-bottom: 1px solid var(--staff-border); position: sticky; top: 0; z-index: 31; }
    .staff-mobile-bar > a { font-weight: 650; font-size: 16px; letter-spacing: -.04em; }
    .staff-mobile-bar > a span { font-size: 10px; color: var(--staff-muted); letter-spacing: 0; font-weight: 400; margin-left: 10px; }
    .staff-menu-toggle { display: flex; align-items: center; gap: 7px; border: 1px solid var(--staff-border); border-radius: 7px; background: #fff; color: #64695e; padding: 6px 9px; font-size: 11px !important; }
    .staff-sidebar { display: none; position: fixed; z-index: 30; top: 63px; left: 0; bottom: 0; width: 260px; height: calc(100dvh - 63px); padding-top: 24px; box-shadow: 15px 0 40px #1c251a18; }
    .staff-menu-open .staff-sidebar { display: flex; }
    .staff-menu-open { overflow: hidden; }
    .staff-sidebar .staff-brand { display: none; }
    .staff-menu-open::after { content: ""; position: fixed; inset: 63px 0 0; background: #20251d33; z-index: 29; }
    .staff-topbar { min-height: 57px; }
    .staff-workspace { min-height: calc(100vh - 63px); }
    .staff-stat-label { font-size: 11px; }
    .staff-auth-intro { padding: 40px 10%; }
    .staff-auth { grid-template-columns: minmax(290px, .9fr) minmax(380px, 1.1fr); }
    .staff-auth-content { padding-inline: 12%; }
}
@media (max-width: 760px) {
    .staff-main { padding: 27px 18px; }
    .staff-mobile-bar, .staff-topbar { padding-inline: 18px; }
    .staff-private-label { display: none; }
    .staff-page-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 22px; }
    .staff-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
    .staff-stat { padding: 19px; gap: 13px; }
    .staff-stat-label { font-size: 10px; }
    .staff-stat > strong { font-size: 31px; }
    .staff-dashboard-grid, .staff-detail-grid { grid-template-columns: 1fr; gap: 20px; }
    .staff-detail-grid > aside { order: -1; }
    .staff-panel-header { padding: 20px; }
    .staff-panel-body { padding: 20px; }
    .staff-empty--compact { min-height: 220px; }
    .staff-dashboard-grid .staff-table .staff-status { white-space: normal; }
    .staff-filter-form { padding: 18px; gap: 15px; }
    .staff-filter-form > .staff-field:first-child { grid-column: 1 / -1; }
    .staff-orders-table, .staff-orders-table tbody { display: block; width: 100%; }
    .staff-orders-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
    .staff-orders-table tbody { display: grid; gap: 12px; padding: 14px; background: var(--staff-bg); }
    .staff-orders-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--staff-border); border-left: 3px solid var(--staff-row-accent, var(--staff-border)); border-radius: 10px; overflow: hidden; }
    .staff-orders-table td { display: block; min-width: 0 !important; padding: 12px 14px; border: 0; overflow-wrap: anywhere; }
    .staff-orders-table td::before { content: attr(data-label); display: block; margin-bottom: 6px; color: var(--staff-muted); font-size: 10px; font-weight: 400; }
    .staff-orders-table td:first-child { box-shadow: none !important; }
    .staff-orders-table td:nth-child(3), .staff-orders-table td:last-child { grid-column: 1 / -1; }
    .staff-orders-table td:last-child { padding-top: 5px; }
    .staff-orders-table td:last-child::before { display: none; }
    .staff-orders-table .staff-source-subject { max-width: none; }
    .staff-orders-table .staff-status { white-space: normal; }
    .staff-orders-table .staff-order-phone { font-size: 10px; }
    .staff-callback-fields { grid-template-columns: 115px minmax(0, 1fr); gap: 16px 15px; font-size: 12px; }
    .staff-callback-fields a[href^="tel:"] { font-size: 12px; }
    .staff-completion-actions { padding: 20px; }
    .staff-meta { grid-template-columns: 115px minmax(0, 1fr); gap: 12px; }
    .staff-footer { padding-inline: 18px; font-size: 9px; }
    .staff-auth { display: block; }
    .staff-auth-intro { padding: 27px; border-bottom: 1px solid var(--staff-border); border-right: 0; }
    .staff-auth-brand img { width: 153px; }
    .staff-auth-message { display: none; }
    .staff-auth-caption { margin-top: 11px; }
    .staff-auth-content { min-height: calc(100dvh - 130px); padding: 27px; }
    .staff-auth-card { padding-block: 52px; }
    .staff-empty--service { min-height: 420px; }
}
@media (max-width: 420px) {
    .staff-stat { padding: 16px 13px; }
    .staff-stat > .staff-muted { font-size: 9px; }
    .staff-stat-label { font-size: 9px; gap: 6px; }
    .staff-panel-header h2 { font-size: 16px; }
    .staff-table th, .staff-table td { padding-inline: 14px; }
    .staff-filter-form { grid-template-columns: 1fr; }
    .staff-panel-header { gap: 12px; padding: 18px; }
    .staff-meta { grid-template-columns: 1fr; gap: 4px; }
    .staff-meta dd { margin-bottom: 12px; }
    .staff-callback-fields { grid-template-columns: 1fr; gap: 5px; }
    .staff-callback-fields dd { margin-bottom: 14px; }
    .staff-mobile-bar > a span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .staff-body *, .staff-body *::before, .staff-body *::after { transition: none !important; scroll-behavior: auto !important; } }

.staff-auth-card > p { color: var(--staff-muted); font-size: 12px; line-height: 1.7; }
.staff-auth-card > p a { color: var(--staff-accent); }
.staff-auth-card form + p { margin-top: 18px; }
.staff-auth-card form > label { display: flex; align-items: center; gap: 8px; margin: 21px 0 25px; font-size: 12px; color: var(--staff-muted); }
.staff-auth-card input[type="checkbox"] { accent-color: var(--staff-accent); }
.staff-main > .staff-auth-form { padding: 27px; background: #fff; border: 1px solid var(--staff-border); border-radius: var(--staff-radius); margin-top: 23px; margin-bottom: 20px; }
.staff-main > .staff-auth-form .staff-field p { color: var(--staff-muted); font-size: 11px; margin: 0; }
