/* MIHA Studio — operational surfaces, tactile navigation, a quiet laboratory palette. */
:root {
  --ink: #172b34;
  --muted: #586b75;
  --line: #e5ebee;
  --ground: #f2f5f7;
  --paper: #fff;
  --accent: #087e8b;
  --accent-soft: #e6f3f4;
  --good: #24765d;
  --warning: #8a5b14;
  --warning-soft: #fff7e8;
  --danger: #ad3c4a;
  --radius: 22px;
  --focus: #087e8b;
  --shadow: 0 4px 20px -12px #274d6530;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html {
  scrollbar-color: #bcc9d0 #f2f5f7;
  scroll-padding-top: 90px;
}
body {
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background: #f2f5f7;
}
::selection {
  background: #cce8ea;
  color: #173c43;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #dce5e9;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.16s,
    color 0.16s,
    box-shadow 0.16s,
    transform 0.12s;
  box-shadow: 0 1px 2px #17313c04;
}
button:hover {
  background: #f2f7f8;
}
button:active:not(:disabled) {
  transform: scale(0.98);
}
button.primary {
  background: #087e8b;
  border-color: #087e8b;
  box-shadow: 0 3px 8px #087e8b20;
  color: white;
}
button.primary:hover {
  background: #066c77;
  border-color: #066c77;
  box-shadow: 0 4px 12px #087e8b30;
}
button.primary:active {
  background: #075f69;
}
button[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
}
button:disabled {
  opacity: 0.55;
  transform: none;
}
button.quiet {
  box-shadow: none;
  background: transparent;
}
button.text-button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--accent);
  padding: 5px 2px;
  min-height: 44px;
  font-size: 13px;
}
button.icon-button {
  width: 42px;
  min-height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}
