:root {
  --bg: #f6efe4;
  --bg-strong: #ead7bf;
  --paper: rgba(255, 252, 247, 0.92);
  --paper-strong: #fffaf2;
  --ink: #231b17;
  --muted: #6b5d55;
  --line: rgba(67, 49, 38, 0.12);
  --copper: #b86c3f;
  --forest: #2f6f57;
  --ocean: #215f78;
  --night: #2a2e38;
  --success: #2d7a52;
  --warning: #ab7a22;
  --shadow: 0 22px 48px rgba(43, 28, 18, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --font-sans: "Trebuchet MS", "Gill Sans", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #1b120d;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184, 108, 63, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(33, 95, 120, 0.15), transparent 28%),
    linear-gradient(135deg, #fbf4e9 0%, #f3e7d8 46%, #ebdfd1 100%);
}

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

img {
  max-width: 100%;
}

.layout-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(29, 23, 20, 0.98), rgba(52, 37, 27, 0.94));
  color: #f8f0e5;
}

.brand-block {
  display: grid;
  gap: 0.5rem;
}

.brand-block strong {
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

.brand-kicker,
.eyebrow,
.topbar-label,
.stat-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.brand-block small,
.sidebar-note p,
.panel-header p,
.hero-copy {
  color: rgba(248, 240, 229, 0.76);
  line-height: 1.6;
}

.nav-links {
  display: grid;
  gap: 0.5rem;
}

.nav-links a {
  padding: 0.95rem 1rem;
  border-radius: 999px;
  color: rgba(248, 240, 229, 0.82);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(135deg, rgba(184, 108, 63, 0.92), rgba(235, 191, 152, 0.85));
  color: #241610;
  transform: translateX(3px);
}

.main-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.topbar-user {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(35, 27, 23, 0.06);
  color: var(--ink);
  font-weight: 700;
}

.topbar-logout-form {
  margin: 0;
}

.topbar-logout {
  padding: 0.72rem 1rem;
}

.content-shell {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
}

.content-shell > * {
  min-width: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.page-header h1,
.hero h2,
.panel h2 {
  margin: 0.2rem 0 0;
  font-family: var(--font-serif);
  line-height: 1.1;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero,
.panel,
.stat-card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  min-width: 0;
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  background:
    linear-gradient(120deg, rgba(38, 27, 21, 0.96), rgba(91, 59, 42, 0.9)),
    radial-gradient(circle at top right, rgba(184, 108, 63, 0.48), transparent 36%);
  color: #fff4e8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-meta span {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 244, 232, 0.12);
  border: 1px solid rgba(255, 244, 232, 0.16);
}

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

.stat-card {
  padding: 1.4rem;
  display: grid;
  gap: 0.45rem;
}

.stat-card strong {
  font-size: 1.65rem;
  font-family: var(--font-serif);
}

.accent-copper {
  background: linear-gradient(135deg, rgba(184, 108, 63, 0.95), rgba(224, 194, 168, 0.92));
  color: #fff7f1;
}

.accent-blue {
  background: linear-gradient(135deg, rgba(33, 95, 120, 0.94), rgba(165, 209, 221, 0.82));
  color: #f6fcff;
}

.accent-green {
  background: linear-gradient(135deg, rgba(47, 111, 87, 0.94), rgba(178, 220, 197, 0.84));
  color: #f6fff9;
}

.accent-dark {
  background: linear-gradient(135deg, rgba(42, 46, 56, 0.96), rgba(143, 152, 171, 0.82));
  color: #f7f9ff;
}

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

.panel {
  padding: 1.5rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.highlight-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(246, 233, 214, 0.92), rgba(255, 251, 245, 0.88));
  border: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.88rem 1.15rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
}

.button-primary {
  background: linear-gradient(135deg, var(--copper), #e6b58e);
  color: #24140d;
}

.button-secondary {
  background: rgba(35, 27, 23, 0.08);
  color: var(--ink);
}

.text-link {
  color: var(--ocean);
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
}

.service-hero {
  position: relative;
  overflow: hidden;
}

.service-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -35% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 219, 184, 0.3), transparent 70%);
  pointer-events: none;
}

