html {
  font-size: 15px;
  min-height: 100%;
}

.pm-page {
  display: grid;
  gap: 1.1rem;
}

.pm-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(130px, 1fr));
  gap: 0.85rem;
  align-items: end;
}

.pm-toolbar label {
  display: grid;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pm-toolbar input,
.pm-toolbar select,
.pm-page input,
.pm-page select,
.pm-page textarea {
  border: 1px solid #d8e0ea;
  border-radius: 14px;
  background: #fff;
  padding: 0.78rem 0.9rem;
  color: #0f172a;
  outline: none;
}

.pm-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.pm-dashboard article {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  padding: 1rem;
  box-shadow: 0 18px 45px rgb(15 23 42 / 0.06);
}

.pm-dashboard strong {
  display: block;
  color: #0f172a;
  font-size: 2rem;
  line-height: 1;
}

.pm-dashboard span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.pm-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(17rem, 1fr));
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.pm-column {
  min-height: 34rem;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #f8fafc;
  padding: 0.8rem;
}

.pm-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.35rem 0.8rem;
  color: #0f172a;
}

.pm-column header span {
  display: grid;
  min-width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 999px;
  background: #e0ecff;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 900;
}

.pm-dropzone {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-height: 28rem;
}

.pm-task {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  padding: 0.55rem 0.6rem 0.58rem 0.72rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
  cursor: grab;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.pm-task:hover {
  border-color: #8bb8e8;
  box-shadow: 0 2px 7px rgb(15 23 42 / 0.14);
  transform: translateY(-1px);
}

.pm-task-accent {
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: #64748b;
}

.pm-task.priority-low .pm-task-accent {
  background: #60a5fa;
}

.pm-task.priority-medium .pm-task-accent {
  background: #22c55e;
}

.pm-task.priority-high .pm-task-accent {
  background: #f59e0b;
}

.pm-task.priority-critical .pm-task-accent {
  background: #ef4444;
}

.pm-task.dragging {
  opacity: 0.55;
}

.pm-column.drag-over {
  border-color: #38bdf8;
  background: #eef8ff;
  box-shadow: inset 0 0 0 2px rgb(56 189 248 / 0.2);
}

.pm-task.overdue {
  border-color: #fecaca;
}

.pm-task-top,
.pm-task-meta,
.pm-file-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.pm-task-top span {
  border-radius: 3px;
  background: #f3f6f9;
  padding: 0.12rem 0.36rem;
  color: #475569;
  font-size: 0.64rem;
  font-weight: 800;
}

.pm-task-top button {
  border: 0;
  background: transparent;
  color: #0078d4;
  font-size: 0.72rem;
  font-weight: 700;
}

.pm-task h3 {
  display: -webkit-box;
  margin: 0.38rem 0 0.18rem;
  overflow: hidden;
  color: #201f1e;
  font-size: 0.82rem;
  line-height: 1.28;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pm-task p,
.pm-file-card p {
  color: #605e5c;
  font-size: 0.72rem;
}

.pm-task p {
  display: -webkit-box;
  margin-bottom: 0.4rem;
  overflow: hidden;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pm-task-meta {
  margin-top: 0.34rem;
  color: #605e5c;
  font-size: 0.68rem;
}

.pm-task-move {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.42rem;
  color: #605e5c;
  font-size: 0.66rem;
  font-weight: 700;
}

.pm-task-move select {
  min-height: 26px;
  border: 1px solid #d0d7de;
  border-radius: 3px;
  background: #fff;
  padding: 0.18rem 0.34rem;
  color: #201f1e;
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: none;
}

.pm-progress {
  height: 0.2rem;
  margin-top: 0.34rem;
  overflow: hidden;
  border-radius: 0;
  background: #edebe9;
}

.pm-progress span {
  display: block;
  height: 100%;
  background: #0078d4;
}

.pm-detail-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pm-list {
  display: grid;
  gap: 0.65rem;
}

.pm-list > div,
.pm-file-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  padding: 0.85rem;
}

.pm-list strong,
.pm-file-card strong {
  display: block;
  color: #0f172a;
}

.pm-list span,
.pm-file-card span,
.pm-activity {
  color: #64748b;
  font-size: 0.83rem;
}

.pm-comment {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.pm-comment input {
  flex: 1;
}

.pm-comment button,
.pm-check-row button {
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  padding: 0.65rem 0.85rem;
  color: #2563eb;
  font-weight: 900;
}

.pm-checklist-editor {
  margin-top: 1rem;
}

.pm-check-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.pm-check-row input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
}

.pm-alt-view h2 {
  color: #0f172a;
}

.pm-gantt {
  display: grid;
  gap: 0.7rem;
}

.pm-gantt div {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.pm-gantt b {
  display: block;
  height: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
}

.pm-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.pm-file-card.archived {
  opacity: 0.68;
}

.pm-file-card details {
  margin-top: 0.8rem;
}

.pm-file-meta {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.pm-file-meta div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 0.7rem;
}

.pm-file-meta dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pm-file-meta dd {
  margin: 0;
  min-width: 0;
  color: #0f172a;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.project-files-panel {
  margin-top: 1.1rem;
}

.project-files-filter-bar {
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.2fr) minmax(180px, 0.45fr) minmax(120px, 0.25fr);
}

.project-files-table {
  min-width: 1180px;
}

.project-files-table th,
.project-files-table td {
  padding: 14px 16px;
}

.project-files-table tbody tr.is-archived {
  opacity: 0.72;
}

.project-file-title-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.project-file-title-cell > div {
  min-width: 0;
}

.project-file-title-cell strong,
.project-file-title-cell small,
.project-file-notes {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-file-title-cell strong {
  max-width: 280px;
  color: #f8fafc;
}

.project-file-title-cell small {
  max-width: 320px;
}

.project-file-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 10px;
  color: #a5f3fc;
  background: rgba(103, 232, 249, 0.09);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.project-file-chip,
.project-file-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.project-file-chip {
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.13);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.project-file-status.active {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.project-file-status.archived {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.project-file-notes {
  display: block;
  max-width: 240px;
  color: #b6c5d8;
  font-size: 0.86rem;
}

.project-file-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 360px;
}

.project-file-actions .expense-action-btn {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.76rem;
}

.project-file-activity {
  margin-top: 8px;
  color: #aebdd0;
  font-size: 0.78rem;
  text-align: right;
}

.project-file-activity summary {
  cursor: pointer;
  color: #a5f3fc;
  font-weight: 850;
}

.project-file-activity div {
  margin-top: 5px;
  white-space: normal;
}

.project-files-pagination > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aebdd0;
}

.project-files-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 1100px) {
  .pm-toolbar,
  .pm-dashboard,
  .pm-detail-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pm-toolbar,
  .pm-dashboard,
  .pm-detail-panels {
    grid-template-columns: 1fr;
  }
}

body {
  min-height: 100%;
  margin: 0;
  background: #101114;
  color: #e7edf4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px 18px;
  background: #15171c;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-mark,
.nav-glyph {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  font-weight: 900;
}

.brand-mark {
  width: 44px;
  height: 44px;
  color: #061115;
  background: #67e8f9;
}

.brand-block strong,
.brand-block span {
  display: block;
}

.brand-block strong {
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.1;
}

.brand-block span,
.topbar-kicker,
.hint,
.header-copy {
  color: #9aa8b8;
}

.brand-block span {
  font-size: 0.8rem;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 4px 10px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 232, 249, 0.4) transparent;
}

.side-nav::-webkit-scrollbar {
  width: 7px;
}

.side-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.3);
}

.nav-item,
.nav-group-toggle,
.nav-child {
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 8px;
  border: 0;
  color: #cbd5e1;
  background: transparent;
  font-weight: 750;
  text-align: left;
}

.nav-item,
.nav-group-toggle {
  gap: 11px;
  min-height: 42px;
  padding: 8px 10px;
}

.nav-item:hover,
.nav-group-toggle:hover,
.nav-child:hover,
.nav-item.active,
.nav-child.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
}

