:root {
  --ink: #061b27;
  --muted: #526d86;
  --line: #b9d8f8;
  --panel: #ffffff;
  --wash: #eef7ff;
  --teal: #05aeea;
  --blue: #1769ff;
  --cyan: #23d7ff;
  --deep: #073278;
  --sky: #dff3ff;
  --glass: rgba(255, 255, 255, 0.92);
  --amber: #c98212;
  --red: #c93642;
  --green: #0a8f68;
  --shadow: 0 18px 56px rgba(12, 78, 170, 0.12);
  --shadow-soft: 0 8px 28px rgba(11, 64, 134, 0.08);
  --radius: 8px;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 0%, rgba(35, 215, 255, 0.18), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(23, 105, 255, 0.1), transparent 24%),
    linear-gradient(180deg, #f8fcff 0%, #edf7ff 58%, #eaf5ff 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(6, 48, 145, 0.78), rgba(6, 48, 145, 0.22)),
    url("assets/catalog/water-lab.png") center / cover;
}

.login-card {
  width: min(520px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 100px rgba(0, 30, 45, 0.3);
}

.login-company {
  width: 260px;
  max-width: 100%;
  display: block;
  margin-bottom: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.06;
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
}

label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.required-mark {
  display: inline-block;
  margin-left: 4px;
  color: #dc2626;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: white;
  outline: none;
}

select,
.department-dropdown {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #075985 50%),
    linear-gradient(135deg, #075985 50%, transparent 50%),
    linear-gradient(180deg, rgba(239, 251, 255, 0.95), rgba(255, 255, 255, 0.98));
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(32, 191, 208, 0.2);
  border-color: var(--teal);
}

#loginForm {
  display: grid;
  gap: 14px;
}

.login-security-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.demo-users {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.demo-users button,
.ghost-button,
.primary-button,
.danger-button,
.icon-button {
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 800;
}

.demo-users button,
.ghost-button {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 14px 34px rgba(3, 85, 168, 0.22);
}

.danger-button {
  color: var(--red);
  border-color: rgba(201, 54, 66, 0.32);
  background: #fff4f5;
}

.as-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.icon-button {
  width: 40px;
  padding: 0;
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.mini-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  padding: 16px 16px 16px 0;
}

.sidebar {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  min-height: 0;
  margin-left: 16px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden auto;
  color: white;
  background:
    linear-gradient(180deg, rgba(35, 116, 255, 0.98), rgba(17, 89, 222, 0.99) 56%, rgba(8, 53, 174, 0.99)),
    url("assets/catalog/water-lab.png") center bottom / cover;
  border: 1px solid rgba(212, 236, 255, 0.24);
  border-radius: 18px;
  box-shadow: 0 26px 72px rgba(23, 105, 255, 0.2);
  isolation: isolate;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 36%),
    radial-gradient(circle at 50% 105%, rgba(35, 215, 255, 0.34), transparent 42%);
  pointer-events: none;
}

.company-card,
.nav,
.user-card {
  position: relative;
  z-index: 1;
}

.company-card {
  padding: 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 46px rgba(4, 37, 118, 0.18);
}

.company-card img {
  width: 100%;
  display: block;
}

.nav {
  display: grid;
  gap: 9px;
}

.nav button {
  position: relative;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  color: white;
  text-align: left;
  padding: 0 15px 0 18px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav button.active,
.nav button:hover {
  color: #0b3ba0;
  background: #f6fbff;
}

.nav button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.user-card {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(5, 36, 108, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.user-card span,
.user-card em {
  color: rgba(239, 255, 252, 0.75);
  font-size: 12px;
  font-style: normal;
}

.main {
  padding: 18px clamp(22px, 2.6vw, 38px) 150px 0;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  min-height: 78px;
}

.eyebrow {
  margin-bottom: 5px;
  color: #496870;
  font-size: 12px;
  font-weight: 900;
}

.topbar-actions,
.row-actions,
.modal-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.section-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 14px;
}

.account-toolbar {
  padding-top: clamp(24px, 2.8vw, 38px);
  margin-bottom: 18px;
}

.brand-banner,
.panel,
.metric-card,
.record-card {
  border: 1px solid rgba(166, 203, 239, 0.86);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--shadow);
}

.brand-banner {
  position: relative;
  min-height: 202px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(100deg, rgba(15, 100, 255, 0.98) 0%, rgba(23, 105, 255, 0.82) 52%, rgba(35, 215, 255, 0.22) 100%),
    url("assets/catalog/filter-rack.jpeg") right center / cover no-repeat;
}

.brand-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 32%),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.32), transparent 22%);
  pointer-events: none;
}

.brand-banner::after {
  content: "HALOSOURCE";
  position: absolute;
  right: 76px;
  top: 52px;
  color: rgba(255, 255, 255, 0.22);
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: 2px;
  pointer-events: none;
}

.brand-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 202px;
  padding: 28px 34px;
}

.brand-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.brand-banner .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.brand-banner h2 {
  font-size: clamp(30px, 3vw, 48px);
  color: white;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  position: relative;
  padding: 18px 18px 17px;
  overflow: hidden;
  border-left: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 255, 0.95));
  box-shadow: var(--shadow-soft);
}

.metric-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 9px 0 3px;
  font-size: 36px;
  line-height: 1;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 16px;
}

.product-proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 14px;
  margin-bottom: 16px;
}

.proof-copy,
.scene-list,
.catalog-hero {
  border: 1px solid rgba(166, 203, 239, 0.86);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--shadow);
}

.proof-copy {
  padding: 22px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.proof-grid div,
.scene-list span {
  border: 1px solid rgba(157, 204, 247, 0.82);
  border-radius: 10px;
  background: linear-gradient(145deg, #f9feff, #eef7ff);
}

.proof-grid div {
  min-height: 78px;
  padding: 13px;
}

.proof-grid strong {
  display: block;
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
}

.proof-grid span,
.scene-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.scene-list {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.scene-visual {
  width: 100%;
  height: 198px;
  object-fit: cover;
  border: 1px solid rgba(0, 176, 240, 0.14);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 255, 0.92));
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-gallery figure {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(0, 176, 240, 0.22);
  border-radius: 16px;
  background: linear-gradient(145deg, #05080d, #111827);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.product-gallery img {
  width: 100%;
  height: 122px;
  display: block;
  object-fit: contain;
}

.product-gallery figcaption {
  margin-top: 7px;
  color: rgba(234, 252, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.scene-list span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #264a6e;
}

.scene-list b,
.service-qr {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.service-qr {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-footer {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
}

.service-footer .service-qr {
  width: min(100vw - 36px, 380px);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 42px rgba(23, 105, 255, 0.24);
}

.service-qr img {
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 8px;
  background: white;
}

.service-qr strong,
.service-qr em {
  display: block;
}

.service-qr strong {
  font-size: 23px;
}

.service-qr em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.catalog-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 52%, rgba(243, 251, 255, 0.9) 100%);
}

.module-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(166, 203, 239, 0.86);
  border-radius: 14px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 56%, rgba(235, 248, 255, 0.88) 100%),
    #ffffff;
  box-shadow: var(--shadow);
}

.module-hero div {
  padding: 22px;
}

.module-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-weight: 700;
}

.module-hero img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 255, 0.92));
}

.catalog-hero img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 255, 0.92));
}

.catalog-hero div {
  padding: 20px 24px 20px 0;
}

.catalog-hero p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 700;
}

.panel {
  padding: 20px;
  backdrop-filter: blur(8px);
}

.account-audit {
  margin-top: 16px;
}

.account-section {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(79, 190, 255, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(233, 250, 255, 0.72), rgba(255, 255, 255, 0.95)),
    repeating-linear-gradient(90deg, rgba(0, 169, 232, 0.06) 0 1px, transparent 1px 120px);
  box-shadow: 0 20px 46px rgba(0, 141, 213, 0.12);
}

.account-section + .account-section {
  margin-top: 26px;
}

.account-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(112, 204, 255, 0.86);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #dff7ff);
  box-shadow: inset 5px 0 0 var(--cyan), 0 12px 28px rgba(0, 141, 213, 0.08);
}

.account-section-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.account-section-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.account-section .record-card {
  border: 1px solid rgba(133, 204, 247, 0.88);
}

.account-section-internal {
  border-color: rgba(0, 139, 212, 0.82);
  background:
    linear-gradient(180deg, rgba(220, 247, 255, 0.82), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top right, rgba(36, 135, 255, 0.12), transparent 38%);
}

.account-section-self {
  border-style: dashed;
}

.compact-button {
  padding: 10px 14px;
  white-space: nowrap;
}

.role-matrix-panel {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(145, 207, 221, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 46px rgba(0, 88, 112, 0.1);
}

.role-matrix-head {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(168, 213, 224, 0.78);
}

.role-matrix-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.role-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
}

.role-permission-card {
  overflow: hidden;
  border: 1px solid rgba(166, 218, 215, 0.86);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfffe);
}

.role-permission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(184, 224, 219, 0.78);
  background: #f2fbf7;
}

.role-permission-head strong,
.role-permission-head span {
  display: block;
}

.role-permission-head strong {
  color: var(--ink);
  font-size: 16px;
}

.role-permission-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.role-permission-head em {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #d8fbef;
  color: #00796c;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.role-permission-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  list-style: none;
}

.role-permission-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.role-permission-card li span {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #009688;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

@media (max-width: 1200px) {
  .role-matrix-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .role-matrix-grid {
    grid-template-columns: 1fr;
  }

  .role-permission-head {
    flex-direction: column;
  }
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(171, 208, 242, 0.9);
}

.panel-head h2 {
  position: relative;
  padding-left: 12px;
}

.panel-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 4px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.todo-panel-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: flex-start;
}

.todo-panel-head h2 {
  white-space: nowrap;
}

.todo-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.todo-filters button {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid rgba(137, 192, 231, 0.82);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(244, 250, 255, 0.9);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.todo-filters button span {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  border-radius: 999px;
  color: #0c5c9f;
  background: #e0f2ff;
  font-size: 11px;
}

.todo-filters button:hover,
.todo-filters button.active {
  border-color: rgba(0, 169, 232, 0.82);
  color: #075c93;
  background: #e8f8ff;
}

.todo-filters button.active span {
  color: #fff;
  background: linear-gradient(135deg, #008ed0, #1769ff);
}

.list {
  display: grid;
  gap: 12px;
}

.record-card {
  padding: 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(248, 252, 255, 0.94));
  box-shadow: var(--shadow-soft);
}

.material-card {
  border-left: 5px solid var(--blue);
}

.resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(157, 204, 247, 0.82);
  border-radius: 10px;
  background: linear-gradient(145deg, #f8ffff, #f0f8ff);
}

.resource-row > span {
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
}

.case-card {
  overflow: hidden;
  border: 1px solid rgba(166, 203, 239, 0.86);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--shadow);
}

.case-image-button {
  width: 100%;
  border: 0;
  padding: 0;
  display: block;
  background: transparent;
  overflow: hidden;
}

.case-image-button img {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.case-card > div {
  padding: 18px;
}

.case-title-button {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 900;
  font-size: 20px;
}

.case-title-button:hover {
  color: var(--blue);
}

.case-card > div > p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.75;
}

.case-card .row-actions {
  margin-top: 14px;
}

.case-detail {
  display: grid;
  gap: 14px;
}

.case-back {
  justify-self: start;
}

.case-detail-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.96fr) minmax(360px, 1.04fr);
  gap: 18px;
  align-items: stretch;
}

