:root {
  --primary: #407fff;
  --primary-dark: #3a74e8;
  --primary-soft: #edf4ff;
  --success: #067647;
  --success-soft: #ecfdf3;
  --warning: #b54708;
  --warning-soft: #fffaeb;
  --danger: #d92d20;
  --danger-soft: #fef3f2;
  --teal: #0e9384;
  --navy: #0b1b3f;
  --surface: #fff;
  --background: #f4f8ff;
  --text: #101828;
  --muted: #475467;
  --subtle: #98a2b3;
  --border: #e4e7ec;
  --sidebar-width: 232px;
  --shadow: 0 1px 3px rgb(16 24 40 / 4%), 0 8px 24px rgb(64 127 255 / 3%);
}
* { box-sizing: border-box; }
html { font-family: "Plus Jakarta Sans", sans-serif; color: var(--text); background: var(--background); font-size: 14px; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button { color: inherit; }
input, select, textarea { color: var(--text); }
input::placeholder, textarea::placeholder { color: #98a2b3; }
textarea { resize: vertical; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.35; letter-spacing: -.6px; font-weight: 800; }
h2 { font-size: 18px; line-height: 1.45; font-weight: 700; }
strong { font-weight: 700; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--reverse { transform: rotate(180deg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.text-link { color: var(--primary-dark); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.text-link .icon { width: 15px; height: 15px; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.button { min-height: 40px; border: 1px solid transparent; border-radius: 9px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button--primary { color: #fff; background: var(--primary); box-shadow: 0 2px 5px rgb(64 127 255 / 18%); }
.button--primary:hover { background: var(--primary-dark); }
.button--secondary { background: #fff; border-color: var(--border); color: #344054; }
.button--secondary:hover:not(:disabled) { border-color: #b2ccff; background: #f9fbff; }
.button--ghost { background: transparent; color: var(--muted); padding-inline: 8px; }
.button--small { min-height: 34px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.button--large { min-height: 48px; font-size: 15px; }
.button--full { width: 100%; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.icon-button { width: 38px; height: 38px; padding: 0; border: 0; background: transparent; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.icon-button:hover { background: var(--primary-soft); }
.link-button { padding: 0; border: 0; background: none; color: var(--primary-dark); font-size: 12px; font-weight: 700; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.card__header { min-height: 62px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eff2f6; }
.card__header h2 { font-size: 16px; }
.card__header p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #e0eaff; color: #2957b2; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 11px; font-weight: 800; }
.avatar--small { width: 28px; height: 28px; font-size: 9px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand strong { font-size: 16px; font-weight: 800; white-space: nowrap; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.brand__mark .icon { width: 19px; height: 19px; }
.role-pill { padding: 4px 7px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-dark); font-size: 10px; font-weight: 700; }
.topbar { position: fixed; z-index: 40; inset: 0 0 auto 0; height: 64px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.topbar__actions { display: flex; align-items: center; gap: 14px; }
.notification-button { position: relative; color: var(--muted); }
.notification-button > span { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 10px; background: var(--danger); color: #fff; border: 2px solid #fff; font-size: 9px; display: grid; place-items: center; }
.notification-menu { position: relative; }
.notification-menu summary { list-style: none; }
.notification-menu summary::-webkit-details-marker, .assign-menu summary::-webkit-details-marker { display: none; }
.popover { position: absolute; z-index: 80; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgb(16 24 40 / 14%); }
.notification-list { width: 340px; right: -50px; top: 48px; padding: 8px; }
.popover__head { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-bottom: 1px solid var(--border); }
.notification-list a { display: flex; flex-direction: column; gap: 6px; padding: 13px 12px; border-radius: 8px; }
.notification-list a:hover { background: var(--primary-soft); }
.notification-list a strong { font-size: 12px; }
.notification-list a span { color: var(--muted); font-size: 11px; }
.sidebar { background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 35; }
.staff-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 24px 14px 16px; }
.staff-brand { padding: 0 10px; gap: 9px; margin-bottom: 30px; }
.staff-brand .brand__mark { width: 30px; height: 30px; border-radius: 9px; }
.sidebar__nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item { min-height: 40px; padding: 0 12px; border-radius: 8px; color: #475467; display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 600; }
.nav-item .icon { width: 17px; height: 17px; color: #667085; }
.nav-item:hover:not(.disabled) { background: #f5f8fd; color: var(--text); }
.nav-item.active { background: #eaf2ff; color: #2463d4; font-weight: 700; }
.nav-item.active .icon { color: var(--primary); }
.nav-item.disabled { opacity: .62; cursor: default; }
.nav-count { margin-left: auto; min-width: 23px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: #eef2f6; color: #475467; font-size: 10px; font-weight: 800; }
.nav-item.active .nav-count { background: #fff; color: var(--primary-dark); }
.nav-count--alert { background: var(--danger); color: #fff; }
.nav-section { color: #98a2b3; font-size: 10px; font-weight: 800; letter-spacing: .6px; padding: 10px 12px 6px; }
.sidebar__user { border-top: 1px solid var(--border); padding: 16px 4px 0; display: flex; align-items: center; gap: 9px; }
.sidebar__user > div { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sidebar__user strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__user span:not(.avatar) { font-size: 10px; color: var(--muted); }
.sidebar__user .icon-button { width: 28px; height: 28px; color: var(--muted); }
.sidebar__user .icon { width: 16px; height: 16px; }
.portal-sidebar { position: fixed; left: 0; top: 64px; bottom: 0; width: var(--sidebar-width); padding: 20px 14px 16px; }
.staff-main { min-height: 100vh; margin-left: var(--sidebar-width); padding: 28px 32px 48px; }
.portal-main { min-height: 100vh; margin-left: var(--sidebar-width); padding: 96px 32px 48px; }
.mobile-nav { display: none; }
.breadcrumb { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; margin-bottom: 20px; }
.breadcrumb span { color: #c5cbd5; }
.page-heading { margin-bottom: 24px; }
.page-heading h1 + p { margin-top: 7px; }
.page-heading p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.page-heading--actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 20px; }
.back-link:hover { color: var(--primary); }
.back-link .icon { width: 17px; height: 17px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-bottom: 24px; }
.stat-card { padding: 20px; min-height: 148px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stat-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-icon--blue { background: var(--primary-soft); color: var(--primary); }
.stat-icon--orange { background: var(--warning-soft); color: var(--warning); }
.stat-icon--green { background: var(--success-soft); color: var(--success); }
.stat-card > strong { font-size: 30px; line-height: 1.2; margin: -5px 0 9px; letter-spacing: -1px; }
.stat-card small { color: var(--muted); font-size: 12px; }
.stat-card small b { color: var(--success); }
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; text-align: left; }
.data-table th { height: 42px; padding: 0 16px; background: #fafcff; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.data-table td { height: 60px; padding: 10px 16px; border-bottom: 1px solid #eff2f6; color: #344054; font-size: 12px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: #fafcff; }
.data-table td > strong { font-size: 12px; }
.ticket-number { color: #344054; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ticket-subject { color: var(--text); font-weight: 600; display: block; max-width: 390px; }
.ticket-subject:hover, .ticket-number:hover { color: var(--primary); }
.data-table th:nth-child(1), .data-table td:nth-child(1) { padding-left: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; width: max-content; border-radius: 20px; padding: 5px 9px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge--blue { color: #175cd3; background: #eff8ff; }
.badge--purple { color: #6941c6; background: #f4f3ff; }
.badge--teal { color: #107569; background: #f0fdf9; }
.badge--orange { color: #b54708; background: #fffaeb; }
.badge--green { color: #067647; background: #ecfdf3; }
.badge--red { color: #b42318; background: #fef3f2; }
.badge--gray { color: #475467; background: #f2f4f7; }
.priority { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.priority .icon { width: 13px; height: 13px; }
.priority--red { color: var(--danger); }
.priority--orange { color: var(--warning); }
.priority--blue { color: #175cd3; }
.priority--gray { color: var(--muted); }
.table-filters { padding: 16px 20px; display: flex; gap: 10px; border-bottom: 1px solid var(--border); }
.search-field { height: 38px; min-width: 240px; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; display: flex; align-items: center; gap: 8px; background: #fff; color: #98a2b3; }
.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(64 127 255 / 10%); }
.search-field .icon { width: 16px; height: 16px; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.select-field { height: 38px; min-width: 118px; position: relative; border: 1px solid var(--border); border-radius: 8px; background: #fff; display: flex; align-items: center; }
.select-field select { width: 100%; height: 100%; padding: 0 32px 0 12px; border: 0; outline: 0; background: transparent; appearance: none; font-size: 12px; }
.select-field > .icon { position: absolute; right: 10px; width: 14px; height: 14px; pointer-events: none; color: var(--muted); }
.select-field--full { width: 100%; height: 42px; }
.table-footer { min-height: 56px; padding: 12px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.table-footer > div { display: flex; gap: 8px; }
.empty-filter { text-align: center; color: var(--muted); padding: 40px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0 0 18px; }
.field > span, .field legend, .field-label { color: #344054; font-size: 12px; font-weight: 700; }
.field > span b { color: var(--danger); }
.field > span small, .field legend small { color: var(--muted); font-weight: 500; }
.field input:not([type=radio]):not([type=checkbox]), .field textarea, .side-form select, .assign-popover select { width: 100%; border: 1px solid #d0d5dd; border-radius: 9px; background: #fff; outline: none; padding: 11px 13px; font-size: 13px; line-height: 1.6; transition: border .15s, box-shadow .15s; }
.field input:not([type=radio]):not([type=checkbox]), .side-form select { height: 42px; }
.field input:focus, .field textarea:focus, .side-form select:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgb(64 127 255 / 10%); }
.form-card { max-width: 780px; padding: 26px; }
.form-hint { margin: -6px 0 20px; border-radius: 8px; background: #f5f8fd; color: var(--muted); padding: 10px 12px; display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.6; }
.form-hint .icon { width: 15px; height: 15px; margin-top: 1px; color: var(--primary); }
.form-actions { padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.form-alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.5; }
.form-alert .icon { width: 18px; height: 18px; }
.form-alert > div { display: flex; flex-direction: column; gap: 3px; }
.form-alert--error { color: #b42318; background: var(--danger-soft); border: 1px solid #fecdca; }
.form-alert--warning { color: #93370d; background: var(--warning-soft); border: 1px solid #fedf89; }
.dropzone { min-height: 132px; border: 1.5px dashed #b2ccff; border-radius: 12px; background: #f8fbff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); cursor: pointer; }
.dropzone:hover { border-color: var(--primary); background: var(--primary-soft); }
.dropzone > .icon { color: var(--primary); width: 25px; height: 25px; }
.dropzone strong { color: #344054; font-size: 12px; }
.dropzone span { font-size: 11px; }
.dropzone input { display: none; }
.file-preview { margin-top: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--muted); font-size: 12px; }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.detail-heading h1 { font-size: 22px; }
.detail-heading__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 22px; align-items: start; }
.detail-conversation { min-width: 0; }
.messages-card { padding: 22px; }
.message-list { display: flex; flex-direction: column; gap: 22px; }
.message { display: flex; align-items: flex-start; gap: 12px; }
.message__content { min-width: 0; max-width: 84%; }
.message__bubble { padding: 13px 15px; background: #f4f8ff; border-radius: 4px 14px 14px 14px; color: #344054; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.message__meta { color: var(--muted); font-size: 10px; margin-top: 7px; }
.message--own { justify-content: flex-end; }
.message--own .message__content { display: flex; flex-direction: column; align-items: flex-end; }
.message--own .message__bubble { background: var(--primary); color: #fff; border-radius: 14px 4px 14px 14px; }
.message--internal .message__bubble { background: #fffbeb; border: 1px solid #fef0c7; color: #344054; }
.internal-label { color: var(--warning); display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; margin-bottom: 6px; }
.internal-label .icon { width: 13px; height: 13px; }
.attachment-link { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: inherit; font-size: 11px; font-weight: 700; text-decoration: underline; }
.attachment-link .icon { width: 14px; height: 14px; }
.system-event { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 10px; padding: 12px; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.system-event .icon { width: 14px; height: 14px; }
.reply-card { padding: 16px; margin-top: 18px; }
.reply-card textarea, .agent-reply textarea { width: 100%; border: 0; outline: 0; font-size: 13px; line-height: 1.7; }
.reply-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }
.reply-card__actions > div { display: flex; gap: 6px; }
.meta-card { padding: 20px; }
.meta-card h2 { font-size: 15px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.meta-card dl { margin: 0; }
.meta-card dl > div { padding: 14px 0; border-bottom: 1px solid #eff2f6; }
.meta-card dl > div:last-child { border: 0; padding-bottom: 0; }
.meta-card dt { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.meta-card dd { margin: 0; font-size: 12px; font-weight: 500; line-height: 1.5; }
.agent-meta { display: flex; align-items: center; gap: 9px; }
.agent-meta .avatar { width: 30px; height: 30px; }
.agent-meta > span { display: flex; flex-direction: column; gap: 3px; }
.agent-meta small { color: var(--muted); font-size: 10px; font-weight: 400; }
.confirmation-card { max-width: 650px; margin: 70px auto 0; padding: 46px; text-align: center; }
.confirmation-card__icon { width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.confirmation-card__icon .icon { width: 34px; height: 34px; stroke-width: 2.2; }
.confirmation-card h1 { font-size: 26px; }
.confirmation-card > p { max-width: 490px; margin: 14px auto 24px; color: var(--muted); line-height: 1.8; font-size: 13px; }
.confirmation-card__label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.confirmation-card__number { display: block; color: var(--primary-dark); font-size: 26px; letter-spacing: -.5px; }
.confirmation-card__actions { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 420px; padding: 14px 18px; border-radius: 11px; box-shadow: 0 12px 32px rgb(16 24 40 / 16%); font-size: 12px; font-weight: 600; animation: toast-in .2s ease-out; }
.toast--success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.toast--error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px,1fr) minmax(520px,.9fr); background: #fff; }
.login-brand-panel { position: relative; overflow: hidden; padding: 48px 64px 36px; background: radial-gradient(circle at 85% 25%, rgb(64 127 255 / 38%), transparent 40%), linear-gradient(145deg,#0b1b3f,#123a79); color: #fff; display: flex; flex-direction: column; }
.login-brand-panel::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 50%; left: -180px; bottom: -160px; box-shadow: 0 0 0 70px rgb(255 255 255 / 2%),0 0 0 140px rgb(255 255 255 / 2%); }
.login-brand .brand__mark { background: rgb(255 255 255 / 15%); }
.login-brand strong { font-size: 17px; }
.login-brand__content { margin: auto 0; max-width: 560px; position: relative; z-index: 1; }
.login-illustration { width: 70px; height: 70px; border-radius: 20px; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 13%); display: grid; place-items: center; margin-bottom: 32px; }
.login-illustration .icon { width: 36px; height: 36px; }
.login-brand__content h1 { font-size: clamp(30px,3.1vw,48px); line-height: 1.3; letter-spacing: -1.5px; }
.login-brand__content p { margin-top: 24px; max-width: 520px; color: #c8d7f2; font-size: 14px; line-height: 1.9; }
.login-features { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 22px; }
.login-features span { display: flex; align-items: center; gap: 7px; color: #d8e3f7; font-size: 11px; font-weight: 600; }
.login-features .icon { width: 15px; height: 15px; }
.login-form-panel { padding: 48px; display: grid; place-items: center; background: #fff; }
.login-form { width: 100%; max-width: 400px; }
.login-form__heading { margin-bottom: 30px; }
.eyebrow { display: block; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: 1px; margin-bottom: 12px; }
.login-form__heading h2 { font-size: 26px; font-weight: 800; }
.login-form__heading p { color: var(--muted); margin-top: 8px; font-size: 13px; }
.input-with-icon { height: 46px; display: flex; align-items: center; gap: 9px; border: 1px solid #d0d5dd; border-radius: 9px; padding: 0 13px; color: #98a2b3; }
.input-with-icon:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(64 127 255 / 10%); }
.input-with-icon .icon { width: 17px; height: 17px; }
.input-with-icon input { width: 100%; border: 0; outline: 0; }
.field .input-with-icon input:not([type=radio]):not([type=checkbox]) { height: auto; padding: 0; border: 0; box-shadow: none; }
.field .input-with-icon input:focus { box-shadow: none; }
[hidden] { display: none !important; }
.login-form__row { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 22px; }
.check-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.check-label input { accent-color: var(--primary); }
.login-form .button .icon { margin-left: auto; width: 17px; }
.login-register { color: var(--muted); text-align: center; font-size: 10px; line-height: 1.7; margin: 18px 0; }
.login-register span { display: block; }
.demo-accounts { border-top: 1px solid var(--border); padding-top: 16px; }
.demo-accounts summary { color: var(--muted); font-size: 11px; font-weight: 700; }
.demo-accounts summary span { float: right; font-weight: 500; }
.demo-accounts > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.demo-accounts button { border: 1px solid var(--border); background: #fafcff; border-radius: 8px; padding: 9px; text-align: left; font-size: 10px; font-weight: 700; }
.demo-accounts button:hover { border-color: #b2ccff; }
.demo-accounts button span { display: block; color: var(--muted); margin-top: 3px; font-weight: 400; }
.triage-legend { display: flex; gap: 24px; margin: -6px 0 16px; }
.triage-legend span { display: flex; align-items: center; gap: 6px; color: var(--warning); font-size: 11px; font-weight: 600; }
.triage-legend .icon { width: 14px; height: 14px; }
.triage-table th:nth-child(1) { width: 140px; }
.triage-table th:nth-child(2) { width: 29%; }
.triage-table th:nth-child(3) { width: 20%; }
.triage-table td { height: 70px; }
.cell-subtitle { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.sla-row { background: #fffdf8; }
.assign-menu { position: relative; }
.assign-menu > summary { list-style: none; }
.assign-popover { width: 250px; right: 0; top: 42px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.assign-popover strong { font-size: 12px; }
.assign-popover select { height: 38px; padding: 0 10px; }
.admin-split { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; align-items: start; }
.admin-split--projects { grid-template-columns: minmax(0,1fr) 350px; }
.user-cell { display: flex; align-items: center; gap: 10px; min-width: 155px; }
.user-cell > div { display: flex; flex-direction: column; gap: 4px; }
.user-cell strong { font-size: 11px; white-space: nowrap; }
.user-cell span:not(.avatar) { color: var(--muted); font-size: 10px; }
.role-badge { display: inline-flex; padding: 5px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.role-badge--agent { background: #f4f3ff; color: #6941c6; }
.role-badge--admin { background: #fef3f2; color: #b42318; }
.role-badge--customer { background: #eff8ff; color: #175cd3; }
.role-badge--coordinator { background: #fffaeb; color: #b54708; }
.side-form { padding: 20px; position: sticky; top: 20px; }
.side-form__heading { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.side-form__heading h2 { font-size: 16px; }
.side-form__heading p { color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 4px; }
.role-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.role-options label input { position: absolute; opacity: 0; }
.role-options label span { display: block; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 600; cursor: pointer; }
.role-options label input:checked + span { border-color: #b2ccff; background: var(--primary-soft); color: var(--primary-dark); }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 18px; }
.chip-list > span { padding: 6px 8px; border-radius: 6px; background: var(--primary-soft); color: #2459b7; font-size: 10px; font-weight: 600; }
.project-cell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.project-cell > div { display: flex; flex-direction: column; gap: 4px; }
.project-cell strong { font-size: 11px; }
.project-cell span:not(.project-icon) { color: var(--muted); font-size: 10px; }
.project-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.project-icon .icon { width: 16px; height: 16px; }
.range-select { padding: 0 10px; }
.range-select select { border: 0; background: transparent; appearance: none; outline: 0; font-size: 12px; font-weight: 600; }
.range-select .icon { width: 15px; height: 15px; }
.report-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.kpi-card { min-height: 130px; padding: 18px; display: flex; flex-direction: column; }
.kpi-card > span { color: var(--muted); font-size: 11px; font-weight: 600; }
.kpi-card > strong { font-size: 27px; letter-spacing: -.8px; margin: 9px 0; }
.kpi-card small { color: var(--muted); font-size: 10px; }
.workload-card { gap: 7px; }
.workload-card > div { display: grid; grid-template-columns: 45px 1fr 14px; align-items: center; gap: 7px; font-size: 9px; }
.workload-card > div strong { text-align: right; }
.mini-bar { height: 4px; border-radius: 5px; background: #edf0f5; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.report-charts { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(290px,1fr); gap: 20px; }
.chart-card { overflow: hidden; }
.chart-legend { display: flex; gap: 14px; font-size: 10px; font-weight: 600; }
.chart-legend span::before { content: ""; width: 14px; height: 3px; display: inline-block; vertical-align: middle; margin-right: 5px; border-radius: 4px; background: currentColor; }
.chart-legend .blue { color: var(--primary); }
.chart-legend .gray { color: #98a2b3; }
.line-chart { padding: 16px 20px 15px; }
.line-chart svg { width: 100%; height: 220px; overflow: visible; }
.grid-lines { fill: none; stroke: #edf1f6; stroke-width: 1; }
.line-primary, .line-secondary { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.line-primary { stroke: var(--primary); }
.line-secondary { stroke: #98a2b3; }
.line-dots circle:first-child { fill: var(--primary); stroke: #fff; stroke-width: 3; }
.line-dots circle:last-child { fill: #98a2b3; stroke: #fff; stroke-width: 3; }
.chart-dates { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; padding-left: 4px; }
.donut-wrap { padding: 20px; display: flex; flex-direction: column; align-items: center; }
.donut { width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--teal) 0 30.4%,var(--primary) 30.4% 52.1%,#f79009 52.1% 69.5%,#12b76a 69.5% 89.1%,#98a2b3 89.1%); display: grid; place-items: center; }
.donut::before { content: ""; width: 96px; height: 96px; border-radius: 50%; background: #fff; grid-area: 1/1; }
.donut > div { grid-area: 1/1; z-index: 1; text-align: center; display: flex; flex-direction: column; }
.donut strong { font-size: 25px; }
.donut span { color: var(--muted); font-size: 9px; }
.donut-legend { list-style: none; padding: 0; margin: 20px 0 0; width: 100%; display: grid; gap: 10px; }
.donut-legend li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.donut-legend li b { margin-left: auto; color: var(--text); }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.teal { background: var(--teal); }.dot.blue { background: var(--primary); }.dot.orange { background: #f79009; }.dot.green { background: #12b76a; }.dot.gray { background: #98a2b3; }
.category-card { margin-top: 20px; }
.bar-chart { padding: 18px 20px; display: grid; gap: 14px; }
.bar-chart > div { display: grid; grid-template-columns: 120px 1fr 28px; align-items: center; gap: 15px; font-size: 11px; }
.bar-chart > div > div { height: 10px; background: #f0f3f8; border-radius: 5px; overflow: hidden; }
.bar-chart i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.bar-chart strong { text-align: right; }
.project-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.project-overview { padding: 20px; }
.project-overview__heading { display: flex; align-items: center; gap: 11px; }
.project-overview__heading > div { flex: 1; }
.project-overview__heading h2 { font-size: 15px; }
.project-overview__heading span:not(.project-icon) { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.project-overview__stats { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 22px; }
.project-overview__stats > div { display: flex; flex-direction: column; gap: 7px; padding-left: 18px; border-left: 1px solid var(--border); }
.project-overview__stats > div:first-child { padding-left: 0; border: 0; }
.project-overview__stats span { color: var(--muted); font-size: 10px; }
.project-overview__stats strong { font-size: 20px; }
.sla-track { height: 5px; background: #eef2f6; border-radius: 4px; margin-top: 18px; overflow: hidden; }
.sla-track span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.coordinator-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.team-list { padding: 8px 20px 16px; }
.team-row { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid #eff2f6; }
.team-row:last-child { border: 0; }
.team-row > div:nth-child(2) { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.team-row strong { font-size: 12px; }
.team-row span { color: var(--muted); font-size: 10px; }
.team-load { width: 150px; text-align: right; }
.team-load > div { height: 5px; border-radius: 4px; background: #eef2f6; margin-top: 7px; overflow: hidden; }
.team-load i { display: block; height: 100%; background: #12b76a; }
.team-load i.load-2 { background: var(--primary); }.team-load i.load-3 { background: #f79009; }
.attention-list { padding: 8px 16px 16px; }
.attention-list a { display: flex; align-items: center; gap: 10px; padding: 13px 4px; border-bottom: 1px solid #eff2f6; }
.attention-list a:last-child { border: 0; }
.attention-list a > div { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.attention-list strong { font-size: 11px; }
.attention-list span:not(.attention-icon) { color: var(--muted); font-size: 10px; }
.attention-list > a > .icon { width: 14px; height: 14px; color: #98a2b3; }
.attention-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; }
.attention-icon .icon { width: 15px; height: 15px; }
.attention-icon--orange { background: var(--warning-soft); color: var(--warning); }
.agent-layout { height: 100vh; display: grid; grid-template-columns: 232px 400px minmax(0,1fr); overflow: hidden; }
.agent-sidebar { position: relative; width: auto; height: 100vh; }
.agent-ticket-list { height: 100vh; overflow-y: auto; background: #fff; border-right: 1px solid var(--border); padding: 20px 14px; }
.agent-list__heading { padding: 0 6px 16px; display: flex; align-items: center; justify-content: space-between; }
.agent-list__heading h1 { font-size: 17px; }
.agent-list__heading span { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.agent-ticket-list > .search-field { min-width: 0; width: 100%; }
.agent-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.chip { border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--muted); padding: 6px 8px; font-size: 9px; }
.chip.active { background: var(--primary-soft); border-color: #d5e4ff; color: var(--primary-dark); }
.agent-ticket-rows { padding-top: 8px; }
.agent-ticket-row { display: block; padding: 13px 12px; border-radius: 10px; border: 1px solid transparent; margin-bottom: 5px; }
.agent-ticket-row:hover { background: #f7faff; }
.agent-ticket-row.active { background: #edf4ff; border-color: #d5e4ff; }
.agent-ticket-row__top { display: flex; align-items: flex-start; gap: 8px; }
.agent-ticket-row__top strong { flex: 1; font-size: 12px; line-height: 1.5; }
.agent-ticket-row > span { display: block; color: var(--muted); font-size: 10px; margin: 5px 0 10px; }
.agent-ticket-row > div:last-child { display: flex; align-items: center; justify-content: space-between; }
.agent-ticket-row time { color: var(--muted); font-size: 9px; }
.priority-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; }
.priority-dot--red { background: var(--danger); }.priority-dot--orange { background: #f79009; }.priority-dot--blue { background: var(--primary); }.priority-dot--gray { background: #98a2b3; }
.agent-detail { min-width: 0; height: 100vh; display: flex; flex-direction: column; background: #f7faff; }
.agent-detail__header { padding: 18px 22px 14px; background: #fff; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; }
.agent-detail__title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.agent-detail__title h2 { font-size: 17px; flex-basis: 100%; }
.agent-detail__title .ticket-number { font-size: 10px; color: var(--muted); }
.agent-customer { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.agent-customer > div { display: flex; flex-direction: column; gap: 3px; }
.agent-customer strong { font-size: 11px; }
.agent-customer span { color: var(--muted); font-size: 9px; }
.agent-customer .avatar { width: 30px; height: 30px; }
.agent-customer dl { margin: 0 0 0 22px; }
.agent-customer dt { color: var(--muted); font-size: 9px; }
.agent-customer dd { margin: 3px 0 0; font-size: 10px; font-weight: 600; }
.agent-customer .text-link { margin-left: auto; font-size: 10px; }
.status-form { display: flex; gap: 6px; align-items: flex-start; }
.status-form select { height: 34px; max-width: 155px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 10px; padding: 0 7px; }
.agent-conversation { flex: 1; min-height: 0; overflow-y: auto; padding: 22px; }
.agent-conversation .message-list { max-width: 850px; margin: 0 auto; }
.agent-conversation .message__content { max-width: 78%; }
.agent-reply { flex: 0 0 auto; margin: 0 22px 18px; padding: 0 16px 14px; border-radius: 13px; }
.reply-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.reply-tabs button { border: 0; border-bottom: 2px solid transparent; background: none; padding: 13px 2px 10px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.reply-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.reply-tabs .icon { width: 15px; height: 15px; }
.mention-hint { color: var(--muted); font-size: 9px; }
.agent-reply .button { font-size: 11px; min-height: 34px; }
.empty-state { margin: auto; text-align: center; color: var(--muted); }
.empty-state > span { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); }
.empty-state h2 { color: var(--text); }
.empty-state p { margin-top: 8px; font-size: 12px; }
@media (min-width: 1100px) { .admin-split .table-wrap, .triage-table { overflow: visible; } }
@media (max-width: 1200px) {
  .admin-split, .admin-split--projects { grid-template-columns: 1fr; }
  .side-form { position: static; max-width: 560px; }
  .report-kpis { grid-template-columns: 1fr 1fr; }
  .agent-layout { grid-template-columns: 210px 340px minmax(0,1fr); }
  .agent-customer dl { display: none; }
  .agent-detail__header { flex-direction: column; }
}
@media (max-width: 900px) {
  :root { --sidebar-width: 210px; }
  .staff-main, .portal-main { padding-inline: 22px; }
  .stats-grid { gap: 12px; }
  .detail-layout { grid-template-columns: 1fr; }
  .meta-card { order: -1; }
  .meta-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .project-overview-grid, .coordinator-grid, .report-charts { grid-template-columns: 1fr; }
  .agent-layout { grid-template-columns: 190px 300px minmax(0,1fr); }
  .agent-customer .text-link { display: none; }
}
@media (max-width: 720px) {
  h1 { font-size: 23px; }
  .mobile-nav { display: inline-flex; }
  .topbar { padding: 0 14px; }
  .topbar > .brand strong { display: none; }
  .topbar__actions { gap: 6px; }
  .topbar__actions .button { font-size: 11px; padding: 0 10px; }
  .sidebar { transition: transform .2s; }
  .staff-sidebar, .portal-sidebar { transform: translateX(-100%); box-shadow: 10px 0 30px rgb(16 24 40 / 10%); }
  body.nav-open .staff-sidebar, body.nav-open .portal-sidebar { transform: translateX(0); }
  .staff-brand { margin-bottom: 20px; }
  .staff-main { margin-left: 0; padding: 22px 16px 36px; }
  .portal-main { margin-left: 0; padding: 88px 16px 36px; }
  .staff-main::before { content: "Dəstək"; display: block; font-size: 18px; font-weight: 800; color: var(--primary-dark); margin: 4px 0 20px 46px; }
  .staff-mobile-nav { position: absolute; top: 18px; left: 16px; z-index: 34; background: #fff; border: 1px solid var(--border); }
  .agent-ticket-list > .staff-mobile-nav { position: absolute; top: 18px; left: 16px; }
  .agent-list__heading { padding-left: 42px; }
  .page-heading--actions, .detail-heading { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 130px; }
  .table-filters { flex-wrap: wrap; padding: 12px; }
  .search-field { width: 100%; min-width: 0; }
  .data-table { min-width: 700px; }
  .table-card { overflow: visible; }
  .table-wrap { border-radius: 16px; }
  .table-footer { gap: 12px; align-items: flex-start; }
  .form-card { padding: 20px; }
  .confirmation-card { margin-top: 25px; padding: 30px 20px; }
  .confirmation-card__actions { flex-direction: column; }
  .login-layout { display: block; }
  .login-brand-panel { min-height: auto; padding: 24px; }
  .login-brand__content, .login-features { display: none; }
  .login-form-panel { min-height: calc(100vh - 82px); padding: 28px 22px; }
  .report-kpis { grid-template-columns: 1fr; }
  .project-overview-grid { grid-template-columns: 1fr; }
  .project-overview__stats { gap: 8px; }
  .project-overview__stats > div { padding-left: 10px; }
  .agent-layout { height: auto; min-height: 100vh; display: block; overflow: visible; }
  .agent-sidebar { position: fixed; height: 100vh; width: 232px; }
  .agent-ticket-list { height: auto; max-height: none; border: 0; }
  .agent-detail { height: auto; min-height: 70vh; }
  .agent-conversation { overflow: visible; }
  .agent-detail__header { padding: 18px; }
  .agent-reply { margin: 0 14px 18px; }
  .notification-list { width: 300px; right: -40px; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}

.profile-page { max-width: 1100px; margin: 0 auto; padding: 96px 32px 48px; }
.profile-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 24px; align-items: start; }
.profile-summary { padding: 28px 22px; text-align: center; }
.profile-summary__avatar .avatar { width: 76px; height: 76px; font-size: 23px; margin-bottom: 16px; }
.profile-summary h2 { font-size: 17px; }
.profile-summary > span:not(.role-badge) { display: block; color: var(--muted); font-size: 11px; margin-top: 7px; }
.profile-summary .role-badge { margin-top: 14px; }
.profile-summary dl { margin: 22px 0 0; padding: 18px 0; border-top: 1px solid var(--border); }
.profile-summary dt { color: var(--muted); font-size: 10px; }
.profile-summary dd { margin: 6px 0 0; font-size: 12px; font-weight: 600; }
.profile-summary__security { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--success); display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; font-weight: 600; }
.profile-summary__security .icon { width: 15px; height: 15px; }
.profile-form { overflow: hidden; }
.profile-form__body { padding: 24px; }
.form-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-divider { margin: 8px 0 20px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; }
.form-divider span { font-size: 14px; font-weight: 700; }
.form-divider small { color: var(--muted); font-size: 10px; }
.auth-simple-page { min-height: 100vh; padding: 32px 20px; background: radial-gradient(circle at 50% 0,#e7f0ff,var(--background) 55%); display: flex; flex-direction: column; align-items: center; }
.auth-simple-brand { margin-bottom: 50px; }
.auth-simple-card { width: 100%; max-width: 460px; padding: 32px; text-align: center; }
.auth-simple-card h1 { font-size: 23px; margin-bottom: 12px; }
.auth-simple-card > p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 24px; }
.auth-simple-card .back-link { display: flex; width: max-content; }
.auth-simple-icon { width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.auth-simple-icon .icon { width: 27px; height: 27px; }
.auth-simple-card form { text-align: left; }
.record-count { padding: 8px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 600; }
.filter-form { align-items: center; }
.filter-form .search-field { flex: 1; min-width: 210px; }
.all-tickets-table { min-width: 1050px; }
.all-tickets-table .ticket-subject { max-width: 270px; }
.ticket-admin-form { margin-top: 18px; }
.staff-stats .stat-card { min-height: 135px; }
.mail-layout { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 22px; align-items: start; }
.mail-list { overflow: hidden; }
.mail-list__heading { padding: 17px 18px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; }
.mail-list__heading span { color: var(--muted); }
.mail-list__item { display: flex; align-items: center; gap: 10px; padding: 15px 16px; border-bottom: 1px solid #eff2f6; }
.mail-list__item.active { background: var(--primary-soft); }
.mail-list__item:hover { background: #f7faff; }
.mail-list__icon { width: 32px; height: 32px; border-radius: 8px; background: #f2f4f7; color: var(--muted); display: grid; place-items: center; }
.mail-list__item.active .mail-list__icon { background: #fff; color: var(--primary); }
.mail-list__icon .icon { width: 16px; height: 16px; }
.mail-list__item > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mail-list__item strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-list__item span:not(.mail-list__icon) { color: var(--muted); font-size: 9px; }
.template-state { width: 7px; height: 7px; border-radius: 50%; background: #d0d5dd; }
.template-state.active { background: #12b76a; }
.mail-list__hint { padding: 14px 16px; color: var(--muted); display: flex; align-items: flex-start; gap: 7px; font-size: 9px; line-height: 1.6; }
.mail-list__hint .icon { width: 14px; height: 14px; }
.mail-editor { overflow: hidden; }
.mail-editor__body { padding: 24px; }
.switch-label { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; }
.switch-label input { accent-color: var(--primary); }
.variable-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -5px 0 20px; }
.variable-list > span { color: var(--muted); font-size: 10px; margin-right: 3px; }
.variable-list button { border: 1px solid #d5e4ff; background: var(--primary-soft); color: var(--primary-dark); border-radius: 6px; padding: 5px 7px; font-size: 9px; font-family: monospace; }
.settings-form { max-width: 900px; display: grid; gap: 18px; }
.settings-card { display: grid; grid-template-columns: 250px minmax(0,1fr); overflow: hidden; }
.settings-card__heading { padding: 22px; background: #fafcff; border-right: 1px solid var(--border); display: flex; align-items: flex-start; gap: 11px; }
.settings-card__heading h2 { font-size: 14px; }
.settings-card__heading p { color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 5px; }
.settings-card__body { padding: 22px; }
.settings-card__body .field:last-child { margin-bottom: 0; }
.settings-toggles { display: grid; gap: 14px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.toggle-row > div { display: flex; flex-direction: column; gap: 5px; }
.toggle-row strong { font-size: 12px; }
.toggle-row span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.toggle-row input { position: absolute; right: 0; opacity: 0; }
.toggle-row i { width: 38px; height: 22px; flex: 0 0 auto; border-radius: 20px; background: #d0d5dd; position: relative; transition: background .2s; }
.toggle-row i::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(16 24 40 / 25%); transition: transform .2s; }
.toggle-row input:checked + i { background: var(--primary); }
.toggle-row input:checked + i::after { transform: translateX(16px); }
.settings-actions { display: flex; justify-content: flex-end; gap: 10px; }
.audit-action { display: inline-flex; padding: 5px 8px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-dark); font-size: 10px; font-weight: 600; white-space: nowrap; }
.audit-table { min-width: 1000px; }
.coordinator-project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.coordinator-project-card { padding: 22px; }
.coordinator-project-card__footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.team-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.team-member-card { padding: 22px; }
.team-member-card__heading { display: flex; align-items: center; gap: 11px; }
.team-member-card__heading > div { flex: 1; }
.team-member-card__heading h2 { font-size: 14px; margin-bottom: 6px; }
.member-presence { width: 9px; height: 9px; border-radius: 50%; background: #d0d5dd; }
.member-presence.online { background: #12b76a; box-shadow: 0 0 0 4px #ecfdf3; }
.team-member-card__stats { display: grid; grid-template-columns: repeat(3,1fr); margin: 22px 0 18px; }
.team-member-card__stats > div { display: flex; flex-direction: column; gap: 5px; }
.team-member-card__stats strong { font-size: 20px; }
.team-member-card__stats span { color: var(--muted); font-size: 9px; }
.team-member-card .team-load { width: 100%; text-align: left; margin-bottom: 18px; }
@media (max-width: 1100px) {
  .team-card-grid { grid-template-columns: 1fr 1fr; }
  .coordinator-project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .profile-layout, .mail-layout { grid-template-columns: 1fr; }
  .profile-summary { max-width: none; }
  .settings-card { grid-template-columns: 1fr; }
  .settings-card__heading { border-right: 0; border-bottom: 1px solid var(--border); }
  .filter-form { align-items: stretch; }
}
@media (max-width: 720px) {
  .profile-page { padding: 88px 16px 36px; }
  .form-two-columns, .team-card-grid { grid-template-columns: 1fr; }
  .auth-simple-brand { margin-bottom: 30px; }
  .auth-simple-card { padding: 24px; }
  .coordinator-project-card__footer { align-items: flex-start; flex-direction: column; }
  .mail-editor__body { padding: 18px; }
}