.service-catalog-grid {
  display: grid;
  gap: 1rem;
}

.service-showcase {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(249, 240, 230, 0.86)),
    linear-gradient(135deg, rgba(255, 249, 241, 0.95), rgba(244, 233, 218, 0.85));
}

.service-showcase:nth-child(3n + 1) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 244, 233, 0.88)),
    linear-gradient(135deg, rgba(255, 246, 237, 0.96), rgba(243, 225, 209, 0.88));
}

.service-showcase:nth-child(3n + 2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(236, 248, 244, 0.86)),
    linear-gradient(135deg, rgba(242, 252, 247, 0.96), rgba(214, 237, 228, 0.88));
}

.service-showcase:nth-child(3n + 3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(235, 245, 249, 0.88)),
    linear-gradient(135deg, rgba(244, 250, 252, 0.97), rgba(213, 230, 238, 0.9));
}

.service-showcase-header,
.service-form-summary {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.service-showcase-header h2 {
  margin: 0.2rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.service-showcase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.service-showcase-meta span {
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: rgba(35, 27, 23, 0.07);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.service-entry-card {
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(35, 27, 23, 0.09);
  background: rgba(255, 252, 247, 0.88);
  overflow: hidden;
}

.service-entry-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(243, 225, 209, 0.88), rgba(214, 237, 228, 0.78));
}

.service-entry-media img,
.service-form-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-entry-placeholder {
  display: flex;
  align-items: end;
  justify-content: start;
  width: 100%;
  height: 100%;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(35, 27, 23, 0.02), rgba(35, 27, 23, 0.22)),
    radial-gradient(circle at top right, rgba(255, 247, 239, 0.72), transparent 45%);
  color: rgba(255, 250, 244, 0.98);
}

.service-entry-placeholder span {
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(35, 27, 23, 0.22);
  backdrop-filter: blur(4px);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-entry-content {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.service-entry-top,
.service-entry-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.service-entry-top h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.service-entry-price {
  display: grid;
  gap: 0.22rem;
}

.service-entry-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-entry-price strong {
  font-size: 1.15rem;
  font-family: var(--font-serif);
}

.service-entry-action {
  min-width: 104px;
}

.service-editor {
  display: grid;
  gap: 1rem;
}

.service-form-summary {
  align-items: center;
}

.service-form-photo {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  border: 1px solid rgba(35, 27, 23, 0.08);
  box-shadow: var(--shadow);
}

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

.field-note {
  color: var(--muted);
}

.sale-form-shell {
  display: grid;
  gap: 1.2rem;
}

.sale-form-summary strong {
  font-family: var(--font-serif);
}

.sale-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.sale-service-card {
  display: flex;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(35, 27, 23, 0.09);
  background: rgba(255, 252, 247, 0.88);
  cursor: pointer;
}

.sale-service-card input {
  width: auto;
  margin-top: 0.2rem;
}

.sale-service-card-copy {
  display: grid;
  gap: 0.35rem;
}

.sale-service-card-copy strong {
  line-height: 1.35;
}

.sale-service-card-copy span {
  color: var(--muted);
  font-weight: 700;
}

.personnel-form {
  display: grid;
  gap: 1rem;
}

.personnel-form-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.employee-photo-preview {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  border: 1px solid rgba(35, 27, 23, 0.08);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.employee-identity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.employee-thumb,
.employee-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex: 0 0 48px;
}

.employee-thumb {
  object-fit: cover;
  border: 1px solid rgba(35, 27, 23, 0.08);
}

.employee-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(184, 108, 63, 0.9), rgba(33, 95, 120, 0.85));
  color: #fff8f1;
  font-weight: 700;
}

.employee-meta {
  display: grid;
  gap: 0.15rem;
}

.employee-meta strong {
  font-size: 0.98rem;
}

.employee-report-grid {
  display: grid;
  gap: 1rem;
}

.employee-report-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(250, 241, 232, 0.88));
}

.employee-report-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.75rem;
}

.employee-report-header h3 {
  margin: 0.2rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
}

.employee-report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.employee-report-metric {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.86);
  border: 1px solid rgba(35, 27, 23, 0.08);
}