.case-detail-media,
.case-detail-copy {
  margin: 0;
  border: 1px solid rgba(166, 203, 239, 0.86);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.case-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.case-detail-copy {
  padding: clamp(22px, 3vw, 34px);
}

.case-detail-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.case-meta-grid div,
.case-notes span {
  border: 1px solid rgba(157, 204, 247, 0.82);
  border-radius: 10px;
  background: linear-gradient(145deg, #fbffff, #f4f8ff);
}

.case-meta-grid div {
  min-height: 76px;
  padding: 12px;
}

.case-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.case-meta-grid strong {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.case-detail-text {
  margin: 0 0 18px;
  color: #274c70;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.9;
}

.case-detail-copy {
  display: grid;
  gap: 16px;
}

.case-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.case-detail-head h2 {
  margin: 6px 0 0;
}

.case-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-labels span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(0, 169, 232, 0.22);
  border-radius: 999px;
  color: #0a5c86;
  background: #eefbff;
  font-size: 12px;
  font-weight: 900;
}

.case-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.case-summary-grid div,
.case-story-card,
.case-focus-grid article {
  border: 1px solid rgba(157, 204, 247, 0.82);
  border-radius: 12px;
  background: linear-gradient(145deg, #fbffff, #f4f8ff);
}

.case-summary-grid div {
  min-height: 82px;
  padding: 12px 13px;
}

.case-summary-grid span,
.case-story-card span,
.case-focus-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.case-summary-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--uiux-navy);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.case-story-card {
  padding: 14px 15px;
}

.case-story-card p {
  margin: 8px 0 0;
  color: #274c70;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.85;
}

.case-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.case-focus-grid article {
  min-height: 92px;
  padding: 13px 14px;
}

.case-focus-grid strong {
  display: block;
  margin-top: 8px;
  color: #0a4770;
  font-size: 14px;
  line-height: 1.45;
}

.case-notes {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.case-notes span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  font-weight: 800;
}

.record-card[data-view],
.metric-card,
.record-card,
.case-card,
.case-image-button img,
.row-actions button,
.demo-users button,
.nav button {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.record-card[data-view]:hover,
.metric-card:hover,
.case-card:hover,
.case-image-button:hover img,
.row-actions button:hover,
.demo-users button:hover,
.nav button:hover {
  transform: translateY(-1px);
}

.record-card[data-view]:hover,
.metric-card:hover,
.case-card:hover {
  border-color: rgba(54, 156, 246, 0.78);
  box-shadow: 0 18px 44px rgba(12, 78, 170, 0.14);
}

.record-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.record-head strong {
  display: block;
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

.detail-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.detail-item {
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid rgba(157, 204, 247, 0.82);
  border-radius: 10px;
  background: linear-gradient(145deg, #fbffff, #f4f8ff);
}

.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-item b {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.product-card strong {
  color: var(--deep);
}

.product-card::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: #eaf4ff;
  color: var(--blue);
}

.tag.pending {
  color: #925804;
  background: #fff2d8;
}

.tag.good {
  color: #087453;
  background: #ddf7eb;
}

.tag.bad {
  color: var(--red);
  background: #ffe8eb;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(171, 208, 242, 0.9);
}

.date-chip {
  color: #006c70;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.timeline-text,
.timeline-item > div:last-child {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-text {
  color: var(--ink);
  line-height: 1.55;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

.subaccount-permission-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(36, 163, 202, 0.24);
  border-radius: 12px;
  background: rgba(237, 249, 253, 0.72);
}

.permission-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(36, 163, 202, 0.2);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.permission-check input {
  width: 17px;
  height: 17px;
  accent-color: #087fd4;
}

.product-lines {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.product-line {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.8fr;
  gap: 10px;
}

.modal {
  width: min(760px, calc(100vw - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 32px 100px rgba(7, 39, 52, 0.28);
}

.modal::backdrop {
  background: rgba(4, 23, 30, 0.42);
  backdrop-filter: blur(3px);
}

.modal form {
  padding: 22px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.modal-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(235, 72, 89, 0.34);
  border-radius: var(--radius);
  color: #b51228;
  background: rgba(255, 239, 242, 0.92);
  font-weight: 800;
}

.duplicate-rule-note {
  padding: 12px 14px;
  border: 1px solid rgba(5, 174, 234, 0.22);
  border-radius: 12px;
  color: #0a4e78;
  background: linear-gradient(135deg, rgba(239, 250, 255, 0.96), rgba(247, 252, 255, 0.96));
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.duplicate-rule-alert {
  padding: 12px 14px;
  border: 1px solid rgba(201, 54, 66, 0.28);
  border-radius: 12px;
  color: #b51228;
  background: rgba(255, 244, 245, 0.94);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.file-preview-link {
  width: 100%;
  border: 0;
  padding: 0;
  color: #005f9f;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.file-preview-link:hover {
  color: #0076d6;
}

.file-action-stack {
  display: inline-grid;
  gap: 7px;
  align-items: start;
}

.file-action-stack .file-preview-link {
  width: auto;
  max-width: 190px;
  overflow-wrap: anywhere;
}

.file-action-stack .mini-button {
  width: fit-content;
  margin-left: 0;
}

.file-preview {
  display: grid;
  gap: 14px;
}

.file-preview img,
.file-preview iframe {
  width: 100%;
  min-height: 420px;
  max-height: 70vh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
  object-fit: contain;
}

.file-preview iframe {
  height: 68vh;
}

.file-open-card {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 176, 240, 0.14), transparent 34%),
    linear-gradient(145deg, #ffffff, #eefaff);
}

.file-open-card strong {
  color: var(--deep);
  font-size: 22px;
}

.file-open-card p {
  max-width: 420px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.file-preview .as-button {
  justify-self: end;
}

.empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

.invoice-rule-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: 22px;
  align-items: center;
  margin: 0 0 22px;
  padding: 26px 30px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 253, 255, 0.88));
  box-shadow: 0 20px 52px rgba(15, 118, 160, 0.12);
}

.invoice-rule-card h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.04em;
}

.invoice-rule-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.invoice-form-note {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 169, 232, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(241, 251, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.invoice-form-note strong {
  color: var(--ink);
  font-size: 15px;
}

.invoice-form-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .invoice-rule-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 40;
  transform: translate(-50%, -42%) scale(0.96);
  opacity: 0;
  max-width: 360px;
  width: max-content;
  padding: 14px 18px;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(135deg, #064a7d, #008ca6);
  box-shadow: 0 22px 70px rgba(6, 74, 125, 0.3);
  pointer-events: none;
  text-align: center;
  font-weight: 800;
  transition: 180ms ease;
}

.toast.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .sidebar {
    position: static;
    height: auto;
    min-height: auto;
    margin-left: 0;
    border-radius: 0;
    padding: 12px;
    gap: 10px;
  }

  .company-card {
    padding: 9px;
  }

  .nav {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav button {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .user-card {
    margin-top: 0;
  }

  .main {
    padding: 22px;
  }

  .grid,
  .product-proof,
  .proof-grid,
  .scene-list,
  .catalog-hero,
  .module-hero,
  .case-grid,
  .case-detail-layout,
  .case-meta-grid,
  .metrics,
  .filters,
  .detail-row {
    grid-template-columns: 1fr;
  }

  .case-detail-media img {
    min-height: 320px;
  }

  .resource-row {
    align-items: stretch;
    flex-direction: column;
  }

  .service-footer {
    right: 14px;
    bottom: 14px;
  }

  .service-footer .service-qr {
    width: min(100vw - 28px, 360px);
  }

  .topbar,
  .brand-banner {
    align-items: flex-start;
  }

  .catalog-hero div {
    padding: 0 18px 18px;
  }
}

/* Final login override: keep only the compact sign-in card after removing the brand panel. */
#loginView .login-panel {
  width: min(500px, 100%);
  display: block;
  grid-template-columns: none;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
}

#loginView .login-panel::before {
  background: linear-gradient(90deg, var(--ppt-cyan) 0 7px, transparent 7px);
}

#loginView .login-card {
  min-height: auto;
  padding: clamp(32px, 4vw, 48px);
  border-left: 0;
  border-top: 0;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 251, 255, 0.98)),
    #ffffff;
}

#loginView .login-card-logo {
  width: min(230px, 76%);
  display: block;
  margin: 0 0 26px;
}

@media (max-width: 520px) {
  #loginView .login-panel,
  #loginView .login-card {
    border-radius: 22px;
  }
}

/* UIUX Pro Max final lock: keep the whole system in one compact enterprise layout. */
:root {
  --uiux-cyan: #00a9e8;
  --uiux-blue: #0052cc;
  --uiux-navy: #06245f;
  --uiux-ink: #102336;
  --uiux-muted: #526b82;
  --uiux-line: #bce8f5;
  --uiux-card: #ffffff;
  --uiux-soft: #f0fbff;
  --uiux-shadow: 0 12px 30px rgba(5, 54, 100, 0.09);
}

body {
  color: var(--uiux-ink);
  background:
    linear-gradient(90deg, rgba(0, 169, 232, 0.05) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, rgba(0, 82, 204, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(135deg, #ffffff 0%, #f7fbfd 48%, #eef8fc 100%);
}

body::before {
  background:
    linear-gradient(126deg, transparent 0 64%, rgba(0, 169, 232, 0.1) 64% 70%, transparent 70%),
    radial-gradient(circle at 90% 4%, rgba(0, 169, 232, 0.16), transparent 26%);
  mask-image: linear-gradient(180deg, black, transparent 88%);
}

.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 18px 14px 0;
}

.sidebar {
  top: 14px;
  height: calc(100vh - 28px);
  margin-left: 14px;
  padding: 14px;
  gap: 14px;
  color: var(--uiux-navy);
  border: 1px solid rgba(0, 169, 232, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 248, 255, 0.95)),
    linear-gradient(90deg, var(--uiux-cyan) 0 5px, transparent 5px);
  box-shadow: var(--uiux-shadow);
}

.sidebar::before {
  background:
    linear-gradient(180deg, rgba(0, 169, 232, 0.08), transparent 44%),
    radial-gradient(circle at 0 96%, rgba(0, 82, 204, 0.08), transparent 35%);
}

.company-card {
  padding: 12px;
  border: 1px solid rgba(0, 169, 232, 0.18);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.company-card img {
  height: 62px;
  object-fit: contain;
}

.nav {
  gap: 7px;
}

.nav button {
  min-height: 43px;
  padding: 0 14px;
  justify-content: flex-start;
  color: #0c3d68;
  border: 1px solid rgba(0, 169, 232, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  font-size: 14px;
}

.nav button.active,
.nav button:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--uiux-cyan), var(--uiux-blue));
  box-shadow: 0 10px 22px rgba(0, 82, 204, 0.18);
}

.nav button.active::before {
  display: none;
}

.user-card {
  gap: 7px;
  padding: 14px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, #0588bd, #0052cc);
  box-shadow: 0 14px 28px rgba(0, 82, 204, 0.2);
}

.user-card span,
.user-card em {
  color: rgba(255, 255, 255, 0.76);
}

.user-card strong {
  color: #ffffff;
  font-size: 18px;
}

.user-card .ghost-button {
  min-height: 40px;
  color: var(--uiux-navy);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.92);
}

.main {
  padding: 16px clamp(18px, 2vw, 30px) 42px 0;
}

.topbar {
  min-height: 58px;
  margin-bottom: 12px;
  padding: 0;
}

.topbar h1 {
  color: #101820;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.eyebrow {
  color: #087095;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button,
.mini-button,
.compact-button {
  min-height: 40px;
  border-radius: 10px;
}

.primary-button {
  background: linear-gradient(90deg, var(--uiux-cyan), var(--uiux-blue));
  box-shadow: 0 10px 20px rgba(0, 82, 204, 0.16);
}

.ghost-button {
  color: var(--uiux-navy);
  border-color: rgba(0, 169, 232, 0.28);
  background: #ffffff;
}

.dashboard-workbench {
  gap: 12px;
}

.dashboard-workbench .brand-banner {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 16px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  color: var(--uiux-ink);
  border: 1px solid rgba(0, 169, 232, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(112deg, #ffffff 0%, #ffffff 58%, rgba(232, 248, 255, 0.9) 100%),
    #ffffff;
  box-shadow: var(--uiux-shadow);
}

.dashboard-workbench .brand-banner::before {
  background:
    linear-gradient(90deg, var(--uiux-cyan) 0 6px, transparent 6px),
    linear-gradient(135deg, transparent 0 80%, rgba(0, 169, 232, 0.12) 80% 88%, transparent 88%);
}

.dashboard-workbench .brand-banner::after {
  content: "HALOSOURCE";
  right: 28px;
  top: 20px;
  color: rgba(0, 82, 204, 0.05);
  font-size: clamp(46px, 6vw, 94px);
  letter-spacing: -0.06em;
}

.dashboard-workbench .brand-copy {
  min-height: 0;
  max-width: none;
  padding: 28px 34px;
  align-content: center;
}

.dashboard-workbench .brand-mark {
  margin-bottom: 14px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  box-shadow: none;
}

.dashboard-workbench .brand-mark img {
  width: 42px;
  height: 42px;
}

.dashboard-workbench .brand-copy h2 {
  max-width: 720px;
  color: #101820;
  font-size: clamp(34px, 3.7vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.dashboard-workbench .brand-copy h2 span {
  display: block;
  margin-bottom: 5px;
  color: var(--uiux-cyan);
  font-size: 0.44em;
  letter-spacing: 0.02em;
}

.dashboard-workbench .brand-copy p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 10px;
  color: #284156;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.brochure-points {
  gap: 8px;
  margin-top: 16px;
}

.brochure-points span,
.profile-points span {
  min-height: 30px;
  padding: 0 12px;
  border-color: rgba(0, 169, 232, 0.3);
  border-radius: 999px;
  background: #edfaff;
  color: #063d69;
  font-size: 13px;
}

.hero-product-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 0;
  margin: 16px 16px 16px 0;
  padding: 16px;
  border: 1px solid rgba(0, 169, 232, 0.2);
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 169, 232, 0.14), transparent 38%),
    linear-gradient(180deg, #ffffff, #f3fbff);
  box-shadow: none;
}

.hero-product-card div {
  padding: 0;
}

.hero-product-head {
  display: grid;
  gap: 4px;
}

.hero-product-head span,
.hero-product-card span {
  color: #087095;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.hero-product-head strong,
.hero-product-card strong {
  color: var(--uiux-navy);
  font-size: 17px;
  line-height: 1.25;
}

.hero-product-head em,
.hero-product-card em {
  color: var(--uiux-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.hero-product-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
}

.hero-product-visuals img,
.hero-product-card img {
  width: 100%;
  height: 128px;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  border: 1px solid rgba(0, 169, 232, 0.16);
  border-radius: 12px;
  background: #07111d;
}

.hero-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.hero-flow span {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #eaf9ff, #ffffff);
  color: #0a4770;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.dashboard-workbench .company-profile {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 169, 232, 0.18);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: var(--uiux-shadow);
}

.dashboard-workbench .company-profile img {
  width: 100%;
  height: 72px;
  padding: 10px;
  object-fit: contain;
  border-radius: 11px;
  background: #ffffff;
}

.dashboard-workbench .company-profile h2 {
  margin-bottom: 4px;
  color: var(--uiux-navy);
  font-size: clamp(20px, 1.45vw, 25px);
  line-height: 1.1;
}

.dashboard-workbench .company-profile p:not(.eyebrow) {
  max-width: 1040px;
  color: #43596b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.dashboard-workbench .profile-points {
  gap: 7px;
  margin-top: 8px;
}

.metrics,
.dashboard-workbench .metrics {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.metric-card,
.dashboard-workbench .metric-card {
  min-height: 88px;
  padding: 13px 16px;
  border: 1px solid rgba(0, 169, 232, 0.2);
  border-left: 5px solid var(--uiux-cyan);
  border-top: 1px solid rgba(0, 169, 232, 0.2);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: var(--uiux-shadow);
}

.metric-card::before {
  content: none;
}

.metric-card span {
  color: var(--uiux-muted);
  font-size: 12px;
}

.metric-card strong {
  margin: 6px 0 2px;
  color: var(--uiux-blue);
  font-size: clamp(25px, 2vw, 32px);
}

.dashboard-main-grid {
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 12px;
}

.dashboard-flow {
  gap: 12px;
}

.panel,
.record-card,
.proof-copy,
.scene-list,
.catalog-hero,
.module-hero,
.case-card,
.case-detail-media,
.case-detail-copy,
.account-section,
.role-matrix-panel {
  border: 1px solid rgba(0, 169, 232, 0.18);
  border-radius: 15px;
  background: var(--uiux-card);
  box-shadow: var(--uiux-shadow);
}

.panel {
  padding: 16px;
  backdrop-filter: none;
}

.panel-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 169, 232, 0.18);
}

.panel-head h2,
.role-matrix-head h2 {
  color: var(--uiux-navy);
  font-size: 22px;
}

.record-card {
  padding: 16px;
  border-left: 5px solid var(--uiux-cyan);
}

.record-head strong,
.detail-item b,
.resource-row > span {
  color: var(--uiux-navy);
}

.muted {
  color: var(--uiux-muted);
}

.detail-row {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.detail-item,
.resource-row,
.case-meta-grid div,
.case-notes span,
.renewal-detail > div,
.renewal-detail label {
  border: 1px solid rgba(0, 169, 232, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7fcff);
}

.tag {
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
}

.module-hero,
.catalog-hero {
  min-height: 148px;
  margin-bottom: 14px;
  background: linear-gradient(105deg, #ffffff 0%, #ffffff 58%, #edfaff 100%);
}

.module-hero {
  grid-template-columns: minmax(0, 1fr) 240px;
}

.catalog-hero {
  grid-template-columns: 160px minmax(0, 1fr);
}

.module-hero div,
.catalog-hero div {
  padding: 20px 22px;
}

.module-hero h2,
.catalog-hero h2 {
  color: var(--uiux-navy);
  font-size: clamp(27px, 2.2vw, 36px);
}

.module-hero img,
.catalog-hero img,
.catalog-hero .catalog-hero-logo {
  width: 100%;
  height: 100%;
  min-height: 148px;
  max-height: 172px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.catalog-hero .catalog-hero-logo {
  padding: 20px;
  object-fit: contain;
}

.case-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.case-image-button img {
  height: 220px;
  object-fit: cover;
}

.case-card > div {
  padding: 16px;
}

.account-toolbar,
.filing-toolbar {
  padding-top: 0;
  margin: 0 0 14px;
}

.account-section {
  margin-top: 14px;
  padding: 16px;
  background: #ffffff;
}

.account-section-title {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 169, 232, 0.18);
  border-radius: 12px;
  background: linear-gradient(90deg, #f0fbff, #ffffff);
  box-shadow: inset 4px 0 0 var(--uiux-cyan);
}

.settings-record-card {
  padding: 16px;
  border-left-width: 5px;
  background: #ffffff;
}

input,
select,
textarea,
.department-dropdown {
  min-height: 44px;
  border-color: rgba(0, 169, 232, 0.28);
  border-radius: 10px;
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus,
.department-dropdown:focus {
  outline: 3px solid rgba(0, 169, 232, 0.18);
  border-color: var(--uiux-cyan);
}

.modal {
  border-radius: 18px;
}

.modal form {
  padding: 22px;
  background: #ffffff;
}

.login-screen {
  background:
    linear-gradient(108deg, rgba(6, 36, 95, 0.9), rgba(0, 169, 232, 0.42)),
    url("assets/catalog/water-lab.png") center / cover no-repeat;
}

#loginView .login-panel,
.login-panel {
  width: min(520px, 100%);
  display: block;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(6, 36, 95, 0.28);
}

#loginView .login-card,
.login-card {
  min-height: auto;
  padding: clamp(30px, 4vw, 46px);
  border-radius: 20px;
  background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1280px) {
  .dashboard-workbench .brand-banner,
  .dashboard-main-grid,
  .dashboard-main-grid .product-proof {
    grid-template-columns: 1fr;
  }

  .hero-product-card {
    margin: 0 16px 16px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .sidebar {
    position: static;
    height: auto;
    margin: 0;
    border-radius: 0 0 18px 18px;
  }

  .main {
    padding: 18px;
  }

  .metrics,
  .dashboard-flow,
  .module-hero,
  .catalog-hero,
  .case-detail-layout,
  .renewal-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-workbench .brand-copy {
    padding: 24px 20px;
  }

  .hero-product-card {
    margin: 0 12px 12px;
  }

  .hero-product-visuals,
  .hero-flow,
  .dashboard-main-grid .proof-grid,
  .detail-row {
    grid-template-columns: 1fr;
  }

  .record-head,
  .resource-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Targeted workflow additions; existing page layout and visual language stay unchanged. */
.filing-products-block {
  display: grid;
  gap: 10px;
}

.filing-products-heading,
.filing-product-line {
  display: flex;
  align-items: end;
  gap: 10px;
}

.filing-products-heading {
  align-items: center;
  justify-content: space-between;
}

.filing-product-line > label {
  flex: 1 1 0;
}

.filing-product-line > button {
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.import-preview-summary,
.import-preview-errors,
.import-preview-list,
.batch-installation-list {
  display: grid;
  gap: 12px;
}

.import-preview-summary,
.import-preview-errors,
.import-preview-item,
.batch-installation-item {
  padding: 14px;
  border: 1px solid rgba(42, 126, 193, 0.18);
  border-radius: 14px;
  background: rgba(248, 253, 255, 0.92);
}

.import-preview-summary span,
.import-preview-errors span,
.import-preview-item > div > span {
  display: block;
  margin-top: 5px;
  color: #557187;
  font-size: 12px;
}

.import-preview-errors {
  border-color: rgba(235, 91, 105, 0.28);
  background: #fff8f9;
}

.import-preview-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.5fr);
  gap: 14px;
  align-items: end;
}

.batch-installation-item > strong {
  display: block;
  margin-bottom: 12px;
}

@media (max-width: 760px) {
  .filing-product-line,
  .import-preview-item {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filing-product-line > button {
    justify-self: start;
  }
}

/* Hospital directory: read-only status lookup for approved business roles. */
.hospital-directory-workspace {
  display: grid;
  gap: 14px;
}

.hospital-search-panel {
  display: grid;
  gap: 18px;
}

.hospital-search-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hospital-search-form {
  display: grid;
  gap: 8px;
  max-width: 920px;
}

.hospital-search-control {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.hospital-search-control > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.hospital-search-input-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(170px, 220px) auto;
  align-items: end;
  gap: 10px;
}

.hospital-search-control input,
.hospital-search-control select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
}

.hospital-search-input-row button {
  min-width: 96px;
  min-height: 46px;
}

.hospital-search-form > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hospital-search-results {
  display: grid;
  gap: 10px;
}

.hospital-search-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.hospital-search-result-head strong {
  color: var(--ink);
  font-size: 16px;
}

.hospital-search-result-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hospital-search-state {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed rgba(166, 203, 239, 0.9);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-align: center;
}

.hospital-search-state.error {
  color: #b42331;
  border-color: rgba(235, 91, 105, 0.38);
  background: #fff7f8;
}

.hospital-directory-table {
  min-width: 620px;
}

.hospital-directory-table th:nth-child(1) {
  width: 45%;
}

.hospital-directory-table th:nth-child(2) {
  width: 35%;
}

.hospital-directory-table th:nth-child(3) {
  width: 20%;
}

.hospital-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.hospital-status.reported {
  color: #9a5a00;
  border: 1px solid rgba(217, 151, 42, 0.34);
  background: #fff6df;
}

.hospital-status.customer {
  color: #075985;
  border: 1px solid rgba(14, 165, 233, 0.3);
  background: #effaff;
}

@media (max-width: 720px) {
  .hospital-search-input-row,
  .hospital-search-result-head {
    align-items: stretch;
  }

  .hospital-search-input-row {
    grid-template-columns: 1fr;
  }

  .hospital-search-input-row button {
    width: 100%;
  }
}

:root {
  --brand-cyan: #00a9e8;
  --brand-blue: #0052cc;
  --brand-navy: #06245f;
  --brand-ink: #102336;
  --brand-muted: #5b7186;
  --brand-bg: #f4f9fc;
  --brand-card: #ffffff;
  --brand-soft: #e9f8ff;
  --brand-line: #bce8f5;
  --brand-green: #0f8a65;
  --brand-warning: #a66a13;
  --brand-danger: #b4232c;
  --brand-shadow: 0 14px 34px rgba(5, 54, 100, 0.1);
  --brand-shadow-soft: 0 8px 20px rgba(5, 54, 100, 0.075);
  --brand-radius: 16px;
  --brand-radius-sm: 10px;
}

body {
  color: var(--brand-ink);
  background:
    linear-gradient(90deg, rgba(0, 169, 232, 0.055) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, rgba(0, 82, 204, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(135deg, #ffffff 0%, #f6fbfd 46%, #eef8fc 100%);
}

body::before {
  background:
    linear-gradient(126deg, transparent 0 64%, rgba(0, 169, 232, 0.1) 64% 70%, transparent 70%),
    radial-gradient(circle at 88% 6%, rgba(0, 169, 232, 0.16), transparent 26%);
  mask-image: linear-gradient(180deg, black, transparent 86%);
}

.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 18px 14px 0;
}

.sidebar {
  top: 14px;
  height: calc(100vh - 28px);
  margin-left: 14px;
  padding: 14px;
  gap: 14px;
  color: var(--brand-navy);
  border: 1px solid rgba(0, 169, 232, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(232, 248, 255, 0.94)),
    linear-gradient(90deg, var(--brand-cyan) 0 5px, transparent 5px);
  box-shadow: var(--brand-shadow);
}

.sidebar::before {
  background:
    linear-gradient(180deg, rgba(0, 169, 232, 0.1), transparent 42%),
    radial-gradient(circle at 0 96%, rgba(0, 82, 204, 0.08), transparent 35%);
}

.company-card {
  padding: 12px;
  border: 1px solid rgba(0, 169, 232, 0.18);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.company-card img {
  height: 62px;
  object-fit: contain;
}

.nav {
  gap: 7px;
}

.nav button {
  min-height: 43px;
  padding: 0 14px;
  justify-content: flex-start;
  color: #0c3d68;
  border: 1px solid rgba(0, 169, 232, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  font-size: 14px;
}

.nav button.active,
.nav button:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
  box-shadow: 0 10px 22px rgba(0, 82, 204, 0.18);
}

.nav button.active::before {
  display: none;
}

.user-card {
  gap: 7px;
  padding: 14px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, #0588bd, #0052cc);
  box-shadow: 0 14px 28px rgba(0, 82, 204, 0.2);
}

.user-card span,
.user-card em {
  color: rgba(255, 255, 255, 0.76);
}

.user-card strong {
  color: #ffffff;
  font-size: 18px;
}

.user-card .ghost-button {
  min-height: 40px;
  color: var(--brand-navy);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.92);
}

.main {
  padding: 16px clamp(18px, 2vw, 30px) 42px 0;
}

.topbar {
  min-height: 64px;
  margin-bottom: 14px;
  padding: 0;
}

.topbar h1 {
  color: var(--brand-navy);
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.eyebrow {
  color: #087095;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button,
.mini-button,
.compact-button {
  min-height: 40px;
  border-radius: 10px;
}

.primary-button {
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
  box-shadow: 0 10px 20px rgba(0, 82, 204, 0.16);
}

.ghost-button {
  color: var(--brand-navy);
  border-color: rgba(0, 169, 232, 0.28);
  background: #ffffff;
}

.danger-button {
  color: var(--brand-danger);
  border-color: rgba(180, 35, 44, 0.28);
  background: #fff5f5;
}

.dashboard-workbench {
  gap: 14px;
}

.dashboard-workbench .brand-banner {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 169, 232, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(112deg, #ffffff 0%, #ffffff 52%, rgba(232, 248, 255, 0.92) 100%),
    #ffffff;
  box-shadow: var(--brand-shadow);
}

.dashboard-workbench .brand-banner::before {
  background:
    linear-gradient(90deg, var(--brand-cyan) 0 6px, transparent 6px),
    linear-gradient(135deg, transparent 0 78%, rgba(0, 169, 232, 0.13) 78% 86%, transparent 86%);
}

.dashboard-workbench .brand-banner::after {
  content: "HALOSOURCE";
  right: 36px;
  top: 28px;
  color: rgba(0, 82, 204, 0.055);
  font-size: clamp(54px, 7vw, 112px);
  letter-spacing: -0.06em;
}

.dashboard-workbench .brand-copy {
  padding: clamp(28px, 3.1vw, 48px) clamp(26px, 3vw, 42px);
}

.dashboard-workbench .brand-mark {
  margin-bottom: 18px;
  border-radius: 14px;
  box-shadow: none;
}

.dashboard-workbench .brand-mark img {
  width: 44px;
  height: 44px;
}

.dashboard-workbench .brand-copy h2 {
  max-width: 720px;
  color: #101820;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.02;
}

.dashboard-workbench .brand-copy h2 span {
  color: var(--brand-cyan);
  font-size: 0.44em;
}

.dashboard-workbench .brand-copy p:not(.eyebrow) {
  max-width: 720px;
  color: #284156;
  font-size: 16px;
  font-weight: 800;
}

.brochure-points {
  margin-top: 18px;
}

.brochure-points span,
.profile-points span {
  min-height: 32px;
  border-color: rgba(0, 169, 232, 0.3);
  border-radius: 999px;
  background: #edfaff;
  color: #063d69;
  font-size: 13px;
}

.hero-product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: 0;
  margin: 18px 18px 18px 0;
  padding: 18px;
  border: 1px solid rgba(0, 169, 232, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 169, 232, 0.16), transparent 38%),
    linear-gradient(180deg, #ffffff, #f1fbff);
  box-shadow: none;
}

.hero-product-head {
  display: grid;
  gap: 4px;
}

.hero-product-head span {
  color: #087095;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.hero-product-head strong {
  color: var(--brand-navy);
  font-size: 18px;
}

.hero-product-head em {
  color: var(--brand-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.hero-product-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.hero-product-visuals img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  padding: 14px;
  border: 1px solid rgba(0, 169, 232, 0.16);
  border-radius: 14px;
  background: #07111d;
}

.hero-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.hero-flow span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #eaf9ff, #ffffff);
  color: #0a4770;
  font-size: 12px;
  font-weight: 950;
}

.dashboard-workbench .company-profile {
  grid-template-columns: 128px minmax(0, 1fr);
  padding: 14px 16px;
  border: 1px solid rgba(0, 169, 232, 0.18);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--brand-shadow-soft);
}

.dashboard-workbench .company-profile img {
  height: 80px;
  border-radius: 12px;
  background: #ffffff;
}

.dashboard-workbench .company-profile h2 {
  color: var(--brand-navy);
  font-size: clamp(20px, 1.6vw, 27px);
}

.dashboard-workbench .company-profile p:not(.eyebrow) {
  color: #43596b;
  font-size: 14px;
  line-height: 1.55;
}

.metrics {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.dashboard-workbench .metric-card,
.metric-card {
  min-height: 102px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 169, 232, 0.2);
  border-left: 5px solid var(--brand-cyan);
  border-top: 1px solid rgba(0, 169, 232, 0.2);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--brand-shadow-soft);
}

.metric-card::before {
  content: none;
}

.metric-card span {
  color: var(--brand-muted);
  font-size: 12px;
}

.metric-card strong {
  color: var(--brand-blue);
  font-size: clamp(28px, 2.2vw, 36px);
}

.dashboard-main-grid {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 14px;
}

.dashboard-flow {
  gap: 14px;
}

.panel,
.record-card,
.proof-copy,
.scene-list,
.catalog-hero,
.module-hero,
.case-card,
.case-detail-media,
.case-detail-copy,
.account-section,
.role-matrix-panel {
  border: 1px solid rgba(0, 169, 232, 0.18);
  border-radius: var(--brand-radius);
  background: var(--brand-card);
  box-shadow: var(--brand-shadow-soft);
}

.panel {
  padding: 18px;
  backdrop-filter: none;
}

.panel-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 169, 232, 0.18);
}

.panel-head h2,
.role-matrix-head h2 {
  color: var(--brand-navy);
  font-size: 22px;
}

.panel-head h2::before {
  background: var(--brand-cyan);
}

.list {
  gap: 12px;
}

.record-card {
  padding: 18px;
  border-left: 5px solid var(--brand-cyan);
}

.record-card[data-view],
.case-card,
.metric-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.record-card[data-view]:hover,
.case-card:hover,
.metric-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 82, 204, 0.28);
  box-shadow: var(--brand-shadow);
}

.record-head {
  align-items: flex-start;
  gap: 16px;
}

.record-head strong,
.detail-item b,
.resource-row > span {
  color: var(--brand-navy);
}

.muted {
  color: var(--brand-muted);
}

.detail-row {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.detail-item,
.resource-row,
.case-meta-grid div,
.case-notes span,
.renewal-detail > div,
.renewal-detail label {
  border: 1px solid rgba(0, 169, 232, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7fcff);
}

.detail-item {
  min-height: 64px;
  padding: 12px;
}

.detail-item span,
.renewal-detail span {
  color: #087095;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.tag {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(0, 82, 204, 0.08);
  border-radius: 999px;
  color: #075985;
  background: #e6f8ff;
  font-size: 13px;
}

.tag.pending {
  color: var(--brand-warning);
  background: #fff4dc;
}

.tag.good {
  color: var(--brand-green);
  background: #e5f8ef;
}

.tag.bad {
  color: var(--brand-danger);
  background: #fff0f0;
}

.dashboard-main-grid .product-proof {
  gap: 12px;
}

.dashboard-main-grid .proof-copy {
  padding: 18px;
}

.dashboard-main-grid .proof-copy h2 {
  color: var(--brand-navy);
  font-size: 22px;
}

.dashboard-main-grid .proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-main-grid .proof-grid div {
  min-height: 78px;
  border-radius: 12px;
}

.dashboard-main-grid .proof-grid strong {
  color: var(--brand-blue);
  font-size: clamp(18px, 1.35vw, 23px);
}

.dashboard-main-grid .tech-grid div {
  min-height: 36px;
  border-radius: 999px;
}

.dashboard-main-grid .scene-list {
  padding: 12px;
}

.dashboard-main-grid .scene-visual {
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
}

.dashboard-main-grid .scene-list span {
  min-height: 38px;
  border-radius: 10px;
}

.timeline-item {
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 11px 0;
}

.date-chip {
  color: #087095;
  font-weight: 950;
}

.module-hero,
.catalog-hero {
  min-height: 150px;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 0;
  margin-bottom: 16px;
  overflow: hidden;
  background:
    linear-gradient(105deg, #ffffff 0%, #ffffff 58%, #edfaff 100%);
}

.catalog-hero {
  grid-template-columns: 170px minmax(0, 1fr);
}

.module-hero div,
.catalog-hero div {
  padding: 22px;
}

.module-hero h2,
.catalog-hero h2 {
  color: var(--brand-navy);
  font-size: clamp(28px, 2.4vw, 38px);
}

.module-hero p:not(.eyebrow),
.catalog-hero p:not(.eyebrow) {
  color: #40586c;
  line-height: 1.65;
}

.module-hero img,
.catalog-hero img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.catalog-hero .catalog-hero-logo {
  height: 100%;
  min-height: 150px;
  padding: 22px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.case-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.case-card {
  overflow: hidden;
  box-shadow: var(--brand-shadow-soft);
}

.case-image-button img {
  height: 220px;
  object-fit: cover;
}

.case-card > div {
  padding: 18px;
}

.case-title-button {
  color: var(--brand-navy);
  font-size: 20px;
}

.case-detail-layout {
  grid-template-columns: minmax(340px, 0.88fr) minmax(360px, 1.12fr);
  gap: 16px;
}

.case-detail-media img {
  min-height: 430px;
}

.account-toolbar,
.filing-toolbar {
  padding-top: 0;
  margin: 0 0 14px;
}

.account-section {
  margin-top: 14px;
  padding: 16px;
  background: #ffffff;
}

.account-section-title {
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(0, 169, 232, 0.18);
  border-radius: 12px;
  background: linear-gradient(90deg, #f0fbff, #ffffff);
  box-shadow: inset 4px 0 0 var(--brand-cyan);
}

.account-section-title h3 {
  color: var(--brand-navy);
}

.account-section-internal {
  background:
    linear-gradient(180deg, #ffffff, #f6fcff),
    #ffffff;
}

.role-matrix-panel {
  margin-top: 16px;
  padding: 18px;
}

.role-matrix-grid {
  gap: 12px;
}

.role-permission-card {
  border-color: rgba(0, 169, 232, 0.18);
  border-radius: 14px;
  background: #ffffff;
}

.settings-record-card {
  padding: 16px;
  border-left-width: 5px;
  background: #ffffff;
}

.department-dropdown,
input,
select,
textarea {
  min-height: 44px;
  border-color: rgba(0, 169, 232, 0.28);
  border-radius: 10px;
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus,
.department-dropdown:focus {
  outline: 3px solid rgba(0, 169, 232, 0.18);
  border-color: var(--brand-cyan);
}

.modal {
  border-radius: 18px;
}

.modal form {
  padding: 22px;
  background: #ffffff;
}

.modal-head {
  border-bottom-color: rgba(0, 169, 232, 0.18);
}

.modal-head h2 {
  color: var(--brand-navy);
}

.service-footer {
  margin-right: clamp(18px, 2vw, 30px);
}

.service-footer .service-qr {
  border-radius: 14px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
}

.login-screen {
  background:
    linear-gradient(108deg, rgba(6, 36, 95, 0.9), rgba(0, 169, 232, 0.42)),
    url("assets/catalog/water-lab.png") center / cover no-repeat;
}

#loginView .login-panel,
.login-panel {
  width: min(520px, 100%);
  display: block;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(6, 36, 95, 0.28);
}

#loginView .login-card,
.login-card {
  min-height: auto;
  padding: clamp(30px, 4vw, 46px);
  border-radius: 20px;
  background: #ffffff;
}

.login-card-logo {
  width: min(230px, 76%);
}

.login-card-head h2 {
  color: var(--brand-navy);
}

.login-lock {
  color: var(--brand-blue);
  border-color: rgba(0, 169, 232, 0.26);
}

.login-security-note {
  color: #40586c;
  background: #f2fbff;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1280px) {
  .dashboard-workbench .brand-banner,
  .dashboard-main-grid,
  .dashboard-main-grid .product-proof {
    grid-template-columns: 1fr;
  }

  .hero-product-card {
    margin: 0 18px 18px;
  }

  .hero-product-visuals img {
    height: 130px;
  }

  .module-hero {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .sidebar {
    position: static;
    height: auto;
    margin: 0;
    border-radius: 0 0 18px 18px;
  }

  .main {
    padding: 18px;
  }

  .metrics,
  .dashboard-flow,
  .module-hero,
  .catalog-hero,
  .case-detail-layout,
  .renewal-detail {
    grid-template-columns: 1fr;
  }

  .module-hero img,
  .catalog-hero img,
  .catalog-hero .catalog-hero-logo {
    max-height: 190px;
  }

  .service-footer {
    grid-column: 1;
    margin: 0 18px 24px;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .dashboard-workbench .brand-copy {
    padding: 24px 20px;
  }

  .dashboard-workbench .brand-copy h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .hero-product-card {
    margin: 0 12px 12px;
  }

  .hero-product-visuals,
  .hero-flow,
  .proof-grid,
  .dashboard-main-grid .proof-grid,
  .detail-row {
    grid-template-columns: 1fr;
  }

  .record-head,
  .resource-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.dashboard-workbench .brand-banner,
.dashboard-workbench .metric-card,
.dashboard-workbench .panel {
  animation: none;
  opacity: 1;
  transform: none;
}

.dashboard-workbench {
  display: grid;
  gap: 16px;
}

.topbar {
  min-height: 62px;
  margin-bottom: 12px;
}

.topbar h1 {
  font-size: clamp(34px, 3.2vw, 48px);
  letter-spacing: -0.045em;
}

.dashboard-workbench .brand-banner {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.48fr);
  gap: 18px;
  padding: 18px;
  align-items: stretch;
  border-radius: 24px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 252, 255, 0.96) 58%, rgba(213, 246, 255, 0.7) 100%),
    #ffffff;
  box-shadow: 0 16px 38px rgba(0, 79, 160, 0.1);
}

.dashboard-workbench .brand-banner::before {
  background:
    linear-gradient(90deg, var(--ppt-cyan) 0 6px, transparent 6px),
    radial-gradient(circle at 68% 0%, rgba(0, 176, 240, 0.16), transparent 28%),
    linear-gradient(135deg, transparent 0 72%, rgba(0, 176, 240, 0.12) 72% 82%, transparent 82%);
}

.dashboard-workbench .brand-banner::after {
  right: 28px;
  top: 20px;
  color: rgba(0, 60, 255, 0.055);
  font-size: clamp(42px, 6vw, 92px);
  letter-spacing: -0.055em;
}

.dashboard-workbench .brand-copy {
  min-height: 0;
  max-width: none;
  padding: clamp(22px, 2.4vw, 34px);
  align-content: center;
}

.dashboard-workbench .brand-mark {
  margin-bottom: 14px;
  padding: 8px 12px 8px 8px;
  border-radius: 16px;
}

.dashboard-workbench .brand-mark img {
  width: 48px;
  height: 48px;
}

.dashboard-workbench .brand-copy h2 {
  max-width: 780px;
  font-size: clamp(34px, 3.8vw, 58px);
  letter-spacing: -0.055em;
}

.dashboard-workbench .brand-copy h2 span {
  margin-bottom: 6px;
  font-size: 0.46em;
  letter-spacing: 0.02em;
}

.dashboard-workbench .brand-copy p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 12px;
  color: #263f55;
  font-size: 16px;
  line-height: 1.7;
}

.hero-product-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 248px;
  overflow: hidden;
  border: 1px solid rgba(0, 176, 240, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 251, 255, 0.9)),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74), 0 14px 28px rgba(0, 79, 160, 0.08);
}

.hero-product-card div {
  display: grid;
  gap: 4px;
  padding: 18px 18px 10px;
}

.hero-product-card span {
  color: #0e7490;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.hero-product-card strong {
  color: var(--ppt-deep);
  font-size: 18px;
  line-height: 1.25;
}

.hero-product-card em {
  color: #5c7384;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.hero-product-card img {
  width: 100%;
  height: 100%;
  min-height: 162px;
  display: block;
  object-fit: cover;
  object-position: center 42%;
}

.dashboard-workbench .company-profile {
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 0;
  padding: 14px 18px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(243, 252, 255, 0.92)),
    linear-gradient(135deg, transparent 0 78%, rgba(0, 176, 240, 0.12) 78%);
  box-shadow: 0 10px 24px rgba(0, 79, 160, 0.06);
}

.dashboard-workbench .company-profile img {
  height: 92px;
  padding: 12px;
  border-radius: 14px;
}

.dashboard-workbench .company-profile h2 {
  margin-bottom: 5px;
  font-size: clamp(21px, 1.8vw, 28px);
  letter-spacing: -0.035em;
}

.dashboard-workbench .company-profile p:not(.eyebrow) {
  max-width: 980px;
  color: #415a6d;
  font-size: 14px;
  line-height: 1.65;
}

.dashboard-workbench .profile-points {
  margin-top: 10px;
  gap: 8px;
}

.dashboard-workbench .profile-points span {
  min-height: 30px;
  padding: 0 11px;
  font-size: 12px;
}

.dashboard-workbench .metrics {
  gap: 12px;
  margin-bottom: 0;
}

.dashboard-workbench .metric-card {
  min-height: 104px;
  padding: 16px 18px;
  border-top: 0;
  border-left: 5px solid var(--ppt-cyan);
  border-radius: 18px;
  background:
    linear-gradient(135deg, #ffffff, #f4fcff),
    #ffffff;
  box-shadow: 0 10px 22px rgba(0, 79, 160, 0.07);
}

.dashboard-workbench .metric-card span {
  color: #486275;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.dashboard-workbench .metric-card strong {
  margin: 8px 0 4px;
  color: var(--ppt-blue);
  font-size: clamp(27px, 2.4vw, 36px);
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.45fr);
  gap: 16px;
  align-items: start;
}

.dashboard-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-flow .panel {
  min-height: 284px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 255, 0.94)),
    #ffffff;
  box-shadow: 0 12px 26px rgba(0, 79, 160, 0.07);
}

.dashboard-flow .panel-head {
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.dashboard-flow .record-card {
  padding: 14px;
  border-left-width: 5px;
  box-shadow: none;
}

.dashboard-flow .record-head {
  margin-bottom: 0;
  align-items: center;
}

.dashboard-flow .timeline-item {
  grid-template-columns: 108px minmax(0, 1fr);
  padding: 10px 0;
}

.dashboard-main-grid .product-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.dashboard-main-grid .proof-copy,
.dashboard-main-grid .scene-list {
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(0, 79, 160, 0.07);
}

.dashboard-main-grid .proof-copy {
  padding: 18px;
}

.dashboard-main-grid .proof-copy::after {
  content: none;
}

.dashboard-main-grid .proof-copy h2 {
  font-size: 22px;
  line-height: 1.25;
}

.dashboard-main-grid .proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.dashboard-main-grid .proof-grid div {
  min-height: 74px;
  padding: 12px;
  border-radius: 14px;
  min-width: 0;
}

.dashboard-main-grid .proof-grid strong {
  font-size: clamp(17px, 1.45vw, 22px);
  overflow-wrap: anywhere;
}

.dashboard-main-grid .tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.dashboard-main-grid .tech-grid div {
  justify-content: space-between;
  min-height: 34px;
  border-radius: 12px;
}

.dashboard-main-grid .scene-list {
  padding: 12px;
  gap: 8px;
}

.dashboard-main-grid .product-gallery {
  gap: 8px;
}

.dashboard-main-grid .product-gallery figure {
  padding: 8px;
  border-radius: 14px;
}

.dashboard-main-grid .product-gallery img {
  height: 92px;
}

.dashboard-main-grid .scene-visual {
  height: 122px;
  border-radius: 14px;
}

.dashboard-main-grid .scene-list span {
  min-height: 38px;
  padding: 0 12px 0 14px;
  border-radius: 12px;
  font-size: 13px;
}

@media (max-width: 1320px) {
  .dashboard-workbench .brand-banner,
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .hero-product-card {
    min-height: 210px;
  }

  .hero-product-card img {
    max-height: 220px;
  }

  .dashboard-main-grid .product-proof {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  }
}

@media (max-width: 980px) {
  .topbar h1 {
    font-size: clamp(32px, 8vw, 42px);
  }

  .dashboard-flow,
  .dashboard-main-grid .product-proof,
  .dashboard-workbench .company-profile {
    grid-template-columns: 1fr;
  }

  .dashboard-workbench .brand-copy {
    padding: 20px 18px;
  }

  .hero-product-card img {
    max-height: 190px;
  }
}

@media (max-width: 640px) {
  .dashboard-workbench .brand-banner {
    padding: 12px;
    border-radius: 20px;
  }

  .dashboard-workbench .brand-copy h2 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .dashboard-workbench .metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-flow .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.login-panel {
  width: min(500px, 100%);
  display: block;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
}

.login-panel::before {
  background: linear-gradient(90deg, var(--ppt-cyan) 0 7px, transparent 7px);
}

.login-card {
  min-height: auto;
  padding: clamp(32px, 4vw, 48px);
  border-left: 0;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 251, 255, 0.98)),
    #ffffff;
}

.login-card-head {
  margin-bottom: 26px;
}

@media (max-width: 520px) {
  .login-panel,
  .login-card {
    border-radius: 22px;
  }
}

.login-screen {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(0, 31, 92, 0.86) 0%, rgba(0, 176, 240, 0.56) 56%, rgba(242, 251, 255, 0.72) 100%),
    url("assets/catalog/water-lab.png") center / cover no-repeat;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 120px),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.38), transparent 24%),
    linear-gradient(124deg, transparent 0 42%, rgba(0, 176, 240, 0.22) 42% 52%, transparent 52%);
  pointer-events: none;
}

.login-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.82fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 34px 92px rgba(0, 31, 92, 0.28);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ppt-cyan) 0 8px, transparent 8px);
  pointer-events: none;
}

.login-brand {
  position: relative;
  min-height: 560px;
  padding: clamp(34px, 5vw, 58px);
  color: var(--ppt-black);
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 52%, rgba(255, 255, 255, 0.32) 100%),
    url("assets/catalog/filter-housings.jpeg") right bottom / min(46vw, 520px) auto no-repeat,
    #ffffff;
}

