:root {
  --background: #f4ede4;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-muted: rgba(255, 255, 255, 0.72);
  --ink: #1d2b24;
  --ink-soft: #53635b;
  --border: rgba(39, 58, 47, 0.12);
  --border-strong: rgba(39, 58, 47, 0.2);
  --accent: #2e6a43;
  --accent-strong: #1f5535;
  --accent-soft: #e0f0e5;
  --warning: #c56a1e;
  --danger: #9f3d32;
  --shadow: 0 16px 36px rgba(31, 53, 41, 0.1);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(252, 214, 142, 0.28), transparent 28%),
    radial-gradient(circle at bottom right, rgba(67, 122, 83, 0.22), transparent 26%),
    linear-gradient(180deg, #f8f3ec 0%, #efe5d8 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.auth-shell-body,
.app-shell-body {
  min-height: 100vh;
}

.app-shell-body.sidebar-open {
  overflow: hidden;
}

.auth-shell,
.app-main,
.sidebar,
.auth-card,
.auth-hero,
.card,
.table-card,
.stat-card,
.brand-card,
.topbar,
.user-pill {
  backdrop-filter: blur(18px);
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.auth-grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.auth-grid-compact {
  grid-template-columns: 1fr 0.9fr;
}

.auth-hero,
.auth-card,
.card,
.table-card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.auth-hero {
  padding: 44px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.6s ease;
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -15% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 193, 92, 0.3), rgba(46, 106, 67, 0.08));
}

.auth-card {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  animation: fadeUp 0.75s ease;
}

.eyebrow {
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.muted-text,
.auth-copy,
.nav-label,
.field-note,
.table-subtitle,
.stat-label,
.user-pill-meta {
  color: var(--ink-soft);
}

.auth-hero h1,
.auth-card h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

.auth-card h2 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.metric-chip {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(39, 58, 47, 0.08);
}

.metric-value {
  display: block;
  font-weight: 800;
}

.metric-label {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.auth-highlight-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.auth-hero-gallery {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 196, 85, 0.34), transparent 34%),
    linear-gradient(160deg, #1f3327 0%, #254633 52%, #31573f 100%);
}

.auth-hero-gallery::after {
  display: none;
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8f2e9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-columns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 430px;
  height: auto;
}

.gallery-column {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
}

.gallery-column::before,
.gallery-column::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}

.gallery-column::before {
  top: 0;
  background: linear-gradient(180deg, rgba(32, 59, 43, 0.92), rgba(32, 59, 43, 0));
}

.gallery-column::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(32, 59, 43, 0.92), rgba(32, 59, 43, 0));
}

.gallery-strip {
  display: grid;
  gap: 12px;
}

.gallery-column-up .gallery-strip {
  animation: galleryUp 18s linear infinite;
}

.gallery-column-down .gallery-strip {
  animation: galleryDown 18s linear infinite;
}

.gallery-card {
  position: relative;
  margin: 0;
  height: 188px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 16px 28px rgba(10, 19, 14, 0.24);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 19, 14, 0.7) 100%);
}

.gallery-card figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.auth-form,
.stacked-form {
  display: grid;
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.attachment-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 243, 236, 0.72), rgba(255, 255, 255, 0.88));
  border: 1px dashed rgba(39, 58, 47, 0.18);
}