.nav-group {
  display: grid;
  gap: 2px;
  border-radius: 10px;
}

.nav-group.active {
  background: rgba(103, 232, 249, 0.055);
  box-shadow: inset 3px 0 0 rgba(103, 232, 249, 0.75);
}

.nav-group.active .nav-group-toggle {
  color: #fff;
}

.nav-group.expanded .nav-group-toggle {
  background: rgba(255, 255, 255, 0.06);
}

.nav-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: rotate(-45deg);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-group.expanded .nav-chevron {
  opacity: 1;
  transform: rotate(45deg);
}

.nav-child-shell {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 220ms ease;
}

.nav-group.expanded .nav-child-shell {
  grid-template-rows: 1fr;
}

.nav-child-list {
  min-height: 0;
  display: grid;
  gap: 4px;
  padding: 5px 0 7px 42px;
}

.nav-child {
  position: relative;
  min-height: 34px;
  gap: 9px;
  padding: 7px 9px;
  color: #aebdd0;
  font-size: 0.9rem;
}

.nav-child::before {
  content: "";
  position: absolute;
  left: -17px;
  top: -8px;
  width: 16px;
  height: calc(50% + 8px);
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  border-bottom-left-radius: 8px;
}

.nav-child.active {
  color: #dffbff;
  background: rgba(103, 232, 249, 0.13);
  box-shadow: inset 2px 0 0 #67e8f9;
}

.nav-child.disabled,
.nav-child[aria-disabled="true"],
.nav-item[aria-disabled="true"] {
  cursor: not-allowed;
  color: #7d8998;
  background: transparent;
}

.nav-child.disabled:hover,
.nav-child[aria-disabled="true"]:hover,
.nav-item[aria-disabled="true"]:hover {
  color: #7d8998;
  background: transparent;
}

.nav-child-glyph {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 7px;
  color: #a5f3fc;
  background: rgba(103, 232, 249, 0.08);
  font-size: 0.68rem;
  font-weight: 950;
}

.nav-glyph {
  width: 27px;
  height: 27px;
  color: #d9f99d;
  background: rgba(217, 249, 157, 0.1);
  font-size: 0.74rem;
}

.workspace {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.08), transparent 300px),
    #101114;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
  padding: 16px 28px;
  background: rgba(16, 17, 20, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.topbar-kicker {
  margin: 0 0 3px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar span {
  color: #fff;
  font-weight: 850;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.logout-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.app-main {
  width: min(100%, 1240px);
  padding: 32px 28px 80px;
}

.public-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.public-main:has(.login-page) {
  display: block;
  padding: 0;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.dashboard-header {
  align-items: center;
}

.eyebrow {
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

h1,
h2 {
  color: #fff;
}

h1 {
  margin: 5px 0 0;
  font-size: 2.55rem;
  font-weight: 900;
  line-height: 1.05;
}

h2 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 850;
}

.header-copy {
  max-width: 640px;
  margin: 12px 0 0;
  line-height: 1.65;
}

.primary-link,
.secondary-link,
button[type="submit"] {
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.primary-link,
button[type="submit"] {
  color: #051316;
  background: #67e8f9;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  white-space: nowrap;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  color: #d7f7ff;
  background: rgba(103, 232, 249, 0.1);
  border: 1px solid rgba(103, 232, 249, 0.18);
}

.primary-link:hover,
.secondary-link:hover,
button[type="submit"]:hover {
  background: #a7f3d0;
  color: #052e22;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card,
.panel,
.login-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.metric-card {
  min-height: 145px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  border-top: 3px solid var(--accent);
}

.metric-card span {
  color: #b8c4d2;
  font-weight: 800;
}

.metric-card strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.metric-card p {
  margin: 0;
  color: #94a3b8;
}

.accent-cyan {
  --accent: #67e8f9;
}

.accent-amber {
  --accent: #fbbf24;
}

.accent-rose {
  --accent: #fb7185;
}

.accent-green {
  --accent: #86efac;
}

.accent-sky {
  --accent: #7dd3fc;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 22px;
}

.dashboard-panel {
  min-height: 360px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-list,
.readiness-list,
.admin-form,
.grid {
  display: grid;
  gap: 14px;
}

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

.section-list a {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.section-list a:hover {
  border-color: rgba(103, 232, 249, 0.38);
  background: rgba(103, 232, 249, 0.07);
}

.section-list strong {
  color: #fff;
}

.section-list span,
.readiness-list small {
  color: #9aa8b8;
  line-height: 1.45;
}

.readiness-list > div {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.readiness-list > div:last-child {
  border-bottom: 0;
}

.readiness-list p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.readiness-list strong {
  color: #fff;
}

.data-list {
  display: grid;
  gap: 12px;
}

.data-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #061115;
  background: #a7f3d0;
  font-weight: 950;
}

.data-row-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.row-heading strong {
  color: #fff;
  font-size: 1rem;
}

.data-row p {
  margin: 0;
  color: #aeb9c8;
  line-height: 1.55;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-meta span,
.record-status {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.row-meta span {
  color: #9fb0c3;
  background: rgba(255, 255, 255, 0.055);
}

.record-status.active {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.13);
}

.record-status.inactive {
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.13);
}

.record-status.read {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.13);
}

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

.danger-btn {
  min-height: 36px;
  border: 1px solid rgba(251, 113, 133, 0.22);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.1);
  font-weight: 900;
}

.danger-btn:hover {
  color: #fff;
  background: rgba(244, 63, 94, 0.32);
}

.empty-state {
  display: grid;
  gap: 6px;
  min-height: 180px;
  place-content: center;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #9aa8b8;
  background: rgba(0, 0, 0, 0.1);
}

.empty-state strong {
  color: #fff;
}

.services-hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(16, 17, 20, 0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.ios-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(19, 22, 28, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(22px);
}

.services-table-panel {
  padding: 20px;
}

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

.ios-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #d7f7ff;
  background: rgba(103, 232, 249, 0.11);
  border: 1px solid rgba(103, 232, 249, 0.18);
  font-weight: 900;
}

.ios-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ios-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.ios-table th,
.ios-table td {
  padding: 15px 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ios-table th {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ios-table tbody tr {
  transition: background 160ms ease, transform 160ms ease;
}

.ios-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ios-table tbody tr:last-child td {
  border-bottom: 0;
}

.service-title-cell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.service-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #061115;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.8), transparent 28px),
    linear-gradient(135deg, #67e8f9, #a7f3d0);
  font-weight: 950;
  box-shadow: 0 10px 26px rgba(103, 232, 249, 0.18);
}

.service-title-cell strong {
  display: block;
  color: #fff;
}

.service-title-cell p {
  max-width: 560px;
  margin: 3px 0 0;
  color: #9aa8b8;
  line-height: 1.45;
}

.actions-cell {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.ios-primary-btn,
.ios-secondary-btn,
.ios-danger-btn,
.ios-icon-btn {
  min-height: 38px;
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ios-primary-btn {
  color: #041317;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 38px rgba(103, 232, 249, 0.2);
}

.ios-secondary-btn,
.ios-icon-btn {
  color: #d7f7ff;
  background: rgba(255, 255, 255, 0.07);
}

.ios-danger-btn,
.ios-icon-btn.danger {
  color: #ffe4e6;
  background: rgba(251, 113, 133, 0.15);
  border-color: rgba(251, 113, 133, 0.24);
}

.ios-primary-btn:hover,
.ios-secondary-btn:hover,
.ios-danger-btn:hover,
.ios-icon-btn:hover {
  transform: translateY(-1px);
}

.ios-primary-btn:focus-visible,
.ios-secondary-btn:focus-visible,
.ios-danger-btn:focus-visible,
.ios-icon-btn:focus-visible,
.logout-btn:focus-visible {
  outline: 0;
  border-color: rgba(103, 232, 249, 0.8);
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.18);
}

.ios-primary-btn:disabled,
.ios-secondary-btn:disabled,
.ios-danger-btn:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.ios-icon-btn + .ios-icon-btn {
  margin-left: 7px;
}

.ios-modal .modal-content {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  color: #e7edf4;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(17, 20, 26, 0.95);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(26px);
}

.ios-modal .modal-header,
.ios-modal .modal-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.ios-modal .modal-header {
  align-items: flex-start;
  padding: 20px 22px 16px;
}

.ios-modal .modal-body {
  padding: 20px 22px;
}

.ios-modal .modal-footer {
  padding: 16px 22px 20px;
}

.ios-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.ios-switch-row span {
  color: #e7edf4;
}

.ios-switch-row small {
  display: block;
  color: #94a3b8;
  font-weight: 700;
  margin-top: 3px;
}

.ios-switch-row input {
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
  appearance: none;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #475569;
  position: relative;
}

.ios-switch-row input::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms ease;
}

.ios-switch-row input:checked {
  background: #34d399;
}

.ios-switch-row input:checked::after {
  transform: translateX(20px);
}

.delete-copy {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
}

.delete-copy strong {
  color: #fff;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
}

.choice-pill {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  width: auto;
  gap: 8px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #d7e5f5;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.88rem;
}

.choice-pill input {
  width: auto;
}

.table-subtext {
  margin: 4px 0 0;
  color: #9aa8b8;
}

.client-logo-thumb {
  width: 64px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.message-metric-grid .metric-card {
  min-height: 130px;
}

.message-list {
  display: grid;
  gap: 14px;
}

.message-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.14);
}

.message-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.message-card a {
  color: #a5f3fc;
  overflow-wrap: anywhere;
}

.message-body {
  margin: 0;
  color: #d7e5f5;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.message-actions form {
  margin: 0;
}

.project-requests-page {
  display: grid;
  gap: 22px;
}

.project-request-detail-page {
  display: grid;
  gap: 22px;
}

.project-requests-hero {
  align-items: stretch;
  margin-bottom: 0;
  padding: 26px;
  border-color: rgba(125, 211, 252, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.18) 42%, rgba(16, 185, 129, 0.08)),
    #151922;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.project-request-detail-hero {
  align-items: stretch;
  margin-bottom: 0;
  padding: 26px;
  border-color: rgba(125, 211, 252, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(15, 23, 42, 0.18) 44%, rgba(167, 139, 250, 0.1)),
    #151922;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.request-hero-copy {
  display: grid;
  align-content: center;
}

.request-hero-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.request-live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(134, 239, 172, 0.26);
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.12);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.request-metric-grid {
  gap: 16px;
  margin-bottom: 0;
}

.request-metric-card {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  align-content: end;
  gap: 8px;
  padding: 20px;
  border-color: rgba(148, 163, 184, 0.16);
  border-top: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 68%),
    #171b23;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 44px rgba(0, 0, 0, 0.18);
}

.request-metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.request-metric-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #071115;
  background: var(--accent);
  font-weight: 950;
}

.request-metric-card span {
  color: #dbeafe;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.request-metric-card strong {
  font-size: 2.35rem;
  letter-spacing: 0;
}

.request-metric-card p {
  color: #b6c5d8;
  line-height: 1.45;
}

.request-panel {
  padding: 0;
  overflow: hidden;
  border-color: rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: #171b23;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

.request-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0));
}

.request-panel-header h2 {
  margin-top: 4px;
  color: #f8fafc;
  font-size: 1.22rem;
}

.request-panel-header p:not(.eyebrow) {
  margin: 8px 0 0;
  color: #b6c5d8;
  line-height: 1.5;
}

.request-filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.34fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px 22px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: #121720;
}