.login-brand::after {
  content: "SECURE WATERLINE";
  position: absolute;
  right: 26px;
  bottom: 24px;
  color: rgba(0, 60, 255, 0.07);
  font-size: clamp(42px, 7vw, 90px);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.88;
  pointer-events: none;
}

.login-company {
  width: min(260px, 72%);
  margin: 0 0 42px;
}

.login-brand h1 {
  max-width: 640px;
  margin: 0 0 22px;
  color: var(--ppt-deep);
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.login-intro {
  max-width: 560px;
  margin-bottom: 28px;
  color: #263c4f;
  font-size: 17px;
  line-height: 1.8;
}

.login-security-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 12px;
}

.login-security-grid span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(0, 176, 240, 0.28);
  border-radius: 999px;
  color: var(--ppt-deep);
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.login-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 560px;
  padding: clamp(34px, 4vw, 52px);
  border: 0;
  border-left: 1px solid rgba(0, 176, 240, 0.18);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(242, 251, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: none;
}

.login-card::after {
  display: none;
}

.login-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.login-card-head h2 {
  color: var(--ppt-black);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
}

.login-lock {
  order: 2;
  padding: 8px 12px;
  border: 1px solid rgba(0, 176, 240, 0.36);
  border-radius: 999px;
  color: var(--ppt-blue);
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

#loginForm {
  gap: 18px;
}

