:root {
  font:
    14px Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #193e40;
  background: #f5f8f8;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  transition: 0.18s;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
a {
  color: #087c70;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
p {
  line-height: 1.65;
  color: #657c7e;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand svg {
  width: 36px;
  height: 36px;
}
.brand b {
  color: #0d9488;
}
.eyebrow {
  color: #258679;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}
.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100dvh;
}
.auth-art {
  position: relative;
  padding: 52px 64px;
  background: #eaf5f1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-art:after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid #acd9cc;
  border-radius: 50%;
  bottom: -310px;
  right: -160px;
  box-shadow:
    0 0 0 55px #dceee7,
    0 0 0 56px #bddfd4,
    0 0 0 112px #e4f2eb;
  pointer-events: none;
}
.auth-copy {
  position: relative;
  z-index: 1;
  margin: 80px 0;
}
.auth-copy h1 {
  font-size: clamp(42px, 4.5vw, 68px);
  line-height: 1.08;
  letter-spacing: -3px;
  margin: 20px 0 24px;
  max-width: 530px;
}
.auth-copy p {
  font-size: 16px;
  max-width: 380px;
}
.preview-card {
  margin-top: 38px;
  background: #ffffffb8;
  border: 1px solid #d2e5de;
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 340px;
  box-shadow: 0 12px 30px #2e6c4b07;
}
.preview-card .row {
  justify-content: space-between;
}
.preview-line {
  height: 7px;
  border-radius: 8px;
  background: #e2eeea;
  margin-top: 14px;
  width: 75%;
}
.preview-line.teal {
  background: #a3d4c3;
  width: 48%;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 44px;
  background: white;
}
.auth-box {
  width: 100%;
  max-width: 390px;
}
.auth-box h2 {
  font-size: 30px;
  margin: 18px 0 8px;
}
.auth-box form {
  margin-top: 30px;
}
.auth-box .helper {
  margin-top: 28px;
  border-top: 1px solid #e5eeeb;
  padding-top: 22px;
  font-size: 12px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 12px;
  color: #496467;
}
input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6e3df;
  background: #fff;
  padding: 11px 13px;
  border-radius: 9px;
  color: #193e40;
}
input:focus,
select:focus {
  outline: 3px solid #caf0e4;
  border-color: #409a87;
}
button {
  min-height: 44px;
  border: 1px solid #d5e5df;
  background: white;
  color: #35655d;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
}
.primary {
  background: #0b8b79;
  color: white;
  border-color: #0b8b79;
}
.primary:hover {
  background: #087766;
}
.secondary:hover,
button:hover {
  filter: brightness(0.97);
}
.wide {
  width: 100%;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 64px;
}
.password-toggle {
  position: absolute;
  right: 4px;
  top: 3px;
  border: 0;
  min-height: 40px;
  padding: 0 10px;
  background: none;
  font-size: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.muted {
  color: #526e74;
  font-size: 12px;
}
.error {
  padding: 12px;
  background: #fff2f0;
  color: #a3473a;
  border-radius: 8px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.success {
  padding: 12px;
  background: #e7f7ef;
  color: #146c50;
  border-radius: 8px;
  margin-bottom: 16px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: white;
  border-bottom: 1px solid #e1eae7;
  padding: 18px 32px;
}
.top .brand {
  font-size: 23px;
}
.top p {
  font-size: 12px;
}
.workspace {
  max-width: 1240px;
  margin: auto;
  padding: 30px;
}
.workspace header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 24px 0;
}
.tabs button {
  white-space: nowrap;
}
.tabs .active {
  background: #e1f4ec;
  border-color: #96d0bd;
  color: #096e5e;
}
.card {
  border: 1px solid #dce8e3;
  border-radius: 13px;
  background: white;
  overflow: hidden;
}
.pad {
  padding: 24px;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.toolbar input {
  max-width: 340px;
}
.toolbar select {
  max-width: 180px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  background: #f6f9f8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #718583;
}
th,
td {
  padding: 16px 20px;
  border-bottom: 1px solid #edf2ef;
}
td {
  font-size: 13px;
}
td small {
  display: block;
  color: #718583;
  margin-top: 5px;
}
tr:last-child td {
  border: 0;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11px;
  background: #e9f6ef;
  color: #18775b;
}
.badge.suspended {
  background: #fff1dc;
  color: #936322;
}
.empty {
  padding: 44px;
  text-align: center;
  color: #526e74;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.full {
  grid-column: 1/-1;
}
dialog {
  border: 1px solid #dbe7e1;
  border-radius: 16px;
  padding: 26px;
  width: min(550px, calc(100% - 28px));
  max-height: 90dvh;
  color: #193e40;
  box-shadow: 0 24px 80px #153e4033;
}
dialog::backdrop {
  background: #193f4055;
  backdrop-filter: blur(4px);
}
dialog h2 {
  margin-bottom: 20px;
}
dialog form .row {
  justify-content: flex-end;
}
.loading {
  padding: 80px;
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #184d43;
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  z-index: 100;
  max-width: calc(100% - 28px);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}
.stack {
  display: grid;
  gap: 16px;
}
.company-tag {
  padding-left: 20px;
  border-left: 1px solid #d9e6df;
}
.money {
  font-variant-numeric: tabular-nums;
}
.footer-note {
  margin-top: 22px;
  font-size: 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.check input {
  width: 18px;
  min-height: 18px;
}
.mono {
  font-family: ui-monospace, monospace;
}
@media (max-width: 760px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 24px;
    min-height: 180px;
  }
  .auth-copy {
    margin: 25px 0 5px;
  }
  .auth-copy h1 {
    font-size: 34px;
    letter-spacing: -1.5px;
    margin: 10px 0;
  }
  .auth-copy p,
  .preview-card,
  .auth-art > small {
    display: none;
  }
  .auth-panel {
    padding: 32px 24px;
  }
  .auth-box {
    max-width: 480px;
  }
  .auth-box h2 {
    font-size: 26px;
  }
  .top {
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .top .company-tag {
    display: none;
  }
  .workspace {
    padding: 22px 16px;
  }
  .workspace header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 25px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input,
  .toolbar select {
    max-width: none;
  }
  th,
  td {
    padding: 13px;
  }
  td .row {
    flex-wrap: wrap;
  }
  .top .row {
    gap: 9px;
  }
  .brand {
    font-size: 23px;
  }
}

.auth-art > .brand,
.auth-art > small {
  position: relative;
  z-index: 1;
}
.period-controls {
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.clock-panel {
  margin-bottom: 20px;
}
.clock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
  max-width: 520px;
}
.employee-picker {
  border: 1px solid #dce8e3;
  border-radius: 10px;
  margin: 0 0 18px;
  padding: 14px;
}
.employee-options {
  max-height: 180px;
  overflow: auto;
  margin-top: 14px;
}
.employee-options .check {
  margin-bottom: 12px;
}
.employee-options [hidden] {
  display: none;
}
.employee-picker input[type='search'] {
  margin-bottom: 10px;
}
.payroll-detail {
  margin-top: 16px;
}
.payroll-detail summary {
  cursor: pointer;
  font-weight: 650;
}
.payroll-detail .error {
  margin-top: 16px;
}
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d6e3df;
  border-radius: 8px;
  font: inherit;
}
.auth-art {
  isolation: isolate;
  min-width: 0;
  padding: clamp(24px, 4vw, 64px);
}
.auth-art:after {
  z-index: -1;
}
.auth-copy h1 {
  overflow-wrap: anywhere;
  font-size: clamp(34px, 4.5vw, 68px);
}
.auth-panel {
  min-width: 0;
}
.auth-box {
  min-width: 0;
}
.auth-box .helper .row {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .auth-art:after {
    display: none;
  }
  .auth-art {
    min-height: 0;
  }
  .auth-copy {
    margin-top: 20px;
  }
  .auth-panel {
    padding-top: 28px;
  }
  .period-controls strong {
    order: -1;
    width: 100%;
  }
}

/* Keep sign-in artwork in normal document flow at every zoom level. */
.auth-art::before,
.auth-art::after,
.preview-card {
  display: none !important;
}
.auth-art {
  overflow: visible;
}
.auth-copy {
  margin: clamp(24px, 6vh, 72px) 0;
}
.auth-copy h1 {
  letter-spacing: -1.5px;
  overflow-wrap: normal;
}
.auth-panel {
  align-content: center;
}
.auth-shell > * {
  min-width: 0;
}
@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 24px;
  }
  .auth-copy {
    margin: 20px 0 0;
  }
  .auth-copy h1 {
    font-size: 32px;
  }
  .auth-copy p,
  .auth-art > small {
    display: none;
  }
  .auth-panel {
    padding: 28px 24px;
  }
}

/* Compact workspace and large, readable schedule actions. */
.workspace {
  max-width: 1720px;
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr);
  gap: 26px;
  padding: 24px;
}
.workspace > .tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  overflow: visible;
  align-self: start;
  position: sticky;
  top: 20px;
}
.tabs button {
  text-align: left;
  border-color: transparent;
  background: transparent;
}
.tabs button.active {
  background: #dff5ef;
  border-color: #a5dbce;
}
.workspace > #section {
  min-width: 0;
}
.top .row {
  min-width: 0;
}
.top {
  padding: 15px 26px;
}
.toolbar {
  align-items: end;
}
.toolbar .field {
  margin: 0;
  min-width: 150px;
}
.toolbar > input {
  align-self: end;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
}
.day-column {
  background: #eef3f2;
  border: 1px solid #dce8e3;
  border-radius: 12px;
  padding: 8px;
  min-width: 0;
}
.day-column.today {
  border-color: #0d9488;
  box-shadow: 0 0 0 1px #0d9488;
}
.day-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 3px 14px;
}
.day-heading strong {
  font-size: 20px;
}
.shift-card {
  background: white;
  border: 1px solid #dce8e3;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.shift-card h3 {
  font-size: 14px;
  margin: 12px 0 8px;
}
.shift-card p {
  font-size: 12px;
  line-height: 1.7;
}
.shift-card small {
  display: block;
  color: #718583;
}
.shift-card .mono {
  font-size: 11px;
}
.shift-actions {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}
.shift-actions button {
  padding: 9px 7px;
  min-height: 44px;
  font-size: 12px;
}
.open-shift {
  border-top: 3px solid #0d9488;
}
.rest-day {
  padding: 20px 3px;
  color: #839590;
  font-size: 12px;
}
.period-pill {
  background: #e4f6f0;
  border-color: #a3d8ca;
  color: #086f61;
  font-weight: 700;
}
.day-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.day-picker input {
  position: absolute;
  opacity: 0;
  width: 1px;
  min-height: 1px;
}
.day-picker span {
  display: block;
  padding: 12px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  cursor: pointer;
}
.day-picker input:checked + span {
  background: #0d9488;
  color: white;
  border-color: #0d9488;
}
.day-picker input:focus-visible + span {
  outline: 3px solid #99e4d7;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat-grid h1 {
  margin-top: 10px;
  color: #0b8b79;
}
.section-heading {
  margin: 26px 0 16px;
}
.table-wrap td .row {
  flex-wrap: wrap;
}
.card .pad p {
  margin-top: 7px;
}
[hidden] {
  display: none !important;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #4ec8b5;
  outline-offset: 3px;
}
@media (max-width: 1400px) {
  .week-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .workspace > .tabs {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
  }
  .tabs button {
    font-size: 12px;
    padding: 8px 12px;
  }
  .week-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .workspace {
    padding: 16px;
    gap: 18px;
  }
  .top .row {
    flex-wrap: wrap;
  }
  .workspace header .row {
    flex-wrap: wrap;
  }
  .day-column {
    padding: 5px;
  }
  .shift-card {
    padding: 10px;
  }
  .period-controls {
    gap: 8px;
  }
  .period-controls button {
    flex: 1;
  }
  .period-controls .period-pill {
    flex-basis: 100%;
    order: -1;
  }
  .pagination {
    gap: 12px;
    flex-wrap: wrap;
  }
  .toolbar .field {
    flex: 1;
  }
}
@media (max-width: 370px) {
  .week-grid {
    grid-template-columns: 1fr;
  }
}

