:root {
  --ink: #111318;
  --ink-2: #20252a;
  --gold: #d7b44a;
  --gold-light: #f1e4ba;
  --line: #ccd1d6;
  --muted: #667078;
  --bg: #f0f2f4;
  --green: #246e3c;
  --red: #a74a42;
  --white: #fff;
  --shadow: 0 3px 14px rgba(17, 19, 24, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: #20252a;
  font:
    14px Arial,
    Helvetica,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.noscript {
  margin: 30px auto;
  max-width: 700px;
  padding: 18px;
  background: #fff7df;
  border: 1px solid var(--gold);
  border-radius: 8px;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 22px 14px;
  background: var(--ink);
  color: #fff;
  border-right: 3px solid var(--gold);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 5px 22px;
  border-bottom: 1px solid rgba(241, 228, 186, 0.18);
}
.brand img {
  width: 135px;
  height: 45px;
  object-fit: contain;
  object-position: left center;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: #e4d6a5;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-section {
  margin-top: 21px;
  color: #aeb4bb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 6px;
  padding: 10px 11px;
  background: transparent;
  color: #e7e9eb;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}
.nav button:hover {
  background: #20242a;
}
.nav button.active {
  background: var(--gold);
  color: #111318;
}
.sidebar-foot {
  margin-top: 35px;
  padding: 13px 5px 0;
  border-top: 1px solid rgba(241, 228, 186, 0.18);
  color: #aeb4bb;
  font-size: 10px;
  line-height: 1.55;
}
.sidebar-foot b {
  color: var(--gold);
  font-size: 10px;
}
.page {
  min-width: 0;
  padding: 25px 34px 55px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.language-switch button {
  border: 0;
  border-radius: 4px;
  padding: 5px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.language-switch button.active {
  background: var(--ink);
  color: #fff;
}
.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.eyebrow {
  margin: 0 0 6px;
  color: #9b7620;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.view-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: 27px;
  letter-spacing: -0.04em;
}
.view-header p {
  max-width: 650px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.button {
  border: 0;
  border-radius: 5px;
  padding: 10px 13px;
  font-size: 11px;
  font-weight: 800;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.12);
}
.button-primary {
  background: var(--gold);
  color: #111318;
}
.button-dark {
  background: var(--ink);
  color: #fff;
}
.button-light {
  background: #e9edf0;
  color: #222;
}
.button-danger {
  background: #f6e7e5;
  color: #8c312b;
}
.button-small {
  padding: 7px 9px;
  font-size: 10px;
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 17px;
  padding: 11px 13px;
  border: 1px solid #e4d8ad;
  border-radius: 7px;
  background: #fffaf0;
  color: #565045;
  font-size: 10px;
  line-height: 1.5;
}
.notice strong {
  display: block;
  color: #34312b;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.stat-card {
  min-height: 112px;
  padding: 17px;
  border: 1px solid #d9dde1;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.stat-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.stat-card strong {
  display: block;
  margin-top: 11px;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -0.05em;
}
.stat-card small {
  display: block;
  margin-top: 4px;
  color: #6b737b;
  font-size: 10px;
}
.stat-card.gold {
  background: var(--ink);
  border-color: var(--gold);
}
.stat-card.gold span {
  color: #e8d88d;
}
.stat-card.gold strong {
  color: #fff;
}
.stat-card.gold small {
  color: #d7d9dd;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 17px;
}
.card {
  min-width: 0;
  border: 1px solid #d9dde1;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 17px 12px;
  border-bottom: 1px solid #edf0f2;
}
.card-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}
.card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.activity-list {
  display: grid;
}
.activity {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  border-bottom: 1px solid #edf0f2;
}
.activity:last-child {
  border: 0;
}
.activity b,
.activity span {
  display: block;
}
.activity b {
  font-size: 11px;
}
.activity span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.empty {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.55;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: end;
  margin-bottom: 15px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.toolbar label {
  display: grid;
  gap: 5px;
  min-width: 135px;
  flex: 1;
  color: #4f575f;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 35px;
  border: 1px solid #c8cdd2;
  border-radius: 5px;
  padding: 8px;
  background: #fff;
  color: #222;
  font-size: 11px;
}
.split {
  display: grid;
  grid-template-columns: minmax(290px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: start;
}
.form-card {
  padding: 17px;
}
.form-card h2 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 16px;
}
.form-card > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.form-stack {
  display: grid;
  gap: 11px;
}
.grid {
  display: grid;
  gap: 11px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.field {
  min-width: 0;
}
.field label {
  display: block;
  margin-bottom: 5px;
  color: #394047;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #c8cdd2;
  border-radius: 5px;
  padding: 9px;
  background: #fff;
  color: #222;
  font:
    12px Arial,
    Helvetica,
    sans-serif;
}
.field textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.45;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 3px solid rgba(215, 180, 74, 0.22);
  border-color: #b58b26;
}
.list-card {
  padding: 0 17px;
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f2;
}
.row:last-child {
  border-bottom: 0;
}
.row strong,
.row span,
.row small {
  display: block;
}
.row strong {
  font-size: 12px;
}
.row span,
.row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pill.draft {
  background: #eceff2;
  color: #5f6871;
}
.pill.open {
  background: #fff1ce;
  color: #87621b;
}
.pill.approved,
.pill.completed,
.pill.confirmed {
  background: #e2f1e6;
  color: #246e3c;
}
.pill.declined,
.pill.cancelled {
  background: #f5e5e3;
  color: #9b4037;
}
.pill.closed,
.pill.expired,
.pill.no_show {
  background: #e9e9eb;
  color: #51555a;
}
.pill.in_progress {
  background: #e4eef8;
  color: #376b9c;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tabs button {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 10px;
  background: #fff;
  color: #505963;
  font-size: 10px;
  font-weight: 800;
}
.tabs button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.schedule-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.schedule-card {
  min-width: 0;
  overflow: hidden;
}
.schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #e7e9eb;
  background: #fbfbfa;
}
.schedule-toolbar .schedule-filters {
  justify-content: flex-start;
}
.schedule-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}
.schedule-filters label {
  display: grid;
  gap: 4px;
  min-width: 112px;
  color: #4f575f;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.schedule-filters input,
.schedule-filters select {
  min-height: 32px;
  border: 1px solid #c8cdd2;
  border-radius: 5px;
  padding: 7px;
  background: #fff;
  font-size: 10px;
}
.view-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #ded4b8;
  border-radius: 6px;
  background: #f7f4ec;
}
.view-toggle button {
  border: 0;
  border-radius: 4px;
  padding: 7px 10px;
  background: transparent;
  color: #6d665b;
  font-size: 10px;
  font-weight: 800;
}
.view-toggle button.active {
  background: var(--ink);
  color: var(--gold-light);
}
.calendar-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.calendar-navigation > div {
  min-width: 160px;
  text-align: center;
}
.calendar-navigation strong,
.calendar-navigation small {
  display: block;
}
.calendar-navigation strong {
  color: var(--ink);
  font-size: 14px;
}
.calendar-navigation small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.schedule-view-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 13px 15px 10px;
}
.schedule-view-heading h2 {
  margin: 0;
  font-size: 14px;
}
.schedule-view-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.calendar-scroll {
  overflow-x: auto;
  padding: 0 12px 14px;
}
.calendar-weekdays,
.calendar-month-grid {
  min-width: 770px;
  display: grid;
  grid-template-columns: repeat(7, minmax(104px, 1fr));
}
.calendar-weekdays {
  border: 1px solid #d9dde0;
  border-bottom: 0;
  background: #f1f2f3;
}
.calendar-weekdays > div {
  padding: 9px 7px;
  border-right: 1px solid #e0e3e5;
  color: #565f68;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}
.calendar-weekdays > div:last-child {
  border-right: 0;
}
.calendar-month-grid {
  border-left: 1px solid #d9dde0;
  border-top: 1px solid #d9dde0;
}
.calendar-day {
  min-width: 0;
  min-height: 139px;
  border-right: 1px solid #d9dde0;
  border-bottom: 1px solid #d9dde0;
  padding: 7px;
  background: #fff;
}
.calendar-day.outside-month {
  background: #f8f9fa;
}
.calendar-day.is-today {
  box-shadow: inset 0 3px 0 var(--gold);
  background: #fffdf6;
}
.calendar-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 24px;
  margin-bottom: 5px;
}
.calendar-day-number {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #353b42;
  font-size: 12px;
  font-weight: 800;
}
.calendar-day-number:hover,
.calendar-day.is-today .calendar-day-number {
  background: var(--ink);
  color: var(--gold-light);
}
.calendar-day.outside-month .calendar-day-number {
  color: #a9afb4;
}
.calendar-day-count {
  min-width: 21px;
  border-radius: 10px;
  padding: 3px 6px;
  background: #f2e8c9;
  color: #74591d;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}
.calendar-day-events {
  display: grid;
  gap: 4px;
}
.calendar-event {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  border-left: 3px solid #b18b32;
  border-radius: 4px;
  padding: 5px 6px;
  background: #f6f0df;
  color: #292b2d;
  text-align: left;
  line-height: 1.2;
}
button.calendar-event {
  cursor: pointer;
}
.calendar-event strong,
.calendar-event span,
.calendar-event small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-event strong {
  font-size: 9px;
}
.calendar-event span {
  margin-top: 2px;
  color: #5e6368;
  font-size: 8px;
}
.calendar-event small {
  margin-top: 3px;
  color: #72551a;
  font-size: 8px;
  font-weight: 800;
}
.calendar-event.event-start {
  border-left-color: #248267;
}
.calendar-event.event-end {
  border-right: 2px solid #248267;
}
.calendar-event.confirmed {
  background: #e1f0ea;
  border-left-color: #378a75;
}
.calendar-event.in_progress {
  background: #fbefd8;
  border-left-color: #c28728;
}
.calendar-event.completed {
  background: #dceee5;
  border-left-color: #256848;
}
.calendar-event.cancelled {
  background: #f2e6e3;
  border-left-color: #a06c62;
  text-decoration: line-through;
  opacity: 0.72;
}
.calendar-event.no_show {
  background: #eee7f1;
  border-left-color: #8a7097;
}
.calendar-event[role="img"] {
  cursor: default;
}
.calendar-more {
  border: 0;
  padding: 3px 5px;
  background: transparent;
  color: #74591d;
  font-size: 8px;
  font-weight: 800;
  text-align: left;
}
.date-gantt-empty {
  margin: 0 14px 14px;
  padding: 32px 16px;
  border: 1px dashed #d3d7da;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.date-gantt {
  position: relative;
  padding: 13px 14px 16px;
  background: #fff;
}
.date-gantt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.date-gantt-header strong,
.date-gantt-header span {
  display: block;
}
.date-gantt-header strong {
  color: var(--ink);
  font-size: 13px;
}
.date-gantt-header span {
  max-width: 740px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.date-gantt-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 8px;
  padding: 9px 11px;
  border-left: 3px solid var(--gold);
  background: #f7f4ec;
  font-size: 10px;
}
.date-gantt-summary span {
  color: var(--muted);
}
.date-gantt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 11px;
  margin-bottom: 9px;
}
.date-gantt-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #687078;
  font-size: 9px;
}
.date-gantt-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7189a6;
}
.date-gantt-legend .confirmed i {
  background: #378a75;
}
.date-gantt-legend .in_progress i {
  background: #c28728;
}
.date-gantt-legend .completed i {
  background: #256848;
}
.date-gantt-legend .cancelled i {
  background: #a06c62;
}
.date-gantt-legend .no_show i {
  background: #8a7097;
}
.date-gantt-scroll {
  overflow: auto;
  max-height: min(66vh, 720px);
  border: 1px solid #dce0e3;
  border-radius: 6px;
}
.date-gantt-board {
  --gantt-days: 31;
  min-width: max-content;
}
.date-gantt-axis-row,
.date-gantt-row {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
}
.date-gantt-axis-row {
  position: sticky;
  top: 0;
  z-index: 8;
}
.date-gantt-name {
  position: sticky;
  left: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 62px;
  border-right: 1px solid #dce0e3;
  border-bottom: 1px solid #e4e7e9;
  padding: 7px 10px;
  background: #fff;
}
.date-gantt-name strong {
  overflow: hidden;
  color: #292d31;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.date-gantt-name span,
.date-gantt-name small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.date-gantt-name .pill {
  align-self: flex-start;
  margin-top: 1px;
  padding: 2px 5px;
  font-size: 7px;
}
.date-gantt-name-head {
  min-height: 55px;
  background: #f1f2f3;
  color: #525c64;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.date-gantt-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--gantt-days), minmax(36px, 1fr));
  min-width: calc(var(--gantt-days) * 36px);
  min-height: 62px;
  border-bottom: 1px solid #e4e7e9;
  background-color: #fff;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / var(--gantt-days) - 1px),
    #e7eaec calc(100% / var(--gantt-days) - 1px),
    #e7eaec calc(100% / var(--gantt-days))
  );
}
.date-gantt-axis {
  min-height: 55px;
  background-color: #f5f6f7;
}
.date-gantt-axis-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-left: 1px solid #e0e4e6;
  color: #4e565d;
}
.date-gantt-axis-day b {
  font-size: 10px;
}
.date-gantt-axis-day small {
  color: #7b8389;
  font-size: 7px;
}
.date-gantt-axis-day em {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 13px;
  border-radius: 8px;
  padding: 1px 3px;
  background: #ead9a6;
  color: #684e12;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}
.date-gantt-bar {
  position: absolute;
  top: 14px;
  left: var(--bar-left);
  z-index: 2;
  width: var(--bar-width);
  min-width: 18px;
  height: 34px;
  overflow: hidden;
  border: 0;
  border-left: 4px solid #9a7626;
  border-right: 4px solid #9a7626;
  border-radius: 5px;
  padding: 0 5px;
  background: #e8d69c;
  color: #342a15;
  text-align: left;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(25, 30, 38, 0.12);
}
button.date-gantt-bar {
  cursor: pointer;
}
.date-gantt-bar.continues-before {
  border-left-style: dashed;
}
.date-gantt-bar.continues-after {
  border-right-style: dashed;
}
.date-gantt-bar.confirmed {
  background: #cce6d8;
  border-color: #378a75;
}
.date-gantt-bar.in_progress {
  background: #f4dfb6;
  border-color: #c28728;
}
.date-gantt-bar.completed {
  background: #cae5d4;
  border-color: #256848;
}
.date-gantt-bar.cancelled {
  background: #e6d3ce;
  border-color: #a06c62;
  opacity: 0.7;
}
.date-gantt-bar.no_show {
  background: #ddd1e3;
  border-color: #8a7097;
}
.date-gantt-bar[role="img"] {
  cursor: default;
}
.date-gantt-bar span {
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 900;
  line-height: 32px;
  text-align: center;
}
.date-gantt.is-expanded {
  position: fixed;
  inset: 12px;
  z-index: 200;
  overflow: auto;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.4);
}
.date-gantt.is-expanded .date-gantt-scroll {
  max-height: calc(100vh - 230px);
}
.appointment {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f2;
}
.date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 49px;
  border-radius: 7px;
  background: #f4ebd1;
  color: #765515;
}
.date-badge b {
  font-size: 16px;
  line-height: 1;
}
.date-badge span {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 800;
}
.appointment-main {
  min-width: 0;
}
.appointment-title {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
}
.appointment-title strong {
  font-size: 12px;
}
.appointment-main p,
.appointment-main small {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.gantt-panel {
  padding: 0 17px 17px;
}
.gantt-intro {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  padding: 14px 0;
}
.gantt-intro strong,
.gantt-intro span {
  display: block;
}
.gantt-intro strong {
  color: var(--ink);
  font-size: 12px;
}
.gantt-intro > div:first-child span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.gantt-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 9px;
}
.gantt-legend span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: #687078;
  font-size: 9px;
}
.gantt-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7189a6;
}
.gantt-legend .confirmed i {
  background: #378a75;
}
.gantt-legend .in_progress i {
  background: #c28728;
}
.gantt-legend .completed i {
  background: #256848;
}
.gantt-legend .cancelled i {
  background: #a06c62;
}
.gantt-legend .no_show i {
  background: #8a7097;
}
.gantt-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
  border-top: 1px solid #edf0f2;
}
.gantt-chart {
  min-width: 820px;
}
.gantt-axis,
.gantt-day {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
}
.gantt-axis {
  background: #fff;
}
.gantt-date-column {
  min-height: 34px;
  border-right: 1px solid #e9ecee;
}
.gantt-axis-track {
  position: relative;
  height: 34px;
  border-bottom: 1px solid #e9ecee;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(6.666667% - 1px),
    #eceff2 calc(6.666667% - 1px),
    #eceff2 6.666667%
  );
}
.gantt-axis-track span {
  position: absolute;
  top: 10px;
  transform: translateX(-50%);
  color: #818990;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.gantt-axis-track span:first-child {
  transform: none;
}
.gantt-axis-track span:last-child {
  transform: translateX(-100%);
}
.gantt-day {
  border-bottom: 1px solid #e9ecee;
}
.gantt-day-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px 8px 0;
  border-right: 1px solid #e9ecee;
}
.gantt-day-label strong {
  font-size: 10px;
}
.gantt-day-label span {
  color: var(--muted);
  font-size: 9px;
}
.gantt-lanes {
  display: grid;
}
.gantt-track {
  position: relative;
  min-height: 54px;
  border-bottom: 1px solid #f1f3f4;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(6.666667% - 1px),
    #f0f2f4 calc(6.666667% - 1px),
    #f0f2f4 6.666667%
  );
}
.gantt-track:last-child {
  border-bottom: 0;
}
.gantt-bar {
  position: absolute;
  top: 8px;
  left: var(--gantt-start);
  z-index: 1;
  width: var(--gantt-width);
  min-width: 30px;
  height: 38px;
  overflow: hidden;
  border: 0;
  border-left: 3px solid #7189a6;
  border-radius: 5px;
  padding: 5px 7px;
  background: #e5edf5;
  color: #26384e;
  text-align: left;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(25, 30, 38, 0.1);
}
.gantt-bar:not([role="img"]):hover {
  z-index: 3;
  transform: translateY(-1px);
}
.gantt-bar[role="img"] {
  cursor: default;
}
.gantt-bar span,
.gantt-bar small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt-bar span {
  font-size: 9px;
  font-weight: 800;
}
.gantt-bar small {
  margin-top: 2px;
  font-size: 8px;
  opacity: 0.8;
}
.gantt-bar.confirmed {
  border-left-color: #378a75;
  background: #e1f0ea;
  color: #205a4b;
}
.gantt-bar.in_progress {
  border-left-color: #c28728;
  background: #fbefd8;
  color: #79520f;
}
.gantt-bar.completed {
  border-left-color: #256848;
  background: #dceee5;
  color: #20553e;
}
.gantt-bar.cancelled {
  border-left-color: #a06c62;
  background: #f2e6e3;
  color: #7b4b43;
  text-decoration: line-through;
  opacity: 0.75;
}
.gantt-bar.no_show {
  border-left-color: #8a7097;
  background: #eee7f1;
  color: #654c72;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.74fr);
  gap: 16px;
  align-items: start;
}
.proposal-form {
  padding: 17px;
}
.step {
  margin: 0 0 17px;
  border: 1px solid #c8cdd2;
  border-top: 4px solid var(--gold);
  border-radius: 7px;
  background: #fff;
}
.step-title {
  margin: 0;
  padding: 10px 12px;
  background: #f0f2f3;
  border-bottom: 1px solid #dfe3e6;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.step-content {
  padding: 13px;
}
.helper {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.upload-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding: 10px;
  border: 1px dashed #bfc5c9;
  border-radius: 6px;
  background: #fafafa;
}
.upload-box img {
  display: none;
  width: 70px;
  height: 52px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid #ddd;
  background: #fff;
}
.upload-box img.visible {
  display: block;
}
.upload-box small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.scope-group {
  margin: 13px 0;
  border: 1px solid #c8cdd2;
  border-radius: 7px;
  padding: 12px;
  background: #fff;
}
.group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.group-head input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px;
  font-size: 13px;
  font-weight: 800;
}
.subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px -12px 8px;
  padding: 8px 11px;
  background: #f3f4f5;
  color: #30363b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.service-item {
  margin: 9px 0;
  border: 1px solid #e0e3e6;
  border-radius: 6px;
  padding: 10px;
  background: #fcfcfc;
}
.service-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 125px auto;
  gap: 7px;
}
.service-item input,
.service-item textarea,
.material-table input {
  width: 100%;
  border: 1px solid #cbd0d5;
  border-radius: 4px;
  padding: 8px;
  background: #fff;
  font-size: 11px;
}
.service-item textarea {
  min-height: 55px;
  margin-top: 7px;
  resize: vertical;
}
.service-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 7px;
}
.service-photo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.service-photo img {
  display: none;
  width: 42px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
}
.service-photo img.visible {
  display: block;
}
.material-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.material-table th {
  padding: 7px 5px;
  background: #252a30;
  color: #fff;
  font-size: 9px;
  text-align: left;
  text-transform: uppercase;
}
.material-table td {
  border: 1px solid var(--line);
  padding: 3px;
}
.material-table input {
  border: 0;
  padding: 6px 4px;
  background: transparent;
}
.right {
  text-align: right;
}
.group-total {
  margin-top: 9px;
  color: #252a30;
  text-align: right;
  font-size: 11px;
  font-weight: 800;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.total-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f5f6;
}
.total-box span {
  display: block;
  color: #59616a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.total-box b {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}
.total-box.grand {
  border-color: var(--gold);
  background: var(--ink);
  color: #fff;
}
.total-box.grand span {
  color: #eadba8;
}
.total-box.grand b {
  color: #f1d777;
}
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.preview-card {
  overflow: hidden;
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.preview-toolbar strong {
  font-size: 11px;
}
.preview-paper {
  min-height: 615px;
  padding: 14px;
  background: #dfe3e5;
  overflow: auto;
}
.proposal-document {
  width: 100%;
  min-width: 540px;
  background: #fff;
  color: #20252a;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 3px 13px rgba(0, 0, 0, 0.16);
}
.doc-head {
  display: grid;
  grid-template-columns: 34% 40% 26%;
  align-items: center;
  min-height: 72px;
  border: 2px solid var(--gold);
  background: var(--ink);
  color: #fff;
}
.doc-head > * {
  min-width: 0;
  min-height: 48px;
  padding: 9px;
  border-left: 1px solid #806d37;
}
.doc-head > *:first-child {
  border: 0;
}
.doc-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.doc-brand .client-logo {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}
.doc-title {
  text-align: center;
}
.doc-title b,
.doc-title span {
  display: block;
}
.doc-title b {
  font-size: 12px;
}
.doc-title span {
  margin-top: 3px;
  color: #e4d387;
  font-size: 8px;
  font-weight: 800;
}
.doc-meta {
  text-align: right;
  font-size: 8px;
  line-height: 1.55;
}
.doc-meta b,
.doc-meta span {
  display: block;
}
.doc-cover {
  min-height: 330px;
  border: 1px solid var(--gold);
  border-top: 0;
}
.doc-cover-title {
  padding: 42px 27px 22px;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  text-align: center;
}
.doc-cover-title small {
  display: block;
  color: #e4cb75;
  text-align: left;
  font-size: 8px;
  font-weight: 800;
}
.doc-cover-title h1 {
  margin: 44px 0 8px;
  font-size: 27px;
  text-transform: uppercase;
}
.doc-cover-title p {
  margin: 0;
  color: #e1e3e6;
  font-size: 11px;
}
.doc-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 18px;
}
.doc-summary div {
  min-height: 54px;
  border: 1px solid var(--line);
  padding: 9px;
}
.doc-summary label {
  display: block;
  color: #606870;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}
.doc-summary b {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.doc-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 18px 16px;
  padding: 15px;
  border: 1px solid var(--gold);
  background: var(--ink);
  color: #fff;
}
.doc-grand-total span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.doc-grand-total b {
  color: #f1d777;
  font-size: 22px;
}
.doc-body {
  padding: 18px;
}
.doc-section {
  margin: 0 0 20px;
}
.doc-section-title {
  margin: 0 0 9px;
  padding: 9px;
  border-left: 4px solid var(--gold);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}
.doc-text {
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.doc-group {
  margin: 0 0 14px;
  border: 1px solid var(--gold);
  padding: 11px;
}
.doc-group h3 {
  margin: 0 0 9px;
  font-size: 11px;
  text-transform: uppercase;
}
.doc-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid #dfe3e6;
}
.doc-service:last-child {
  border-bottom: 0;
}
.doc-service h4 {
  margin: 0 0 4px;
  font-size: 10px;
  text-transform: uppercase;
}
.doc-service p {
  margin: 0;
  font-size: 9px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.doc-service img {
  display: block;
  max-width: 100%;
  max-height: 110px;
  margin-top: 6px;
  object-fit: contain;
}
.doc-price {
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}
.doc-materials {
  width: 100%;
  border-collapse: collapse;
  margin-top: 9px;
  font-size: 9px;
}
.doc-materials th {
  background: #252a30;
  color: #fff;
  padding: 6px;
  text-align: left;
  text-transform: uppercase;
}
.doc-materials td {
  border: 1px solid var(--line);
  padding: 6px;
}
.doc-subtotal {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}
.doc-boundaries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.doc-boundary {
  min-height: 88px;
  border: 1px solid var(--line);
  padding: 9px;
}
.doc-boundary h3 {
  margin: 0 0 5px;
  font-size: 10px;
  text-transform: uppercase;
}
.doc-signature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 42px;
}
.doc-signature div {
  border-top: 1px solid #444;
  padding-top: 6px;
  text-align: center;
  font-size: 8px;
}
.doc-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 3px solid var(--gold);
  background: var(--ink);
  color: #fff;
  font-size: 7px;
  letter-spacing: 0.08em;
}
#printArea {
  display: none;
}
.toast-area {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 340px;
  padding: 11px 13px;
  border: 1px solid var(--gold);
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  font-size: 11px;
}
.toast i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
@media (max-width: 1180px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .split,
  .schedule-shell {
    grid-template-columns: 1fr;
  }
  .schedule-actions {
    justify-items: start;
  }
  .schedule-filters {
    justify-content: start;
  }
  .preview-paper {
    min-height: 0;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 11px 12px;
    border-right: 0;
    border-bottom: 3px solid var(--gold);
  }
  .brand {
    padding-bottom: 10px;
  }
  .brand img {
    width: 120px;
    height: 38px;
  }
  .nav-section {
    display: none;
  }
  .nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .nav button {
    min-height: 40px;
    justify-content: center;
    padding: 7px 4px;
    font-size: 10px;
    text-align: center;
  }
  .sidebar-foot {
    display: none;
  }
  .page {
    padding: 20px 12px 42px;
  }
  .topbar {
    margin-bottom: 17px;
  }
  .view-header {
    display: block;
  }
  .view-header .button {
    margin-top: 13px;
  }
  .view-header h1 {
    font-size: 24px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat-card {
    min-height: 92px;
    padding: 12px;
  }
  .stat-card strong {
    font-size: 23px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
  .toolbar label {
    min-width: calc(50% - 6px);
  }
  .row {
    grid-template-columns: 1fr;
  }
  .row-actions {
    justify-content: flex-start;
  }
  .schedule-filters,
  .schedule-filters label {
    width: 100%;
  }
  .schedule-actions {
    width: 100%;
  }
  .view-toggle {
    width: 100%;
  }
  .view-toggle button {
    flex: 1;
  }
  .schedule-toolbar {
    align-items: stretch;
  }
  .calendar-navigation {
    width: 100%;
    justify-content: space-between;
  }
  .calendar-navigation > div {
    min-width: 125px;
  }
  .calendar-scroll {
    padding: 0 8px 10px;
  }
  .calendar-weekdays,
  .calendar-month-grid {
    min-width: 770px;
  }
  .calendar-day {
    min-height: 126px;
    padding: 5px;
  }
  .date-gantt {
    padding: 10px;
  }
  .date-gantt-header {
    align-items: flex-start;
  }
  .date-gantt-axis-row,
  .date-gantt-row {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .date-gantt-track {
    grid-template-columns: repeat(var(--gantt-days), minmax(33px, 1fr));
    min-width: calc(var(--gantt-days) * 33px);
  }
  .date-gantt.is-expanded {
    inset: 5px;
    padding: 9px;
  }
  .date-gantt.is-expanded .date-gantt-scroll {
    max-height: calc(100vh - 260px);
  }
  .proposal-form {
    padding: 10px;
  }
  .step-content {
    padding: 10px;
  }
  .service-top {
    grid-template-columns: minmax(0, 1fr) 82px auto;
  }
  .service-bottom {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .preview-paper {
    margin: 0 -12px;
    padding: 9px;
  }
  .proposal-document {
    min-width: 520px;
  }
  .doc-cover-title h1 {
    font-size: 22px;
  }
  .doc-body {
    padding: 13px;
  }
  .doc-boundaries {
    grid-template-columns: 1fr;
  }
}
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }
  html,
  body {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  #app {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  #app > .app-shell,
  #app > #toastArea {
    display: none !important;
  }
  #printArea {
    display: block !important;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  #printArea .print-validation-message {
    max-width: 680px;
    margin: 24mm auto;
    padding: 18mm;
    border: 1px solid #cdd1d6;
    border-left: 5px solid var(--gold);
    background: #fff;
    color: #20252a;
    font: 12pt/1.5 Arial, Helvetica, sans-serif;
  }
  #printArea .print-validation-message h1 {
    margin-top: 0;
    font-size: 18pt;
  }
  #printArea .proposal-document {
    width: 100%;
    min-width: 0;
    box-shadow: none;
  }
  #printArea .doc-cover {
    min-height: 245mm;
    break-after: page;
    page-break-after: always;
  }
  #printArea .doc-body {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  #printArea .doc-head {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #printArea .doc-section,
  #printArea .doc-group {
    margin-bottom: 12px !important;
    break-inside: auto;
    page-break-inside: auto;
  }
  #printArea .doc-section-title,
  #printArea .doc-group h3 {
    break-after: avoid;
    page-break-after: avoid;
  }
  #printArea .doc-boundaries {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #printArea .doc-service {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #printArea .doc-boundary {
    min-height: 54px;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #printArea .doc-signature {
    margin-top: 18px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #printArea .doc-materials {
    break-inside: auto;
    page-break-inside: auto;
  }
  #printArea .doc-materials thead {
    display: table-header-group;
  }
  #printArea .doc-materials tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.editor-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.editor-fields:disabled {
  opacity: 0.82;
}
.editor-fields:disabled button {
  cursor: not-allowed;
}

