:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f6f9fd;
  --ink: #0f1b2d;
  --muted: #8b9bb1;
  --line: #e5ebf3;
  --accent: #4278df;
  --accent-strong: #2f61cb;
  --accent-soft: #edf4ff;
  --warning: #b96918;
  --warning-soft: #fff0d9;
  --danger: #b13c3c;
  --danger-soft: #ffe6e3;
  --blue: #12a7e2;
  --blue-soft: #eaf7ff;
  --shadow: 0 12px 32px rgba(30, 54, 92, 0.07);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-screen {
  min-height: 100vh;
  background: #eaf1fb;
}

.auth-screen[hidden] {
  display: none;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(430px, 1fr);
  background: #edf4ff;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(145deg, #0c1d45 0%, #163d91 58%, #2047b8 100%);
  background-size: 36px 36px, 36px 36px, auto;
  color: #fff;
}

.auth-logo {
  position: absolute;
  top: 42px;
  left: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-logo-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.88);
}

.auth-logo-mark::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 18px;
  height: 22px;
  border-radius: 10px 10px 12px 12px;
  background: #fff;
  clip-path: polygon(50% 0, 83% 11%, 100% 39%, 82% 100%, 55% 78%, 50% 76%, 45% 78%, 18% 100%, 0 39%, 17% 11%);
}

.auth-logo-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #62d8ff;
}

.auth-logo-mark span {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: #214bd6;
}

.auth-logo-text strong,
.auth-logo-text span {
  display: block;
  letter-spacing: 0;
}

.auth-logo-text strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.1;
}

.auth-logo-text span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.auth-dental-scene {
  position: absolute;
  left: 42px;
  bottom: 44px;
  width: 440px;
  height: 372px;
}

.dental-tooth,
.dental-dentist,
.dental-handpiece,
.dental-mirror {
  position: absolute;
  box-shadow: 0 28px 48px rgba(6, 18, 55, 0.22);
}

.dental-tooth {
  left: 132px;
  bottom: 0;
  width: 176px;
  height: 212px;
  border-radius: 54% 54% 42% 42% / 42% 42% 58% 58%;
  background: #fff7df;
  z-index: 4;
}

.dental-tooth::before,
.dental-tooth::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 72px;
  height: 78px;
  background: #fff7df;
}

.dental-tooth::before {
  left: 24px;
  border-radius: 0 0 44px 30px;
}

.dental-tooth::after {
  right: 24px;
  border-radius: 0 0 30px 44px;
}

.tooth-eye,
.tooth-smile,
.tooth-cheek {
  position: absolute;
  z-index: 2;
}

.tooth-eye {
  top: 76px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #1d2430;
}

.tooth-eye-left {
  left: 62px;
}

.tooth-eye-right {
  right: 62px;
}

.tooth-smile {
  top: 106px;
  left: 67px;
  width: 42px;
  height: 20px;
  border-bottom: 3px solid #1d2430;
  border-radius: 0 0 999px 999px;
}

.tooth-cheek {
  top: 96px;
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 143, 118, 0.65);
}

.tooth-cheek-left {
  left: 36px;
}

.tooth-cheek-right {
  right: 36px;
}

.dental-dentist {
  left: 0;
  bottom: 0;
  width: 206px;
  height: 246px;
  border-radius: 104px 104px 18px 18px;
  background: #ff986b;
  z-index: 3;
}

.dentist-cap {
  position: absolute;
  left: 44px;
  top: -32px;
  width: 126px;
  height: 60px;
  border-radius: 60px 60px 18px 18px;
  background: #48d2e8;
  box-shadow: inset 0 -10px 0 rgba(255, 255, 255, 0.24);
}

