:root {
  --navy: #15324a;
  --navy-deep: #0f2638;
  --blue: #2f6fed;
  --blue-soft: #eaf1ff;
  --green: #1da57a;
  --amber: #e89b30;
  --violet: #7656d6;
  --ink: #17212b;
  --muted: #6c7a89;
  --line: #e5eaf0;
  --surface: #fff;
  --canvas: #f4f7fa;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 256px; padding: 26px 18px; background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: #fff; z-index: 20; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 28px; border-bottom: 1px solid rgba(255,255,255,.11); }
.brand-mark { display: block; flex: 0 0 42px; width: 42px; height: 42px; object-fit: contain; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 18px; letter-spacing: -.3px; }
.brand span { margin-top: 3px; color: #aebfcb; font-size: 12px; }
.primary-nav { padding-top: 24px; }
.nav-label { margin: 0 12px 9px; color: #869cab; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; }
.nav-label-spaced { margin-top: 28px; }
.nav-item { width: 100%; height: 48px; border: 0; border-radius: 10px; padding: 0 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; background: transparent; color: #c9d5dd; text-align: left; }
.nav-item:hover:not(.disabled) { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: rgba(75,137,255,.22); color: #fff; box-shadow: inset 3px 0 #6ca0ff; }
.nav-icon { width: 21px; text-align: center; font-size: 17px; }
.nav-count, .soon { margin-left: auto; padding: 3px 7px; border-radius: 20px; background: rgba(255,255,255,.12); font-size: 10px; }
.nav-item.disabled { cursor: default; opacity: .48; }
.sidebar-profile { margin-top: auto; padding: 17px 9px 0; border-top: 1px solid rgba(255,255,255,.11); display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #6b86a0; font-weight: 800; }
.sidebar-profile strong, .sidebar-profile span { display: block; }
.sidebar-profile strong { font-size: 13px; }.sidebar-profile span { margin-top: 3px; color: #9fb1bd; font-size: 11px; }
.main-content { margin-left: 256px; min-height: 100vh; }
.topbar { height: 68px; padding: 0 38px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 13px; }.breadcrumb span { color: var(--muted); }.breadcrumb b { color: #bdc6ce; }
.top-actions { display: flex; align-items: center; gap: 18px; }.today { font-size: 12px; color: var(--muted); }
.icon-button { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #ff695e; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 22px; }
.page { display: none; padding: 38px; max-width: 1480px; margin: auto; }.page.active { display: block; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 27px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 10px; letter-spacing: 1.7px; font-weight: 800; }
h1 { margin: 0; font-size: 28px; letter-spacing: -.7px; } .page-heading > div > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.primary-button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 6px 16px rgba(47,111,237,.2); }
.primary-button:hover { background: #215fd9; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-card, .panel { border: 1px solid var(--line); background: var(--surface); border-radius: 15px; box-shadow: 0 3px 12px rgba(27,48,67,.035); }
.stat-card { padding: 21px; display: flex; gap: 15px; align-items: center; }
.stat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font-size: 18px; }.stat-icon.blue { background: var(--blue-soft); }.stat-icon.green { background: #e8f8f2; color: var(--green); }.stat-icon.amber { background: #fff4e3; color: var(--amber); }.stat-icon.violet { background: #f0ecff; color: var(--violet); }
.stat-card span, .stat-card strong, .stat-card em { display: block; }.stat-card span { color: var(--muted); font-size: 11px; }.stat-card strong { margin: 3px 0; font-size: 24px; }.stat-card strong small { margin-left: 3px; font-size: 11px; }.stat-card em { color: #8b98a5; font-size: 10px; font-style: normal; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-bottom: 18px; }
.panel { padding: 23px; }.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }.panel-header h2 { margin: 0; font-size: 16px; }.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.department-bars { display: grid; gap: 19px; }.bar-row { display: grid; grid-template-columns: 88px 1fr 38px; gap: 13px; align-items: center; font-size: 12px; }.bar-row > div { height: 8px; border-radius: 20px; background: #edf1f5; overflow: hidden; }.bar-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3d76e3, #75a0f2); }.bar-row strong { font-size: 11px; text-align: right; }
.quick-action { width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid #edf0f3; background: transparent; display: flex; align-items: center; gap: 11px; text-align: left; }.quick-action:last-child { border-bottom: 0; }.quick-action:not(.muted):hover { color: var(--blue); }.quick-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: #f0f4f8; }.quick-action span:nth-child(2) { flex: 1; }.quick-action strong, .quick-action small { display: block; }.quick-action strong { font-size: 12px; }.quick-action small { margin-top: 4px; color: var(--muted); font-size: 10px; }.quick-action b { color: #aab5bf; font-size: 20px; }.quick-action.muted { opacity: .55; }
.recent-panel { padding-bottom: 12px; }.text-button { border: 0; background: transparent; color: var(--blue); font-size: 11px; }.activity-list > div { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid #eef1f4; }.person-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 11px; font-weight: 800; }.peach { background: #ffede4; color: #cc693b; }.mint { background: #e1f7f0; color: #248568; }.blue-soft { background: var(--blue-soft); color: var(--blue); }.activity-list p { flex: 1; margin: 0; }.activity-list strong, .activity-list small { display: block; }.activity-list strong { font-size: 12px; }.activity-list small, .activity-list time { margin-top: 4px; color: var(--muted); font-size: 10px; }.activity-list .activity-empty { padding: 18px 2px 24px; color: var(--muted); font-size: 12px; text-align: center; }
.employee-panel { padding: 0; overflow: hidden; }.filter-row { padding: 20px 22px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }.search-box { min-width: 290px; height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; }.search-box input { width: 100%; border: 0; outline: 0; font-size: 12px; }.filter-row select { height: 40px; padding: 0 32px 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #4e5b67; font-size: 11px; }.result-count { margin-left: auto; color: var(--muted); font-size: 11px; }.result-count strong { color: var(--ink); }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th, td { padding: 15px 20px; border-bottom: 1px solid #edf0f3; text-align: left; white-space: nowrap; } th { background: #fafbfc; color: #71808d; font-size: 10px; letter-spacing: .2px; } td { font-size: 11px; }.employee-cell { display: flex; align-items: center; gap: 10px; }.employee-cell span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 800; }.employee-cell strong, .employee-cell small { display: block; }.employee-cell small { margin-top: 3px; color: var(--muted); font-size: 9px; }.status { padding: 4px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; }.status.active { background: #e8f8f2; color: #198365; }.status.leave { background: #fff2df; color: #b97820; }.row-button { border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; background: #fff; color: #4e5b67; font-size: 10px; }.row-button:hover { border-color: var(--blue); color: var(--blue); }.empty-state { padding: 45px; color: var(--muted); text-align: center; font-size: 12px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(9,26,40,.55); }.modal-backdrop[hidden] { display: none; }.modal { position: relative; width: min(500px, 100%); padding: 30px; border-radius: 17px; background: #fff; box-shadow: 0 22px 70px rgba(0,0,0,.24); }.modal h2 { margin: 0 0 22px; }.modal-close { position: absolute; top: 16px; right: 18px; border: 0; background: transparent; color: #73808c; font-size: 24px; }.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.detail-grid div { padding: 12px; border-radius: 9px; background: #f6f8fa; }.detail-grid span, .detail-grid strong { display: block; }.detail-grid span { margin-bottom: 5px; color: var(--muted); font-size: 9px; }.detail-grid strong { font-size: 12px; }.modal-confirm { width: 100%; margin-top: 22px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.secondary-button { min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #43515f; font-size: 11px; font-weight: 700; }
.secondary-button:hover { border-color: var(--blue); color: var(--blue); }.secondary-button.warning:hover { border-color: var(--amber); color: #b87316; }
.employee-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.employee-form label { display: grid; gap: 6px; }.employee-form label:first-child, .employee-form label:nth-child(2), .employee-form label:nth-child(5) { grid-column: 1 / -1; }
.employee-form label > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.employee-form input, .employee-form select, .employee-form textarea { width: 100%; min-width: 0; height: 41px; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; outline: 0; background: #fff; color: var(--ink); font-size: 12px; }
.employee-form input:focus, .employee-form select:focus, .employee-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,237,.1); }.employee-form input[readonly] { background: #f4f6f8; color: var(--muted); }
.employee-form textarea { height: auto; min-height: 78px; padding: 10px 11px; resize: vertical; font-family: inherit; line-height: 1.6; }
[hidden] { display: none !important; }
.access-empty { margin-top: 24px; }
.access-role-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.access-role-guide > div { padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 12px; background: #fff; }
.access-role-guide strong { font-size: 14px; }
.access-role-guide p, .access-notice { color: var(--muted); font-size: 12px; line-height: 1.8; }
.access-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.access-list-panel { min-width: 0; padding: 20px 0; }
.access-list-panel .panel-header { padding: 0 20px; }
.access-subtext { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.access-menu-cell { min-width: 150px; max-width: 260px; white-space: normal; }
.access-tag { display: inline-block; margin: 3px; padding: 4px 7px; background: var(--blue-soft); color: var(--blue); border-radius: 5px; font-size: 10px; }
.access-editor h2 { margin-top: 0; font-size: 17px; }
.access-form { display: grid; gap: 14px; }
.access-form label { display: grid; gap: 6px; min-width: 0; font-size: 11px; color: #53616f; }
.access-form input:not([type=checkbox]), .access-form select, .access-menu-table input:not([type=checkbox]) { min-width: 0; width: 100%; height: 41px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; background: #fff; }
.access-form input:focus, .access-form select:focus, .access-menu-table input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.access-form fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 10px; }
.access-form legend { color: var(--ink); font-size: 12px; font-weight: 700; padding: 0 6px; }
.access-form .access-override { grid-template-columns: minmax(0, 1fr) 145px; align-items: center; }
.access-form .access-check { display: flex; align-items: center; gap: 8px; }
.access-form .form-hint { margin: 0; }
.access-form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.access-form-actions button { padding: 0 18px; }
.access-menu-table input[name=label] { min-width: 130px; }
.access-menu-table input[type=number] { width: 66px; }
.access-reorder-hint { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.access-reorder-hint strong { color: var(--ink); }
.access-menu-table .access-drag-cell { width: 44px; padding-right: 4px; }
.access-drag-handle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 36px; border: 1px solid transparent; border-radius: 7px; background: #f1f5f9; color: #65758a; cursor: grab; font-size: 23px; line-height: 1; user-select: none; }
.access-drag-handle:hover { color: var(--blue); border-color: #bbd4f7; background: var(--blue-soft); }
.access-drag-handle:active { cursor: grabbing; }
.access-drag-handle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.access-drag-handle:disabled { cursor: wait; opacity: .55; }
.access-menu-table .access-row-dragging { opacity: .45; }
.access-menu-table .access-drop-before > td { box-shadow: inset 0 3px 0 var(--blue); }
.access-menu-table .access-drop-after > td { box-shadow: inset 0 -3px 0 var(--blue); }
.access-reorder-status { margin: 12px 0; color: var(--blue); font-size: 12px; line-height: 1.7; }
.access-reorder-status:empty { display: none; }
.access-form input[type=checkbox], .access-menu-table input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--blue); }
.access-form [disabled], .access-menu-table [disabled] { background: #f4f6f8; opacity: .65; }
@media (max-width: 1200px) { .access-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .access-role-guide { grid-template-columns: 1fr; } }
.employee-form > label { min-width: 0; }
.employee-email-fields { grid-column: 1 / -1; min-width: 0; display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.employee-email-fields .form-hint { margin: 0; }
.employee-email-fields .row-button { justify-self: start; }
.employee-contact small { display: block; max-width: 220px; margin-top: 5px; white-space: normal; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.detail-grid .detail-wide { grid-column: 1 / -1; overflow-wrap: anywhere; }
.mail-route-description { margin: 12px 0 0; color: #43515f; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-route-description.empty { color: var(--muted); font-size: 10px; }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 80; padding: 13px 17px; border-radius: 10px; background: var(--navy-deep); color: #fff; box-shadow: 0 12px 30px rgba(15,38,56,.25); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }.toast[data-type="error"] { background: #a63737; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #e9f1ff, transparent 34%), linear-gradient(135deg, #f7f9fc, #eaf0f5); }
.login-screen[hidden], .app-shell[hidden] { display: none; }
.login-card { width: min(440px, 100%); padding: 38px; border: 1px solid rgba(255,255,255,.8); border-radius: 21px; background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(21,50,74,.14); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }.login-brand strong, .login-brand span { display: block; }.login-brand strong { font-size: 17px; }.login-brand span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.login-card h1 { font-size: 26px; }.login-description { margin: 10px 0 25px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-form { display: grid; gap: 14px; }.login-form label { display: grid; gap: 7px; }.login-form label span { color: #53616f; font-size: 11px; font-weight: 700; }.login-form input { height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; outline: 0; }.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,237,.1); }.login-form .primary-button { width: 100%; height: 46px; }
.form-error { min-height: 18px; margin: -2px 0 0; color: #b83a3a; font-size: 11px; }.form-hint { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; padding: 0 0 14px; }.account-actions button { min-height: 33px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(255,255,255,.05); color: #b9c8d2; font-size: 9px; }.account-actions button:hover { background: rgba(255,255,255,.1); color: #fff; }
.primary-button:disabled, .modal-confirm:disabled { cursor: wait; opacity: .6; }

.heading-actions { display: flex; gap: 9px; }
.heading-actions .secondary-button { padding: 0 16px; }
.mail-heading strong { color: var(--ink); }
.mail-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.mail-stat-card { min-height: 112px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 3px 12px rgba(27,48,67,.035); }
.mail-stat-card span, .mail-stat-card strong, .mail-stat-card em { display: block; }
.mail-stat-card span { color: var(--muted); font-size: 10px; font-weight: 700; }
.mail-stat-card strong { margin: 7px 0 4px; font-size: 24px; }
.mail-stat-card strong small { margin-left: 4px; font-size: 11px; }
.mail-stat-card em { color: #8b98a5; font-size: 10px; font-style: normal; }
.mail-stat-card .service-state { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.service-state i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(29,165,122,.12); }
.mail-routes-panel { margin-bottom: 18px; }
.mail-routes-panel .panel-header, .destination-panel .panel-header, .mail-history-panel .panel-header { align-items: flex-end; }
.panel-kicker { margin: 0 0 5px !important; color: var(--blue) !important; font-size: 8px !important; font-weight: 800; letter-spacing: 1.2px; }
.panel-count { color: var(--muted); font-size: 10px; }
.mail-route-list { display: grid; gap: 10px; }
.mail-route-card { position: relative; overflow: hidden; padding: 14px 14px 12px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 11px; background: #fff; }
.mail-route-card.paused { border-left-color: #aeb9c2; background: #fbfcfd; }
.mail-route-topline { display: flex; align-items: center; gap: 11px; }
.mail-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; }
.mail-route-card.paused .mail-avatar { background: #8797a4; }
.mail-route-title { flex: 1; min-width: 0; }
.mail-route-title strong, .mail-route-title small { display: block; }
.mail-route-title strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
.mail-route-title small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.route-state { padding: 5px 9px; border-radius: 20px; font-size: 9px; font-weight: 800; }
.route-state.active { background: #e8f8f2; color: #198365; }
.route-state.paused { background: #eef1f4; color: #75838e; }
.mail-destination-strip { margin: 12px 0 10px; padding: 10px 12px; border-radius: 8px; background: #f5f8fc; }
.mail-destination-strip span, .mail-destination-strip strong { display: block; }
.mail-destination-strip span { margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 700; }
.mail-destination-strip strong { color: #245b9e; font-size: 10px; }
.mail-route-actions { display: flex; justify-content: flex-end; gap: 6px; }
.row-button.danger { border-color: #f1d6d6; color: #b84444; }
.row-button.danger:hover { border-color: #d86666; color: #a22e2e; }
.mail-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.destination-list, .mail-history-list { display: grid; gap: 8px; }
.destination-item { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfd; }
.destination-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #e8f8f2; color: var(--green); font-size: 11px; font-weight: 900; }
.destination-item > div { flex: 1; min-width: 0; }
.destination-item strong, .destination-item small { display: block; }
.destination-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.destination-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.verified-badge { padding: 4px 7px; border-radius: 20px; background: #e8f8f2; color: #198365; font-size: 8px; font-weight: 700; }
.mail-notice { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.mail-history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfd; }
.mail-history-item strong, .mail-history-item small { display: block; }
.mail-history-item strong { font-size: 10px; }.mail-history-item small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.mail-history-item time { flex-shrink: 0; color: var(--muted); font-size: 8px; }
.mail-empty { margin: 0; padding: 25px; color: var(--muted); font-size: 11px; text-align: center; }
.mail-route-form .mail-local-label, .mail-route-form .mail-description-label, .mail-route-form .mail-enabled-label, .mail-route-form .form-hint { grid-column: 1 / -1; }
.mail-input-group { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f4f6f8; }
.mail-input-group:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,237,.1); }
.mail-input-group input { border: 0; border-radius: 0; background: #fff; box-shadow: none !important; }
.mail-input-group b { padding: 0 11px; color: #5f6d79; font-size: 10px; white-space: nowrap; }
.mail-route-form .mail-enabled-label { display: flex; grid-template-columns: none; align-items: center; gap: 8px; }
.mail-enabled-label input { width: 16px; height: 16px; }
.mail-enabled-label span { color: #43515f !important; }
.mail-setup-notice { padding: 13px 16px; margin: 0 0 18px; border: 1px solid #efd8ac; border-radius: 10px; background: #fff8e9; color: #835c20; font-size: 12px; line-height: 1.7; }
.mail-recipient-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mail-recipient-tags strong { padding: 5px 7px; border-radius: 5px; background: #e9f1fc; overflow-wrap: anywhere; }
.verified-badge.pending, .destination-icon.pending { background: #fff0d6; color: #a16b16; }
.mail-destination-add { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.mail-destination-add > label, .mail-inline-destination > label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.mail-add-row { display: flex; gap: 8px; }
.mail-add-row input { flex: 1; min-width: 0; padding: 0 11px; height: 42px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.mail-add-row button { flex-shrink: 0; padding: 0 14px; }
.mail-sync-button { margin-top: 9px; padding: 0 12px; }
.mail-recipient-picker, .mail-inline-destination { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.mail-recipient-picker legend { padding: 0 5px; color: #43515f; font-size: 11px; font-weight: 700; }
#mailRecipientOptions { max-height: 180px; overflow-y: auto; }
.employee-form .mail-recipient-option { display: flex; align-items: center; gap: 9px; padding: 8px 0; }
.mail-recipient-option input { width: 17px; height: 17px; flex-shrink: 0; }
.mail-recipient-option > span { overflow-wrap: anywhere; }
.mail-recipient-option small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 400; }
.mail-recipient-option:has(input:disabled) { opacity: .6; }
.mail-inline-destination .form-hint { margin-top: 8px; }
.mail-form-warning { color: #996715; }
.modal:has(.mail-route-form), .modal:has(#employeeForm) { max-height: calc(100dvh - 40px); overflow-y: auto; }
.mail-route-actions { flex-wrap: wrap; }
.mail-add-row button:disabled, .mail-sync-button:disabled { cursor: wait; opacity: .6; }

@media (max-width: 1050px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .mail-bottom-grid { grid-template-columns: 1fr; }
}
.login-policy-links { display:flex;justify-content:center;gap:10px;margin:20px 0 0;color:#64748b;font-size:12px; }
.login-policy-links a { color:#475569;text-decoration:underline;text-underline-offset:3px; }
.logout-dialog { width:min(440px,calc(100% - 32px));padding:28px;border:1px solid #dce4ec;border-radius:20px;color:#203145;box-shadow:0 24px 80px #0f172a30; }
.logout-dialog::backdrop { background:#0f172a80;backdrop-filter:blur(3px); }
.logout-dialog h2 { margin:0 0 12px;font-size:22px; }
.logout-dialog p { line-height:1.7;font-size:14px; }
.logout-dialog-actions { display:grid;gap:10px;margin-top:24px; }
.logout-dialog-actions button { width:100%;min-height:44px;justify-content:center; }
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }.sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }.menu-toggle { display: block; }.topbar { padding: 0 18px; }.today { display: none; }
  .page { padding: 24px 17px; }.page-heading { align-items: flex-start; gap: 18px; }.page-heading .primary-button { white-space: nowrap; }
  .stat-grid { grid-template-columns: 1fr; }.filter-row { flex-wrap: wrap; }.search-box { min-width: 100%; }.result-count { width: 100%; margin: 4px 0 0; }
  .mail-heading { display: grid; }.heading-actions { width: 100%; }.heading-actions button { flex: 1; }
  .mail-stat-grid { grid-template-columns: 1fr; }.mail-route-actions { justify-content: stretch; }.mail-route-actions button { flex: 1; }
  .mail-history-item { align-items: flex-start; }.mail-history-item time { max-width: 90px; text-align: right; }
}
.review-banner { margin: 0; padding: 12px 20px; color: #60420d; background: #fff4cf; border-bottom: 1px solid #e2cb83; font-size: 13px; line-height: 1.6; }
.review-banner[hidden] { display: none; }
.access-menu-heading { padding: 20px 20px 8px; font-size: 17px; }
.access-child-menu > span, tr.access-child-menu > td:nth-child(2) { border-left: 3px solid #2f6bf2; padding-left: 12px; }
.account-onboarding { margin: 18px 0; padding: 20px; }
.account-onboarding h2 { margin-top: 0; font-size: 16px; }
.account-pending-list, .password-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.account-pending-list button { padding: 8px 12px; }
.access-editor { scroll-margin-top: 90px; min-width: 0; }
.employee-account-link { width: 100%; margin-top: 12px; }
.password-form { grid-template-columns: minmax(0, 1fr); }
.password-form > * { grid-column: 1 / -1; }
.password-form .form-hint { margin: 0; line-height: 1.7; }
.modal:has(.password-form) { max-height: calc(100dvh - 32px); overflow-y: auto; }
.login-help { margin-top: 20px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.login-help summary { cursor: pointer; color: var(--blue); }
#myPasswordButton { white-space: nowrap; min-height: 36px; }
@media (max-width: 760px) { .top-actions { gap: 8px; } .breadcrumb { min-width: 0; } .breadcrumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