.attachment-card-copy .field-note {
  margin-bottom: 0;
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.attachment-chip {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
  width: min(100%, 220px);
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(39, 58, 47, 0.1);
  box-shadow: 0 8px 18px rgba(31, 53, 41, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.attachment-thumb {
  display: block;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(39, 58, 47, 0.1);
  background: #ffffff;
}

.attachment-chip strong {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-chip span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.2;
}

.attachment-chip:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(46, 106, 67, 0.24);
  box-shadow: 0 12px 24px rgba(31, 53, 41, 0.08);
}

.sheet-entry-table td,
.sheet-entry-table th {
  white-space: nowrap;
}

.sheet-entry-input {
  width: 100%;
  min-width: 120px;
  padding: 11px 12px;
  border-radius: 10px;
}

.sheet-entry-file-input {
  width: 100%;
  min-width: 180px;
  font-size: 0.82rem;
}

.sheet-inline-upload {
  margin-top: 10px;
}

.sheet-entry-fixed {
  white-space: normal;
  min-width: 180px;
}

.sheet-inline-attachments {
  margin-top: 8px;
  gap: 6px;
}

.sheet-inline-attachment-chip {
  width: 128px;
  padding: 6px 8px;
  border-radius: 9px;
  box-shadow: none;
}

.sheet-inline-attachment-chip strong {
  font-size: 0.76rem;
}

.sheet-inline-attachment-chip span {
  font-size: 0.66rem;
}

.topbar-copy,
.page-actions,
.topbar-actions,
.sheet-header > *,
.table-card-header > *,
.card-header > *,
.dashboard-hero-copy,
.dashboard-pill-row,
.sheet-toolbar,
.sheet-mandi-tabs {
  min-width: 0;
}

.sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sheet-mandi-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.sheet-mandi-tabs::-webkit-scrollbar {
  height: 6px;
}

.sheet-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(39, 58, 47, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.sheet-tab-link:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.sheet-tab-link.is-active {
  background: linear-gradient(135deg, var(--accent), #4f8b58);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(46, 106, 67, 0.18);
}

.sheet-entry-action-cell {
  width: 132px;
  text-align: center;
  white-space: nowrap;
}

.sheet-row-toggle-button {
  min-width: 38px;
  width: 38px;
  height: 38px;
}

.sheet-grid-summary-row td {
  background: rgba(255, 255, 255, 0.38);
}

.sheet-entry-inline-form-row td {
  padding: 12px;
  vertical-align: top;
  background: linear-gradient(180deg, rgba(246, 241, 231, 0.92), rgba(255, 255, 255, 0.96));
  border-bottom: 1px solid rgba(39, 58, 47, 0.08);
}

.sheet-inline-flag-cell {
  width: 72px;
}

.sheet-inline-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(46, 106, 67, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sheet-inline-hint {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.sheet-inline-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sheet-entry-previous-row td {
  background: rgba(255, 255, 255, 0.2);
  color: var(--ink-soft);
}

.sheet-entry-launch-row td {
  background: rgba(255, 255, 255, 0.12);
  border-bottom: 1px dashed rgba(39, 58, 47, 0.12);
}

.sheet-entry-launch-copy {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.button-compact {
  padding: 10px 16px;
  font-size: 0.9rem;
  min-width: 96px;
}

.button-icon {
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
}

label {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(46, 106, 67, 0.7);
  box-shadow: 0 0 0 4px rgba(46, 106, 67, 0.14);
  transform: translateY(-1px);
}

.button,
button,
input[type="submit"] {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.button-primary,
input[type="submit"] {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #4f8b58);
  box-shadow: 0 10px 20px rgba(46, 106, 67, 0.18);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border: 1px solid var(--border);
}

.button-secondary {
  background: rgba(46, 106, 67, 0.09);
  color: var(--accent-strong);
}

.button-danger {
  background: rgba(159, 61, 50, 0.12);
  color: var(--danger);
}

.button-block {
  width: 100%;
}

.text-link {
  font-weight: 700;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

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

.auth-footer {
  padding-top: 4px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 22px 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 208, 108, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(22, 37, 28, 0.98) 0%, rgba(30, 50, 38, 0.96) 42%, rgba(22, 36, 28, 0.98) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.96);
}

.sidebar-mobile-header,
.mobile-nav-button,
.sidebar-overlay {
  display: none;
}

.sidebar-mobile-header {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.sidebar-mobile-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.sidebar-close-button {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.sidebar-close-button span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.sidebar-close-button span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sidebar-close-button span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.brand-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 18px;
}

.brand-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 120, 0.22), rgba(255, 210, 120, 0));
}

.brand-top,
.brand-tags {
  position: relative;
  z-index: 1;
}

.brand-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brand-card h1 {
  margin-bottom: 8px;
  font-size: 1.8rem;
  line-height: 1;
  color: #ffffff;
}

.brand-copy {
  position: relative;
  z-index: 1;
}

.brand-copy .eyebrow {
  margin-bottom: 8px;
  color: rgba(213, 231, 220, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.brand-copy-text,
.nav-label {
  color: rgba(255, 255, 255, 0.68);
}

.brand-copy-text {
  max-width: 20ch;
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.48;
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(140deg, rgba(255, 201, 96, 0.95), rgba(115, 176, 106, 0.92));
  box-shadow: 0 18px 32px rgba(6, 14, 9, 0.28);
}

.brand-status,
.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-status {
  white-space: nowrap;
}

.brand-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9be16b;
  box-shadow: 0 0 0 6px rgba(155, 225, 107, 0.16);
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-stack {
  display: grid;
  gap: 26px;
  margin-top: 30px;
}

.nav-group {
  display: grid;
  gap: 12px;
}

.nav-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 14px 12px 40px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(255, 202, 99, 0.16), rgba(115, 176, 106, 0.24));
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(8, 18, 12, 0.22);
}

.nav-link.active::before {
  background: #ffd66f;
  box-shadow: 0 0 0 6px rgba(255, 214, 111, 0.12);
}

.app-main {
  min-width: 0;
  padding: 24px 26px 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.topbar-leading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.topbar-copy {
  max-width: 44rem;
}

.mobile-nav-button {
  align-items: center;
  gap: 5px;
  min-width: 60px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 241, 231, 0.92));
  border: 1px solid var(--border);
  box-shadow: 0 12px 22px rgba(31, 53, 41, 0.08);
  color: var(--ink);
  flex-direction: column;
}

.mobile-nav-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-strong);
}

.mobile-nav-button em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.topbar h2 {
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.topbar-subtitle {
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill {
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--border);
}

.user-pill-name {
  display: block;
  font-weight: 800;
}

.page-frame {
  margin-top: 22px;
  display: grid;
  gap: 24px;
  min-width: 0;
}

.page-frame > *,
.responsive-stack > *,
.metrics-grid > *,
.card-grid > *,
.overview-lane-grid > *,
.overview-summary-band > *,
.dashboard-summary-grid > *,
.dashboard-content-grid > * {
  min-width: 0;
}

.flash {
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
}

.flash-alert {
  background: rgba(159, 61, 50, 0.1);
  border-color: rgba(159, 61, 50, 0.18);
  color: var(--danger);
}

.flash-notice {
  background: rgba(46, 106, 67, 0.11);
  border-color: rgba(46, 106, 67, 0.18);
  color: var(--accent-strong);
}

.page-header {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 205, 116, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-width: 0;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 2.4vw, 2.45rem);
  line-height: 1.12;
}

.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

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

.stat-card,
.card,
.table-card {
  padding: 20px;
  min-width: 0;
}

.table-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.84));
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.65rem;
}

.stat-label {
  font-size: 0.93rem;
}

