:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #182230;
  background: #f5f7fa;
  font-synthesis: none;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --line: #e4e9f0;
  --muted: #667085;
  --surface: #ffffff;
  --sidebar: #101828;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.035);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f5f7fa; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.layout { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px 18px; color: #d0d5dd; background: linear-gradient(180deg, #101828 0%, #172033 100%); display: flex; flex-direction: column; }
.logo { display: flex; gap: 11px; align-items: center; padding: 0 8px 34px; color: white; }
.logo > span, .brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: white; font-weight: 800; background: linear-gradient(145deg, #3b82f6, #1d4ed8); border-radius: 11px; box-shadow: 0 7px 18px rgba(37,99,235,.32); }
.logo div { display: grid; gap: 2px; }
.logo b { font-size: 16px; letter-spacing: .01em; }
.logo small { color: #7f8ca5; font-size: 9px; letter-spacing: .13em; }
nav { display: grid; gap: 5px; }
nav > label { padding: 0 12px 9px; color: #66758e; font-size: 10px; letter-spacing: .14em; }
.nav-item { width: 100%; padding: 10px 11px; display: flex; align-items: center; gap: 11px; color: #aeb8c9; background: transparent; border: 1px solid transparent; border-radius: 9px; text-align: left; transition: .18s ease; }
.nav-item i { width: 28px; height: 28px; display: grid; place-items: center; color: #8ea0bc; background: rgba(255,255,255,.045); border-radius: 7px; font-style: normal; font-size: 12px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.selected { color: #fff; background: rgba(59,130,246,.17); border-color: rgba(96,165,250,.18); }
.nav-item.selected i { color: #fff; background: #2563eb; }
.aside-foot { margin-top: auto; padding: 13px 10px; display: flex; gap: 9px; align-items: center; border-top: 1px solid rgba(255,255,255,.08); }
.aside-foot strong, .aside-foot small { display: block; }
.aside-foot strong { color: #c8d1df; font-size: 12px; font-weight: 500; }
.aside-foot small { margin-top: 2px; color: #66758e; font-size: 10px; }

main { min-width: 0; }
.topbar { height: 72px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.page-context { display: grid; gap: 3px; }
.page-context strong { font-size: 15px; }
.page-context span { color: #98a2b3; font-size: 11px; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.avatar, .person-avatar { display: grid; place-items: center; color: #175cd3; background: #eaf2ff; border-radius: 50%; font-weight: 700; }
.avatar { width: 36px; height: 36px; font-size: 13px; border: 1px solid #d6e4ff; }
.user-copy { display: grid; gap: 2px; min-width: 120px; }
.user-copy strong { font-size: 13px; }
.user-copy span { color: var(--muted); font-size: 11px; }
.logout { padding: 8px 10px; color: #667085; background: transparent; border: 0; border-left: 1px solid var(--line); margin-left: 2px; }
.logout:hover { color: #d92d20; }
.password-button { min-height: 36px; padding: 0 12px 0 8px; display: inline-flex; align-items: center; gap: 7px; color: #175cd3; background: #f2f6ff; border: 1px solid #d9e5ff; border-radius: 9px; font-size: 12px; font-weight: 600; transition: .18s ease; }
.password-button span { width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: #2e6ee6; border-radius: 6px; font-size: 10px; }
.password-button:hover { color: #1849a9; background: #eaf1ff; border-color: #b9ceff; transform: translateY(-1px); }
.content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 30px 36px 60px; }

.page-head, .welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-head h2, .welcome h2 { margin: 4px 0 7px; color: #101828; font-size: 27px; letter-spacing: -.025em; }
.page-head p, .welcome p { margin: 0; color: var(--muted); font-size: 13px; }
.page-kicker, .welcome-label { color: #2563eb; font-size: 11px; font-weight: 700; letter-spacing: .045em; font-variant-numeric: tabular-nums; }
.welcome { padding: 26px 28px; align-items: center; background: radial-gradient(circle at 88% 25%, rgba(37,99,235,.14), transparent 29%), linear-gradient(110deg,#fff 10%,#f3f7ff); border: 1px solid #dfe8f7; border-radius: 14px; box-shadow: var(--shadow); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 0 0 18px; }
.stat-card { position: relative; min-height: 138px; padding: 19px 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.stat-card::after { content: ""; position: absolute; right: -18px; bottom: -22px; width: 72px; height: 72px; background: currentColor; opacity: .045; border-radius: 50%; }
.stat-top { display: flex; justify-content: space-between; font-size: 12px; }
.stat-top span { color: var(--muted); }
.stat-top i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 12%, transparent); }
.stat-card strong { display: block; margin: 11px 0 3px; color: #101828; font-size: 32px; line-height: 1; letter-spacing: -.03em; }
.stat-card small { color: #98a2b3; font-size: 11px; }
.stat-card.blue { color: #2e6ee6; } .stat-card.orange { color: #f79009; } .stat-card.green { color: #12b76a; } .stat-card.gray { color: #667085; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
.two-columns { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.panel { padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.panel + .panel, .panel + .two-columns, .two-columns { margin-top: 18px; }
.table-panel { padding: 8px 20px 18px; overflow: hidden; }
.section-title, .toolbar { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-title h3, .toolbar h3, .panel h3 { margin: 0; font-size: 15px; }
.section-title p, .toolbar span { margin: 4px 0 0; color: #98a2b3; font-size: 11px; }
.form-panel { padding: 24px 26px 26px; border-color: #dfe6ef; box-shadow: 0 1px 2px rgba(16,24,40,.03), 0 10px 30px rgba(31,50,81,.045); }
.form-panel .section-title { min-height: auto; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #eef1f5; }
.section-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #175cd3; background: #eff4ff; border: 1px solid #dce7ff; border-radius: 10px; font-size: 13px; font-weight: 700; }
.guide-card { margin: 0!important; display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.guide-card-head { display: flex; align-items: center; gap: 12px; }
.guide-icon { width: 35px; height: 35px; display: grid; place-items: center; color: #027a48; background: #ecfdf3; border-radius: 9px; font-weight: 800; }
.guide-card h3 { margin: 0; }
.guide-card-head p { margin: 4px 0 0; color: #98a2b3; font-size: 10px; }
.guide-steps { display: grid; gap: 9px; margin-top: 18px; }
.guide-steps > div { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 9px; align-items: center; padding: 9px 10px; background: #f8fafc; border: 1px solid #edf1f5; border-radius: 9px; }
.guide-steps span { width: 24px; height: 24px; display: grid; place-items: center; color: #175cd3; background: #eaf2ff; border-radius: 7px; font-size: 10px; font-weight: 700; }
.guide-steps p { margin: 0; color: #475467; font-size: 11px; line-height: 1.45; }

.ticket-form { display: grid; grid-template-columns: minmax(260px,2fr) minmax(130px,.7fr) minmax(170px,1fr) auto; gap: 14px; align-items: end; }
.account-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px 14px; align-items: end; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 7px; color: #344054; font-size: 11px; font-weight: 650; }
.field input, .field select, .field textarea, .filters input, .filters select, .department-panel input { width: 100%; border: 1px solid #d7dee8; border-radius: 10px; color: #182230; background: #fbfcfe; outline: none; transition: border-color .16s, box-shadow .16s, background .16s; }
.field input, .field select, .filters input, .filters select, .department-panel input { height: 44px; padding: 0 13px; }
.field textarea { padding: 11px 13px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover, .filters input:hover, .filters select:hover { border-color: #aeb9c9; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus, .department-panel input:focus { border-color: #5b8def; background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.field input::placeholder, .filters input::placeholder { color: #98a2b3; }
.custom-select { position: relative; width: 100%; min-width: 0; }
.select-native { position: absolute!important; width: 1px!important; height: 1px!important; margin: 0!important; padding: 0!important; opacity: 0; pointer-events: none; }
.select-trigger { width: 100%; height: 44px; padding: 0 12px 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #182230; background: #fbfcfe; border: 1px solid #d7dee8; border-radius: 10px; text-align: left; outline: none; transition: border-color .16s, box-shadow .16s, background .16s; }
.select-trigger:hover { border-color: #aeb9c9; background: #fff; }
.select-trigger:focus, .custom-select.open .select-trigger { border-color: #5b8def; background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.custom-select.invalid .select-trigger { border-color: #f04438; box-shadow: 0 0 0 4px rgba(240,68,56,.09); }
.select-trigger.placeholder .select-value { color: #98a2b3; }
.select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-chevron { width: 8px; height: 8px; flex: 0 0 auto; border-right: 1.5px solid #667085; border-bottom: 1.5px solid #667085; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.custom-select.open .select-chevron { transform: translateY(2px) rotate(225deg); }
.select-popover { position: fixed; z-index: 320; padding: 6px; overflow-y: auto; overscroll-behavior: contain; background: rgba(255,255,255,.99); border: 1px solid #dfe5ed; border-radius: 11px; box-shadow: 0 16px 38px rgba(16,24,40,.18), 0 3px 10px rgba(16,24,40,.08); animation: select-in .13s ease-out; }
.select-popover.open-above { transform-origin: bottom; }
.select-option { width: 100%; min-height: 38px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #344054; background: transparent; border: 0; border-radius: 7px; text-align: left; outline: none; }
.select-option:hover, .select-option:focus { color: #1849a9; background: #f1f6ff; }
.select-option.selected { color: #175cd3; background: #eaf2ff; font-weight: 600; }
.select-option i { color: #2563eb; font-size: 11px; font-style: normal; opacity: 0; }
.select-option.selected i { opacity: 1; }
@keyframes select-in { from { opacity: 0; transform: translateY(-4px) scale(.99); } }
.create-button { min-width: 112px; height: 44px; font-weight: 650; }
.form-submit { grid-column: 1 / -1; justify-self: end; min-width: 150px; }

.primary, .secondary, .ghost, .small, .text-button, .icon-button { border: 0; border-radius: 9px; transition: .16s; }
.primary { min-height: 40px; padding: 0 17px; color: #fff; background: linear-gradient(180deg,#3476ee,#2563eb); box-shadow: 0 1px 2px rgba(16,24,40,.1), 0 5px 13px rgba(37,99,235,.16); }
.primary:hover { background: linear-gradient(180deg,#286be3,#1d4ed8); transform: translateY(-1px); }
.secondary { min-height: 38px; padding: 0 14px; color: #344054; background: #f2f4f7; }
.secondary:hover, .ghost:hover { background: #eaecf0; }
.ghost { min-height: 34px; padding: 0 11px; color: #475467; background: transparent; border: 1px solid #d0d5dd; }
.full, .wide-button { width: 100%; }
.small { min-height: 29px; padding: 0 9px; font-size: 11px; }
.primary-soft { color: #175cd3; background: #eff4ff; }
.success-soft { color: #027a48; background: #ecfdf3; }
.danger-soft { color: #b42318; background: #fef3f2; }
.text-button { padding: 6px 0; color: #2563eb; background: transparent; font-size: 12px; }
.icon-button { width: 32px; height: 32px; color: #667085; background: transparent; font-size: 22px; }

.filters { display: flex; gap: 8px; }
.filters input { width: 240px; }
.filters select { width: 130px; }
.filters .custom-select { width: 130px; flex: 0 0 130px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 10px; text-align: left; border-bottom: 1px solid #edf0f4; font-size: 12px; vertical-align: middle; }
th { color: #667085; background: #fafbfc; font-size: 10px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
tbody tr:hover { background: #fafcff; }
tbody tr:last-child td { border-bottom: 0; }
.ticket-id { color: #98a2b3; font-variant-numeric: tabular-nums; }
.title-cell { min-width: 205px; }
.title-cell strong, .title-cell span { display: block; }
.title-cell strong { color: #182230; font-weight: 600; }
.title-cell span { margin-top: 4px; color: #98a2b3; font-size: 10px; }
.time-cell { min-width: 125px; color: #667085; font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 5px; white-space: nowrap; }
.status-badge, .role-badge, .priority-badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: 999px; font-size: 10px; font-weight: 600; }
.status-badge { padding: 5px 8px; }
.status-badge i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.state-new { color: #175cd3; background: #eff4ff; }
.state-in_progress { color: #b54708; background: #fffaeb; }
.state-resolved, .account-active { color: #027a48; background: #ecfdf3; }
.state-closed, .account-disabled { color: #475467; background: #f2f4f7; }
.priority-badge { padding: 4px 7px; color: #475467; background: #f2f4f7; }
.priority-high { color: #b54708; background: #fffaeb; }
.priority-urgent { color: #b42318; background: #fef3f2; }
.role-badge { padding: 5px 8px; }
.role-admin { color: #6941c6; background: #f4f3ff; }
.role-manager { color: #175cd3; background: #eff4ff; }
.role-agent { color: #027a48; background: #ecfdf3; }
.role-viewer { color: #475467; background: #f2f4f7; }

.account-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.account-summary > div { padding: 17px 19px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.account-summary strong, .account-summary span { display: block; }
.account-summary strong { font-size: 24px; }
.account-summary span { margin-top: 3px; color: #667085; font-size: 11px; }
.person-cell { min-width: 150px; display: flex; gap: 9px; align-items: center; }
.person-avatar { width: 31px; height: 31px; flex: 0 0 auto; font-size: 11px; }
.person-cell strong, .person-cell small { display: block; }
.person-cell small { margin-top: 3px; color: #98a2b3; font-size: 10px; }
.department-panel form { display: grid; grid-template-columns: 1fr 1.35fr auto; gap: 12px; align-items: end; }
.department-list { margin-top: 20px; padding-top: 15px; border-top: 1px solid #eef1f5; }
.department-chip { display: inline-flex; gap: 5px; margin: 5px 5px 0 0; padding: 6px 9px; color: #344054; background: #f2f4f7; border-radius: 7px; font-size: 11px; }
.department-chip small { color: #98a2b3; }
.permission-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f0f2f5; }
.permission-row:last-child { border: 0; }
.permission-row p { margin: 2px 0 0; color: #667085; font-size: 11px; line-height: 1.5; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; color: #1849a9; background: #eff8ff; border: 1px solid #b2ddff; border-radius: 9px; }
.notice > span { width: 23px; height: 23px; display: grid; place-items: center; color: white; background: #2e90fa; border-radius: 50%; font-size: 12px; font-weight: 700; }
.notice strong, .notice p { display: block; margin: 0; }
.notice strong { font-size: 12px; }
.notice p { margin-top: 3px; font-size: 11px; }
.result-success { color: #027a48; } .result-error { color: #b42318; }
.empty-state { min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #98a2b3; text-align: center; }
.empty-state strong { margin: 7px 0 3px; color: #667085; font-size: 12px; }
.empty-state span { font-size: 10px; }
.empty-icon { width: 30px; height: 30px; display: grid; place-items: center; background: #f2f4f7; border-radius: 50%; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(16,24,40,.58); backdrop-filter: blur(5px); }
.modal-card { width: min(590px, 100%); max-height: 86vh; overflow: auto; background: #fff; border: 1px solid rgba(255,255,255,.75); border-radius: 16px; box-shadow: 0 28px 70px rgba(16,24,40,.28); }
.modal-card > header { position: sticky; top: 0; z-index: 1; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.96); border-bottom: 1px solid #eef1f5; }
.modal-card h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 22px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.full-field { grid-column: 1/-1; }
.modal-hint { margin: 0 0 15px; color: #667085; font-size: 11px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.password-modal { width: min(510px, 100%); }
.password-modal > header h3 { color: #344054; font-size: 14px; }
.password-modal .modal-body { padding: 24px 26px 26px; }
.password-intro { display: flex; align-items: center; gap: 13px; padding: 15px; color: #1849a9; background: linear-gradient(135deg,#f4f7ff,#eef4ff); border: 1px solid #dbe7ff; border-radius: 12px; }
.password-shield { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,#4d8af2,#2563eb); border-radius: 11px; box-shadow: 0 6px 15px rgba(37,99,235,.22); font-weight: 800; }
.password-intro strong, .password-intro p { display: block; margin: 0; }
.password-intro strong { color: #182230; font-size: 14px; }
.password-intro p { margin-top: 4px; color: #667085; font-size: 11px; }
.password-fields { display: grid; gap: 15px; margin-top: 20px; }
.password-rule { margin-top: 14px; display: flex; align-items: center; gap: 7px; color: #667085; font-size: 10px; }
.password-rule i { width: 6px; height: 6px; background: #528bff; border-radius: 50%; box-shadow: 0 0 0 4px #eff4ff; }
.password-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eef1f5; }
.password-actions button { min-width: 96px; height: 40px; }
.timeline { display: grid; }
.timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 8px; padding-bottom: 19px; }
.timeline-item::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: -2px; width: 1px; background: #e4e7ec; }
.timeline-item:last-child::before { display: none; }
.timeline-item > i { width: 9px; height: 9px; margin-top: 5px; background: #528bff; border: 2px solid #dbe8ff; border-radius: 50%; }
.timeline-head { display: flex; justify-content: space-between; gap: 12px; }
.timeline-head strong { font-size: 12px; }
.timeline-head time, .timeline-item span { color: #98a2b3; font-size: 10px; }
.timeline-item p { margin: 5px 0 3px; color: #475467; font-size: 11px; }

#toastHolder { position: fixed; z-index: 200; top: 18px; right: 18px; display: grid; gap: 8px; }
.toast { min-width: 230px; padding: 11px 14px; color: #067647; background: #ecfdf3; border: 1px solid #abefc6; border-radius: 8px; box-shadow: 0 12px 28px rgba(16,24,40,.14); font-size: 12px; animation: toast-in .2s ease; }
.toast.error { color: #b42318; background: #fef3f2; border-color: #fecdca; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-7px); } }

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: #fff; }
.login-story { position: relative; overflow: hidden; padding: clamp(50px,8vw,110px); display: flex; flex-direction: column; justify-content: center; color: white; background: radial-gradient(circle at 15% 15%, rgba(96,165,250,.34), transparent 25%), radial-gradient(circle at 80% 75%, rgba(37,99,235,.30), transparent 26%), #101828; }
.login-story::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018); }
.story-mark { color: #9fc2ff; font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.login-story h1 { margin: 26px 0 18px; font-size: clamp(35px,4.2vw,58px); line-height: 1.18; letter-spacing: -.045em; }
.login-story > p { max-width: 520px; color: #aeb9cc; font-size: 15px; line-height: 1.8; }
.story-points { display: flex; gap: 9px; margin-top: 30px; }
.story-points span { padding: 7px 10px; color: #cfe0ff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; font-size: 11px; }
.login-card { width: min(390px,calc(100% - 40px)); margin: auto; }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 45px; }
.login-brand > span { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: #2563eb; border-radius: 10px; font-weight: 800; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 15px; }
.login-brand small { margin-top: 2px; color: #98a2b3; font-size: 8px; letter-spacing: .15em; }
.login-card h2 { margin: 0 0 8px; font-size: 26px; }
.login-card > p { margin: 0 0 27px; color: #667085; font-size: 12px; }
.login-card label { display: block; margin: 13px 0 6px; color: #475467; font-size: 11px; font-weight: 600; }
.login-card input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #d0d8e3; border-radius: 9px; background: #fbfcfe; outline: none; transition: .16s; }
.login-card input:hover { border-color: #aeb9c9; background: #fff; }
.login-card input:focus { border-color: #5b8def; background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.login-card button { margin-top: 20px; }
.login-foot { margin-top: 24px; color: #98a2b3; font-size: 10px; text-align: center; }

@media (max-width: 1050px) {
  .layout { grid-template-columns: 208px minmax(0,1fr); }
  .content { padding: 26px 24px 50px; }
  .topbar { padding: 0 24px; }
  .content-grid, .two-columns { grid-template-columns: 1fr; }
  .guide-card { margin-top: 0!important; }
  .ticket-form { grid-template-columns: 2fr 1fr; }
  .account-form { grid-template-columns: 1fr 1fr; }
  .form-submit { grid-column: 1/-1; }
}
@media (max-width: 760px) {
  .layout { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 13px; }
  .logo { padding: 0 5px 12px; }
  .logo > span { width: 31px; height: 31px; }
  nav { display: flex; overflow-x: auto; }
  nav > label, .aside-foot { display: none; }
  .nav-item { width: auto; flex: 0 0 auto; padding: 7px 9px; }
  .nav-item i { width: 24px; height: 24px; }
  .topbar { height: 66px; padding: 0 15px; }
  .page-context { display: none; }
  .content { padding: 20px 13px 40px; }
  .stats, .account-summary { grid-template-columns: 1fr 1fr; }
  .ticket-form, .account-form { grid-template-columns: 1fr; }
  .form-submit { grid-column: auto; width: 100%; }
  .filters { width: 100%; }
  .filters input { width: 100%; }
  .toolbar { align-items: flex-start; flex-direction: column; padding: 12px 0; }
  .department-panel form { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-card { padding: 50px 0; }
}
@media (max-width: 480px) {
  .user-copy { display: none; }
  .password-button { padding-right: 8px; }
  .password-button span { display: none; }
  .stats, .account-summary { grid-template-columns: 1fr; }
  .page-head, .welcome { align-items: flex-start; flex-direction: column; }
  .filters { flex-direction: column; }
  .filters select { width: 100%; }
  .modal-grid { grid-template-columns: 1fr; }
}