/* Medidas por serviço: quantidades são dados, nunca traduções. */
.service-top {
  grid-template-columns: minmax(0, 1fr) auto;
}
.service-measurements {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
  align-items: end;
}
.service-measurements label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #555e67;
  font-size: 10px;
  font-weight: 700;
}
.service-measurements input,
.service-measurements select {
  width: 100%;
  min-width: 0;
  font: inherit;
  padding: 8px;
  border: 1px solid #cbd0d5;
  background: white;
  border-radius: 4px;
  color: #20252a;
}
.service-measurements input:disabled {
  background: #edf0f2;
  color: #6b7278;
}
.service-line-total {
  background: #f5efd9;
  border-radius: 4px;
  padding: 8px;
  font-size: 10px;
  min-height: 48px;
}
.service-line-total span,
.service-line-total strong {
  display: block;
}
.service-line-total strong {
  margin-top: 6px;
  font-size: 12px;
}
.doc-measure {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .service-measurements {
    grid-template-columns: 1fr 1fr;
  }
}

.doc-business-name {
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* Entry screen: presentation only, not an authentication boundary. */
.login-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(440px, 1.05fr);
}
.login-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px clamp(32px, 5vw, 88px) 30px;
  background: var(--ink);
  color: var(--gold-light);
  border-right: 3px solid var(--gold);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}
