@layer reset, base, layout, components, pages, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, h4, p { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  a { color: inherit; text-decoration: none; }
}

@layer base {
  :root { color-scheme: light; --navy: #192f50; --navy-dark: #132640; --blue: #315e9c; --text: #243248; --muted: #647084; --subtle: #788395; --line: #e8ecf1; --bg: #f5f7fa; --green: #23816b; --amber: #a16b22; --radius: 14px; }
  body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  button { border: 0; background: none; color: inherit; }
  button:disabled { cursor: not-allowed; opacity: .45; }
  :focus-visible { outline: 3px solid #80a7e1; outline-offset: 3px; }
  svg.icon { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
  .skip-link { position: fixed; z-index: 100; top: -60px; left: 20px; padding: 10px 18px; color: white; background: var(--navy); }
  .skip-link:focus { top: 10px; }
  .muted { color: var(--muted); }
  .small { font-size: 12px; }
  .hidden { display: none !important; }
  .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 2px; font-weight: 600; }
  h1 { color: #17263e; font-size: 29px; letter-spacing: -.7px; font-weight: 650; line-height: 1.4; }
  h2 { color: #21324b; font-size: 17px; font-weight: 650; }
  h3 { font-size: 15px; font-weight: 600; }
  input, select, textarea { min-height: 43px; width: 100%; border: 1px solid #dfe5ed; border-radius: 8px; color: var(--text); background: white; padding: 10px 12px; outline: none; transition: border-color .18s, box-shadow .18s; }
  input:hover, select:hover, textarea:hover { border-color: #aab8ca; }
  input:focus, select:focus, textarea:focus { border-color: #7295c9; box-shadow: 0 0 0 3px #315e9c12; }
  input::placeholder, textarea::placeholder { color: #8992a0; }
  textarea { resize: vertical; min-height: 88px; }
  label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 9px; }
  label .optional { margin-left: 7px; color: var(--subtle); font-weight: 400; font-size: 12px; }
  .required { color: #b34444; margin-left: 3px; }
  .form-error { color: #b34444; font-size: 13px; margin-top: 10px; }
}

@layer layout {
  .sidebar { width: 226px; position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); padding: 14px 17px 0; }
  .brand { display: flex; flex-direction: column; align-items: flex-start; margin: 0 17px 31px; }
  .brand img { object-fit: contain; display: block; width: 104px; height: 80px; margin-left: -3px; }
  .brand span { font-size: 15px; font-weight: 650; color: #263a54; letter-spacing: .5px; margin-top: -3px; }
  .workspace-label { display: flex; justify-content: space-between; align-items: center; color: #8a93a1; font-size: 10px; padding: 0 14px 12px; letter-spacing: .6px; }
  .workspace-label span { font-size: 8px; letter-spacing: 1px; }
  .nav-link { display: flex; align-items: center; gap: 13px; border-radius: 8px; height: 47px; padding: 0 15px; margin-bottom: 6px; color: #667187; font-size: 13px; transition: background .18s, color .18s; }
  .nav-link:hover { background: #f2f5f9; color: var(--navy); }
  .nav-link.active { background: var(--navy); color: white; box-shadow: 0 4px 10px #192f5010; }
  .nav-link.active::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #a6bfdf; margin-left: auto; }
  .nav-link .icon { width: 18px; height: 18px; }
  .sidebar-bottom { margin-top: auto; }
  .plan-card { border: 1px solid #e6ebf2; background: #f8fafc; border-radius: 10px; margin: 25px 2px 22px; padding: 16px; }
  .plan-title { color: #5d6a7d; display: flex; align-items: center; gap: 7px; font-size: 11px; }
  .plan-title .icon { width: 14px; height: 14px; }
  .plan-time { font-size: 17px; font-weight: 650; margin: 8px 0 8px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
  .plan-time span { font-size: 12px; font-weight: 400; margin-right: 8px; }
  .plan-foot { font-size: 10px; color: #966b30; display: flex; align-items: center; gap: 6px; }
  .plan-foot i { width: 5px; height: 5px; background: #b58b4d; border-radius: 50%; }
  .sidebar-user { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 20px 3px; }
  .sidebar-user strong { font-size: 12px; font-weight: 550; display: block; }
  .sidebar-user small { font-size: 10px; color: var(--muted); display: block; margin-top: 1px; }
  .user-dot { width: 6px; height: 6px; background: #609a86; border-radius: 50%; margin-left: auto; margin-right: 7px; }
  .app-shell { margin-left: 226px; min-height: 100vh; display: flex; flex-direction: column; }
  .topbar { height: 70px; background: #ffffffdf; border-bottom: 1px solid var(--line); padding: 0 35px; display: flex; justify-content: space-between; align-items: center; }
  .topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
  .breadcrumb { font-size: 12px; color: var(--subtle); }
  .breadcrumb span { margin: 0 13px; color: #b8bfca; }
  .breadcrumb strong { font-weight: 500; color: #455167; }
  .topbar-date { font-size: 11px; color: var(--muted); padding-left: 18px; border-left: 1px solid var(--line); }
  .preview-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #63758c; }
  .preview-badge i { width: 6px; height: 6px; background: #7295b4; border-radius: 50%; }
  main { width: 100%; max-width: 1600px; margin: 0 auto; padding: 32px 35px 20px; flex: 1; }
  .page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 26px; }
  .page-heading .eyebrow { margin-bottom: 7px; }
  .page-heading p { color: var(--muted); font-size: 12px; margin-top: 9px; }
  .page-heading .button { margin-top: 20px; }
  .app-footer { max-width: 1600px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; font-size: 10px; color: #8490a1; padding: 18px 35px 24px; }
  .icon-button.mobile-menu, .mobile-scrim { display: none; }
}

@layer components {
  .service-status { padding: 23px 25px; margin-top: 20px; }
  .service-status .card-heading { margin-bottom: 12px; }
  .service-status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
  .service-status-row strong { font-size: 12px; }
  .service-jobs { margin: 0; padding: 0; list-style: none; }
  .service-jobs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
  .sidebar-user > .text-button { margin-left: auto; font-size: 10px; }
  .preview-badge > .text-button { padding: 0; min-height: 30px; font-size: 10px; color: #a16b22; }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; min-height: 42px; border: 1px solid #dfe5ee; border-radius: 8px; background: white; color: #49576c; font-size: 12px; font-weight: 550; transition: background .18s, box-shadow .18s, border-color .18s; white-space: nowrap; }
  .button:hover { background: #f5f7fb; border-color: #bdc9d9; }
  .button .icon { width: 16px; height: 16px; }
  .button.primary { color: white; border-color: var(--navy); background: var(--navy); box-shadow: 0 3px 5px #192f5009; }
  .button.primary:hover { background: #26466e; border-color: #26466e; }
  .button.ghost { border-color: transparent; background: transparent; }
  .button.danger { color: #a84b4b; border-color: #e5c3c3; }
  .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 7px; color: #748096; transition: background .18s; flex-shrink: 0; }
  .icon-button:hover { color: var(--navy); background: #edf1f6; }
  .icon-button.danger:hover { background: #fff1f1; color: #a84646; }
  .icon-button .icon { width: 17px; height: 17px; }
  .card { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 4px #1d355502; }
  .card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .card-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; }
  .section-icon { display: inline-flex; align-items: center; justify-content: center; color: #597595; background: #eff3f8; width: 36px; height: 36px; border-radius: 9px; margin-bottom: 13px; }
  .avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: #e9eff7; color: #4c698e; font-size: 13px; font-weight: 600; flex-shrink: 0; }
  .avatar-sage { background: #e9f1ed; color: #56796b; }
  .avatar-sand { background: #f5efe5; color: #967349; }
  .avatar-lilac { background: #efedf6; color: #7b6a99; }
  .avatar-admin { width: 33px; height: 33px; font-size: 12px; border-radius: 10px; }
  .badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; font-size: 10px; line-height: 1; padding: 6px 8px; white-space: nowrap; font-weight: 500; }
  .badge.green { color: #2c8069; background: #edf6f1; }
  .badge.amber { color: #a27634; background: #fbf4e8; }
  .badge.neutral { color: #66768a; background: #f0f3f7; }
  .badge .icon { width: 11px; height: 11px; }
  .text-button { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: #426596; min-height: 36px; padding: 4px 0; }
  .text-button:hover { color: #183451; text-decoration: underline; }
  .text-button .icon { width: 14px; height: 14px; }
  .search-box { position: relative; display: flex; align-items: center; }
  .search-box > .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: #8792a2; pointer-events: none; }
  .search-box input { padding-left: 36px; min-height: 37px; font-size: 11px; background: #fbfcfd; }
  .person { display: flex; align-items: center; gap: 11px; }
  .person strong { display: block; font-size: 13px; font-weight: 550; }
  .person small { font-size: 10px; color: var(--subtle); display: block; margin-top: 2px; }
  .empty { text-align: center; padding: 45px 20px; color: var(--muted); }
  .empty > .icon { width: 32px; height: 32px; color: #93a7bf; margin-bottom: 10px; }
  .empty h3 { color: #52627b; margin-bottom: 6px; }
  .empty p { font-size: 12px; }
  .empty .button { margin-top: 17px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .field { margin-bottom: 21px; }
  .hint { color: var(--muted); font-size: 11px; line-height: 1.8; }
  .info-strip { display: flex; align-items: flex-start; gap: 9px; color: #64748b; background: #f1f5fa; border-radius: 8px; padding: 12px 15px; font-size: 11px; line-height: 1.9; }
  .info-strip > .icon { width: 15px; height: 15px; margin-top: 3px; }
  dialog { width: min(520px, calc(100% - 32px)); border: 1px solid #e2e8f0; border-radius: 17px; padding: 0; color: var(--text); background: white; box-shadow: 0 24px 100px #10274725; }
  dialog::backdrop { background: #162b4b55; backdrop-filter: blur(4px); }
  .dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 25px 16px; }
  .dialog-header h2 { font-size: 18px; }
  .dialog-body { padding: 0 25px 24px; max-height: 66vh; overflow-y: auto; }
  .dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 17px 25px; background: #fafbfd; border-top: 1px solid var(--line); }
  .dialog-body > p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
  .toast { position: fixed; z-index: 100; bottom: 28px; left: calc(50% + 80px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 30px); padding: 12px 20px; border: 1px solid #dfe7ee; border-radius: 10px; background: #fff; color: #324d68; font-size: 13px; box-shadow: 0 8px 30px #152d4a18; transition: opacity .2s, transform .2s; }
  .toast.show { opacity: 1; transform: translate(-50%, 0); }
}

@layer pages {
  .overview-row { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 20px; margin-bottom: 26px; }
  .stats-card { padding: 23px 25px 18px; display: flex; flex-direction: column; }
  .stats-top { display: flex; justify-content: space-between; align-items: center; }
  .stats-top strong { font-size: 12px; font-weight: 550; }
  .stats-top > span { font-size: 10px; color: var(--subtle); }
  .stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 23px; }
  .stat { padding-left: 25px; border-left: 1px solid var(--line); }
  .stat:first-child { border: 0; padding: 0; }
  .stat-name { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 7px; }
  .stat-name .icon { width: 14px; height: 14px; }
  .stat-value { font-size: 34px; font-weight: 550; color: #253a55; line-height: 1.2; letter-spacing: -1px; margin-top: 10px; }
  .stat-value span { font-size: 11px; font-weight: 400; color: var(--subtle); margin-left: 9px; }
  .stat:nth-child(2) .stat-value { color: #a17b41; }
  .stats-progress { display: flex; align-items: center; gap: 12px; margin-top: 21px; padding-top: 14px; border-top: 1px solid #f0f2f5; }
  .progress-track { flex: 1; height: 4px; background: #edf2f7; border-radius: 4px; overflow: hidden; }
  .progress-track span { display: block; height: 100%; background: #86aa9d; border-radius: 4px; }
  .stats-progress p { font-size: 10px; color: var(--muted); white-space: nowrap; }
  .stats-progress strong { font-weight: 550; color: #528772; }
  .reminder-card { background: #1c3454; border: 1px solid #1c3454; border-radius: var(--radius); color: #fff; padding: 23px 25px 19px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
  .reminder-card::after { content: ''; position: absolute; width: 190px; height: 190px; border: 1px solid #ffffff0c; border-radius: 50%; right: -60px; top: -45px; box-shadow: 0 0 0 28px #ffffff03, 0 0 0 58px #ffffff02; pointer-events: none; }
  .reminder-eyebrow { display: flex; gap: 8px; align-items: center; font-size: 10px; color: #bacadd; letter-spacing: .4px; }
  .reminder-eyebrow .icon { width: 14px; height: 14px; }
  .reminder-card h2 { color: white; font-size: 20px; font-weight: 500; margin-top: 12px; letter-spacing: .5px; }
  .reminder-card > p { color: #b9c8dc; font-size: 11px; margin-top: 8px; }
  .reminder-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 19px; }
  .reminder-status { color: #c9d6e8; font-size: 9px; display: inline-flex; align-items: center; gap: 5px; }
  .reminder-status i { width: 5px; height: 5px; background: #d7b77c; border-radius: 50%; }
  .reminder-bottom .text-button { color: #dce6f3; font-size: 10px; min-height: 28px; }
  .schedule-panel { overflow: hidden; }
  .schedule-heading { padding: 23px 25px 18px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
  .heading-with-icon { display: flex; align-items: center; gap: 10px; }
  .heading-with-icon > .icon { color: #7d90a8; width: 19px; height: 19px; }
  .heading-with-icon h2 { font-size: 16px; }
  .week-controls { display: flex; align-items: center; gap: 7px; }
  .week-controls .icon-button { border: 1px solid #e4e9f0; width: 29px; height: 29px; }
  .week-controls .icon-button .icon { width: 14px; height: 14px; }
  .week-range { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; color: #4e5e75; margin-right: 7px; font-variant-numeric: tabular-nums; }
  .week-range .badge { font-size: 9px; padding: 5px 6px; }
  .schedule-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 0 25px 18px; }
  .filter-tabs { display: inline-flex; gap: 18px; align-items: center; }
  .filter-tab { color: #778294; font-size: 11px; padding: 8px 0; position: relative; }
  .filter-tab.active { color: #274a75; font-weight: 600; }
  .filter-tab.active::after { content: ''; position: absolute; bottom: 1px; left: 0; right: 0; height: 2px; border-radius: 3px; background: #4b6e9c; }
  .filter-tab span { font-size: 9px; padding: 1px 5px; border-radius: 4px; background: #f0f3f7; margin-left: 4px; color: #7a879a; }
  .filter-tab.active span { background: #e9eff7; color: #41628c; }
  .toolbar-actions { display: flex; align-items: center; gap: 13px; }
  .toolbar-actions .search-box { width: 166px; }
  .view-toggle { border: 1px solid #e4e9ef; border-radius: 7px; display: flex; padding: 3px; }
  .view-toggle button { min-width: 29px; min-height: 27px; color: #8a95a5; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
  .view-toggle button.active { color: #42638b; background: #edf2f8; }
  .view-toggle .icon { width: 15px; height: 15px; }
  .calendar-scroll { overflow-x: auto; }
  .calendar-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 750px; }
  .calendar-table th, .calendar-table td { border-top: 1px solid var(--line); }
  .calendar-table thead th { font-weight: 400; background: #fafbfd; padding: 15px 0 13px; width: calc((100% - 154px) / 7); }
  .calendar-table thead th:first-child { width: 154px; text-align: left; padding-left: 25px; color: #7b8798; font-size: 10px; }
  .calendar-table th .day-name { display: block; font-size: 10px; color: #8190a3; }
  .calendar-table th .day-date { display: inline-flex; justify-content: center; align-items: center; width: 27px; height: 27px; font-size: 15px; font-weight: 500; color: #42536c; margin-top: 2px; }
  .calendar-table th.weekend .day-date { color: #9aa4b2; }
  .calendar-table td { padding: 18px 4px; vertical-align: middle; border-left: 1px solid #f0f2f6; height: 115px; }
  .calendar-table td:first-child { padding: 20px 10px 20px 24px; border-left: 0; }
  .calendar-table td.weekend { background: #fcfcfd; }
  .calendar-person { display: flex; align-items: center; gap: 9px; }
  .calendar-person .avatar { width: 31px; height: 31px; border-radius: 9px; font-size: 11px; }
  .calendar-person strong { display: block; font-size: 12px; font-weight: 550; }
  .calendar-person small { font-size: 9px; color: #7e899a; display: block; margin-top: 2px; }
  .calendar-member > .badge { margin-top: 12px; margin-left: 40px; padding: 4px 5px; font-size: 8px; }
  .event { width: 100%; text-align: left; min-height: 53px; padding: 8px; border-radius: 5px; background: #eef3fa; border-left: 2px solid #8aa6cb; color: #44638c; margin: 3px 0; line-height: 1.5; display: block; transition: background .18s; overflow: hidden; }
  .event:hover { background: #e3ebf6; }
  .event strong { display: block; font-size: 11px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .event small { display: block; font-size: 8px; margin-top: 4px; color: #6d84a2; }
  .event.office { background: #edf5f0; color: #517e6c; border-color: #91b5a3; }
  .event.office small { color: #7a998a; }
  .event.office:hover { background: #e4efe8; }
  .event.meeting { background: #f3eff8; color: #7b6797; border-color: #b4a0ca; }
  .event.meeting small { color: #9b88b0; }
  .event.meeting:hover { background: #ece5f4; }
  .event.leave { background: #faf3e8; color: #a1804b; border-color: #cfb17c; }
  .no-event { text-align: center; color: #c4ccd6; font-size: 13px; }
  .pending-cell { text-align: center; color: #9a8c76; background: repeating-linear-gradient(135deg, #ffffff, #ffffff 7px, #fdfcf9 7px, #fdfcf9 8px); }
  .pending-message { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 11px; }
  .pending-message .icon { width: 14px; height: 14px; color: #ba9f76; }
  .pending-message .text-button { margin-left: 8px; font-size: 10px; }
  .panel-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-top: 1px solid var(--line); gap: 15px; }
  .legend { display: flex; gap: 17px; color: #8390a2; font-size: 9px; }
  .legend span { display: inline-flex; align-items: center; gap: 6px; }
  .legend i { width: 6px; height: 6px; background: #8aa6cb; border-radius: 2px; }
  .legend .office { background: #91b5a3; }
  .legend .meeting { background: #b4a0ca; }
  .legend .leave { background: #cfb17c; }
  .panel-footer .button { min-height: 33px; font-size: 10px; padding: 7px 10px; }
  .under-note { color: #7b8899; font-size: 10px; margin: 15px 2px 0; display: flex; align-items: center; gap: 6px; }
  .under-note .icon { width: 13px; height: 13px; color: #96a5b8; }
  .list-content { padding: 0 24px; border-top: 1px solid var(--line); }
  .list-person { border-bottom: 1px solid var(--line); padding: 20px 0; }
  .list-person:last-child { border: 0; }
  .list-person-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .list-entries { margin-left: 47px; display: flex; flex-wrap: wrap; gap: 10px; }
  .list-entry { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 10px 15px; text-align: left; background: #fcfdfe; }
  .list-entry:hover { background: #f3f6fa; }
  .list-entry strong { font-size: 12px; margin: 0 9px; }
  .list-entry small { color: var(--muted); font-size: 10px; }
  .week-pill { display: inline-flex; align-items: center; gap: 10px; color: #4e6482; background: #eaf0f7; padding: 9px 13px; border-radius: 7px; font-size: 11px; }
  .week-pill .icon { width: 15px; height: 15px; }
  .fill-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
  .form-card { padding: 26px; }
  .form-card .card-heading { margin-bottom: 27px; }
  .identity-demo { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: #f8fafc; border: 1px solid #edf0f5; border-radius: 9px; margin-bottom: 24px; }
  .identity-demo .person { flex: 1; }
  .identity-demo select { width: 115px; min-height: 34px; font-size: 11px; padding: 5px 8px; }
  .type-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .type-option { position: relative; }
  .type-option input { position: absolute; width: 1px; height: 1px; opacity: 0; min-height: 0; }
  .type-option span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; color: #778499; background: #fff; border: 1px solid #e1e7ef; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 400; }
  .type-option .icon { width: 14px; height: 14px; }
  .type-option input:checked + span { color: #385d8a; background: #eff4fa; border-color: #8da8ca; }
  .type-option input:focus-visible + span { outline: 3px solid #80a7e1; outline-offset: 3px; }
  .form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 3px; }
  .form-actions .hint { font-size: 10px; }
  .aside-card { padding: 23px; margin-bottom: 20px; }
  .aside-card h3 { margin-bottom: 17px; }
  .step { display: flex; gap: 12px; margin-bottom: 22px; }
  .step:last-child { margin-bottom: 0; }
  .step-number { display: inline-flex; justify-content: center; align-items: center; width: 24px; height: 24px; flex-shrink: 0; border: 1px solid #dce4ef; border-radius: 50%; background: #f4f7fb; color: #6383ab; font-size: 10px; }
  .step strong { display: block; font-size: 12px; font-weight: 550; line-height: 1.9; }
  .step p { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.9; }
  .tip-card { padding: 20px 23px; border-radius: 12px; background: #edf2f8; color: #566d8e; }
  .tip-card h3 { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 9px; }
  .tip-card p { font-size: 11px; line-height: 1.9; }
  .my-schedule { margin-top: 24px; overflow: hidden; }
  .my-schedule .card-heading { padding: 21px 24px 0; align-items: center; margin-bottom: 17px; }
  .my-schedule h2 { font-size: 15px; }
  .entry-row { display: flex; align-items: center; gap: 15px; padding: 18px 24px; border-top: 1px solid var(--line); }
  .entry-date { width: 76px; flex-shrink: 0; font-size: 11px; font-weight: 550; color: #597698; text-align: center; border-right: 1px solid var(--line); padding-right: 15px; }
  .entry-date small { display: block; color: var(--muted); font-size: 9px; font-weight: 400; margin-top: 3px; }
  .entry-info { flex: 1; min-width: 0; }
  .entry-info strong { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
  .entry-info p { color: var(--muted); font-size: 10px; margin-top: 3px; overflow-wrap: anywhere; }
  .entry-row .badge { margin-left: 8px; }
  .entry-actions { display: flex; }
  .submit-bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--line); background: #fafbfd; padding: 17px 24px; }
  .submit-bar p { font-size: 11px; color: var(--muted); }
  .submit-bar .button { padding: 9px 15px; min-height: 38px; }
  .manage-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); align-items: start; gap: 22px; }
  .manage-main { display: flex; flex-direction: column; gap: 22px; }
  .member-card { padding: 25px; }
  .member-card .card-heading { margin-bottom: 18px; }
  .member-card .card-heading .button { min-height: 34px; padding: 6px 11px; font-size: 10px; }
  .member-table { width: 100%; border-collapse: collapse; margin-top: 17px; }
  .member-table thead { background: #fafbfd; }
  .member-table th { text-align: left; color: #7e899a; font-weight: 400; font-size: 10px; padding: 10px 12px; }
  .member-table td { padding: 17px 12px; border-bottom: 1px solid #eff2f6; }
  .member-table tr:last-child td { border: 0; }
  .member-table td:last-child, .member-table th:last-child { text-align: right; width: 45px; }
  .member-table .person strong { font-size: 12px; }
  .member-table .person small { font-size: 9px; }
  .member-table .avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 11px; }
  .recipient-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
  .recipient-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; font-size: 11px; }
  .recipient-chip .avatar { width: 25px; height: 25px; border-radius: 7px; font-size: 9px; }
  .recipient-chip .icon-button { width: 24px; height: 24px; }
  .recipient-chip .icon { width: 13px; height: 13px; }
  .settings-card { padding: 25px; }
  .settings-card h2 { font-size: 16px; }
  .settings-card > p { font-size: 11px; color: var(--muted); margin: 7px 0 21px; }
  .settings-section { padding: 19px 0 0; border-top: 1px solid var(--line); margin-top: 20px; }
  .settings-section h3 { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 15px; }
  .settings-section h3 .icon { width: 15px; height: 15px; color: #8396af; }
  .settings-section .field-row { gap: 11px; }
  .settings-section label { font-size: 10px; color: var(--muted); margin-bottom: 6px; }
  .settings-section select { min-height: 39px; font-size: 11px; padding: 8px; }
  .settings-card > form > .button { width: 100%; margin-top: 21px; }
  .settings-note { padding-top: 15px; margin-top: 16px; border-top: 1px solid var(--line); }
  .settings-note p { font-size: 10px; color: var(--muted); line-height: 1.9; }
  .message-preview { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 18px 0; }
  .message-preview h3 { background: #edf2f8; color: #344f73; font-size: 14px; padding: 15px 18px; }
  .message-preview > div { padding: 18px; font-size: 12px; line-height: 2; }
  .message-preview p { margin-bottom: 12px; }
  .message-link { display: inline-block; color: #416a9f; padding: 6px 0; font-size: 11px; }
  .directory-list { margin-top: 16px; display: flex; flex-direction: column; gap: 5px; }
  .directory-option { display: flex; align-items: center; padding: 12px 8px; border-radius: 8px; gap: 10px; cursor: pointer; }
  .directory-option:hover { background: #f2f5fa; }
  .directory-option .person { flex: 1; }
  .directory-option input { width: 16px; height: 16px; min-height: 0; accent-color: var(--navy); }
  .detail-grid { display: grid; grid-template-columns: 75px 1fr; gap: 16px 10px; font-size: 13px; }
  .detail-grid dt { color: var(--muted); }
  .detail-grid dd { margin: 0; overflow-wrap: anywhere; }
}

@layer responsive {
  .icon-button.mobile-menu { display: none; }
  @media (min-width: 1500px) { main { padding-top: 39px; } .calendar-table td { height: 130px; } .overview-row { margin-bottom: 29px; } }
  @media (max-width: 1200px) { .sidebar { width: 200px; padding-left: 13px; padding-right: 13px; } .app-shell { margin-left: 200px; } main { padding: 27px 25px 18px; } .topbar { padding: 0 25px; } .overview-row { grid-template-columns: 1.6fr 1fr; gap: 16px; } .stats-card, .reminder-card { padding: 20px; } .reminder-card h2 { font-size: 17px; } .stat { padding-left: 17px; } .schedule-heading, .schedule-toolbar { padding-left: 20px; padding-right: 20px; } .week-range { font-size: 10px; } .manage-layout { grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); gap: 17px; } .member-card, .settings-card { padding: 20px; } .fill-layout { grid-template-columns: minmax(0, 1.8fr) minmax(225px, 1fr); gap: 17px; } .form-card { padding: 21px; } .type-option span { gap: 4px; font-size: 10px; } }
  @media (max-width: 1000px) { .overview-row { grid-template-columns: 1.7fr 1fr; } .stats-top > span { display: none; } .reminder-card { padding: 20px 16px; } .reminder-card > p { font-size: 10px; } .schedule-heading { flex-wrap: wrap; } .schedule-toolbar { gap: 10px; } .filter-tabs { gap: 13px; } .toolbar-actions { gap: 7px; } .toolbar-actions .search-box { width: 135px; } .manage-layout, .fill-layout { grid-template-columns: 1fr; } .fill-aside { display: grid; grid-template-columns: 1.5fr 1fr; align-items: start; gap: 17px; } .aside-card { margin: 0; } .topbar-date { display: none; } .settings-section .field-row { max-width: 400px; } .settings-card > form > .button { width: auto; min-width: 160px; } }
  @media (max-width: 767px) { .sidebar { transform: translateX(-100%); transition: transform .22s; width: 226px; } .sidebar.open { transform: translateX(0); } .sidebar.open + .mobile-scrim { display: block; position: fixed; inset: 0; z-index: 20; background: #152d4b50; backdrop-filter: blur(2px); } .app-shell { margin-left: 0; } .topbar { height: 61px; padding: 0 16px 0 10px; } .topbar-left { gap: 6px; } .icon-button.mobile-menu { display: inline-flex; } .breadcrumb { font-size: 10px; } .breadcrumb span { margin: 0 8px; } .topbar-right { gap: 10px; } .preview-badge { font-size: 9px; } .topbar-right .icon-button { width: 28px; } main { padding: 24px 18px 14px; } .page-heading { margin-bottom: 22px; align-items: flex-start; gap: 10px; } h1 { font-size: 25px; } .page-heading .eyebrow { font-size: 8px; letter-spacing: 1.5px; } .page-heading p { font-size: 11px; max-width: 260px; line-height: 1.9; } .page-heading .button { font-size: 10px; padding: 8px 11px; min-height: 37px; margin-top: 25px; gap: 5px; } .overview-row { grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; } .stats-card { padding: 21px; } .stats-top > span { display: inline; } .stat-name { font-size: 10px; gap: 5px; } .stat-value { font-size: 31px; } .stat-value span { font-size: 10px; margin-left: 5px; } .reminder-card { padding: 19px 21px; display: grid; grid-template-columns: 1fr auto; column-gap: 15px; } .reminder-eyebrow { font-size: 9px; grid-column: 1; } .reminder-card h2 { grid-column: 1; font-size: 17px; margin-top: 8px; } .reminder-card > p { grid-column: 1; font-size: 10px; } .reminder-bottom { grid-column: 2; grid-row: 1 / 4; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; padding: 0; margin: 0; } .reminder-status { font-size: 8px; } .schedule-heading { padding: 19px 16px 13px; gap: 14px; } .heading-with-icon h2 { font-size: 15px; } .week-controls { margin-left: auto; gap: 5px; } .week-range { font-size: 9px; gap: 5px; margin-right: 2px; } .week-controls .icon-button { width: 26px; height: 28px; } .week-controls .text-button { font-size: 10px; } .schedule-toolbar { padding: 0 16px 14px; gap: 10px; flex-wrap: wrap; } .toolbar-actions { margin-left: auto; } .toolbar-actions .search-box { width: 128px; } .filter-tabs { gap: 14px; } .filter-tab { font-size: 10px; } .filter-tab span { margin-left: 2px; padding: 1px 4px; } .calendar-table { min-width: 800px; } .calendar-table thead th:first-child { width: 138px; padding-left: 16px; } .calendar-table td:first-child { padding-left: 16px; } .calendar-table td { height: 110px; } .panel-footer { padding: 13px 16px; gap: 10px; } .legend { gap: 10px; font-size: 8px; flex-wrap: wrap; } .legend span { gap: 4px; } .panel-footer .button { font-size: 9px; padding: 6px 9px; } .under-note { font-size: 9px; align-items: flex-start; gap: 5px; line-height: 1.9; } .under-note .icon { margin-top: 3px; flex-shrink: 0; } .app-footer { padding: 20px 18px 21px; font-size: 8px; gap: 10px; } .app-footer span:last-child { text-align: right; } .toast { left: 50%; bottom: 20px; font-size: 12px; width: max-content; } .week-pill { font-size: 9px; padding: 8px 10px; margin-top: 24px; white-space: nowrap; } .week-pill .icon { width: 13px; } .fill-aside { grid-template-columns: 1fr; } .fill-layout { gap: 20px; } .form-card { padding: 22px 18px; } .type-options { gap: 6px; } .type-option span { font-size: 10px; } .type-option .icon { width: 12px; } .form-actions .hint { font-size: 9px; max-width: 160px; } .form-actions .button { padding: 9px 12px; font-size: 11px; } .field-row { gap: 13px; } .identity-demo { padding: 12px; gap: 5px; } .identity-demo .person strong { font-size: 12px; } .identity-demo .person small { font-size: 9px; } .identity-demo select { width: 100px; font-size: 10px; } .identity-demo .avatar { width: 31px; height: 31px; } .my-schedule .card-heading { padding: 18px 17px 0; } .entry-row { padding: 17px; gap: 12px; } .entry-date { width: 64px; font-size: 10px; padding-right: 12px; } .entry-info strong { font-size: 12px; } .entry-row .badge { margin-left: 0; display: flex; width: fit-content; font-size: 8px; margin-top: 5px; } .entry-actions .icon-button { width: 28px; height: 36px; } .submit-bar { padding: 15px 17px; gap: 10px; } .submit-bar p { font-size: 10px; } .submit-bar .button { font-size: 10px; padding: 8px 11px; } .member-card, .settings-card { padding: 21px 17px; } .member-card .card-heading h2 { font-size: 15px; } .member-card .card-heading p { font-size: 10px; } .member-table th, .member-table td { padding-left: 6px; padding-right: 6px; } .member-table .person { gap: 8px; } .member-table .badge { font-size: 8px; } .list-content { padding: 0 17px; } .list-entries { margin-left: 0; } .list-entry { padding: 9px 12px; } .list-entry small { font-size: 9px; } .dialog-body { padding: 0 20px 22px; } .dialog-header { padding-left: 20px; padding-right: 20px; } }
  @media (max-width: 400px) { .page-heading p { max-width: 210px; } .page-heading .button { font-size: 9px; padding: 8px 9px; } .stat { padding-left: 15px; } .stats-grid { gap: 0; } .stat-name { font-size: 9px; } .stat-name .icon { width: 12px; } .schedule-toolbar { align-items: flex-start; } .toolbar-actions { width: 100%; justify-content: space-between; margin-top: 3px; } .toolbar-actions .search-box { flex: 1; margin-right: 10px; } .week-controls { flex-wrap: wrap; margin-left: 0; width: 100%; } .week-range { flex: 1; } .week-pill { gap: 5px; font-size: 8px; } .type-option span { font-size: 9px; gap: 3px; } .type-option .icon { width: 11px; } .preview-badge { font-size: 8px; gap: 4px; } }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
}
