:root {
  --ink: #163a31;
  --ink-2: #31564b;
  --muted: #6f7f79;
  --paper: #f7f8f3;
  --surface: #ffffff;
  --line: #dde4de;
  --line-soft: #e9eee9;
  --accent: #f3ca45;
  --accent-dark: #a97100;
  --gold-soft: #fff7d8;
  --graphite: #111111;
  --mint: #dff4e7;
  --mint-ink: #176044;
  --amber: #fff0ce;
  --amber-ink: #855800;
  --violet: #ece7ff;
  --violet-ink: #54449c;
  --blue: #e3eefc;
  --blue-ink: #365d91;
  --slate: #edf0ef;
  --red: #fee6e2;
  --red-ink: #a6372b;
  --shadow: 0 12px 32px rgba(22, 58, 49, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at 12% 12%, rgba(243,202,69,.22), transparent 25%),
    radial-gradient(circle at 88% 84%, rgba(104,170,143,.18), transparent 30%),
    var(--ink);
}
.login-card {
  width: min(510px, 100%);
  padding: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 100px rgba(6,24,19,.34);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 15px; }
.login-brand small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.login-card h1 { margin: 7px 0 8px; font-size: 28px; letter-spacing: -.035em; }
.login-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.demo-users { display: grid; gap: 8px; margin-top: 22px; }
.demo-user {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.demo-user:hover { border-color: #a9bd70; background: #fbfdf5; transform: translateY(-1px); }
.demo-user:disabled { opacity: .55; cursor: wait; }
.demo-user strong, .demo-user small { display: block; }
.demo-user strong { font-size: 11px; }
.demo-user small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.demo-user b { color: var(--accent-dark); font-size: 18px; }
.enterprise-login { width: 100%; justify-content: center; margin-top: 22px; }
.enterprise-login.is-preview { opacity: .76; }
.enterprise-login-note { display: block; margin-top: 8px; color: var(--muted); text-align: center; font-size: 9px; }
.google-g {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #4285f4;
  background: #fff;
  font-weight: 900;
}
.login-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; color: var(--muted); font-size: 9px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-error { min-height: 18px; margin-top: 12px !important; color: var(--red-ink) !important; font-weight: 700; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  color: #effff7;
  background:
    radial-gradient(circle at 14% 2%, rgba(203,255,85,.14), transparent 26%),
    var(--ink);
}

.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 26px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  color: var(--graphite);
  background: linear-gradient(145deg, #fff3ae, var(--accent));
  font-weight: 900;
  font-size: 17px;
  box-shadow: inset 0 0 0 1px rgba(22,58,49,.08);
}
.brand-mark img { width: 23px; height: 23px; display: block; }
.brand-mark-large { width: 48px; height: 48px; border-radius: 14px; }
.brand-mark-large img { width: 29px; height: 29px; }
.brand strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.global-timezone-control {
  display: grid;
  gap: 2px;
  min-width: 148px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.global-timezone-control select {
  width: 100%;
  min-height: 34px;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
}
.brand span { display: block; margin-top: 1px; color: #a9c2b8; font-size: 11px; }

.main-nav { display: grid; gap: 5px; }
.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 10px 11px;
  border: 0;
  border-radius: 10px;
  color: #b9cec5;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: .18s ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.is-active { color: #fff; background: rgba(243,202,69,.15); }
.nav-item.is-active::after { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--accent); margin-left: auto; }
.nav-icon { width: 22px; color: #f6d768; font-size: 17px; text-align: center; }

.sidebar-card {
  margin-top: auto;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  color: #d6e5df;
  background: rgba(255,255,255,.055);
}
.sidebar-card strong { display: block; margin: 0; color: #fff; font-size: 12px; letter-spacing: .01em; }

.main-content { min-width: 0; }
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(247,248,243,.92);
  backdrop-filter: blur(14px);
}
.breadcrumb { margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb span { padding: 0 5px; color: #aab6b0; }
h1 { margin: 0; font-size: 24px; line-height: 1.12; letter-spacing: -.035em; }
h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
h3 { margin: 0; font-size: 14px; letter-spacing: -.01em; }

.topbar-actions, .toolbar-actions, .segmented, .pager { display: flex; align-items: center; gap: 8px; }
.author-control {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.author-control input {
  width: 112px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-size: 11px;
  font-weight: 750;
  text-transform: none;
  letter-spacing: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(22,58,49,.08); }
.button-primary { border-color: #d5ab23; background: var(--accent); color: var(--graphite); }
.button-primary:hover { background: #f7d665; }
.button-dark { border-color: var(--ink); color: #fff; background: var(--ink); }
.button-dark:hover { background: #214e42; }
.button-danger { border-color: #f0c8c2; color: var(--red-ink); background: #fff7f5; }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
.button-ghost { background: transparent; }
.button-small { min-height: 32px; padding: 0 10px; }

.view-root { padding: 24px 32px 42px; }
.view-stack { display: grid; gap: 18px; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #dfe9c2;
  border-radius: 12px;
  background: #f5fbdc;
  color: #4b6120;
}
.notice strong { display: block; color: #31430d; font-size: 12px; }
.notice p { margin: 1px 0 0; font-size: 11px; }
.notice-icon { display: grid; place-items: center; flex: 0 0 23px; height: 23px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 900; }
.notice-blue { border-color: #cbdbee; color: var(--blue-ink); background: #f2f7fd; }
.notice-blue strong { color: #294f7c; }
.notice-blue .notice-icon { color: var(--blue-ink); background: #dceafa; }
.notice-warning { border-color: #ead59f; color: var(--amber-ink); background: #fff9eb; }
.notice-warning strong { color: #684700; }
.notice-warning .notice-icon { color: var(--amber-ink); background: var(--amber); }
.notice .button { margin-left: auto; flex: 0 0 auto; }

.workflow-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(22,58,49,.04);
}
.workflow-card.status-validated { border-color: #bbd7c5; background: #fbfffc; }
.workflow-card.status-published { border-color: #bdd0e8; background: #fbfdff; }
.workflow-copy { display: flex; align-items: center; gap: 12px; }
.workflow-copy strong { display: block; font-size: 13px; }
.workflow-copy p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.workflow-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.status-pill { display: inline-flex; min-width: 68px; justify-content: center; padding: 5px 8px; border-radius: 999px; color: #6d5700; background: var(--amber); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.status-validated .status-pill { color: var(--mint-ink); background: var(--mint); }
.status-published .status-pill { color: var(--blue-ink); background: var(--blue); }

.planner-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}
.field-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.control {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 34px 0 11px;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
  outline: none;
}
.control:focus { border-color: #8ebd2b; box-shadow: 0 0 0 3px rgba(203,255,85,.28); }
.week-control { display: flex; align-items: center; gap: 8px; }
.week-label { min-width: 190px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; font-weight: 800; text-align: center; }
.month-picker {
  width: 168px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
}
.segment {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.segment:first-child { border-radius: 9px 0 0 9px; }
.segment:last-child { margin-left: -9px; border-radius: 0 9px 9px 0; }
.segment.is-active { z-index: 1; border-color: #9bc43d; color: var(--ink); background: #f1ffd1; }
.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 19px;
  cursor: pointer;
}
.icon-button:hover { border-color: #bdc9c2; background: #fbfcf9; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card {
  position: relative;
  min-height: 104px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.metric-card::after { content: ""; position: absolute; right: -24px; bottom: -35px; width: 88px; height: 88px; border-radius: 50%; background: #f0f5f0; }
.metric-card.metric-accent::after { background: rgba(203,255,85,.3); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #eff3f0; color: var(--ink-2); font-weight: 900; }
.metric-value { position: relative; z-index: 1; display: block; margin-top: 12px; font-size: 26px; font-weight: 850; letter-spacing: -.04em; }
.metric-caption { position: relative; z-index: 1; display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.metric-value.is-good { color: #277653; }
.metric-value.is-bad { color: var(--red-ink); }

.coverage-panel { overflow: hidden; }
.coverage-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.coverage-day { display: grid; gap: 2px; padding: 13px 14px; border-right: 1px solid var(--line-soft); }
.coverage-day:last-child { border-right: 0; }
.coverage-day.is-weekend { background: #fcfaf7; }
.coverage-day span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.coverage-day strong { font-size: 22px; letter-spacing: -.04em; }
.coverage-day small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; }
.dot { width: 6px; height: 6px; margin-left: 2px; border-radius: 50%; }
.dot.mint { background: #6cb98e; }
.dot.amber { background: #d2a244; }
.dot.violet { background: #8f7bd1; }

.month-panel { overflow: hidden; }
.month-calendar-shell { overflow-x: auto; }
.month-calendar-legend { position: sticky; left: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; min-width: 980px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); color: var(--muted); background: #fbfcfa; font-size: 8.5px; }
.month-calendar-legend span { display: inline-flex; align-items: center; gap: 4px; }
.month-calendar-legend b { display: grid; place-items: center; width: 22px; height: 18px; border-radius: 5px; color: var(--ink); background: var(--slate); font-size: 7px; }
.month-calendar-legend em { margin-left: auto; font-style: normal; }
.month-calendar { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); min-width: 980px; }
.month-weekday { padding: 9px 11px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); color: var(--muted); background: #f8faf7; font-size: 9px; font-weight: 850; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.month-weekday.is-weekend { background: #f7f3eb; }
.month-day {
  min-height: 198px;
  padding: 9px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  background: #fff;
  text-align: left;
}
button.month-day { cursor: pointer; }
button.month-day:hover { position: relative; z-index: 1; background: #fbfdf7; box-shadow: inset 0 0 0 2px #cde986; }
.month-day.is-weekend { background: #fdfbf8; }
.month-day.is-outside { color: #a5b0ab; background: #f7f8f5; }
.month-day-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 7px; }
.month-day-head span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: var(--ink); background: #f0f3ef; font-size: 11px; font-weight: 850; }
.month-day-head b { color: var(--muted); font-size: 8px; font-weight: 750; }
.holiday-tags { display: flex; gap: 3px; margin: -2px 0 5px; }
.holiday-tags span { display: inline-flex; padding: 2px 4px; border-radius: 4px; color: #6c5100; background: #fff0b8; font-size: 7px; font-weight: 900; letter-spacing: .04em; }
.month-shift { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 6px; align-items: start; margin-top: 6px; }
.month-shift-code { display: grid; place-items: center; width: 25px; height: 20px; border-radius: 6px; font-size: 7.5px; font-weight: 900; letter-spacing: .03em; }
.month-shift-copy { min-width: 0; }
.month-shift-copy strong { display: block; overflow-wrap: anywhere; color: var(--ink); font-size: 9px; line-height: 1.25; }
.month-shift-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: 6.5px; font-weight: 800; }
.month-shift p { margin: 2px 0 0; overflow-wrap: anywhere; color: var(--ink-2); font-size: 8px; line-height: 1.3; }
.month-shift.mint .month-shift-code { color: var(--mint-ink); background: var(--mint); }
.month-shift.amber .month-shift-code { color: var(--amber-ink); background: var(--amber); }
.month-shift.violet .month-shift-code { color: var(--violet-ink); background: var(--violet); }
.month-shift.blue .month-shift-code { color: var(--blue-ink); background: var(--blue); }
.month-shift.slate .month-shift-code { color: #5b6a65; background: var(--slate); }
.absence-count { display: inline-flex; margin-top: 7px; padding: 3px 5px; border-radius: 5px; color: var(--red-ink); background: var(--red); font-size: 7px; font-weight: 800; }

.planner-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(22,58,49,.01); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line-soft); }
.panel-header p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.panel-body { padding: 16px; }

.table-scroll { overflow: auto; max-height: calc(100vh - 350px); min-height: 420px; border-radius: 0 0 var(--radius) var(--radius); }
.roster-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 960px; }
.roster-table th, .roster-table td { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.roster-table th:last-child, .roster-table td:last-child { border-right: 0; }
.roster-table thead th { position: sticky; top: 0; z-index: 4; padding: 10px 7px; background: #f8faf7; color: var(--muted); font-size: 9px; text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.roster-table thead th:first-child { left: 0; z-index: 6; min-width: 180px; text-align: left; padding-left: 15px; }
.roster-table .weekend-head { background: #f4f0e8; }
.date-number { display: block; margin-top: 2px; color: var(--ink); font-size: 16px; font-weight: 850; letter-spacing: -.03em; }
.group-row td { padding: 8px 14px; background: #f2f5f1; color: var(--ink-2); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.person-cell { position: sticky; left: 0; z-index: 2; min-width: 180px; padding: 9px 12px; background: var(--surface); }
.person-line { display: flex; align-items: center; gap: 8px; }
.avatar { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 9px; color: #fff; background: var(--ink-2); font-size: 9px; font-weight: 850; }
.avatar.level-Senior { background: #283f38; }
.avatar.level-Intermedio { background: #668077; }
.avatar.level-Junior { background: #a4b1ab; }
.avatar.level-Lead, .avatar.level-Mentor { background: #3b6b8d; }
.person-name { display: block; max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 800; }
.person-meta { display: flex; gap: 5px; align-items: center; margin-top: 1px; color: var(--muted); font-size: 9px; }
.mini-dot { width: 5px; height: 5px; border-radius: 50%; background: #aab6b0; }
.shift-cell { min-width: 105px; height: 57px; padding: 6px; vertical-align: top; background: #fff; }
.shift-cell.is-weekend { background: #fcfaf7; }
.shift-select { width: 100%; min-height: 27px; padding: 0 22px 0 7px; border: 0; border-radius: 7px; color: inherit; background: transparent; font-size: 10px; font-weight: 850; cursor: pointer; outline: none; }
.shift-select:focus { box-shadow: 0 0 0 2px rgba(22,58,49,.18); }
.shift-time { display: block; margin: 3px 6px 0; color: currentColor; font-size: 8px; opacity: .74; white-space: nowrap; }
.shift-box { min-height: 43px; border-radius: 9px; padding: 1px; }
.shift-mint { background: var(--mint); color: var(--mint-ink); }
.shift-amber { background: var(--amber); color: var(--amber-ink); }
.shift-violet { background: var(--violet); color: var(--violet-ink); }
.shift-blue { background: var(--blue); color: var(--blue-ink); }
.shift-slate { background: var(--slate); color: #5b6a65; }
.shift-off { display: grid; place-items: center; min-height: 42px; color: #b0bbb6; font-size: 12px; }
.shift-absence { min-height: 43px; display: flex; flex-direction: column; justify-content: center; padding: 6px 8px; border-radius: 9px; color: var(--red-ink); background: repeating-linear-gradient(-45deg, #fff2ef, #fff2ef 6px, #fde8e4 6px, #fde8e4 12px); }
.shift-absence b { font-size: 9px; }
.shift-absence span { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.shift-unavailable { min-height: 43px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 8px; border: 1px dashed #cbd3cf; border-radius: 9px; color: #6f7b75; background: #f4f6f5; }
.shift-unavailable b { font-size: 8px; }
.shift-unavailable span { font-size: 7px; }
.manual-mark { float: right; width: 5px; height: 5px; margin: 4px 4px 0 0; border-radius: 50%; background: currentColor; opacity: .55; }
.holiday-shift-mark { display: inline-flex; float: right; margin: 3px 3px 0 0; padding: 1px 4px; border-radius: 4px; color: #6f5000; background: #fff1bd; font-size: 6px; font-weight: 900; text-transform: uppercase; }

.issue-summary { display: flex; gap: 6px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.badge-hard { color: var(--red-ink); background: var(--red); }
.badge-warning { color: var(--amber-ink); background: var(--amber); }
.badge-ok { color: var(--mint-ink); background: var(--mint); }
.badge-neutral { color: #5d6d67; background: var(--slate); }
.badge-unverified { color: #765d13; background: #fff6d9; }

.issues-panel { position: sticky; top: 18px; overflow: hidden; }
.issues-list { display: grid; gap: 9px; padding: 12px; max-height: 420px; overflow: auto; }
.issue-item { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 9px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 11px; background: #fbfcfa; }
.issue-symbol { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; font-weight: 900; }
.issue-item.hard .issue-symbol { color: var(--red-ink); background: var(--red); }
.issue-item.warning .issue-symbol { color: var(--amber-ink); background: var(--amber); }
.issue-item strong { display: block; font-size: 10px; }
.issue-item p { margin: 2px 0 0; color: var(--muted); font-size: 9px; line-height: 1.42; }
.empty-state { padding: 28px 18px; text-align: center; color: var(--muted); }
.empty-state-icon { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 9px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); font-weight: 900; }
.empty-state strong { display: block; color: var(--ink); font-size: 12px; }
.empty-state p { margin: 4px auto 0; max-width: 210px; font-size: 10px; }
.assumption-box { margin: 0 12px 12px; padding: 11px; border-radius: 10px; background: #f4f6f3; color: var(--muted); font-size: 9px; }
.assumption-box strong { display: block; margin-bottom: 3px; color: var(--ink-2); }

.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-heading p { max-width: 690px; margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.summary-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.summary-card span { color: var(--muted); font-size: 10px; font-weight: 750; }
.summary-card strong { display: block; margin-top: 5px; font-size: 21px; letter-spacing: -.035em; }

.team-table, .rule-table { width: 100%; border-collapse: collapse; }
.team-table th, .team-table td, .rule-table th, .rule-table td { padding: 11px 13px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.team-table th, .rule-table th { color: var(--muted); background: #f8faf7; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.team-table td, .rule-table td { font-size: 11px; }
.team-table tr:last-child td, .rule-table tr:last-child td { border-bottom: 0; }
.team-name { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.team-name > span:last-child { display: grid; gap: 2px; }
.team-name small { color: var(--muted); font-size: 7px; font-weight: 600; }
.person-row-inactive { opacity: .72; background: #fafbfa; }
.employment-dates { display: block; margin-top: 5px; white-space: nowrap; }
.inline-select { min-height: 31px; padding: 0 28px 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 10px; }
.inline-input { width: 130px; min-height: 29px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font-size: 9px; }
.calendar-profile { display: grid; gap: 3px; min-width: 145px; }
.calendar-profile strong { font-size: 9px; }
.calendar-profile small { color: var(--muted); font-size: 8px; }
.eligibility { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { display: inline-flex; padding: 4px 7px; border-radius: 6px; background: var(--slate); color: #53635d; font-size: 9px; font-weight: 800; }
.source-note { color: var(--muted); font-size: 9px; }
.team-scroll { min-height: 360px; }
.compact-scroll { min-height: 0; max-height: 520px; }
.row-actions { display: flex; align-items: center; gap: 6px; }
.switch-label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 750; }
.icon-danger { width: 28px; height: 28px; color: var(--red-ink); background: #fff7f5; }

.rules-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 16px; align-items: start; }
.rule-type { display: inline-flex; min-width: 76px; justify-content: center; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 850; }
.rule-type.hard { color: var(--red-ink); background: var(--red); }
.rule-type.objective { color: var(--mint-ink); background: var(--mint); }
.rule-type.pending { color: var(--amber-ink); background: var(--amber); }
.rule-title { font-weight: 800; }
.rule-detail { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }

.demand-card { overflow: hidden; }
.demand-chart { display: grid; grid-template-columns: repeat(24, minmax(8px, 1fr)); align-items: end; gap: 3px; height: 160px; padding: 20px 16px 26px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(to top, #f5f8f4, #fff); }
.demand-bar-wrap { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.demand-bar { width: 100%; min-width: 5px; max-width: 15px; border-radius: 4px 4px 2px 2px; background: #b9c7c0; transition: height .2s ease; }
.demand-bar.is-peak { background: var(--accent-dark); }
.demand-hour { color: var(--muted); font-size: 7px; }
.demand-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 14px 16px 16px; }
.demand-inputs label { display: grid; gap: 3px; color: var(--muted); font-size: 8px; text-align: center; }
.demand-inputs input { width: 100%; min-width: 0; height: 27px; padding: 0 4px; border: 1px solid var(--line); border-radius: 6px; text-align: center; font-size: 9px; }
.upload-zone { margin: 0 16px 16px; padding: 13px; border: 1px dashed #bdcac3; border-radius: 11px; background: #fafcf9; text-align: center; }
.upload-zone p { margin: 0 0 8px; color: var(--muted); font-size: 9px; }
.upload-zone input { display: none; }
.integration-note { margin: 0 16px 16px; padding: 12px; border-radius: 10px; background: var(--blue); color: var(--blue-ink); font-size: 9px; }
.integration-note strong { display: block; margin-bottom: 3px; }
.connector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.connector-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.connector-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--ink); background: #eff5ee; font-size: 10px; font-weight: 900; }
.connector-card strong { display: block; font-size: 11px; }
.connector-card p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.connector-card-action .button { margin-top: 8px; }

.calendar-toolbar { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.calendar-toolbar label { min-width: 170px; }
.calendar-registry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.calendar-card { display: grid; align-content: start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fcfdfb; }
.calendar-card.status-draft { border-color: #e7d092; background: #fffdf7; }
.calendar-card.status-superseded { opacity: .72; }
.calendar-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.calendar-card-head h3 { margin-top: 3px; }
.calendar-card > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.calendar-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 8px; }
.calendar-meta b { color: var(--ink); }
.calendar-source { padding-top: 9px; border-top: 1px solid var(--line-soft); font-size: 8px; }
.calendar-source a { color: var(--blue-ink); text-decoration: none; }
.calendar-source a:hover { text-decoration: underline; }
.calendar-card details { border: 1px solid var(--line-soft); border-radius: 9px; background: #fff; }
.calendar-card summary { padding: 9px 10px; cursor: pointer; color: var(--ink-2); font-size: 9px; font-weight: 800; }
.holiday-list { max-height: 270px; overflow: auto; border-top: 1px solid var(--line-soft); }
.holiday-list > div { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.holiday-list > div:last-child { border-bottom: 0; }
.holiday-list time { color: var(--muted); font-size: 8px; font-weight: 850; }
.holiday-list strong { font-size: 9px; }
.holiday-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }
.half-day { padding: 2px 4px; border-radius: 4px; color: var(--amber-ink); background: var(--amber); font-size: 7px; }
.coverage-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 16px; }
.coverage-status { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 11px; border: 1px solid #cfe2d6; border-radius: 11px; background: #f8fcf9; }
.coverage-status > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--mint-ink); background: var(--mint); font-size: 9px; font-weight: 900; }
.coverage-status strong { display: block; font-size: 10px; }
.coverage-status p { margin: 1px 0 0; color: var(--muted); font-size: 8px; }
.coverage-status > b { color: var(--mint-ink); }
.coverage-status.has-error { border-color: #efc8c2; background: #fff9f7; }
.coverage-status.has-error > span { color: var(--red-ink); background: var(--red); }
.coverage-status.has-error > b { color: var(--red-ink); }
.calendar-bottom-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.rest-load-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 14px 16px; }
.rest-load-grid > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; padding: 9px; border: 1px solid var(--line-soft); border-radius: 9px; }
.rest-load-grid span { font-size: 9px; font-weight: 800; }
.rest-load-grid strong { color: var(--mint-ink); font-size: 10px; }
.rest-load-grid small { grid-column: 1 / -1; color: var(--muted); font-size: 7px; }
.rest-load-grid .over-limit { border-color: #e8cd84; background: #fffaf0; }
.rest-load-grid .over-limit strong { color: var(--amber-ink); }
.rest-load-grid .has-exception { border-color: #b9cce4; background: #f3f8fd; }
.rest-load-grid .has-exception strong { color: var(--blue-ink); }
.policy-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.continuity-panel { grid-column: 1 / -1; }
.continuity-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 16px; }
.continuity-stats > div { padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fbfcfa; }
.continuity-stats span { display: block; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.continuity-stats strong { display: block; margin-top: 4px; color: var(--ink); font-size: 17px; }
.unit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 16px; }
.unit-grid > div { padding: 10px; border-radius: 10px; background: #f4f7f4; }
.unit-grid span { display: block; color: var(--muted); font-size: 8px; }
.unit-grid strong { display: block; margin-top: 3px; font-size: 16px; }
.budget-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 0 16px 14px; }
.budget-form label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 750; }
.budget-form input, .budget-form select { width: 100%; min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 9px; }
.budget-result { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line-soft); }
.budget-result > div { padding: 12px 16px; border-right: 1px solid var(--line-soft); }
.budget-result > div:last-child { border-right: 0; }
.budget-result span { display: block; color: var(--muted); font-size: 8px; }
.budget-result strong { display: block; margin-top: 2px; font-size: 12px; }
.budget-progress { height: 7px; margin: 14px 16px 8px; overflow: hidden; border-radius: 999px; background: var(--slate); }
.budget-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent-dark); }
.budget-panel > .source-note { display: block; margin: 0 16px 14px; }

.history-list { display: grid; }
.history-row { display: grid; grid-template-columns: 110px 26px minmax(0,1fr); gap: 10px; align-items: start; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.history-row:last-child { border-bottom: 0; }
.history-time { color: var(--muted); font-size: 9px; }
.history-dot { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: var(--mint-ink); background: var(--mint); font-size: 10px; font-weight: 900; }
.history-row strong { display: block; font-size: 10px; }
.history-row p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.revision-list { display: grid; }
.revision-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.revision-row:last-child { border-bottom: 0; }
.revision-index { display: grid; place-items: center; width: 34px; height: 28px; border-radius: 8px; color: var(--mint-ink); background: var(--mint); font-size: 9px; font-weight: 850; }
.revision-row strong { display: block; font-size: 10px; }
.revision-row p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }

.publication-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(120deg, #163a31, #2d6757);
}
.publication-hero .eyebrow { color: #b9d8cd; }
.publication-hero h2 { margin-top: 4px; font-size: 23px; }
.publication-hero p { margin: 4px 0 0; color: #cfe2db; font-size: 10px; }
.publication-hero .button { border-color: rgba(255,255,255,.26); color: #fff; }
.empty-publication { padding: 80px 20px; border: 1px dashed #c8d1cc; border-radius: 16px; background: var(--surface); text-align: center; }
.empty-publication > span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; color: var(--ink); background: var(--accent); font-size: 22px; }
.empty-publication p { margin: 5px auto 0; max-width: 380px; color: var(--muted); font-size: 11px; }

.modal {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 24px 90px rgba(12,35,29,.25);
}
.modal::backdrop { background: rgba(10,30,25,.45); backdrop-filter: blur(3px); }
.modal form { padding: 20px; }
.modal-small { width: min(430px, calc(100vw - 32px)); }
.modal-wide { width: min(720px, calc(100vw - 32px)); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.eyebrow { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.modal label { display: grid; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: 10px; font-weight: 750; }
.modal input, .modal select, .modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; color: var(--ink); background: #fff; outline: none; resize: vertical; }
.modal input:focus, .modal select:focus, .modal textarea:focus { border-color: #8ebd2b; box-shadow: 0 0 0 3px rgba(203,255,85,.22); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shift-choice-fieldset { margin: 2px 0 13px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.shift-choice-fieldset legend { padding: 0 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.shift-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.weekday-choice-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.weekday-choice-grid label { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 10px; font-weight: 700; }
.planner-insights { border: 1px solid var(--line); border-radius: 14px; background: #f8faf7; overflow: hidden; }
.planner-insights > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; cursor: pointer; color: var(--ink); font-size: 12px; font-weight: 800; list-style: none; }
.planner-insights > summary::-webkit-details-marker { display: none; }
.planner-insights > summary::after { content: "+"; color: var(--muted); font-size: 18px; }
.planner-insights[open] > summary::after { content: "−"; }
.planner-insights > summary small { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 500; }
.planner-insights-content { display: grid; gap: 14px; padding: 0 14px 14px; }
.modal .shift-choice { grid-template-columns: auto 1fr; align-items: center; gap: 8px; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fafbf9; cursor: pointer; }
.modal .shift-choice input { width: auto; margin: 0; }
.shift-choice span, .shift-choice strong, .shift-choice small { display: block; }
.shift-choice strong { font-size: 9px; }
.shift-choice small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.identity-summary { display: flex; align-items: center; gap: 11px; margin: -3px 0 15px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf9; }
.identity-summary > div { display: grid; gap: 3px; }
.identity-summary strong { font-size: 11px; }
.identity-summary small { color: var(--muted); font-size: 9px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal-copy { margin: -5px 0 15px; color: var(--muted); font-size: 11px; }
.export-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.export-option:hover { border-color: #adbd73; background: #fbfdf4; }
.export-option b, .export-option small { display: block; }
.export-option b { font-size: 11px; }
.export-option small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.export-option strong { font-size: 18px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 360px; padding: 11px 14px; border-radius: 10px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 11px; font-weight: 700; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .22s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.demand-bar.size-10 { height: 10%; } .demand-bar.size-15 { height: 15%; }
.demand-bar.size-20 { height: 20%; } .demand-bar.size-25 { height: 25%; }
.demand-bar.size-30 { height: 30%; } .demand-bar.size-35 { height: 35%; }
.demand-bar.size-40 { height: 40%; } .demand-bar.size-45 { height: 45%; }
.demand-bar.size-50 { height: 50%; } .demand-bar.size-55 { height: 55%; }
.demand-bar.size-60 { height: 60%; } .demand-bar.size-65 { height: 65%; }
.demand-bar.size-70 { height: 70%; } .demand-bar.size-75 { height: 75%; }
.demand-bar.size-80 { height: 80%; } .demand-bar.size-85 { height: 85%; }
.demand-bar.size-90 { height: 90%; } .demand-bar.size-95 { height: 95%; }
.demand-bar.size-100 { height: 100%; }
.budget-progress .size-0 { width: 0; } .budget-progress .size-5 { width: 5%; }
.budget-progress .size-10 { width: 10%; } .budget-progress .size-15 { width: 15%; }
.budget-progress .size-20 { width: 20%; } .budget-progress .size-25 { width: 25%; }
.budget-progress .size-30 { width: 30%; } .budget-progress .size-35 { width: 35%; }
.budget-progress .size-40 { width: 40%; } .budget-progress .size-45 { width: 45%; }
.budget-progress .size-50 { width: 50%; } .budget-progress .size-55 { width: 55%; }
.budget-progress .size-60 { width: 60%; } .budget-progress .size-65 { width: 65%; }
.budget-progress .size-70 { width: 70%; } .budget-progress .size-75 { width: 75%; }
.budget-progress .size-80 { width: 80%; } .budget-progress .size-85 { width: 85%; }
.budget-progress .size-90 { width: 90%; } .budget-progress .size-95 { width: 95%; }
.budget-progress .size-100 { width: 100%; }

.session-control {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 6px 5px 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.session-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--ink);
  background: var(--accent);
  font-size: 9px;
  font-weight: 900;
}
.session-control strong, .session-control small { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-control strong { font-size: 10px; }
.session-control small { margin-top: 1px; color: var(--muted); font-size: 8px; }
.session-logout { width: 30px; height: 30px; color: var(--muted); }

.replan-impact {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-color: #dfc46a;
  background: linear-gradient(115deg, #fffdf7, #fff9e4);
}
.replan-impact::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}
.replan-impact.needs-attention { border-color: #edb8b0; background: linear-gradient(115deg, #fffafa, #fff5f1); }
.replan-impact.needs-attention::before { background: #d75c4d; }
.replan-impact-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.replan-impact-head h3 { margin-top: 4px; font-size: 16px; }
.replan-impact-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.replan-scoreboard { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.replan-scoreboard > div { padding: 10px 11px; border: 1px solid rgba(169,113,0,.14); border-radius: 10px; background: rgba(255,255,255,.78); }
.replan-scoreboard strong, .replan-scoreboard span { display: block; }
.replan-scoreboard strong { color: var(--ink); font-size: 18px; line-height: 1; }
.replan-scoreboard span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.replan-scoreboard .is-bad strong { color: var(--red-ink); }
.replan-scoreboard .is-good strong { color: var(--mint-ink); }
.replan-checks { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.replan-checks span { padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 800; }
.replan-checks .passed { color: var(--mint-ink); background: var(--mint); }
.replan-checks .passed::before { content: "✓ "; }
.replan-checks .failed { color: var(--red-ink); background: var(--red); }
.replan-checks .failed::before { content: "! "; }
.replan-details { margin-top: 12px; border-top: 1px solid rgba(169,113,0,.15); }
.replan-details summary { padding-top: 11px; cursor: pointer; font-size: 9px; font-weight: 850; }
.replan-change-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px 14px; margin-top: 10px; }
.replan-change-list > div { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(169,113,0,.1); }
.replan-change-list time { color: var(--muted); font-size: 8px; }
.replan-change-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.replan-change-list span { color: var(--muted); font-size: 8px; }
.replan-no-change { margin: 11px 0 0; color: var(--muted); font-size: 9px; }
.shift-cell.was-replanned, .month-day.was-replanned { box-shadow: inset 0 0 0 2px #dcb02c; }
.month-day.was-replanned::after { content: "Adaptado"; position: absolute; right: 5px; bottom: 5px; padding: 2px 5px; border-radius: 999px; color: #604300; background: #ffe78c; font-size: 6px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }

.member-mode .sidebar { background: radial-gradient(circle at 20% 0, rgba(243,202,69,.18), transparent 30%), #151714; }
.member-mode .main-nav { margin-top: 10px; }
.member-mode .nav-item { color: #fff; background: rgba(255,255,255,.07); }
.member-mode .breadcrumb { color: #8a938e; }
.member-publication-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(243,202,69,.25), transparent 26%),
    linear-gradient(120deg, #111, #29302c);
}
.member-publication-hero::after {
  content: "G";
  position: absolute;
  right: 28px;
  bottom: -44px;
  color: rgba(255,255,255,.035);
  font-family: Georgia, serif;
  font-size: 150px;
  line-height: 1;
  pointer-events: none;
}
.published-lock { position: relative; z-index: 1; padding: 8px 11px; border: 1px solid rgba(243,202,69,.45); border-radius: 999px; color: #ffe995; background: rgba(0,0,0,.2); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.member-toolbar { align-items: end; }
.member-toolbar > label { min-width: 230px; }
.member-toolbar-actions { display: flex; align-items: end; gap: 10px; margin-left: auto; }
.member-official-panel { overflow: hidden; }
.member-month-day { text-align: left; cursor: pointer; }
.member-month-day:hover { z-index: 1; background: #fffdf6; box-shadow: inset 0 0 0 1px #e3c55d; }
.member-shift-group { margin-top: 6px; }
.member-roster-table .shift-box { min-height: 49px; display: grid; align-content: center; gap: 3px; }
.member-roster-table .shift-box > strong { font-size: 9px; }
.member-roster-table .shift-off > strong { color: #9aa6a1; }
.member-empty-publication { margin-top: 8vh; border-color: #d9c77f; }
.member-empty-publication > span { color: var(--graphite); background: var(--accent); }

.badge-action { color: var(--blue-ink); background: var(--blue); }
.validation-center-link { width: 100%; justify-content: center; margin-top: 10px; }
.validation-page, .validation-groups { display: grid; gap: 16px; }
.view-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.view-heading h2 { margin: 4px 0 4px; font-size: 23px; letter-spacing: -.025em; }
.view-heading p { max-width: 690px; margin: 0; color: var(--muted); font-size: 11px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.validation-group { overflow: hidden; }
.validation-list { display: grid; }
.validation-alert {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(150px, 230px);
  align-items: start;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
  border-left: 3px solid transparent;
}
.validation-alert.severity-critical { border-left-color: #db6a59; }
.validation-alert.severity-action { border-left-color: #688ec0; }
.validation-alert.severity-warning { border-left-color: #d4a840; }
.validation-alert.is-resolved { opacity: .68; border-left-color: #9fb1aa; }
.validation-alert-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--ink);
  background: var(--slate);
  font-weight: 900;
}
.severity-critical .validation-alert-icon { color: var(--red-ink); background: var(--red); }
.severity-action .validation-alert-icon { color: var(--blue-ink); background: var(--blue); }
.severity-warning .validation-alert-icon { color: var(--amber-ink); background: var(--amber); }
.validation-alert-copy { min-width: 0; }
.validation-alert-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.validation-alert-head strong { font-size: 11px; }
.validation-alert-copy p, .validation-owner p { margin: 4px 0; color: var(--muted); font-size: 10px; }
.validation-alert-copy small { color: #91a09a; font-size: 8px; }
.validation-owner { padding-left: 12px; border-left: 1px solid var(--line-soft); }
.validation-owner span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.validation-owner strong { display: block; margin-top: 2px; font-size: 10px; }
.compact-empty { padding-block: 24px; border-top: 1px solid var(--line-soft); }

@media (max-width: 1180px) {
  .planner-grid { grid-template-columns: 1fr; }
  .issues-panel { position: static; }
  .issues-list { grid-template-columns: repeat(2, minmax(0,1fr)); max-height: none; }
  .rules-layout { grid-template-columns: 1fr; }
  .connector-grid { grid-template-columns: 1fr; }
  .calendar-bottom-grid { grid-template-columns: 1fr; }
  .continuity-stats { grid-template-columns: 1fr; }
  .author-control { display: none; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 72px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand > div:last-child, .nav-item span:last-child, .sidebar-card { display: none; }
  .nav-item { justify-content: center; padding-inline: 0; }
  .nav-icon { width: auto; }
  .nav-item.is-active::after { display: none; }
  .topbar { padding-inline: 20px; }
  .view-root { padding-inline: 20px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .planner-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions { flex-wrap: wrap; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-card { align-items: stretch; flex-direction: column; }
  .workflow-actions { justify-content: flex-end; }
  .coverage-strip { grid-template-columns: repeat(4, 1fr); }
  .coverage-day { border-bottom: 1px solid var(--line-soft); }
  .calendar-registry { grid-template-columns: 1fr; }
  .coverage-status-grid { grid-template-columns: 1fr; }
  .budget-form { grid-template-columns: repeat(2, 1fr); }
  .view-heading { align-items: stretch; flex-direction: column; }
  .validation-alert { grid-template-columns: 32px minmax(0,1fr); }
  .validation-owner { grid-column: 2; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .replan-scoreboard { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .member-toolbar-actions { width: 100%; margin-left: 0; }
}

@media (max-width: 560px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: auto 0 0 0; z-index: 20; width: auto; height: 62px; padding: 8px 12px; flex-direction: row; background: var(--ink); }
  .brand, .sidebar-card { display: none; }
  .main-nav { width: 100%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .nav-item { min-width: 0; padding: 8px; }
  .nav-item span:last-child { display: none; }
  .topbar { height: auto; min-height: 82px; padding: 15px; }
  .topbar-actions .button-ghost { display: none; }
  h1 { font-size: 20px; }
  .view-root { padding: 15px 15px 88px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 93px; padding: 13px; }
  .metric-value { font-size: 22px; }
  .week-control { width: 100%; }
  .week-label { min-width: 0; flex: 1; }
  .toolbar-actions > label { flex: 1; }
  .control { width: 100%; }
  .issues-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .shift-choice-grid { grid-template-columns: 1fr; }
  .weekday-choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .planner-insights > summary small { display: none; }
  .topbar-actions .button { padding-inline: 10px; }
  .workflow-copy { align-items: flex-start; }
  .workflow-actions { display: grid; grid-template-columns: 1fr; }
  .coverage-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: 1fr; }
  .publication-hero { align-items: flex-start; flex-direction: column; }
  .calendar-toolbar { display: grid; grid-template-columns: 1fr; }
  .calendar-toolbar label, .calendar-toolbar .control { width: 100%; }
  .unit-grid, .budget-form, .budget-result { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 26px 20px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .member-mode .main-nav { grid-template-columns: 1fr; }
  .replan-scoreboard { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .replan-change-list { grid-template-columns: 1fr; }
  .member-toolbar-actions { align-items: stretch; flex-direction: column; }
  .member-toolbar-actions > div, .member-toolbar-actions > label { width: 100%; }
}