.login-brand img {
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.login-brand span {
  max-width: 108px;
  border-left: 1px solid #6a5b36;
  padding-left: 18px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.login-story-body {
  max-width: 560px;
  padding: 65px 0 52px;
}
.login-eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.login-story-body h2 {
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 23px 0 18px;
}
.login-intro {
  color: #b8bcc3;
  line-height: 1.6;
  font-size: 15px;
}
.login-features {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 22px;
}
.login-features li {
  display: flex;
  gap: 17px;
  align-items: start;
}
.login-feature-number {
  padding-top: 2px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.login-features h3 {
  font-size: 14px;
  color: #f1f2f4;
  margin: 0 0 6px;
}
.login-features p {
  font-size: 12px;
  line-height: 1.6;
  color: #aeb4bb;
  margin: 0;
  max-width: 345px;
}
.login-story-footer {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aeb4bb;
  line-height: 1.8;
}
.login-story-footer span {
  color: var(--gold);
  padding: 0 10px;
}
.login-access {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px clamp(24px, 4vw, 66px) 30px;
}
.login-toolbar {
  align-self: stretch;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}
.login-card {
  width: 100%;
  max-width: 440px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin: auto 0;
}
.login-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9dbb2;
  color: #8c6b0d;
  border-radius: 10px;
  background: #fbf8ef;
  margin-bottom: 21px;
}
.login-icon svg {
  width: 22px;
  height: 22px;
}
.login-card h1 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.login-subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 26px;
}
.login-card h2 {
  font-size: 14px;
  margin: 0 0 10px;
}
.login-account > p,
.login-local > p {
  font-size: 12px;
  line-height: 1.6;
  color: #596169;
  margin: 0 0 14px;
}
.login-account .login-pending {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #e4d6a5;
  background: #fbf8ed;
  color: #715407;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
}
.login-account-button,
.login-local-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.login-account-button:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: #70767d;
  background: #edf0f2;
  border: 1px solid #d6dbe0;
}
.login-account-button svg {
  width: 16px;
  height: 16px;
}
.login-local {
  margin-top: 25px;
  border-top: 1px solid #e4e7ea;
  padding-top: 24px;
}
.login-local-button {
  justify-content: space-between;
  margin: 18px 0 13px;
}
.login-local .login-local-warning {
  font-size: 10px;
  color: #666f78;
  line-height: 1.7;
  margin-bottom: 0;
}
.login-access-footer {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  line-height: 1.6;
  margin: 28px 0 0;
}
.login-screen button:focus-visible {
  outline: 3px solid #8c6b0d;
  outline-offset: 3px;
}
.login-return {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .login-screen {
    grid-template-columns: minmax(290px, 0.8fr) minmax(380px, 1fr);
  }
  .login-story {
    padding: 30px 28px;
  }
  .login-brand {
    gap: 12px;
    flex-wrap: wrap;
  }
  .login-brand img {
    width: 160px;
    height: 60px;
  }
  .login-brand span {
    border: 0;
    padding: 0;
    max-width: 180px;
  }
  .login-access {
    padding: 22px;
  }
  .login-card {
    padding: 28px;
  }
}
@media (max-width: 700px) {
  .login-screen {
    display: flex;
    flex-direction: column;
  }
  .login-story {
    padding: 20px 24px 23px;
    border-right: 0;
    border-bottom: 3px solid var(--gold);
  }
  .login-brand {
    flex-wrap: nowrap;
    gap: 16px;
  }
  .login-brand img {
    width: 145px;
    height: 48px;
  }
  .login-brand span {
    padding-left: 14px;
    border-left: 1px solid #6a5b36;
    max-width: 120px;
  }
  .login-story-body {
    padding: 16px 0 0;
  }
  .login-eyebrow {
    font-size: 9px;
    margin: 0;
  }
  .login-story-body h2 {
    font-size: 27px;
    margin: 12px 0 0;
  }
  .login-intro,
  .login-features,
  .login-story-footer {
    display: none;
  }
  .login-access {
    padding: 18px 18px 24px;
  }
  .login-toolbar {
    margin-bottom: 15px;
  }
  .login-card {
    padding: 25px;
  }
  .login-card h1 {
    font-size: 24px;
  }
  .login-access-footer {
    margin-top: 20px;
  }
}
@media print {
  .login-screen {
    display: none !important;
  }
}