.data-table-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(39, 58, 47, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

tbody tr:hover {
  background: rgba(46, 106, 67, 0.04);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(46, 106, 67, 0.1);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.badge-warning {
  background: rgba(197, 106, 30, 0.12);
  color: var(--warning);
}

.form-layout,
.filters-form {
  display: grid;
  gap: 18px;
}

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

.form-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

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

.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auto-fill-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid rgba(39, 58, 47, 0.12);
  border-radius: 8px;
  background: rgba(246, 249, 244, 0.86);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.auto-fill-summary strong,
.auto-fill-summary span:not(:first-child) {
  color: var(--ink);
  font-weight: 800;
}

.advanced-form-section {
  border: 1px solid rgba(39, 58, 47, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
}

.advanced-form-section summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.advanced-form-section .form-grid-three {
  margin-top: 14px;
}

.daily-entry-defaults {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(39, 58, 47, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  animation: fadeUp 0.32s ease;
}

.daily-entry-defaults-title {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1rem;
}

.daily-entry-defaults select,
.daily-entry-defaults input {
  min-height: 42px;
}

.data-table-wrapper {
  border-radius: 14px;
}

.report-grid-table th,
.report-grid-table td {
  vertical-align: top;
}

.sheet-grid-summary-row,
.sheet-entry-previous-row,
.sheet-entry-inline-form-row {
  transition: background 0.18s ease, transform 0.18s ease;
}

.sheet-grid-summary-row:hover td {
  background: rgba(255, 255, 255, 0.62);
}

.sheet-entry-previous-row:hover td {
  background: rgba(255, 255, 255, 0.34);
}

.table-card-header,
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.import-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}

.import-inline-form input[type="file"] {
  max-width: 170px;
  padding: 7px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.import-inline-form input[type="submit"] {
  padding: 9px 13px;
  font-size: 0.88rem;
}

.button-to-inline {
  display: inline;
  margin: 0;
}

.empty-state {
  padding: 44px 30px;
  border-radius: 18px;
  border: 1px dashed rgba(39, 58, 47, 0.18);
  background: linear-gradient(180deg, rgba(248, 243, 236, 0.7), rgba(255, 255, 255, 0.82));
  text-align: center;
  color: var(--ink-soft);
}

.form-errors {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(159, 61, 50, 0.16);
  background: rgba(159, 61, 50, 0.08);
  color: var(--danger);
}

.form-errors ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.table-title {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.numeric-cell {
  font-variant-numeric: tabular-nums;
}

.responsive-stack {
  display: grid;
  gap: 22px;
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sheet-header.compact {
  margin-bottom: 12px;
}

.sheet-mini-title {
  margin-bottom: 0;
  font-size: 1rem;
}

.report-sheet-grid {
  display: grid;
  gap: 18px;
}

.report-sheet-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-sheet-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-sheet-card {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 205, 116, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84));
}

.report-grid-table th {
  white-space: nowrap;
}

.report-grid-table tfoot td {
  background: rgba(46, 106, 67, 0.08);
  border-top: 2px solid rgba(46, 106, 67, 0.18);
  border-bottom: none;
  font-weight: 800;
}

.report-average-row td:first-child {
  color: var(--accent-strong);
}

.summary-report-card,
.overview-group-card {
  padding: 24px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 205, 116, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.8));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-width: 0;
}

.summary-report-title {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  line-height: 1.2;
}

.overview-group-card {
  display: grid;
  gap: 18px;
}

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

.overview-lane {
  padding: 18px;
  min-height: 100%;
}

.compact-table th,
.compact-table td {
  padding: 10px 8px;
  font-size: 0.88rem;
}

.compact-empty {
  padding: 20px 16px;
}

.overview-summary-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.overview-summary-chip {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(247, 243, 234, 0.82);
  border: 1px solid rgba(39, 58, 47, 0.08);
  display: grid;
  gap: 8px;
}

.overview-summary-chip span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-summary-chip strong {
  font-size: 1.25rem;
}

.dashboard-shell {
  gap: 18px;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 260px);
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 206, 116, 0.34), transparent 28%),
    radial-gradient(circle at bottom left, rgba(71, 133, 84, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  left: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 122, 0.14), rgba(255, 209, 122, 0));
}

.dashboard-hero-copy,
.live-clock-card {
  position: relative;
  z-index: 1;
}

.dashboard-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  line-height: 1.08;
}

.dashboard-lead {
  max-width: 52rem;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.58;
}

.dashboard-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.dashboard-pill {
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(39, 58, 47, 0.08);
  box-shadow: 0 10px 24px rgba(31, 53, 41, 0.08);
  display: grid;
  gap: 6px;
}

.dashboard-pill-label,
.dashboard-stat-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-pill-label {
  color: var(--ink-soft);
}

.dashboard-pill strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

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

.live-clock-card {
  position: relative;
  overflow: hidden;
  display: grid;
  width: min(100%, 250px);
  aspect-ratio: 1;
  justify-self: end;
  gap: 12px;
  align-content: center;
  padding: 22px 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at top, rgba(255, 212, 129, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(29, 50, 37, 0.98), rgba(20, 35, 27, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(15, 27, 20, 0.24);
  color: #ffffff;
  isolation: isolate;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.live-clock-card::before {
  content: "";
  position: absolute;
  inset: -30% -60%;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.08) 36%, rgba(255, 226, 163, 0.24) 48%, rgba(255, 255, 255, 0.08) 60%, rgba(255, 255, 255, 0) 78%);
  transform: translateX(-32%) rotate(8deg);
  opacity: 0.52;
  z-index: 0;
  transition: transform 0.75s ease, opacity 0.3s ease;
}

.live-clock-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 122, 0.3), rgba(255, 209, 122, 0));
  animation: pulseGlow 7s ease-in-out infinite;
}

.live-clock-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 226, 163, 0.18);
  box-shadow: 0 28px 54px rgba(15, 27, 20, 0.3);
}