.request-filter-field {
  gap: 8px;
  margin: 0;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 900;
}

.request-filter-field span {
  color: #cbd5e1;
}

.request-filter-bar input,
.request-filter-bar select {
  min-height: 46px;
  border-color: rgba(148, 163, 184, 0.32);
  color: #f8fafc;
  background: #0f141c;
  font-weight: 750;
}

.request-filter-bar input::placeholder {
  color: #94a3b8;
}

.request-filter-bar select option {
  color: #e7edf4;
  background: #111827;
}

.request-filter-button {
  min-height: 46px;
  padding-inline: 22px;
  color: #041317;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  border-color: rgba(103, 232, 249, 0.34);
}

.request-table-wrap {
  overflow-x: auto;
}

.request-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.request-table th,
.request-table td {
  padding: 17px 20px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.request-table th {
  color: #b6c5d8;
  background: #0f141c;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.request-table tbody tr {
  background: #171b23;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.request-table tbody tr:nth-child(even) {
  background: #141922;
}

.request-table tbody tr:hover {
  background: #1e2633;
  box-shadow: inset 3px 0 0 #67e8f9;
}

.request-table tbody tr:focus-within {
  background: #1e2633;
  box-shadow: inset 3px 0 0 #a7f3d0;
}

.request-table tbody tr:last-child td {
  border-bottom: 0;
}

.request-table strong {
  display: block;
}

.request-table small {
  display: block;
  margin-top: 5px;
  color: #aebdd0;
  line-height: 1.45;
}

.request-table a {
  color: #a5f3fc;
}

.request-reference {
  color: #e0f2fe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.91rem;
}

.request-primary {
  color: #f8fafc;
  font-weight: 900;
}

.request-date {
  color: #d7e5f5;
  font-weight: 750;
  white-space: nowrap;
}

.request-action-cell {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.request-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.request-empty-state {
  margin: 22px;
  color: #b6c5d8;
  background: #111720;
  border-color: rgba(148, 163, 184, 0.28);
}

.request-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.request-detail-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    #171b23;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.request-detail-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: #151a23;
}

.request-detail-card-header h2 {
  margin-top: 4px;
  color: #f8fafc;
  font-size: 1.16rem;
}

.request-reference-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.request-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.request-detail-list.compact {
  grid-template-columns: 1fr;
}

.request-detail-item {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: #111720;
}

.request-detail-item.wide {
  grid-column: 1 / -1;
}

.request-detail-item span {
  display: block;
  margin-bottom: 7px;
  color: #9fb0c3;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-detail-item strong {
  display: block;
  color: #f8fafc;
  font-size: 0.98rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.request-detail-item a {
  color: #a5f3fc;
}

.request-detail-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.status-form {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
}

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

.request-form-field {
  gap: 8px;
  margin: 0;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 900;
}

.request-form-field span {
  color: #cbd5e1;
}

.request-detail-form select,
.request-detail-form textarea {
  border-color: rgba(148, 163, 184, 0.32);
  color: #f8fafc;
  background: #0f141c;
  font-weight: 750;
}

.request-detail-form select {
  min-height: 48px;
}

.request-detail-form select option {
  color: #e7edf4;
  background: #111827;
}

.request-detail-form textarea {
  min-height: 154px;
  line-height: 1.55;
}

.request-detail-form textarea::placeholder {
  color: #94a3b8;
}

.request-save-button {
  min-height: 48px;
  min-width: 168px;
  color: #041317;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  border-color: rgba(103, 232, 249, 0.34);
}

.request-files-panel {
  overflow: hidden;
  border-color: rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: #171b23;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

.request-files-panel .message-list {
  padding: 22px;
}

.request-files-panel .message-card {
  border-color: rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: #111720;
}

.request-files-panel .message-card-header p {
  color: #aebdd0;
}

.record-status.status-new,
.record-status.status-in-review,
.record-status.status-contacted,
.record-status.status-approved,
.record-status.status-rejected,
.record-status.status-completed,
.record-status.status-pending {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--status-border);
  color: var(--status-text);
  background: var(--status-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.record-status.status-new::before,
.record-status.status-in-review::before,
.record-status.status-contacted::before,
.record-status.status-approved::before,
.record-status.status-rejected::before,
.record-status.status-completed::before,
.record-status.status-pending::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-dot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-dot) 20%, transparent);
}

.record-status.status-new {
  --status-text: #fef3c7;
  --status-bg: rgba(245, 158, 11, 0.16);
  --status-border: rgba(251, 191, 36, 0.34);
  --status-dot: #fbbf24;
}

.record-status.status-in-review,
.record-status.status-pending {
  --status-text: #bfdbfe;
  --status-bg: rgba(59, 130, 246, 0.16);
  --status-border: rgba(96, 165, 250, 0.34);
  --status-dot: #60a5fa;
}

.record-status.status-contacted {
  --status-text: #cffafe;
  --status-bg: rgba(6, 182, 212, 0.15);
  --status-border: rgba(34, 211, 238, 0.34);
  --status-dot: #22d3ee;
}

.record-status.status-approved {
  --status-text: #d1fae5;
  --status-bg: rgba(16, 185, 129, 0.15);
  --status-border: rgba(52, 211, 153, 0.34);
  --status-dot: #34d399;
}

.record-status.status-rejected {
  --status-text: #ffe4e6;
  --status-bg: rgba(244, 63, 94, 0.16);
  --status-border: rgba(251, 113, 133, 0.36);
  --status-dot: #fb7185;
}

.record-status.status-completed {
  --status-text: #ddd6fe;
  --status-bg: rgba(139, 92, 246, 0.16);
  --status-border: rgba(167, 139, 250, 0.36);
  --status-dot: #a78bfa;
}

.ios-toast {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1080;
  max-width: min(420px, calc(100vw - 44px));
  padding: 13px 16px;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 999px;
  color: #d7f7ff;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-weight: 850;
}

.ios-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ios-toast.error {
  color: #ffe4e6;
  border-color: rgba(251, 113, 133, 0.24);
}

.status-dot {
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-radius: 50%;
}

.status-dot.ready {
  background: #86efac;
  box-shadow: 0 0 0 5px rgba(134, 239, 172, 0.1);
}

.status-dot.pending {
  background: #fbbf24;
  box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.1);
}

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

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