button.icon-button:hover {
  background: #e7eef1;
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
input:not([type="checkbox"]),
select,
textarea {
  border: 1px solid #cdd9df;
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 14px;
  background: #fafcfd;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  outline-offset: 2px;
}
input:not([type="checkbox"]):focus,
textarea:focus,
select:focus {
  background: white;
  border-color: #087e8b;
  box-shadow: 0 0 0 3px #087e8b12;
}
input::placeholder,
textarea::placeholder {
  color: #667d88;
}
label {
  font-size: 14px;
  gap: 8px;
  font-weight: 550;
}
h1 {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.45;
  margin-bottom: 8px;
}
h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.6;
}
h3 {
  font-weight: 650;
}
p {
  line-height: 1.85;
}
.small,
small {
  font-size: 12px;
}
bdi.money {
  font-family: Vazirmatn, system-ui, sans-serif;
  letter-spacing: -0.02em;
}
a {
  color: #087e8b;
}
button .icon {
  width: 18px;
  height: 18px;
}
:focus-visible {
  outline: 3px solid #087e8b;
  outline-offset: 3px;
}
h1[tabindex]:focus {
  outline: none;
}
.app-shell {
  grid-template-columns: 234px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  padding: 34px 18px 24px;
  background: #f7f9fa;
  border-left: 1px solid #e1e8ec;
  height: 100dvh;
  gap: 0;
}
.brand {
  margin: 0 10px 40px;
  gap: 12px;
}
.appmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  background: #087e8b;
  color: #fff;
  font:
    750 34px/1 system-ui,
    sans-serif;
  letter-spacing: -0.07em;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 1px #ffffff45,
    0 4px 9px #087e8b20;
  padding-bottom: 6px;
  flex-shrink: 0;
}
.brand .wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font:
    800 23px/1 system-ui,
    sans-serif;
  letter-spacing: -0.03em;
}
.brand .wordmark span {
  font:
    600 10px/1 system-ui,
    sans-serif;
  letter-spacing: 0.26em;
  color: #667d88;
}
.sidebar nav {
  gap: 7px;
}
.nav-item {
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 14px;
  font-weight: 550;
  font-size: 13px;
  color: #516772;
  gap: 12px;
  box-shadow: none;
}
.nav-item > .icon {
  width: 21px;
  height: 21px;
}
.nav-item.active {
  color: #086f7c;
  background: #e3f0f2;
  font-weight: 700;
  box-shadow: inset 0 1px 0 #ffffff8a;
}
.nav-item:hover {
  background: #eaf0f3;
}
.nav-count {
  margin-right: auto;
  border-radius: 6px;
  min-width: 22px;
  font-size: 11px;
  background: #fff9;
  padding: 0 5px;
  color: #386575;
}
.side-note {
  margin-top: auto;
  padding: 30px 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #607784;
  font-size: 11px;
}
.side-note .icon {
  width: 17px;
  height: 17px;
}
.side-user {
  margin-top: 0;
  border-top: 1px solid #dfe7eb;
  padding-top: 20px;
  gap: 10px;
  font-size: 12px;
}
.side-user strong {
  font-weight: 650;
}
.side-user small {
  font-size: 11px;
  margin-top: 3px;
}
.side-user > .icon-button {
  margin-right: auto;
  width: 32px;
}
.avatar {
  width: 36px;
  height: 36px;
  background: #dcebed;
  color: #28717b;
  font-size: 14px;
}
.workarea {
  background: #f2f5f7;
}
.toolbar {
  height: 78px;
  padding: 0 34px;
  border: 0;
  border-bottom: 1px solid #e5ebee;
  background: #f7fafbd9;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 10;
}
.toolbar-leading {
  display: flex;
  gap: 16px;
  align-items: center;
}
.toolbar .crumb {
  color: #667986;
  font-size: 12px;
}
.crumb > span {
  color: #a3b0b7;
  padding: 0 12px;
}
.toolbar .tools {
  gap: 8px;
}
.toolbar button.toolbar-search {
  background: #eaf0f3;
  border: 0;
  color: #667d88;
  font-size: 12px;
  font-weight: 400;
  min-height: 38px;
  padding: 8px 14px;
  gap: 12px;
}
.toolbar .tools .icon-button {
  width: 38px;
  min-height: 38px;
  padding: 8px;
}
.mobile-brand {
  display: none;
}
main.workspace {
  max-width: 1450px;
  padding: 32px 38px 60px;
}
.head {
  margin-bottom: 26px;
  align-items: center;
}
.head p {
  font-size: 13px;
  color: #607581;
}
.head-actions {
  gap: 8px;
  align-items: center;
}
.surface {
  border: 1px solid #e6edef;
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.list-heading {
  margin-bottom: 15px;
  min-height: 32px;
}
.list-heading h2 {
  margin: 0;
}
.grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(265px, 1fr);
  gap: 24px;
}
.grid > .surface {
  height: auto;
}
.count-label {
  font-size: 12px;
  color: #607581;
}
.symbol {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #127f88;
  background: #e5f4f4;
  flex-shrink: 0;
}
.symbol .icon {
  width: 20px;
  height: 20px;
}
.symbol.blue {
  color: #426ed2;
  background: #ecf1fe;
}
.symbol.amber {
  color: #ad741b;
  background: #fff3de;
}
.symbol.rose {
  color: #b75c77;
  background: #fbeef2;
}
.tag {
  border: 0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 550;
  padding: 3px 9px;
  background: #eef2f4;
  color: #546b77;
}
.tag.good {
  background: #e7f4ee;
  color: #24765d;
  border: 0;
}
.tag.warning {
  background: #fff2db;
  color: #8a5b14;
  border: 0;
}
.tag.info {
  background: #e7f1f8;
  color: #3e6d94;
  border: 0;
}
.demo-banner {
  background: #e8f2f3;
  color: #345f66;
  gap: 18px;
  padding: 5px 24px;
  min-height: 39px;
  font-size: 11px;
  border-bottom: 1px solid #d5e6e8;
}
.demo-banner > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.demo-banner i {
  width: 5px;
  height: 5px;
  background: #087e8b;
  border-radius: 50%;
}
.demo-banner label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.demo-banner select {
  min-height: 28px;
  font-size: 11px;
  background: #fff9;
  border: 1px solid #d2e3e6;
  padding: 2px 7px;
  border-radius: 7px;
}
.demo-banner button {
  min-height: 28px;
  border: 0;
  font-size: 11px;
  padding: 3px 7px;
  box-shadow: none;
}
.demo-banner .icon {
  width: 14px;
  height: 14px;
}
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e9f3f5;
  border: 1px solid #deedf0;
  border-radius: 24px;
  padding: 26px 30px;
  gap: 26px;
  margin-bottom: 24px;
  overflow: hidden;
}
.welcome h2 {
  font-size: 23px;
  margin: 0 0 10px;
  font-weight: 700;
}
.welcome p {
  color: #4a6c77;
  font-size: 14px;
  margin-bottom: 16px;
}
.welcome img {
  object-fit: cover;
  mix-blend-mode: multiply;
  width: 200px;
  height: 134px;
  border-radius: 18px;
  flex-shrink: 0;
}
.welcome-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.welcome-links button {
  border: 0;
  padding: 0;
  min-height: 30px;
  box-shadow: none;
  background: none;
  color: #087784;
  font-size: 13px;
}
.welcome-links > span {
  font-size: 11px;
  color: #557780;
  display: flex;
  align-items: center;
  gap: 6px;
}
.welcome-links > span .icon {
  width: 15px;
  height: 15px;
}
.dashboard-facts {
  display: grid;
  grid-template-columns: 0.85fr 1.45fr 0.85fr;
  gap: 18px;
  margin-bottom: 30px;
}
.dashboard-facts > div {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #e4ecef;
  border-radius: 19px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.dashboard-facts > div > span:not(.symbol) {
  display: grid;
  gap: 2px;
}
.dashboard-facts small {
  font-size: 12px;
  color: #637985;
}
.dashboard-facts strong {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.5;
}
.dashboard-facts .money {
  font-size: 22px;
}
.case-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  padding: 21px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #e9eef0;
  box-shadow: none;
  text-align: right;
  background: transparent;
}
.case-link:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}
.case-link:hover {
  background: #f8fbfc;
}
.client-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8eff5;
  color: #507289;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.case-link:nth-of-type(2n) .client-avatar {
  background: #edf0fb;
  color: #6d73a5;
}
.case-link:nth-of-type(3n) .client-avatar {
  background: #e9f2ef;
  color: #4e8275;
}
.case-link-main {
  flex: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.case-link-main strong {
  font-size: 14px;
  font-weight: 650;
}
.case-link-main small {
  font-size: 12px;
  color: #667d88;
  font-weight: 400;
}
.case-reason {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 400;
  color: #607480;
  margin-top: 3px;
}
.case-reason .icon {
  width: 14px;
  height: 14px;
  color: #a57530;
}
.case-link-end {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #8a9ca7;
}
.case-link-end > .icon {
  width: 16px;
  height: 16px;
}
.recent-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: right;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 17px 0;
  gap: 10px;
  border-bottom: 1px solid #edf1f3;
  border-radius: 0;
}
.recent-row > span:nth-child(2) {
  flex: 1;
  display: grid;
  gap: 5px;
}
.recent-row strong {
  font-size: 12px;
  font-weight: 600;
}
.recent-row small {
  font-size: 11px;
  color: #617783;
  font-weight: 400;
}
.recent-row time {
  font-size: 10px;
  color: #617783;
  font-weight: 400;
}
.recent-row > .icon {
  width: 14px;
  color: #8c9da6;
}
.activity-dot {
  width: 6px;
  height: 6px;
  background: #60a5ae;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.help-note {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  align-items: flex-start;
  color: #607782;
}
.help-note .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}
.help-note p {
  font-size: 12px;
  margin: 0;
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e6edf1;
  padding: 0 16px;
  border-radius: 14px;
  margin-bottom: 28px;
  min-height: 52px;
  border: 1px solid transparent;
}
.search-field:focus-within {
  border-color: #53a4ae;
}
.search-field > .icon {
  color: #66818e;
  width: 19px;
}
.search-field input:not([type="checkbox"]) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 10px 0;
  outline: 0;
  min-width: 0;
}
.search-field > span {
  white-space: nowrap;
  font-size: 12px;
  color: #586f7c;
}
.customer-section {
  padding: 0;
  overflow: hidden;
}
.customer-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 24px;
}
.customer-identity > div {
  flex: 1;
}
.customer-identity h2 {
  font-size: 18px;
  margin: 0 0 4px;
}
.customer-identity small {
  color: #607782;
  font-size: 12px;
}
.customer-case {
  display: flex;
  justify-content: stretch;
  text-align: right;
  gap: 18px;
  width: 100%;
  padding: 19px 24px;
  border: 0;
  border-top: 1px solid #edf1f3;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.customer-case:hover {
  background: #f7fafb;
}
.case-title {
  display: grid;
  gap: 5px;
  flex: 1;
}
.case-title strong {
  font-size: 13px;
}
.case-title small {
  color: #647b87;
  font-weight: 400;
  font-size: 11px;
}
.case-balance,
.case-quantity {
  display: grid;
  gap: 5px;
  min-width: 100px;
  font-size: 12px;
}
.case-balance small,
.case-quantity small {
  color: #647b87;
  font-size: 11px;
  font-weight: 400;
}
.customer-case > .icon {
  width: 16px;
  color: #94a7b1;
}
.customer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f8fbfc;
  font-size: 11px;
  color: #657b87;
}
.customer-credit .icon {
  width: 15px;
  height: 15px;
}
.customer-credit b {
  font-size: 12px;
  margin-right: auto;
  font-weight: 550;
}
.catalog-intro {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #eaf3f5;
  border-radius: 22px;
  padding: 20px 26px;
  margin-bottom: 24px;
}
.catalog-intro img {
  width: 190px;
  height: 126px;
  border-radius: 14px;
  mix-blend-mode: multiply;
}
.catalog-intro h2 {
  margin-bottom: 8px;
}
.catalog-intro p {
  font-size: 13px;
  margin-bottom: 8px;
  color: #4d707a;
}
.catalog-intro small {
  color: #597884;
  font-size: 11px;
}
.catalog-row {
  padding: 24px 0;
}
.catalog-row h3 {
  font-size: 16px;
}
.catalog-row p {
  margin: 8px 0;
  color: #59717e;
}
.catalog-row button {
  color: #087e8b;
  background: #f0f7f8;
  border-color: #dbecee;
}
.case-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}
.case-person {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  min-width: 0;
}
.client-avatar.large {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: #e2eff0;
  color: #29838e;
  margin-top: 4px;
}
.client-avatar.large .icon {
  width: 28px;
  height: 28px;
}
.case-person h1 {
  font-size: 28px;
  margin-bottom: 5px;
}
.case-person p {
  font-size: 12px;
  color: #607784;
  margin-bottom: 10px;
}
.case-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #607784;
}
.case-meta .tag {
  font-size: 10px;
}
.tabs {
  background: #e7edf0;
  padding: 5px;
  border-radius: 13px;
  border: 0;
  gap: 3px;
  margin-bottom: 28px;
  width: fit-content;
  max-width: 100%;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs button {
  font-size: 12px;
  border: 0;
  padding: 8px 19px;
  min-height: 38px;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: #546b77;
  font-weight: 500;
}
.tabs button.active {
  background: #fff;
  color: #126f7b;
  box-shadow: 0 2px 6px #29445313;
  font-weight: 650;
}
.case-content {
  animation: sectionReveal 0.2s var(--ease);
}
@keyframes sectionReveal {
  from {
    opacity: 0.8;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.next {
  border: 1px solid #d8e9ec;
  background: #edf6f7;
  border-radius: 18px;
  padding: 18px 20px;
  gap: 14px;
  margin-bottom: 24px;
  align-items: center;
}
.next > div {
  flex: 1;
}
.next strong {
  font-size: 15px;
  font-weight: 650;
}
.next p {
  font-size: 12px;
  color: #56767e;
  margin-top: 5px;
  max-width: 68ch;
}
.next .primary {
  font-size: 12px;
  min-width: 138px;
  white-space: nowrap;
}
.next.attention {
  background: #fff9ef;
  border-color: #f0e5d1;
}
.next.attention strong {
  color: #735023;
}
.next.attention p {
  color: #7d6b4e;
}
.next > .symbol {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(265px, 1fr);
  gap: 24px;
  align-items: start;
}
.case-primary,
.case-secondary {
  min-width: 0;
}
.quantity-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
  margin-bottom: 18px;
}
.quantity-strip > div {
  display: grid;
  gap: 4px;
}
.quantity-strip strong {
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -0.03em;
  font-weight: 650;
}
.quantity-strip > div:first-child strong {
  color: #138778;
}
.quantity-strip span {
  font-size: 12px;
  color: #647b87;
}
.quantity-track {
  display: flex;
  gap: 3px;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
}
.quantity-track span {
  background: #e8eef1;
  min-width: 0;
}
.quantity-track span.delivered {
  background: #409b92;
}
.quantity-track span.received {
  background: #96c7cd;
}
.quantity-caption {
  font-size: 11px;
  color: #657c88;
  margin: 10px 0 23px;
}
.shipment-list {
  border-top: 1px solid #e8eef0;
}
.shipment-summary {
  border: 0;
  border-bottom: 1px solid #e9eff2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  text-align: right;
  width: 100%;
}
.shipment-summary:hover {
  background: #f9fcfc;
}
.shipment-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 15px;
  background: #e8f0f8;
  color: #4c7da5;
  flex-shrink: 0;
}
.shipment-symbol.arrived {
  background: #e6f3ee;
  color: #3b8b74;
}
.shipment-symbol.prepared {
  background: #f0eff8;
  color: #8273b0;
}
.shipment-symbol .icon {
  width: 23px;
  height: 23px;
}
.shipment-main {
  flex: 1;
  display: grid;
  gap: 8px;
}
.shipment-main strong {
  font-size: 14px;
  font-weight: 650;
}
.shipment-main strong span {
  font-weight: 400;
  color: #667d88;
  font-size: 12px;
}
.shipment-main small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #617984;
  font-size: 12px;
  font-weight: 400;
}
.shipment-main small .icon {
  width: 13px;
  height: 13px;
}
.shipment-main small .tag {
  margin-right: 6px;
  font-size: 10px;
}
.shipment-counts {
  font-size: 11px;
  color: #617985;
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 400;
}
.shipment-counts i {
  height: 3px;
  width: 3px;
  background: #96aab4;
  border-radius: 50%;
}
.shipment-summary > .icon {
  color: #9aaeb8;
  width: 16px;
}
.quiet-foot {
  font-size: 11px;
  color: #627a87;
  margin: 17px 0 0;
  line-height: 1.85;
}
.balance-panel {
  background: #fff;
  border-color: #dce9ec;
}
.balance-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.balance-heading h2 {
  font-size: 16px;
  margin: 0;
}
.balance-label {
  display: block;
  font-size: 12px;
  color: #607a86;
  margin-bottom: 5px;
}
.balance-amount {
  display: block;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #185568;
  margin-bottom: 22px;
}
.balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  padding: 9px 0;
  color: #607784;
}
.balance-row .money {
  color: #294b5b;
  font-weight: 550;
  font-size: 12px;
}
.balance-link {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-top: 1px solid #e6edef;
  box-shadow: none;
  border-radius: 0;
  margin-top: 16px;
  padding: 17px 0 0;
  min-height: 40px;
  background: transparent;
  color: #087e8b;
  font-size: 12px;
}
.balance-link .icon {
  width: 16px;
}
.agreement-panel .list-heading h2 {
  font-size: 16px;
}
.agreement-panel .symbol {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.agreement-panel .symbol .icon {
  width: 17px;
  height: 17px;
}
.agreement-panel > strong {
  font-size: 14px;
}
.agreement-panel > p {
  font-size: 12px;
  color: #617784;
  margin: 10px 0 8px;
}
.agreement-panel .text-button {
  font-size: 12px;
}
.case-steps h2 {
  font-size: 16px;
}
.checklist li {
  font-size: 12px;
  padding: 11px 0;
  border: 0;
  gap: 10px;
  color: #627784;
}
.checkmark {
  width: 21px;
  height: 21px;
  border: 1.5px solid #d8e2e7;
  background: #fff;
}
.checkmark.done {
  background: #e1f1ec;
  border: 0;
  color: #3a8973;
}
.checkmark .icon {
  width: 13px;
  height: 13px;
}
.checkmark.done + span {
  color: var(--ink);
}
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.activity-list li {
  display: flex;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid #edf1f3;
  align-items: flex-start;
}
.activity-list li:last-child {
  border: 0;
  padding-bottom: 0;
}
.activity-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #f0f4f7;
  color: #718b99;
  flex-shrink: 0;
}
.activity-symbol .icon {
  width: 16px;
  height: 16px;
}
.activity-list strong {
  font-size: 13px;
  font-weight: 550;
  display: block;
  margin: 2px 0 5px;
}
.activity-list small {
  color: #69808d;
  font-size: 11px;
}
.surface .surface {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 20px 0;
  margin: 0;
  border-bottom: 1px solid #e5ecef;
}
.surface .surface:last-child {
  border-bottom: 0;
}
.surface > h2 {
  margin-bottom: 20px;
}
.notice {
  border-radius: 12px;
  font-size: 13px;
  padding: 15px 18px;
}
.notice.info {
  background: #f0f5f8;
  border-color: #e1e9ef;
  color: #496c80;
}
.notice.good {
  background: #edf6f2;
  border-color: #daebe3;
  color: #386f59;
}
.notice.error {
  background: #fdf1f2;
  border-color: #f0dce0;
  color: #9c3848;
}
th {
  font-size: 12px;
  background: #f5f8fa;
  color: #5c7482;
  padding: 13px 14px;
}
td {
  font-size: 13px;
  padding: 20px 14px;
  border-color: #e8eef1;
}
td button {
  font-size: 12px;
  min-height: 40px;
  padding: 8px 12px;
}
tr:last-child td {
  border: 0;
}
.tablewrap {
  border-radius: 12px;
}
.tablewrap td bdi {
  overflow-wrap: anywhere;
}
td small {
  font-size: 11px;
}
.total {
  border-color: #dfe8ed;
}
.total b {
  font-size: 23px;
}
.decision {
  border-color: #e5edef;
  font-size: 13px;
  padding: 19px 0;
}
.decision p {
  color: #5d7784;
  font-size: 12px;
}
.decision small {
  color: #627b88;
  font-size: 11px;
}
.decision button {
  font-size: 12px;
}
.progress-note {
  border-color: #e5edef;
  font-size: 12px;
  color: #627985;
}
.timeline li {
  grid-template-columns: 90px 1fr;
  border-color: #e6edf0;
  padding: 22px 0;
  gap: 20px;
}
.timeline li > div {
  padding-right: 18px;
  border-right: 1px solid #dce8ed;
  position: relative;
}
.timeline li > div:before {
  content: "";
  position: absolute;
  right: -4px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: #7eb7be;
  border-radius: 50%;
}
.timeline p {
  font-size: 14px;
}
.timeline small {
  font-size: 11px;
}
.empty {
  padding: 36px 20px;
}
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  background: #eef5f7;
  color: #83a8b5;
  margin-bottom: 18px;
}
.empty-icon .icon {
  width: 28px;
  height: 28px;
}
.empty h2 {
  font-size: 17px;
}
.empty p {
  font-size: 13px;
  max-width: 50ch;
}
.file-row {
  padding: 18px 0;
}
.file-row > div {
  display: grid;
  gap: 6px;
}
.file-row strong {
  font-size: 13px;
}
.file-row small {
  font-size: 11px;
}
.file-row a {
  font-size: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.menu-list {
  display: grid;
  gap: 2px;
}
.menu-list > button {
  border: 0;
  border-radius: 14px;
  padding: 12px;
  justify-content: flex-start;
  box-shadow: none;
  gap: 14px;
}
.menu-list > button > span:nth-child(2) {
  flex: 1;
  text-align: right;
}
.menu-list > button > .icon {
  width: 16px;
  color: #899faa;
}
.menu-exit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: #a74a56;
  text-decoration: none;
  border-top: 1px solid #e7edef;
  margin-top: 14px;
}
.menu-sheet footer {
  display: none;
}
.menu-sheet {
  max-width: 420px;
}
#toast {
  background: #183f4d;
  border: 1px solid #ffffff21;
  box-shadow: 0 10px 30px -8px #23495b45;
  border-radius: 16px;
  padding: 16px 24px;
  left: 32px;
  bottom: 26px;
  font-size: 13px;
  line-height: 1.8;
}
#toast.show {
  animation: toastIn 0.22s var(--ease);
}
@keyframes sheetIn {
  from {
    transform: translateY(12px);
    opacity: 0.8;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes toastIn {
  from {
    transform: translateY(8px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.signin {
  background: #f8fafb;
  grid-template-columns: 1.12fr 1fr;
  padding: 30px;
  gap: 26px;
}
.signin-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e9f3f5;
  border-radius: 30px;
  color: #172f3a;
  padding: 60px;
  justify-content: flex-start;
  min-height: 740px;
}
.signin-art {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 47%;
  object-fit: cover;
  mix-blend-mode: multiply;
  z-index: -1;
}
.signin-story .wordmark {
  font-size: 28px;
  margin-bottom: 20px;
}
.signin-story h1 {
  font-size: 45px;
  margin: 28px 0 20px;
  line-height: 1.5;
  max-width: 12ch;
  letter-spacing: -0.03em;
}
.signin-story p {
  font-size: 16px;
  color: #557582;
  max-width: 39ch;
}
.story-record {
  display: none;
}
.signin-story .light-button {
  margin-top: 18px;
  color: #0a7782;
  border: 1px solid #d2e7ea;
  background: #fff9;
  min-height: 46px;
}
.signin-story > small {
  color: #5f7d88;
  max-width: 35ch;
  font-size: 11px;
  margin-top: 14px;
}
.signin-form {
  padding: 50px 35px;
  max-width: 440px;
  width: 100%;
}
.signin-form h2 {
  font-size: 29px;
  margin-bottom: 14px;
}
.signin-form > p {
  font-size: 14px;
}
.signin-form form {
  gap: 20px;
  margin-top: 36px;
}
.signin-form form label {
  font-size: 14px;
}
.signin-form .primary {
  min-height: 50px;
  margin-top: 6px;
}
.signin-form > a {
  font-size: 13px;
}
.signin-foot {
  font-size: 12px !important;
  line-height: 1.9;
  border-color: #dfe9ed;
  margin-top: 34px;
}
.loading {
  background: #f2f5f7;
  align-items: center;
  justify-items: center;
  gap: 18px;
}
.loading .wordmark {
  font:
    750 27px/1 system-ui,
    sans-serif;
}
.loading-mark {
  width: 60px;
  height: 60px;
  border-radius: 19px;
  font-size: 46px;
}
.loading p {
  font-size: 13px;
  color: #5f7886;
}
.loading-lines {
  display: grid;
  gap: 10px;
  width: 220px;
}
.loading-lines i {
  display: block;
  height: 9px;
  border-radius: 5px;
  background: #e0e9ee;
}
.loading-lines i:nth-child(2) {
  width: 80%;
}
.loading-lines i:nth-child(3) {
  width: 55%;
}
@media (min-width: 1500px) {
  .app-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  main.workspace {
    padding: 38px 48px 70px;
  }
  .sidebar {
    padding-right: 24px;
    padding-left: 24px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 12px 20px;
  }
  .brand {
    margin-bottom: 34px;
  }
  .nav-item {
    font-size: 12px;
    padding: 11px 10px;
    gap: 9px;
  }
  .nav-count {
    display: none;
  }
  main.workspace {
    padding: 28px;
  }
  .toolbar {
    padding: 0 28px;
  }
  .case-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
    gap: 18px;
  }
  .surface {
    padding: 22px;
  }
  .welcome-links > span {
    display: none;
  }
  .dashboard-facts {
    gap: 12px;
  }
  .dashboard-facts > div {
    padding: 16px;
    gap: 10px;
  }
  .dashboard-facts .money {
    font-size: 19px;
  }
  .dashboard-facts strong {
    font-size: 21px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .recent-panel {
    display: none;
  }
  .next .primary {
    min-width: 120px;
  }
  .next {
    padding: 16px;
  }
  .case-person h1 {
    font-size: 25px;
  }
  .case-heading {
    gap: 12px;
  }
  .case-heading .head-actions {
    flex-wrap: nowrap;
  }
  .case-heading .head-actions button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .case-person {
    gap: 12px;
  }
  .balance-amount {
    font-size: 25px;
  }
  .case-status {
    display: none;
  }
  .signin-story {
    padding: 40px;
  }
  .signin-story h1 {
    font-size: 38px;
  }
}
@media (max-width: 900px) and (min-width: 701px) {
  .app-shell {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 12px;
    align-items: center;
  }
  .brand {
    margin: 0 0 30px;
  }
  .brand .wordmark,
  .nav-item > span,
  .side-user > div,
  .side-note,
  .side-user > button {
    display: none;
  }
  .nav-item {
    justify-content: center;
    width: 48px;
    height: 48px;
  }
  .nav-item .icon {
    width: 22px;
    height: 22px;
  }
  .side-user {
    margin-top: auto;
    border: 0;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .case-steps {
    grid-column: 1/-1;
  }
  .welcome img {
    width: 160px;
    height: 120px;
  }
  .case-person h1 {
    font-size: 25px;
  }
  .tabs {
    width: 100%;
  }
  .tabs button {
    flex: 1;
    padding: 8px 13px;
  }
  .signin {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
  }
  .signin-story {
    padding: 30px;
  }
  .signin-story h1 {
    font-size: 32px;
  }
  .signin-form {
    padding: 30px 20px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 15px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .toolbar {
    height: 65px;
    padding: 0 18px;
    position: sticky;
    top: 0;
    background: #f4f8fae8;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #e3ebef;
  }
  .mobile-brand {
    display: flex;
    gap: 9px;
    align-items: center;
    font:
      750 19px/1 system-ui,
      sans-serif;
    direction: ltr;
    letter-spacing: -0.03em;
  }
  .mobile-brand .appmark {
    width: 31px;
    height: 31px;
    font-size: 26px;
    border-radius: 10px;
    padding-bottom: 5px;
  }
  .toolbar .crumb {
    display: none;
  }
  .toolbar .tools {
    gap: 4px;
  }
  .toolbar .tools .icon-button {
    width: 38px;
    min-height: 38px;
  }
  .toolbar button.toolbar-search {
    width: 36px;
    min-height: 38px;
    padding: 8px;
    background: transparent;
  }
  .toolbar-search > span {
    display: none;
  }
  .toolbar .tools .quiet {
    font-size: 11px;
    min-height: 36px;
    padding: 5px 8px;
  }
  .toolbar-leading {
    gap: 0;
  }
  main.workspace {
    padding: 24px 18px 120px;
  }
  h1 {
    font-size: 29px;
  }
  h2 {
    font-size: 18px;
  }
  .head {
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 23px;
  }
  .head p {
    font-size: 12px;
    margin-top: 4px;
  }
  .head-actions {
    width: auto;
    gap: 6px;
  }
  .head-actions button {
    font-size: 12px;
    min-height: 42px;
    padding: 9px 12px;
  }
  .head-actions .primary {
    flex: initial;
  }
  .head-actions .icon {
    width: 16px;
  }
  .head > div:first-child {
    flex: 1;
    min-width: 160px;
  }
  .surface {
    padding: 21px 18px;
    border-radius: 22px;
    margin-bottom: 18px;
    box-shadow: 0 3px 14px -11px #29445d30;
  }
  .welcome {
    padding: 22px 21px;
    min-height: 174px;
    position: relative;
    isolation: isolate;
    border-radius: 23px;
    margin-bottom: 20px;
    gap: 0;
  }
  .welcome > div {
    position: relative;
    z-index: 1;
    width: 100%;
  }
  .welcome h2 {
    font-size: 19px;
    max-width: 16ch;
    margin-bottom: 10px;
  }
  .welcome p {
    font-size: 12px;
    max-width: 23ch;
    line-height: 1.9;
    margin-bottom: 10px;
  }
  .welcome img {
    position: absolute;
    left: -12px;
    bottom: 8px;
    width: 145px;
    height: 116px;
    opacity: 0.65;
    z-index: 0;
    object-fit: cover;
    object-position: 65% 50%;
  }
  .welcome-links {
    gap: 0;
  }
  .welcome-links button {
    font-size: 12px;
    padding: 4px 0;
  }
  .welcome-links > span {
    display: none;
  }
  .dashboard-facts {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-bottom: 25px;
  }
  .dashboard-facts > div {
    padding: 15px 14px;
    border-radius: 18px;
    gap: 11px;
  }
  .dashboard-facts > div:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 1;
    padding: 18px;
  }
  .dashboard-facts .symbol {
    width: 35px;
    height: 35px;
    border-radius: 11px;
  }
  .dashboard-facts > div:nth-child(2) > span:not(.symbol) {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .dashboard-facts > div:nth-child(2) .money {
    font-size: 22px;
  }
  .dashboard-facts strong {
    font-size: 22px;
  }
  .dashboard-facts small {
    font-size: 11px;
  }
  .grid {
    display: block;
  }
  .list-heading {
    gap: 10px;
    margin-bottom: 12px;
  }
  .count-label {
    font-size: 11px;
  }
  .case-link {
    gap: 11px;
    padding: 18px 0;
    align-items: flex-start;
  }
  .client-avatar {
    width: 37px;
    height: 37px;
    border-radius: 12px;
    font-size: 16px;
  }
  .case-link-main strong {
    font-size: 13px;
  }
  .case-link-main small {
    font-size: 11px;
    line-height: 1.8;
  }
  .case-reason {
    font-size: 10px;
    line-height: 1.8;
  }
  .case-reason .icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
  .case-link-end {
    gap: 0;
    margin-top: 10px;
  }
  .case-link-end .tag {
    display: none;
  }
  .case-link-end > .icon {
    width: 15px;
  }
  .recent-panel {
    display: none;
  }
  .bottom-nav {
    display: flex;
    left: 14px;
    right: 14px;
    bottom: max(10px, env(safe-area-inset-bottom));
    border: 1px solid #fff;
    background: #ffffffeb;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow:
      0 8px 32px -10px #173f5550,
      0 0 0 1px #dde7ec80;
    border-radius: 25px;
    padding: 6px;
    gap: 4px;
    z-index: 30;
  }
  .bottom-nav button {
    border-radius: 18px;
    background: transparent;
    gap: 3px;
    padding: 8px 4px;
    min-height: 55px;
    color: #637d8a;
    box-shadow: none;
    font-size: 10px;
    font-weight: 500;
  }
  .bottom-nav button .icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.75;
  }
  .bottom-nav button.active {
    background: #e7f2f4;
    color: #087c89;
    font-weight: 650;
  }
  .bottom-nav button:active {
    transform: scale(0.95);
  }
  .demo-banner {
    font-size: 10px;
    padding: 6px 16px;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: space-between;
    min-height: 36px;
  }
  .demo-banner > span {
    font-size: 10px;
  }
  .demo-banner label {
    font-size: 0;
    gap: 0;
  }
  .demo-banner select {
    font-size: 10px;
    min-height: 26px;
    padding: 2px 6px;
  }
  .demo-banner button {
    font-size: 10px;
    min-height: 28px;
  }
  .demo-banner .icon {
    width: 13px;
  }
  .search-field {
    padding: 0 13px;
    gap: 9px;
    margin-bottom: 22px;
    min-height: 50px;
  }
  .search-field input:not([type="checkbox"]) {
    font-size: 14px;
  }
  .search-field > span {
    font-size: 10px;
  }
  .customer-section {
    padding: 0;
    border-radius: 22px;
  }
  .customer-identity {
    padding: 20px 17px;
    gap: 10px;
    align-items: flex-start;
  }
  .customer-identity h2 {
    font-size: 16px;
  }
  .customer-identity small {
    font-size: 10px;
    line-height: 1.8;
    display: block;
  }
  .customer-identity .quiet {
    font-size: 0;
    border: 0;
    padding: 8px;
    width: 38px;
    min-height: 38px;
    background: #f1f7f8;
  }
  .customer-identity .quiet .icon {
    width: 18px;
    height: 18px;
  }
  .customer-case {
    padding: 18px 17px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .case-title {
    grid-column: 1;
    min-width: 0;
  }
  .case-title strong {
    font-size: 13px;
    line-height: 1.9;
  }
  .case-title small {
    font-size: 10px;
  }
  .customer-case > .icon {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  .case-balance {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
  }
  .case-quantity {
    grid-column: 2;
    display: flex;
    min-width: 0;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    font-size: 11px;
  }
  .case-balance small,
  .case-quantity small {
    font-size: 10px;
  }
  .customer-credit {
    padding: 12px 17px;
    font-size: 10px;
  }
  .customer-credit b {
    font-size: 11px;
  }
  .catalog-intro {
    padding: 18px 20px;
    gap: 12px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .catalog-intro img {
    position: absolute;
    left: -25px;
    bottom: 0;
    width: 155px;
    height: 125px;
    z-index: -1;
    opacity: 0.4;
  }
  .catalog-intro h2 {
    font-size: 18px;
    max-width: 22ch;
  }
  .catalog-intro p {
    font-size: 12px;
    max-width: 28ch;
  }
  .catalog-intro small {
    font-size: 10px;
  }
  .catalog-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 21px 0;
  }
  .catalog-row h3 {
    font-size: 16px;
  }
  .catalog-row p {
    font-size: 12px;
    line-height: 1.85;
  }
  .catalog-row > div:last-child {
    text-align: left;
  }
  .catalog-row button {
    min-width: 105px;
    font-size: 12px;
  }
  .case-heading {
    display: block;
    margin-bottom: 22px;
  }
  .case-person {
    align-items: flex-start;
    gap: 12px;
  }
  .client-avatar.large {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    margin-top: 2px;
  }
  .client-avatar.large .icon {
    width: 23px;
    height: 23px;
  }
  .case-person h1 {
    font-size: 22px;
    line-height: 1.6;
  }
  .case-person p {
    font-size: 11px;
    margin: 4px 0 10px;
    line-height: 1.8;
  }
  .case-meta {
    font-size: 10px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .case-meta .tag {
    font-size: 10px;
    padding: 3px 7px;
  }
  .case-heading .head-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    gap: 6px;
  }
  .case-heading .head-actions button {
    font-size: 11px;
    min-height: 38px;
    padding: 7px 12px;
    background: #fff;
  }
  .case-heading .head-actions .icon-button {
    width: 36px;
    padding: 8px;
  }
  .tabs {
    width: calc(100% + 4px);
    max-width: calc(100% + 4px);
    margin: 0 -2px 22px;
    gap: 3px;
    padding: 5px;
    border-radius: 13px;
    scroll-padding: 5px;
  }
  .tabs button {
    font-size: 11px;
    min-height: 36px;
    padding: 7px 13px;
    flex-shrink: 0;
  }
  .next {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px 12px;
    padding: 17px;
    border-radius: 18px;
    margin-bottom: 20px;
  }
  .next > .symbol {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }
  .next > .symbol .icon {
    width: 18px;
    height: 18px;
  }
  .next strong {
    font-size: 14px;
    line-height: 1.8;
  }
  .next p {
    font-size: 11px;
    line-height: 1.9;
    margin-top: 6px;
  }
  .next > .primary {
    grid-column: 1/-1;
    min-height: 44px;
    width: 100%;
    margin-top: 3px;
    font-size: 13px;
    justify-content: space-between;
    padding: 10px 16px;
  }
  .case-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .case-primary,
  .case-secondary {
    width: 100%;
    display: contents;
  }
  .balance-panel {
    order: 0;
    width: 100%;
  }
  .shipment-panel {
    order: 1;
    width: 100%;
  }
  .case-primary > .surface:not(.shipment-panel) {
    order: 4;
    width: 100%;
  }
  .agreement-panel {
    order: 2;
    width: 100%;
  }
  .case-steps {
    order: 3;
    width: 100%;
  }
  .balance-heading {
    margin-bottom: 16px;
    gap: 9px;
  }
  .balance-heading h2 {
    font-size: 16px;
  }
  .balance-heading .symbol {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .balance-heading .symbol .icon {
    width: 18px;
    height: 18px;
  }
  .balance-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 12px;
  }
  .balance-heading {
    grid-column: 1/-1;
  }
  .balance-label {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    align-self: center;
    font-size: 12px;
  }
  .balance-amount {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: 25px;
  }
  .balance-row {
    grid-column: 1/-1;
    font-size: 11px;
    padding: 10px 0 0;
  }
  .balance-row:nth-of-type(2) {
    margin-top: 10px;
  }
  .balance-row .money {
    font-size: 12px;
  }
  .balance-link {
    grid-column: 1/-1;
    margin-top: 17px;
    padding-top: 14px;
    font-size: 12px;
    min-height: 44px;
  }
  .quantity-strip {
    gap: 10px;
    margin: 17px 0;
  }
  .quantity-strip strong {
    font-size: 26px;
  }
  .quantity-strip span {
    font-size: 10px;
  }
  .quantity-caption {
    font-size: 10px;
    margin-bottom: 18px;
  }
  .shipment-panel .list-heading h2 {
    font-size: 17px;
  }
  .shipment-panel .text-button {
    font-size: 11px;
    gap: 3px;
  }
  .shipment-panel .text-button .icon {
    width: 14px;
  }
  .shipment-summary {
    padding: 19px 0;
    gap: 11px;
  }
  .shipment-symbol {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }
  .shipment-symbol .icon {
    width: 19px;
    height: 19px;
  }
  .shipment-main strong {
    font-size: 13px;
  }
  .shipment-main strong span {
    font-size: 11px;
  }
  .shipment-main small {
    font-size: 11px;
    gap: 4px;
  }
  .shipment-main small .tag {
    font-size: 9px;
    padding: 2px 6px;
    margin-right: 3px;
  }
  .shipment-counts {
    font-size: 10px;
    gap: 7px;
  }
  .shipment-summary > .icon {
    width: 14px;
    flex-shrink: 0;
  }
  .quiet-foot {
    font-size: 11px;
  }
  .agreement-panel > strong {
    font-size: 14px;
  }
  .agreement-panel .list-heading {
    margin-bottom: 10px;
  }
  .agreement-panel p {
    font-size: 12px;
  }
  .checklist li {
    font-size: 12px;
    padding: 10px 0;
  }
  .activity-list strong {
    font-size: 12px;
  }
  .activity-list small {
    font-size: 10px;
  }
  .activity-list li {
    padding: 15px 0;
  }
  .activity-symbol {
    width: 28px;
    height: 28px;
  }
  .mobile-cards tr {
    padding: 18px 0;
    border-color: #e5edef;
  }
  .mobile-cards td {
    font-size: 13px;
    padding: 7px 0;
    line-height: 1.8;
    gap: 12px;
    overflow-wrap: anywhere;
  }
  .mobile-cards td:before {
    font-size: 11px;
    min-width: 85px;
    font-weight: 400;
  }
  .mobile-cards td small {
    max-width: 190px;
    font-size: 11px;
  }
  .mobile-cards td .inline {
    justify-content: flex-end;
  }
  .mobile-cards td button {
    font-size: 11px;
    min-height: 40px;
  }
  .tablewrap:not(.mobile-cards) {
    overscroll-behavior-x: contain;
  }
  .surface .list-heading {
    flex-wrap: wrap;
  }
  .surface .list-heading .inline {
    gap: 7px;
  }
  .surface .list-heading button {
    font-size: 11px;
    min-height: 42px;
  }
  .surface .surface {
    padding: 20px 0;
    box-shadow: none;
    border-radius: 0;
  }
  .surface .surface .row {
    align-items: flex-start;
  }
  .surface .surface h3 {
    font-size: 14px;
  }
  .surface .surface .inline button {
    font-size: 11px;
    flex: 1;
    min-width: 110px;
  }
  .timeline li {
    grid-template-columns: 65px 1fr;
    gap: 12px;
    padding: 19px 0;
  }
  .timeline li > div {
    padding-right: 14px;
  }
  .timeline p {
    font-size: 13px;
  }
  .timeline small {
    font-size: 10px;
  }
  .notice {
    font-size: 12px;
    line-height: 1.85;
    padding: 14px;
  }
  .total b {
    font-size: 19px;
  }
  .file-row {
    align-items: flex-start;
  }
  .file-row strong {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .file-row small {
    font-size: 10px;
  }
  .file-row a {
    font-size: 11px;
  }
  .menu-list > button {
    padding: 11px 7px;
    font-size: 14px;
  }
  .menu-list .symbol {
    width: 35px;
    height: 35px;
  }
  .menu-exit {
    font-size: 13px;
    padding: 16px;
  }
  #toast {
    left: 18px;
    right: 18px;
    bottom: 94px;
    padding: 15px 20px;
    border-radius: 17px;
    font-size: 12px;
    max-width: none;
  }
  .signin {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 0;
    background: #f3f7f9;
  }
  .signin-story {
    padding: 28px 26px;
    min-height: 310px;
    border-radius: 24px;
    justify-content: flex-start;
  }
  .signin-story .wordmark {
    font-size: 22px;
    margin-bottom: 4px;
  }
  .signin-story h1 {
    font-size: 29px;
    line-height: 1.55;
    margin: 16px 0 12px;
    max-width: 13ch;
  }
  .signin-story p {
    font-size: 12px;
    max-width: 24ch;
    line-height: 1.9;
    margin-bottom: 0;
  }
  .signin-story .light-button {
    margin-top: 16px;
    font-size: 12px;
    min-height: 40px;
    padding: 8px 12px;
    align-self: flex-start;
    background: #ffffffe0;
  }
  .signin-story > small {
    max-width: 24ch;
    font-size: 10px;
  }
  .signin-art {
    width: 50%;
    height: 58%;
    left: 0;
    bottom: 8px;
    object-fit: cover;
    object-position: 60% 50%;
    opacity: 0.55;
  }
  .signin-form {
    padding: 28px 16px 36px;
    width: 100%;
    max-width: 440px;
  }
  .signin-form h2 {
    font-size: 26px;
  }
  .signin-form form {
    margin-top: 24px;
    gap: 19px;
  }
  .signin-form input:not([type="checkbox"]) {
    font-size: 16px;
  }
  .signin-form > p {
    font-size: 13px;
  }
  .signin-form .check {
    font-size: 12px;
  }
  .signin-foot {
    font-size: 11px !important;
    margin-top: 28px;
  }
  .signin-form > a {
    font-size: 12px;
  }
}
@keyframes mobileSheet {
  from {
    transform: translateY(30px);
    opacity: 0.8;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (max-width: 370px) {
  main.workspace {
    padding-left: 14px;
    padding-right: 14px;
  }
  .toolbar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .case-person h1 {
    font-size: 20px;
  }
  .case-person {
    gap: 10px;
  }
  .client-avatar.large {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }
  .balance-amount {
    font-size: 23px;
  }
  .dashboard-facts > div:nth-child(2) .money {
    font-size: 20px;
  }
  .welcome h2 {
    font-size: 18px;
  }
  .welcome img {
    width: 120px;
    opacity: 0.5;
  }
  .tabs button {
    font-size: 10px;
    padding: 8px 11px;
  }
  .shipment-main small .tag {
    font-size: 9px;
  }
  .quantity-strip span {
    font-size: 10px;
  }
  .bottom-nav {
    left: 10px;
    right: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .toolbar,
  .bottom-nav {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  :root {
    --muted: #344c5b;
    --line: #a1b6c3;
  }
  .surface {
    border-color: #a1b6c3;
  }
  .tag {
    border: 1px solid currentColor;
  }
  .toolbar,
  .bottom-nav {
    background: #fff;
    backdrop-filter: none;
  }
  small,
  .quiet-foot,
  .quantity-caption {
    color: #344c5b;
  }
}
@media print {
  .sidebar,
  .toolbar,
  .bottom-nav,
  .head-actions,
  .next,
  .demo-banner,
  .tabs,
  .welcome,
  .catalog-intro,
  .side-note,
  button {
    display: none !important;
  }
  .workarea,
  body,
  main.workspace {
    background: #fff;
    padding: 0;
  }
  .app-shell {
    display: block;
  }
  .case-grid {
    display: block;
  }
  .surface {
    box-shadow: none;
    border-color: #aaa;
    break-inside: avoid;
  }
  .case-content {
    animation: none;
  }
  .case-person h1 {
    font-size: 24px;
  }
  .case-heading {
    margin: 0 0 20px;
  }
  .case-primary,
  .case-secondary {
    display: block;
  }
  .balance-panel {
    display: block;
  }
  .balance-amount {
    margin: 10px 0;
  }
}

/* Review fixes: readable operational hierarchy at phone width. */
[hidden] {
  display: none !important;
}
.case-glance {
  display: none;
}
.signin-story > small {
  position: relative;
  z-index: 1;
  background: #e9f3f5;
  padding: 8px 10px;
  border-radius: 8px;
  align-self: flex-start;
}
@media (max-width: 700px) {
  main.workspace[data-page="today"] {
    display: flex;
    flex-direction: column;
  }
  [data-page="today"] > .head {
    order: 0;
    margin-bottom: 18px;
  }
  [data-page="today"] > .welcome {
    order: 1;
    min-height: 116px;
    padding: 16px 18px;
    margin-bottom: 18px;
  }
  .welcome h2 {
    font-size: 18px;
    max-width: 23ch;
    margin-bottom: 7px;
    line-height: 1.55;
  }
  .welcome p {
    font-size: 12px;
    line-height: 1.8;
    max-width: 29ch;
    margin: 0;
  }
  .welcome-links {
    display: none;
  }
  .welcome img {
    width: 90px;
    height: 85px;
    left: -14px;
    bottom: 0;
    opacity: 0.38;
  }
  [data-page="today"] > .dashboard-grid {
    order: 2;
    margin-bottom: 18px;
  }
  [data-page="today"] > .dashboard-facts {
    order: 3;
  }
  .dashboard-facts .symbol {
    display: flex;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
  }
  .dashboard-facts > div:nth-child(2) > span:not(.symbol) {
    min-width: 0;
  }
  .dashboard-facts small {
    font-size: 12px;
  }
  .case-link-main strong,
  .case-title strong {
    font-size: 14px;
  }
  .case-reason,
  .case-link-main small,
  .case-person p,
  .case-meta,
  .case-meta .tag,
  .quantity-strip span,
  .quantity-caption,
  .shipment-counts,
  .shipment-main small,
  .shipment-main small .tag,
  .next p,
  .quiet-foot,
  .balance-row,
  .activity-list small,
  .checklist li,
  .customer-identity small,
  .case-title small,
  .case-balance small,
  .case-quantity small {
    font-size: 12px;
    line-height: 1.8;
  }
  .next strong {
    font-size: 14px;
  }
  .next p {
    margin-top: 5px;
  }
  .tabs button {
    font-size: 12px;
    min-height: 44px;
  }
  .case-heading {
    margin-bottom: 12px;
  }
  .case-heading .head-actions {
    margin-top: 8px;
  }
  .case-heading .head-actions button {
    min-height: 44px;
    font-size: 12px;
  }
  .case-glance {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 8px;
    margin: 0 0 18px;
    padding: 14px 0;
    border-top: 1px solid #dce6ec;
    border-bottom: 1px solid #dce6ec;
  }
  .case-glance > div {
    display: grid;
    gap: 6px;
    align-content: start;
  }
  .case-glance span {
    font-size: 12px;
    color: #526b78;
  }
  .case-glance strong {
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
  }
  .case-glance .money {
    font-size: 14px;
    letter-spacing: -0.025em;
  }
  .quantity-strip {
    gap: 10px;
  }
  .quantity-strip strong {
    font-size: 25px;
  }
  .surface .list-heading button,
  .mobile-cards td button,
  .surface .surface .inline button {
    font-size: 12px;
    min-height: 44px;
  }
  .toolbar .tools .icon-button,
  .toolbar button.toolbar-search {
    width: 40px;
    min-height: 44px;
  }
  .signin-story > small {
    font-size: 12px;
    max-width: 30ch;
  }
}