.live-clock-card:hover::before {
  transform: translateX(12%) rotate(8deg);
  opacity: 0.82;
}

.live-clock-card:hover::after {
  animation-duration: 4.2s;
}

.live-clock-face {
  position: relative;
  width: min(132px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 58%, rgba(255, 255, 255, 0.12) 59%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.live-clock-face::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from -90deg,
      rgba(255, 255, 255, 0.22) 0deg 1.8deg,
      transparent 1.8deg 15deg
    );
  mask: radial-gradient(circle, transparent 58%, #000 59%);
  opacity: 0.5;
}

.live-clock-face::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 224, 163, 0.24);
  animation: orbitSpin 22s linear infinite;
}

.live-clock-card:hover .live-clock-face {
  transform: scale(1.04);
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.05),
    0 0 0 10px rgba(255, 226, 163, 0.04);
}

.clock-orbit-line {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  animation: hoverSweep 4.6s linear infinite;
  opacity: 0.92;
  transition: opacity 0.28s ease, filter 0.28s ease, transform 0.28s ease;
}

.clock-orbit-line::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      from 90deg,
      rgba(255, 255, 255, 0) 0deg 302deg,
      rgba(255, 224, 163, 0.14) 316deg,
      rgba(255, 248, 232, 0.96) 332deg,
      rgba(155, 225, 107, 0.86) 346deg,
      rgba(255, 255, 255, 0) 360deg
    );
  mask: radial-gradient(circle, transparent 84%, #000 85.4%, #000 87.4%, transparent 88.8%);
  filter: drop-shadow(0 0 10px rgba(255, 236, 184, 0.28));
}

.clock-orbit-line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 42%, rgba(255, 231, 172, 0.92) 43% 68%, rgba(155, 225, 107, 0.78) 69% 100%);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 6px rgba(255, 236, 184, 0.08),
    0 0 18px rgba(255, 236, 184, 0.3);
}

.live-clock-card:hover .clock-orbit-line {
  opacity: 1;
  filter: saturate(1.08);
  animation-duration: 2.9s;
}

.clock-hover-sweep {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0) 0deg 290deg,
      rgba(255, 229, 168, 0.14) 304deg,
      rgba(255, 243, 214, 0.95) 322deg,
      rgba(155, 225, 107, 0.78) 336deg,
      rgba(255, 255, 255, 0) 352deg 360deg
    );
  mask: radial-gradient(circle, transparent 66%, #000 68%, #000 72%, transparent 74%);
  opacity: 0.18;
  filter: blur(0.4px);
  transform: rotate(0deg);
  transition: opacity 0.28s ease, filter 0.28s ease;
}

.live-clock-card:hover .clock-hover-sweep {
  opacity: 0.96;
  filter: blur(0.1px);
  animation: hoverSweep 2.8s linear infinite;
}

.clock-ring {
  position: absolute;
  border-radius: 50%;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.clock-ring-outer {
  inset: 14px;
  border-color: rgba(255, 255, 255, 0.08);
}

.clock-ring-inner {
  inset: 34px;
  border-color: rgba(255, 226, 163, 0.18);
}

.clock-axis {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
}

.clock-axis-vertical {
  width: 1px;
  height: 76%;
}

.clock-axis-horizontal {
  width: 76%;
  height: 1px;
}

.clock-number {
  position: absolute;
  font-size: 0.84rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.74);
}

.clock-number-12 {
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.clock-number-3 {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.clock-number-6 {
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.clock-number-9 {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  border-radius: 999px;
  transform-origin: bottom center;
  transform: translateX(-50%);
}

.clock-hand-hour {
  width: 6px;
  height: 40px;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.76));
}

.clock-hand-minute {
  width: 4px;
  height: 54px;
  background: linear-gradient(180deg, #ffe0a3, rgba(255, 224, 163, 0.8));
}

.clock-hand-second {
  width: 2px;
  height: 62px;
  background: linear-gradient(180deg, #9be16b, rgba(155, 225, 107, 0.82));
  box-shadow: 0 0 14px rgba(155, 225, 107, 0.32);
}

.clock-center-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
}

.live-clock-meta {
  display: grid;
  gap: 6px;
  padding-inline: 10px;
  justify-items: center;
  text-align: center;
}

.live-clock-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-clock-time {
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  letter-spacing: 0.06em;
}

.live-clock-date,
.live-clock-zone {
  color: rgba(255, 255, 255, 0.72);
}

.live-clock-date {
  font-size: 0.96rem;
}

.live-clock-zone {
  font-size: 0.88rem;
}

.live-clock-signal {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  min-height: 18px;
}

.live-clock-signal span {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 224, 163, 0.92), rgba(155, 225, 107, 0.88));
  box-shadow: 0 8px 14px rgba(255, 224, 163, 0.16);
  transform-origin: center;
  animation: signalWave 1.8s ease-in-out infinite;
}

.live-clock-signal span:nth-child(2) {
  animation-delay: 0.18s;
}

.live-clock-signal span:nth-child(3) {
  animation-delay: 0.36s;
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-stat-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 150px;
  background:
    radial-gradient(circle at top right, rgba(255, 205, 116, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
}

.dashboard-stat-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 90px;
  height: 90px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(46, 106, 67, 0.08), rgba(255, 206, 116, 0.18));
  transform: rotate(18deg);
}

.dashboard-stat-card > * {
  position: relative;
  z-index: 1;
}

.dashboard-stat-kicker {
  color: var(--accent);
}

.dashboard-stat-card strong {
  margin-top: 0;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  line-height: 1.08;
}