.employee-report-metric span,
.commission-breakdown-item span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.employee-report-metric strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.commission-breakdown {
  display: grid;
  gap: 0.9rem;
}

.commission-breakdown summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ocean);
}

.commission-breakdown-list {
  display: grid;
  gap: 0.75rem;
}

.commission-breakdown-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(140px, 1fr));
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(35, 27, 23, 0.08);
  background: rgba(255, 252, 247, 0.92);
}

.commission-breakdown-item div {
  display: grid;
  gap: 0.22rem;
}

.commission-breakdown-item strong {
  line-height: 1.35;
}

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

th,
td {
  padding: 0.95rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-panel form,
.inline-form {
  display: grid;
  gap: 1rem;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field.compact {
  min-width: 180px;
}

label {
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(35, 27, 23, 0.12);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: var(--paper-strong);
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(184, 108, 63, 0.18);
  border-color: rgba(184, 108, 63, 0.45);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}

.inline-form-wide .field {
  max-width: 220px;
}

.messages {
  display: grid;
  gap: 0.8rem;
}

.message {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.message-success {
  border-color: rgba(45, 122, 82, 0.22);
  background: rgba(224, 245, 234, 0.72);
}

.badge {
  display: inline-flex;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-success {
  background: rgba(45, 122, 82, 0.14);
  color: var(--success);
}

.badge-muted {
  background: rgba(35, 27, 23, 0.08);
  color: var(--muted);
}

.error {
  color: #b3412f;
}

.empty-state {
  color: var(--muted);
}

.auth-body {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2vw, 1.8rem);
  background:
    linear-gradient(115deg, rgba(18, 12, 10, 0.36), rgba(18, 12, 10, 0.66)),
    url("/static/img/auth-background-desktop.jpg");
  background-size: cover;
  background-position: center;
}

.auth-body::before,
.auth-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.auth-body::before {
  background:
    linear-gradient(90deg, rgba(19, 13, 11, 0.78) 0%, rgba(19, 13, 11, 0.54) 34%, rgba(19, 13, 11, 0.18) 64%, rgba(19, 13, 11, 0.48) 100%),
    radial-gradient(circle at 22% 30%, rgba(255, 217, 176, 0.22), transparent 26%);
}

.auth-body::after {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 232, 208, 0.16), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(83, 42, 22, 0.28), transparent 26%);
}

.auth-shell {
  width: min(100%, 1120px);
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.auth-panel {
  position: relative;
  width: min(100%, 430px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 34px 80px rgba(20, 14, 11, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  min-width: 0;
  overflow: hidden;
}

.auth-help-card strong,
.auth-help-card p,
.auth-help-card code {
  overflow-wrap: anywhere;
}

.auth-panel-form {
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.88), rgba(247, 239, 232, 0.82));
  backdrop-filter: blur(24px) saturate(140%);
}

.auth-panel-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(152, 90, 54, 0.96), rgba(226, 183, 145, 0.9));
}

.auth-form-wrap {
  width: 100%;
  margin: auto;
  display: grid;
  gap: 1.25rem;
}

.auth-form-header {
  display: grid;
  gap: 1rem;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.auth-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.95rem;
  background: linear-gradient(145deg, rgba(50, 32, 24, 0.96), rgba(149, 92, 60, 0.92));
  color: #fff7f0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(70, 40, 24, 0.22);
}

.auth-brand-copy {
  display: grid;
  gap: 0.2rem;
}

.auth-form-header .eyebrow {
  margin: 0;
  color: rgba(105, 68, 49, 0.88);
  letter-spacing: 0.16em;
}

.auth-form-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw, 2.95rem);
  line-height: 1;
  color: #241915;
}

.auth-form {
  display: grid;
  gap: 1.1rem;
}

.auth-form .field {
  gap: 0.5rem;
}

.auth-form label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(105, 84, 71, 0.88);
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
  height: 3.5rem;
  padding: 0 1.05rem;
  border-radius: 20px;
  border-color: rgba(67, 47, 35, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 6px 14px rgba(42, 28, 18, 0.04);
}

