:root {
  color-scheme: light;
  --primary: #115E75;
  --primary-2: #3E8CA7;
  --sky: #80B9D2;
  --green: #7EB9B2;
  --black: #0A0A0A;
  --gray: #616161;
  --silver: #C2C2C2;
  --bg: #f6f9fa;
  --panel: #ffffff;
  --line: #dbe5e8;
  --soft: #eef6f8;
  --soft-green: #eef8f6;
  --danger: #a6342d;
  --warn: #986018;
  --ok: #1e765b;
  --shadow: 0 12px 30px rgba(10, 10, 10, 0.07);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden],
.hidden {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font: 14px/1.45 var(--font);
}

button,
input,
select {
  font: inherit;
}

button {
  align-items: center;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
}

button:hover:not(:disabled) {
  background: #0d4c5f;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button.secondary,
.tab-button {
  background: #fff;
  color: var(--primary);
}

button.secondary:hover:not(:disabled),
.tab-button:hover:not(:disabled) {
  background: var(--soft);
}

.tab-button.active,
.tab-button[aria-selected="true"] {
  background: var(--primary);
  color: #fff;
}

.icon-button {
  border-radius: 999px;
  font-size: 22px;
  height: 42px;
  padding: 0;
  width: 42px;
}

input,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--black);
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(128, 185, 210, 0.45);
  outline-offset: 2px;
}

code {
  background: var(--soft);
  border-radius: 5px;
  padding: 1px 5px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1.14;
  margin-bottom: 4px;
}

h2 {
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 4px;
}

label,
.field-label {
  color: var(--gray);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
}

.muted,
.status-text,
.user-chip {
  color: var(--gray);
}

.status-text {
  margin: 0;
}

.good-message {
  color: var(--ok);
  font-weight: 700;
}

.warn-message {
  color: var(--warn);
  font-weight: 700;
}