.dashboard-stat-note {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.45;
  font-size: 0.86rem;
}

.dashboard-stat-highlight {
  background:
    radial-gradient(circle at top right, rgba(255, 217, 132, 0.24), transparent 34%),
    linear-gradient(145deg, #214634 0%, #2f5b40 56%, #365b44 100%);
  color: #ffffff;
}

.dashboard-stat-highlight .dashboard-stat-kicker,
.dashboard-stat-highlight .dashboard-stat-note {
  color: rgba(255, 255, 255, 0.76);
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.dashboard-side-stack {
  display: grid;
  gap: 18px;
}

.dashboard-table-card,
.dashboard-coverage-card,
.dashboard-quick-card {
  min-height: 100%;
}

.coverage-list,
.dashboard-shortcuts {
  display: grid;
  gap: 14px;
}

.coverage-row {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(249, 246, 240, 0.72);
  border: 1px solid rgba(39, 58, 47, 0.08);
}

.coverage-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.coverage-row-header strong {
  font-size: 1.02rem;
}

.coverage-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(46, 106, 67, 0.12);
}

.coverage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #478454, #dfb968);
  box-shadow: 0 6px 12px rgba(71, 132, 84, 0.2);
}

.dashboard-shortcut {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 243, 236, 0.88));
  border: 1px solid rgba(39, 58, 47, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-shortcut strong {
  color: var(--ink);
  font-size: 1rem;
}

.dashboard-shortcut span {
  color: var(--ink-soft);
  line-height: 1.5;
}

.dashboard-shortcut:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 106, 67, 0.16);
  box-shadow: 0 16px 28px rgba(31, 53, 41, 0.1);
  text-decoration: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portal-dashboard {
  --portal-green: var(--accent);
  --portal-green-dark: var(--accent-strong);
  --portal-mint: var(--accent-soft);
  --portal-border: rgba(46, 106, 67, 0.28);
  min-height: 0;
}

.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 20px;
  border-bottom: 1px solid #d7d7d7;
  background: #efefef;
  color: #555555;
  font-size: 0.82rem;
}

.portal-breadcrumb a {
  color: var(--portal-green-dark);
}

.portal-required-note {
  margin-left: auto;
  padding: 3px 8px;
  background: #fffbea;
  color: #8a6b18;
}

.portal-module-panel {
  margin: 12px 12px 0;
  padding: 0 14px 12px;
  border: 1px solid #d5d5d5;
  background: #ffffff;
}

.portal-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 16px;
}

.portal-title-kicker {
  color: #777777;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.portal-panel-title h1 {
  margin: 2px 0 0;
  color: #3b3b3b;
  font-size: 1.25rem;
}

.portal-help {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #bdbdbd;
  color: #ffffff;
  font-weight: 800;
}

.portal-module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #d6d6d6;
}

.portal-module-tabs a {
  position: relative;
  padding: 11px 14px;
  border-radius: 2px;
  background: #373737;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

.portal-module-tabs a::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid #d9a441;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.portal-module-tabs a:hover,
.portal-module-tabs a.active {
  background: #63c7a1;
  text-decoration: none;
}

.portal-module-tabs a.active::before {
  content: "✓";
  width: auto;
  height: auto;
  border: 0;
  color: #fff0b6;
  font-size: 1rem;
}

.portal-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.portal-summary-grid article {
  display: grid;
  min-height: 88px;
  align-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #42a773;
  border-top: 5px solid var(--portal-green);
  background: #ffffff;
}

.portal-summary-grid span {
  color: #666666;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.portal-summary-grid strong {
  color: var(--portal-green-dark);
  font-size: 1.4rem;
}

.portal-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 12px;
  padding: 0 12px 16px;
  align-items: start;
}

.portal-table-panel,
.portal-side-card {
  border: 1px solid #d5d5d5;
  background: #ffffff;
}

.portal-section-heading,
.portal-side-title {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 10px;
  padding: 8px 12px;
  background: #eeeeee;
}

.portal-section-heading h2,
.portal-side-title h2 {
  margin: 0;
  color: #3b3b3b;
  font-size: 1rem;
}

.portal-section-heading p {
  margin: 3px 0 0;
  color: #777777;
  font-size: 0.72rem;
}

.portal-collapse-mark {
  display: grid;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 4px;
  background: #64caa4;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}

.portal-primary-action {
  margin-left: auto;
  padding: 8px 11px;
  border-radius: 3px;
  background: var(--portal-green);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.portal-primary-action:hover {
  background: var(--portal-green-dark);
  color: #ffffff;
  text-decoration: none;
}

.portal-report-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 14px 7px;
}

.portal-report-tabs a {
  padding: 9px 13px;
  border-top: 4px solid #555555;
  background: #f5b74f;
  color: #ffffff;
  font-size: 0.82rem;
}

.portal-report-tabs a.completed {
  border-top-color: transparent;
  background: #65c9a3;
}

.portal-report-tabs a:hover {
  text-decoration: none;
}

.portal-report-tabs strong {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  padding: 0 5px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
}

.portal-table-scroll {
  overflow-x: auto;
  padding: 0 14px;
}

.portal-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.portal-report-table th,
.portal-report-table td {
  padding: 9px 7px;
  border: 1px solid var(--portal-border);
  text-align: left;
  vertical-align: top;
}

.portal-report-table th {
  background: var(--portal-mint);
  color: #3f4c45;
  font-size: 0.72rem;
}

.portal-report-table tbody tr:nth-child(odd) {
  background: #f3f3f3;
}

.portal-report-table tbody tr:hover {
  background: #eef9f3;
}

.portal-report-table td {
  color: #4d4d4d;
}

.portal-report-table td strong {
  color: #e58c4b;
}

.portal-report-table small {
  color: #888888;
}

.portal-status {
  display: inline-block;
  padding: 4px 6px;
  border: 1px solid #38a46b;
  background: #e7f6ed;
  color: #16713e;
  font-size: 0.65rem;
  font-weight: 800;
}

.portal-row-action {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 3px;
  background: #e95558;
  color: #ffffff;
  font-weight: 700;
}

.portal-row-action:hover {
  background: #ce4448;
  color: #ffffff;
  text-decoration: none;
}

.portal-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 16px;
  color: #555555;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.portal-table-footer a {
  color: var(--portal-green-dark);
  font-weight: 800;
}