.expenses-page {
  display: grid;
  gap: 22px;
}

.expense-filter-bar {
  grid-template-columns: minmax(260px, 1.45fr) repeat(2, minmax(136px, 0.64fr)) minmax(150px, 0.75fr) minmax(136px, 0.62fr) minmax(150px, 0.72fr) minmax(150px, 0.72fr) auto;
  gap: 12px;
  padding: 16px 18px;
}

.expense-filter-bar .request-filter-field {
  min-width: 0;
}

.expense-filter-bar input,
.expense-filter-bar select {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.expense-filter-submit {
  min-height: 40px;
  padding: 8px 18px;
  align-self: end;
  white-space: nowrap;
}

.expense-category-alert {
  margin: -12px 0 22px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  font-size: 0.9rem;
  font-weight: 800;
}

.expense-field-hint {
  display: block;
  margin-top: 6px;
  color: #9fb2c8;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

.expense-table-wrap {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.expense-table {
  min-width: 1080px;
  table-layout: fixed;
}

.expense-col-no {
  width: 132px;
}

.expense-col-title {
  width: 250px;
}

.expense-col-vendor {
  width: 180px;
}

.expense-col-payment {
  width: 170px;
}

.expense-col-created-by {
  width: 160px;
}

.expense-col-status {
  width: 116px;
}

.expense-col-total {
  width: 132px;
}

.expense-col-actions {
  width: 246px;
}

.expense-table th,
.expense-table td {
  padding: 12px 14px;
}

.expense-table th {
  white-space: nowrap;
}

.expense-table td {
  height: 68px;
}

.expense-table .request-primary,
.expense-table small,
.expense-table .request-reference {
  overflow: hidden;
  text-overflow: ellipsis;
}

.expense-table .request-primary,
.expense-table small {
  white-space: nowrap;
}

.expense-no-cell {
  white-space: nowrap;
}

.expense-total-heading,
.expense-total-cell {
  text-align: right;
}

.expense-actions-heading,
.expense-action-cell {
  text-align: right;
}

.expense-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.expense-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 5px 9px;
  color: #d7f7ff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.expense-action-btn:hover {
  color: #041317;
  background: #67e8f9;
  border-color: rgba(103, 232, 249, 0.7);
  transform: translateY(-1px);
}

.expense-action-btn.danger {
  color: #ffe4e6;
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.24);
}

.expense-action-btn.danger:hover {
  color: #fff;
  background: rgba(244, 63, 94, 0.42);
  border-color: rgba(251, 113, 133, 0.58);
}

.category-filter-bar {
  grid-template-columns: minmax(300px, 1fr) minmax(190px, 220px) auto;
}

.category-table {
  min-width: 1120px;
  table-layout: fixed;
}

.category-table th,
.category-table td {
  padding: 12px 14px;
}

.category-table th {
  white-space: nowrap;
}

.category-table td {
  height: 64px;
}

.category-table th:nth-child(1),
.category-table td:nth-child(1) {
  width: 230px;
}

.category-table th:nth-child(2),
.category-table td:nth-child(2) {
  width: 270px;
}

.category-table th:nth-child(3),
.category-table td:nth-child(3) {
  width: 110px;
}

.category-table th:nth-child(4),
.category-table td:nth-child(4),
.category-table th:nth-child(5),
.category-table td:nth-child(5),
.category-table th:nth-child(7),
.category-table td:nth-child(7) {
  width: 108px;
  text-align: right;
}

.category-table th:nth-child(6),
.category-table td:nth-child(6) {
  width: 136px;
  text-align: right;
}

.category-table th:nth-child(8),
.category-table td:nth-child(8) {
  width: 220px;
}

.category-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.category-name-cell > div {
  min-width: 0;
}

.category-color-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.category-description {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #b6c5d8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-form {
  padding: 22px;
}

.expense-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  color: #d7f7ff;
  background: rgba(0, 0, 0, 0.1);
}

.expense-loading-state[hidden] {
  display: none;
}

.expense-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(103, 232, 249, 0.22);
  border-top-color: #67e8f9;
  border-radius: 50%;
  animation: expense-spin 760ms linear infinite;
}

.request-table-wrap.is-loading {
  opacity: 0.58;
  pointer-events: none;
}

.expense-editor-dialog {
  width: min(980px, calc(100vw - 28px));
  max-width: none;
  margin-inline: auto;
}

.expense-editor-modal .modal-content {
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.expense-editor-modal form {
  min-height: 0;
  display: contents;
}

.expense-editor-modal .modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.expense-total-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  padding: 16px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 8px;
  color: #d7f7ff;
  background: rgba(103, 232, 249, 0.08);
}

.expense-total-preview span {
  color: #a5f3fc;
  font-weight: 900;
}

.expense-total-preview strong {
  color: #fff;
  font-size: 1.3rem;
}

.expense-category-panel {
  overflow: hidden;
}

.expense-category-list {
  display: grid;
  gap: 10px;
  padding: 18px 22px 22px;
}

.expense-category-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}

.expense-category-list strong {
  color: #fff;
}

.expense-category-list span {
  color: #a5f3fc;
  font-weight: 900;
}

@keyframes expense-spin {
  to {
    transform: rotate(360deg);
  }
}

.status-pill {
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 999px;
  padding: 8px 14px;
  color: #a5f3fc;
  background: rgba(20, 184, 166, 0.11);
  white-space: nowrap;
}

.login-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(79, 209, 229, 0.24), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(37, 99, 235, 0.26), transparent 30%),
    linear-gradient(135deg, #0b1120 0%, #111827 46%, #0b1120 100%);
  color: #f8fafc;
}

.login-hero,
.login-form-shell {
  position: relative;
  min-height: 100vh;
}

.login-hero {
  display: flex;
  align-items: center;
  padding: clamp(32px, 6vw, 84px);
  isolation: isolate;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.76) 58%, transparent 100%);
}

.login-glow {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.7;
  animation: login-float 8s ease-in-out infinite;
}

.login-glow-one {
  width: 300px;
  height: 300px;
  left: 10%;
  top: 12%;
  background: rgba(79, 209, 229, 0.18);
}

.login-glow-two {
  width: 420px;
  height: 420px;
  right: 8%;
  bottom: 6%;
  background: rgba(37, 99, 235, 0.2);
  animation-delay: -3s;
}