#loginForm label {
  color: #34495c;
  font-size: 14px;
}

#loginForm input {
  min-height: 54px;
  margin-top: 9px;
  border-color: rgba(0, 176, 240, 0.42);
  border-radius: 16px;
  background: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

#loginForm input:focus {
  border-color: var(--ppt-blue);
  box-shadow: 0 0 0 5px rgba(0, 176, 240, 0.16);
}

.login-submit {
  min-height: 56px;
  margin-top: 6px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 950;
}

.login-security-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(0, 176, 240, 0.2);
  border-radius: 16px;
  color: #3d5061;
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .login-panel {
    grid-template-columns: 1fr;
  }

  .login-brand,
  .login-card {
    min-height: auto;
  }

  .login-card {
    border-left: 0;
    border-top: 1px solid rgba(0, 176, 240, 0.18);
  }

  .login-brand {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.92)),
      url("assets/catalog/filter-housings.jpeg") right bottom / 300px auto no-repeat,
      #ffffff;
  }
}

@media (max-width: 520px) {
  .login-screen {
    padding: 14px;
  }

  .login-panel {
    border-radius: 22px;
  }

  .login-brand,
  .login-card {
    padding: 26px 22px;
  }

  .login-company {
    width: 210px;
    margin-bottom: 30px;
  }

  .login-brand h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .login-security-grid {
    grid-template-columns: 1fr;
  }

  .login-card-head {
    display: block;
  }

  .login-lock {
    display: inline-flex;
    margin-bottom: 16px;
  }
}

/* UI/UX Pro Max refresh: clinical ops dashboard */
:root {
  --ink: #082f49;
  --muted: #526b7d;
  --line: #b7dff4;
  --panel: #ffffff;
  --wash: #effaff;
  --teal: #0891b2;
  --blue: #1e40af;
  --cyan: #38d6ee;
  --deep: #0b2f66;
  --sky: #dff7ff;
  --glass: rgba(255, 255, 255, 0.88);
  --amber: #b66a05;
  --red: #c82333;
  --green: #087f5b;
  --surface-raised: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(236, 254, 255, 0.72);
  --ring: rgba(8, 145, 178, 0.28);
  --shadow: 0 18px 52px rgba(14, 65, 118, 0.13);
  --shadow-soft: 0 10px 28px rgba(14, 65, 118, 0.09);
  --shadow-strong: 0 28px 88px rgba(3, 37, 76, 0.22);
  --radius: 14px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.55;
  background:
    linear-gradient(90deg, rgba(8, 145, 178, 0.08) 1px, transparent 1px) 0 0 / 86px 86px,
    linear-gradient(180deg, rgba(30, 64, 175, 0.06) 1px, transparent 1px) 0 0 / 86px 86px,
    radial-gradient(circle at 82% 4%, rgba(56, 214, 238, 0.24), transparent 28%),
    radial-gradient(circle at 8% 18%, rgba(30, 64, 175, 0.16), transparent 26%),
    linear-gradient(180deg, #f8fcff 0%, #ecfeff 48%, #f5fbff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 52%, rgba(8, 145, 178, 0.08) 52% 53%, transparent 53%),
    radial-gradient(circle at 92% 86%, rgba(5, 150, 105, 0.08), transparent 24%);
  mask-image: linear-gradient(180deg, black, transparent 82%);
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  color: white;
  background: var(--deep);
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-strong);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 4px solid var(--ring);
  outline-offset: 2px;
  border-color: var(--teal);
}

h1 {
  letter-spacing: -0.045em;
}

h2 {
  letter-spacing: -0.02em;
}

.login-screen {
  min-height: 100dvh;
  background:
    linear-gradient(115deg, rgba(5, 36, 78, 0.88), rgba(8, 145, 178, 0.4)),
    radial-gradient(circle at 18% 18%, rgba(56, 214, 238, 0.28), transparent 26%),
    url("assets/catalog/water-lab.png") center / cover;
}

.login-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border-color: rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.94));
  box-shadow: var(--shadow-strong);
}

.login-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 214, 238, 0.26), transparent 68%);
  pointer-events: none;
}

.login-card h1 {
  color: var(--deep);
}

input,
select,
textarea {
  min-height: 46px;
  border-color: #a8d5ef;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms var(--ease-out);
}

textarea {
  min-height: 112px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #6fc7e7;
  background: white;
}

.demo-users button,
.ghost-button,
.primary-button,
.danger-button,
.icon-button {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 16px;
  letter-spacing: 0.01em;
}

.primary-button {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 46%, #1e40af 100%);
  box-shadow: 0 15px 32px rgba(2, 132, 199, 0.24);
}

.ghost-button {
  color: var(--deep);
  border-color: #b7dff4;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(14, 65, 118, 0.06);
}

.danger-button {
  border-color: rgba(200, 35, 51, 0.28);
  color: #b4232c;
  background: linear-gradient(145deg, #fff8f8, #fff0f2);
}

.icon-button {
  border-radius: 999px;
}

.app-shell {
  grid-template-columns: 286px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 36px);
  padding: 18px 18px 18px 0;
}

.sidebar {
  top: 18px;
  height: calc(100vh - 36px);
  margin-left: 18px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(4, 70, 118, 0.98), rgba(9, 105, 145, 0.98) 46%, rgba(12, 60, 131, 0.98)),
    url("assets/catalog/water-lab.png") center bottom / cover;
  border-color: rgba(217, 249, 255, 0.26);
  box-shadow: 0 28px 84px rgba(6, 47, 88, 0.22);
}

.sidebar::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 28px),
    radial-gradient(circle at 48% 105%, rgba(56, 214, 238, 0.36), transparent 45%);
}

.company-card {
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(3, 37, 76, 0.2);
}

.nav {
  gap: 8px;
}

.nav button {
  min-height: 48px;
  border-radius: 14px;
  padding-left: 17px;
  background: rgba(255, 255, 255, 0.11);
  transition: transform 170ms var(--ease-out), box-shadow 170ms var(--ease-out), background 170ms var(--ease-out), color 170ms var(--ease-out);
}

.nav button.active,
.nav button:hover {
  color: #073278;
  background: linear-gradient(135deg, #ffffff, #e9fbff);
  box-shadow: 0 14px 28px rgba(3, 37, 76, 0.18);
}

.nav button.active::before {
  top: 12px;
  bottom: 12px;
  width: 5px;
  background: linear-gradient(180deg, #06b6d4, #059669);
}

.user-card {
  border-radius: 18px;
  background: rgba(3, 37, 76, 0.34);
  backdrop-filter: blur(8px);
}

.user-card span,
.user-card em {
  color: rgba(235, 254, 255, 0.78);
}

.user-card strong {
  font-size: 17px;
}

.main {
  padding: 22px clamp(22px, 3vw, 46px) 150px 0;
}

.topbar {
  min-height: 88px;
  margin-bottom: 18px;
  padding: 6px 0 4px;
}

.topbar h1 {
  margin-bottom: 0;
  color: var(--deep);
}

.eyebrow {
  color: #286579;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.brand-banner,
.panel,
.metric-card,
.record-card,
.proof-copy,
.scene-list,
.catalog-hero,
.module-hero,
.case-card,
.case-detail-media,
.case-detail-copy {
  border-color: rgba(165, 224, 244, 0.9);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.brand-banner {
  min-height: 228px;
  background:
    linear-gradient(104deg, rgba(6, 78, 118, 0.98) 0%, rgba(8, 145, 178, 0.88) 48%, rgba(56, 214, 238, 0.24) 100%),
    url("assets/catalog/filter-rack.jpeg") right center / cover no-repeat;
}

.brand-banner::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 44px),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 34%);
}

.brand-banner::after {
  right: 46px;
  top: 38px;
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(46px, 8vw, 110px);
}

.brand-copy {
  min-height: 228px;
  padding: clamp(26px, 4vw, 42px);
}

.brand-copy p:not(.eyebrow) {
  color: rgba(239, 254, 255, 0.9);
  font-size: 17px;
}

.metrics,
.grid,
.product-proof,
.case-grid,
.list {
  gap: 14px;
}

.metric-card {
  min-height: 136px;
  padding: 20px;
}

.metric-card::before {
  width: 100%;
  height: 5px;
  bottom: auto;
  background: linear-gradient(90deg, #06b6d4, #1e40af, #059669);
}

.metric-card strong {
  color: var(--deep);
  font-size: clamp(30px, 3vw, 40px);
  font-variant-numeric: tabular-nums;
}

.proof-copy,
.scene-list,
.panel,
.record-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 252, 255, 0.92));
}

.proof-grid div,
.scene-list span,
.detail-item,
.resource-row,
.case-meta-grid div,
.case-notes span {
  border-color: rgba(165, 224, 244, 0.88);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f0fbff);
}

.proof-grid strong {
  color: #0369a1;
}

.scene-list span {
  color: #164e63;
}

.service-footer {
  right: 22px;
  bottom: 22px;
}

.service-footer .service-qr {
  width: min(100vw - 36px, 344px);
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.96), rgba(30, 64, 175, 0.96));
  box-shadow: 0 20px 46px rgba(6, 47, 88, 0.26);
}

.service-qr strong {
  font-size: 21px;
  letter-spacing: 0.02em;
}

.module-hero {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 56%, rgba(236, 252, 255, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 145, 178, 0.08), transparent);
}

.module-hero img,
.catalog-hero img {
  filter: saturate(1.04) contrast(1.02);
}

.record-card {
  border-left: 5px solid rgba(8, 145, 178, 0.68);
}

.record-head strong,
.resource-row > span,
.detail-item b {
  color: var(--deep);
}

.detail-row {
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
}

.tag {
  min-height: 30px;
  border: 1px solid rgba(30, 64, 175, 0.08);
  color: #075985;
  background: #e0f7ff;
}

.tag.pending {
  color: #854d0e;
  background: #fff4d7;
}

.tag.good {
  color: #047857;
  background: #dcfce7;
}

.tag.bad {
  color: #be123c;
  background: #ffe4e6;
}

.case-card {
  border-radius: 22px;
}

.case-image-button img {
  height: 286px;
  aspect-ratio: 16 / 9;
}

.case-title-button {
  color: var(--deep);
  line-height: 1.3;
}

.case-title-button:hover {
  color: #0369a1;
}

.case-detail-layout {
  gap: 20px;
}

.case-detail-media img {
  min-height: 560px;
}

.case-detail-copy h2 {
  color: var(--deep);
}

.case-detail-text {
  color: #244d63;
}

.modal {
  border-radius: 22px;
  box-shadow: var(--shadow-strong);
}

.modal form {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(241, 251, 255, 0.96));
}

.modal-head {
  border-bottom-color: rgba(165, 224, 244, 0.9);
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, #064e76, #0891b2);
}

@media (prefers-reduced-motion: no-preference) {
  .brand-banner,
  .metric-card,
  .panel,
  .record-card,
  .case-card,
  .module-hero,
  .catalog-hero,
  .case-detail-layout {
    animation: uiSurfaceIn 360ms var(--ease-out) both;
  }

  .metric-card:nth-child(2),
  .case-card:nth-child(2),
  .record-card:nth-child(2) {
    animation-delay: 45ms;
  }

  .metric-card:nth-child(3),
  .record-card:nth-child(3) {
    animation-delay: 90ms;
  }

  .metric-card:nth-child(4),
  .record-card:nth-child(4) {
    animation-delay: 135ms;
  }
}