.dentist-cap::before {
  content: "+";
  position: absolute;
  left: 50px;
  top: 13px;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.dentist-eye,
.dentist-mask {
  position: absolute;
}

.dentist-eye {
  top: 78px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #1d2430;
}

.dentist-eye-left {
  left: 78px;
}

.dentist-eye-right {
  right: 78px;
}

.dentist-mask {
  left: 58px;
  top: 112px;
  width: 90px;
  height: 45px;
  border-radius: 15px;
  background: #fff;
  box-shadow: inset 0 -9px 0 #d9f4fb;
}

.dentist-mask::before,
.dentist-mask::after {
  content: "";
  position: absolute;
  top: 13px;
  width: 24px;
  height: 2px;
  background: rgba(26, 38, 58, 0.22);
}

.dentist-mask::before {
  left: 16px;
}

.dentist-mask::after {
  right: 16px;
}

.dental-handpiece {
  right: 34px;
  bottom: 78px;
  width: 116px;
  height: 178px;
  border-radius: 58px 58px 18px 18px;
  background: #77e2d2;
  transform: rotate(-16deg);
  z-index: 5;
}

.dental-handpiece::before {
  content: "";
  position: absolute;
  left: 41px;
  top: -60px;
  width: 34px;
  height: 78px;
  border-radius: 18px 18px 10px 10px;
  background: #d9e4ee;
}

.dental-handpiece::after {
  content: "";
  position: absolute;
  left: 31px;
  top: -76px;
  width: 54px;
  height: 24px;
  border-radius: 12px;
  background: #f5f9ff;
}

.dental-handpiece span {
  position: absolute;
  left: 31px;
  top: 73px;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: #1d2430;
}

.dental-handpiece i {
  position: absolute;
  top: 47px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #1d2430;
}

.dental-handpiece i:nth-of-type(1) {
  left: 38px;
}

.dental-handpiece i:nth-of-type(2) {
  right: 38px;
}

.dental-mirror {
  right: 122px;
  bottom: 202px;
  width: 78px;
  height: 78px;
  border: 8px solid #f6d955;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(18deg);
  z-index: 2;
}

.dental-mirror::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -40px;
  width: 72px;
  height: 10px;
  border-radius: 999px;
  background: #f6d955;
  transform: rotate(42deg);
}

.auth-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 52px;
  background: linear-gradient(145deg, #f5f8ff 0%, #e7effb 100%);
}

.auth-card {
  width: min(384px, 100%);
  border: 1px solid rgba(184, 198, 220, 0.58);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 64px rgba(35, 61, 105, 0.12);
  padding: 34px 30px 28px;
}

.auth-kicker,
.auth-subtitle {
  text-align: center;
}

.auth-kicker {
  margin-bottom: 14px;
  color: #2d5bd7;
  font-size: 12px;
  font-weight: 800;
}

.auth-card h1 {
  margin-bottom: 30px;
  color: #111827;
  text-align: center;
  font-size: 26px;
  line-height: 1.22;
}

