@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: #172b43;
  background: #f4f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --blue: #075cab;
  --blue-dark: #064b8d;
  --blue-soft: #eaf3fc;
  --navy: #142940;
  --muted: #718196;
  --line: #e5ebf2;
  --surface: #ffffff;
  --green: #18865a;
  --red: #c54646;
  --shadow: 0 12px 36px rgba(24, 51, 83, .06);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f4f7fb; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f4f7fb; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(7, 92, 171, .2); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 78px; padding: 10px max(24px, calc((100vw - 1320px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff; border-bottom: 1px solid #edf1f5; }
.topbar-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.topbar-brand img { width: 55px; height: 55px; object-fit: contain; border-radius: 10px; background: white; }
.topbar-brand div, .user-mini div { display: flex; flex-direction: column; gap: 2px; }
.topbar-brand strong { color: var(--blue-dark); letter-spacing: .08em; font-size: 15px; font-weight: 800; }
.topbar-brand small { color: #8694a5; font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.user-mini { display: flex; align-items: center; gap: 9px; }
.user-mini strong { font-size: 12px; color: var(--navy); font-weight: 700; }
.user-mini small { color: #8492a3; font-size: 10px; text-transform: capitalize; }
.avatar { width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #075cab; background: #eaf3fc; font-size: 11px; font-weight: 800; }
.avatar-small { width: 31px; height: 31px; flex-basis: 31px; font-size: 10px; }
.logout-button { background: transparent; color: #65778a; border: 0; border-left: 1px solid var(--line); padding: 8px 0 8px 17px; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.logout-button:hover { color: var(--blue); }
.install-button { border: 1px solid #cfe1f4; border-radius: 9px; background: #f4f9ff; color: var(--blue); font-size: 12px; font-weight: 700; padding: 9px 12px; }
.main-nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1320px; padding: 0 24px; margin: 0 auto; display: flex; align-items: center; gap: 8px; min-height: 52px; }
.nav-tab { height: 52px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; color: #7c8b9b; background: transparent; font-size: 12px; font-weight: 700; display: inline-flex; gap: 9px; align-items: center; }
.nav-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-icon { font-size: 17px; font-weight: 400; }
.main-content { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 44px; flex: 1; }
.app-footer { max-width: 1320px; width: calc(100% - 48px); margin: 0 auto; padding: 18px 0 24px; display: flex; justify-content: space-between; gap: 12px; color: #9aa6b4; font-size: 10px; border-top: 1px solid #e9eef4; }
.date-filter-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: -6px 0 22px; }
.date-filter-bar > span { color: #8a98a9; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.date-filter-bar input { border: 1px solid #dce5ee; border-radius: 8px; color: #41556b; background: #fff; padding: 8px 10px; font-size: 11px; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin: 8px 0 23px; }
.page-heading h1 { font-family: Manrope, 'DM Sans', sans-serif; margin: 3px 0 7px; color: #132a44; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.045em; font-weight: 800; }
.page-heading p { margin: 0; }
.eyebrow { color: #0c65b3; font-size: 9px; font-weight: 800; line-height: 1.4; letter-spacing: .14em; margin: 0 0 6px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.65; }
.date-chip { white-space: nowrap; background: #fff; border: 1px solid #e4ebf2; padding: 9px 12px; border-radius: 9px; color: #65788c; font-size: 11px; box-shadow: 0 2px 6px rgba(20, 41, 64, .02); }
.date-chip-dot { width: 7px; height: 7px; display: inline-block; background: #29a36c; border-radius: 50%; margin: 0 8px 1px 0; }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.employee-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.owner-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 17px 18px 15px; min-height: 112px; box-shadow: 0 3px 12px rgba(20, 41, 64, .02); }
.stat-blue { background: linear-gradient(135deg, #075cab, #0b73bd); color: #fff; border-color: #0b66b0; }
.stat-label { display: block; color: #8291a2; font-size: 10px; font-weight: 700; margin-bottom: 9px; }
.stat-blue .stat-label, .stat-blue .stat-foot { color: rgba(255,255,255,.73); }
.stat-card > strong { display: block; color: #1a3048; font-size: 25px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; margin-bottom: 8px; }
.stat-card > strong small { font-size: 13px; color: #8b98a7; font-weight: 600; letter-spacing: 0; }
.stat-blue > strong { color: #fff; }
.stat-blue > strong small { color: rgba(255,255,255,.75); }
.stat-foot { color: #9aa6b4; font-size: 9px; display: block; margin-top: 8px; }
.progress-track { height: 5px; background: #edf1f5; border-radius: 9px; overflow: hidden; width: 100%; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: #2f9c71; min-width: 0; }
.stat-blue .progress-track { background: rgba(255,255,255,.22); }
.stat-blue .progress-track span { background: #fff; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-heading h2 { font-family: Manrope, sans-serif; font-size: 18px; line-height: 1.25; letter-spacing: -.035em; color: #1b3047; margin: 1px 0 4px; }
.panel-heading .muted { margin: 0; font-size: 11px; }
.compact-heading { align-items: center; margin-bottom: 15px; }
.compact-heading h2 { font-size: 16px; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 9px; white-space: nowrap; border-radius: 30px; font-size: 9px; font-weight: 800; }
.status-saved { background: #e9f7f0; color: #168459; }
.status-draft { background: #f2f5f8; color: #7e8d9c; }

.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }
.form-grid-single { grid-template-columns: minmax(0, 1fr); gap: 13px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field-label { color: #43566b; font-size: 10px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dfe7ef; border-radius: 8px; background: #fbfcfe; color: #20364d; padding: 11px 12px; min-height: 41px; font-size: 12px; outline: none; transition: border .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #80b2df; box-shadow: 0 0 0 3px rgba(7, 92, 171, .08); background: #fff; }
.field input:disabled { background: #f3f6f9; color: #718196; }
.field input[readonly] { background: #f0f6fc; color: var(--blue-dark); border-color: #d7e8f7; font-weight: 800; }
.field textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
.field-hint { color: #99a5b2; font-size: 9px; line-height: 1.4; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 4px; }
.form-note { color: #8694a3; font-size: 10px; line-height: 1.5; margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 8px; min-height: 37px; padding: 9px 13px; font-size: 11px; font-weight: 800; transition: transform .15s, background .15s, border .15s; text-decoration: none; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 5px 13px rgba(7, 92, 171, .16); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--blue); border-color: #cfe0f1; background: #f5f9fd; }
.button-secondary:hover { background: #eaf3fc; }
.button-quiet { color: #657b90; border-color: #e5ebf1; background: #fff; }
.button-quiet:hover { color: var(--blue); border-color: #bfd7ec; }
.button-danger { color: #fff; background: #c54646; border-color: #c54646; }
.button-large { min-height: 45px; padding: 12px 18px; font-size: 12px; }
.button-block { width: 100%; }

.week-glance { padding-bottom: 18px; }
.week-day-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.week-day { position: relative; text-align: center; padding: 12px 8px 13px; border: 1px solid #edf1f5; border-radius: 9px; background: #fbfcfd; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.week-day-current { border-color: #9cc6e8; background: #f4f9fe; }
.week-day span { color: #8593a2; font-size: 9px; font-weight: 700; }
.week-day strong { color: #20364d; font-size: 16px; }
.week-day small { color: #a0aab6; font-size: 9px; }
.week-day i { width: 5px; height: 5px; border-radius: 50%; display: block; background: #d1dbe4; }
.week-day i.day-dot-complete { background: #2c9a70; }

.week-summary-panel { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 30px; padding: 22px 26px; }
.week-summary-copy > strong { color: #1b3047; display: block; font-size: 34px; font-weight: 800; letter-spacing: -.05em; }
.week-summary-copy > strong small { font-size: 15px; font-weight: 600; color: #93a0ad; letter-spacing: 0; }
.week-summary-copy p { margin: 8px 0 0; }
.progress-large { height: 10px; }
.progress-meta { display: flex; justify-content: space-between; margin-top: 8px; color: #8b9aaa; font-size: 10px; }
.week-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.day-detail-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 17px; }
.day-detail-current { border-color: #a6cbe9; box-shadow: 0 0 0 2px rgba(7,92,171,.05); }
.day-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.day-detail-head > div { display: flex; flex-direction: column; gap: 3px; }
.day-name { font-size: 12px; font-weight: 800; color: #253a51; }
.day-detail-head small { color: #93a0ad; font-size: 9px; }
.day-detail-numbers { display: flex; justify-content: space-between; margin-bottom: 10px; }
.day-detail-numbers > div { display: flex; flex-direction: column; gap: 4px; }
.day-detail-numbers small { color: #8a98a7; font-size: 9px; }
.day-detail-numbers strong { color: #1c334b; font-size: 17px; }
.day-detail-card .button { margin-top: 15px; }
.inline-note { display: flex; align-items: flex-start; gap: 10px; color: #8393a3; font-size: 10px; line-height: 1.55; padding: 8px 2px; }
.inline-note p { margin: 0; }
.inline-note-icon { width: 17px; height: 17px; border-radius: 50%; background: #eaf3fc; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 17px; font-size: 10px; font-weight: 800; }

.team-heading { align-items: center; }
.team-tools { display: flex; align-items: center; gap: 9px; }
.search-field { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; border: 1px solid #e2e9f0; border-radius: 8px; background: #fbfcfd; color: #93a2b0; }
.search-field span { font-size: 17px; }
.search-field input { border: 0; outline: 0; background: transparent; width: 140px; color: #40546a; font-size: 10px; }
.team-table-wrap { overflow-x: auto; width: 100%; }
.data-table { width: 100%; border-collapse: collapse; min-width: 870px; }
.data-table th { text-align: center; color: #7b8b9b; background: #f8fafc; padding: 10px 8px; border-bottom: 1px solid #e9eef4; font-size: 9px; font-weight: 800; }
.data-table th:first-child { text-align: left; min-width: 190px; }
.data-table th span, .data-table th small { display: block; }
.data-table th small { margin-top: 3px; color: #a2adba; font-size: 8px; font-weight: 500; }
.data-table td { border-bottom: 1px solid #eff2f5; text-align: center; padding: 10px 8px; color: #344b62; font-size: 10px; }
.data-table td:first-child { text-align: left; }
.table-person { display: flex; align-items: center; gap: 8px; }
.table-person > div { display: flex; flex-direction: column; gap: 3px; }
.table-person strong { font-size: 10px; color: #2d4359; }
.table-person small { color: #a0acb8; font-size: 8px; }
.cell-achieved { font-weight: 800; color: #53677c; }
.cell-good { color: #168459 !important; }
.cell-target { display: block; margin-top: 3px; color: #a2adba; font-size: 8px; white-space: nowrap; }
.empty-table { text-align: center !important; color: #94a2b0 !important; padding: 25px !important; }
.table-footnote { color: #9aa6b4; font-size: 9px; margin: 12px 0 0; }
.team-mobile-list { display: none; }

.hierarchy-panel { padding: 22px; }
.hierarchy-list { display: flex; flex-direction: column; gap: 9px; }
.supervisor-group { border: 1px solid #e8edf3; border-radius: 11px; overflow: hidden; }
.supervisor-group summary { list-style: none; cursor: pointer; padding: 12px 14px; min-height: 62px; display: flex; align-items: center; gap: 18px; background: #fcfdfe; }
.supervisor-group summary::-webkit-details-marker { display: none; }
.supervisor-summary-main { flex: 1; min-width: 170px; display: flex; align-items: center; gap: 11px; }
.supervisor-number { width: 29px; height: 29px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #eaf3fc; color: var(--blue); font-size: 10px; font-weight: 800; }
.supervisor-summary-main div { display: flex; flex-direction: column; gap: 4px; }
.supervisor-summary-main strong { color: #294058; font-size: 11px; }
.supervisor-summary-main small { color: #94a1af; font-size: 9px; }
.supervisor-summary-progress { width: 150px; display: flex; align-items: center; gap: 10px; }
.supervisor-summary-progress > span { color: #6d8093; font-size: 9px; font-weight: 800; width: 25px; }
.supervisor-summary-progress .progress-track { flex: 1; }
.chevron { color: #8798a8; font-size: 18px; transition: transform .2s; }
.supervisor-group[open] .chevron { transform: rotate(180deg); }
.supervisor-members { padding: 0 14px 9px; background: #fff; }
.owner-employee-row { min-height: 57px; display: grid; grid-template-columns: minmax(185px, 1.1fr) minmax(270px, 1.5fr) 90px 30px; align-items: center; gap: 16px; border-top: 1px solid #f0f3f6; }
.owner-employee-identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
.owner-employee-identity > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.owner-employee-identity strong { color: #344a60; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-employee-identity small { color: #9ca8b5; font-size: 8px; }
.owner-employee-days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.owner-employee-days div { display: flex; flex-direction: column; gap: 3px; text-align: center; }
.owner-employee-days span { color: #a2adba; font-size: 8px; }
.owner-employee-days b { color: #52677c; font-size: 9px; }
.owner-employee-total { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.owner-employee-total strong { color: #263e56; font-size: 11px; }
.owner-employee-total small { color: #a0acb8; font-size: 8px; }
.icon-button { width: 27px; height: 27px; border-radius: 7px; border: 1px solid #e4ebf1; color: #66809a; background: #fff; font-size: 14px; }
.icon-button:hover { color: var(--blue); border-color: #bfd6eb; }
.legend-row { display: flex; align-items: center; gap: 18px; margin-top: 16px; color: #99a6b3; font-size: 9px; }
.legend-row span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }
.legend-green { background: #2d9b70; }
.legend-grey { background: #cbd4dd; }

.owner-people-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.people-editor-panel, .target-editor-panel { margin-bottom: 0; }
.people-side-column { display: flex; flex-direction: column; gap: 16px; }
.people-side-column .panel { margin-bottom: 0; }
.form-grid-single .field input, .form-grid-single .field select { min-height: 39px; }
.directory-panel { margin-top: 17px; }
.directory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.directory-row { min-width: 0; display: flex; align-items: center; gap: 9px; background: #fff; border: 0; border-bottom: 1px solid #f0f3f6; padding: 9px 7px; text-align: left; border-radius: 6px; }
.directory-row:hover, .directory-row-selected { background: #f4f9fe; }
.directory-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.directory-name strong { font-size: 9px; color: #344b62; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.directory-name small { font-size: 8px; color: #9ba8b4; }
.directory-salary { font-size: 9px; color: #64788d; white-space: nowrap; }
.directory-arrow { color: #9aabb9; font-size: 14px; }
.target-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.target-equation { display: flex; justify-content: space-between; gap: 8px; margin-top: 20px; padding: 12px; border-radius: 8px; background: #f4f8fc; color: #8494a4; font-size: 10px; }
.target-equation strong { color: #1a5d98; font-size: 11px; }
.target-list-panel { margin-top: 16px; }
.target-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.target-list-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid #f0f3f6; padding: 10px 3px; }
.target-list-row span { display: flex; flex-direction: column; gap: 3px; }
.target-list-row strong { font-size: 10px; color: #344a60; }
.target-list-row small { color: #9ba8b5; font-size: 9px; }
.target-list-row b { color: #1d5f9d; font-size: 10px; }
.empty-state { color: #91a0ae; font-size: 10px; padding: 17px 2px; }
.backup-panel { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.backup-panel h2 { margin: 0 0 5px; font: 800 15px Manrope, sans-serif; color: #253b52; }
.backup-panel .muted { margin: 0; max-width: 570px; font-size: 10px; }
.backup-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.upload-button { position: relative; overflow: hidden; }
.upload-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.flash-message { display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: #edf8f2; border: 1px solid #ccebd9; color: #187e54; border-radius: 8px; font-size: 10px; margin-bottom: 15px; }
.flash-message > span { font-weight: 900; }
.flash-message button { border: 0; margin-left: auto; background: transparent; color: inherit; font-size: 16px; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; padding: 20px; background: rgba(16, 34, 54, .43); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; }
.feedback-modal { width: min(440px, 100%); background: #fff; border-radius: 17px; padding: 27px; box-shadow: 0 25px 70px rgba(15, 35, 59, .2); text-align: center; }
.feedback-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 13px; font-size: 21px; font-weight: 900; }
.feedback-success .feedback-icon { color: #168459; background: #e8f7ef; }
.feedback-warning .feedback-icon { color: #c54646; background: #fff0ef; }
.feedback-neutral .feedback-icon { color: var(--blue); background: #eaf3fc; }
.feedback-modal h2 { font: 800 21px/1.25 Manrope, sans-serif; letter-spacing: -.04em; color: #20354b; margin: 4px 0 8px; }
.feedback-warning h2 { color: #af3939; }
.feedback-message { color: #77899a; font-size: 11px; line-height: 1.6; margin: 0 auto 18px; max-width: 340px; }
.feedback-details { border: 1px solid #edf1f5; border-radius: 10px; overflow: hidden; margin: 0 0 17px; text-align: left; }
.feedback-details > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #edf1f5; font-size: 10px; }
.feedback-details > div:last-child { border-bottom: 0; }
.feedback-details span { color: #8998a7; }
.feedback-details strong { color: #344b62; }
.feedback-warning .feedback-details strong { color: #bd4545; }
.management-message { text-align: left; border-radius: 9px; padding: 12px; background: #f2f7fc; border: 1px solid #dceaf7; margin-bottom: 17px; }
.management-message span { color: #0b65af; font-size: 8px; font-weight: 900; letter-spacing: .11em; }
.management-message p { color: #344c64; font-size: 11px; line-height: 1.5; margin: 5px 0 0; }

.login-page { position: relative; min-height: 100vh; overflow: hidden; padding: 30px 18px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 15% 15%, #e5f1fd 0, transparent 34%), radial-gradient(circle at 88% 76%, #e6f1fa 0, transparent 32%), #f5f8fc; }
.login-background-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(7,92,171,.09); pointer-events: none; }
.orb-one { width: 440px; height: 440px; top: -240px; right: -140px; }
.orb-two { width: 580px; height: 580px; left: -390px; bottom: -380px; }
.login-card { width: min(440px, 100%); position: relative; z-index: 1; padding: 26px 30px 20px; border: 1px solid #e4ebf2; border-radius: 18px; background: rgba(255,255,255,.95); box-shadow: 0 22px 70px rgba(26,58,91,.1); }
.login-brand { display: flex; gap: 11px; align-items: center; margin-bottom: 22px; }
.login-brand img { width: 68px; height: 64px; object-fit: contain; }
.login-brand div { display: flex; flex-direction: column; gap: 1px; }
.login-brand div span { color: #0b62ad; font: 800 21px Manrope, sans-serif; letter-spacing: .06em; }
.login-brand div strong { color: #1d3550; font-size: 15px; letter-spacing: .16em; }
.login-brand small { color: #96a3b1; font-size: 9px; margin-top: 4px; }
.login-intro { margin-bottom: 17px; }
.login-intro h1 { font: 800 25px Manrope, sans-serif; color: #172f49; letter-spacing: -.04em; margin: 0 0 7px; }
.login-intro p:not(.eyebrow) { color: #8190a0; font-size: 11px; line-height: 1.55; margin: 0; }
.role-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 4px; border-radius: 9px; background: #f1f5f9; margin: 20px 0 17px; }
.role-tab { border: 0; border-radius: 7px; padding: 9px 4px; color: #8090a0; background: transparent; font-size: 10px; font-weight: 800; }
.role-tab.active { background: #fff; color: var(--blue); box-shadow: 0 2px 7px rgba(20,41,64,.08); }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form .field input, .login-form .field select { background: #fbfcfe; }
.form-error { min-height: 0; color: #b83e3e; font-size: 10px; margin-top: -7px; }
.login-footer { display: flex; align-items: center; justify-content: center; gap: 7px; color: #9ba7b3; font-size: 9px; border-top: 1px solid #f0f3f6; margin-top: 20px; padding-top: 15px; }
.lock-mark { color: #7c9ab6; font-size: 12px; }
.demo-hint { color: #a1acb8; text-align: center; font-size: 9px; margin: 13px 0 0; }
.demo-hint strong { color: #70849a; }
.install-tip { position: relative; z-index: 1; max-width: 440px; margin-top: 17px; color: #8796a6; font-size: 10px; text-align: center; line-height: 1.5; }
.install-tip span { color: #0b65b2; font-size: 8px; font-weight: 900; letter-spacing: .12em; margin-right: 7px; }
.install-tip strong { color: #617990; }
.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; }

@media (max-width: 980px) {
  .owner-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-people-grid { grid-template-columns: 1fr; }
  .people-side-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-employee-row { grid-template-columns: minmax(150px, 1fr) minmax(230px, 1.3fr) 70px 28px; gap: 10px; }
  .directory-list { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  html, body { background: #f4f7fb; }
  .topbar { min-height: 64px; padding: 8px 14px; gap: 10px; }
  .topbar-brand { gap: 7px; }
  .topbar-brand img { width: 43px; height: 43px; }
  .topbar-brand strong { font-size: 12px; }
  .topbar-brand small { font-size: 9px; }
  .topbar-actions { gap: 9px; }
  .user-mini { gap: 6px; }
  .user-mini .avatar { width: 30px; height: 30px; flex-basis: 30px; }
  .user-mini strong { max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
  .user-mini small { font-size: 9px; }
  .logout-button { border-left: 0; padding: 6px 0 6px 5px; font-size: 15px; }
  .logout-button span { display: none; }
  .install-button { padding: 7px 8px; font-size: 9px; }
  .nav-inner { padding: 0 10px; min-height: 47px; gap: 4px; }
  .nav-tab { height: 47px; padding: 0 11px; font-size: 10px; gap: 6px; }
  .nav-icon { font-size: 14px; }
  .main-content { width: calc(100% - 26px); padding: 20px 0 28px; }
  .app-footer { width: calc(100% - 26px); padding: 15px 0 18px; font-size: 9px; }
  .page-heading { display: block; margin: 3px 0 17px; }
  .page-heading h1 { font-size: 24px; max-width: 540px; }
  .page-heading .muted { font-size: 11px; }
  .date-chip { display: inline-block; margin-top: 12px; font-size: 10px; }
  .date-filter-bar { margin: -5px 0 15px; justify-content: space-between; }
  .date-filter-bar input { font-size: 10px; }
  .stats-grid, .employee-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 13px; }
  .stats-grid .stat-card:last-child { grid-column: 1 / -1; }
  .owner-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-stats .stat-card:last-child { grid-column: auto; }
  .stat-card { min-height: 97px; padding: 13px 13px 12px; border-radius: 11px; }
  .stat-label { font-size: 9px; margin-bottom: 7px; }
  .stat-card > strong { font-size: 21px; margin-bottom: 6px; }
  .stat-card > strong small { font-size: 11px; }
  .stat-foot { font-size: 8px; }
  .panel { padding: 16px 14px; border-radius: 12px; margin-bottom: 13px; }
  .panel-heading { margin-bottom: 15px; gap: 10px; }
  .panel-heading h2 { font-size: 16px; }
  .panel-heading .muted { font-size: 10px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
  .report-panel .form-grid { grid-template-columns: 1fr; }
  .form-grid-single { grid-template-columns: 1fr; gap: 12px; }
  .field-label { font-size: 9px; }
  .field input, .field select, .field textarea { min-height: 43px; padding: 11px 10px; font-size: 12px; border-radius: 8px; }
  .field textarea { min-height: 78px; }
  .field-hint { font-size: 8px; }
  .form-footer { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 2px; }
  .form-note { font-size: 9px; }
  .button-large { width: 100%; min-height: 46px; }
  .week-day-strip { gap: 5px; }
  .week-day { padding: 10px 3px; gap: 5px; }
  .week-day span { font-size: 8px; }
  .week-day strong { font-size: 14px; }
  .week-day small { font-size: 8px; }
  .compact-heading { align-items: flex-start; }
  .compact-heading .button { min-height: 30px; padding: 6px 8px; font-size: 9px; }
  .week-summary-panel { display: block; padding: 17px; }
  .week-summary-copy > strong { font-size: 29px; }
  .week-summary-progress { margin-top: 18px; }
  .week-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .day-detail-card { padding: 12px; }
  .day-detail-head { flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .day-detail-numbers strong { font-size: 15px; }
  .day-detail-card .button { font-size: 9px; padding: 7px 6px; }
  .inline-note { font-size: 9px; }
  .team-heading { display: block; }
  .team-tools { margin-top: 12px; justify-content: space-between; }
  .search-field { flex: 1; }
  .search-field input { width: 100%; }
  .team-table-wrap { display: none; }
  .table-footnote { display: none; }
  .team-mobile-list { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .employee-week-card { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 12px; }
  .employee-week-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .employee-week-head > div { display: flex; flex-direction: column; gap: 3px; }
  .employee-week-head strong { font-size: 10px; color: #32485e; }
  .employee-week-head small { font-size: 8px; color: #a0acb8; }
  .employee-week-head > b { color: #1b5e9a; font-size: 13px; white-space: nowrap; }
  .employee-week-head > b small { font-size: 8px; color: #8d9bab; }
  .employee-week-days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f3f6; }
  .employee-week-days div { display: flex; flex-direction: column; gap: 3px; align-items: center; }
  .employee-week-days span { color: #a3afba; font-size: 8px; }
  .employee-week-days strong { color: #3c5268; font-size: 10px; }
  .employee-week-days small { color: #a1adba; font-size: 7px; }
  .team-panel { padding-bottom: 13px; }
  .hierarchy-panel { padding: 15px 12px; }
  .hierarchy-panel > .panel-heading { display: block; }
  .hierarchy-panel > .panel-heading .button { margin-top: 10px; }
  .supervisor-group summary { padding: 10px; gap: 7px; min-height: 60px; }
  .supervisor-summary-main { min-width: 0; gap: 7px; }
  .supervisor-number { width: 25px; height: 25px; flex-basis: 25px; font-size: 8px; }
  .supervisor-summary-main strong { font-size: 9px; }
  .supervisor-summary-main small { font-size: 8px; }
  .supervisor-summary-progress { width: 67px; gap: 4px; }
  .supervisor-summary-progress > span { font-size: 8px; width: 20px; }
  .chevron { font-size: 15px; }
  .supervisor-members { padding: 0 9px 7px; }
  .owner-employee-row { grid-template-columns: minmax(0, 1fr) 55px 25px; gap: 7px; padding: 8px 0; min-height: 53px; }
  .owner-employee-identity { gap: 6px; }
  .owner-employee-identity strong { font-size: 8px; max-width: 120px; }
  .owner-employee-identity small { font-size: 7px; }
  .owner-employee-days { display: none; }
  .owner-employee-total strong { font-size: 9px; }
  .owner-employee-total small { font-size: 7px; }
  .icon-button { width: 24px; height: 24px; }
  .legend-row { flex-wrap: wrap; gap: 9px; font-size: 8px; }
  .people-side-column { grid-template-columns: 1fr; gap: 13px; }
  .directory-panel > .panel-heading { display: block; }
  .directory-panel .search-field { margin-top: 10px; }
  .directory-list { grid-template-columns: 1fr; }
  .directory-row { gap: 8px; padding: 9px 4px; }
  .directory-name strong { font-size: 9px; }
  .directory-salary { font-size: 8px; }
  .backup-panel { display: block; }
  .backup-actions { margin-top: 13px; }
  .backup-actions .button { flex: 1; }
  .target-grid { grid-template-columns: 1fr; }
  .target-list { grid-template-columns: 1fr; }
  .target-equation { flex-direction: column; gap: 5px; }
  .feedback-modal { padding: 23px 18px 18px; }
  .feedback-modal h2 { font-size: 19px; }
  .modal-backdrop { padding: 14px; }
  .app-footer span:last-child { display: none; }
}

@media (max-width: 390px) {
  .topbar-brand img { width: 37px; height: 37px; }
  .topbar-brand strong { font-size: 11px; }
  .user-mini strong { max-width: 75px; }
  .install-button { font-size: 8px; padding: 6px; }
  .main-content { width: calc(100% - 20px); }
  .app-footer { width: calc(100% - 20px); }
  .form-grid { gap: 11px 8px; }
  .field input, .field select, .field textarea { font-size: 11px; padding-left: 8px; padding-right: 8px; }
  .week-day-strip { gap: 3px; }
  .week-day small { font-size: 7px; }
}