@keyframes uiSurfaceIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  body {
    background:
      radial-gradient(circle at 92% 0%, rgba(56, 214, 238, 0.2), transparent 32%),
      linear-gradient(180deg, #f8fcff, #ecfeff);
  }

  .skip-link {
    left: 12px;
    top: 10px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .sidebar {
    position: static;
    height: auto;
    min-height: auto;
    margin-left: 0;
    padding: 12px;
    gap: 10px;
    border-radius: 0 0 24px 24px;
  }

  .company-card {
    width: min(220px, 58vw);
    padding: 9px;
  }

  .nav {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav button {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .user-card {
    margin-top: 0;
  }

  .main {
    padding: 22px 16px 156px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    min-height: auto;
  }

  .topbar-actions .primary-button {
    width: 100%;
  }

  .brand-copy {
    padding: 24px;
  }

  .brand-banner::after {
    right: 18px;
    top: auto;
    bottom: 18px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .case-image-button img {
    height: 230px;
  }

  .case-detail-media img {
    min-height: 300px;
  }

  .service-footer {
    right: 12px;
    bottom: 12px;
  }

  .service-footer .service-qr {
    width: min(100vw - 24px, 292px);
    padding: 8px 10px;
  }
}

@media (max-width: 520px) {
  .login-screen {
    padding: 16px;
  }

  .login-card {
    padding: 24px;
  }

  .login-company {
    width: 220px;
  }

  .proof-grid,
  .scene-list,
  .form-grid,
  .product-line {
    grid-template-columns: 1fr;
  }

  .service-qr img {
    width: 54px;
    height: 54px;
  }

  .service-qr strong {
    font-size: 18px;
  }

  .service-qr em {
    font-size: 12px;
  }
}

/* PPT-aligned visual pass: HALOSOURCE product brochure language */
:root {
  --ppt-cyan: #00b0f0;
  --ppt-blue: #003cff;
  --ppt-deep: #001f5c;
  --ppt-black: #111111;
  --ppt-ice: #f2fbff;
  --ppt-line: #c8edf8;
  --ink: #0b1d2a;
  --muted: #506372;
  --line: var(--ppt-line);
  --teal: var(--ppt-cyan);
  --blue: var(--ppt-blue);
  --deep: var(--ppt-deep);
  --shadow: 0 14px 36px rgba(0, 60, 255, 0.08);
  --shadow-soft: 0 8px 18px rgba(0, 176, 240, 0.08);
  --shadow-strong: 0 24px 64px rgba(0, 31, 92, 0.18);
  --radius: 10px;
  --radius-lg: 18px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 6%, rgba(0, 176, 240, 0.2), transparent 24%),
    linear-gradient(118deg, transparent 0 62%, rgba(0, 176, 240, 0.12) 62% 72%, transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #f6fdff 48%, #ffffff 100%);
}

body::before {
  background:
    linear-gradient(90deg, rgba(0, 176, 240, 0.08) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(180deg, rgba(0, 60, 255, 0.055) 1px, transparent 1px) 0 0 / 120px 120px;
  mask-image: linear-gradient(180deg, black, transparent 70%);
}

h1,
.brand-banner h2,
.case-detail-copy h2 {
  color: var(--ppt-black);
  font-family: "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

.app-shell {
  grid-template-columns: 282px minmax(0, 1fr);
  padding: 18px 24px 18px 0;
}

.sidebar {
  color: var(--ppt-deep);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 251, 255, 0.96)),
    url("assets/catalog/filter-housings.jpeg") center bottom / cover;
  border: 2px solid rgba(0, 176, 240, 0.26);
  box-shadow: 0 20px 46px rgba(0, 176, 240, 0.12);
}

.sidebar::before {
  background:
    linear-gradient(180deg, rgba(0, 176, 240, 0.1), transparent 36%),
    linear-gradient(90deg, var(--ppt-cyan) 0 6px, transparent 6px);
}

.company-card {
  border: 1px solid rgba(0, 176, 240, 0.22);
  box-shadow: none;
}

.nav button {
  color: #07325f;
  border-color: rgba(0, 176, 240, 0.28);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.nav button.active,
.nav button:hover {
  color: white;
  background: linear-gradient(90deg, var(--ppt-cyan), var(--ppt-blue));
  box-shadow: 0 10px 22px rgba(0, 60, 255, 0.18);
}

.nav button.active::before {
  background: #ffffff;
}

.user-card {
  color: white;
  border: 0;
  background: linear-gradient(135deg, var(--ppt-cyan), var(--ppt-blue));
  box-shadow: 0 18px 36px rgba(0, 60, 255, 0.2);
}

.user-card span,
.user-card em {
  color: rgba(255, 255, 255, 0.8);
}

.user-card .ghost-button {
  color: var(--ppt-deep);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.92);
}

.topbar h1 {
  color: var(--ppt-black);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
}

.eyebrow {
  color: #245f78;
  font-size: 12px;
  letter-spacing: 0.07em;
}

.brand-banner {
  min-height: 286px;
  color: var(--ppt-black);
  border: 1px solid rgba(0, 176, 240, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(102deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.97) 34%, rgba(255, 255, 255, 0.78) 56%, rgba(255, 255, 255, 0.14) 78%, rgba(255, 255, 255, 0) 100%),
    url("assets/catalog/filter-housings.jpeg") right center / contain no-repeat,
    #ffffff;
  box-shadow: 0 18px 42px rgba(0, 176, 240, 0.12);
}

.brand-banner::before {
  background:
    linear-gradient(90deg, var(--ppt-cyan) 0 7px, transparent 7px),
    radial-gradient(circle at 72% 16%, rgba(0, 176, 240, 0.18), transparent 26%);
}

.brand-banner::after {
  content: "HALOSOURCE";
  right: 34px;
  top: 24px;
  color: rgba(0, 60, 255, 0.08);
  font-size: clamp(58px, 9vw, 124px);
  letter-spacing: -0.04em;
}

.brand-copy {
  max-width: 760px;
  min-height: 286px;
}

.brand-mark {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(0, 176, 240, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(0, 60, 255, 0.08);
  backdrop-filter: blur(12px);
}

.brand-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
  padding: 6px;
  border: 1px solid rgba(0, 176, 240, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.brand-mark strong,
.brand-mark span {
  display: block;
}

.brand-mark strong {
  color: var(--ppt-deep);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.brand-mark span {
  color: #40708b;
  font-size: 12px;
  font-weight: 800;
}

.brand-copy h2 {
  max-width: 680px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
}

.brand-copy h2 span {
  display: block;
  color: var(--ppt-cyan);
  font-size: 0.58em;
  letter-spacing: 0;
}

.brand-copy p:not(.eyebrow) {
  max-width: 620px;
  color: #273747;
  font-size: 18px;
  line-height: 1.75;
}

.brochure-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.brochure-points span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--ppt-deep);
  border: 1px solid rgba(0, 176, 240, 0.35);
  border-radius: 999px;
  background: rgba(232, 250, 255, 0.9);
  font-weight: 900;
}

.company-profile {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(0, 176, 240, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 255, 0.94));
  box-shadow: 0 16px 34px rgba(0, 176, 240, 0.08);
}

.company-profile img {
  width: 100%;
  height: 144px;
  object-fit: contain;
  padding: 16px;
  border: 1px solid rgba(0, 176, 240, 0.12);
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, rgba(0, 176, 240, 0.08), transparent 48%), #ffffff;
}

.company-profile h2 {
  margin-bottom: 8px;
  color: var(--deep);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
}

.company-profile p:not(.eyebrow) {
  max-width: 820px;
  color: #35536a;
  font-weight: 700;
  line-height: 1.7;
}

.profile-points,
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.profile-points span,
.tech-grid div {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(0, 176, 240, 0.18);
  border-radius: 999px;
  background: rgba(232, 250, 255, 0.9);
  color: var(--deep);
  font-weight: 900;
}

.tech-grid div {
  border-radius: 14px;
  padding: 0 14px;
}

.tech-grid strong {
  color: var(--blue);
  font-size: 14px;
}

.tech-grid span {
  color: #5a7287;
  font-size: 12px;
}

.metric-card,
.panel,
.record-card,
.proof-copy,
.scene-list,
.catalog-hero,
.module-hero,
.case-card,
.case-detail-media,
.case-detail-copy {
  border: 1px solid rgba(0, 176, 240, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(0, 176, 240, 0.08);
}

.metric-card {
  border-top: 6px solid var(--ppt-cyan);
  border-left: 1px solid rgba(0, 176, 240, 0.22);
}

.metric-card::before {
  content: none;
}

.metric-card strong {
  color: var(--ppt-blue);
}

.product-proof {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.proof-copy {
  position: relative;
  overflow: hidden;
}

.proof-copy::after {
  content: "01";
  position: absolute;
  right: 22px;
  bottom: 2px;
  color: rgba(0, 176, 240, 0.12);
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
}

.proof-grid div,
.scene-list span,
.detail-item,
.resource-row,
.case-meta-grid div,
.case-notes span {
  border-color: rgba(0, 176, 240, 0.24);
  background: linear-gradient(180deg, #ffffff, #f4fcff);
}

.proof-grid strong {
  color: var(--ppt-blue);
}

.tech-grid {
  margin-top: 14px;
}

.scene-list span {
  position: relative;
  padding-left: 18px;
  color: var(--ppt-deep);
}

.scene-list span::before {
  content: "";
  width: 6px;
  height: 24px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--ppt-cyan);
}

.primary-button {
  background: linear-gradient(90deg, var(--ppt-cyan), var(--ppt-blue));
  box-shadow: 0 12px 24px rgba(0, 60, 255, 0.18);
}

.ghost-button {
  border-color: rgba(0, 176, 240, 0.28);
  background: #ffffff;
  box-shadow: none;
}

.module-hero {
  min-height: 172px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(242, 251, 255, 0.88)),
    #ffffff;
}

.module-hero img {
  height: 172px;
  object-fit: cover;
}

.record-card {
  border-left: 7px solid var(--ppt-cyan);
}

.case-card {
  box-shadow: none;
}

.case-image-button {
  background: #f8fcff;
}

.case-image-button img {
  height: 300px;
  object-fit: cover;
}

.case-title-button {
  color: var(--ppt-black);
}

.case-detail {
  gap: 18px;
}

.case-detail-layout {
  grid-template-columns: minmax(380px, 0.9fr) minmax(420px, 1.1fr);
}

.case-detail-media img {
  min-height: 590px;
  object-fit: cover;
}

.case-detail-copy {
  border-top: 8px solid var(--ppt-cyan);
}

.case-meta-grid div {
  border-top: 4px solid var(--ppt-cyan);
}

.service-footer .service-qr {
  background: linear-gradient(90deg, var(--ppt-cyan), var(--ppt-blue));
  box-shadow: 0 16px 32px rgba(0, 60, 255, 0.2);
}

@media (max-width: 1180px) {
  .brand-banner {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88)),
      url("assets/catalog/filter-housings.jpeg") right bottom / 360px auto no-repeat,
      #ffffff;
  }

  .company-profile,
  .product-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .sidebar {
    color: white;
    background: linear-gradient(135deg, var(--ppt-cyan), var(--ppt-blue));
    border: 0;
  }

  .nav button {
    color: white;
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.14);
  }

  .nav button.active,
  .nav button:hover {
    color: var(--ppt-deep);
    background: white;
  }

  .brand-banner {
    min-height: 430px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 58%, rgba(255, 255, 255, 0.24) 100%),
      url("assets/catalog/filter-housings.jpeg") center bottom / min(88vw, 390px) auto no-repeat,
      #ffffff;
  }

  .brand-copy {
    min-height: 430px;
    align-content: start;
  }

  .brand-copy h2 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .brand-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .company-profile img {
    height: 180px;
  }

  .case-detail-layout {
    grid-template-columns: 1fr;
  }

  .case-image-button img {
    height: 236px;
  }

  .case-detail-media img {
    min-height: 320px;
  }
}

/* Final login override: keep only the compact sign-in card after removing the brand panel. */
#loginView .login-panel {
  width: min(500px, 100%);
  display: block;
  grid-template-columns: none;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
}

#loginView .login-panel::before {
  background: linear-gradient(90deg, var(--ppt-cyan) 0 7px, transparent 7px);
}

#loginView .login-card {
  min-height: auto;
  padding: clamp(32px, 4vw, 48px);
  border-left: 0;
  border-top: 0;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 251, 255, 0.98)),
    #ffffff;
}

/* Filing page spacing override: make the dense filing list easier to scan. */
.filing-toolbar {
  margin-top: clamp(10px, 1.4vw, 20px);
  margin-bottom: clamp(26px, 3vw, 42px);
}

.filing-list {
  gap: clamp(22px, 2.2vw, 34px);
}

.filing-card {
  padding: clamp(26px, 2.6vw, 38px);
  border-left-width: 7px;
  border-radius: 22px;
}

.filing-card .record-head {
  margin-bottom: clamp(24px, 2.6vw, 34px);
  gap: 22px;
}

.filing-card .record-head strong {
  margin-bottom: 8px;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.28;
}

.filing-card .muted {
  line-height: 1.75;
}

