/* WhiteCollar responsive workspace.
 * Desktop uses a fixed sidebar; phones use a bottom navigation ribbon.
 * Status dots retain strong contrast over faint whole-row backgrounds.
 */
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #182337;
  background: #f4f6f9;
  font-size: 15px;
  --ink: #101a29;
  --muted: #687488;
  --line: #dfe5ed;
  --green: #15855f;
  --yellow: #a97400;
  --orange: #cc6718;
  --nav: #10151e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 600;
}
button:hover {
  background: #eef2f7;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
button.danger {
  color: #b02f38;
}
button.quiet {
  border-color: transparent;
  background: transparent;
}
a {
  color: #235c9d;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd4e0;
  background: white;
  color: var(--ink);
  border-radius: 8px;
  padding: 11px;
  min-height: 44px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  color: #455167;
}
label small {
  font-weight: 400;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #88acd0;
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 7px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: var(--muted);
}
.shell {
  min-height: 100vh;
  padding-left: 226px;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 226px;
  background: var(--nav);
  color: white;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.6px;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.brand small {
  display: block;
  color: #8d9aad;
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 3px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 44px;
}
.sidebar nav button {
  text-align: left;
  color: #9faabc;
  background: transparent;
  border: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 500;
}
.sidebar nav button.active {
  background: #2b333e;
  color: white;
}
.nav-icon {
  font-size: 18px;
  width: 22px;
}
.sidebar .account {
  margin-top: auto;
  border-top: 1px solid #343c48;
  padding-top: 20px;
}
.account strong {
  font-size: 14px;
}
.account small {
  display: block;
  margin-top: 4px;
}
.sidebar .account button {
  color: #bbc3d0;
  font-size: 12px;
  padding: 8px 0;
}
.main {
  padding: 30px 36px 70px;
  max-width: 1900px;
  margin: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 10px;
  font-weight: 750;
  color: var(--muted);
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 23px;
}
.pagehead p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.stat strong {
  display: block;
  font-size: 27px;
  line-height: 1.4;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
  margin-bottom: 18px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 17px;
}
.toolbar input {
  max-width: 340px;
}
.toolbar select {
  width: auto;
}
.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  margin-right: 7px;
}
.dot.orange {
  background: #e98634;
}
.dot.yellow {
  background: #ddb62c;
}
.dot.green {
  background: #269273;
}
.sheet-frame {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  overflow: hidden;
}
.sheet-label,
.sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
}
.sheet-label {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.sheet-label strong {
  color: var(--ink);
  font-size: 13px;
}
.sheet-footer {
  border-top: 1px solid var(--line);
  background: #f8fafc;
}
.sheet-footer button {
  padding: 7px 12px;
  white-space: nowrap;
  font-size: 12px;
}
.sheet-wrap {
  overflow: auto;
  max-height: min(650px, 70vh);
  scrollbar-gutter: stable;
}
.sheet {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
  min-width: 1550px;
  font-size: 13px;
}
.sheet .number-col {
  width: 64px;
}
.sheet .col-date {
  width: 215px;
}
.sheet .col-inventory {
  width: 175px;
}
.sheet .col-job {
  width: 230px;
}
.sheet .col-certs {
  width: 165px;
}
.sheet .col-notes {
  width: 195px;
}
.sheet .col-challenges {
  width: 185px;
}
.sheet .col-people {
  width: 180px;
}
.sheet .col-photos {
  width: 140px;
}
.sheet th,
.sheet td {
  border-right: 1px solid #dce3eb;
  border-bottom: 1px solid #dce3eb;
}
.sheet thead th {
  position: sticky;
  z-index: 3;
  text-align: left;
  background: #f0f4f7;
  color: #445268;
  font-size: 12px;
  padding: 12px;
  white-space: nowrap;
}
.sheet .column-letters th {
  top: 0;
  height: 25px;
  padding: 4px;
  text-align: center;
  background: #e8edf2;
  font-size: 10px;
  font-weight: 500;
}
.sheet .column-names th {
  top: 25px;
  height: 42px;
}
.sheet .row-number {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: center;
  background: var(--row, #f0f4f7);
  color: #6a7483;
  font-size: 11px;
  font-weight: 500;
  padding: 0;
}
.sheet thead .row-number {
  z-index: 4;
  background: #e8edf2;
}
.sheet td {
  padding: 0;
  vertical-align: middle;
  background: var(--row, #fff);
}
.sheet .blank-row {
  height: 45px;
}
.sort-direction {
  float: right;
  color: #60738b;
}
.sheet tr.row-green {
  --row: #eaf6ee;
}
.sheet tr.row-yellow {
  --row: #fff8db;
}
.sheet tr.row-orange {
  --row: #fff0e2;
}
.sheet tr > :last-child {
  border-right: 0;
}
.cell {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent !important;
  border-radius: 0;
  padding: 12px 9px;
  font-weight: 500;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}
.cell > .dot {
  margin: 0;
  width: 8px;
  height: 8px;
}
.cell-summary {
  flex: 1;
  min-width: 0;
}
.cell-chevron {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 22px;
  border: 1px solid #abb9c9;
  border-radius: 3px;
  background: #ffffffa6;
  font-size: 16px;
  line-height: 1;
  padding-bottom: 4px;
}
.cell small {
  display: block;
  line-height: 1.5;
  font-size: 11px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cell:hover {
  box-shadow: inset 0 0 0 2px #bfccd8;
}
.cell.selected,
.cell:focus-visible {
  box-shadow: inset 0 0 0 2px #247555;
  outline: none;
}
.cell.selected .cell-chevron {
  background: #dcefe5;
  border-color: #247555;
}
.sheet .job-name {
  display: block;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress {
  height: 4px;
  background: #ccd9d1;
  border-radius: 5px;
  margin: 7px 0 0;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: #237955;
}
/* A cell dropdown floats above the grid without obscuring it with a modal backdrop. */
.sheet-dropdown {
  position: fixed;
  z-index: 30;
  background: white;
  border: 1px solid #b6c6d5;
  border-radius: 10px;
  box-shadow:
    0 14px 45px #132a4033,
    0 2px 6px #132a401a;
  overflow: auto;
  overscroll-behavior: contain;
  outline: none;
}
.cell-dropdown-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.cell-dropdown-head > div {
  min-width: 0;
}
.cell-dropdown-head small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}
.cell-dropdown-head h2 {
  font-size: 17px;
  margin: 6px 0 0;
}
.cell-dropdown-head button {
  padding: 5px 10px;
  font-size: 20px;
}
.cell-dropdown-body {
  padding: 17px;
  font-size: 13px;
}
.sheet-dropdown .form-grid {
  gap: 12px;
}
.sheet-dropdown label {
  font-size: 12px;
}
.sheet-dropdown input,
.sheet-dropdown select,
.sheet-dropdown textarea {
  font-size: 13px;
  padding: 9px;
}
.sheet-dropdown .hint {
  font-size: 12px;
  margin: 0;
}
.sheet-dropdown .details {
  margin: 0 0 16px;
}
.sheet-dropdown .checks input {
  flex-shrink: 0;
}
.cell-progress {
  align-self: end;
  background: #eaf6ee;
  border-radius: 8px;
  padding: 8px 12px;
  color: #246348;
}
.cell-progress span {
  display: block;
  font-size: 11px;
}
.cell-progress strong {
  font-size: 22px;
}
.cell-save {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.cell-save button,
.cell-more button {
  font-size: 12px;
  padding: 8px 11px;
}
.cell-save-state {
  color: var(--muted);
  font-size: 11px;
  margin-right: auto;
}
.cell-more {
  margin-top: 16px;
}
.cell-log {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}
.cell-log summary {
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0;
}
.cell-log > p {
  margin-top: 12px;
}
.assignment-detail {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.assignment-detail p {
  margin: 5px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.assignment-detail:last-child {
  border-bottom: 0;
}
.pill {
  display: inline-block;
  border-radius: 20px;
  background: #eef2f7;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
}
.empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.grid .card {
  margin: 0;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.checks {
  max-height: 190px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  display: grid;
  gap: 6px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  font-size: 13px;
}
.checks input {
  width: 18px;
  min-height: 18px;
}
.hint {
  padding: 12px 15px;
  border-radius: 8px;
  background: #edf2f8;
  font-size: 13px;
  line-height: 1.5;
  color: #44536b;
}
.error {
  background: #fff0ee;
  color: #a62e2a;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  font-size: 14px;
  white-space: pre-wrap;
}
.hidden {
  display: none !important;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(850px, 94vw);
  max-height: 91dvh;
  box-shadow: 0 20px 100px #101a2955;
  color: var(--ink);
}
dialog::backdrop {
  background: #0e192d80;
  backdrop-filter: blur(3px);
}
.modal-head {
  position: sticky;
  top: 0;
  background: white;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.modal-head h2 {
  margin: 0;
}
.modal-content {
  padding: 24px;
}
.modal-footer {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.details {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  font-size: 14px;
  margin: 18px 0;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  border-radius: 8px;
}
.photo-grid a {
  display: block;
}
.audit {
  border-left: 3px solid #c6d6e3;
  padding: 10px 15px;
  margin: 12px 0;
  background: #f6f8fb;
  font-size: 13px;
}
.audit p {
  margin-bottom: 5px;
}
.audit small {
  line-height: 1.6;
}
.calendar-wrap {
  overflow: auto;
}
.calendar {
  min-width: 630px;
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.weekday {
  padding: 12px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  background: #f8fafc;
}
.day {
  min-height: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 7px;
  position: relative;
}
.day.outside {
  background: #f8f9fb;
  color: #a9b1bc;
}
.day.today .daynum {
  background: #172639;
  color: white;
  border-radius: 50%;
}
.daynum {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 12px;
}
.cal-job {
  font-size: 11px;
  padding: 5px 7px;
  display: block;
  width: 100%;
  text-align: left;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: #eaf0f6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-weekdays,
.calendar-days,
.calendar-events {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-week {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.calendar-week:last-child {
  border-bottom: 0;
}
.calendar-days {
  position: absolute;
  inset: 0;
}
.calendar-events {
  position: relative;
  padding: 34px 0 9px;
  gap: 4px 0;
  pointer-events: none;
}
.calendar-events .cal-job {
  pointer-events: auto;
  height: 25px;
  min-width: 0;
  text-align: left;
  border: 1px solid #213c4b26;
}
.cal-job.continues-before {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
}
.cal-job.continues-after {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}
.row-number > span {
  display: block;
  margin: 6px 0 4px;
}
.row-mail {
  position: relative;
  display: inline-flex;
  padding: 5px 7px;
  border-color: transparent;
  background: transparent;
  color: #7c899a;
}
.row-mail.has-messages {
  color: #165f9f;
  background: #e7f1fc;
}
.mail-count {
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 9px;
  background: #185d99;
  color: white;
  border-radius: 9px;
  padding: 1px 4px;
}
.attachments,
.attendance-area,
.job-messages {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.document-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.document-file {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  text-decoration: none;
}
.document-file > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.document-file strong {
  display: block;
  overflow-wrap: anywhere;
}
.document-file small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
.document-file img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 5px;
}
.pdf-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: #faeded;
  color: #983329;
  font-size: 12px;
  font-weight: 700;
  border-radius: 5px;
}
.attachments form {
  display: grid;
  gap: 10px;
}
.attachments form button {
  justify-self: start;
}
.attendance-area details {
  margin: 15px 0;
}
.attendance-area summary,
.job-messages summary {
  cursor: pointer;
  font-weight: 650;
  padding: 6px 0;
}
.attendance-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  margin-top: 12px;
}
.attendance-stamps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.attendance-stamps p {
  margin: 6px 0;
  font-size: 13px;
}
.attendance-stamps small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.check-in-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #e5f3ec;
  border: 1px solid #c4decf;
  padding: 12px 16px;
  margin-bottom: 22px;
  border-radius: 9px;
  font-size: 13px;
}
.job-messages summary svg {
  vertical-align: middle;
  margin-right: 6px;
}
.job-message-list {
  max-height: 300px;
  overflow: auto;
  margin: 10px 0 16px;
}
.job-message-list .bubble {
  max-width: 95%;
}
.job-messages form {
  display: grid;
  gap: 10px;
}
.job-messages form button {
  justify-self: end;
}
.cal-job.green {
  background: #e0f0e6;
}
.cal-job.orange {
  background: #ffe7d3;
}
.cal-job.yellow {
  background: #fff1b9;
}
.inbox {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 540px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.threads {
  border-right: 1px solid var(--line);
  padding: 14px;
  max-height: 650px;
  overflow: auto;
}
.threads button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  margin-bottom: 6px;
}
.threads button.active {
  background: #eaf0f6;
}
.threads small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
}
.messages {
  flex: 1;
  max-height: 480px;
  overflow: auto;
  padding-bottom: 15px;
}
.bubble {
  border-radius: 10px;
  background: #f0f3f7;
  padding: 12px 15px;
  margin: 12px 30px 12px 0;
  max-width: 85%;
  font-size: 14px;
}
.bubble.mine {
  background: #e7f0f6;
  margin-left: auto;
  margin-right: 0;
}
.bubble p {
  margin: 5px 0;
}
.bubble small {
  font-size: 10px;
}
.compose {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.compose textarea {
  min-height: 70px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  background: #11161f;
  color: white;
  padding: 70px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-art img {
  width: 90px;
  border-radius: 20px;
  margin-bottom: 40px;
}
.auth-art h1 {
  font-size: 48px;
  line-height: 1.15;
  max-width: 450px;
}
.auth-art p {
  color: #a6b3c7;
  max-width: 400px;
}
.auth-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 35px;
}
.auth-panel form {
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 17px;
}
.auth-panel .brand {
  margin-bottom: 20px;
}
.auth-panel h2 {
  margin-bottom: 0;
}
.loading {
  padding: 20vh 20px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 10px;
  background: #172639;
  color: white;
  box-shadow: 0 5px 25px #0003;
  z-index: 100;
  max-width: 90vw;
  display: none;
}
.schedule-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.schedule-line:last-child {
  border: 0;
}
.schedule-line p {
  margin: 5px 0;
  font-size: 13px;
}
.person {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.person:first-child {
  border: 0;
}
.nowrap {
  white-space: nowrap;
}
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.status-select {
  display: flex;
  gap: 10px;
  align-items: center;
}
.status-select select {
  max-width: 215px;
}
.back {
  margin-bottom: 15px;
}
.connection-download {
  font-size: 12px;
}
@media (min-width: 1500px) {
  .main {
    padding: 35px 45px;
  }
}
@media (max-width: 1000px) {
  .shell {
    padding-left: 185px;
  }
  .sidebar {
    width: 185px;
    padding: 24px 12px;
  }
  .brand {
    font-size: 18px;
  }
  .main {
    padding: 25px 22px 70px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 14px;
  }
  .inbox {
    grid-template-columns: 190px 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    padding-left: 0;
  }
  .sidebar {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    height: auto;
    padding: 0 5px env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .sidebar > .brand,
  .sidebar > .account {
    display: none;
  }
  .sidebar nav {
    margin: 0;
    display: flex;
    gap: 0;
    overflow: auto;
  }
  .sidebar nav button {
    flex: 1;
    flex-direction: column;
    gap: 3px;
    text-align: center;
    justify-content: center;
    font-size: 10px;
    min-width: 62px;
    padding: 10px 6px;
    color: #647084;
    border-radius: 0;
  }
  .sidebar nav button.active {
    background: #eaf0f6;
    color: #13283d;
  }
  .nav-icon {
    font-size: 18px;
  }
  .main {
    padding: 18px 15px 110px;
  }
  .topbar {
    margin-bottom: 22px;
    padding-bottom: 14px;
  }
  .topbar .eyebrow {
    font-size: 9px;
  }
  .topbar .actions button {
    padding: 7px 9px;
    font-size: 12px;
  }
  .pagehead {
    flex-wrap: wrap;
    gap: 13px;
  }
  .pagehead h1 {
    font-size: 28px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin: 17px 0;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat {
    padding: 13px 15px;
  }
  .card {
    padding: 17px;
  }
  .toolbar input {
    max-width: none;
    flex: 1;
    min-width: 190px;
  }
  .toolbar select {
    flex: 1;
  }
  .legend {
    gap: 10px;
    font-size: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .sheet-label span {
    display: none;
  }
  .cell-dropdown-body {
    padding: 14px;
  }
  .cell-save {
    flex-wrap: wrap;
  }
  .cell-save-state {
    flex-basis: 100%;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  dialog {
    width: 96vw;
    max-height: 94dvh;
  }
  .modal-content {
    padding: 18px;
  }
  .modal-head {
    padding: 16px 18px;
  }
  .modal-head h2 {
    font-size: 18px;
  }
  .modal-footer {
    padding: 13px 18px;
  }
  .details {
    grid-template-columns: 100px 1fr;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-art {
    display: none;
  }
  .auth-panel {
    padding: 28px 22px;
    align-items: center;
  }
  .inbox {
    grid-template-columns: 1fr;
  }
  .threads {
    max-height: 160px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .threads button {
    display: inline-block;
    width: auto;
  }
  .conversation {
    padding: 16px;
    min-height: 400px;
  }
  .messages {
    max-height: 400px;
  }
  .schedule-line {
    flex-wrap: wrap;
  }
  .calendar-wrap {
    margin: 0 -5px;
  }
  .attendance-stamps {
    grid-template-columns: 1fr;
  }
  #toast {
    bottom: 92px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
