:root {
  --forest-950: #10271c;
  --forest-900: #173725;
  --forest-800: #245336;
  --forest-700: #39734b;
  --forest-600: #4f8b5d;
  --forest-100: #e9f1e9;
  --forest-50: #f4f7f3;
  --orange: #cf7427;
  --orange-soft: #fbede0;
  --ink: #152019;
  --muted: #667269;
  --line: #d9ded9;
  --paper: #f4f5f2;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 39, 28, 0.08);
  --radius-lg: 26px;
  --radius-md: 18px;
  --shell: min(1320px, calc(100% - 64px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: white;
  background: var(--forest-950);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.preview-band {
  min-height: 30px;
  padding: 6px max(32px, calc((100% - 1320px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #dbe7dd;
  background: var(--forest-950);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.site-header {
  min-height: 116px;
  padding: 14px max(32px, calc((100% - 1320px) / 2));
  display: grid;
  grid-template-columns: minmax(310px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 28px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  text-decoration: none;
}

.brand-logo-wrap {
  width: 140px;
  height: 78px;
  display: flex;
  align-items: center;
}

.brand-logo { width: 100%; max-height: 78px; object-fit: contain; display: block; }
.brand-divider { width: 1px; height: 72px; margin: 0 24px; background: var(--line); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 1.23rem; }
.brand-copy small { color: var(--muted); font-size: 0.9rem; }

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.is-active {
  color: var(--forest-800);
  background: var(--forest-50);
}

.account-menu { justify-self: end; position: relative; }
.account-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--forest-800);
  font-weight: 800;
}
.account-copy { display: grid; max-width: 190px; }
.account-copy strong { font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-copy small { color: var(--muted); font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.account-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 280px;
  padding: 22px;
  display: grid;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.account-panel p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.account-panel a, .account-panel button {
  margin-top: 7px;
  padding: 10px 0;
  color: var(--forest-800);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.shell { width: var(--shell); margin-inline: auto; }

.hero {
  padding: 84px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--forest-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1, .simple-hero h1, .module-hero h1, .login-copy h1, .error-page h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}
.hero-copy > p:last-child { max-width: 640px; margin: 25px 0 0; color: var(--muted); font-size: 1.12rem; }

.hero-facts { display: flex; align-items: stretch; gap: 6px; }
.hero-facts > div {
  width: 145px;
  min-height: 82px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 9px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.hero-facts .dot { grid-row: 1 / 3; align-self: center; }
.hero-facts strong { line-height: 1; font-size: 1.1rem; }
.hero-facts small { color: var(--muted); font-size: 0.72rem; }
.dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; }
.dot-green { background: var(--forest-600); }
.dot-orange { background: var(--orange); }
.dot-gray { background: #a7b0a9; }

.dashboard-grid { padding-bottom: 64px; }

.feature-module {
  min-height: 350px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #285a3c 0%, #4d8558 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.feature-content { padding: clamp(34px, 5vw, 68px); display: flex; flex-direction: column; align-items: flex-start; }
.feature-content .eyebrow { margin-top: 32px; color: #cfe2d2; }
.feature-content h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -0.05em; }
.feature-content > p:not(.eyebrow) { max-width: 600px; margin: 18px 0 30px; color: #e3eee5; font-size: 1.08rem; }
.feature-content .text-link { margin-top: auto; }
.feature-visual { position: relative; display: grid; place-items: center; min-height: 310px; overflow: hidden; }
.big-icon { z-index: 2; width: 126px; height: 126px; display: grid; place-items: center; border-radius: 50%; color: var(--forest-800); background: white; box-shadow: 0 24px 60px rgba(0,0,0,.16); }
.big-icon svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.visual-ring { position: absolute; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.ring-one { width: 290px; height: 290px; }
.ring-two { width: 430px; height: 430px; }

.module-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.module-card {
  min-height: 280px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.module-card:hover, .module-card:focus-visible { transform: translateY(-4px); border-color: #b8c7ba; box-shadow: var(--shadow); }
.module-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 34px; }
.module-icon { width: 56px; height: 56px; flex: 0 0 auto; display: grid; place-items: center; color: var(--forest-700); background: var(--forest-100); border-radius: 50%; }
.module-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.module-card h2 { margin: 0; font-size: 1.4rem; letter-spacing: -0.025em; }
.module-card > p:not(.eyebrow) { margin: 12px 0 24px; color: var(--muted); }
.text-link { color: inherit; font-weight: 750; text-decoration: none; }
.module-card .text-link { margin-top: auto; color: var(--forest-700); }

.status-pill { padding: 6px 10px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.status-ready { color: #245b36; background: #dff0e3; }
.status-prepared { color: #435049; background: #edf0ed; }
.status-clarify { color: #94511b; background: var(--orange-soft); }
.status-deferred { color: #655b6a; background: #eee9f0; }

.info-strip {
  margin-bottom: 70px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  align-items: center;
  gap: 35px;
  background: #e7ece7;
  border-radius: var(--radius-md);
}
.info-strip h2 { margin: 0; font-size: 1.5rem; }
.info-strip > p { margin: 0; color: var(--muted); }

.button {
  min-height: 46px;
  padding: 12px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { color: white; background: var(--forest-800); }
.button-primary:hover, .button-primary:focus-visible { background: var(--forest-950); }
.button-secondary { color: var(--forest-800); background: white; border: 1px solid #cbd4cc; white-space: nowrap; }

.module-hero { padding: 55px 0 36px; }
.back-link { display: inline-flex; margin-bottom: 40px; color: var(--forest-700); font-weight: 750; text-decoration: none; }
.module-title-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.module-title-row h1 { font-size: clamp(2.8rem, 5vw, 5.2rem); }
.module-title-row > div > p:last-child { max-width: 780px; margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; }
.module-icon-large { width: 82px; height: 82px; }
.module-icon-large svg { width: 40px; height: 40px; }

.detail-layout { padding: 20px 0 72px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.detail-main, .detail-aside { display: grid; gap: 20px; }
.notice { padding: 17px 20px; display: flex; align-items: center; gap: 16px; border-radius: 12px; }
.notice strong { white-space: nowrap; }
.notice-demo { color: #7e471c; background: var(--orange-soft); border: 1px solid #f0cfb3; }
.panel { padding: 30px; background: white; border: 1px solid var(--line); border-radius: var(--radius-md); }
.panel h2 { margin: 0; font-size: 1.55rem; letter-spacing: -0.025em; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.data-stamp { color: var(--muted); font-size: .78rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.check-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border: 2px solid var(--forest-600); border-radius: 50%; }
.compact-panel p:not(.eyebrow) { color: var(--muted); }
.placeholder-panel { min-height: 330px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.placeholder-panel .eyebrow { margin-top: 25px; }
.placeholder-panel > p:last-child { max-width: 700px; color: var(--muted); }

.holiday-workspace { padding: 20px 0 78px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.holiday-workspace > *, .holiday-main-column, .holiday-sidebar { min-width: 0; }
.holiday-workspace .notice { margin-bottom: 2px; }
.source-bar {
  min-height: 86px;
  padding: 17px 20px;
  display: grid;
  grid-template-columns: 1.15fr .9fr .65fr auto;
  align-items: center;
  gap: 24px;
  color: #dce8de;
  background: var(--forest-950);
  border-radius: 14px;
}
.source-bar > div { display: grid; gap: 2px; }
.source-bar small { color: #9fb2a3; font-size: .69rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.source-bar strong { color: white; font-size: .9rem; }
.source-status { grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.source-status > div { min-width: 0; display: grid; gap: 2px; }
.source-mark { width: 12px; height: 12px; grid-row: 1 / 3; border: 3px solid #d2935e; border-radius: 50%; box-shadow: 0 0 0 5px rgba(210,147,94,.12); }
.connection-state { max-width: 100%; padding: 8px 12px; color: #f5d8bf; background: rgba(207,116,39,.15); border: 1px solid rgba(240,177,122,.28); border-radius: 999px; font-size: .72rem; font-weight: 760; overflow-wrap: anywhere; }

.galawork-refresh-panel {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #f4f7f3;
  border: 1px solid #d5e0d3;
  border-radius: 14px;
}
.galawork-refresh-panel h2 { margin: 4px 0 7px; font-size: 1.25rem; }
.galawork-refresh-panel p:last-child { margin: 0; color: var(--muted); font-size: .88rem; }
.galawork-refresh-panel form { display: grid; gap: 8px; justify-items: end; }
.galawork-refresh-panel .button { white-space: nowrap; }
.galawork-refresh-panel .button:disabled { cursor: wait; opacity: .75; }
.galawork-refresh-progress { color: var(--forest-700); font-size: .78rem; font-weight: 740; }
.galawork-refresh-locked { flex: 0 0 auto; padding: 9px 13px; border-radius: 999px; color: #6b746d; background: #e5eae4; font-size: .76rem; font-weight: 750; }
.galawork-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.galawork-reconnect-panel:empty { display: none; }
.galawork-reconnect-panel { margin: -4px 0 22px; padding: 20px 24px; border: 1px solid #d5dfd3; border-radius: 14px; background: #f4f7f1; }
.galawork-reconnect-panel p { max-width: 75ch; margin: 8px 0 14px; color: var(--muted); line-height: 1.55; }
.galawork-reconnect-panel .button { white-space: normal; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { min-height: 142px; padding: 24px; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 15px; }
.metric-card p { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 720; }
.metric-card strong { margin: 6px 0 2px; font-size: 2.65rem; line-height: 1; letter-spacing: -.05em; }
.metric-card span { margin-top: auto; color: var(--muted); font-size: .73rem; }
.metric-primary { color: white; background: linear-gradient(140deg, var(--forest-800), #4d8558); border-color: transparent; }
.metric-primary p, .metric-primary span { color: #dce9de; }
.metric-attention { border-color: #ebc7a8; background: #fffaf5; }
.metric-attention strong { color: #9a541b; }

.holiday-content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .65fr); align-items: start; gap: 20px; }
.holiday-main-column, .holiday-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.holiday-main-column > *, .holiday-sidebar > * { min-width: 0; }
.planning-panel { overflow: hidden; }
.absence-scale { margin: 0 174px 7px 198px; display: grid; grid-template-columns: repeat(5, 1fr); color: #8a948d; font-size: .65rem; }
.absence-scale span:not(:first-child) { text-align: center; }
.absence-scale span:last-child { text-align: right; }
.absence-list { display: grid; }
.absence-row { min-height: 72px; display: grid; grid-template-columns: 178px minmax(260px, 1fr) 154px; align-items: center; gap: 20px; border-top: 1px solid var(--line); }
.employee-identity, .table-person { display: flex; align-items: center; gap: 11px; }
.employee-identity > span:last-child, .table-person > span:last-child { min-width: 0; display: grid; }
.employee-identity strong, .table-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.employee-identity small, .table-person small, .absence-copy small { color: var(--muted); font-size: .68rem; }
.person-avatar { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; color: var(--forest-800); background: var(--forest-100); border-radius: 50%; font-size: .68rem; font-weight: 820; }
.absence-track { height: 38px; position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; background: repeating-linear-gradient(to right, transparent 0, transparent calc(8.333% - 1px), #e9ede9 calc(8.333% - 1px), #e9ede9 8.333%); border-top: 1px solid #eef0ee; border-bottom: 1px solid #eef0ee; }
.absence-block { min-width: 0; height: 28px; padding: 5px 9px; grid-column: calc(var(--offset) + 1) / span var(--span); z-index: 1; overflow: hidden; color: #245333; background: #dcebdd; border: 1px solid #c3dcc6; border-radius: 7px; font-size: .67rem; font-weight: 780; white-space: nowrap; }
.status-absence-beantragt { color: #8c4b16; background: #f9e8d7; border-color: #edc39f; }
.absence-empty { grid-column: 1 / -1; padding-left: 8px; color: #89928b; font-size: .68rem; }
.absence-copy { display: grid; }
.absence-copy strong { font-size: .75rem; }

.accounts-table { min-width: 660px; }
.accounts-table td { font-size: .78rem; }
.accounts-table th:first-child, .accounts-table td:first-child { padding-left: 0; }
.accounts-table th:last-child, .accounts-table td:last-child { padding-right: 0; }
.person-avatar-small { width: 30px; height: 30px; font-size: .6rem; }
.value-positive { color: #27643b; }
.value-attention { color: #a2591e; }
.provisional-tag { padding: 5px 8px; color: #5f6962; background: #eef1ee; border-radius: 999px; font-size: .63rem; font-weight: 750; white-space: nowrap; }
.table-note { margin: 18px 0 0; padding-top: 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: .72rem; }

.holiday-table-panel { min-width: 0; padding: 28px; }
.holiday-table-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; }
.holiday-table-heading .eyebrow { margin-bottom: 9px; }
.holiday-table-subtitle { margin: 9px 0 0; color: var(--muted); font-size: .78rem; }
.holiday-sort { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.holiday-sort label { color: var(--muted); font-size: .76rem; font-weight: 720; }
.holiday-sort select { max-width: 100%; min-height: 42px; padding: 8px 12px; color: var(--forest-950); background: white; border: 1px solid #cbd4cc; border-radius: 9px; font: inherit; font-size: .78rem; }
.holiday-sort .button { min-height: 42px; padding: 8px 14px; font-size: .76rem; }
.holiday-scale-legend { margin-top: 22px; padding: 11px 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; color: #5b6c60; background: #f0f4f0; border: 1px solid #e2e9e2; border-radius: 10px; font-size: .69rem; }
.holiday-scale-legend strong { color: var(--forest-800); }
.holiday-scale-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 10px; height: 10px; display: inline-block; border-radius: 50%; }
.legend-negative { background: #bc5b54; }
.legend-positive { background: #4b9363; }
.holiday-table-scroll { max-width: 100%; margin-top: 10px; overflow-x: auto; overscroll-behavior-inline: contain; }
.holiday-person-table { min-width: 810px; }
.holiday-person-table th { white-space: nowrap; }
.holiday-person-table td { font-size: .78rem; }
.holiday-person-table th:first-child, .holiday-person-table td:first-child { padding-left: 0; }
.holiday-person-table th:last-child, .holiday-person-table td:last-child { padding-right: 0; }
.holiday-person-table tbody tr:hover { background: #f8faf8; }
.holiday-person-table .table-person { min-width: 178px; }
.holiday-value-cell { display: flex; align-items: center; gap: 13px; white-space: nowrap; }
.holiday-azk-track { width: 142px; height: 10px; flex: 0 0 142px; position: relative; display: flex; background: #e9eeea; border-radius: 99px; }
.holiday-azk-track::after { content: ""; width: 2px; height: 16px; position: absolute; top: -3px; left: calc(50% - 1px); z-index: 1; background: #526257; border-radius: 2px; }
.holiday-azk-track.is-missing { opacity: .42; }
.holiday-azk-half { width: 50%; height: 100%; position: relative; }
.holiday-azk-half i { height: 100%; position: absolute; top: 0; display: block; }
.holiday-azk-negative i { right: 0; background: #bc5b54; border-radius: 99px 0 0 99px; }
.holiday-azk-positive i { left: 0; background: #4b9363; border-radius: 0 99px 99px 0; }
.holiday-azk-value { min-width: 96px; font-variant-numeric: tabular-nums; }
.holiday-azk-value.value-negative { color: #a8453f; }
.holiday-azk-value.value-positive { color: #27643b; }
.holiday-azk-value.value-missing, .holiday-azk-value.value-zero { color: #65736a; }
.holiday-rest-track { width: 108px; height: 10px; flex: 0 0 108px; overflow: hidden; background: #e9eeea; border-radius: 99px; }
.holiday-rest-track i { height: 100%; display: block; background: #66a77a; border-radius: inherit; }
.holiday-rest-value { min-width: 70px; color: #27643b; font-variant-numeric: tabular-nums; }
.holiday-rest-value.is-negative { color: #a8453f; }

.vacation-card h2, .connector-card h2 { margin-bottom: 24px; }
.vacation-person { padding: 17px 0; display: grid; gap: 9px; border-top: 1px solid var(--line); }
.vacation-person > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; }
.vacation-person > div:first-child span { color: var(--forest-700); font-weight: 740; }
.vacation-person > small { color: var(--muted); font-size: .64rem; }
.vacation-bar { height: 9px; position: relative; overflow: hidden; background: #eaf0ea; border-radius: 99px; }
.vacation-used, .vacation-planned { position: absolute; top: 0; bottom: 0; }
.vacation-used { left: 0; background: #73977a; }
.vacation-planned { background: var(--orange); }
.legend { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .62rem; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.legend-used { background: #73977a; }
.legend-planned { background: var(--orange); }
.legend-open { background: #eaf0ea; border: 1px solid #ced8cf; }

.connector-flow { margin: 0; padding: 0; list-style: none; display: grid; }
.connector-flow li { min-height: 68px; position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.connector-flow li:not(:last-child)::after { content: ""; position: absolute; top: 30px; bottom: 3px; left: 14px; width: 1px; background: #d8dfd9; }
.connector-flow li > span { width: 30px; height: 30px; z-index: 1; display: grid; place-items: center; color: #6d786f; background: #edf0ed; border-radius: 50%; font-size: .67rem; font-weight: 800; }
.connector-flow li.is-current > span { color: white; background: var(--orange); }
.connector-flow li div { display: grid; align-content: start; }
.connector-flow strong { font-size: .78rem; }
.connector-flow small { color: var(--muted); font-size: .67rem; }
.connector-note { margin: 4px 0 0; padding: 13px; color: #745136; background: var(--orange-soft); border-radius: 9px; font-size: .7rem; }

.receivables-workspace { padding: 20px 0 78px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.receivables-workspace > *, .receivables-main-column, .receivables-sidebar { min-width: 0; }
.receivables-flow { padding: 19px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 15px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.receivables-flow > div { min-height: 62px; padding: 3px 2px; display: grid; align-content: center; }
.receivables-flow small { color: var(--forest-700); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.receivables-flow strong { font-size: .8rem; }
.receivables-flow span { color: var(--muted); font-size: .65rem; }
.receivables-flow > i { color: #aab3ac; font-style: normal; }
.receivables-flow .flow-open { margin: -8px 0; padding: 11px 13px; background: var(--orange-soft); border: 1px solid #f0cfb3; border-radius: 10px; }
.receivables-flow .flow-open small { color: #98541d; }
.receivables-source { margin: 0; grid-template-columns: 1.05fr 1fr 1fr .82fr auto; }
.metric-money { font-size: clamp(1.8rem, 2.8vw, 2.65rem) !important; }
.metric-blocked { color: #663e43; background: #f7eeee; border-color: #e5cfd1; }
.metric-blocked p, .metric-blocked span { color: #7c6265; }

.receivables-content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .58fr); align-items: start; gap: 20px; }
.receivables-main-column, .receivables-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.receivables-main-column > *, .receivables-sidebar > * { min-width: 0; }
.receivables-table { min-width: 780px; }
.receivables-table th:first-child, .receivables-table td:first-child { padding-left: 0; }
.receivables-table th:last-child, .receivables-table td:last-child { padding-right: 0; }
.receivables-table td { padding-block: 14px; font-size: .75rem; }
.invoice-customer, .due-date { display: grid; }
.invoice-customer strong { font-size: .8rem; }
.invoice-customer small, .due-date small { color: var(--muted); font-size: .65rem; }
.review-tag { padding: 6px 9px; display: inline-flex; border-radius: 999px; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.review-ready { color: #245b36; background: #dff0e3; }
.review-review { color: #94511b; background: var(--orange-soft); }
.review-blocked { color: #70464b; background: #f1e3e4; }
.receivable-detail-row td { padding: 0 0 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.receivable-detail-row td > span { display: block; font-size: .65rem; }
.receivable-detail-row td > span + span { margin-top: 3px; }
.no-send-note { margin-top: 18px; padding: 14px 16px; color: #714d30; background: var(--orange-soft); border-radius: 10px; font-size: .71rem; }

.exception-panel .panel-heading { margin-bottom: 8px; }
.exception-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.exception-grid > div { min-height: 160px; padding: 25px 24px 20px 0; border-top: 1px solid var(--line); }
.exception-grid > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.exception-grid span { color: var(--orange); font-size: .68rem; font-weight: 850; letter-spacing: .08em; }
.exception-grid strong { margin-top: 16px; display: block; font-size: .9rem; }
.exception-grid p { margin: 6px 0 0; color: var(--muted); font-size: .72rem; }

.decision-card h2, .release-card h2 { margin-bottom: 23px; }
.system-option { padding: 18px 0; display: grid; grid-template-columns: 34px 1fr; gap: 12px; border-top: 1px solid var(--line); }
.option-badge { width: 30px; height: 30px; display: grid; place-items: center; color: var(--forest-800); background: var(--forest-100); border-radius: 50%; font-size: .68rem; font-weight: 850; }
.system-option strong { font-size: .8rem; }
.system-option p { margin: 4px 0 0; color: var(--muted); font-size: .68rem; }
.decision-note { margin: 5px 0 0; padding: 13px; color: #714d30; background: var(--orange-soft); border-radius: 9px; font-size: .69rem; }
.evidence-card h2 { margin-bottom: 21px; }
.evidence-list { margin: 0; padding: 0; list-style: none; display: grid; }
.evidence-list li { padding: 14px 0; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.evidence-list strong { color: var(--forest-800); font-size: .72rem; }
.evidence-list span { color: var(--muted); font-size: .67rem; }
.release-checks { margin: 0; padding: 0; list-style: none; display: grid; }
.release-checks li { min-height: 43px; padding: 11px 0 11px 29px; position: relative; border-top: 1px solid var(--line); font-size: .73rem; }
.release-checks li::before { content: ""; position: absolute; top: 14px; left: 1px; width: 13px; height: 13px; border: 2px solid var(--forest-600); border-radius: 4px; }

.simple-hero { padding: 72px 0 42px; }
.simple-hero h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
.simple-hero > p:last-child { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.status-list { padding-bottom: 80px; display: grid; gap: 12px; }
.status-row { padding: 24px 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.status-row h2 { margin: 0 0 4px; font-size: 1.15rem; }
.status-row p { margin: 0; color: var(--muted); }
.status-symbol { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-weight: 850; }
.status-symbol.ready { color: #245b36; background: #dff0e3; }
.status-symbol.open { color: #94511b; background: var(--orange-soft); }
.status-symbol.neutral { color: #4b5750; background: #edf0ed; }

.help-grid { padding-bottom: 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.help-grid .panel { min-height: 260px; }
.help-grid h2 { margin-top: 40px; }
.help-grid p { color: var(--muted); }
.step-number { color: var(--orange); font-weight: 850; font-size: 1.5rem; }

.login-shell { min-height: calc(100vh - 200px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr); }
.login-copy { padding: clamp(60px, 8vw, 130px) max(40px, calc((100vw - 1320px) / 2)); padding-right: 8vw; color: white; background: linear-gradient(140deg, var(--forest-950), #28573a); }
.login-copy h1 { font-size: clamp(3.2rem, 6vw, 6.5rem); }
.login-copy > p:not(.eyebrow) { max-width: 600px; margin-top: 30px; color: #dce9de; font-size: 1.15rem; }
.login-copy .eyebrow { color: #b9d1bd; }
.login-note { margin-top: 60px; padding: 13px 17px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #dce9de; font-size: .8rem; }
.login-card { margin: auto; width: min(440px, calc(100% - 64px)); padding: 46px; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 28px; font-size: 2rem; }
.login-card form { display: grid; gap: 10px; }
.login-card label { margin-top: 8px; font-size: .82rem; font-weight: 750; }
.login-card input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #c8cfca; border-radius: 9px; background: #fbfcfb; }
.login-card input:focus { outline: 3px solid rgba(79, 139, 93, .2); border-color: var(--forest-600); }
.login-card .button { margin-top: 14px; width: 100%; }
.form-error { padding: 11px 13px; color: #8f301f; background: #fbeae6; border-radius: 8px; font-size: .85rem; }
.login-help { margin: 23px 0 0; color: var(--muted); font-size: .8rem; }

.error-page { min-height: 610px; padding: 100px 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-page > span:first-child { color: var(--orange); font-size: 1rem; font-weight: 850; }
.error-page h1 { max-width: 950px; margin-bottom: 24px; font-size: clamp(3rem, 6vw, 6rem); }
.error-page > p:not(.eyebrow) { max-width: 620px; color: var(--muted); }
.error-page .button { margin-top: 24px; }

.empty-state { padding: 70px; text-align: center; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty-state h2 { margin: 0; }
.empty-state p { color: var(--muted); }
.messages { width: var(--shell); margin: 18px auto 0; }
.messages p { padding: 13px 16px; background: white; border-left: 4px solid var(--forest-600); }

.site-footer { min-height: 86px; padding: 24px max(32px, calc((100% - 1320px) / 2)); display: flex; justify-content: space-between; gap: 20px; color: #bccbc0; background: var(--forest-950); font-size: .78rem; }

:focus-visible { outline: 3px solid rgba(207, 116, 39, .42); outline-offset: 3px; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .hero { grid-template-columns: 1fr; }
  .hero-facts { justify-content: flex-start; flex-wrap: wrap; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .info-strip { grid-template-columns: 1fr 1.3fr; }
  .info-strip .button { grid-column: 1 / -1; justify-self: start; }
  .holiday-content-grid { grid-template-columns: 1fr; }
  .holiday-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .holiday-sidebar .compact-panel { grid-column: 1 / -1; }
  .receivables-content-grid { grid-template-columns: 1fr; }
  .receivables-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .receivables-sidebar .compact-panel { grid-column: 1 / -1; }
  .receivables-source { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .receivables-source .connection-state { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  :root { --shell: min(calc(100% - 32px), 1320px); }
  .preview-band { padding-inline: 16px; font-size: .64rem; }
  .preview-band span:last-child { display: none; }
  .site-header { min-height: auto; padding: 12px 16px; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
  .brand-logo-wrap { width: 112px; height: 62px; }
  .brand-logo { max-height: 62px; }
  .brand-divider { height: 48px; margin: 0 12px; }
  .brand-copy strong { font-size: .9rem; }
  .brand-copy small, .account-copy { display: none; }
  .main-nav { width: 100%; overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
  .main-nav a { flex: 0 0 auto; }
  .hero { padding: 56px 0 34px; gap: 32px; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4.7rem); }
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-facts > div { width: auto; min-width: 0; padding: 12px; grid-template-columns: 1fr; }
  .hero-facts .dot { grid-row: auto; }
  .feature-module { grid-template-columns: 1fr; }
  .feature-visual { min-height: 220px; grid-row: 1; }
  .ring-one { width: 230px; height: 230px; }
  .ring-two { width: 340px; height: 340px; }
  .feature-content { padding: 30px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 250px; }
  .info-strip { grid-template-columns: 1fr; gap: 15px; }
  .info-strip .button { grid-column: auto; }
  .module-title-row { grid-template-columns: auto minmax(0, 1fr); }
  .module-title-row > .status-pill { grid-column: 1 / -1; justify-self: start; }
  .detail-layout { grid-template-columns: 1fr; }
  .notice { align-items: flex-start; flex-direction: column; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .source-bar { grid-template-columns: 1fr 1fr; }
  .galawork-refresh-panel { align-items: flex-start; flex-direction: column; }
  .galawork-refresh-panel form { justify-items: start; }
  .holiday-table-panel { padding: 18px; }
  .holiday-table-heading { align-items: flex-start; }
  .connection-state { justify-self: start; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .holiday-sidebar { grid-template-columns: 1fr; }
  .holiday-sidebar .compact-panel { grid-column: auto; }
  .absence-scale { display: none; }
  .absence-row { padding: 15px 0; grid-template-columns: minmax(150px, 1fr) 1.2fr; gap: 12px; }
  .absence-copy { grid-column: 2; }
  .receivables-flow { grid-template-columns: 1fr; }
  .receivables-flow > i { display: none; }
  .receivables-flow > div { min-height: auto; padding: 10px 0; }
  .receivables-flow .flow-open { margin: 0; padding: 12px 14px; }
  .receivables-sidebar { grid-template-columns: 1fr; }
  .receivables-sidebar .compact-panel { grid-column: auto; }
  .status-row { grid-template-columns: auto minmax(0, 1fr); }
  .status-row > strong { grid-column: 2; }
  .help-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-copy { padding: 60px 24px; }
  .login-card { margin-block: 40px; width: calc(100% - 32px); padding: 32px 24px; }
  .site-footer { padding-inline: 16px; flex-direction: column; }
}

@media (max-width: 470px) {
  .brand-divider, .brand-copy { display: none; }
  .hero-facts { grid-template-columns: 1fr; }
  .module-title-row { grid-template-columns: 1fr; }
  .module-title-row .module-icon { width: 66px; height: 66px; }
  .account-panel { right: -4px; width: min(280px, calc(100vw - 32px)); }
  .source-bar, .metric-grid { grid-template-columns: 1fr; }
  .holiday-sort { width: 100%; }
  .holiday-sort label { width: 100%; }
  .holiday-sort select { flex: 1 1 180px; }
  .absence-row { grid-template-columns: 1fr; }
  .absence-copy { grid-column: auto; }
  .absence-track { min-width: 0; }
  .metric-card { min-height: 125px; }
  .exception-grid { grid-template-columns: 1fr; }
  .exception-grid > div, .exception-grid > div:nth-child(even) { min-height: auto; padding: 20px 0; border-left: 0; }
}