.filing-card .detail-row {
  gap: clamp(16px, 1.6vw, 24px);
  margin: clamp(22px, 2.2vw, 32px) 0;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.filing-card .detail-item {
  min-height: 86px;
  padding: 16px 18px;
  border-radius: 14px;
}

.filing-card .detail-item span {
  margin-bottom: 8px;
}

.filing-card .detail-item b {
  margin-top: 0;
  line-height: 1.55;
}

.filing-card .row-actions {
  margin-top: clamp(20px, 2vw, 30px);
  gap: 14px;
}

/* Final status badge sizing: keep status labels readable across all modules. */
.tag {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.record-head > .tag {
  margin-top: 2px;
}

.settings-record-card {
  display: grid;
  gap: 16px;
  min-height: 0;
  padding: 18px 20px;
  border-left: 6px solid rgba(0, 174, 214, 0.86);
  background:
    linear-gradient(90deg, rgba(231, 249, 255, 0.95), rgba(255, 255, 255, 0.98) 28%),
    radial-gradient(circle at 0 50%, rgba(0, 176, 240, 0.18), transparent 24%);
  box-shadow: 0 10px 26px rgba(0, 139, 214, 0.08);
}

.hospital-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hospital-identity {
  min-width: 0;
}

.hospital-identity span,
.department-field em {
  display: inline-flex;
  margin-bottom: 8px;
  color: #0e7490;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.hospital-identity strong {
  display: block;
  color: #06245f;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.35;
}

.hospital-identity p {
  margin: 5px 0 0;
  color: #5b6f82;
  font-weight: 800;
}

.department-field {
  min-width: 0;
}

.department-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.department-select-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.department-dropdown {
  width: 100%;
  min-height: 40px;
  padding: 0 38px 0 14px;
  border: 1px solid rgba(84, 181, 232, 0.62);
  border-radius: 12px;
  color: #06325f;
  background:
    linear-gradient(45deg, transparent 50%, #0284c7 50%) right 16px center / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(245, 252, 255, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 8px 18px rgba(0, 139, 214, 0.06);
  font-size: 15px;
  font-weight: 900;
  appearance: none;
}

.department-dropdown:focus {
  outline: 3px solid rgba(0, 176, 240, 0.2);
  border-color: rgba(0, 132, 199, 0.78);
}

.department-select-row .compact-button {
  min-height: 40px;
  padding: 0 13px;
  white-space: nowrap;
}

.department-panel {
  border: 1px solid rgba(84, 181, 232, 0.32);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 252, 255, 0.96), #ffffff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.department-panel-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  color: #06325f;
  background: transparent;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.department-panel-toggle::-webkit-details-marker {
  display: none;
}

.department-panel-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #075985;
  border-bottom: 2px solid #075985;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.department-panel[open] .department-panel-toggle::after {
  transform: rotate(225deg);
}

.department-panel-toggle strong {
  margin-left: auto;
  color: #0e7490;
  font-size: 13px;
}

.department-panel-body {
  padding-top: 0;
}

.department-chip-list {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.department-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(84, 181, 232, 0.42);
  border-radius: 16px;
  color: #075985;
  background: rgba(245, 252, 255, 0.92);
  font-size: 14px;
  font-weight: 900;
}

.department-row.locked {
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(248, 250, 252, 0.94);
}

.department-row-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.department-row-copy strong {
  color: #06325f;
  font-size: 15px;
}

.department-row-copy span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.department-row.locked .department-row-copy strong {
  color: #64748b;
}

.department-row.locked .department-row-copy span {
  color: #64748b;
}

.department-row-delete {
  min-width: 72px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(244, 63, 94, 0.28);
  border-radius: 12px;
  color: #b4232c;
  background: rgba(255, 237, 239, 0.98);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.department-row.locked .department-row-delete {
  opacity: 0.72;
}

.settings-card-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 108px;
}

.settings-card-actions .compact-button {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.seal-settings-card {
  grid-column: 1 / -1;
}

.seal-settings-body {
  padding-top: 4px;
}

.seal-settings-head > div p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.seal-count-badge {
  padding: 7px 11px;
  border: 1px solid rgba(9, 136, 218, 0.2);
  border-radius: 999px;
  color: #0876b9;
  background: rgba(231, 247, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
}

.seal-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seal-slot-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 138px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(9, 136, 218, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.seal-slot-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #d72638;
  opacity: 0.72;
}

.seal-slot-card.is-empty::before {
  background: #9aa9b9;
  opacity: 0.4;
}

.seal-slot-index {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #7b8da3;
  font: 800 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seal-slot-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.seal-slot-main img,
.seal-placeholder {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px dashed rgba(210, 38, 48, 0.42);
  border-radius: 50%;
  background: #fff;
}

.seal-placeholder {
  display: grid;
  place-items: center;
  border-color: rgba(100, 116, 139, 0.3);
  color: #8291a3;
  font-size: 12px;
  font-weight: 900;
}

.seal-slot-copy {
  min-width: 0;
}

.seal-slot-copy strong,
.seal-slot-copy span,
.seal-slot-copy em {
  display: block;
}

.seal-slot-copy strong {
  color: #102f55;
  font-size: 15px;
  line-height: 1.45;
}

.seal-slot-copy span,
.seal-slot-copy em {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seal-slot-copy em {
  color: #2f7ba5;
}

.seal-choice-intro {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.seal-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.seal-choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr 24px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 2px solid rgba(9, 136, 218, 0.14);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.seal-choice-card:hover {
  transform: translateY(-1px);
  border-color: rgba(9, 136, 218, 0.38);
}

.seal-choice-card:has(input:focus-visible) {
  outline: 3px solid rgba(14, 165, 233, 0.24);
  outline-offset: 2px;
}

.seal-choice-card:has(input:checked) {
  border-color: rgba(215, 38, 56, 0.72);
  box-shadow: 0 10px 28px rgba(164, 24, 41, 0.1);
}

.seal-choice-card > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.seal-choice-visual {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fff8f8;
}

.seal-choice-visual img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.seal-choice-copy strong,
.seal-choice-copy em {
  display: block;
}

.seal-choice-copy strong {
  color: #132f52;
  line-height: 1.45;
}

.seal-choice-copy em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.seal-choice-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #c8d5e3;
  border-radius: 50%;
  color: transparent;
  font-size: 13px;
  font-weight: 950;
}

.seal-choice-card:has(input:checked) .seal-choice-check {
  border-color: #d72638;
  color: #fff;
  background: #d72638;
}

.seal-choice-warning,
.seal-choice-empty {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  color: #76510d;
  background: #fff8e7;
  font-size: 12px;
  line-height: 1.6;
}

.seal-choice-empty strong,
.seal-choice-empty span {
  display: block;
}

.seal-choice-empty span {
  margin-top: 4px;
}

.seal-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(9, 136, 218, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.seal-preview img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex: 0 0 auto;
  border: 1px dashed rgba(210, 38, 48, 0.45);
  border-radius: 8px;
  background: #fff;
}

.seal-preview strong,
.seal-preview span {
  display: block;
}

@media (max-width: 820px) {
  .seal-slot-grid,
  .seal-choice-grid {
    grid-template-columns: 1fr;
  }

  .seal-slot-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .seal-slot-card > button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seal-choice-card {
    transition: none;
  }
}

.seal-preview span {
  margin-top: 6px;
  color: var(--muted);
}

.catalog-hero .catalog-hero-logo {
  height: 210px;
  padding: 18px;
  object-fit: contain;
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 18%, rgba(0, 176, 240, 0.12), transparent 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 250, 255, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(0, 176, 240, 0.12),
    0 14px 30px rgba(0, 176, 240, 0.08);
}

.renewal-card .row-actions {
  margin-top: 18px;
}

.renewal-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
}

.renewal-detail > div,
.renewal-detail label {
  padding: 14px;
  border: 1px solid rgba(84, 181, 232, 0.34);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(245, 252, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.renewal-detail span {
  display: block;
  margin-bottom: 8px;
  color: #0e7490;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.renewal-detail strong {
  color: var(--deep);
  font-size: 16px;
}

.renewal-detail textarea[readonly] {
  min-height: 96px;
  resize: vertical;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.main {
  padding-bottom: clamp(34px, 4vw, 58px);
}

.service-footer {
  position: static;
  grid-column: 2;
  z-index: auto;
  justify-self: end;
  width: min(100%, 360px);
  margin: 0 clamp(22px, 2.6vw, 38px) 28px 0;
}

.service-footer .service-qr {
  width: 100%;
  box-shadow: 0 14px 30px rgba(6, 47, 88, 0.14);
}

@media (max-width: 980px) {
  .settings-record-card {
    grid-template-columns: 1fr;
  }

  .hospital-card-main {
    flex-direction: column;
  }

  .settings-card-actions {
    justify-content: flex-start;
  }

  .department-select-row {
    grid-template-columns: 1fr;
  }

  .service-footer {
    grid-column: 1;
    justify-self: stretch;
    width: auto;
    margin: 0 18px 24px;
  }
}

@media (max-width: 520px) {
  #loginView .login-panel,
  #loginView .login-card {
    border-radius: 22px;
  }
}

/* UIUX Pro Max final lock at EOF. */
:root {
  --uiux-cyan: #00a9e8;
  --uiux-blue: #0052cc;
  --uiux-navy: #06245f;
  --uiux-ink: #102336;
  --uiux-muted: #526b82;
  --uiux-card: #ffffff;
  --uiux-shadow: 0 12px 30px rgba(5, 54, 100, 0.09);
}

body {
  color: var(--uiux-ink);
  background:
    linear-gradient(90deg, rgba(0, 169, 232, 0.05) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, rgba(0, 82, 204, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(135deg, #ffffff 0%, #f7fbfd 48%, #eef8fc 100%);
}

.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 18px 14px 0;
}

.sidebar {
  top: 14px;
  height: calc(100vh - 28px);
  margin-left: 14px;
  padding: 14px;
  gap: 14px;
  color: var(--uiux-navy);
  border: 1px solid rgba(0, 169, 232, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 248, 255, 0.95)),
    linear-gradient(90deg, var(--uiux-cyan) 0 5px, transparent 5px);
  box-shadow: var(--uiux-shadow);
}

.company-card {
  padding: 12px;
  border: 1px solid rgba(0, 169, 232, 0.18);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.company-card img {
  height: 62px;
  object-fit: contain;
}

.nav {
  gap: 7px;
}

.nav button {
  min-height: 43px;
  padding: 0 14px;
  justify-content: flex-start;
  color: #0c3d68;
  border: 1px solid rgba(0, 169, 232, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  font-size: 14px;
}

.nav button.active,
.nav button:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--uiux-cyan), var(--uiux-blue));
  box-shadow: 0 10px 22px rgba(0, 82, 204, 0.18);
}

.nav button.active::before {
  display: none;
}

.user-card {
  gap: 7px;
  padding: 14px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, #0588bd, #0052cc);
  box-shadow: 0 14px 28px rgba(0, 82, 204, 0.2);
}

.user-card span,
.user-card em {
  color: rgba(255, 255, 255, 0.76);
}

.user-card strong {
  color: #ffffff;
  font-size: 18px;
}

.user-card .ghost-button {
  min-height: 40px;
  color: var(--uiux-navy);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.92);
}

.main {
  padding: 16px clamp(18px, 2vw, 30px) 42px 0;
}

.topbar {
  min-height: 58px;
  margin-bottom: 12px;
  padding: 0;
}

.topbar h1 {
  color: #101820;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.eyebrow {
  color: #087095;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.dashboard-workbench {
  gap: 12px;
}

.dashboard-workbench .brand-banner {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 16px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  color: var(--uiux-ink);
  border: 1px solid rgba(0, 169, 232, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(112deg, #ffffff 0%, #ffffff 58%, rgba(232, 248, 255, 0.9) 100%),
    #ffffff;
  box-shadow: var(--uiux-shadow);
}

.dashboard-workbench .brand-banner::before {
  background:
    linear-gradient(90deg, var(--uiux-cyan) 0 6px, transparent 6px),
    linear-gradient(135deg, transparent 0 80%, rgba(0, 169, 232, 0.12) 80% 88%, transparent 88%);
}

.dashboard-workbench .brand-banner::after {
  content: "HALOSOURCE";
  right: 28px;
  top: 20px;
  color: rgba(0, 82, 204, 0.05);
  font-size: clamp(46px, 6vw, 94px);
  letter-spacing: -0.06em;
}

.dashboard-workbench .brand-copy {
  min-height: 0;
  max-width: none;
  padding: 28px 34px;
  align-content: center;
}

.dashboard-workbench .brand-mark {
  margin-bottom: 14px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  box-shadow: none;
}

.dashboard-workbench .brand-mark img {
  width: 42px;
  height: 42px;
}

.dashboard-workbench .brand-copy h2 {
  max-width: 720px;
  color: #101820;
  font-size: clamp(34px, 3.7vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.dashboard-workbench .brand-copy h2 span {
  display: block;
  margin-bottom: 5px;
  color: var(--uiux-cyan);
  font-size: 0.44em;
  letter-spacing: 0.02em;
}

.dashboard-workbench .brand-copy p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 10px;
  color: #284156;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.brochure-points {
  gap: 8px;
  margin-top: 16px;
}

.brochure-points span,
.profile-points span {
  min-height: 30px;
  padding: 0 12px;
  border-color: rgba(0, 169, 232, 0.3);
  border-radius: 999px;
  background: #edfaff;
  color: #063d69;
  font-size: 13px;
}

.hero-product-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 0;
  margin: 16px 16px 16px 0;
  padding: 16px;
  border: 1px solid rgba(0, 169, 232, 0.2);
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 169, 232, 0.14), transparent 38%),
    linear-gradient(180deg, #ffffff, #f3fbff);
  box-shadow: none;
}

.hero-product-card div {
  padding: 0;
}

.hero-product-head {
  display: grid;
  gap: 4px;
}

.hero-product-head span,
.hero-product-card span {
  color: #087095;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.hero-product-head strong,
.hero-product-card strong {
  color: var(--uiux-navy);
  font-size: 17px;
  line-height: 1.25;
}

.hero-product-head em,
.hero-product-card em {
  color: var(--uiux-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.hero-product-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
}

.hero-product-visuals img,
.hero-product-card img {
  width: 100%;
  height: 128px;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  border: 1px solid rgba(0, 169, 232, 0.16);
  border-radius: 12px;
  background: #07111d;
}

.hero-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.hero-flow span {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #eaf9ff, #ffffff);
  color: #0a4770;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.dashboard-workbench .company-profile {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 169, 232, 0.18);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: var(--uiux-shadow);
}

.dashboard-workbench .company-profile img {
  width: 100%;
  height: 72px;
  padding: 10px;
  object-fit: contain;
  border-radius: 11px;
  background: #ffffff;
}

.dashboard-workbench .company-profile h2 {
  margin-bottom: 4px;
  color: var(--uiux-navy);
  font-size: clamp(20px, 1.45vw, 25px);
  line-height: 1.1;
}

.dashboard-workbench .company-profile p:not(.eyebrow) {
  max-width: 1040px;
  color: #43596b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.dashboard-workbench .profile-points {
  gap: 7px;
  margin-top: 8px;
}

.metrics,
.dashboard-workbench .metrics {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.metric-card,
.dashboard-workbench .metric-card {
  min-height: 88px;
  padding: 13px 16px;
  border: 1px solid rgba(0, 169, 232, 0.2);
  border-left: 5px solid var(--uiux-cyan);
  border-top: 1px solid rgba(0, 169, 232, 0.2);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: var(--uiux-shadow);
}

.metric-card::before {
  content: none;
}

.metric-card span {
  color: var(--uiux-muted);
  font-size: 12px;
}

.metric-card strong {
  margin: 6px 0 2px;
  color: var(--uiux-blue);
  font-size: clamp(25px, 2vw, 32px);
}

.dashboard-main-grid {
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 12px;
}

.dashboard-flow {
  gap: 12px;
}

.panel,
.record-card,
.proof-copy,
.scene-list,
.catalog-hero,
.module-hero,
.case-card,
.case-detail-media,
.case-detail-copy,
.account-section,
.role-matrix-panel {
  border: 1px solid rgba(0, 169, 232, 0.18);
  border-radius: 15px;
  background: var(--uiux-card);
  box-shadow: var(--uiux-shadow);
}

.panel {
  padding: 16px;
  backdrop-filter: none;
}

.panel-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 169, 232, 0.18);
}

.record-card {
  padding: 16px;
  border-left: 5px solid var(--uiux-cyan);
}

.detail-row {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.detail-item,
.resource-row,
.case-meta-grid div,
.case-notes span,
.renewal-detail > div,
.renewal-detail label {
  border: 1px solid rgba(0, 169, 232, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7fcff);
}

.module-hero,
.catalog-hero {
  min-height: 148px;
  margin-bottom: 14px;
  background: linear-gradient(105deg, #ffffff 0%, #ffffff 58%, #edfaff 100%);
}

.module-hero {
  grid-template-columns: minmax(0, 1fr) 240px;
}

.catalog-hero {
  grid-template-columns: 160px minmax(0, 1fr);
}

.module-hero div,
.catalog-hero div {
  padding: 20px 22px;
}

.module-hero img,
.catalog-hero img,
.catalog-hero .catalog-hero-logo {
  width: 100%;
  height: 100%;
  min-height: 148px;
  max-height: 172px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.catalog-hero .catalog-hero-logo {
  padding: 20px;
  object-fit: contain;
}

.case-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.case-image-button img {
  height: 220px;
  object-fit: cover;
}

.account-toolbar,
.filing-toolbar {
  padding-top: 0;
  margin: 0 0 14px;
}

.account-section {
  margin-top: 14px;
  padding: 16px;
}

.account-section-title {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 169, 232, 0.18);
  border-radius: 12px;
  background: linear-gradient(90deg, #f0fbff, #ffffff);
  box-shadow: inset 4px 0 0 var(--uiux-cyan);
}

input,
select,
textarea,
.department-dropdown {
  min-height: 44px;
  border-color: rgba(0, 169, 232, 0.28);
  border-radius: 10px;
  background: #ffffff;
}

@media (max-width: 1280px) {
  .dashboard-workbench .brand-banner,
  .dashboard-main-grid,
  .dashboard-main-grid .product-proof {
    grid-template-columns: 1fr;
  }

  .hero-product-card {
    margin: 0 16px 16px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .sidebar {
    position: static;
    height: auto;
    margin: 0;
    border-radius: 0 0 18px 18px;
  }

  .main {
    padding: 18px;
  }

  .metrics,
  .dashboard-flow,
  .module-hero,
  .catalog-hero,
  .case-detail-layout,
  .renewal-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-workbench .brand-copy {
    padding: 24px 20px;
  }

  .hero-product-card {
    margin: 0 12px 12px;
  }

  .hero-product-visuals,
  .hero-flow,
  .dashboard-main-grid .proof-grid,
  .detail-row {
    grid-template-columns: 1fr;
  }
}

body {
  background:
    linear-gradient(90deg, rgba(0, 169, 232, 0.032) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, rgba(0, 82, 204, 0.026) 1px, transparent 1px) 0 0 / 96px 96px,
    radial-gradient(circle at 88% 10%, rgba(0, 169, 232, 0.13), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #f8fbfd 52%, #edf7fb 100%);
}

.main {
  max-width: 1460px;
}

.topbar {
  min-height: 52px;
  margin-bottom: 10px;
  align-items: end;
}

.topbar h1 {
  font-size: clamp(30px, 2.45vw, 40px);
  letter-spacing: -0.04em;
}

.topbar-actions {
  align-self: center;
}

.topbar-actions .primary-button {
  min-height: 44px;
  padding-inline: 20px;
}

#content > .list {
  display: grid;
  gap: 14px;
}

.record-card {
  padding: 18px 20px;
  border-left-width: 4px;
  background:
    linear-gradient(90deg, rgba(0, 169, 232, 0.035), transparent 38%),
    #ffffff;
}

.record-head {
  align-items: start;
  gap: 18px;
}

.record-head strong,
.case-title-button {
  color: var(--uiux-navy);
  font-size: 19px;
  letter-spacing: -0.01em;
}

.muted {
  color: #60758a;
}

.detail-row {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.detail-item {
  min-height: 84px;
  padding: 14px 16px;
}

.detail-item span {
  margin-bottom: 8px;
  color: #087095;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.detail-item b {
  color: #092b68;
  font-size: 16px;
  line-height: 1.42;
}

.row-actions {
  gap: 10px;
}

.primary-button,
.ghost-button,
.danger-button {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 11px;
  font-weight: 900;
}

.module-hero,
.catalog-hero {
  min-height: 128px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(0, 169, 232, 0.035), transparent 48%),
    linear-gradient(105deg, #ffffff 0%, #ffffff 64%, #edfaff 100%);
}

.module-hero {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.catalog-hero {
  grid-template-columns: 142px minmax(0, 1fr);
}

.module-hero div,
.catalog-hero div {
  padding: 18px 22px;
}

.module-hero h2,
.catalog-hero h2 {
  margin-bottom: 8px;
  color: var(--uiux-navy);
  font-size: clamp(24px, 2vw, 34px);
  letter-spacing: -0.03em;
}

.module-hero p:not(.eyebrow),
.catalog-hero p:not(.eyebrow) {
  max-width: 820px;
  color: #40586d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.module-hero img,
.catalog-hero img,
.catalog-hero .catalog-hero-logo {
  min-height: 128px;
  max-height: 150px;
}

.catalog-hero .catalog-hero-logo {
  padding: 18px;
  background: #ffffff;
}

.case-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.case-card {
  overflow: hidden;
  background: #ffffff;
}

.case-card > div {
  padding: 18px 20px 20px;
}

.case-image-button img {
  height: 205px;
}

.case-card p:not(.muted) {
  color: #40586d;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.72;
}

.resource-row {
  padding: 14px;
  gap: 14px;
}

.resource-row span {
  font-size: 16px;
  color: #092b68;
}

.grid {
  gap: 16px;
}

.panel {
  padding: 18px;
}

.panel-head h2,
.account-section-title h3 {
  color: var(--uiux-navy);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.settings-record-card {
  padding: 16px;
}

.hospital-card-main {
  gap: 16px;
}

.department-select-row {
  gap: 10px;
}

.account-section {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(239, 251, 255, 0.68), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.account-section + .account-section {
  margin-top: 18px;
}

.account-section-title {
  margin-bottom: 16px;
  padding: 14px 16px;
}

.account-section .list {
  display: grid;
  gap: 14px;
}

.material-card .record-head,
.account-section .record-head,
.renewal-card .record-head {
  min-height: 42px;
}

@media (max-width: 980px) {
  .topbar {
    align-items: start;
  }

  .module-hero,
  .catalog-hero {
    grid-template-columns: 1fr;
  }

  .module-hero img,
  .catalog-hero img,
  .catalog-hero .catalog-hero-logo {
    max-height: 180px;
  }

  .case-detail-layout,
  .case-summary-grid,
  .case-focus-grid {
    grid-template-columns: 1fr;
  }

  .case-detail-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .topbar h1 {
    font-size: 30px;
  }

  .record-card {
    padding: 15px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-detail-copy {
    gap: 12px;
  }
}

.filing-toolbar {
  margin: 0 0 14px;
}

.filing-list,
#content > .list,
.list {
  gap: 14px;
}

.filing-card,
.record-card {
  padding: 18px 20px;
  border-left-width: 4px;
  border-radius: 16px;
}

.filing-card .record-head,
.record-card .record-head {
  margin-bottom: 12px;
  gap: 18px;
}

.filing-card .record-head strong,
.record-card .record-head strong {
  margin-bottom: 4px;
  font-size: 19px;
  line-height: 1.28;
}

.filing-card .detail-row,
.record-card .detail-row,
.detail-row {
  gap: 12px;
  margin: 14px 0;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.filing-card .detail-item,
.record-card .detail-item,
.detail-item {
  min-height: 74px;
  padding: 13px 15px;
  border-radius: 12px;
}

.filing-card .row-actions,
.record-card .row-actions,
.row-actions {
  margin-top: 12px;
  gap: 10px;
}

.filing-card .muted,
.record-card .muted {
  line-height: 1.55;
}

.material-card,
.account-section .record-card,
.renewal-card {
  padding: 16px 18px;
}

.record-card:not(.filing-card) .detail-row {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.record-card:not(.filing-card) .detail-item {
  min-height: 68px;
  padding: 12px 14px;
}

.record-card > p.muted {
  margin: 8px 0;
}

.record-card > p.muted:last-of-type {
  margin-bottom: 10px;
}

.dashboard-workbench .brand-banner {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
  min-height: 214px;
  background:
    linear-gradient(110deg, #ffffff 0%, #ffffff 58%, rgba(229, 248, 255, 0.92) 100%),
    #ffffff;
}

.dashboard-workbench .brand-copy {
  padding: 24px 32px;
}

.dashboard-workbench .brand-mark {
  margin-bottom: 12px;
}

.dashboard-workbench .brand-copy h2 {
  max-width: 780px;
  font-size: clamp(32px, 3.1vw, 48px);
}

.dashboard-workbench .brand-copy p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 8px;
  font-size: 14px;
}

.brand-process-panel {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 12px;
  margin: 16px 16px 16px 0;
  padding: 18px;
  border: 1px solid rgba(0, 169, 232, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 251, 255, 0.96)),
    #ffffff;
  box-shadow: none;
}

.brand-process-panel strong {
  color: var(--uiux-navy);
  font-size: 18px;
  line-height: 1.35;
}

.process-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.process-rail span {
  position: relative;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 70px;
  padding: 0 12px;
  border: 1px solid rgba(0, 169, 232, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #0a4770;
  font-size: 13px;
  font-weight: 950;
}

.process-rail span::before {
  content: none;
}

.library-hero {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.library-hero,
.cases-hero {
  min-height: 108px;
}

.library-hero div,
.cases-hero div {
  padding: 16px 22px;
}

.library-hero p:not(.eyebrow),
.cases-hero p:not(.eyebrow) {
  margin: 6px 0 0;
  max-width: 940px;
}

.module-hero .library-material-visual {
  padding: 6px;
  object-fit: cover;
  object-position: center;
  background: #ffffff;
}

.cases-hero {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.cases-hero .case-source-panel {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px 20px;
  border-left: 1px solid rgba(0, 169, 232, 0.26);
  background:
    linear-gradient(135deg, rgba(234, 250, 255, 0.92), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.cases-hero .case-hero-visual {
  width: 100%;
  height: 100%;
  min-height: 108px;
  max-height: 150px;
  padding: 8px;
  object-fit: contain;
  object-position: center;
  border-left: 1px solid rgba(0, 169, 232, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 250, 255, 0.94)),
    #ffffff;
}

.library-hero {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.module-hero .library-material-visual {
  width: 100%;
  height: 100%;
  min-height: 126px;
  max-height: 168px;
  padding: 10px 18px;
  object-fit: contain;
  object-position: center;
  border-left: 1px solid rgba(0, 169, 232, 0.24);
  background:
    linear-gradient(135deg, #ffffff, #eefaff),
    #ffffff;
}

.case-source-panel span {
  color: #087095;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.case-source-panel strong {
  color: var(--uiux-navy);
  font-size: 18px;
}

.case-source-panel em {
  color: var(--uiux-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.case-card {
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
}

.case-image-button {
  height: 230px;
  padding: 12px;
  border-bottom: 1px solid rgba(0, 169, 232, 0.14);
  background:
    linear-gradient(135deg, #ffffff, #eefaff),
    #ffffff;
}

.case-image-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: #ffffff;
}

.case-card > div {
  padding: 18px 20px 20px;
}

.case-card p:not(.muted) {
  min-height: 58px;
}

.case-card-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  min-height: 280px;
  border: 1px solid rgba(0, 176, 240, 0.18);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 60, 255, 0.08);
}

.case-card-split .case-image-button {
  height: 100%;
  min-height: 280px;
  padding: 16px;
  border-right: 1px solid rgba(0, 176, 240, 0.14);
  border-bottom: 0;
  background: linear-gradient(135deg, #f7fcff 0%, #ffffff 100%);
}

.case-card-split .case-image-button img {
  border-radius: 14px;
  background: #ffffff;
}

.case-card-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px 24px;
}

.case-card-body .record-head {
  align-items: flex-start;
  gap: 12px;
}

.case-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-card-meta span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(0, 176, 240, 0.18);
  border-radius: 999px;
  color: #0a5f88;
  background: #effbff;
  font-size: 12px;
  font-weight: 850;
}

.case-card-desc {
  margin: 0;
  color: #23485f;
  font-size: 14px;
  line-height: 1.75;
}

.case-card-split .row-actions {
  margin-top: auto;
}

@media (max-width: 980px) {
  .case-card-split {
    grid-template-columns: 1fr;
  }

  .case-card-split .case-image-button {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 176, 240, 0.14);
  }
}

@media (max-width: 640px) {
  .case-card-body {
    padding: 18px 18px 20px;
  }
}

@media (max-width: 1280px) {
  .dashboard-workbench .brand-banner {
    grid-template-columns: 1fr;
  }

  .brand-process-panel {
    margin: 0 16px 16px;
  }

  .cases-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-workbench .brand-copy {
    padding: 22px 18px;
  }

  .brand-process-panel {
    margin: 0 12px 12px;
  }
}

.app-shell {
  width: 100%;
}

.main {
  width: 100%;
  max-width: none;
}

.dashboard-workbench .brand-banner {
  grid-template-columns: 1fr;
  min-height: 248px;
}

.brand-process-panel {
  display: none;
}

.dashboard-workbench .brand-copy {
  padding: 34px 42px;
}

.dashboard-workbench .brand-copy h2 {
  max-width: 1080px;
  font-size: clamp(42px, 3.7vw, 68px);
}

.dashboard-workbench .brand-copy p:not(.eyebrow) {
  max-width: 1120px;
  font-size: 16px;
}

.brochure-points span,
.profile-points span {
  min-height: 34px;
  padding: 0 15px;
  font-size: 14px;
}

@media (min-width: 1440px) {
  .app-shell {
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 24px;
    padding: 18px 24px 18px 0;
  }

  .sidebar {
    margin-left: 18px;
    padding: 16px;
  }

  .company-card img {
    height: 76px;
  }

  .nav button {
    min-height: 50px;
    padding-inline: 18px;
    font-size: 16px;
  }

  .user-card strong {
    font-size: 21px;
  }

  .main {
    padding: 20px 24px 52px 0;
  }

  .topbar {
    min-height: 66px;
    margin-bottom: 14px;
  }

  .topbar h1 {
    font-size: clamp(46px, 3vw, 62px);
  }

  .eyebrow {
    font-size: 12px;
  }

  .dashboard-workbench {
    gap: 16px;
  }

  .dashboard-workbench .brand-banner {
    min-height: 274px;
  }

  .dashboard-workbench .brand-copy {
    padding: 40px 48px;
  }

  .dashboard-workbench .brand-mark {
    margin-bottom: 18px;
  }

  .dashboard-workbench .brand-mark img {
    width: 50px;
    height: 50px;
  }

  .dashboard-workbench .brand-copy h2 {
    font-size: clamp(52px, 3.4vw, 76px);
  }

  .dashboard-workbench .brand-copy p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.68;
  }

  .metrics,
  .dashboard-workbench .metrics {
    gap: 14px;
  }

  .metric-card,
  .dashboard-workbench .metric-card {
    min-height: 112px;
    padding: 18px 22px;
  }

  .metric-card span {
    font-size: 14px;
  }

  .metric-card strong {
    font-size: clamp(34px, 2vw, 46px);
  }

  .panel,
  .record-card,
  .proof-copy,
  .scene-list,
  .account-section {
    border-radius: 18px;
  }

  .panel {
    padding: 22px;
  }

  .panel-head h2,
  .account-section-title h3 {
    font-size: 24px;
  }

  .record-card,
  .filing-card {
    padding: 22px 24px;
  }

  .record-head strong,
  .case-title-button {
    font-size: 22px;
  }

  .detail-item b,
  .resource-row span {
    font-size: 18px;
  }
}

.dashboard-workbench .company-profile {
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  min-height: 156px;
  padding: 22px 26px;
  border-radius: 20px;
}

.dashboard-workbench .company-profile img {
  height: 104px;
  padding: 14px;
  border-radius: 14px;
}

.dashboard-workbench .company-profile h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 2vw, 42px);
  line-height: 1.12;
}

.dashboard-workbench .company-profile p:not(.eyebrow) {
  max-width: 1280px;
  font-size: 16px;
  line-height: 1.65;
}

.dashboard-workbench .profile-points {
  gap: 10px;
  margin-top: 12px;
}

.dashboard-workbench .profile-points span {
  min-height: 38px;
  padding: 0 18px;
  font-size: 15px;
}

@media (min-width: 1440px) {
  .dashboard-workbench .company-profile {
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 176px;
    padding: 26px 32px;
  }

  .dashboard-workbench .company-profile img {
    height: 118px;
  }

  .dashboard-workbench .company-profile h2 {
    font-size: clamp(34px, 2.1vw, 48px);
  }

  .dashboard-workbench .company-profile p:not(.eyebrow) {
    font-size: 17px;
  }
}

@media (max-width: 720px) {
  .dashboard-workbench .company-profile {
    grid-template-columns: 1fr;
  }

  .dashboard-workbench .company-profile img {
    max-width: 180px;
  }
}

.library-hero,
.cases-hero,
.catalog-hero {
  display: none !important;
}

.dashboard-main-grid .product-summary-panel {
  align-self: start;
  grid-template-columns: 1fr !important;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 176, 240, 0.24);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 60, 255, 0.08);
}

.product-summary-head {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(0, 176, 240, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 100%);
}

.product-summary-logo {
  width: 78px;
  height: 78px;
  padding: 10px;
  object-fit: contain;
  border: 1px solid rgba(0, 176, 240, 0.2);
  border-radius: 16px;
  background: #ffffff;
}

.product-summary-head h2 {
  margin: 4px 0 8px;
  color: var(--ppt-deep);
  font-size: clamp(22px, 1.5vw, 30px);
  line-height: 1.2;
}

.product-summary-head p:not(.eyebrow) {
  max-width: 68ch;
  margin: 0;
  color: #31556b;
  font-size: 14px;
  line-height: 1.7;
}

.product-summary-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-summary-stat-grid,
.product-summary-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-summary-stat-grid div,
.product-summary-spec-grid div {
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid rgba(0, 176, 240, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f6fcff);
}

.product-summary-stat-grid strong {
  display: block;
  color: var(--ppt-blue);
  font-size: 22px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.product-summary-stat-grid span,
.product-summary-spec-grid span {
  display: block;
  margin-top: 7px;
  color: #5d7486;
  font-size: 12px;
  font-weight: 800;
}

.product-summary-spec-grid strong {
  display: block;
  margin-top: 5px;
  color: #113f69;
  font-size: 13px;
  line-height: 1.35;
}

.product-summary-scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-summary-scenes span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(0, 176, 240, 0.2);
  border-radius: 999px;
  color: #075985;
  background: #e9faff;
  font-size: 13px;
  font-weight: 900;
}

.product-summary-keywords {
  margin: 0;
  padding: 24px 28px;
  border: 1px solid rgba(0, 176, 240, 0.2);
  border-radius: 18px;
  color: var(--ppt-deep);
  background: linear-gradient(180deg, #ffffff, #f4fcff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 12px 26px rgba(0, 126, 186, 0.08);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  word-spacing: 0.5em;
}

@media (max-width: 720px) {
  .product-summary-head,
  .product-summary-stat-grid,
  .product-summary-spec-grid {
    grid-template-columns: 1fr;
  }

  .product-summary-logo {
    width: 96px;
  }
}

body {
  background:
    linear-gradient(90deg, rgba(0, 169, 232, 0.018) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, rgba(0, 82, 204, 0.014) 1px, transparent 1px) 0 0 / 96px 96px,
    radial-gradient(circle at 86% 8%, rgba(0, 169, 232, 0.1), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fcff 54%, #eef8fc 100%);
}

.topbar {
  align-items: flex-start;
  gap: 18px;
  min-height: auto;
  margin-bottom: 22px;
  padding: 4px 0 14px;
  border-bottom: 1px solid rgba(0, 169, 232, 0.12);
}

.topbar-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.topbar .eyebrow,
.topbar h1 {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(34px, 3.2vw, 54px);
  line-height: 0.98;
}

.topbar-pills {
  display: none !important;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 3px;
}

.topbar-pills span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(0, 169, 232, 0.2);
  border-radius: 999px;
  color: #075985;
  background: rgba(239, 251, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
}

.topbar-actions {
  padding-top: 12px;
}

.panel,
.record-card,
.metric-card,
.case-card,
.case-detail-media,
.case-detail-copy,
.dashboard-workbench .company-profile,
.dashboard-main-grid .product-summary-panel {
  border-color: rgba(0, 169, 232, 0.18);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(5, 54, 100, 0.075);
}

.record-card,
.panel,
.case-card,
.case-detail-copy {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 253, 255, 0.94)),
    #ffffff;
}

.metric-card {
  min-height: 128px;
  border-top: 0;
  border-left: 5px solid var(--uiux-cyan);
}

.metric-card strong {
  color: #0047d8;
}

.record-head strong,
.case-title-button,
.panel-head h2 {
  color: #06245f;
}

.primary-button,
.ghost-button,
.danger-button,
.nav button,
.record-card[data-view],
.case-image-button,
.case-title-button {
  cursor: pointer;
}

.service-footer {
  position: static;
  grid-column: 2;
  justify-self: end;
  width: auto;
  max-width: min(100%, 292px);
  margin: 2px clamp(18px, 2vw, 30px) 28px 0;
  z-index: auto;
}

.service-footer .service-qr {
  width: 100%;
  min-height: 62px;
  padding: 9px 13px;
  border: 1px solid rgba(0, 169, 232, 0.24);
  border-radius: 16px;
  color: #06245f;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 251, 255, 0.96)),
    #ffffff;
  box-shadow: 0 12px 26px rgba(5, 54, 100, 0.12);
}

.service-qr img {
  width: 42px;
  height: 42px;
}

.service-qr strong {
  color: #0052cc;
  font-size: 18px;
  line-height: 1;
}

.service-qr em {
  color: #526b82;
  font-size: 12px;
}

@media (max-width: 960px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    padding-top: 0;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .main,
  #content,
  .dashboard-workbench,
  .dashboard-main-grid,
  .dashboard-flow,
  .metrics,
  .dashboard-workbench .metrics,
  .dashboard-workbench .company-profile,
  .dashboard-flow .panel,
  .dashboard-main-grid .product-summary-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .main {
    padding: 18px 14px 136px !important;
  }

  .dashboard-main-grid,
  .dashboard-flow,
  .metrics,
  .dashboard-workbench .metrics,
  .dashboard-workbench .company-profile,
  .dashboard-main-grid .product-summary-panel {
    grid-template-columns: 1fr !important;
  }

  .dashboard-workbench {
    gap: 14px;
  }

  .dashboard-workbench .metric-card,
  .dashboard-flow .panel,
  .dashboard-main-grid .product-summary-panel {
    margin-left: 0;
    margin-right: 0;
  }

  .service-footer {
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
    margin: 0 14px 22px;
  }
}

.dashboard-main-grid {
  grid-template-columns: 1fr !important;
}

.dashboard-main-grid .product-summary-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr) !important;
  align-items: stretch;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 20px;
}

.product-summary-head {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 15px;
  padding: 18px 20px;
  border-right: 1px solid rgba(0, 176, 240, 0.16);
  border-bottom: 0;
}

.product-summary-logo {
  width: 64px;
  height: 64px;
  padding: 8px;
  border-radius: 14px;
}

.product-summary-head h2 {
  margin: 3px 0 6px;
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.18;
}

.product-summary-head p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.55;
}

.product-summary-body {
  align-content: center;
  gap: 12px;
  padding: 18px 20px;
}

.product-summary-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-summary-stat-grid div {
  min-height: 66px;
  padding: 12px 14px;
}

.product-summary-stat-grid strong {
  font-size: 20px;
}

.product-summary-spec-grid {
  display: none;
}

.product-summary-scenes {
  gap: 8px;
}

.product-summary-scenes span {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .dashboard-main-grid .product-summary-panel {
    grid-template-columns: 1fr !important;
  }

  .product-summary-head {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 176, 240, 0.16);
  }

  .product-summary-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.traffic-monitor {
  display: grid;
  gap: 18px;
}

.traffic-alert-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(0, 169, 232, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(35, 215, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 255, 0.94));
  box-shadow: var(--shadow-soft);
}

.traffic-alert-panel.has-alert {
  border-color: rgba(201, 54, 66, 0.34);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 90, 80, 0.18), transparent 34%),
    linear-gradient(135deg, #fffafa, #fff4ee);
}

.traffic-alert-panel h2 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 2.4vw, 36px);
}

.traffic-alert-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.traffic-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.traffic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.traffic-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  min-height: 230px;
  gap: 14px;
  padding: 20px 8px 4px;
}

.traffic-bar-item {
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  justify-items: center;
  min-height: 190px;
  gap: 8px;
}

.traffic-bar-item span {
  display: block;
  width: min(48px, 82%);
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 28px rgba(23, 105, 255, 0.18);
}

.traffic-bar-item strong {
  font-size: 15px;
}

.traffic-bar-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.traffic-alert-list {
  min-height: 100%;
}

.traffic-alert-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(201, 54, 66, 0.22);
  border-radius: 14px;
  background: rgba(255, 247, 244, 0.92);
}

.traffic-alert-row + .traffic-alert-row {
  margin-top: 10px;
}

.traffic-alert-row strong {
  color: var(--red);
}

.traffic-alert-row span {
  color: var(--muted);
  line-height: 1.6;
}

.traffic-log-list {
  display: grid;
  gap: 10px;
}

.traffic-log-row {
  display: grid;
  grid-template-columns: 92px minmax(180px, 1fr) minmax(160px, 0.8fr) 158px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(0, 169, 232, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.traffic-log-row em,
.traffic-log-row time {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

@media (max-width: 1180px) {
  .traffic-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .traffic-grid,
  .traffic-log-row {
    grid-template-columns: 1fr;
  }

  .traffic-alert-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .traffic-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traffic-bars {
    gap: 8px;
    overflow-x: auto;
  }

  .traffic-bar-item {
    min-width: 54px;
  }
}

@media (max-width: 640px) {
  .product-summary-head {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 16px;
  }

  .product-summary-logo {
    width: 56px;
    height: 56px;
  }

  .product-summary-body {
    padding: 16px;
  }

  .product-summary-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[data-view="orders"] #pageTitle {
  font-size: clamp(24px, 1.8vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

body[data-view="orders"] .topbar {
  min-height: 52px;
  margin-bottom: 8px;
}

.order-workspace {
  display: grid;
  gap: 14px;
}

.order-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.order-status-card {
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid rgba(166, 203, 239, 0.82);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.92));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
}

.order-status-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-status-card strong {
  font-size: 30px;
  line-height: 1;
}

.order-status-card.active {
  border-color: rgba(23, 105, 255, 0.42);
  box-shadow: 0 18px 32px rgba(23, 105, 255, 0.12);
  transform: translateY(-1px);
}

.order-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid rgba(166, 203, 239, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.order-search {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.order-search input {
  margin-top: 0;
  min-height: 48px;
  border-radius: 12px;
}

.order-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.order-batch-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.order-selection-hint {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(241, 248, 255, 0.94);
  border: 1px solid rgba(166, 203, 239, 0.72);
}

.order-card-list {
  display: grid;
  gap: 14px;
}

.order-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 0;
}

.order-check-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.order-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(166, 203, 239, 0.82);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.order-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.order-card-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(166, 203, 239, 0.8);
  background: linear-gradient(180deg, #f8fcff, #eef7ff);
}

.order-card-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.order-card-head-copy {
  display: grid;
  gap: 6px;
}

.order-card-head-copy strong {
  font-size: 18px;
  line-height: 1.1;
}

.order-card-head-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.order-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.order-summary-item,
.order-recipient-card {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(166, 203, 239, 0.8);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.order-summary-item span,
.order-recipient-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-summary-item b,
.order-recipient-card b {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.order-summary-item em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.order-recipient-card {
  max-width: 200px;
}

.order-meta-line,
.order-meta-files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.order-meta-files a,
.order-meta-line a {
  font-weight: 800;
}

.order-actions-cell {
  width: 150px;
}

.order-actions-cell .order-cell-content {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.order-actions-cell .primary-button,
.order-actions-cell .ghost-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

@media (max-width: 1280px) {
  body[data-view="orders"] .main {
    padding-right: 18px;
  }

  .order-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-toolbar {
    grid-template-columns: 1fr;
  }

  .order-batch-actions {
    justify-content: flex-start;
  }

  .order-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  body[data-view="orders"] #pageTitle {
    font-size: clamp(24px, 5vw, 30px);
  }

  .order-status-grid {
    grid-template-columns: 1fr;
  }

  .order-card-head {
    grid-template-columns: auto 1fr;
  }

  .order-card-head .tag {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

.topbar h1 {
  font-size: clamp(26px, 2.2vw, 36px);
  line-height: 1.08;
}

.order-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(166, 203, 239, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.order-table {
  display: block;
  width: max-content;
  min-width: 1320px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.order-table colgroup {
  display: none;
}

.order-table thead,
.order-table tbody {
  display: block;
}

.order-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.order-table thead tr,
.order-table tbody tr {
  display: grid;
  grid-template-columns: var(--order-grid-columns);
}

.order-table th {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  padding: 16px 14px;
  color: #456175;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
  background: linear-gradient(180deg, #f7fbff, #edf6ff);
  border-bottom: 1px solid rgba(166, 203, 239, 0.72);
}

.order-table td {
  position: relative;
  display: block;
  box-sizing: border-box;
  height: var(--order-row-height, auto);
  padding: 0;
  vertical-align: top;
  overflow: hidden;
  border-bottom: 1px solid rgba(218, 232, 244, 0.82);
}

.order-table th[data-order-col-index="0"],
.order-check-cell {
  width: 38px;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}

.order-table tbody tr {
  height: var(--order-row-height, auto);
  min-height: 0;
  overflow: hidden;
}

.order-table tbody tr > td {
  height: var(--order-row-height, auto);
  max-height: var(--order-row-height, none);
}

.order-cell-content {
  box-sizing: border-box;
  height: var(--order-cell-content-height, auto);
  max-height: var(--order-cell-content-height, none);
  padding: var(--order-row-padding-y, 16px) 14px;
  overflow: hidden;
}

.order-check-content {
  display: grid;
  place-items: start center;
  padding-left: 6px;
  padding-right: 6px;
}

.resizable-th-content {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 22px;
  padding-right: 10px;
}

.order-column-resizer {
  position: absolute;
  top: -16px;
  right: -14px;
  width: 9px;
  height: calc(100% + 32px);
  cursor: col-resize;
  touch-action: none;
}

.order-column-resizer::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 4px;
  width: 1px;
  height: calc(100% - 24px);
  background: rgba(14, 116, 144, 0.18);
}

.order-column-resizer:hover::after,
.resizing-order-column .order-column-resizer::after {
  width: 2px;
  background: rgba(2, 132, 199, 0.62);
}

.order-row-resizer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  z-index: 3;
  height: 8px;
  cursor: ns-resize;
  touch-action: none;
}

.order-row-resizer::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.4);
  opacity: 0;
}

.order-table tbody tr:hover .order-row-resizer::after,
.resizing-order-row .order-row-resizer::after {
  opacity: 1;
}

.resizing-order-row {
  cursor: ns-resize;
  user-select: none;
}

.order-size-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 8px auto;
  padding: 4px;
  border: 1px solid rgba(166, 203, 239, 0.7);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 104, 160, 0.08);
}

.order-size-controls span {
  padding: 0 4px 0 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.order-size-controls button {
  min-width: 34px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  color: #64748b;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.order-size-controls button:hover {
  color: #075985;
  background: rgba(14, 165, 233, 0.1);
}

.order-size-controls button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
}

.order-table tbody tr:last-child td {
  border-bottom: 0;
}

.order-table tbody tr:hover td {
  background: rgba(241, 248, 255, 0.62);
}

.order-check-cell {
  width: 38px;
}

.order-check-cell input,
.order-table th input {
  position: relative;
  z-index: 4;
  width: 18px;
  height: 18px;
  margin: 0;
  pointer-events: auto;
  cursor: pointer;
}

/* 行高/拖拽层不能遮住订单勾选框 */
.order-table .order-check-content {
  position: absolute !important;
  z-index: 4 !important;
  display: grid !important;
  pointer-events: auto !important;
}

.order-table .order-check-cell input[type="checkbox"] {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.order-id-cell {
  width: 138px;
}

.order-id-cell strong,
.order-hospital-cell b,
.order-person-cell b,
.order-product-cell b,
.order-amount-cell b,
.order-receiver-cell b,
.order-logistics-cell b,
.order-quantity-cell b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.order-id-cell .tag {
  margin-top: 9px;
}

.order-hospital-cell {
  width: 220px;
}

.order-person-cell {
  width: 170px;
}

.order-product-cell {
  width: 210px;
}

.order-amount-cell {
  width: 142px;
}

.order-receiver-cell {
  width: 210px;
}

.order-logistics-cell {
  width: 220px;
}

.order-hospital-cell span,
.order-hospital-cell em,
.order-person-cell span,
.order-product-cell span,
.order-product-cell em,
.order-amount-cell span,
.order-amount-cell em,
.order-receiver-cell span,
.order-logistics-cell span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.order-row-actions {
  min-width: 136px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.order-row-actions .primary-button,
.order-row-actions .ghost-button {
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

@media (max-width: 920px) {
  .order-table-wrap {
    border-radius: 18px;
  }

  .order-table {
    min-width: 1180px;
  }

  .order-table th,
  .order-table td {
    padding: 13px 12px;
  }
}

body[data-view="orders"] #pageTitle,
body[data-view="filings"] #pageTitle {
  font-size: clamp(24px, 1.8vw, 30px);
}

.filing-workspace {
  display: grid;
  gap: 14px;
}

.filing-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.filing-status-card {
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(166, 203, 239, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.filing-status-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filing-status-card strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.filing-status-card.active {
  border-color: rgba(5, 174, 234, 0.64);
  background: linear-gradient(135deg, rgba(231, 249, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.filing-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.filing-search {
  width: min(520px, 100%);
}

.filing-search input {
  min-height: 42px;
}

.filing-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(166, 203, 239, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(166, 203, 239, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 104, 160, 0.07);
}

.pagination-summary {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pagination-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-actions button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(166, 203, 239, 0.82);
  border-radius: 9px;
  color: #075985;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.pagination-actions button:hover:not(:disabled) {
  border-color: rgba(2, 132, 199, 0.58);
  background: #eefaff;
}

.pagination-actions .pagination-page.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #0284c7, #1769ff);
  box-shadow: 0 8px 18px rgba(23, 105, 255, 0.2);
}

.pagination-actions button:disabled {
  color: #94a3b8;
  background: #f8fafc;
  cursor: not-allowed;
  opacity: 0.68;
}

.pagination-ellipsis {
  min-width: 18px;
  color: #94a3b8;
  font-weight: 900;
  text-align: center;
}

.filing-table {
  width: 100%;
  min-width: 1440px;
  border-collapse: separate;
  border-spacing: 0;
}

.filing-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 15px 14px;
  color: #456175;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
  background: linear-gradient(180deg, #f7fbff, #edf6ff);
  border-bottom: 1px solid rgba(166, 203, 239, 0.72);
}

.filing-table td {
  padding: 15px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(218, 232, 244, 0.82);
}

.filing-table tbody tr:last-child td {
  border-bottom: 0;
}

.filing-table tbody tr:hover td {
  background: rgba(241, 248, 255, 0.62);
}

.filing-id-cell {
  width: 128px;
}

.filing-hospital-cell {
  width: 220px;
}

.filing-person-cell {
  width: 170px;
}

.filing-product-cell {
  width: 220px;
}

.filing-progress-cell,
.filing-archive-cell {
  width: 190px;
}

.filing-site-cell {
  width: 210px;
}

.filing-file-cell {
  width: 142px;
}

.filing-actions-cell {
  width: 170px;
  min-width: 130px;
}

.filing-id-cell strong,
.filing-hospital-cell b,
.filing-person-cell b,
.filing-product-cell b,
.filing-progress-cell b,
.filing-archive-cell b,
.filing-site-cell b,
.filing-file-cell b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.filing-id-cell .tag {
  margin-top: 9px;
}

.filing-hospital-cell span,
.filing-hospital-cell em,
.filing-person-cell span,
.filing-product-cell span,
.filing-progress-cell span,
.filing-progress-cell em,
.filing-archive-cell span,
.filing-archive-cell em,
.filing-site-cell span,
.filing-site-cell em,
.filing-file-cell span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.filing-row-actions {
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: max-content;
  min-width: 102px;
}

.filing-row-actions .primary-button,
.filing-row-actions .ghost-button,
.filing-row-actions .danger-button {
  width: auto;
  min-width: 44px;
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

@media (max-width: 920px) {
  .filing-status-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filing-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filing-table-wrap {
    border-radius: 18px;
  }

  .filing-table {
    min-width: 1260px;
  }

  .filing-table th,
  .filing-table td {
    padding: 13px 12px;
  }
}

@media (max-width: 920px) {
  .topbar h1 {
    font-size: clamp(24px, 6vw, 32px);
  }
}

body[data-view] {
  font-size: 14px;
}

body[data-view] .main {
  padding-top: 12px;
}

body[data-view] .topbar {
  min-height: 50px;
  margin-bottom: 10px;
  gap: 14px;
}

body[data-view] .topbar h1 {
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.08;
}

body[data-view] .topbar .eyebrow {
  font-size: 11px;
}

body[data-view] .topbar-pills {
  gap: 6px;
}

body[data-view] .topbar-pills span {
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
}

body[data-view] .topbar-actions {
  padding-top: 6px;
  gap: 8px;
}

body[data-view] .topbar-actions .primary-button,
body[data-view] .topbar-actions .ghost-button,
body[data-view] .topbar-actions .danger-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

body[data-view] .panel-head {
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 9px;
}

body[data-view] .panel-head h2,
body[data-view] .role-matrix-head h2 {
  font-size: 18px;
}

body[data-view] .list,
body[data-view] .dashboard-flow {
  gap: 10px;
}

body[data-view] .record-card {
  padding: 14px 16px;
}

body[data-view] .record-head {
  gap: 12px;
}

body[data-view] .record-head strong {
  font-size: 16px;
}

body[data-view] .record-card .detail-row,
body[data-view] .detail-row {
  gap: 8px;
  margin: 10px 0;
}

body[data-view] .record-card .detail-item,
body[data-view] .detail-item {
  min-height: 62px;
  padding: 10px 12px;
}

body[data-view] .detail-item b,
body[data-view] .resource-row > span {
  font-size: 13px;
}

body[data-view] .record-card > p.muted,
body[data-view] .record-card .muted,
body[data-view] .panel .muted {
  font-size: 12px;
  line-height: 1.5;
}

body[data-view] .row-actions {
  gap: 8px;
}

body[data-view] .row-actions .primary-button,
body[data-view] .row-actions .ghost-button,
body[data-view] .row-actions .danger-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

body[data-view] .metric-card {
  min-height: 78px;
  padding: 11px 14px;
}

body[data-view] .metric-card strong {
  font-size: clamp(24px, 2.2vw, 34px);
}

body[data-view] .metric-card span {
  font-size: 12px;
}

@media (max-width: 920px) {
  body[data-view] {
    font-size: 13px;
  }

  body[data-view] .main {
    padding-top: 10px;
  }

  body[data-view] .topbar h1 {
    font-size: clamp(23px, 6vw, 30px);
  }

  body[data-view] .panel-head h2,
  body[data-view] .role-matrix-head h2 {
    font-size: 17px;
  }
}

body[data-view] select,
body[data-view] .department-dropdown {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #075985 50%),
    linear-gradient(135deg, #075985 50%, transparent 50%),
    linear-gradient(180deg, rgba(239, 251, 255, 0.95), rgba(255, 255, 255, 0.98));
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

body[data-view] select:hover,
body[data-view] .department-dropdown:hover {
  background-image:
    linear-gradient(45deg, transparent 50%, #004b8d 50%),
    linear-gradient(135deg, #004b8d 50%, transparent 50%),
    linear-gradient(180deg, #ffffff, #f4fbff);
}

/* Unified badge polish */
.tag,
.topbar-pills span,
.role-permission-head em,
.date-chip {
  border-radius: 999px;
  letter-spacing: 0;
  white-space: nowrap;
}

.tag {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(23, 105, 255, 0.16);
  color: #075985;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 247, 255, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(23, 105, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.tag.pending {
  border-color: rgba(201, 130, 18, 0.24);
  color: #8a5106;
  background:
    linear-gradient(180deg, #fffaf1, #fff0cf);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(201, 130, 18, 0.1);
}

.tag.good {
  border-color: rgba(10, 143, 104, 0.22);
  color: #087453;
  background:
    linear-gradient(180deg, #f3fff9, #dff8ec);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(10, 143, 104, 0.1);
}

.tag.bad {
  border-color: rgba(201, 54, 66, 0.22);
  color: #b42331;
  background:
    linear-gradient(180deg, #fff6f7, #ffe4e7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(201, 54, 66, 0.1);
}

.record-head > .tag,
.order-id-cell .tag,
.filing-id-cell .tag {
  margin-top: 7px;
}

.topbar-pills {
  gap: 7px;
  padding-top: 6px;
}

.topbar-pills span {
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(0, 169, 232, 0.22);
  color: #075985;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 249, 255, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(0, 126, 186, 0.07);
  font-size: 12px;
  font-weight: 900;
}

.filing-status-card,
.order-status-card {
  border-radius: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.filing-status-card:hover,
.order-status-card:hover {
  border-color: rgba(5, 174, 234, 0.56);
  box-shadow: 0 14px 32px rgba(0, 126, 186, 0.11);
  transform: translateY(-1px);
}

.filing-status-card.active,
.order-status-card.active {
  box-shadow:
    inset 4px 0 0 var(--teal),
    0 16px 34px rgba(0, 126, 186, 0.12);
}

.date-chip {
  border: 1px solid rgba(0, 169, 232, 0.18);
  color: #075985;
  background: linear-gradient(180deg, #ffffff, #eaf8ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(0, 169, 232, 0.24);
  border-radius: 12px;
  color: #06233a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 249, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(0, 126, 186, 0.1);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.icon-button:hover {
  color: #004b8d;
  border-color: rgba(5, 174, 234, 0.48);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 126, 186, 0.14);
}

/* Final operational pass: dense tables, controlled type scale, and explicit page zoom. */
.main {
  zoom: var(--ui-zoom, 1);
  transform-origin: top left;
}

.ui-zoom-control {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 30px;
  padding: 3px;
  border: 1px solid rgba(0, 169, 232, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.zoom-level-button {
  width: 36px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  color: #64748b;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.zoom-level-button:hover {
  color: #075985;
  background: rgba(14, 165, 233, 0.1);
}

.zoom-level-button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.18);
}

.compact-icon-button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  border-radius: 8px;
  font-size: 17px;
  box-shadow: none;
}

.filing-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-toolbar > span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(166, 203, 239, 0.78);
  border-radius: 999px;
  color: var(--muted);
  background: #f7fbff;
  font-size: 12px;
  font-weight: 800;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(166, 203, 239, 0.78);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.admin-data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.admin-data-table th,
.admin-data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(218, 232, 244, 0.82);
  vertical-align: middle;
  text-align: left;
}

.admin-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #456175;
  background: linear-gradient(180deg, #f7fbff, #edf6ff);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-data-table td {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.admin-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-data-table tbody tr:hover td {
  background: rgba(241, 248, 255, 0.64);
}

.admin-data-table td > strong,
.admin-data-table td > span,
.admin-data-table td > div > span {
  display: block;
}

.admin-data-table td > span,
.admin-data-table td strong + span,
.admin-data-table td strong + div {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.admin-data-table .table-note,
.admin-data-table .table-description {
  max-width: 320px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-data-table .table-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-data-table .table-chip-list span {
  display: inline-flex;
  margin: 0;
  padding: 3px 7px;
  border: 1px solid rgba(0, 169, 232, 0.18);
  border-radius: 999px;
  color: #075985;
  background: #eefaff;
  font-size: 11px;
}

.compact-row-actions {
  min-width: 92px;
  align-items: stretch;
  gap: 5px;
}

.compact-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.filing-check-cell,
.order-check-cell {
  width: 38px;
  text-align: center !important;
}

.filing-table th input[type="checkbox"],
.order-table th input[type="checkbox"],
.admin-data-table th input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  accent-color: #1769ff;
  vertical-align: middle;
}

.filing-check-cell input,
.order-check-cell input,
.admin-data-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  accent-color: #1769ff;
}

body[data-view] {
  font-size: 13px;
}

body[data-view] .topbar h1 {
  font-size: clamp(23px, 1.8vw, 30px);
}

body[data-view] .panel-head h2,
body[data-view] .invoice-rule-card h2 {
  font-size: 20px;
}

body[data-view] .metrics strong,
body[data-view] .metric strong {
  font-size: clamp(30px, 3.4vw, 54px);
}

@media (max-width: 920px) {
  .filing-toolbar-actions {
    justify-content: flex-start;
  }

  .list-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination-actions {
    justify-content: flex-start;
  }

  .ui-zoom-control {
    order: -1;
  }

  .admin-table-wrap {
    border-radius: 12px;
  }

  .admin-data-table {
    min-width: 900px;
  }
}

.service-footer .service-qr {
  width: min(100vw - 36px, 430px);
  min-height: 118px;
  gap: 18px;
  padding: 13px 16px;
}

.service-qr img {
  width: 92px;
  height: 92px;
  padding: 5px;
  flex: 0 0 92px;
  object-fit: contain;
}

.service-qr strong {
  font-size: 24px;
}

.service-qr em {
  font-size: 14px;
}

@media (max-width: 520px) {
  .service-footer .service-qr {
    width: min(100vw - 24px, 360px);
    min-height: 96px;
    padding: 10px 12px;
  }

  .service-qr img {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .service-qr strong {
    font-size: 20px;
  }
}

.order-table tbody tr[data-order-row-id] {
  display: grid !important;
  grid-template-columns: var(--order-grid-columns, 38px 170px 200px 190px 210px 78px 142px 220px 220px 150px) !important;
  overflow: hidden !important;
}

.order-table tbody tr[data-order-row-id] > td {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.order-table thead tr {
  display: grid !important;
  grid-template-columns: var(--order-grid-columns, 38px 170px 200px 190px 210px 78px 142px 220px 220px 150px) !important;
}

.order-table tbody tr[data-order-row-id] .order-cell-content {
  position: absolute !important;
  inset: 0;
  box-sizing: border-box !important;
  display: block !important;
  overflow: hidden !important;
}

.order-table tbody tr[data-order-row-id] .order-check-cell .order-cell-content {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

.order-table-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
}

.order-table-body {
  display: block;
}

.order-table-head-row,
.order-tr {
  display: grid;
  width: 100%;
}

.order-th {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  padding: 16px 14px;
  color: #456175;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
  background: linear-gradient(180deg, #f7fbff, #edf6ff);
  border-bottom: 1px solid rgba(166, 203, 239, 0.72);
}

.order-td {
  position: relative;
  display: block;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(218, 232, 244, 0.82);
}

.order-tr {
  min-height: 0;
  overflow: hidden;
}

.order-tr[data-order-row-id] .order-cell-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  box-sizing: border-box;
  display: block;
  overflow: hidden;
}

.order-tr[data-order-row-id] .order-check-content {
  display: grid;
  place-items: start center;
}

.order-th[data-order-col-index="0"],
.order-td.order-check-cell {
  width: 38px;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}

.accounts-table {
  table-layout: fixed;
  min-width: 1120px;
}

.accounts-table th,
.accounts-table td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.accounts-table th:nth-child(1),
.accounts-table td:nth-child(1) {
  width: 170px;
}

.accounts-table th:nth-child(2),
.accounts-table td:nth-child(2) {
  width: 130px;
}

.accounts-table th:nth-child(3),
.accounts-table td:nth-child(3) {
  width: 112px;
}

.accounts-table th:nth-child(4),
.accounts-table td:nth-child(4) {
  width: 96px;
}

.accounts-table th:nth-child(5),
.accounts-table td:nth-child(5) {
  width: 220px;
}

.accounts-table th:nth-child(6),
.accounts-table td:nth-child(6) {
  width: 210px;
}

.accounts-table th:nth-child(7),
.accounts-table td:nth-child(7) {
  width: 92px;
  text-align: center;
}

.accounts-table th:nth-child(8),
.accounts-table td:nth-child(8) {
  width: 170px;
}

.accounts-table th:nth-child(9),
.accounts-table td:nth-child(9) {
  width: 140px;
}

.account-name-cell strong {
  color: #123348;
  font-size: 14px;
  font-weight: 900;
}

.account-address-cell,
.account-email-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-email-cell a {
  color: #0b63ce;
  font-weight: 800;
  text-decoration: none;
}

.account-contact-cell strong,
.account-contact-cell a,
.account-contact-cell > span {
  display: block;
}

.account-contact-cell a,
.account-contact-cell > span {
  margin-top: 4px;
  font-size: 11px;
}

.account-contact-cell a {
  color: #0b63ce;
  font-weight: 850;
  text-decoration: none;
}

.account-username-cell code {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(166, 203, 239, 0.66);
  border-radius: 7px;
  color: #36536a;
  background: #f7fbff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-role-cell span,
.account-summary-text,
.account-summary-empty {
  display: inline-flex !important;
  align-items: center;
  min-height: 26px;
  margin-top: 0 !important;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 850;
  white-space: nowrap;
}

.account-role-cell span {
  color: #31536b !important;
  background: rgba(239, 248, 255, 0.96);
  border: 1px solid rgba(166, 203, 239, 0.68);
}

.account-status-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 58px;
  height: 28px;
  margin-top: 0 !important;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 900;
  white-space: nowrap;
}

.account-status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.account-status-pill.active {
  color: #047857 !important;
  border: 1px solid rgba(52, 211, 153, 0.5);
  background: linear-gradient(180deg, #ecfdf5, #dcfce7);
}

.account-status-pill.active i {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.account-status-pill.inactive {
  color: #b42318 !important;
  border: 1px solid rgba(248, 113, 113, 0.46);
  background: #fff1f2;
}

.account-status-pill.inactive i {
  background: #ef4444;
}

.account-summary-text {
  max-width: 100%;
  color: #426075 !important;
  background: rgba(248, 252, 255, 0.96);
  border: 1px solid rgba(203, 223, 239, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-summary-empty {
  color: #8aa0b2 !important;
  background: rgba(244, 248, 251, 0.92);
  border: 1px dashed rgba(166, 190, 209, 0.72);
}

/* Final badge pass: make category/status chips compact and consistent. */
.tag {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  min-height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(42, 126, 193, 0.2) !important;
  color: #24607f !important;
  background: linear-gradient(180deg, #ffffff, #edf8ff) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 10px rgba(42, 126, 193, 0.06) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.tag.pending {
  border-color: rgba(217, 151, 42, 0.34) !important;
  color: #9a5a00 !important;
  background: linear-gradient(180deg, #fffdf6, #fff3d7) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 4px 10px rgba(217, 151, 42, 0.08) !important;
}

.tag.good {
  border-color: rgba(35, 174, 122, 0.32) !important;
  color: #047857 !important;
  background: linear-gradient(180deg, #f8fffb, #e4f8ee) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 4px 10px rgba(35, 174, 122, 0.08) !important;
}

.tag.bad {
  border-color: rgba(235, 91, 105, 0.32) !important;
  color: #b42331 !important;
  background: linear-gradient(180deg, #fffafa, #ffe8eb) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 4px 10px rgba(235, 91, 105, 0.08) !important;
}

.material-card .tag,
.admin-data-table .tag,
.invoice-table .tag,
.order-id-cell .tag,
.filing-id-cell .tag {
  min-height: 24px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
}

/* Released hospitals remain visible to other dealers for 30 days. */
.release-notice-bar {
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid rgba(228, 170, 65, 0.58);
  border-left: 4px solid #d68a12;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdf5, #fff7df);
  box-shadow: 0 8px 22px rgba(159, 105, 18, 0.1);
}

.release-notice-label {
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px 0 12px;
  color: #754300;
  background: linear-gradient(90deg, #fff7db 80%, rgba(255, 247, 219, 0));
}

.release-notice-label strong {
  font-size: 13px;
  white-space: nowrap;
}

.release-notice-label em {
  color: #a16614;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.release-notice-icon {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: #d68a12;
}

.release-notice-viewport {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.release-notice-track {
  display: flex;
  width: max-content;
  min-height: 44px;
  animation: release-notice-marquee 34s linear infinite;
}

.release-notice-bar:hover .release-notice-track {
  animation-play-state: paused;
}

.release-notice-set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.release-notice-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 28px;
  padding: 0 30px;
  border-right: 1px solid rgba(214, 138, 18, 0.28);
  color: #6f4b13;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.release-notice-item strong {
  color: #5c3500;
  font-size: 13px;
}

.release-notice-item em {
  color: #a16614;
  font-style: normal;
}

.expiry-reminder-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.expiry-reminder-card {
  min-width: 0;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid rgba(42, 126, 193, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f5fbff);
  box-shadow: 0 8px 20px rgba(30, 82, 120, 0.07);
  cursor: pointer;
}

.expiry-reminder-card:hover {
  border-color: rgba(42, 126, 193, 0.42);
  transform: translateY(-1px);
}

.expiry-reminder-card span,
.expiry-reminder-card em {
  display: block;
  color: #547086;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.expiry-reminder-card strong {
  display: block;
  margin: 4px 0 3px;
  overflow: hidden;
  color: #17364d;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expiry-reminder-card.warning {
  border-color: rgba(217, 151, 42, 0.35);
  background: linear-gradient(180deg, #fffdf8, #fff6e3);
}

.expiry-reminder-card.warning span {
  color: #9a5a00;
}

.expiry-reminder-card.final {
  border-color: rgba(235, 91, 105, 0.34);
  background: linear-gradient(180deg, #fffafa, #fff0f2);
}

.expiry-reminder-card.final span {
  color: #b42331;
}

.expiry-inline {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  margin-top: 5px;
  padding: 0 9px;
  overflow: hidden;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expiry-inline.warning {
  color: #9a5a00;
  border: 1px solid rgba(217, 151, 42, 0.34);
  background: #fff6df;
}

.expiry-inline.final {
  color: #b42331;
  border: 1px solid rgba(235, 91, 105, 0.34);
  background: #fff0f2;
}

@keyframes release-notice-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .release-notice-track {
    animation: none;
  }
}

@media (max-width: 640px) {
  .release-notice-bar {
    display: block;
  }

  .release-notice-label {
    min-height: 38px;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(214, 138, 18, 0.2);
  }

  .release-notice-track {
    min-height: 40px;
  }

  .release-notice-item {
    padding: 0 20px;
    font-size: 11px;
  }
}
