/* Unified 2026 UI for public forms and all role cabinets. */
:root {
  --ui-bg: #f4f6f8;
  --ui-surface: #fff;
  --ui-ink: #20242a;
  --ui-muted: #747a83;
  --ui-line: #e5e8ec;
  --ui-soft: #f3f5f7;
  --ui-primary: #e85d3b;
  --ui-primary-dark: #cf4d2d;
  --ui-focus: rgba(232, 93, 59, .13);
  --ui-shadow: 0 12px 36px rgba(28, 33, 39, .07);
}

.operator-shell,
.master-shell,
.client-shell {
  background: var(--ui-bg);
}

.client-shell .section {
  width: min(100%, 900px);
  padding: 28px 16px 70px;
}

.client-shell .status-card,
.client-shell .status-side-card {
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-surface);
  box-shadow: 0 6px 22px rgba(28, 33, 39, .045);
}

.operator-shell .section,
.master-shell .section {
  width: min(100%, 1160px);
  padding: 28px 16px 104px;
}

.operator-shell .toolbar,
.master-shell .toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.operator-shell .toolbar h1,
.master-shell .toolbar h1 {
  margin: 0 0 5px;
  font-size: clamp(1.65rem, 6vw, 2.25rem);
}

.operator-shell .tabs,
.master-shell .tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 0 0 20px;
  padding: 2px 0 5px;
  scrollbar-width: none;
}

.operator-shell .tabs::-webkit-scrollbar,
.master-shell .tabs::-webkit-scrollbar { display: none; }

.operator-shell .tabs a,
.master-shell .tabs a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface);
  color: #555c65;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.operator-shell .tabs a.active,
.master-shell .tabs a.active {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
  color: #fff;
}

.operator-shell .card,
.master-shell .card,
.operator-shell .table-wrap,
.master-shell .table-wrap {
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-surface);
  box-shadow: 0 6px 22px rgba(28, 33, 39, .045);
}

.operator-shell .card,
.master-shell .card {
  padding: 20px;
}

.operator-shell .card .card,
.master-shell .card .card {
  box-shadow: none;
}

.operator-shell .card-title,
.master-shell .card-title {
  color: var(--ui-ink);
  font-size: 16px;
  font-weight: 850;
}

.operator-shell .field,
.master-shell .field,
.operator-shell .form-group,
.master-shell .form-group {
  margin-bottom: 15px;
}

.operator-shell .field-label,
.master-shell .field-label,
.operator-shell .form-group > label,
.master-shell .form-group > label {
  display: block;
  margin: 0 0 7px;
  color: #383d44;
  font-size: 13px;
  font-weight: 800;
}

.operator-shell :is(.input, .form-control),
.master-shell :is(.input, .form-control) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: none;
  background: var(--ui-soft);
  color: var(--ui-ink);
  font: inherit;
  font-size: 16px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.operator-shell :is(.input, .form-control):focus,
.master-shell :is(.input, .form-control):focus {
  border-color: var(--ui-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--ui-focus);
}

.operator-shell textarea.form-control,
.master-shell textarea.form-control {
  min-height: 128px;
  resize: vertical;
}

.operator-shell select.form-control,
.master-shell select.form-control,
.operator-shell select.input,
.master-shell select.input {
  padding-right: 42px;
}

.operator-shell .btn:not(.operator-mobile-nav__new),
.master-shell .btn {
  border-radius: 13px;
}

.operator-shell .btn-full,
.master-shell .btn-full {
  min-height: 52px;
}

.operator-shell table,
.master-shell table {
  width: 100%;
  border-collapse: collapse;
}

.operator-shell th,
.master-shell th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-muted);
  background: #f8f9fa;
  font-size: 12px;
  text-align: left;
  text-transform: none;
}

.operator-shell td,
.master-shell td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf0f2;
}

.operator-shell tr:last-child td,
.master-shell tr:last-child td { border-bottom: 0; }

/* Component display rules must never revive install UI inside a PWA. */
[data-install-ui][hidden] {
  display: none !important;
}

/* Unified sign-in screens. */
.auth-screen {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 28px 16px;
  background:
    radial-gradient(circle at 8% 8%, rgba(232, 93, 59, .16), transparent 32%),
    radial-gradient(circle at 92% 90%, rgba(47, 158, 122, .12), transparent 34%),
    #f5f6f8;
}

.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(38, 42, 47, .07) .75px, transparent .75px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--ui-ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
}

.auth-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ui-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 93, 59, .24);
}

.auth-card {
  padding: 26px;
  border: 1px solid rgba(222, 226, 230, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--ui-shadow);
  backdrop-filter: blur(14px);
}

.auth-card__head {
  margin-bottom: 22px;
  text-align: center;
}

.auth-card__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fbe7e0;
  color: #c6482a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0 0 7px;
  color: var(--ui-ink);
  font-size: 26px;
}

.auth-card__head p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 14px;
}

.auth-field {
  margin-bottom: 15px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: #383d44;
  font-size: 13px;
  font-weight: 800;
}

.auth-control {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: none;
  background: #f1f3f5;
  color: var(--ui-ink);
  font: inherit;
  font-size: 16px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.auth-control:focus {
  border-color: var(--ui-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--ui-focus);
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: var(--ui-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 93, 59, .24);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.auth-submit:hover { background: var(--ui-primary-dark); }
.auth-footer { margin-top: 17px; text-align: center; }
.auth-footer a { color: #5d636b; font-size: 13px; font-weight: 750; }
.auth-error { margin-top: 6px; color: #b42318; font-size: 12px; font-weight: 700; }

@media (max-width: 560px) {
  .operator-shell .section,
  .master-shell .section {
    padding: 18px 12px 90px;
  }

  .operator-shell .card,
  .master-shell .card { padding: 16px; border-radius: 16px; }
  .operator-shell .toolbar,
  .master-shell .toolbar { display: block; }
  .operator-shell .toolbar > a,
  .master-shell .toolbar > a { margin-top: 10px; }
  .auth-screen { padding: 18px 14px; }
  .auth-card { padding: 22px 17px; border-radius: 20px; }
  .auth-card h1 { font-size: 23px; }
}