/* Strategic ONE account flows — preserve the established black-and-gold design. */
.login-card .auth-message {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.55;
}
.login-card .auth-error {
  border-color: #e7c5c5;
  background: #fff7f6;
  color: #8a2525;
}
.login-card .auth-help {
  display: block;
  margin-top: -8px;
  color: var(--muted);
  font-size: 11px;
}
.login-card .auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.login-card .auth-links .button {
  flex: 1 1 auto;
  min-height: 38px;
  white-space: normal;
}
.login-card .login-account-button {
  margin-top: 5px;
}
.login-card .plan-list {
  display: grid;
  gap: 12px;
}
.login-card .plan-card {
  display: grid;
  gap: 14px;
  border: 1px solid #e2d5ad;
  border-radius: 8px;
  padding: 16px;
  background: #fcfaf4;
}
.login-card .plan-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
}
.login-card .plan-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.login-card .plan-price {
  display: block;
  color: #70560d;
  font-size: 19px;
}
.login-card .account-summary {
  margin: 12px 0 18px;
  padding: 12px 14px;
  background: #f7f8f9;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.login-card .account-summary p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 5px 0;
  font-size: 12px;
}
.login-card .account-summary span {
  color: var(--muted);
}
.login-card .auth-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0 18px;
}
.login-card .field input[readonly] {
  background: #f1f2f4;
  color: #68717a;
}
.login-card .button:disabled {
  cursor: wait;
  opacity: .7;
}
@media (max-width: 700px) {
  .login-card .grid.two {
    grid-template-columns: 1fr;
  }
  .login-card .auth-links {
    align-items: stretch;
  }
}