.bad-message,
.bad-account {
  color: var(--danger);
  font-weight: 700;
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.app-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  padding: 14px clamp(16px, 4vw, 36px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.login-brand {
  align-items: center;
  color: var(--primary);
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  max-height: 42px;
  max-width: 210px;
  object-fit: contain;
}

.brand-fallback {
  color: var(--primary);
  font-size: 18px;
}

.top-tabs,
.header-actions,
.button-row,
.section-heading,
.date-controls,
.add-row,
.inline-form,
.template-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-tabs {
  justify-content: center;
}

.header-actions {
  justify-content: flex-end;
}

.layout {
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 1560px;
  padding: 12px clamp(12px, 3vw, 26px) 32px;
}

.app-shell {
  display: block;
}

.panel,
.notice-panel,
.empty-panel,
.metric-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel,
.notice-panel,
.empty-panel {
  padding: 16px;
}

.compact-panel {
  padding: 13px 16px;
}

.empty-panel {
  margin: 40px auto;
  max-width: 620px;
}

.daily-hero {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px;
}

.daily-hero .eyebrow,
.daily-hero .muted,
.daily-hero label {
  color: rgba(255, 255, 255, 0.82);
}

.daily-hero input {
  border-color: rgba(255, 255, 255, 0.65);
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: grid;
  gap: 10px;
}

.daily-command-bar {
  align-items: center;
  display: grid;
  gap: 8px 14px;
  grid-template-columns: minmax(320px, 1fr) max-content max-content;
  padding: 6px 10px;
}

.daily-date-block {
  align-self: center;
  display: grid;
  gap: 1px;
  min-width: 0;
}

.daily-date-block strong {
  font-size: 17px;
  line-height: 1.15;
}

.daily-date-block span {
  color: var(--gray);
  font-size: 13px;
  font-weight: 500;
}

.daily-user-line {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-user-line strong {
  color: var(--primary);
  font-size: 13px;
}

.daily-meta-line {
  align-items: center;
  align-self: center;
  display: flex;
  gap: 6px;
  justify-content: center;
  min-width: 0;
}

.daily-meta-line span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
  align-items: center;
  display: inline-flex;
  height: 30px;
  padding: 3px 10px;
  white-space: nowrap;
}

.daily-meta-line strong {
  color: var(--black);
  font-size: 13px;
  margin-right: 3px;
}

.compact-chip {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 5px;
  min-height: 28px;
  max-width: 260px;
  padding: 4px 9px;
}

.compact-chip span {
  color: var(--gray);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.compact-chip strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-chip.wide-chip {
  border-radius: 7px;
  max-width: 360px;
}

.daily-control-row {
  align-items: center;
  align-self: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.daily-control-row .admin-user-selector {
  align-items: center;
  display: inline-flex;
  min-width: 0;
}

.daily-control-row .date-controls {
  align-items: center;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.daily-control-row .date-controls label {
  margin: 0;
}

.daily-control-row input,
.daily-control-row select {
  height: 35px;
  min-height: 35px;
  padding: 4px 8px;
}

.daily-control-row .compact-icon-button {
  aspect-ratio: 1;
  border-radius: 8px;
  font-size: 16px;
  height: 35px;
  min-height: 35px;
  padding: 0;
  width: 35px;
}

.daily-control-row .compact-toggle {
  height: 35px;
  min-height: 35px;
  padding: 4px 10px;
}

.compact-weekend-strip {
  grid-column: 1 / -1;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: end;
}

.row-panel {
  padding: 9px 10px 12px;
}

.row-toolbar {
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.row-toolbar h2 {
  font-size: 15px;
}

.row-toolbar .muted {
  font-size: 12px;
}

.view-heading {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.context-panel {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 1fr) minmax(340px, auto);
}

.context-copy h1 {
  font-size: 22px;
}

.context-controls {
  display: grid;
  gap: 12px;
}

.admin-user-selector {
  min-width: min(420px, 100%);
}

.context-details {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.context-details div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.context-details span {
  color: var(--gray);
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.context-details strong {
  display: block;
  font-size: 13px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  border-right: 1px solid var(--line);
  padding: 14px 16px;
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  color: var(--gray);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  font-size: 25px;
  line-height: 1.2;
  margin-top: 3px;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 12px;
}

.add-row {
  flex: 1 1 340px;
  justify-content: flex-end;
}

.add-row input,
.row-sort-control select {
  max-width: 340px;
}

.row-sort-control {
  min-width: 210px;
}

.checkbox-control {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.account-picker {
  min-width: min(340px, 100%);
  position: relative;
}

.account-picker input {
  width: 100%;
}

.account-picker-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  left: 0;
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 12;
}

.account-result {
  background: #fff;
  border: 1px solid transparent;
  color: var(--black);
  display: grid;
  gap: 2px;
  justify-content: stretch;
  min-height: 0;
  padding: 8px;
  text-align: left;
}

.account-result:hover:not(:disabled) {
  background: var(--soft);
}

.account-result strong,
.account-result span {
  overflow-wrap: anywhere;
}

.account-result span {
  color: var(--gray);
  font-size: 12px;
  font-weight: 500;
}

.account-picker-note {
  color: var(--gray);
  font-size: 12px;
  padding: 8px;
}

.field-note {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  margin-top: 4px;
  text-transform: none;
}

.import-diagnostics {
  display: grid;
  gap: 6px;
}

.diagnostic-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.diagnostic-grid div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
}

.diagnostic-grid span {
  color: var(--gray);
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.diagnostic-grid strong {
  display: block;
  font-size: 14px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.diagnostic-results {
  display: grid;
  gap: 6px;
}

.diagnostic-result-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  max-height: 260px;
  overflow: auto;
}

.diagnostic-result-item {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding: 8px;
}

.diagnostic-result-item:last-child {
  border-bottom: 0;
}

.diagnostic-result-item span {
  color: var(--gray);
  font-size: 12px;
}

.mapping-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  white-space: nowrap;
}

.mapping-pill.complete {
  background: var(--soft-green);
  color: var(--ok);
}

.mapping-pill.missing {
  background: #fff7ee;
  color: var(--warn);
}

.weekend-strip,
.day-summary,
.summary-columns,
.admin-grid,
.warning-grid {
  display: grid;
  gap: 12px;
}

.weekend-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weekend-day,
.day-card,
.summary-item,
.warning-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.weekend-day {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.time-row-list {
  display: grid;
  gap: 5px;
}

.weekly-entry-grid {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
}

.weekly-entry-header,
.weekly-entry-row {
  align-items: center;
  display: grid;
  column-gap: 8px;
  grid-template-columns: minmax(260px, 1fr) 112px repeat(var(--entry-day-count), 82px) 76px 42px;
  min-height: 48px;
  min-width: calc(492px + (var(--entry-day-count) * 90px));
}

.weekly-entry-header {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  color: var(--gray);
  font-size: 11px;
  font-weight: 800;
  padding: 7px;
  text-transform: uppercase;
}

.weekly-entry-header > div {
  text-align: center;
}

.weekly-entry-header > div:first-child,
.weekly-entry-header > div:nth-child(2) {
  text-align: left;
}

.weekly-entry-header > div:nth-last-child(2) {
  text-align: right;
}

.weekly-entry-row {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 5px 7px;
}

.weekly-entry-row:last-child {
  border-bottom: 0;
}

.weekly-entry-row.read-only {
  background: #f9fbfb;
}

.grid-hours-input {
  min-height: 30px;
  width: 100%;
}

.row-total {
  font-size: 13px;
  text-align: right;
}

.time-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(310px, 1.8fr) minmax(108px, 0.42fr) 76px minmax(86px, 0.35fr) 54px;
  padding: 4px 7px;
  position: relative;
}

.time-row.read-only,
.time-row.unlinked {
  background: #f9fbfb;
}

.time-row.unlinked {
  border-color: #e6c8a5;
}

.account-name {
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-main-line {
  align-items: start;
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  min-width: 0;
}

.link-pill {
  background: var(--soft-green);
  border: 1px solid #c9e8e2;
  border-radius: 999px;
  color: var(--ok);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  text-transform: uppercase;
}

.link-pill.unlinked {
  background: #fff7ee;
  border-color: #e6c8a5;
  color: var(--warn);
}

.account-detail {
  color: var(--gray);
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-mini-button,
.micro-button {
  border-radius: 999px;
  font-size: 11px;
  min-height: 24px;
  padding: 2px 7px;
}

.icon-mini-button {
  background: #fff;
  border-color: var(--line);
  color: var(--primary);
  flex: 0 0 auto;
}

.icon-mini-button:hover:not(:disabled) {
  background: var(--soft);
}

.row-account-editor {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 560px;
  padding-top: 4px;
}

.row-account-picker {
  max-width: 560px;
  min-width: 0;
}

.row-account-picker input {
  min-height: 28px;
  padding: 4px 8px;
}

.hours-input {
  font-size: 16px;
  font-weight: 800;
  min-height: 28px;
  padding: 3px 6px;
  text-align: right;
}

.row-actions {
  display: grid;
  gap: 4px;
  min-width: 116px;
  padding: 5px;
}

.row-actions button {
  border-radius: 6px;
  font-size: 12px;
  min-height: 26px;
  padding: 3px 6px;
  justify-content: flex-start;
}

.approval-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.row-action-menu {
  align-self: center;
  justify-self: end;
  position: relative;
}

.row-action-menu summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
  height: 30px;
  min-height: 30px;
  padding: 2px 8px;
  width: 30px;
}

.row-action-menu summary::-webkit-details-marker {
  display: none;
}

.row-action-menu[open] summary,
.row-action-menu summary:hover {
  background: var(--soft);
}

.row-action-menu .row-actions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
}

.account-type-cell {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.account-type-cell span {
  color: var(--gray);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-type-cell strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-save-status {
  font-size: 12px;
}

.danger-button {
  border-color: #d8aaa5;
  color: var(--danger) !important;
}

.day-summary {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.day-card {
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 70px;
  padding: 9px;
  text-align: left;
}

.day-card.active {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.day-card .day-label,
.summary-item span,
.warning-card span {
  color: var(--gray);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.day-card strong,
.summary-item strong,
.warning-card strong {
  display: block;
  font-size: 21px;
  margin-top: 4px;
}

.day-card strong {
  color: var(--primary);
  font-size: 21px;
  line-height: 1.1;
  margin-top: 0;
}

.summary-columns {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 16px;
}

.weekly-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.weekly-account-section,
.weekly-warning-section {
  margin-top: 16px;
}

.weekly-table {
  font-size: 12px;
  min-width: 960px;
}

.weekly-table th,
.weekly-table td {
  padding: 7px 8px;
}

.numeric-cell {
  text-align: right;
  white-space: nowrap;
}

.stale-account-row td {
  color: var(--warn);
}

.active-week-row td {
  background: var(--soft);
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--primary);
  min-height: 0;
  padding: 0;
  text-decoration: underline;
}

.summary-list {
  display: grid;
  gap: 6px;
}

.summary-notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary-2);
  border-radius: 6px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
}

.summary-notice span {
  color: var(--gray);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-notice strong {
  font-size: 13px;
}

.summary-notice p {
  color: var(--gray);
  font-size: 12px;
  margin: 0;
}

.summary-notice.warn {
  background: #fffaf2;
  border-left-color: var(--warn);
}

.summary-notice.block {
  background: #fff7f5;
  border-left-color: var(--danger);
}

.summary-notice.info {
  background: #f7fbfc;
}

.admin-workspace {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 170px minmax(0, 1fr);
}

.admin-subnav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  padding: 6px;
  position: sticky;
  top: 76px;
}

.admin-subnav-button {
  background: transparent;
  border-color: transparent;
  border-radius: 6px;
  color: var(--gray);
  justify-content: flex-start;
  min-height: 34px;
  padding: 6px 9px;
}

.admin-subnav-button:hover:not(:disabled),
.admin-subnav-button.active {
  background: var(--soft);
  color: var(--primary);
}

.admin-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-section.active {
  display: grid;
  gap: 12px;
}

.admin-section-title {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.admin-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid {
  align-items: start;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.wide-panel {
  grid-column: 1 / -1;
}

.admin-card {
  display: grid;
  gap: 10px;
  grid-column: span 6;
  min-width: 0;
}

.table-wrap,
.preview-box,
.template-list {
  overflow: auto;
}

.table-wrap {
  max-height: min(58vh, 620px);
}

table {
  border-collapse: collapse;
  width: 100%;
}

.data-table {
  min-width: 900px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fbfc;
  color: var(--gray);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-box {
  max-height: 360px;
}

.preview-table {
  font-size: 12px;
  min-width: 680px;
}

.template-toolbar {
  justify-content: space-between;
}

.template-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: 70px minmax(180px, 1fr) 160px 90px minmax(260px, 1.2fr);
  padding: 8px 0;
}

.template-row:last-child {
  border-bottom: 0;
}

.template-account-cell {
  display: grid;
  gap: 7px;
}

.template-account-display {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 8px;
}

.template-account-display strong {
  overflow-wrap: anywhere;
}

.template-account-display span {
  color: var(--gray);
  font-size: 12px;
}

.template-account-actions {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.inline-form {
  align-items: end;
}

.inline-form input,
.inline-form select {
  min-width: 180px;
  width: auto;
}

.warning-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 12px;
}

.warning-card ul {
  margin: 5px 0 0;
  padding-left: 16px;
}

.warning-card {
  border-left: 4px solid var(--primary-2);
  box-shadow: none;
  padding: 9px 10px;
}

.warning-card span {
  color: var(--gray);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.warning-card p,
.warning-card li {
  color: var(--gray);
  font-size: 12px;
}

.empty-state {
  color: var(--gray);
  padding: 22px;
  text-align: center;
}

.login-body {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(17, 94, 117, 0.08), rgba(126, 185, 178, 0.18)),
    var(--bg);
  display: flex;
  min-height: 100vh;
}

.login-shell {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 460px;
  padding: 18px;
  width: 100%;
}

.login-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 13px;
  padding: 20px;
}

@media (max-width: 980px) {
  .app-header {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .top-tabs,
  .header-actions {
    justify-content: flex-start;
  }

  .daily-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-command-bar,
  .admin-workspace {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .daily-control-row {
    justify-content: flex-start;
  }

  .compact-weekend-strip {
    grid-template-columns: 1fr;
  }

  .context-panel,
  .context-details {
    grid-template-columns: 1fr;
  }

  .metric-row,
  .weekly-kpis,
  .admin-card-grid,
  .weekend-strip,
  .day-summary,
  .summary-columns,
  .admin-grid,
  .diagnostic-grid,
  .warning-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .time-row {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .admin-card {
    grid-column: 1 / -1;
  }

  .template-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .date-controls,
  .add-row,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .add-row input,
  .row-sort-control,
  .row-sort-control select,
  .account-picker,
  .inline-form input,
  .inline-form select {
    max-width: none;
    width: 100%;
  }

  .account-detail,
  .account-type-cell strong {
    white-space: normal;
  }
}