.auth-form input::placeholder {
  color: #9a8a80;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus {
  outline: none;
  border-color: rgba(169, 102, 67, 0.52);
  box-shadow:
    0 0 0 5px rgba(188, 128, 90, 0.12),
    0 12px 22px rgba(62, 36, 22, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100px rgba(255, 255, 255, 0.94) inset;
  transition: background-color 9999s ease-out 0s;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.1rem;
  font-size: 0.88rem;
  color: rgba(96, 79, 68, 0.92);
  flex-wrap: wrap;
}

.checkbox-row span {
  flex: 1;
}

.checkbox-row input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--copper);
}

.auth-submit {
  width: 100%;
  min-height: 3.55rem;
  font-size: 1rem;
  background: linear-gradient(135deg, #2d1d15, #8b5638 72%, #c88b63);
  color: #fff9f3;
  box-shadow: 0 20px 34px rgba(66, 39, 24, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 40px rgba(66, 39, 24, 0.34);
  filter: saturate(1.03);
}

.auth-submit:focus-visible {
  outline: 3px solid rgba(184, 108, 63, 0.22);
  outline-offset: 2px;
}

.auth-help-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(35, 27, 23, 0.08);
  background: rgba(255, 247, 237, 0.72);
}

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

  .sidebar {
    gap: 1rem;
  }

  .stats-grid,
  .two-column,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-actions {
    width: 100%;
  }

  .auth-shell {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .auth-body {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: 0.75rem;
    background-image:
      linear-gradient(120deg, rgba(18, 12, 10, 0.42), rgba(18, 12, 10, 0.7)),
      url("/static/img/auth-background-mobile.jpg");
  }

  .auth-shell {
    width: 100%;
    min-height: auto;
    justify-content: center;
  }

  .content-shell,
  .topbar,
  .sidebar {
    padding: 1.2rem;
  }

  .content-shell {
    gap: 1rem;
  }

  .page-header,
  .panel-header,
  .topbar {
    flex-direction: column;
    align-items: start;
  }

  .topbar-right,
  .topbar-meta {
    width: 100%;
  }

  .page-header {
    gap: 0.75rem;
  }

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

  .page-actions .button,
  .form-actions .button {
    width: 100%;
  }

  .stats-grid,
  .two-column,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-entry-top,
  .service-entry-bottom {
    flex-direction: column;
    align-items: start;
  }

  .employee-report-header,
  .commission-breakdown-item {
    grid-template-columns: 1fr;
  }

  .employee-report-header {
    display: grid;
  }

  .employee-report-metrics {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    width: 100%;
    border-radius: 26px;
  }

  .auth-panel-form {
    padding: 1.25rem;
    background:
      linear-gradient(180deg, rgba(255, 251, 247, 0.92), rgba(247, 239, 232, 0.88));
  }

  .auth-brand-row {
    gap: 0.75rem;
  }

  .auth-mark {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.85rem;
  }

  .auth-form-header {
    gap: 0.85rem;
  }

  .auth-form-header h2 {
    font-size: clamp(2rem, 10vw, 2.45rem);
  }

  .checkbox-row {
    align-items: start;
  }

  .employee-photo-preview {
    width: 100px;
    height: 100px;
  }

  .service-form-photo {
    width: 100px;
    height: 100px;
  }

  .inline-form {
    display: grid;
    align-items: stretch;
  }

  .inline-form .field,
  .inline-form-wide .field,
  .inline-form .form-actions {
    width: 100%;
    max-width: none;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .table-wrapper {
    overflow: visible;
  }

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

  .table-wrapper thead {
    display: none;
  }

  .table-wrapper tbody {
    display: grid;
    gap: 0.85rem;
  }

  .table-wrapper tr {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 252, 247, 0.82);
  }

  .table-wrapper td {
    padding: 0;
    border: 0;
  }

  .table-wrapper td + td {
    margin-top: 0.8rem;
  }

  .table-wrapper td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.28rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .table-wrapper td[colspan] {
    margin-top: 0;
  }

  .table-wrapper td[colspan]::before {
    content: none;
  }

  .employee-identity {
    align-items: start;
  }

}