.calendar-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.date-control {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.date-trigger {
  flex: 1;
  text-align: left;
  background: #f0faf6;
  border-color: #b5dfd3;
  color: #087969;
  min-height: 46px;
}
.date-control input[type='time'] {
  width: 130px;
}
.calendar-dialog {
  width: min(360px, calc(100% - 28px));
  padding: 18px;
}
.calendar-heading {
  margin-bottom: 16px;
}
.calendar-heading button {
  background: #e8f7f1;
  border-color: #b7dfd2;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.calendar-grid > span {
  text-align: center;
  font-size: 11px;
  color: #708a82;
  padding: 8px;
}
.calendar-grid > button {
  min-height: 39px;
  padding: 5px;
  border-color: transparent;
}
.calendar-grid > button:hover {
  background: #e1f6ee;
}
.calendar-grid .selected,
.month-grid .selected {
  background: #0d9488;
  color: white;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.calendar-footer {
  border-top: 1px solid #e2ece7;
  margin-top: 16px;
  padding-top: 14px;
}
.calendar-footer button {
  border: 0;
}
.calendar-grid .selected:hover {
  background: #087969;
}

.view-switch {
  margin-bottom: 16px;
}
.view-switch button {
  min-width: 80px;
}
.lunch-edit-row {
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #dce8e3;
}
.employee-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: #d9f4eb;
  color: #087969;
  font-weight: 700;
}
.identity-copy small {
  display: block;
  color: #728580;
  font-size: 11px;
  margin-top: 3px;
}

.brand {
  text-decoration: none;
  color: inherit;
}
.company-tag a {
  text-decoration: none;
  color: inherit;
}
.brand:hover,
.company-tag a:hover {
  color: #087969;
}
.week-grid.calendar-day {
  grid-template-columns: minmax(0, 1fr);
}
.calendar-day .day-column {
  padding: 16px;
}
.calendar-day .shift-card {
  max-width: 860px;
}
.calendar-day .shift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.calendar-day .shift-actions button {
  width: auto;
  flex: 0 0 auto;
  padding: 10px 16px;
  min-height: 44px;
}
.notice-link {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  color: #087969;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 26px;
  background: #e7f7f1;
  border-bottom: 1px solid #b7dece;
  font-size: 12px;
}
.demo-toolbar .row {
  flex-wrap: wrap;
}
.demo-toolbar button {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 12px;
}
.button-link {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  background: #0d9488;
  color: white;
  text-decoration: none;
  font-weight: 600;
}
@media (max-width: 900px) {
  .demo-toolbar {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
}
/* Platform administration uses the same workspace rhythm and control scale. */
.platform-page {
  background: #f5f8f9;
  color: #213c40;
}
.platform-icon {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: middle;
}
.platform-page button:where(:not(.searchable-filter):not(.filter-option)),
.platform-page .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  font-size: 14px;
}
.platform-page button:focus-visible,
.platform-page a:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 3px;
}
.platform-top {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: white;
  border-bottom: 1px solid #dce5e8;
  padding: 16px 28px;
}
.platform-brand-group,
.platform-user {
  display: flex;
  align-items: center;
  gap: 14px;
}
.platform-top .brand {
  font-size: 23px;
}
.platform-context {
  border-left: 1px solid #dce5e8;
  padding-left: 18px;
  color: #526e74;
  font-size: 13px;
}
.platform-user .identity-copy {
  font-size: 13px;
}
.platform-user small {
  font-size: 12px;
  color: #526e74;
}
.platform-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: calc(100dvh - 76px);
}
.platform-sidebar.tabs {
  margin: 0;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  background: white;
  border-right: 1px solid #dce5e8;
  gap: 6px;
  overflow: visible;
}
.platform-workspace > .platform-menu-trigger {
  display: none;
}
.platform-menu-navigation {
  display: grid;
  gap: 16px;
}
.platform-menu-navigation .platform-nav-button {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  white-space: normal;
}
.platform-menu-navigation .platform-nav-button.active {
  background: #e7f4f0;
  color: #0f766e;
}
.platform-sidebar .platform-nav-button {
  justify-content: flex-start;
  border: 0;
  min-height: 44px;
  padding: 10px 12px;
  background: transparent;
  color: #526e74;
}
.platform-sidebar .platform-nav-button.active {
  background: #e7f4f0;
  color: #0f766e;
}
.platform-nav-caption {
  font-size: 12px;
  color: #526e74;
  letter-spacing: 0.05em;
  margin: 0 12px 10px;
}
.platform-sidebar-foot {
  display: grid;
  gap: 5px;
  padding: 16px 12px;
  margin-top: auto;
  color: #526e74;
  font-size: 12px;
  line-height: 1.7;
}
.platform-workspace {
  padding: 24px;
  width: 100%;
  max-width: 1450px;
  min-width: 0;
}
.platform-workspace .platform-page-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 16px;
}
.platform-page-head > div:first-child {
  display: grid;
  gap: 10px;
  min-width: 0;
  width: 100%;
}
.platform-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.platform-page-actions:empty {
  display: none;
}
.platform-page .platform-page-actions > :is(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 11px 16px;
  line-height: 1.4;
}
.platform-page-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.platform-page-head p {
  max-width: 76ch;
  margin: 0;
  font-size: 14px;
  color: #526e74;
}
.platform-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  background: white;
  border: 1px solid #dce5e8;
  border-radius: 10px;
  margin-bottom: 18px;
}
.platform-filter-bar > label:not(.platform-search) {
  display: grid;
  align-items: start;
  gap: 6px;
  flex: 0 1 180px;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #526e74;
}
.platform-filter-bar > label:not(.platform-search) .searchable-filter {
  font-weight: 500;
}
.platform-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 250px;
  min-width: 0;
}
.platform-search input {
  min-width: 0;
}
.platform-filter-bar select,
.platform-filter-bar > .searchable-filter {
  width: auto;
  min-width: 150px;
}
.platform-filter-bar [role='status'] {
  align-self: center;
  font-size: 12px;
  color: #526e74;
  white-space: nowrap;
}
.platform-company-list {
  display: grid;
  gap: 16px;
}
.platform-company-card {
  padding: 22px;
  border-color: #dce5e8;
  box-shadow: 0 2px 7px #183e3d08;
}
.platform-company-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.platform-company-icon,
.platform-demo-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #e7f4f0;
  color: #0f766e;
  flex: none;
}
.platform-company-heading > div {
  min-width: 0;
  flex: 1;
}
.platform-company-heading h2 {
  font-size: 19px;
  overflow-wrap: break-word;
  margin-bottom: 5px;
}
.platform-company-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  text-decoration: none;
}
.platform-company-address .platform-icon {
  width: 14px;
  height: 14px;
}
.platform-status {
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.platform-status.is-active {
  background: #e7f4f0;
  color: #0f766e;
}
.platform-status.is-suspended {
  background: #fff3df;
  color: #85531c;
}
.platform-company-facts {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid #e8edef;
  border-bottom: 1px solid #e8edef;
  color: #526e74;
  font-size: 13px;
}
.platform-company-facts > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.platform-company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.platform-page .primary {
  background: #0f766e;
  border-color: #0f766e;
}
.platform-page .primary:hover {
  background: #0a615b;
}
.platform-page .danger {
  background: #fff7f6;
  border-color: #e1b8b3;
  color: #9b3027;
}
.platform-page button:disabled {
  background: #f1f4f5;
  border-color: #dce5e8;
  color: #71848b;
  opacity: 0.8;
  cursor: not-allowed;
}
.platform-pagination .pagination {
  padding: 18px 0;
}
.platform-demo-card {
  padding: 28px;
  display: grid;
  gap: 20px;
  max-width: 950px;
  box-shadow: 0 2px 7px #183e3d08;
}
.platform-demo-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.platform-demo-card p {
  font-size: 14px;
  color: #526e74;
}
.platform-demo-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.platform-demo-roles > div {
  display: grid;
  gap: 8px;
  border: 1px solid #dce5e8;
  border-radius: 9px;
  padding: 16px;
}
.platform-demo-roles span {
  font-size: 13px;
  color: #526e74;
}
.platform-demo-roles strong {
  font-size: 16px;
  font-family: ui-monospace, monospace;
}
.platform-demo-roles small {
  font-size: 12px;
  color: #526e74;
}
.platform-demo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.platform-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.platform-demo-note {
  padding-top: 16px;
  border-top: 1px solid #dce5e8;
}
.platform-page .auth-art::before,
.platform-page .auth-art::after {
  display: none;
}
.platform-auth-icon {
  display: grid;
  place-items: center;
  background: #e7f4f0;
  width: 48px;
  height: 48px;
  color: #0f766e;
  border-radius: 12px;
  margin-bottom: 24px;
}
.platform-dialog {
  padding: 0;
  width: min(720px, calc(100% - 28px));
  max-height: 90dvh;
  overflow: hidden;
}
.platform-dialog[open]:has([data-form-readiness]) {
  display: flex;
  flex-direction: column;
}
.platform-dialog:has([data-form-readiness]) > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.platform-dialog:has([data-form-readiness]) .platform-dialog-content {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}
.platform-dialog:has([data-form-readiness]) > .platform-dialog-head,
.platform-dialog:has([data-form-readiness]) .platform-dialog-footer {
  flex: none;
}
.platform-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #dce5e8;
}
.platform-dialog-head h2 {
  margin: 6px 0 0;
  font-size: 21px;
}
.platform-dialog-head .eyebrow {
  font-size: 12px;
  letter-spacing: 0.05em;
}
.platform-close {
  padding: 8px;
  width: 40px;
}
.platform-dialog-content {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(90dvh - 175px);
}
.platform-modal-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.platform-modal-fields:has(input[name='confirmation']) {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.platform-modal-fields:has(input[name='confirmation']) > p {
  line-height: 1.75;
}
.platform-modal-fields .field:has(input[name='confirmation']) {
  display: grid;
  gap: 12px;
}
.platform-dialog:has(input[name='confirmation']) .platform-dialog-footer {
  gap: 12px;
  padding: 20px 24px;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .platform-dialog:has(input[name='confirmation'])
    .platform-dialog-footer
    > button {
    flex: 1 1 140px;
    min-height: 44px;
  }
}
.platform-modal-fields .field {
  min-width: 0;
  margin: 0;
  font-size: 13px;
}
.platform-modal-fields p,
.platform-modal-fields > div,
.platform-modal-fields > .full {
  grid-column: 1/-1;
}
.platform-modal-fields .field input,
.platform-modal-fields select {
  min-width: 0;
  font-size: 14px;
}
.platform-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid #dce5e8;
  background: #f8fafb;
}
@media (max-width: 850px) {
  .platform-layout {
    grid-template-columns: 1fr;
  }
  .platform-sidebar.tabs {
    display: none;
  }
  .platform-workspace > .platform-menu-trigger {
    display: flex;
    margin-bottom: 16px;
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
  }
  .platform-nav-caption,
  .platform-sidebar-foot {
    display: none;
  }
  .platform-workspace {
    padding: 22px 16px;
  }
  .platform-context,
  .platform-user .identity-copy {
    display: none;
  }
  .platform-top {
    padding: 14px 16px;
  }
  .platform-demo-roles {
    grid-template-columns: 1fr;
  }
  .platform-workspace .platform-page-head {
    gap: 16px;
  }
  .platform-modal-fields {
    grid-template-columns: 1fr;
  }
  .platform-company-card,
  .platform-demo-card {
    padding: 18px;
  }
  .platform-company-heading {
    flex-wrap: wrap;
  }
  .platform-filter-bar [role='status'] {
    width: 100%;
  }
}
@media (max-width: 380px) {
  .platform-signout span {
    display: none;
  }
  .platform-page .platform-signout {
    width: 40px;
    padding: 8px;
  }
}
.platform-page .platform-workspace.workspace {
  display: block;
  grid-template-columns: none;
  width: calc(100% - 24px);
  margin: 12px auto;
  align-self: start;
}
/* Company provisioning and lifecycle controls. */
.platform-loading-state {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 14px;
  margin-bottom: 16px;
  border: 1px solid #c2ded9;
  border-radius: 9px;
  background: #edf7f5;
  color: #0f766e;
  font-size: 13px;
}
.platform-form-context {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d4e4e1;
  border-radius: 10px;
  background: var(--brand-surface, #fff);
  color: #0f766e;
}
.platform-form-context > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.platform-form-context strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.platform-form-context span {
  font-size: 13px;
  color: #526e74;
}
.platform-form-tip,
.platform-role-description {
  padding: 14px 16px;
  background: #f2f7f8;
  border: 1px solid #dce7e9;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
  color: #425f66;
}
.platform-address-preview {
  font-size: 13px;
  color: #526e74;
}
.platform-address-preview strong {
  color: #0f766e;
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
}
.platform-optional {
  padding: 16px;
  border: 1px solid #dce5e8;
  border-radius: 10px;
}
.platform-optional summary {
  cursor: pointer;
  color: #385d65;
  font-size: 14px;
  font-weight: 600;
}
.platform-optional p {
  font-size: 13px;
  margin: 12px 0;
}
.platform-optional[open] {
  display: grid;
  gap: 14px;
}
.platform-optional .field + .field {
  margin-top: 14px;
}
.platform-field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.platform-required {
  margin-left: 8px;
  color: #637c82;
  font-size: 11px;
  font-weight: 500;
}
.platform-field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #9b302b;
}
.platform-dialog [aria-invalid='true'] {
  border-color: #c66159;
  background: #fffafa;
}
.platform-employee-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e9eb;
}
.platform-modal-fields > datalist {
  display: none;
}
.platform-clear-filters {
  color: #0f766e;
  border-color: #b8d6d0;
}
.platform-company-card .platform-copy-address {
  margin-left: auto;
  color: #526e74;
  background: #f8fafb;
  border-color: #dce5e8;
}
.platform-suspended-note {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #fff7e9;
  color: #845a23;
  font-size: 12px;
  line-height: 1.6;
}
.platform-company-list > .empty {
  grid-column: 1/-1;
}
.platform-company-list > .empty h2 {
  color: #213c40;
  margin-bottom: 8px;
}
.platform-company-list > .empty button {
  margin-top: 18px;
}
.platform-company-card {
  background: var(--record-gradient);
  box-shadow: 0 3px 12px #153e3d0a;
}
@media (min-width: 1350px) {
  .platform-company-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platform-company-card .platform-copy-address {
    margin-left: 0;
  }
  .platform-company-actions {
    align-items: start;
  }
}
@media (max-width: 680px) {
  .platform-employee-fields {
    grid-template-columns: 1fr;
  }
  .platform-company-card .platform-copy-address {
    margin-left: 0;
  }
  .platform-dialog-footer {
    padding: 14px 18px;
  }
  .platform-dialog-content {
    padding: 18px;
  }
  .platform-dialog-head {
    padding: 18px;
  }
  .platform-company-actions > button {
    min-height: 44px;
  }
  .platform-filter-bar select,
  .platform-filter-bar > .searchable-filter {
    flex: 1;
  }
  .platform-copy-address {
    max-width: 100%;
  }
}