.login-grid-orb {
  position: absolute;
  right: 12%;
  top: 16%;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(79, 209, 229, 0.26);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(79, 209, 229, 0.04));
  box-shadow: 0 0 80px rgba(79, 209, 229, 0.18);
  transform: rotate(18deg);
  animation: login-drift 12s ease-in-out infinite;
}

.login-hero-content {
  width: min(100%, 720px);
  display: grid;
  gap: clamp(28px, 5vw, 54px);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
}

.login-brand-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(79, 209, 229, 0.42);
  border-radius: 22px;
  color: #07111f;
  background:
    linear-gradient(135deg, #4fd1e5 0%, #93f3ff 48%, #2563eb 100%);
  box-shadow: 0 20px 70px rgba(79, 209, 229, 0.28);
  font-size: 1.7rem;
  font-weight: 950;
  letter-spacing: 0;
}

.login-brand strong,
.login-brand small {
  display: block;
}

.login-brand strong {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.1;
}

.login-brand small {
  margin-top: 5px;
  color: #9fb4d0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-copy {
  display: grid;
  gap: 18px;
}

.login-eyebrow {
  margin: 0;
  color: #7ddff0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5.8vw, 5.9rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
}

.login-copy p:last-child {
  max-width: 640px;
  margin: 0;
  color: #b8c7dc;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.75;
}

.login-dashboard-preview {
  width: min(100%, 590px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  transform: perspective(1200px) rotateX(3deg) rotateY(-7deg);
  animation: login-preview-in 700ms ease both;
}

.preview-header {
  display: flex;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.8);
}

.preview-header span:first-child {
  background: #4fd1e5;
}

.preview-body {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 14px;
  padding: 18px;
}

.preview-stat,
.preview-chart,
.preview-list {
  min-height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.stat-wide {
  background:
    linear-gradient(90deg, rgba(79, 209, 229, 0.2), transparent),
    rgba(255, 255, 255, 0.06);
}

.preview-chart {
  grid-row: span 2;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 16px;
}

.preview-chart i {
  flex: 1;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #4fd1e5, #2563eb);
}

.preview-chart i:nth-child(1) { height: 44%; }
.preview-chart i:nth-child(2) { height: 72%; }
.preview-chart i:nth-child(3) { height: 56%; }
.preview-chart i:nth-child(4) { height: 86%; }

.preview-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.preview-list span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.22);
}

.preview-list span:nth-child(2) {
  width: 78%;
}

.preview-list span:nth-child(3) {
  width: 54%;
}

.login-form-shell {
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(11, 17, 32, 0.42);
}

.login-form-shell::before {
  content: "";
  position: absolute;
  inset: 8% auto 8% 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(79, 209, 229, 0.38), transparent);
}

.login-card {
  width: min(100%, 480px);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(17, 24, 39, 0.7);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  animation: login-card-in 520ms ease both;
}

.login-card-header {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.login-card-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 950;
  line-height: 1.05;
}

.login-card-header p:last-child {
  margin: 0;
  color: #aab8cc;
  font-size: 1rem;
}

.login-form {
  display: grid;
  gap: 18px;
  margin: 0;
}

.login-field {
  display: grid;
  gap: 9px;
}

.login-field label {
  margin: 0;
  color: #dbeafe;
  font-size: 0.92rem;
  font-weight: 850;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 16px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #7ddff0;
  pointer-events: none;
}

.login-input-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px 0 50px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-weight: 750;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.login-field input:hover {
  border-color: rgba(79, 209, 229, 0.42);
  background: rgba(15, 23, 42, 0.86);
}

.login-field input:focus {
  outline: none;
  border-color: #4fd1e5;
  box-shadow:
    0 0 0 4px rgba(79, 209, 229, 0.14),
    0 0 34px rgba(79, 209, 229, 0.18);
}

.login-field input[type="password"],
.login-field input[type="text"] {
  padding-right: 88px;
}

.password-toggle {
  position: absolute;
  right: 9px;
  min-width: 68px;
  min-height: 40px;
  border: 1px solid rgba(79, 209, 229, 0.18);
  border-radius: 13px;
  color: #c7f7ff;
  background: rgba(79, 209, 229, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #07111f;
  background: #4fd1e5;
  transform: translateY(-1px);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.login-options a {
  color: #7ddff0;
  font-weight: 850;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.login-options a:hover,
.login-options a:focus-visible {
  color: #fff;
  text-shadow: 0 0 18px rgba(79, 209, 229, 0.42);
}

.login-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #dbeafe;
  font-weight: 800;
  cursor: pointer;
}

.login-check input {
  width: 18px;
  height: 18px;
  accent-color: #4fd1e5;
  cursor: pointer;
}

.login-submit {
  position: relative;
  min-height: 58px;
  margin-top: 4px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: #06111f;
  background:
    linear-gradient(135deg, #4fd1e5 0%, #6be8f7 38%, #2563eb 100%);
  box-shadow:
    0 18px 42px rgba(37, 99, 235, 0.34),
    0 0 34px rgba(79, 209, 229, 0.18);
  font-weight: 950;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 24px 55px rgba(37, 99, 235, 0.42),
    0 0 46px rgba(79, 209, 229, 0.28);
  filter: saturate(1.08);
}

.login-submit:hover::before,
.login-submit:focus-visible::before {
  transform: translateX(120%);
}

.submit-loading {
  display: none;
}

.login-submit.is-loading {
  pointer-events: none;
  opacity: 0.84;
}

.login-submit.is-loading .submit-label {
  display: none;
}

.login-submit.is-loading .submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.login-submit.is-loading .submit-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(6, 17, 31, 0.28);
  border-top-color: #06111f;
  border-radius: 50%;
  animation: login-spin 800ms linear infinite;
}

.validation-summary,
.validation-summary ul {
  margin: 0;
  padding: 0;
  color: #fca5a5;
  list-style: none;
}

.login-field span[data-valmsg-for] {
  min-height: 18px;
  color: #fca5a5;
  font-size: 0.84rem;
  font-weight: 750;
}

@keyframes login-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -18px, 0) scale(1.06); }
}

@keyframes login-drift {
  0%, 100% { transform: rotate(18deg) translate3d(0, 0, 0); }
  50% { transform: rotate(12deg) translate3d(-18px, 22px, 0); }
}

@keyframes login-preview-in {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateX(9deg) rotateY(-10deg) translateY(22px);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) rotateX(3deg) rotateY(-7deg) translateY(0);
  }
}

@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .login-page {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-hero,
  .login-form-shell {
    min-height: auto;
  }

  .login-hero {
    padding-bottom: 24px;
  }

  .login-hero-content {
    gap: 28px;
  }

  .login-copy h1 {
    max-width: 820px;
  }

  .login-dashboard-preview {
    display: none;
  }

  .login-form-shell {
    padding-top: 20px;
  }

  .login-form-shell::before {
    inset: 0 8% auto;
    width: auto;
    height: 1px;
  }
}