.portal-side-column {
  display: grid;
  gap: 12px;
}

.portal-state-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.portal-state-row {
  display: grid;
  gap: 6px;
}

.portal-state-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
}

.portal-state-row strong {
  color: var(--portal-green-dark);
}

.portal-progress {
  height: 8px;
  overflow: hidden;
  background: #e1e1e1;
}

.portal-progress span {
  display: block;
  height: 100%;
  background: #52bc8a;
}

.portal-task-list {
  display: grid;
}

.portal-task-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 12px;
  border-bottom: 1px solid #dddddd;
  color: #3f3f3f;
  font-size: 0.8rem;
  font-weight: 700;
}

.portal-task-list a:last-child {
  border-bottom: 0;
}

.portal-task-list a:hover {
  background: #eef9f3;
  color: var(--portal-green-dark);
  text-decoration: none;
}

.portal-task-list a span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 2px;
  background: var(--portal-green);
  color: #ffffff;
}

.portal-empty-state {
  margin: 14px;
  padding: 24px;
  border: 1px dashed #94c9aa;
  background: #f4fbf7;
  color: #567060;
  font-size: 0.85rem;
}

.portal-empty-state.compact {
  padding: 14px;
}

.portal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 13px;
  border-top: 1px solid #d0d0d0;
  background: #e5e7e8;
  color: #444444;
  font-size: 0.72rem;
}

.portal-footer span,
.portal-footer strong {
  padding: 0 18px;
  border-right: 1px solid #c5c5c5;
}

.portal-footer strong {
  border-right: 0;
}

@media (max-width: 1180px) {
  .portal-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-work-grid {
    grid-template-columns: 1fr;
  }

  .portal-side-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .portal-dashboard-page .app-shell {
    display: block;
  }

  .portal-dashboard-page .app-main {
    display: block;
  }

  .portal-dashboard-page .topbar {
    padding: 12px 16px;
  }

  .portal-dashboard-page .sidebar {
    position: fixed;
    top: 0;
    height: 100vh;
    z-index: 50;
  }

  .portal-dashboard-page .sidebar-mobile-header,
  .portal-dashboard-page .mobile-nav-button {
    display: flex;
  }
}

