:root {
  --ge-bg: #eae9e3;
  --ge-surface: #ffffff;
  --ge-ink: #201f23;
  --ge-muted: #59626a;
  --ge-line: #e1e8ee;
  --ge-army: #395917;
  --ge-green: #4c6c5a;
  --ge-green-soft: #e6efe9;
  --ge-beige: #e5d6b8;
  --ge-tosca: #c1d8da;
  --ge-red: #98140b;
  --ge-radius-lg: 27px;
  --ge-radius-md: 16px;
  --ge-radius-sm: 8px;
}

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

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  margin: 0;
  background: var(--ge-bg);
  color: var(--ge-ink);
  font-family: "General Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/static/img/app-bg.jpg") center center / cover no-repeat;
  transform: translateZ(0);
}

.app-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(234, 233, 227, 0.88);
  backdrop-filter: blur(2px) saturate(0.72);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 32px;
  padding: 32px 40px 32px 40px;
  position: relative;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ge-ink);
  color: var(--ge-surface);
  font-weight: 700;
}

.side-nav {
  width: 76px;
  padding: 8px;
  border-radius: 54px;
  background: var(--ge-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.side-nav a,
.side-nav button {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ge-muted);
  text-decoration: none;
  position: relative;
  transition:
    color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.side-nav a:hover,
.side-nav button:hover,
.side-nav a.active {
  background: var(--ge-ink);
  color: var(--ge-surface);
  transform: translateY(-2px) scale(1.02);
}

.side-nav a:not(.active):hover {
  background: var(--ge-green-soft);
  color: var(--ge-army);
}

.side-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  display: inline-grid;
  place-items: center;
  background: var(--ge-surface);
  color: var(--ge-ink);
}

.icon-button-sm {
  width: 36px;
  height: 36px;
}

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

.table-actions form {
  margin: 0;
}

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

.permission-check {
  border-radius: var(--ge-radius-md);
  background: #fbfbf8;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.icon-button:hover,
.icon-button.active {
  background: var(--ge-ink);
  color: var(--ge-surface);
}

.icon-button-dark {
  background: var(--ge-ink);
  color: var(--ge-surface);
}

.icon-button svg,
.btn svg,
.kit-search-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-head {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-back {
  flex: 0 0 auto;
}

.client-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.client-profile-main,
.client-insights {
  display: grid;
  gap: 18px;
}

.client-identity {
  align-items: center;
  display: flex;
  gap: 18px;
}

.client-avatar {
  align-items: center;
  border: 5px solid var(--ge-surface);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(32, 31, 35, 0.14);
  color: var(--ge-surface);
  display: grid;
  flex: 0 0 auto;
  font-size: 2.3rem;
  font-weight: 800;
  height: 96px;
  place-items: center;
  text-transform: uppercase;
  width: 96px;
}

.avatar-preset-1,
.avatar-preset-6 {
  background: #395917;
}

.avatar-preset-2 {
  background: #315b62;
}

.avatar-preset-3 {
  background: #98140b;
}

.avatar-preset-4 {
  background: #6f5524;
}

.avatar-preset-5 {
  background: #201f23;
}

.section-label {
  color: var(--ge-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.client-phone {
  color: var(--ge-ink);
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 18px;
  text-decoration: none;
}

.client-contact-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-contact-grid div {
  background: #fbfbf8;
  border-radius: var(--ge-radius-md);
  padding: 14px;
}

.client-contact-grid span,
.timeline-date {
  color: var(--ge-muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.client-contact-grid strong {
  overflow-wrap: anywhere;
}

.client-note-panel {
  min-height: 240px;
}

.client-note-panel p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  white-space: normal;
}

.pagination-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 14px;
}

.client-timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  gap: 14px;
  grid-template-columns: 18px minmax(0, 1fr);
  padding: 0 0 22px;
  position: relative;
}

.compact-timeline-item {
  cursor: pointer;
}

.compact-timeline-item summary {
  list-style: none;
}

.compact-timeline-item summary::-webkit-details-marker {
  display: none;
}

.timeline-details {
  grid-column: 2;
}

.timeline-details pre {
  background: #fbfbf8;
  border-radius: var(--ge-radius-sm);
  color: var(--ge-muted);
  font-size: 0.78rem;
  margin: 8px 0 0;
  max-height: 160px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.bonus-adjust-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.timeline-item::before {
  background: var(--ge-line);
  content: "";
  left: 7px;
  position: absolute;
  top: 18px;
  bottom: 0;
  width: 2px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  background: var(--ge-ink);
  border-radius: 50%;
  height: 16px;
  margin-top: 3px;
  position: relative;
  width: 16px;
  z-index: 1;
}

.timeline-item p {
  color: var(--ge-muted);
  margin: 4px 0;
}

.finance-table td,
.finance-table th {
  padding-bottom: 0.45rem;
  padding-top: 0.45rem;
}

.finance-modal-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.finance-history {
  background: #fbfbf8;
  border-radius: var(--ge-radius-md);
  padding: 16px;
}

.finance-history-item {
  border-bottom: 1px solid var(--ge-line);
  display: grid;
  gap: 3px;
  padding: 10px 0;
}

.finance-history-item:first-of-type {
  padding-top: 0;
}

.finance-history-item:last-child {
  border-bottom: 0;
}

.finance-history-item span {
  color: var(--ge-muted);
  font-size: 0.82rem;
}

.app-main {
  min-width: 0;
  padding: 12px 88px 12px 0;
}

.user-menu {
  position: fixed;
  top: 28px;
  right: 34px;
  z-index: 20;
}

.user-avatar {
  width: 58px;
  height: 58px;
  border: 4px solid var(--ge-surface);
  border-radius: 50%;
  background: var(--ge-ink);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(32, 31, 35, 0.16);
}

.user-avatar img,
.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-dropdown {
  border: 0;
  border-radius: var(--ge-radius-md);
  padding: 8px;
  box-shadow: 0 18px 48px rgba(32, 31, 35, 0.16);
}

.user-dropdown .dropdown-item {
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.user-dropdown svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-panel {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.profile-avatar-preview {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ge-surface);
}

.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(20, 18, 16, 0.28), rgba(20, 18, 16, 0.28)),
    url("/static/img/gallery-login.jpeg") center / cover no-repeat;
}

.auth-main::before {
  content: "";
  position: absolute;
  inset: -28px;
  background: url("/static/img/gallery-login.jpeg") center / cover no-repeat;
  filter: blur(14px) saturate(0.92);
  opacity: 0.42;
  transform: translate(var(--auth-pan-x, 0), var(--auth-pan-y, 0)) scale(1.05);
  transition: transform 180ms ease-out;
}

.auth-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.42), transparent 24%, transparent 76%, rgba(20, 18, 16, 0.38)),
    linear-gradient(180deg, rgba(20, 18, 16, 0.32), transparent 30%, rgba(20, 18, 16, 0.46));
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: auto;
  width: min(100%, 460px);
}

.auth-card {
  width: min(100%, 460px);
  border-radius: var(--ge-radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  padding: 36px;
  backdrop-filter: blur(16px);
}

.remember-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ge-muted);
  font-weight: 600;
  cursor: pointer;
}