.auth-subtitle {
  margin-bottom: 28px;
  color: #8590a3;
  font-size: 13px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label,
.admin-inline-form {
  display: grid;
  gap: 8px;
}

.auth-form span,
.admin-inline-form span {
  color: #3d485c;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  outline: 0;
  background: #fbfdff;
  color: #121826;
  padding: 0 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.auth-form input::placeholder {
  color: #a5afbf;
}

.auth-form input:focus {
  border-color: #77a7f6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(65, 134, 241, 0.12);
}

.auth-primary {
  min-height: 47px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(90deg, #2b53d1, #14a7e6);
  box-shadow: 0 16px 30px rgba(36, 104, 221, 0.28);
  font-weight: 800;
}

.auth-primary:hover {
  filter: brightness(1.03);
}

.auth-primary:disabled {
  cursor: progress;
  opacity: 0.72;
}

.auth-footnote {
  margin: 18px 0 0;
  color: #8793a6;
  text-align: center;
  font-size: 12px;
}

.auth-link {
  border: 0;
  background: transparent;
  color: #2d5bd7;
  padding: 0;
  font-weight: 750;
}

.app.is-locked {
  display: none;
}

.app {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100vw;
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 13px 18px;
  border-right: 0;
  background: linear-gradient(180deg, #507fe4 0%, #2388e5 54%, #10a9df 100%);
  display: flex;
  flex-direction: column;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 8px 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-mark {
  position: relative;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  flex: 0 0 auto;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #eef8ff 100%);
  box-shadow: 0 10px 22px rgba(12, 67, 144, 0.18);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 18px;
  height: 21px;
  border-radius: 10px 10px 12px 12px;
  background: linear-gradient(180deg, #2f70dc 0%, #12a7e2 100%);
  clip-path: polygon(50% 0, 83% 11%, 100% 39%, 82% 100%, 55% 78%, 50% 76%, 45% 78%, 18% 100%, 0 39%, 17% 11%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 7px;
  width: 13px;
  height: 8px;
  border-radius: 999px;
  background: #75dcff;
  box-shadow: -5px 2px 0 -2px #75dcff;
}

.brand-mark span {
  position: absolute;
  left: 9px;
  bottom: 7px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #20d889;
  box-shadow: 0 -5px 0 -1px rgba(32, 216, 137, 0.46);
}

.brand strong,
.brand span {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.15;
}

.brand span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.nav-list {
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.nav-item {
  border: 0;
  border-radius: 12px;
  min-height: 43px;
  padding: 0 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
  color: #3d73dc;
  background: #fff;
  box-shadow: 0 12px 24px rgba(19, 85, 169, 0.16);
}

.nav-item.active {
  box-shadow: 0 12px 24px rgba(19, 85, 169, 0.16);
}

.nav-icon {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  line-height: 1;
  color: currentColor;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-foot {
  margin-top: 0;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.sidebar-platform-tools {
  display: grid;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 10px;
}

.sidebar-platform-link {
  position: relative;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 0 28px 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}

.sidebar-platform-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.sidebar-platform-link img {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.sidebar-platform-icon-wrap {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-style: normal;
}

.sidebar-account-dot {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: #20d889;
  box-shadow: 0 0 0 2px rgba(32, 216, 137, 0.14);
  transform: translateY(-50%);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.main {
  padding: 0 20px 28px;
  min-width: 0;
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  margin: 0 -20px 20px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 8px rgba(26, 46, 74, 0.04);
}

.topbar-title {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 17px;
  letter-spacing: 0;
}

h2 {
  font-size: 15px;
  margin-bottom: 0;
}

h3 {
  font-size: 15px;
  margin-bottom: 7px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#currentUserButton {
  cursor: default;
  color: #5d6f86;
  background: #f7f9fc;
  border-color: transparent;
}

.global-search,
.assistant-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  min-width: min(380px, 36vw);
  padding: 0 12px;
  box-shadow: none;
}

.global-search input,
.assistant-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  min-height: 38px;
  color: var(--ink);
}

.primary-action,
.secondary-action,
.ghost-button,
.danger-action {
  min-height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  border: 1px solid transparent;
  font-weight: 650;
  white-space: nowrap;
}

.primary-action {
  color: #fff;
  background: linear-gradient(90deg, #4474dc, #18a7e2);
  box-shadow: 0 10px 20px rgba(51, 116, 219, 0.18);
}

.primary-action:hover {
  filter: brightness(1.03);
}

.secondary-action {
  color: #52657f;
  background: #fff;
  border-color: var(--line);
}

.ghost-button {
  color: var(--accent-strong);
  background: #f0f5ff;
}

.danger-action {
  color: var(--danger);
  background: var(--danger-soft);
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.metric-card,
.panel,
.assistant-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
}

.metric-card span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 11px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.metric-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.metric-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 19px;
  line-height: 1;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(66, 120, 223, 0.14), rgba(18, 167, 226, 0.2));
}

.dashboard-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 16px;
}

.panel {
  padding: 18px;
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 999px;
  vertical-align: 2px;
  background: #547de8;
}

.subtle {
  color: var(--muted);
  font-size: 13px;
}

.due-list,
.rank-list,
.search-results,
.calendar-grid {
  display: grid;
  gap: 10px;
}

.due-item,
.rank-item,
.result-card,
.calendar-card,
.platform-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.due-item,
.rank-item {
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  box-shadow: 0 7px 18px rgba(34, 58, 95, 0.035);
}

.item-title {
  font-weight: 750;
  margin-bottom: 5px;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.pill.overdue {
  color: var(--danger);
  background: var(--danger-soft);
}

.pill.soon {
  color: var(--warning);
  background: var(--warning-soft);
}

.pill.ok {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.pill.unknown,
.pill.neutral {
  color: var(--muted);
  background: var(--surface-soft);
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf2f8;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5c7cff, #16ace3);
}

.expiry-risk-list {
  display: grid;
  gap: 12px;
}

.expiry-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.expiry-stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.expiry-stat-card span,
.expiry-stat-card small {
  color: var(--muted);
  font-size: 12px;
}

.expiry-stat-card strong {
  display: block;
  margin: 7px 0 3px;
  font-size: 24px;
}

.expiry-stat-card.overdue {
  border-color: rgba(177, 60, 60, 0.24);
  background: var(--danger-soft);
}

.expiry-stat-card.soon {
  border-color: rgba(185, 105, 24, 0.24);
  background: var(--warning-soft);
}

.expiry-stat-card.ok {
  border-color: rgba(36, 122, 98, 0.24);
  background: var(--accent-soft);
}

.expiry-risk-rows {
  display: grid;
  gap: 10px;
}

.expiry-risk-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.platform-bars {
  display: grid;
  gap: 12px;
}

.platform-bar {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.platform-bar strong {
  color: var(--ink);
}

.assistant-panel {
  padding: 18px;
}

.assistant-search {
  min-width: 0;
  width: 100%;
  padding-right: 6px;
}

.assistant-search .primary-action {
  min-width: 68px;
}

.assistant-search input {
  min-height: 50px;
  font-size: 16px;
}

.quick-chips {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.quick-chip-head,
.chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-chip-head {
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.quick-chip-head strong {
  color: var(--ink);
}

.frequent-head {
  margin-top: 4px;
}

.quick-chip-clear {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  color: var(--muted);
  font-weight: 650;
}

.quick-chip-clear:hover:not(:disabled) {
  color: var(--danger);
  border-color: rgba(177, 60, 60, 0.35);
}

.quick-chip-clear:disabled {
  cursor: default;
  opacity: 0.55;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  min-height: 32px;
  padding: 0 12px;
  color: var(--muted);
}

.chip:hover {
  color: var(--ink);
  border-color: rgba(66, 120, 223, 0.45);
}

.history-chip {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: rgba(66, 120, 223, 0.24);
}

.chip-empty {
  color: var(--muted);
  font-size: 13px;
}

.result-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.result-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-compare {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  overflow: hidden;
}

.price-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.price-compare-head strong {
  color: var(--ink);
  font-size: 14px;
}

.price-compare-grid {
  display: grid;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(104px, 1.15fr) minmax(104px, 1fr) repeat(3, minmax(82px, 0.85fr)) minmax(78px, 0.75fr);
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row:hover {
  background: #fff;
}

.price-row.best {
  background: rgba(66, 120, 223, 0.08);
}

.price-row.live-best {
  background: rgba(154, 106, 47, 0.1);
}

.price-platform,
.price-cell,
.price-last {
  display: grid;
  gap: 3px;
}

.price-platform span,
.price-cell span,
.price-last span {
  color: var(--muted);
  font-size: 12px;
}

.price-cell strong {
  font-size: 14px;
}

.current-price-cell strong {
  color: var(--accent-strong);
}

.current-price-cell.loading strong {
  color: var(--muted);
  font-weight: 600;
}

.link-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--accent-strong);
  text-decoration: none;
  background: #fff;
  font-weight: 650;
}

.table-head {
  align-items: flex-start;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-tools input,
.table-tools select,
.panel-head input,
.manual-form input,
.manual-form select,
.credential-fields input {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 39px;
  background: #fff;
  padding: 0 11px;
  color: var(--ink);
}

.page-size-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.page-size-control input {
  width: 76px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.page-number-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
}

.page-number {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.page-number:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.page-number.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.page-gap {
  min-width: 22px;
  text-align: center;
  color: var(--muted);
}

.pagination-actions {
  display: flex;
  gap: 8px;
}

.pagination-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 840px;
  background: #fff;
}

.orders-data-table {
  min-width: 1500px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
}

.inventory-block {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.inventory-table {
  min-width: 880px;
}

.purchase-requests-table {
  min-width: 980px;
}

.pending-bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7faf8;
}

.pending-bulk-actions[hidden] {
  display: none;
}

#pendingStockSelectedInfo {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.pending-date-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.pending-date-select input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.inventory-table tr.is-selected td {
  background: #f5fbf8;
}

.inventory-log-table {
  min-width: 980px;
}

.panel-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.compact-head {
  margin-bottom: 10px;
}

.compact-head h3 {
  font-size: 15px;
}

.compact-action {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  box-shadow: none;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

th,
td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: #f7f9fc;
  position: sticky;
  top: 0;
  z-index: 1;
}

tr:hover td {
  background: #f8fbff;
}

td {
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.cell-title {
  font-weight: 750;
}

.item-title-link {
  color: var(--ink);
  text-decoration: none;
}

.item-title-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.product-preview-trigger {
  cursor: zoom-in;
}

.product-preview-popover {
  position: fixed;
  z-index: 4000;
  width: 190px;
  border: 1px solid rgba(151, 166, 191, 0.36);
  border-radius: 12px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 46px rgba(28, 49, 84, 0.2);
  pointer-events: none;
}

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

.product-preview-popover img {
  width: 100%;
  height: 132px;
  border-radius: 8px;
  object-fit: contain;
  background: #f7f9fc;
  display: block;
}

.product-preview-popover.is-status {
  display: grid;
  min-height: 68px;
  place-items: center;
}

.product-preview-popover.is-status img {
  display: none;
}

.product-preview-popover span {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-preview-popover.is-status span {
  margin-top: 0;
  text-align: center;
  white-space: normal;
}

.purchase-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 750;
  background: #fff;
  white-space: nowrap;
}

.purchase-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.cell-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.order-date-cell,
.order-platform-cell,
.quantity-cell,
.money-cell,
.order-batch-cell {
  white-space: nowrap;
}

.order-product-cell {
  min-width: 300px;
}

.order-spec-cell {
  min-width: 270px;
}

.money-cell {
  text-align: right;
}

.import-box {
  display: grid;
  gap: 12px;
}

.import-box input[type="file"] {
  border: 1px dashed rgba(66, 120, 223, 0.46);
  border-radius: 12px;
  background: var(--accent-soft);
  min-height: 62px;
  padding: 18px;
  width: 100%;
}

.import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.manual-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manual-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.manual-form label span {
  padding-left: 2px;
}

.span-2 {
  grid-column: span 2;
}

.calendar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calendar-card {
  padding: 16px;
}

.calendar-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-list {
  display: grid;
  gap: 8px;
}

.calendar-line {
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.calendar-line strong,
.calendar-line span {
  display: block;
}

.calendar-line span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.platform-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.credential-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.credential-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.credential-card-head h3 {
  margin-bottom: 4px;
}

.credential-card-head span:not(.pill) {
  color: var(--muted);
  font-size: 12px;
}

.credential-fields {
  display: grid;
  gap: 10px;
}

.credential-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.credential-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.platform-account-panel {
  padding: 20px;
}

.account-summary-board {
  display: grid;
  grid-template-columns: minmax(210px, 248px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.add-account-button {
  min-height: 112px;
  border: 1px dashed #cbd6e5;
  border-radius: 14px;
  background: #fbfdff;
  color: #6d7e96;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  font-weight: 800;
}

.add-account-button span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #edf2f8;
  color: #7d8ba1;
  font-size: 27px;
  line-height: 1;
}

.add-account-button:hover {
  border-color: #6fa0ff;
  color: var(--accent-strong);
  background: #f8fbff;
}

.account-summary-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.account-summary-card,
.account-summary-empty {
  min-width: 0;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 18px rgba(32, 58, 92, 0.04);
}

.account-summary-card {
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
}

.account-summary-card img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: #f4f7fb;
}

.account-summary-card strong,
.account-summary-card span {
  display: block;
}

.account-summary-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.account-summary-empty {
  color: var(--muted);
  align-content: center;
}

.account-summary-empty strong {
  color: var(--ink);
}

.account-manager {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.account-platform-sidebar {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.account-sidebar-head {
  min-height: 96px;
  border: 1px dashed #cbd6e5;
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #6f8098;
  background: rgba(255, 255, 255, 0.68);
}

.account-sidebar-head::before {
  content: "+";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #7d8ba1;
  background: #edf2f8;
  font-size: 26px;
  line-height: 1;
}

.account-sidebar-head span {
  font-size: 12px;
}

.account-sidebar-head strong {
  color: var(--ink);
  font-size: 14px;
}

.account-platform-list {
  display: grid;
  gap: 10px;
}

.account-platform-button {
  min-width: 0;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 11px;
  text-align: left;
  box-shadow: 0 8px 18px rgba(32, 58, 92, 0.04);
}

.account-platform-button:hover,
.account-platform-button.active {
  border-color: #6fa0ff;
  box-shadow: 0 12px 28px rgba(51, 113, 219, 0.13);
}

.account-platform-button.active {
  background: #f8fbff;
}

.account-platform-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 850;
}

.account-platform-button strong,
.account-platform-button small {
  display: block;
}

.account-platform-button small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot-mini {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #a9b7ca;
}

.status-dot-mini.ok {
  background: #20c98b;
}

.status-dot-mini.soon {
  background: #f2b84b;
}

.account-detail-card {
  min-width: 0;
  min-height: 318px;
  padding: 20px;
  align-content: start;
}

.account-detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-detail-logo {
  flex: 0 0 auto;
}

.account-detail-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.account-detail-fields label {
  min-width: 0;
}

.account-detail-fields input {
  min-height: 48px;
  background: #fbfdff;
}

.account-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.account-toolbar {
  justify-content: flex-end;
  padding-top: 2px;
}

.collect-one-button {
  min-width: 118px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 27, 45, 0.46);
  backdrop-filter: blur(4px);
}

.account-modal {
  width: min(650px, 100%);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(11, 24, 45, 0.28);
  overflow: hidden;
}

.order-entry-modal {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(11, 24, 45, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.account-modal-head {
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-modal-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-modal-head h2 {
  font-size: 17px;
}

.modal-step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #3195ee;
  font-size: 13px;
  font-weight: 800;
}

.modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f7f93;
  font-size: 22px;
}

.modal-close:hover {
  background: #f1f5fb;
}

.account-modal-body {
  padding: 18px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
}

.order-entry-body {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  overflow: auto;
}

.order-entry-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fbfdff;
}

.order-entry-section .panel-head {
  margin-bottom: 14px;
}

.order-entry-section h3 {
  margin: 0;
}

.modal-platform-list {
  display: grid;
  gap: 10px;
}

.modal-platform-option {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px;
  text-align: left;
}

.modal-platform-option.active,
.modal-platform-option:hover {
  border-color: #6fa0ff;
  background: #f8fbff;
}

.modal-platform-option img,
.modal-platform-current img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: #f4f7fb;
}

.modal-platform-option strong,
.modal-platform-option small,
.modal-platform-current strong,
.modal-platform-current span {
  display: block;
}

.modal-platform-option small,
.modal-platform-current span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.modal-account-form {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 13px;
}

.modal-platform-current {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.modal-account-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.modal-account-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  outline: 0;
}

.modal-account-form input:focus {
  border-color: #6fa0ff;
  box-shadow: 0 0 0 4px rgba(66, 120, 223, 0.12);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.collector-status {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.collector-status-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-soft);
}

.collector-status-head span {
  color: var(--muted);
  font-size: 13px;
}

.collector-error {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: #b42318;
  background: #fff4f2;
  font-size: 13px;
}

.collector-log {
  display: grid;
  gap: 0;
  max-height: 220px;
  overflow: auto;
}

.collector-log div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.collector-log span {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.platform-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.platform-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.platform-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, var(--blue), var(--accent));
}

.collector-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.collector-flow div {
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-soft);
  display: grid;
  gap: 12px;
}

.collector-flow strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 20px;
  color: var(--muted);
  background: #fff;
  display: grid;
  gap: 5px;
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
}

@media (max-width: 920px) {
  .auth-shell {
    grid-template-columns: minmax(340px, 0.82fr) minmax(360px, 1fr);
  }

  .auth-panel {
    padding: 34px;
  }

  .auth-dental-scene {
    left: 28px;
    transform: scale(0.86);
    transform-origin: left bottom;
  }

  .app {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .brand div:not(.brand-mark),
  .nav-item span:last-child,
  .sidebar-foot span:last-child,
  .sidebar-platform-link span {
    display: none;
  }

  .brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .nav-item {
    justify-content: center;
  }

  .metric-grid,
  .calendar-grid,
  .platform-cards,
  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-manager {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .account-detail-fields {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .split-grid,
  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .account-summary-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    padding: 24px;
  }

  .auth-card {
    border-radius: 18px;
    padding: 30px 22px 24px;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 0;
  }

  .brand,
  .sidebar-platform-tools,
  .sidebar-foot {
    display: none;
  }

  .nav-list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
  }

  .nav-item span:last-child {
    display: inline;
  }

  .main {
    padding: 18px 12px;
  }

  .topbar,
  .top-actions,
  .result-main {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    display: grid;
    margin: -18px -12px 16px;
    padding: 12px;
  }

  .global-search,
  .assistant-search {
    min-width: 0;
    width: 100%;
  }

  .metric-grid,
  .calendar-grid,
  .platform-cards,
  .credential-grid,
  .expiry-stat-grid,
  .collector-flow,
  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .account-manager {
    grid-template-columns: 1fr;
  }

  .account-summary-board,
  .account-summary-list,
  .account-summary-card {
    grid-template-columns: 1fr;
  }

  .account-platform-sidebar {
    padding: 12px;
  }

  .account-sidebar-head {
    min-height: 74px;
  }

  .account-modal-body {
    grid-template-columns: 1fr;
  }

  .order-entry-body {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .platform-bar {
    grid-template-columns: 1fr;
  }

  .price-row {
    grid-template-columns: 1fr 1fr;
  }

  .price-last {
    grid-column: span 2;
  }

  .expiry-risk-row {
    grid-template-columns: 1fr;
  }

  .manual-form {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }
}