@media (max-width: 700px) {
  .portal-summary-grid,
  .portal-side-column {
    grid-template-columns: 1fr;
  }

  .portal-required-note,
  .portal-dashboard-page .topbar-subtitle {
    display: none;
  }

  .portal-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .portal-primary-action {
    width: 100%;
    margin-left: 33px;
    text-align: center;
  }

  .portal-table-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes signalWave {
  0%,
  100% {
    transform: scaleX(0.76);
    opacity: 0.46;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes hoverSweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes galleryUp {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(calc(-50% - 6px));
  }
}

@keyframes galleryDown {
  from {
    transform: translateY(calc(-50% - 6px));
  }

  to {
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .form-grid-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-hero,
  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

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

  .live-clock-card {
    justify-self: center;
  }

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

  .dashboard-pill {
    min-width: 150px;
  }
}

@media (max-width: 980px) {
  .app-shell,
  .auth-grid,
  .auth-grid-compact {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 340px);
    height: 100vh;
    overflow-y: auto;
    padding: 20px 18px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    z-index: 40;
    box-shadow: 0 26px 48px rgba(9, 16, 12, 0.34);
  }

  .app-shell-body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-mobile-header,
  .mobile-nav-button,
  .sidebar-overlay {
    display: flex;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    border: 0;
    padding: 0;
    background: rgba(14, 22, 17, 0.42);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }

  .app-shell-body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .auth-card {
    order: 1;
  }

  .auth-hero {
    order: 2;
  }

  .hero-metrics,
  .form-grid,
  .form-grid-two,
  .form-grid-three,
  .form-grid-four,
  .metrics-grid,
  .card-grid,
  .dashboard-summary-grid,
  .report-sheet-grid-two,
  .report-sheet-grid-three,
  .overview-summary-band {
    grid-template-columns: 1fr;
  }

  .topbar,
  .page-header,
  .table-card-header,
  .card-header,
  .sheet-header {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions,
  .page-actions,
  .inline-actions {
    width: 100%;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .topbar-copy {
    max-width: none;
  }

  .sheet-toolbar {
    align-items: stretch;
  }

  .sheet-mandi-tabs {
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 8px;
  }

  .sheet-toolbar .inline-actions,
  .sheet-toolbar .inline-actions .button,
  .sheet-toolbar .inline-actions input[type="submit"] {
    width: auto;
  }

  .data-table-wrapper {
    margin-inline: -6px;
    padding-inline: 6px;
  }

  .report-grid-table {
    min-width: 880px;
  }

.sheet-entry-table.report-grid-table {
  min-width: 1120px;
}

  .compact-table.report-grid-table {
    min-width: 640px;
  }

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

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

  .live-clock-card {
    width: min(100%, 300px);
    grid-template-columns: 1fr;
    aspect-ratio: 1;
    justify-self: center;
    border-radius: 50%;
  }

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

  .live-clock-meta {
    justify-items: center;
    text-align: center;
  }

  .brand-copy-text {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .auth-shell,
  .app-main,
  .sidebar {
    padding: 18px;
  }

  .auth-card,
  .auth-hero,
  .card,
  .table-card,
  .stat-card,
  .topbar,
  .page-header {
    padding: 20px;
    border-radius: 22px;
  }

  .brand-card {
    padding: 18px;
    border-radius: 24px;
  }

  .brand-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-leading {
    gap: 14px;
    align-items: flex-start;
  }

  .topbar h2 {
    font-size: 1.25rem;
  }

  .topbar-subtitle {
    display: none;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .user-pill,
  .topbar-actions .button,
  .topbar-actions form,
  .page-actions .button,
  .page-actions form,
  .inline-actions .button,
  .inline-actions form {
    width: 100%;
  }

  .page-actions .button,
  .page-actions input[type="submit"],
  .inline-actions .button,
  .inline-actions input[type="submit"] {
    justify-content: center;
    text-align: center;
  }

  .sheet-inline-actions .button,
  .sheet-inline-actions input[type="submit"],
  .sheet-inline-actions form,
  .sheet-entry-action-cell .button-to-inline,
  .sheet-toolbar .inline-actions .button,
  .sheet-toolbar .inline-actions input[type="submit"] {
    width: auto;
  }

  .button-to-inline {
    display: block;
  }

  .dashboard-hero {
    padding: 22px;
    border-radius: 24px;
  }

  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }

  .overview-lane-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-pill {
    min-width: 0;
  }

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

  .live-clock-card {
    grid-template-columns: 1fr;
    width: min(100%, 280px);
    aspect-ratio: 1;
    justify-self: center;
    border-radius: 50%;
  }

  .live-clock-face {
    width: 156px;
  }

  .live-clock-meta {
    justify-items: center;
    text-align: center;
  }

  .sheet-toolbar {
    gap: 10px;
    margin-bottom: 14px;
  }

  .sheet-mandi-tabs {
    margin-inline: -2px;
    padding-inline: 2px 0;
  }

  .sheet-tab-link {
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .sheet-entry-action-cell {
    width: 84px;
  }

  .button-compact {
    min-width: 84px;
    padding: 9px 13px;
  }

  .button-icon {
    min-width: 38px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .sheet-inline-actions {
    gap: 6px;
  }

  .sheet-inline-flag {
    min-width: 40px;
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .sheet-entry-launch-copy {
    font-size: 0.84rem;
  }

  .table-card,
  .summary-report-card,
  .overview-group-card,
  .report-sheet-card {
    padding: 18px;
  }

  .report-grid-table {
    min-width: 760px;
  }

  .sheet-entry-table.report-grid-table {
    min-width: 1060px;
  }

  .compact-table.report-grid-table {
    min-width: 560px;
  }

  th,
  td {
    padding: 12px 10px;
  }

  .attachment-chip {
    width: min(100%, 190px);
  }

  .sheet-inline-attachment-chip {
    width: 112px;
  }

  .attachment-thumb {
    width: 36px;
    height: 36px;
  }

  .gallery-columns {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
    gap: 10px;
  }

  .gallery-column {
    height: 160px;
  }

  .gallery-card {
    height: 150px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .app-main,
  .auth-shell,
  .sidebar {
    padding: 14px;
  }

  .topbar,
  .page-header,
  .table-card,
  .card,
  .stat-card,
  .summary-report-card,
  .overview-group-card,
  .report-sheet-card,
  .auth-card,
  .auth-hero {
    padding: 16px;
    border-radius: 20px;
  }

  .page-header h1 {
    font-size: 1.85rem;
  }

  .dashboard-hero h1 {
    font-size: 2rem;
  }

  .dashboard-lead,
  .muted-text,
  .table-subtitle,
  .topbar-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .brand-card {
    padding: 16px;
    gap: 12px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .nav-link {
    min-height: 42px;
    padding: 10px 12px 10px 36px;
  }

  .dashboard-shortcut,
  .coverage-row,
  .overview-summary-chip,
  .dashboard-pill {
    padding: 14px 15px;
  }

  .sheet-entry-action-cell {
    width: 70px;
  }

  .sheet-tab-link {
    padding: 8px 11px;
  }

  .form-grid-six {
    grid-template-columns: 1fr;
  }

  .attachment-chip,
  .sheet-inline-attachment-chip {
    width: min(100%, 160px);
  }

  .mobile-nav-button {
    min-width: 56px;
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dashboard uses the same Mandi Pro visual language as the rest of the app. */
.portal-dashboard {
  display: grid;
  gap: 18px;
  color: var(--ink);
}

.portal-dashboard .portal-breadcrumb {
  min-height: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.portal-dashboard .portal-required-note {
  border: 1px solid rgba(197, 106, 30, 0.15);
  border-radius: 999px;
  background: rgba(255, 245, 219, 0.76);
  color: #8a632a;
}

.portal-dashboard .portal-module-panel,
.portal-dashboard .portal-table-panel,
.portal-dashboard .portal-side-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.portal-dashboard .portal-module-panel {
  overflow: hidden;
  padding: 20px 20px 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 206, 116, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.84));
}

.portal-dashboard .portal-panel-title {
  min-height: 62px;
}

.portal-dashboard .portal-title-kicker {
  color: var(--accent);
  letter-spacing: 0.12em;
}

.portal-dashboard .portal-panel-title h1 {
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
}

.portal-dashboard .portal-help,
.portal-dashboard .portal-collapse-mark {
  border-radius: 9px;
  background: var(--accent);
  box-shadow: 0 8px 16px rgba(46, 106, 67, 0.16);
}

.portal-dashboard .portal-module-tabs {
  gap: 8px;
  padding: 8px 0 2px;
  border-bottom: 0;
}

.portal-dashboard .portal-module-tabs a {
  padding: 10px 13px 10px 25px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.portal-dashboard .portal-module-tabs a::before {
  left: 13px;
  width: 7px;
  height: 7px;
  border: 0;
  background: #d8b463;
  transform: translate(-50%, -50%);
}

.portal-dashboard .portal-module-tabs a:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 106, 67, 0.2);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.portal-dashboard .portal-module-tabs a.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(46, 106, 67, 0.18);
}

.portal-dashboard .portal-module-tabs a.active::before {
  left: 13px;
  color: #ffe0a3;
}

.portal-dashboard .portal-summary-grid {
  gap: 14px;
  padding: 0;
}

.portal-dashboard .portal-summary-grid article {
  position: relative;
  overflow: hidden;
  min-height: 122px;
  padding: 18px;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(255, 205, 116, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
  box-shadow: 0 14px 28px rgba(31, 53, 41, 0.08);
}

.portal-dashboard .portal-summary-grid article::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(46, 106, 67, 0.08), rgba(255, 206, 116, 0.2));
  transform: rotate(18deg);
}

.portal-dashboard .portal-summary-grid span {
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.portal-dashboard .portal-summary-grid strong {
  position: relative;
  z-index: 1;
  color: var(--accent-strong);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.portal-dashboard .portal-work-grid {
  gap: 18px;
  padding: 0;
}

.portal-dashboard .portal-table-panel,
.portal-dashboard .portal-side-card {
  overflow: hidden;
}

.portal-dashboard .portal-section-heading,
.portal-dashboard .portal-side-title {
  min-height: 62px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(247, 243, 236, 0.92), rgba(242, 237, 228, 0.76));
  border-bottom: 1px solid var(--border);
}

.portal-dashboard .portal-section-heading h2,
.portal-dashboard .portal-side-title h2 {
  color: var(--ink);
  font-size: 1.05rem;
}

.portal-dashboard .portal-section-heading p {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.portal-dashboard .portal-primary-action {
  padding: 9px 13px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 18px rgba(46, 106, 67, 0.15);
}

.portal-dashboard .portal-report-tabs {
  gap: 8px;
  padding: 14px 16px 9px;
}

.portal-dashboard .portal-report-tabs a {
  padding: 9px 13px;
  border: 1px solid rgba(197, 106, 30, 0.14);
  border-top: 1px solid rgba(197, 106, 30, 0.14);
  border-radius: 10px;
  background: rgba(255, 227, 169, 0.76);
  color: #795119;
  font-weight: 800;
}

.portal-dashboard .portal-report-tabs a.completed {
  border-color: rgba(46, 106, 67, 0.14);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.portal-dashboard .portal-table-scroll {
  padding: 4px 16px 0;
}

.portal-dashboard .portal-report-table {
  font-size: 0.78rem;
}

.portal-dashboard .portal-report-table th,
.portal-dashboard .portal-report-table td {
  padding: 11px 9px;
  border-color: var(--portal-border);
}

.portal-dashboard .portal-report-table th {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.portal-dashboard .portal-report-table tbody tr:nth-child(odd) {
  background: rgba(249, 246, 240, 0.72);
}

.portal-dashboard .portal-report-table tbody tr:hover {
  background: rgba(224, 240, 229, 0.72);
}

.portal-dashboard .portal-status {
  border-color: rgba(46, 106, 67, 0.24);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.portal-dashboard .portal-row-action {
  border-radius: 8px;
  background: var(--accent);
}

.portal-dashboard .portal-row-action:hover {
  background: var(--accent-strong);
}

.portal-dashboard .portal-state-list {
  padding: 16px;
}

.portal-dashboard .portal-progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(46, 106, 67, 0.1);
}

.portal-dashboard .portal-progress span {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #d8b463);
}

.portal-dashboard .portal-task-list a {
  min-height: 46px;
  padding: 10px 14px;
  border-color: var(--border);
  color: var(--ink);
}

.portal-dashboard .portal-task-list a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.portal-dashboard .portal-task-list a span {
  border-radius: 8px;
  background: var(--accent);
}

.portal-dashboard .portal-table-footer {
  padding: 14px 16px 18px;
  color: var(--ink-soft);
}

.portal-dashboard .portal-footer {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
}

@media (max-width: 1180px) {
  .portal-dashboard .portal-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-dashboard .portal-summary-grid article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .portal-dashboard {
    gap: 14px;
  }

  .portal-dashboard .portal-module-panel {
    padding: 16px;
  }

  .portal-dashboard .portal-module-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-dashboard .portal-summary-grid,
  .portal-dashboard .portal-side-column {
    grid-template-columns: 1fr;
  }

  .portal-dashboard .portal-summary-grid article:last-child {
    grid-column: auto;
  }

  .portal-dashboard .portal-footer span,
  .portal-dashboard .portal-footer strong {
    padding: 5px 10px;
    border: 0;
  }
}

@media (max-width: 480px) {
  .portal-dashboard .portal-breadcrumb {
    display: none;
  }

  .portal-dashboard .portal-module-tabs {
    grid-template-columns: 1fr;
  }

  .portal-dashboard .portal-module-tabs a {
    width: 100%;
  }

  .portal-dashboard .portal-panel-title h1 {
    font-size: 1.65rem;
  }
}