.remember-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.remember-toggle span {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d9ded7;
  position: relative;
  transition: background-color 180ms ease;
}

.remember-toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ge-surface);
  transition: transform 180ms ease;
}

.remember-toggle input:checked + span {
  background: var(--ge-ink);
}

.remember-toggle input:checked + span::after {
  transform: translateX(20px);
}

.auth-visual {
  align-self: stretch;
  border-radius: var(--ge-radius-lg);
  background:
    linear-gradient(145deg, rgba(32, 31, 35, 0.92), rgba(57, 89, 23, 0.86)),
    var(--ge-ink);
  color: var(--ge-surface);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

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

h1,
.h1,
.h2,
.h3,
.h4 {
  color: var(--ge-ink);
  letter-spacing: 0;
}

.panel,
.card,
.table-panel {
  border: 0;
  border-radius: var(--ge-radius-lg);
  background: var(--ge-surface);
}

.panel,
.card {
  padding: 28px;
}

.kit-card {
  min-height: 171px;
  border-radius: var(--ge-radius-lg);
  background: var(--ge-surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.kit-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 18px auto;
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: rgba(32, 31, 35, 0.08);
}

.kit-card-soft {
  background: var(--ge-green-soft);
}

.kit-card-tosca {
  background: var(--ge-tosca);
}

.kit-card-beige {
  background: var(--ge-beige);
}

.kit-card-dark {
  background: var(--ge-ink);
  color: var(--ge-surface);
}

.kit-card-dark .kit-card-title,
.kit-card-dark .kit-card-value,
.kit-card-dark .text-body-secondary {
  color: var(--ge-surface) !important;
}

.kit-card-outline {
  background: transparent;
  border: 1px solid var(--ge-ink);
}

.kit-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ge-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.kit-card-value {
  color: var(--ge-ink);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
}

.kit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ge-green-soft);
  color: var(--ge-army);
  font-weight: 600;
  flex: 0 0 auto;
}