@media (min-width: 1081px) and (max-height: 820px) {
  .login-hero {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .login-hero-content {
    gap: 28px;
  }

  .login-copy h1 {
    font-size: clamp(2.8rem, 4.6vw, 4.8rem);
  }

  .login-copy p:last-child {
    line-height: 1.55;
  }

  .login-dashboard-preview {
    display: none;
  }
}

@media (max-width: 640px) {
  .login-page {
    overflow: visible;
  }

  .login-hero {
    padding: 28px 18px 16px;
  }

  .login-brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.25rem;
  }

  .login-copy h1 {
    font-size: 2.5rem;
  }

  .login-form-shell {
    padding: 16px 18px 28px;
  }

  .login-card {
    border-radius: 24px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-glow,
  .login-grid-orb,
  .login-dashboard-preview,
  .login-card,
  .login-submit.is-loading .submit-loading::after {
    animation: none;
  }

  .login-submit,
  .password-toggle,
  .login-field input {
    transition: none;
  }
}

label {
  display: grid;
  gap: 7px;
  color: #cbd5e1;
  font-weight: 700;
  margin-bottom: 14px;
}

.optional-note {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 11px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.admin-select,
select,
.form-select {
  min-height: 44px;
  appearance: none;
  -webkit-appearance: none;
  border-color: rgba(148, 163, 184, 0.32);
  padding-right: 42px;
  color: #f8fafc;
  background-color: #0f141c;
  background-image:
    linear-gradient(45deg, transparent 50%, #67e8f9 50%),
    linear-gradient(135deg, #67e8f9 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  color-scheme: dark;
  font-weight: 750;
}

.admin-select:hover,
select:hover,
.form-select:hover {
  border-color: rgba(103, 232, 249, 0.48);
  background-color: #111923;
}

.admin-select:focus,
select:focus,
.form-select:focus {
  color: #fff;
  background-color: #0f141c;
  border-color: rgba(103, 232, 249, 0.78);
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.16);
}

.admin-select:disabled,
select:disabled,
.form-select:disabled {
  cursor: not-allowed;
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.18);
  background-color: #111827;
  opacity: 0.72;
}

.admin-select option,
select option,
.form-select option {
  color: #e7edf4;
  background-color: #111827;
}

.admin-select option:hover,
select option:hover,
.form-select option:hover {
  color: #fff;
  background-color: #1e293b;
}

.admin-select option:checked,
select option:checked,
.form-select option:checked {
  color: #061115;
  background-color: #67e8f9;
}

.admin-select option:disabled,
select option:disabled,
.form-select option:disabled {
  color: #64748b;
  background-color: #0f172a;
}

.admin-select.input-validation-error,
select.input-validation-error,
.form-select.input-validation-error,
.admin-select[aria-invalid="true"],
select[aria-invalid="true"],
.form-select[aria-invalid="true"] {
  border-color: rgba(251, 113, 133, 0.8);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

input:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(103, 232, 249, 0.75);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

textarea {
  resize: vertical;
}

span.field-validation-error,
label span {
  color: #fca5a5;
  font-size: 0.82rem;
}

.actions {
  position: sticky;
  bottom: 0;
  padding: 18px 0 0;
  background: linear-gradient(to top, #101114 55%, transparent);
}

button[type="submit"] {
  padding: 13px 22px;
}

.alert {
  border-radius: 8px;
}

@media (max-width: 1040px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .side-nav {
    max-height: min(62vh, 560px);
    grid-template-columns: 1fr;
  }

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

  .request-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .expense-filter-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .expense-search-field {
    grid-column: span 2;
  }

  .expense-filter-submit {
    grid-column: span 2;
    justify-self: end;
  }

  .request-detail-grid {
    grid-template-columns: 1fr;
  }

  .request-search-field,
  .request-filter-button {
    grid-column: 1 / -1;
  }

  .request-filter-button {
    justify-self: start;
  }
}

.ios-light-page {
  color: #172033;
}

.projects-page {
  display: grid;
  gap: 18px;
}

.iphone-header,
.ios-light-panel {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.86)),
    #fff;
  color: #172033;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.11);
  backdrop-filter: blur(24px);
}

.iphone-header {
  align-items: center;
  padding: 22px;
  border-radius: 30px;
}

.iphone-header h1,
.ios-light-panel h2,
.ios-light-modal h2 {
  color: #101828;
}

.iphone-header .header-copy,
.ios-light-page .optional-note,
.project-card p,
.project-desc,
.project-title-row p,
.project-image-row span,
.image-empty {
  color: #667085;
}

.ios-light-page .eyebrow {
  color: #667085;
}

.ios-light-panel {
  border-radius: 30px;
  padding: 18px;
}

.project-control-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.34fr) minmax(180px, 0.34fr);
  gap: 14px;
  align-items: end;
}

.ios-light-page label,
.ios-light-modal label {
  color: #344054;
}

.ios-light-page input,
.ios-light-page textarea,
.ios-light-page select,
.ios-light-modal input,
.ios-light-modal textarea,
.ios-light-modal select {
  color: #101828;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.82);
}

.ios-light-page select,
.ios-light-modal select {
  color: #101828;
  background-color: rgba(255, 255, 255, 0.92);
  background-image:
    linear-gradient(45deg, transparent 50%, #2563eb 50%),
    linear-gradient(135deg, #2563eb 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  color-scheme: light;
}

.ios-light-page select option,
.ios-light-modal select option {
  color: #101828;
  background-color: #fff;
}

.ios-light-page select option:checked,
.ios-light-modal select option:checked {
  color: #0f172a;
  background-color: #dbeafe;
}

.ios-light-page select:disabled,
.ios-light-modal select:disabled {
  color: #667085;
  background-color: #eef2f7;
}

.ios-light-page input:focus,
.ios-light-page textarea:focus,
.ios-light-page select:focus,
.ios-light-modal input:focus,
.ios-light-modal textarea:focus,
.ios-light-modal select:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.ios-count-pill.light {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.ios-primary-btn.light {
  color: #fff;
  background: linear-gradient(135deg, #111827, #2563eb);
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.2);
}

.ios-secondary-btn.light,
.ios-icon-btn.light {
  color: #172033;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(148, 163, 184, 0.28);
}

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

.project-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  min-height: 218px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.project-card.deleted {
  opacity: 0.58;
}

.project-thumb {
  display: grid;
  place-items: center;
  min-height: 100%;
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 950;
  font-size: 1.35rem;
}

.project-card-body {
  display: grid;
  gap: 13px;
  align-content: start;
  padding: 18px;
  min-width: 0;
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-title-row h3 {
  margin: 0;
  color: #101828;
  font-size: 1.08rem;
  font-weight: 900;
}

.project-title-row p,
.project-desc {
  margin: 4px 0 0;
  line-height: 1.45;
}

.project-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.project-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  color: #334155;
  background: #f1f5f9;
  font-size: 0.74rem;
  font-weight: 950;
}

.project-status.InProgress {
  color: #075985;
  background: #e0f2fe;
}

.project-status.Completed {
  color: #166534;
  background: #dcfce7;
}

.project-status.Cancelled {
  color: #991b1b;
  background: #fee2e2;
}

.project-status.OnHold {
  color: #92400e;
  background: #fef3c7;
}

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

.project-meta-grid span {
  min-width: 0;
  border-radius: 14px;
  padding: 9px 10px;
  color: #344054;
  background: #f8fafc;
  font-size: 0.82rem;
  font-weight: 850;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.light-empty {
  color: #667085;
  border-color: rgba(148, 163, 184, 0.38);
  background: #f8fafc;
}

.light-empty strong {
  color: #101828;
}

.ios-light-modal .modal-content {
  color: #172033;
  border-color: rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    #fff;
}

.ios-light-modal .modal-header,
.ios-light-modal .modal-footer {
  border-color: rgba(148, 163, 184, 0.2);
}

.light-switch {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.26);
}

.light-switch span {
  color: #172033;
}

.light-switch small {
  color: #667085;
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-image-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.project-image-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: #f8fafc;
}

.project-image-row img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 14px;
}

.project-image-row strong,
.project-image-row span {
  display: block;
}

.project-image-row strong {
  color: #101828;
}

.project-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.image-empty {
  border: 1px dashed rgba(148, 163, 184, 0.38);
  border-radius: 18px;
  padding: 16px;
  background: #f8fafc;
  font-weight: 850;
}

.light-toast {
  color: #064e3b;
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(236, 253, 245, 0.94);
}

.light-toast.error {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(254, 242, 242, 0.96);
}

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

.case-study-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.case-study-cover {
  display: grid;
  place-items: center;
  min-height: 100%;
  background: linear-gradient(135deg, #f8fafc, #dbeafe);
}

.case-study-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-cover span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.84);
  font-size: 1.3rem;
  font-weight: 950;
}

.case-study-body {
  display: grid;
  gap: 13px;
  align-content: start;
  min-width: 0;
  padding: 18px;
}

.case-study-body h3 {
  margin: 0;
  color: #101828;
  font-size: 1.08rem;
  font-weight: 900;
}

.case-study-publish {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.74rem;
  font-weight: 950;
}

.case-study-publish.published {
  color: #166534;
  background: #dcfce7;
}

.case-study-publish.draft {
  color: #92400e;
  background: #fef3c7;
}

.case-study-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.case-study-checklist span {
  border-radius: 999px;
  padding: 6px 9px;
  color: #667085;
  background: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 900;
}

.case-study-checklist span.done {
  color: #075985;
  background: #e0f2fe;
}

.case-study-slug {
  overflow-wrap: anywhere;
  margin: 0;
  color: #667085;
  font-size: 0.86rem;
  font-weight: 800;
}

.case-study-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-editor-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-width: none;
  margin-inline: auto;
}

