:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #14213d;
  background: #edf2f9;
  font-synthesis: none;
  --blue: #0d47d9;
  --blue-dark: #092d8c;
  --ink: #14213d;
  --muted: #65738b;
  --line: #d9e1ed;
  --paper: #ffffff;
  --danger: #c92b34;
  --shadow: 0 22px 70px rgba(23, 42, 78, .14);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 43%) 1fr; background: var(--paper); }
.auth-card { min-height: 100vh; padding: clamp(32px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 760; letter-spacing: -.02em; }
.brand--large { position: absolute; top: 42px; left: clamp(32px, 6vw, 80px); font-size: 1.08rem; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: white; font-weight: 850; }
.auth-copy { max-width: 560px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0; color: #101d37; font-size: clamp(2.45rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.06em; }
.auth-copy > p:last-child { max-width: 540px; margin: 26px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.auth-form { width: min(100%, 430px); margin-top: 46px; display: grid; gap: 20px; }
label { display: grid; gap: 8px; font-size: .88rem; font-weight: 700; color: #34415a; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #f8fafd; color: var(--ink); padding: 14px 15px; outline: none; transition: border .18s, box-shadow .18s, background .18s; }
input:focus, textarea:focus, select:focus { border-color: #78a1ff; background: white; box-shadow: 0 0 0 4px rgba(13, 71, 217, .1); }
.btn { border: 0; border-radius: 12px; padding: 14px 18px; font-weight: 760; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn--primary { background: var(--blue); color: white; box-shadow: 0 10px 22px rgba(13, 71, 217, .2); }
.btn--primary:hover { background: var(--blue-dark); }
.auth-note { margin: 22px 0 0; color: #8a95a8; font-size: .84rem; }
.text-button { padding: 0; border: 0; color: var(--blue); background: transparent; font-weight: 760; }
.text-button:hover { text-decoration: underline; }
.auth-copy--compact h1 { font-size: clamp(2.3rem, 4.2vw, 4rem); }
.auth-form--register { margin-top: 30px; gap: 15px; }
.name-fields, .profile-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-form label small { color: #8490a3; font-size: .72rem; font-weight: 550; }
.registration-success { padding: 24px 0 10px; display: grid; justify-items: start; gap: 12px; }
.registration-success > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: white; background: #168554; font-size: 1.4rem; font-weight: 850; }
.registration-success h2 { margin: 5px 0 0; font-size: 1.45rem; }
.registration-success p { margin: 0 0 7px; color: var(--muted); line-height: 1.6; }
.form-error { min-height: 20px; margin: -8px 0 0; color: var(--danger); font-size: .88rem; }
.auth-aside { min-height: 100vh; display: grid; place-content: center; padding: 8vw; position: relative; overflow: hidden; color: white; background: linear-gradient(145deg, #09296f, #0d47d9 56%, #2476f4); }
.auth-aside::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom right, black, transparent 78%); }
.signal-row { position: absolute; top: 34px; right: 38px; display: flex; gap: 7px; }
.signal-row span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); }
.signal-row span:first-child { background: #6cf0b1; box-shadow: 0 0 0 5px rgba(108,240,177,.12); }
.preview-ticket { width: min(520px, 100%); position: relative; z-index: 1; padding: clamp(26px, 4vw, 42px); border: 1px solid rgba(255,255,255,.22); border-radius: 24px; background: rgba(8, 35, 105, .48); box-shadow: 0 30px 80px rgba(0,0,0,.23); backdrop-filter: blur(16px); transform: rotate(-1.2deg); }
.preview-head, .preview-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ticket-id { color: #bbd0ff; font-weight: 800; }
.pill { display: inline-flex; border-radius: 100px; padding: 7px 10px; font-size: .75rem; font-weight: 800; }
.pill--progress { background: #fff0bd; color: #6f4c00; }
.preview-ticket h2 { max-width: 390px; margin: 42px 0 10px; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.12; letter-spacing: -.035em; }
.preview-ticket > p { color: #bcd0ff; }
.preview-meta { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: #dfe9ff; font-size: .88rem; }
.chat-preview { margin-top: 28px; padding: 18px; display: flex; gap: 13px; border-radius: 16px; background: white; color: var(--ink); box-shadow: var(--shadow); }
.chat-preview p { margin: 0; font-size: .84rem; line-height: 1.55; }
.avatar { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #dce8ff; color: var(--blue); font-size: .72rem; font-weight: 850; }
.aside-caption { position: relative; z-index: 1; margin: 34px 0 0 12px; display: grid; gap: 6px; }
.aside-caption span { color: #bfd1ff; font-size: .9rem; }
.auth-aside--approval { background: linear-gradient(145deg, #071d4f, #0d47d9 58%, #1d6fe8); }
.approval-visual { width: min(520px, 100%); position: relative; z-index: 1; padding: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(6,30,86,.5); box-shadow: 0 30px 80px rgba(0,0,0,.22); backdrop-filter: blur(15px); }
.approval-step { display: grid; grid-template-columns: 45px 1fr; align-items: center; gap: 16px; color: #93afe6; }
.approval-step > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; font-weight: 800; }
.approval-step div { display: grid; gap: 5px; }
.approval-step strong { color: #d3def5; }
.approval-step small { font-size: .78rem; }
.approval-step.is-active > span { color: #05235f; border-color: #fff; background: #fff; box-shadow: 0 0 0 7px rgba(255,255,255,.1); }
.approval-step.is-active strong { color: white; }
.approval-step.is-done > span { color: #063e2a; border-color: #7df0b4; background: #7df0b4; }
.approval-line { width: 1px; height: 48px; margin: 8px 0 8px 21px; background: rgba(255,255,255,.2); }
@media (max-width: 840px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-card { min-height: 100vh; }
  .auth-aside { display: none; }
}
@media (max-width: 520px) {
  .auth-card { padding: 92px 24px 32px; justify-content: flex-start; }
  .brand--large { top: 28px; left: 24px; }
  h1 { font-size: 2.8rem; }
  .auth-form { margin-top: 32px; }
}

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); background: #f3f6fb; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 18px 20px; color: #dbe7ff; background: #0c1d3a; }
.sidebar-brand { padding: 0 10px 30px; color: white; }
.main-nav { display: grid; gap: 7px; }
.nav-item { width: 100%; border: 0; border-radius: 11px; padding: 12px 13px; display: flex; align-items: center; gap: 12px; color: #aebdd9; background: transparent; text-align: left; font-weight: 650; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.is-active { color: white; background: #17499e; box-shadow: inset 3px 0 #72a0ff; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 100px; color: #6a2300; background: #ffc36a; font-size: .69rem; font-weight: 850; }
.sidebar-user { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; }
.sidebar-user div { min-width: 0; display: grid; gap: 3px; }
.sidebar-user strong, .sidebar-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: .82rem; color: white; }
.sidebar-user small { font-size: .72rem; color: #8fa3c8; }
.avatar--dark { background: #244d8d; color: white; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 10px; display: grid; place-items: center; color: inherit; background: transparent; }
.icon-button:hover { background: rgba(255,255,255,.08); }
.icon-button--danger { color: #bd2a38; }
.icon-button--danger:hover { color: #9d1724; background: #fff0f2; }
.workspace { min-width: 0; }
.mobile-bar, .mobile-nav { display: none; }
.content { max-width: 1600px; margin: 0 auto; padding: 38px clamp(24px, 3.4vw, 54px); }
.page-head { min-height: 72px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-head h1 { font-size: clamp(2rem, 3vw, 3.1rem); line-height: 1; }
.page-head .eyebrow { margin-bottom: 10px; }
.btn svg { width: 18px; height: 18px; }
.btn--small { padding: 10px 14px; font-size: .86rem; }
.btn--ghost { border: 1px solid var(--line); background: white; color: #34415a; }
.filters { margin: 30px 0 18px; display: grid; grid-template-columns: minmax(200px, 1fr) 180px 170px; gap: 10px; }
.filters--user { grid-template-columns: minmax(200px, 1fr) 180px; }
.filters select { background-color: white; }
.search-field { position: relative; display: block; }
.search-field svg { position: absolute; left: 14px; top: 50%; width: 18px; transform: translateY(-50%); color: #8793a6; }
.search-field input { padding-left: 42px; background: white; }
.ticket-workbench { height: calc(100vh - 203px); min-height: 560px; display: grid; grid-template-columns: minmax(340px, .82fr) minmax(480px, 1.45fr); border: 1px solid var(--line); border-radius: 17px; background: white; overflow: hidden; box-shadow: 0 14px 36px rgba(27, 49, 86, .07); }
.ticket-list { overflow-y: auto; border-right: 1px solid var(--line); background: #f8fafd; }
.ticket-card { width: 100%; min-height: 151px; display: block; padding: 20px 22px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; transition: background .15s, box-shadow .15s; }
.ticket-card:hover { background: white; }
.ticket-card.is-active { position: relative; background: white; box-shadow: inset 4px 0 var(--blue); }
.ticket-card-top { display: flex; justify-content: space-between; align-items: center; }
.company-chip { display: inline-flex; padding: 5px 8px; border-radius: 7px; color: #2051a9; background: #e9f0ff; font-size: .7rem; font-weight: 820; letter-spacing: .035em; }
.ticket-number { color: #8b96a8; font-size: .76rem; font-weight: 750; }
.ticket-card h2 { margin: 13px 0 7px; font-size: 1.02rem; line-height: 1.35; letter-spacing: -.015em; }
.ticket-card > p { margin: 0; color: var(--muted); font-size: .78rem; }
.ticket-card-bottom { margin-top: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status, .priority, .deadline { display: inline-flex; align-items: center; border-radius: 100px; padding: 5px 8px; font-size: .69rem; font-weight: 760; }
.status--new { background: #e8efff; color: #194caa; }
.status--progress { background: #fff1c9; color: #7a5300; }
.status--waiting { background: #f4eaff; color: #7344a1; }
.status--resolved { background: #dcf7e8; color: #147146; }
.status--closed { background: #e9edf3; color: #596578; }
.priority { color: #66738a; background: #edf0f5; }
.priority--high { color: #a24d00; background: #ffebd9; }
.priority--critical { color: #b71d2c; background: #ffe0e4; }
.deadline { padding-left: 0; background: none; color: #6b778b; font-weight: 600; }
.deadline.is-overdue { color: #c42132; }
.message-count { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: #71809a; font-size: .72rem; }
.message-count svg { width: 15px; }
.ticket-detail { overflow-y: auto; background: white; }
.empty-detail { display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: var(--blue); background: #eaf1ff; }
.empty-icon svg { width: 26px; height: 26px; }
.empty-detail h2, .empty-list h2 { margin: 18px 0 7px; color: var(--ink); font-size: 1.08rem; }
.empty-detail p, .empty-list p { margin: 0; font-size: .88rem; }
.detail-head { padding: 29px 34px 21px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.detail-kicker { display: flex; align-items: center; gap: 10px; color: #7b8799; font-size: .75rem; font-weight: 760; }
.detail-head h2 { margin: 13px 0 7px; font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.14; letter-spacing: -.035em; }
.detail-head p { margin: 0; color: var(--muted); font-size: .8rem; }
.detail-close { display: none; align-self: start; border: 0; background: transparent; color: #6d788a; }
.detail-actions { display: flex; align-items: center; gap: 4px; align-self: start; }
.detail-actions .icon-button { display: grid; }
.admin-strip { padding: 15px 34px; display: grid; grid-template-columns: 145px 145px 160px minmax(140px,1fr); align-items: end; gap: 11px; background: #f5f8fd; border-bottom: 1px solid var(--line); }
.admin-strip label { gap: 4px; font-size: .69rem; }
.admin-strip select, .admin-strip input { padding: 8px 9px; border-radius: 8px; font-size: .77rem; background: white; }
.autosave { align-self: center; justify-self: end; color: #8a95a7; font-size: .7rem; }
.detail-badges { padding: 16px 34px; display: flex; gap: 9px; border-bottom: 1px solid var(--line); }
.ticket-description { padding: 28px 34px; border-bottom: 1px solid var(--line); }
.ticket-description h3, .section-title h3 { margin: 0; font-size: .9rem; letter-spacing: -.01em; }
.ticket-description > p { margin: 13px 0 0; color: #33415a; font-size: .9rem; line-height: 1.7; }
.attachments { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.attachment { min-width: 170px; max-width: 300px; padding: 9px 11px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; color: #36517f; background: #fafcff; text-decoration: none; }
.attachment:hover { border-color: #8dacdf; }
.attachment svg { flex: 0 0 auto; width: 17px; }
.attachment span { min-width: 0; display: grid; }
.attachment strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.attachment small { color: #8490a2; font-size: .65rem; }
.conversation { padding: 27px 34px 34px; }
.section-title { display: flex; align-items: center; justify-content: space-between; }
.section-title span { color: #8994a5; font-size: .72rem; }
.messages { margin-top: 18px; display: grid; gap: 14px; }
.message { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.message-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #37588f; background: #e8eef8; font-size: .65rem; font-weight: 820; }
.message--admin .message-avatar { color: white; background: var(--blue); }
.message-body { max-width: 88%; padding: 11px 13px; border-radius: 3px 13px 13px 13px; background: #f2f5fa; }
.message--admin .message-body { background: #eaf1ff; }
.message-body > div:first-child { display: flex; gap: 10px; align-items: baseline; }
.message-body strong { font-size: .73rem; }
.message-body time { color: #8591a4; font-size: .64rem; }
.message-body p { margin: 7px 0 0; font-size: .84rem; line-height: 1.55; }
.message-body .attachments { margin-top: 9px; }
.conversation-empty { padding: 20px; border: 1px dashed var(--line); border-radius: 12px; color: #8190a5; text-align: center; font-size: .8rem; }
.message-form { margin-top: 20px; border: 1px solid #cfd9e7; border-radius: 13px; background: white; overflow: hidden; box-shadow: 0 5px 16px rgba(26,47,83,.06); }
.message-form textarea { display: block; border: 0; border-radius: 0; background: white; resize: vertical; box-shadow: none; }
.message-form > div { padding: 8px; display: flex; align-items: center; gap: 8px; border-top: 1px solid #e7ebf1; }
.message-form .btn { margin-left: auto; }
.file-button { width: auto; padding: 7px 8px; display: flex; grid-template: none; flex-direction: row; align-items: center; gap: 7px; color: #52627c; border-radius: 8px; cursor: pointer; font-size: .73rem; }
.file-button:hover { background: #f1f5fa; }
.file-button input { display: none; }
.file-button svg { width: 16px; }
.selected-file { color: #738096; font-size: .7rem; }
.empty-list { min-height: 420px; padding: 30px; display: grid; place-content: center; justify-items: center; text-align: center; }
.empty-list .btn { margin-top: 20px; }
.skeleton-card { height: 150px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #f4f6f9 25%, #fff 50%, #f4f6f9 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-lines { height: 240px; margin: 30px; border-radius: 12px; background: linear-gradient(90deg, #f4f6f9 25%, #fff 50%, #f4f6f9 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.modal { width: min(720px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: white; box-shadow: 0 28px 90px rgba(8,27,63,.32); }
.modal::backdrop { background: rgba(8,22,49,.66); backdrop-filter: blur(4px); }
.modal-card { padding: 30px; }
.modal-head { display: flex; align-items: start; justify-content: space-between; }
.modal-head .eyebrow { margin-bottom: 8px; }
.modal-head h2 { margin: 0; font-size: 1.8rem; letter-spacing: -.035em; }
.form-grid { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span-2 { grid-column: span 2; }
.form-grid textarea { resize: vertical; }
.file-drop { min-height: 76px; padding: 15px; display: flex; grid-template: none; flex-direction: row; align-items: center; gap: 13px; border: 1px dashed #afbdd3; border-radius: 12px; background: #f8fafd; cursor: pointer; }
.file-drop svg { color: var(--blue); }
.file-drop span { display: grid; gap: 4px; }
.file-drop small { color: #8490a4; font-weight: 500; }
.file-drop input { display: none; }
.modal-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(400px, calc(100vw - 48px)); padding: 13px 17px; border-radius: 11px; color: white; background: #176443; box-shadow: 0 12px 35px rgba(0,0,0,.22); font-size: .85rem; font-weight: 700; animation: toast-in .2s ease-out; }
.toast--error { background: #b32230; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
.users-layout { margin-top: 30px; display: grid; grid-template-columns: minmax(430px, 1.4fr) minmax(300px, .7fr); gap: 20px; }
.pending-panel { margin-top: 30px; }
.panel-head--row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pending-count { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border-radius: 100px; color: #194b9f; background: #e7efff; font-size: .9rem; font-weight: 850; }
.registration-row { min-height: 88px; padding: 15px 20px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid #e7ebf1; }
.registration-row:last-child { border-bottom: 0; }
.registration-row > div:nth-child(2) { display: grid; gap: 3px; }
.registration-row strong { font-size: .88rem; }
.registration-row div span { color: #5f6e84; font-size: .76rem; }
.registration-row small { color: #8d98a9; font-size: .68rem; }
.registration-actions { display: flex; gap: 8px; }
.btn--approve { color: white; background: #168554; }
.btn--approve:hover { background: #0e6840; }
.btn--reject { color: #a62633; background: #fff0f1; }
.btn--reject:hover { background: #ffe1e4; }
.pending-empty { min-height: 94px; padding: 20px 24px; display: flex; align-items: center; gap: 13px; color: #6c798d; }
.pending-empty > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #147247; background: #dcf7e8; font-weight: 850; }
.pending-empty div { display: grid; gap: 3px; }
.pending-empty strong { color: var(--ink); font-size: .85rem; }
.pending-empty p { margin: 0; font-size: .74rem; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 12px 35px rgba(27,49,86,.06); overflow: hidden; }
.panel-head { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 1.1rem; }
.panel-head p { margin: 8px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.user-row { min-height: 74px; padding: 13px 20px; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 13px; border-bottom: 1px solid #e7ebf1; }
.user-actions { display: flex; align-items: center; gap: 2px; }
.user-edit { color: #315b9f; }
.user-edit:hover { background: #edf3ff; }
.user-delete { width: 34px; height: 34px; }
.user-delete svg { width: 17px; height: 17px; }
.user-row:last-child { border-bottom: 0; }
.user-row div { display: grid; gap: 3px; }
.user-row strong { font-size: .84rem; }
.user-row div span { color: #7a879b; font-size: .72rem; }
.role-chip { padding: 5px 8px; border-radius: 100px; color: #54627a; background: #eef1f5; font-size: .68rem; font-weight: 750; }
.stack-form { padding: 22px 24px 26px; display: grid; gap: 15px; }
.stack-form label small { color: #8490a3; font-size: .72rem; font-weight: 550; }
.settings-layout { max-width: 780px; margin-top: 30px; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(260px, .7fr); gap: 20px; align-items: start; }
.account-layout { margin-top: 30px; display: grid; grid-template-columns: minmax(390px, 1.1fr) minmax(340px, .9fr); gap: 20px; align-items: start; }
.account-layout .smtp-state { grid-column: 1 / -1; }
.profile-email { margin: 20px 0 0; padding: 12px 14px; border-radius: 10px; color: #52627a; background: #f2f5fa; font-size: .85rem; font-weight: 700; }
.profile-modal { width: min(650px, calc(100vw - 30px)); }
.smtp-state { padding: 22px; display: grid; grid-template-columns: 40px 1fr; gap: 13px; align-items: start; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 12px 35px rgba(27,49,86,.06); }
.smtp-state > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-weight: 850; }
.smtp-state.is-ready > span { color: #147247; background: #dcf7e8; }
.smtp-state.is-missing > span { color: #9a5e00; background: #fff0c7; }
.smtp-state div { display: grid; gap: 6px; }
.smtp-state strong { font-size: .85rem; line-height: 1.35; }
.smtp-state p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .ticket-workbench { grid-template-columns: minmax(310px, .85fr) minmax(430px, 1.25fr); }
  .admin-strip { grid-template-columns: repeat(3, 1fr); }
  .autosave { display: none; }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .workspace { padding: 68px 0 72px; }
  .mobile-bar { position: fixed; z-index: 20; inset: 0 0 auto; height: 64px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
  .mobile-bar .brand { font-size: .9rem; }
  .mobile-bar .brand-mark { width: 30px; height: 30px; }
  .mobile-role { color: #6d7a90; font-size: .75rem; font-weight: 750; }
  .mobile-nav { position: fixed; z-index: 30; inset: auto 0 0; height: 68px; padding: 6px 12px env(safe-area-inset-bottom); display: flex; justify-content: space-around; border-top: 1px solid var(--line); background: white; }
  .mobile-nav button { flex: 1; border: 0; display: grid; justify-items: center; align-content: center; gap: 3px; color: #79869a; background: transparent; font-size: .65rem; }
  .mobile-nav button.is-active { color: var(--blue); }
  .mobile-nav svg { width: 19px; }
  .content { padding: 26px 18px; }
  .page-head { align-items: center; }
  .page-head > .btn { display: none; }
  .page-head h1 { font-size: 2.2rem; }
  .filters { margin-top: 24px; grid-template-columns: 1fr 1fr; }
  .filters--user { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: span 2; }
  .ticket-workbench { height: auto; min-height: 0; display: block; border: 0; background: transparent; overflow: visible; box-shadow: none; }
  .ticket-list { overflow: visible; border: 1px solid var(--line); border-radius: 14px; }
  .ticket-card:last-child { border-bottom: 0; }
  .ticket-detail { position: fixed; z-index: 40; inset: 0; display: none; overflow-y: auto; }
  .ticket-detail.is-mobile-open, .ticket-detail:not(.empty-detail):not(:empty) { display: block; }
  .ticket-detail.is-mobile-hidden { display: none; }
  .detail-close { display: grid; width: 40px; height: 40px; }
  .users-layout { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .ticket-card { padding: 18px; }
  .detail-head, .ticket-description, .conversation { padding-left: 20px; padding-right: 20px; }
  .admin-strip { padding: 14px 20px; grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .modal-card { padding: 22px; }
  .modal-actions .btn { flex: 1; }
  .message-body { max-width: 100%; }
  .user-row { grid-template-columns: auto 1fr auto; }
  .role-chip { grid-column: 2; justify-self: start; }
  .user-actions { grid-column: 3; grid-row: 1 / span 2; }
  .registration-row { grid-template-columns: auto 1fr; }
  .registration-actions { grid-column: 1 / -1; width: 100%; }
  .registration-actions .btn { flex: 1; }
  .settings-layout { min-width: 0; }
  .account-layout { min-width: 0; }
  .name-fields, .profile-name-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; } }