.kit-card-soft .kit-icon,
.kit-card-tosca .kit-icon,
.kit-card-beige .kit-icon {
  background: rgba(255, 255, 255, 0.72);
}

.kit-card-dark .kit-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ge-surface);
}

.kit-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kit-card-soft .kit-icon {
  color: var(--ge-green);
}

.kit-card-tosca .kit-icon {
  color: #315b62;
}

.kit-card-beige .kit-icon {
  color: #6f5524;
}

.kit-search {
  min-height: 70px;
  border-radius: 180px;
  background: var(--ge-surface);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 22px;
}

.kit-search .form-control,
.kit-search .form-select {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.kit-search-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--ge-ink);
  color: var(--ge-surface);
  flex: 0 0 auto;
}

.kit-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--ge-green-soft);
  color: var(--ge-army);
  font-size: 0.82rem;
  font-weight: 600;
}

.kit-status-muted {
  background: #f2f1eb;
  color: var(--ge-muted);
}

.kit-status-danger {
  background: #f7dfdc;
  color: var(--ge-red);
}

.table-panel {
  padding: 18px;
  overflow: hidden;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 8px 16px;
}

.table-link {
  color: var(--ge-ink);
  font-weight: 600;
  text-decoration: none;
}

.table-link:hover {
  color: var(--ge-army);
}

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

.settings-tab {
  min-height: 118px;
  border-radius: var(--ge-radius-lg);
  background: var(--ge-surface);
  color: var(--ge-ink);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  text-decoration: none;
  transition: background-color 220ms ease, transform 220ms ease;
}

.settings-tab:hover,
.settings-tab.active {
  background: var(--ge-green-soft);
  transform: translateY(-2px);
}

.settings-tab strong,
.settings-tab small {
  display: block;
}

.settings-tab small {
  color: var(--ge-muted);
  margin-top: 4px;
}

.view-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--ge-surface);
}

.view-switch a {
  border-radius: 999px;
  color: var(--ge-muted);
  padding: 0.55rem 1rem;
  text-decoration: none;
}

.view-switch a.active,
.view-switch a:hover {
  background: var(--ge-ink);
  color: var(--ge-surface);
}

.schedule-filter {
  align-items: center;
  background: var(--ge-surface);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  max-width: 760px;
  padding: 6px;
}

.schedule-filter-dates {
  align-items: center;
  background: #fbfbf8;
  border-radius: 999px;
  display: flex;
  gap: 4px;
  padding: 3px 6px;
}

.schedule-filter .form-control,
.schedule-filter .form-select {
  border: 0;
  box-shadow: none;
  min-height: 34px;
}

.schedule-filter .form-control {
  width: 128px;
}

.schedule-filter .form-select {
  background-color: #fbfbf8;
  border-radius: 999px;
  width: 190px;
}