.project-editor-modal .modal-content {
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.project-editor-modal form {
  min-height: 0;
  display: contents;
}

.project-editor-modal .modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.project-editor-modal .modal-footer {
  flex-wrap: wrap;
  gap: 10px;
}

.project-editor-modal .modal-footer button {
  min-width: 138px;
}

.client-editor-dialog {
  width: min(760px, calc(100vw - 28px));
  max-width: none;
  margin-block: 16px;
  margin-inline: auto;
}

.client-editor-modal.show .client-editor-dialog {
  transform: none !important;
}

.client-editor-modal .modal-content {
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.client-editor-modal form {
  min-height: 0;
  display: contents;
}

.client-editor-modal .modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.client-editor-modal .modal-footer {
  flex-wrap: wrap;
  gap: 10px;
}

.client-editor-modal .modal-footer button {
  min-width: 132px;
}

.localized-field-grid input[dir="rtl"] {
  text-align: right;
}

.project-editor-modal input[dir="rtl"],
.project-editor-modal textarea[dir="rtl"] {
  text-align: right;
}

.service-editor-modal input[dir="rtl"],
.service-editor-modal textarea[dir="rtl"] {
  text-align: right;
}

@media (max-width: 1120px) {
  .project-card-grid,
  .project-control-strip,
  .case-study-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .case-study-card,
  .case-study-story-grid {
    grid-template-columns: 1fr;
  }

  .project-thumb {
    min-height: 180px;
  }

  .case-study-cover {
    min-height: 190px;
  }

  .project-title-row,
  .project-image-row {
    grid-template-columns: 1fr;
  }

  .project-title-row {
    display: grid;
  }

  .project-image-actions {
    justify-content: flex-start;
  }

  .project-meta-grid,
  .grid.four,
  .grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .client-editor-dialog,
  .project-editor-dialog,
  .expense-editor-dialog {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
  }

  .client-editor-modal .modal-content,
  .project-editor-modal .modal-content,
  .expense-editor-modal .modal-content {
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .client-editor-modal .modal-header,
  .project-editor-modal .modal-header,
  .expense-editor-modal .modal-header {
    padding: 16px 16px 12px;
  }

  .client-editor-modal .modal-body,
  .project-editor-modal .modal-body,
  .expense-editor-modal .modal-body {
    padding: 14px 16px 18px;
  }

  .client-editor-modal .modal-footer,
  .project-editor-modal .modal-footer,
  .expense-editor-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr;
    padding: 12px 16px 16px;
  }

  .client-editor-modal .modal-footer {
    background: rgba(17, 20, 26, 0.96);
  }

  .project-editor-modal .modal-footer {
    background: rgba(255, 255, 255, 0.92);
  }

  .expense-editor-modal .modal-footer {
    background: rgba(17, 20, 26, 0.96);
  }

  .client-editor-modal .modal-footer button,
  .project-editor-modal .modal-footer button,
  .expense-editor-modal .modal-footer button {
    width: 100%;
    min-height: 44px;
  }

  .client-editor-modal label,
  .project-editor-modal label,
  .expense-editor-modal label {
    margin-bottom: 10px;
  }

  .client-editor-modal input,
  .project-editor-modal input,
  .expense-editor-modal input,
  .client-editor-modal textarea,
  .project-editor-modal textarea,
  .expense-editor-modal textarea,
  .client-editor-modal select,
  .project-editor-modal select,
  .expense-editor-modal select {
    min-height: 44px;
    font-size: 16px;
  }

  .project-editor-modal textarea,
  .expense-editor-modal textarea {
    min-height: 96px;
  }
}

@media (max-width: 680px) {
  .topbar,
  .page-header,
  .dashboard-header {
    display: grid;
  }

  .app-main {
    padding: 24px 16px 60px;
  }

  .side-nav,
  .dashboard-grid,
  .management-grid,
  .metric-grid,
  .section-list,
  .grid.two {
    grid-template-columns: 1fr;
  }

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

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

  h1 {
    font-size: 2rem;
  }

  .nav-user {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-pill {
    display: inline-block;
  }

  .services-toolbar,
  .service-title-cell,
  .message-card-header {
    align-items: flex-start;
  }

  .services-toolbar,
  .message-card-header {
    display: grid;
  }

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

  .ios-table {
    min-width: 720px;
  }

  .project-requests-hero,
  .project-request-detail-hero,
  .request-panel-header,
  .request-detail-card-header,
  .request-pagination {
    display: grid;
  }

  .project-requests-hero,
  .project-request-detail-hero {
    padding: 20px;
  }

  .request-hero-actions {
    justify-content: flex-start;
  }

  .request-filter-bar {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .request-search-field,
  .request-filter-button {
    grid-column: auto;
  }

  .request-filter-button {
    width: 100%;
    justify-self: stretch;
  }

  .expense-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-files-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-files-project-field,
  .project-files-search-field {
    grid-column: 1 / -1;
  }

  .category-filter-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .expense-search-field,
  .category-search-field,
  .expense-filter-submit {
    grid-column: 1 / -1;
  }

  .category-filter-submit {
    grid-column: 1 / -1;
  }

  .expense-table {
    min-width: 1040px;
  }

  .project-files-table {
    min-width: 980px;
  }

  .project-file-title-cell strong {
    max-width: 220px;
  }

  .project-file-notes {
    max-width: 180px;
  }

  .project-file-actions {
    justify-content: flex-start;
    max-width: 300px;
  }

  .project-files-pagination > div:first-child {
    display: grid;
    gap: 8px;
  }

  .category-table {
    min-width: 1060px;
    table-layout: fixed;
  }

  .category-table thead {
    display: table-header-group;
  }

  .category-table,
  .category-table tbody,
  .category-table tr,
  .category-table td {
    display: revert;
    width: auto;
  }

  .category-table tbody {
    display: table-row-group;
    padding: 0;
    background: transparent;
  }

  .category-table tbody tr,
  .category-table tbody tr:nth-child(even) {
    display: table-row;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .category-table td {
    display: table-cell;
    grid-template-columns: none;
    gap: 0;
    height: 64px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }

  .category-table td::before {
    content: none;
  }

  .expense-table thead {
    display: table-header-group;
  }

  .expense-table,
  .expense-table tbody,
  .expense-table tr,
  .expense-table td {
    display: revert;
    width: auto;
  }

  .expense-table tbody {
    display: table-row-group;
    padding: 0;
    background: transparent;
  }

  .expense-table tbody tr,
  .expense-table tbody tr:nth-child(even) {
    display: table-row;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .expense-table td {
    display: table-cell;
    grid-template-columns: none;
    gap: 0;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }

  .expense-table td::before {
    content: none;
  }

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

  .expense-row-actions {
    justify-content: flex-end;
  }

  .request-panel-header,
  .request-detail-card-header,
  .request-table th,
  .request-table td,
  .request-pagination {
    padding-inline: 16px;
  }

  .request-table {
    min-width: 0;
  }

  .request-table thead {
    display: none;
  }

  .request-table,
  .request-table tbody,
  .request-table tr,
  .request-table td {
    display: block;
    width: 100%;
  }

  .request-table tbody {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: #10151d;
  }

  .request-table tbody tr,
  .request-table tbody tr:nth-child(even) {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: #171d27;
  }

  .request-table tbody tr:hover,
  .request-table tbody tr:focus-within {
    box-shadow: inset 3px 0 0 #67e8f9;
  }

  .request-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 0;
    border: 0;
  }

  .request-table td::before {
    content: attr(data-label);
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .request-action-cell {
    text-align: left;
    white-space: normal;
  }

  .request-action-cell .ios-icon-btn {
    justify-self: start;
  }

  .expense-table {
    min-width: 1040px;
    table-layout: fixed;
  }

  .category-table {
    min-width: 1060px;
    table-layout: fixed;
  }

  .category-table thead {
    display: table-header-group;
  }

  .category-table,
  .category-table tbody,
  .category-table tr,
  .category-table td {
    display: revert;
    width: auto;
  }

  .category-table tbody {
    display: table-row-group;
    padding: 0;
    background: transparent;
  }

  .category-table tbody tr,
  .category-table tbody tr:nth-child(even) {
    display: table-row;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .category-table td {
    display: table-cell;
    grid-template-columns: none;
    gap: 0;
    height: 64px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }

  .category-table td::before {
    content: none;
  }

  .expense-table thead {
    display: table-header-group;
  }

  .expense-table,
  .expense-table tbody,
  .expense-table tr,
  .expense-table td {
    display: revert;
    width: auto;
  }

  .expense-table tbody {
    display: table-row-group;
    padding: 0;
    background: transparent;
  }

  .expense-table tbody tr,
  .expense-table tbody tr:nth-child(even) {
    display: table-row;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .expense-table td {
    display: table-cell;
    grid-template-columns: none;
    gap: 0;
    height: 64px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }

  .expense-table td::before {
    content: none;
  }

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

  .expense-row-actions {
    justify-content: flex-end;
  }

  .request-detail-list,
  .request-detail-list.compact,
  .status-form {
    grid-template-columns: 1fr;
  }

  .request-detail-list,
  .request-detail-form,
  .request-files-panel .message-list {
    padding: 16px;
  }

  .request-detail-item.wide {
    grid-column: auto;
  }

  .request-save-button {
    width: 100%;
    min-width: 0;
  }

  .ios-toast {
    top: 14px;
    right: 14px;
  }
}

.analytics-hero {
  align-items: center;
}

.analytics-filter {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.analytics-filter button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 7px 13px;
  color: #cbd5e1;
  background: transparent;
  font-weight: 900;
}

.analytics-filter button:hover,
.analytics-filter button.active {
  color: #061115;
  background: #67e8f9;
}

.analytics-filter button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.analytics-metric-grid .metric-card {
  min-height: 132px;
}

.analytics-is-loading .analytics-metric-grid .metric-card strong {
  color: #94a3b8;
}

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

.analytics-chart-card {
  padding: 20px;
}

.analytics-chart-wide {
  grid-column: 1 / -1;
}

.analytics-chart-card canvas {
  display: block;
  width: 100%;
  min-height: 220px;
}

.analytics-empty {
  margin-top: 18px;
}

.invoice-filter-bar {
  grid-template-columns: minmax(260px, 1.6fr) minmax(170px, 1fr) minmax(150px, 0.8fr) repeat(2, minmax(140px, 0.75fr)) auto;
}

.invoice-search-field {
  grid-column: span 1;
}

.invoice-editor-dialog {
  max-width: min(1180px, calc(100vw - 32px));
}

.invoice-items-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 18px 0 10px;
}

.invoice-items-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}

.invoice-items-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.invoice-item-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(90px, 0.34fr) minmax(130px, 0.45fr) minmax(130px, 0.45fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.invoice-line-total {
  display: grid;
  gap: 5px;
  min-height: 44px;
}

.invoice-line-total span {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 800;
}

.invoice-line-total strong {
  color: #e0f2fe;
  font-size: 0.98rem;
}

.invoice-detail-panel {
  margin-top: 18px;
}

.invoice-detail-table {
  overflow-x: auto;
}

.invoice-detail-grid {
  align-items: stretch;
}

.invoice-total-preview {
  align-self: end;
  margin: 0;
}

@media (max-width: 980px) {
  .analytics-chart-grid {
    grid-template-columns: 1fr;
  }

  .invoice-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invoice-filter-submit {
    grid-column: 1 / -1;
  }

  .invoice-item-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .analytics-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .invoice-filter-bar,
  .invoice-item-row {
    grid-template-columns: 1fr;
  }

  .invoice-items-header {
    align-items: stretch;
    flex-direction: column;
  }
}

.audit-page .metric-card strong {
  word-break: break-word;
}

.hero-management-grid {
  grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 1.05fr);
}

.hero-preview-panel {
  position: sticky;
  top: 92px;
}

.hero-admin-preview {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 16%, rgba(59, 130, 246, 0.28), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(6, 182, 212, 0.16), transparent 32%),
    #0a0a0c;
}

.hero-admin-preview.is-hidden {
  opacity: 0.52;
}

.hero-admin-preview-media {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.hero-admin-preview-media img,
.hero-admin-preview-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-admin-preview-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.94), rgba(10, 10, 12, 0.58));
  content: "";
}

.hero-admin-preview-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.hero-admin-preview-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin: 0 0 16px;
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  color: #93c5fd;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 850;
}

.hero-admin-preview h2 {
  display: grid;
  gap: 3px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 0.98;
  font-weight: 950;
}

.hero-admin-preview-highlight {
  color: #60a5fa;
}

.hero-admin-preview-description {
  margin: 18px 0 0;
  color: #cbd5e1;
  line-height: 1.72;
}

.hero-admin-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-admin-preview-actions span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  color: #fff;
  background: #2563eb;
  font-size: 0.84rem;
  font-weight: 900;
}

.hero-admin-preview-actions span:last-child {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.hero-admin-preview-visual {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 24px;
  width: min(34%, 220px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.hero-admin-preview-visual img,
.hero-admin-preview-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-admin-preview[dir="rtl"] .hero-admin-preview-visual {
  right: auto;
  left: 24px;
}

.hero-admin-preview[dir="rtl"] .hero-admin-preview-content {
  margin-left: auto;
  text-align: right;
}

.compact-switch {
  min-width: 260px;
  padding: 10px 12px;
}

.about-stat-list {
  display: grid;
  gap: 14px;
}

.is-muted-panel {
  opacity: 0.72;
}

.about-image-admin-preview {
  position: relative;
  display: grid;
  min-height: 180px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.16);
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.9rem;
  font-weight: 800;
}

.about-image-admin-preview.is-featured {
  border-color: rgba(96, 165, 250, 0.36);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.14);
}

.about-image-admin-preview img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.about-stat-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.12);
}

