@import url("/fonts.css");
:root {
  --navy: #111d30;
  --navy2: #1b2b43;
  --ink: #172235;
  --muted: #687383;
  --line: #e2e6ec;
  --paper: #f6f7f9;
  --gold: #bb542d;
  --green: #23775d;
  --red: #b5403c;
  --blue: #355b9a;
  --radius: 12px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #5b8fe0;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
}
button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 550;
  min-height: 40px;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: #f0f3f7;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary,
.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
button.primary:hover {
  background: #29405e;
}
.primary.warm {
  background: var(--gold);
  border-color: var(--gold);
}
button.ghost {
  border-color: transparent;
  background: transparent;
}
button.small {
  padding: 7px 10px;
  font-size: 12px;
  min-height: 34px;
}
.icon {
  display: inline-flex;
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: fixed;
  left: 10px;
  top: -50px;
  background: white;
  padding: 12px;
  z-index: 50;
}
.skip:focus {
  top: 10px;
}
.layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 216px;
  background: var(--navy);
  color: #b8c3d5;
  display: flex;
  flex-direction: column;
  padding: 30px 17px 18px;
  z-index: 15;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: white;
  padding: 0 13px 36px;
}
.brand strong {
  font-size: 31px;
  letter-spacing: -3px;
  font-weight: 850;
  border-right: 1px solid #465163;
  padding-right: 13px;
}
.brand span {
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 1.1px;
  font-weight: 600;
}
.nav-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10px;
  color: #7c8da6;
  margin: 5px 14px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  color: #b8c3d5;
  font-size: 13px;
  padding: 13px 15px;
  font-weight: 500;
  border-radius: 7px;
}
.nav button:hover {
  background: #1b2a40;
  color: white;
}
.nav button.active {
  background: #29394f;
  color: white;
}
.nav button.active:before {
  content: "";
  position: absolute;
  left: 0;
  height: 20px;
  width: 3px;
  background: #de9066;
  border-radius: 0 2px 2px 0;
}
.sidebar-bottom {
  margin-top: auto;
}
.workspace-state {
  padding: 18px 12px;
  border-top: 1px solid #314055;
  border-bottom: 1px solid #314055;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 15px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #d99c72;
  border-radius: 50%;
  margin-right: 6px;
}
.sidebar-bottom .profile {
  display: flex;
  gap: 10px;
  padding: 10px 9px;
  align-items: center;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e4eaf0;
  color: #33465f;
  font-size: 11px;
  font-weight: 750;
  flex-shrink: 0;
}
.sidebar .avatar {
  background: #34435a;
  color: #e0e7f3;
}
.profile strong {
  display: block;
  font-size: 12px;
  color: white;
}
.profile small {
  font-size: 10px;
  color: #93a1b8;
  text-transform: capitalize;
}
.main-wrap {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 9px;
  color: #b6bdc7;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8c97a6;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 12px;
  background: #fafbfd;
  max-width: 320px;
  flex: 1;
}
.search-box input {
  border: 0;
  background: none;
  padding: 0;
  min-height: 24px;
  width: 100%;
  font-size: 12px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.env-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #87614b;
  font-weight: 700;
  background: #faf1e9;
  padding: 7px 9px;
  border: 1px solid #efdfd0;
  border-radius: 4px;
  white-space: nowrap;
}
main {
  padding: 34px 36px 60px;
  max-width: 1700px;
  margin: auto;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 9px;
}
.page-title h1 {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 0 0 7px;
  font-weight: 680;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
button .icon {
  margin-right: 6px;
  width: 16px;
  height: 16px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
}
.stat .stat-title {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat .stat-value {
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 660;
  margin: 14px 0 5px;
}
.stat .stat-caption {
  font-size: 10px;
  color: var(--muted);
}
.stat.accent {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.stat.accent .stat-title,
.stat.accent .stat-caption {
  color: #b4c1d5;
}
.stat .stat-value.money {
  font-size: 26px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 22px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.panel h2 {
  font-size: 14px;
  font-weight: 650;
  margin: 0;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
}
.panel-body {
  padding: 20px 22px;
}
.count {
  font-size: 10px;
  background: #edf0f5;
  color: #687388;
  border-radius: 5px;
  padding: 3px 7px;
  margin-left: 6px;
  font-weight: 600;
}
.task-row {
  padding: 17px 22px;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.task-row:last-child {
  border: 0;
}
.check-button {
  width: 21px;
  min-width: 21px;
  height: 21px;
  min-height: 21px;
  padding: 0;
  border-radius: 50%;
  border-color: #cbd3df;
  margin-top: 2px;
}
.task-copy {
  flex: 1;
  min-width: 0;
}
.task-copy .text-button {
  display: block;
  font-size: 12px;
  text-align: left;
  font-weight: 600;
  line-height: 1.5;
}
.text-button {
  background: none !important;
  border: 0;
  padding: 0;
  min-height: 0;
  border-radius: 2px;
  color: inherit;
}
.text-button:hover {
  text-decoration: underline;
}
.task-copy p {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0;
}
.due {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.7;
}
.due.overdue {
  color: var(--red);
}
.tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  border: 1px solid #e0e6ef;
  padding: 3px 6px;
  border-radius: 4px;
  color: #566880;
  line-height: 1.5;
  white-space: nowrap;
}
.tag.orange {
  background: #fcf0e7;
  color: #9f5935;
  border-color: #f2ddcb;
}
.tag.red {
  background: #fff1ef;
  color: #a8433c;
  border-color: #f5d9d5;
}
.tag.green {
  background: #eaf5ef;
  color: #28775b;
  border-color: #d2e9dc;
}
.tag.blue {
  background: #eff3fb;
  color: #466697;
  border-color: #dce5f5;
}
.op-row {
  padding: 17px 22px;
  border-bottom: 1px solid #edf0f4;
}
.op-row:last-child {
  border: 0;
}
.op-row h3 {
  font-size: 12px;
  margin: 0 0 5px;
}
.op-row p {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.7;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.row-between.start {
  align-items: flex-start;
}
.muted {
  color: var(--muted);
}
.fine {
  font-size: 11px;
  line-height: 1.8;
}
.tiny {
  font-size: 10px;
  line-height: 1.7;
}
.empty {
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.empty .icon {
  display: block;
  margin: 0 auto 12px;
  width: 28px;
  height: 28px;
  color: #9aabba;
}
.callout {
  border: 1px solid #e7e1d9;
  background: #fcf9f5;
  color: #715c48;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 11px;
  line-height: 1.8;
}
.callout.blue {
  background: #f0f4fa;
  border-color: #dce4ef;
  color: #53677f;
}
.page-footer {
  font-size: 10px;
  color: #8893a0;
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 24px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
input,
select,
textarea {
  border: 1px solid #dbe0e7;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 10px 11px;
  min-height: 40px;
  max-width: 100%;
}
select {
  padding-right: 25px;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.filters select,
.filters input {
  font-size: 11px;
  min-height: 36px;
  padding: 8px 10px;
}
.view-switch {
  display: flex;
  border: 1px solid var(--line);
  padding: 3px;
  background: white;
  border-radius: 7px;
}
.view-switch button {
  border: 0;
  font-size: 11px;
  min-height: 29px;
  padding: 6px 10px;
  background: none;
}
.view-switch button.active {
  background: #edf0f5;
}
.board {
  display: grid;
  grid-template-columns: repeat(6, 258px);
  gap: 14px;
  overflow: auto;
  min-height: 390px;
  padding-bottom: 25px;
  scrollbar-color: #c4ccd7 transparent;
}
.lane {
  background: #edf0f4;
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  padding: 12px;
  min-height: 350px;
}
.lane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 650;
  padding: 3px 3px 14px;
  gap: 6px;
}
.lane-head:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #8a9bb1;
  border-radius: 50%;
  flex-shrink: 0;
}
.lane[data-stage="Proposal sent"] .lane-head:before {
  background: #c98b57;
}
.lane[data-stage="Decision pending"] .lane-head:before {
  background: #609879;
}
.lane-head span {
  flex: 1;
}
.lane.drag-over {
  outline: 2px dashed #6382aa;
  background: #e4ebf6;
}
.deal-card {
  background: white;
  border: 1px solid #dde3eb;
  border-radius: 8px;
  padding: 15px 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 3px #162d4b03;
  cursor: grab;
}
.deal-card:active {
  cursor: grabbing;
}
.deal-card h3 {
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0 5px;
  font-weight: 650;
}
.deal-card p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin: 5px 0 10px;
}
.deal-card .card-bottom {
  border-top: 1px solid #edf0f4;
  padding-top: 12px;
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.deal-card .avatar {
  width: 24px;
  height: 24px;
  font-size: 8px;
}
.deal-card .next-line {
  font-size: 10px;
  line-height: 1.7;
  color: #67768b;
  display: flex;
  gap: 5px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  white-space: nowrap;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
  font-weight: 600;
  background: #fafbfd;
  padding: 14px 17px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 17px;
  border-bottom: 1px solid #edf0f4;
  line-height: 1.7;
}
tr:last-child td {
  border: 0;
}
td strong {
  font-size: 11px;
}
td .tiny {
  display: block;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  margin-bottom: 20px;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  border-radius: 0;
  padding: 12px 3px;
  font-size: 11px;
  color: var(--muted);
  min-height: 42px;
}
.tabs button.active {
  border-bottom-color: var(--gold);
  color: var(--ink);
  font-weight: 650;
}
.inbox-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 520px;
}
.thread-list {
  border-right: 1px solid var(--line);
}
.thread-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  text-align: left;
  padding: 17px 20px;
  background: white;
}
.thread-item.selected {
  background: #f0f4fa;
  border-left: 3px solid #637d9f;
  padding-left: 17px;
}
.thread-item p {
  font-size: 10px;
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.thread-item strong {
  font-size: 11px;
}
.thread-detail {
  padding: 24px;
}
.bubble {
  padding: 14px 16px;
  border-radius: 9px;
  background: #f2f5f8;
  margin: 16px 0;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.8;
}
.thread-detail textarea {
  width: 100%;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.settings-grid .panel {
  margin-bottom: 20px;
}
.integration {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #edf0f4;
}
.integration .icon {
  color: #627794;
}
.integration strong {
  font-size: 12px;
}
.integration p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 0;
}
.integration .tag {
  margin-left: auto;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: #0b182444;
  z-index: 25;
  backdrop-filter: blur(1px);
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  background: white;
  width: min(640px, 100%);
  z-index: 26;
  box-shadow: -12px 0 70px #0e1e3324;
  overflow: auto;
}
.drawer-top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 24px 26px 0;
}
.drawer-top h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 12px 0 6px;
}
.drawer-top .tabs {
  margin: 14px 0 0;
}
.drawer-content {
  padding: 24px 26px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  font-size: 12px;
  margin-bottom: 24px;
}
.detail-grid label,
.detail-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.detail-grid select {
  width: 100%;
  font-size: 11px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.timeline {
  padding-left: 16px;
  border-left: 1px solid #e0e6ee;
  margin-left: 7px;
}
.timeline-item {
  position: relative;
  margin: 0 0 24px;
  padding-left: 9px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -21px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b9bb0;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #dce3ed;
}
.timeline-item strong {
  font-size: 12px;
}
.timeline-item p {
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.timeline-item small {
  color: var(--muted);
  font-size: 10px;
}
.timeline-item details {
  font-size: 10px;
  color: var(--muted);
}
details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 550;
}
.field.full {
  grid-column: 1/-1;
}
.field small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 12px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 12px;
}
.close-btn {
  font-size: 21px;
  line-height: 1;
  border: 0;
  background: transparent;
  padding: 8px;
  min-height: 36px;
  min-width: 36px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  width: min(580px, calc(100vw - 28px));
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 20px 100px #0b172c44;
}
dialog::backdrop {
  background: #10203688;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 0;
}
.modal-body {
  padding: 23px 26px;
}
.loading-screen {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy);
  color: white;
  z-index: 60;
  padding: 13px 20px;
  box-shadow: 0 4px 25px #14294533;
  border-radius: 8px;
  font-size: 12px;
  transition: transform 0.2s;
  max-width: 90vw;
}
#toast.visible {
  transform: translateX(-50%) translateY(0);
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-story {
  background: var(--navy);
  color: white;
  padding: 50px 65px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story .brand {
  padding: 0;
}
.login-story h1 {
  font-size: 53px;
  font-weight: 580;
  letter-spacing: -2px;
  line-height: 1.15;
  max-width: 470px;
  margin: 110px 0 25px;
}
.login-story p {
  max-width: 340px;
  color: #a8b8d0;
  line-height: 1.9;
  font-size: 13px;
}
.login-story .login-footer {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #8f9eb5;
  padding-top: 100px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-card {
  max-width: 350px;
  width: 100%;
}
.login-card h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
  margin: 0 0 12px;
}
.login-card form {
  margin-top: 28px;
}
.login-card .field {
  margin-bottom: 16px;
}
.login-card button {
  width: 100%;
  margin-top: 5px;
}
.login-card .callout {
  margin: 24px 0;
}
.mobile-brand {
  display: none;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.checkbox-row input {
  min-height: 18px;
  width: 18px;
}
.spaced {
  margin-top: 20px;
}
.mobile-nav {
  display: none;
}
.login-art {
  position: absolute;
  bottom: 70px;
  right: -80px;
  width: 360px;
  height: 360px;
  border: 1px solid #45526a33;
  border-radius: 50%;
  pointer-events: none;
}
.login-art:after {
  content: "";
  position: absolute;
  inset: 55px;
  border: 1px solid #45526a44;
  border-radius: 50%;
}
@media (min-width: 1500px) {
  .board {
    grid-template-columns: repeat(6, minmax(230px, 1fr));
  }
}
@media (max-width: 1150px) {
  main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .two-col {
    grid-template-columns: 1.4fr 1fr;
  }
  .summary-grid {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 44px;
  }
  .page-title h1 {
    font-size: 26px;
  }
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .sidebar {
    width: 76px;
    padding: 26px 9px;
  }
  .brand {
    padding: 0 8px 30px;
  }
  .brand strong {
    font-size: 27px;
    padding: 0;
    border: 0;
  }
  .sidebar .brand span,
  .nav-label,
  .sidebar .nav button span.nav-text,
  .sidebar .workspace-state,
  .sidebar .profile div,
  .sidebar .profile .logout {
    display: none;
  }
  .nav button {
    padding: 14px 17px;
  }
  .nav button .icon {
    margin: 0;
  }
  .sidebar .profile {
    padding: 10px;
  }
  .sidebar .nav {
    gap: 8px;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .topbar .env-label {
    display: none;
  }
  .page-title {
    align-items: flex-start;
  }
  .inbox-grid {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .login-story {
    display: none;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-form {
    background: #f5f7fa;
  }
  .mobile-brand {
    display: block;
    margin-bottom: 45px;
    color: var(--navy);
    font-weight: 800;
    font-size: 33px;
    letter-spacing: -2px;
  }
  .mobile-brand small {
    font-size: 10px;
    letter-spacing: 2px;
    margin-left: 15px;
    font-weight: 500;
  }
}
@media (max-width: 600px) {
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main-wrap {
    padding-bottom: 70px;
  }
  .topbar {
    height: 61px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .topbar .search-box {
    display: none;
  }
  main {
    padding: 25px 17px 40px;
  }
  .page-title {
    display: block;
    margin-bottom: 22px;
  }
  .page-title h1 {
    font-size: 26px;
  }
  .page-title > .button-row {
    margin-top: 17px;
  }
  .page-title > .button-row button {
    flex: 1;
  }
  .stat {
    padding: 16px;
  }
  .stat .stat-value {
    font-size: 28px;
  }
  .stat .stat-value.money {
    font-size: 24px;
  }
  .stat .stat-caption {
    font-size: 9px;
  }
  .summary-grid {
    gap: 9px;
  }
  .panel-head,
  .panel-body {
    padding: 17px;
  }
  .task-row,
  .op-row {
    padding: 17px;
  }
  .task-row {
    gap: 9px;
  }
  .task-row .due {
    font-size: 9px;
  }
  .task-copy .text-button {
    font-size: 11px;
  }
  .task-row .small {
    font-size: 10px;
    padding: 7px;
    min-height: 34px;
  }
  .toolbar {
    gap: 12px;
  }
  .filters {
    width: 100%;
    gap: 7px;
  }
  .filters select,
  .filters input {
    max-width: 48%;
    flex: 1;
  }
  .board {
    display: block;
  }
  .lane {
    display: none;
  }
  .board.mobile-board {
    display: grid;
    grid-template-columns: repeat(6, 260px);
  }
  .board.mobile-board .lane {
    display: block;
  }
  .inbox-grid {
    grid-template-columns: 1fr;
  }
  .thread-list {
    max-height: 230px;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .thread-detail {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: 1;
  }
  .detail-grid {
    gap: 13px;
  }
  .drawer-top,
  .drawer-content {
    padding-left: 19px;
    padding-right: 19px;
  }
  .drawer-top h2 {
    font-size: 20px;
  }
  .drawer .tabs {
    gap: 16px;
  }
  .drawer .tabs button {
    font-size: 10px;
  }
  .modal-head,
  .modal-body {
    padding: 19px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--navy);
    justify-content: space-around;
    padding: 7px 7px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid #2d3b52;
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border: 0;
    background: none;
    color: #a5b4cb;
    font-size: 8px;
    font-weight: 500;
    padding: 5px;
    min-width: 47px;
  }
  .mobile-nav button .icon {
    margin: 0;
    width: 19px;
    height: 19px;
  }
  .mobile-nav button.active {
    color: white;
  }
  .login-form {
    padding: 28px;
  }
  .login-card {
    max-width: 380px;
  }
  .hide-mobile {
    display: none;
  }
  .tabs {
    gap: 17px;
  }
  .toolbar .view-switch {
    margin-left: auto;
  }
  .topbar .profile-name {
    display: none;
  }
  .page-footer {
    font-size: 9px;
    line-height: 1.7;
  }
  .button-row button {
    min-height: 42px;
  }
  .drawer .button-row button {
    flex: auto;
  }
}

.mb16 {
  margin-bottom: 16px;
}
.mb18 {
  margin-bottom: 18px;
}
.mb20 {
  margin-bottom: 20px;
}