.schedule-filter .kit-search-button {
  height: 42px;
  width: 42px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips a {
  min-height: 38px;
  border-radius: 999px;
  background: var(--ge-surface);
  color: var(--ge-muted);
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 600;
}

.filter-chips a.active,
.filter-chips a:hover {
  background: var(--ge-ink);
  color: var(--ge-surface);
}

.kit-status-live {
  background: var(--ge-green-soft);
  color: var(--ge-army);
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.calendar-panel {
  border-radius: var(--ge-radius-lg);
  background: var(--ge-surface);
  padding: 22px;
}

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

.calendar-title {
  text-align: center;
}

.today-link {
  color: var(--ge-army);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

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

.calendar-weekdays {
  color: var(--ge-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 4px 10px;
}

.calendar-day {
  min-width: 0;
  min-height: 150px;
  border-top: 1px solid var(--ge-line);
  border-right: 1px solid var(--ge-line);
  padding: 10px;
  background: #fbfbf8;
  color: var(--ge-ink);
  transition: background-color 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.calendar-day:nth-child(7n + 1) {
  border-left: 1px solid var(--ge-line);
}

.calendar-day.muted {
  background: #f2f1eb;
  color: var(--ge-muted);
}

.calendar-day.selected {
  background: var(--ge-green-soft);
  box-shadow: inset 0 0 0 2px var(--ge-green);
}

.calendar-day:hover {
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(76, 108, 90, 0.26);
}

.calendar-date {
  font-weight: 700;
  margin-bottom: 8px;
}

.calendar-date-link {
  color: inherit;
  display: inline-flex;
  text-decoration: none;
}

.calendar-date-link:hover {
  color: var(--ge-army);
}

.calendar-events {
  display: grid;
  gap: 6px;
}

.calendar-event {
  border: 0;
  border-radius: 14px;
  background: var(--ge-green-soft);
  color: var(--ge-army);
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
  padding: 8px 9px;
  text-align: left;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  cursor: pointer;
  position: relative;
}

.calendar-event span {
  display: block;
  font-weight: 700;
}

.calendar-event strong {
  display: block;
  font-weight: 700;
  padding-right: 34px;
}

.calendar-event small {
  background: rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  position: absolute;
  right: 7px;
  top: 7px;
}

.event-modal-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.event-modal-stats div {
  background: #fbfbf8;
  border-radius: var(--ge-radius-md);
  padding: 12px;
}

.event-modal-stats span {
  color: var(--ge-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.event-modal-stats strong {
  font-size: 1.1rem;
}

.event-modal-tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ge-muted);
  font-weight: 700;
  min-height: 44px;
  padding: 0 18px;
}

.event-modal-tabs button.active,
.event-modal-tabs button:hover {
  background: var(--ge-ink);
  color: var(--ge-surface);
}

.event-guests {
  display: grid;
  gap: 8px;
}

.guest-row {
  align-items: center;
  background: #fbfbf8;
  border-radius: var(--ge-radius-md);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px) auto;
  padding: 10px 12px;
}

.guest-row a {
  color: var(--ge-ink);
  font-weight: 800;
  text-decoration: none;
}

.guest-phone {
  color: var(--ge-muted);
  font-size: 0.88rem;
}

.guest-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.guest-actions form {
  margin: 0;
}

.guest-action-positive:hover,
.guest-action-positive.active {
  background: var(--ge-green);
  color: var(--ge-surface);
}

.guest-action-muted:hover,
.guest-action-muted.active {
  background: var(--ge-muted);
  color: var(--ge-surface);
}

.guest-action-danger:hover,
.guest-action-danger.active {
  background: var(--ge-red);
  color: var(--ge-surface);
}

.event-type-rental {
  background: var(--ge-beige);
  color: #6f5524;
}

.event-type-closed_private {
  background: var(--ge-tosca);
  color: #315b62;
}

.event-type-technical {
  background: #f2f1eb;
  color: var(--ge-muted);
}

.event-type-other {
  background: #f7dfdc;
  color: var(--ge-red);
}

.day-panel {
  border-radius: var(--ge-radius-lg);
  background: var(--ge-surface);
  padding: 22px;
  align-self: start;
}

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

.day-agenda {
  display: grid;
  gap: 10px;
}

.agenda-item {
  border: 0;
  border-radius: var(--ge-radius-md);
  color: var(--ge-army);
  display: grid;
  gap: 4px;
  padding: 14px;
  text-align: left;
}

.agenda-item span,
.agenda-item small {
  color: inherit;
  opacity: 0.78;
}

.empty-panel {
  border-radius: var(--ge-radius-md);
  background: #f2f1eb;
  color: var(--ge-muted);
  padding: 18px;
}

.event-modal {
  border: 0;
  border-radius: var(--ge-radius-lg);
}

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

.modal-meta div {
  border-radius: var(--ge-radius-md);
  background: #fbfbf8;
  padding: 12px;
}

.modal-meta span,
.modal-meta strong {
  display: block;
}

.modal-meta span {
  color: var(--ge-muted);
  font-size: 0.82rem;
}

.btn {
  border-radius: 999px;
  padding-inline: 18px;
}

.btn-primary {
  --bs-btn-bg: var(--ge-ink);
  --bs-btn-border-color: var(--ge-ink);
  --bs-btn-hover-bg: var(--ge-army);
  --bs-btn-hover-border-color: var(--ge-army);
}

.btn-outline-secondary,
.btn-outline-primary {
  --bs-btn-color: var(--ge-ink);
  --bs-btn-border-color: var(--ge-ink);
  --bs-btn-hover-bg: var(--ge-ink);
  --bs-btn-hover-border-color: var(--ge-ink);
  --bs-btn-hover-color: var(--ge-surface);
}

.form-control,
.form-select {
  border-color: var(--ge-line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.65rem 1rem;
  color: var(--ge-ink);
  background-color: #fbfbf8;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-control:focus,
.form-select:focus,
form p input:focus,
form p select:focus,
form p textarea:focus {
  border-color: var(--ge-green);
  box-shadow: 0 0 0 0.2rem rgba(76, 108, 90, 0.14);
  background-color: var(--ge-surface);
}

textarea.form-control {
  border-radius: var(--ge-radius-md);
}

form p {
  margin-bottom: 0;
}

form p label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ge-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

form p input,
form p select,
form p textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--ge-line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.65rem 1rem;
  background: #fbfbf8;
  color: var(--ge-ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

form p textarea {
  border-radius: var(--ge-radius-md);
}

.errorlist {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  color: var(--ge-red);
  font-size: 0.9rem;
}

.table {
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: 0.9rem 1rem;
  border-bottom-color: var(--ge-line);
}

.text-body-secondary {
  color: var(--ge-muted) !important;
}

@media (max-width: 900px) {
  .auth-main {
    padding: 18px;
  }

  .auth-brand {
    width: min(100%, 420px);
  }

  .auth-visual {
    display: none;
  }

  .app-shell {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .app-main {
    padding-right: 0;
  }

  .user-menu {
    top: 18px;
    right: 18px;
  }

  .app-sidebar {
    flex-direction: row;
    justify-content: space-between;
  }

  .side-nav {
    width: auto;
    flex-direction: row;
    border-radius: 999px;
    overflow-x: auto;
  }

  .page-header {
    flex-direction: column;
  }

  .profile-panel {
    grid-template-columns: 1fr;
  }

  .client-profile-grid,
  .client-contact-grid {
    grid-template-columns: 1fr;
  }

  .client-phone {
    font-size: 1.45rem;
  }

  .event-modal-stats,
  .guest-row {
    grid-template-columns: 1fr;
  }

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

  .schedule-filter,
  .schedule-filter-dates {
    align-items: stretch;
    border-radius: var(--ge-radius-md);
    flex-direction: column;
    width: 100%;
  }

  .schedule-filter .form-control,
  .schedule-filter .form-select {
    width: 100%;
  }

  .finance-modal-grid {
    grid-template-columns: 1fr;
  }

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

  .calendar-layout,
  .settings-tabs {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    min-width: 760px;
  }

  .calendar-panel {
    overflow-x: auto;
  }
}