.about-stat-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.about-stat-editor-header strong {
  color: #fff;
}

.audit-filter-bar {
  grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(150px, 1fr));
}

.audit-search-field {
  grid-column: span 2;
}

.audit-table th button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.audit-table th button:hover {
  color: #67e8f9;
}

.audit-table td small {
  display: block;
  margin-top: 4px;
  color: rgba(226, 232, 240, 0.58);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-action-chip,
.audit-severity {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.audit-action-chip {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.audit-severity-info {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.24);
}

.audit-severity-warning {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.24);
}

.audit-severity-critical {
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.28);
}

.audit-row-details td {
  height: auto;
  padding: 0 12px 14px;
  background: rgba(15, 23, 42, 0.48);
}

.audit-row-details div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  color: rgba(226, 232, 240, 0.75);
}

.audit-row-details span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.audit-json-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.audit-json-compare section {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.44);
  overflow: hidden;
}

.audit-json-compare h3 {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.audit-json-compare pre {
  min-height: 220px;
  max-height: 420px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: #bfdbfe;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .audit-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-search-field {
    grid-column: span 2;
  }

  .audit-row-details div,
  .audit-json-compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .audit-filter-bar,
  .audit-search-field {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .audit-table td small {
    max-width: none;
    white-space: normal;
  }
}