/* Role-specific account recovery guidance. */
.recovery-contact-guide {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #d6e5e4;
  border-radius: 10px;
  background: #f4f9f8;
}
.auth-box .recovery-contact-guide h3 {
  margin: 0;
  color: #244347;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}
.auth-box .recovery-contact-guide p {
  margin: 6px 0 12px;
  color: #526e74;
  font-size: 13px;
  line-height: 1.5;
}
.recovery-contact-guide dl {
  display: grid;
  gap: 10px;
  margin: 0;
}
.recovery-contact-guide dl > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}
.recovery-contact-guide dt {
  color: #526e74;
  font-size: 12px;
  line-height: 1.5;
}
.recovery-contact-guide dd {
  margin: 0;
  color: #244347;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: break-word;
}
@media (max-width: 480px) {
  .recovery-contact-guide dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

.recovery-company-brand {
  color: #213c40;
  text-decoration: none;
  letter-spacing: -0.5px;
  font-size: 22px;
}
.recovery-company-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: none;
}
.recovery-company-brand > span {
  line-height: 1.3;
}
.auth-shell .auth-art {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--recovery-accent, #0f766e) 12%, white),
    color-mix(in srgb, var(--recovery-secondary, #2563a6) 7%, white)
  );
}
.auth-shell .auth-art::after {
  display: none;
}
.auth-shell .primary {
  background: var(--recovery-accent, #0f766e);
  border-color: var(--recovery-accent, #0f766e);
}
.auth-shell .primary:hover {
  filter: brightness(0.9);
}
.auth-shell a,
.auth-shell .eyebrow {
  color: var(--recovery-accent, #0f766e);
}
.recovery-company-help {
  margin-top: 18px;
  border-left: 3px solid var(--recovery-accent, #0f766e);
  padding: 4px 0 4px 14px;
}
.recovery-company-help h3 {
  margin: 0;
  font-size: 14px;
}
.recovery-company-help p {
  margin: 7px 0;
  font-size: 13px;
  white-space: pre-wrap;
  color: #526e74;
}
.recovery-company-help a {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.auth-shell button:focus-visible,
.auth-shell a:focus-visible {
  outline: 3px solid var(--recovery-accent, #0f766e);
  outline-offset: 3px;
}
/* Recovery uses the same company surface, text and accessible accent as sign-in. */
.auth-shell {
  background: var(--recovery-canvas);
  color: var(--recovery-ink);
}
.auth-shell .auth-art {
  background: linear-gradient(
    105deg,
    color-mix(in srgb, var(--recovery-accent) 8%, var(--recovery-surface)),
    var(--recovery-surface) 78%
  );
}
.auth-shell .auth-panel {
  background: var(--recovery-surface);
}
.auth-shell
  :is(h1, h2, h3, .recovery-company-brand, .field, .recovery-contact-guide dd) {
  color: var(--recovery-ink);
}
.auth-shell
  :is(p, small, .helper, .recovery-contact-guide dt, .password-toggle) {
  color: var(--recovery-muted);
}
.auth-shell :is(a, .eyebrow) {
  color: var(--recovery-readable-accent);
}
.auth-shell .primary {
  background: var(--recovery-accent);
  border-color: var(--recovery-accent);
  color: var(--recovery-accent-ink);
}
.auth-shell input {
  background: var(--recovery-surface);
  color: var(--recovery-ink);
  border-color: color-mix(
    in srgb,
    var(--recovery-ink) 25%,
    var(--recovery-surface)
  );
}
.auth-shell input:focus-visible {
  border-color: var(--recovery-readable-accent);
  outline: 3px solid
    color-mix(in srgb, var(--recovery-readable-accent) 25%, transparent);
}
.auth-shell .recovery-contact-guide {
  background: color-mix(
    in srgb,
    var(--recovery-accent) 5%,
    var(--recovery-surface)
  );
  border-color: color-mix(
    in srgb,
    var(--recovery-ink) 15%,
    var(--recovery-surface)
  );
}
.auth-shell .helper {
  border-color: color-mix(
    in srgb,
    var(--recovery-ink) 15%,
    var(--recovery-surface)
  );
}

.auth-shell .auth-recovery-art {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--recovery-accent) 14%, var(--recovery-surface)),
    color-mix(in srgb, var(--recovery-secondary) 9%, var(--recovery-surface))
  );
}
.auth-recovery-art .auth-copy {
  margin: 50px 0 24px;
  position: relative;
  z-index: 2;
}
.recovery-continuation {
  position: relative;
  width: 100%;
  height: 300px;
  max-width: 480px;
  margin: 20px auto;
  isolation: isolate;
}
.recovery-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid color-mix(in srgb, var(--recovery-accent) 22%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orbit-one {
  width: 270px;
  height: 270px;
  box-shadow: 0 0 0 25px
    color-mix(in srgb, var(--recovery-accent) 3%, transparent);
}
.orbit-two {
  width: 350px;
  height: 350px;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--recovery-secondary) 20%, transparent);
}
.recovery-grid-art {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 10px;
}
.recovery-grid-art span {
  height: 58px;
  border-radius: 13px;
  background: color-mix(
    in srgb,
    var(--recovery-accent) 14%,
    var(--recovery-surface)
  );
  border: 1px solid color-mix(in srgb, var(--recovery-accent) 25%, transparent);
  box-shadow: 0 10px 25px #193e4008;
}
.recovery-grid-art span:nth-child(2n) {
  background: color-mix(
    in srgb,
    var(--recovery-secondary) 18%,
    var(--recovery-surface)
  );
  transform: translateY(-20px);
}
.recovery-art-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 23px;
  background: var(--recovery-accent);
  color: var(--recovery-accent-ink);
  box-shadow: 0 12px 35px
    color-mix(in srgb, var(--recovery-accent) 25%, transparent);
  border: 6px solid var(--recovery-surface);
}
.recovery-art-mark svg {
  width: 38px;
  height: 38px;
}
.recovery-art-caption {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 5px 10px;
  max-width: 310px;
  margin: 28px auto 0;
}
.recovery-art-caption > span {
  grid-row: 1/3;
  display: grid;
  place-items: center;
  color: var(--recovery-readable-accent);
}
.recovery-art-caption strong {
  font-size: 14px;
  color: var(--recovery-ink);
}
.recovery-art-caption small {
  font-size: 12px;
  color: var(--recovery-muted);
}
@media (max-width: 800px) {
  .auth-shell .auth-recovery-art {
    min-height: 0;
  }
  .auth-recovery-art .auth-copy {
    margin: 28px 0;
  }
  .recovery-continuation {
    height: 160px;
    max-width: 300px;
    margin: 0 auto;
  }
  .orbit-one {
    width: 160px;
    height: 160px;
  }
  .orbit-two {
    width: 220px;
    height: 220px;
  }
  .recovery-grid-art {
    grid-template-columns: repeat(3, 40px);
    gap: 7px;
  }
  .recovery-grid-art span {
    height: 40px;
    border-radius: 9px;
  }
  .recovery-art-mark {
    width: 60px;
    height: 60px;
    border-radius: 17px;
    border-width: 4px;
  }
  .recovery-art-mark svg {
    width: 28px;
    height: 28px;
  }
  .recovery-art-caption {
    margin: 24px auto 0;
  }
}

.phone-preview {
  display: block;
  grid-column: 1 / -1;
  margin-top: 5px;
  color: #526d75;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.phone-preview[hidden] {
  display: none;
}

.auth-workgrid-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted, #526e74);
  text-decoration: none;
  margin-top: 28px;
  font-size: 12px;
  padding: 8px;
}
.auth-workgrid-credit svg {
  width: 15px;
  height: 15px;
}
.auth-workgrid-credit:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