/* Administrative dashboard — same visual system; no private workspace records. */
.admin-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0;
}
.admin-users {
  overflow: hidden;
}
.admin-users .card-head {
  margin-bottom: 14px;
}
.admin-users .card-head h2 {
  margin: 0 0 5px;
}
.admin-users .card-head p {
  margin: 0;
  max-width: 720px;
}
.admin-users table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.admin-users th,
.admin-users td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.admin-users th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.admin-users td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.admin-users td strong {
  overflow-wrap: anywhere;
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.local-import-card {
  max-width: 680px;
  margin-top: 18px;
}
.local-import-card p {
  color: var(--muted);
  line-height: 1.6;
}
.account-email {
  display: block;
  margin-bottom: 10px;
  color: #c6c9cd;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .admin-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-users table {
    min-width: 700px;
  }
  .admin-users .table-scroll {
    overflow-x: auto;
  }
  .admin-pagination {
    justify-content: center;
  }
}

.admin-users td.admin-row-actions {
  min-width: 190px;
}
.admin-row-actions .button {
  margin: 2px;
  white-space: nowrap;
}

/* Proposal identity controls and document layout hardening */
.proposal-brand-step {
  margin-bottom: 14px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: #fffdf6;
}
.proposal-brand-step .step-title {
  color: var(--ink);
  font-weight: 900;
}
.proposal-color-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}
.proposal-color-control input[type="color"] {
  width: 58px;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.proposal-color-control code {
  color: var(--muted);
  font-size: 11px;
}
.proposal-logo-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed #bfc5c9;
  border-radius: 6px;
  background: #fafafa;
}
.proposal-logo-preview {
  display: grid;
  place-items: center;
  width: 150px;
  height: 72px;
  min-width: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #d8dcdf;
  border-radius: 5px;
  background: #fff;
}
.proposal-logo-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.proposal-logo-preview span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}
.proposal-logo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.proposal-brand-note {
  margin-top: 10px;
}
.preview-paper .proposal-document {
  box-sizing: border-box;
  width: 703px;
  min-width: 703px;
  overflow-wrap: anywhere;
}
.preview-paper[data-paper-format="letter"] .proposal-document {
  width: 725px;
  min-width: 725px;
}
.preview-paper[data-paper-format="a4"] .doc-cover {
  min-height: 850px;
}
.preview-paper[data-paper-format="letter"] .doc-cover {
  min-height: 785px;
}
.proposal-document .doc-head {
  grid-template-columns: minmax(0, 34fr) minmax(0, 40fr) minmax(0, 26fr);
  border-color: var(--doc-accent, var(--gold));
}
.proposal-document .doc-head > *,
.proposal-document .doc-brand,
.proposal-document .doc-meta,
.proposal-document .doc-summary > div,
.proposal-document .doc-service > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.proposal-document .doc-title b,
.proposal-document .doc-title span,
.proposal-document .doc-summary b,
.proposal-document .doc-cover-title h1 {
  overflow-wrap: anywhere;
}
.proposal-document .doc-cover,
.proposal-document .doc-cover-title {
  border-color: var(--doc-accent, var(--gold));
}
.proposal-document .doc-grand-total {
  gap: 12px;
  min-width: 0;
  border-color: var(--doc-accent, var(--gold));
}
.proposal-document .doc-grand-total span,
.proposal-document .doc-grand-total b {
  min-width: 0;
  overflow-wrap: anywhere;
}
.proposal-document .doc-section-title {
  border-left-color: var(--doc-accent, var(--gold));
  overflow-wrap: anywhere;
}
.proposal-document .doc-group {
  min-width: 0;
  border-color: var(--doc-accent, var(--gold));
}
.proposal-document .doc-service {
  grid-template-columns: minmax(0, 1fr) minmax(86px, 26%);
  min-width: 0;
}
.proposal-document .doc-service p,
.proposal-document .doc-service h4,
.proposal-document .doc-price {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.proposal-document .doc-materials {
  table-layout: fixed;
}
.proposal-document .doc-materials th,
.proposal-document .doc-materials td {
  min-width: 0;
  padding: 5px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.proposal-document .doc-materials th:nth-child(1),
.proposal-document .doc-materials td:nth-child(1) { width: 34%; }
.proposal-document .doc-materials th:nth-child(2),
.proposal-document .doc-materials td:nth-child(2) { width: 11%; }
.proposal-document .doc-materials th:nth-child(3),
.proposal-document .doc-materials td:nth-child(3) { width: 10%; }
.proposal-document .doc-materials th:nth-child(4),
.proposal-document .doc-materials td:nth-child(4) { width: 21%; }
.proposal-document .doc-materials th:nth-child(5),
.proposal-document .doc-materials td:nth-child(5) { width: 24%; }
.proposal-document .doc-footer {
  border-bottom-color: var(--doc-accent, var(--gold));
}
@media (max-width: 760px) {
  .proposal-logo-control {
    align-items: flex-start;
  }
  .proposal-logo-preview {
    width: 120px;
  }
  .proposal-brand-note {
    font-size: 9px;
  }
}

.proposal-document .doc-price small {
  display: block;
  margin-top: 4px;
  font-size: 7px;
  font-weight: 400;
  line-height: 1.35;
}
.proposal-document .doc-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}
.proposal-document .pdf-page-counter {
  margin-left: 0 !important;
}
