:root {
  color-scheme: light;
  --bg: #fff7fb;
  --bg-deep: #f0f8ff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: rgba(255, 255, 255, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.62);
  --line: rgba(111, 91, 124, 0.18);
  --line-strong: rgba(60, 130, 255, 0.34);
  --text: #27212b;
  --muted: #736879;
  --blue: #3c82ff;
  --blue-2: #9b8cff;
  --gold: #ff6fb1;
  --gold-2: #d95d99;
  --bad: #ff453a;
  --good: #37c871;
  --orange: #ff9f45;
  --mint: #68d8c4;
  --shadow: 0 20px 54px rgba(87, 61, 105, 0.13);
  --radius: 22px;
  font-family: "SF Pro Rounded", ui-rounded, "Microsoft YaHei UI", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fffafd 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.app-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.22) 25%, transparent 25%);
  background-position: 0 0, 18px 18px;
  background-size: 36px 36px;
  opacity: 0.34;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: relative;
  z-index: 3;
}

.brand-small {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3b2f46;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--gold), var(--blue));
  box-shadow: 0 14px 28px rgba(255, 111, 177, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  backdrop-filter: blur(18px);
  font-weight: 700;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(60, 130, 255, 0.34);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(87, 61, 105, 0.1);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(60, 130, 255, 0.2);
}

.btn-blue {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-color: transparent;
  color: white;
  font-weight: 700;
}

.btn-danger {
  background: rgba(255, 69, 58, 0.09);
  border-color: rgba(255, 69, 58, 0.18);
  color: #b42318;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 30px 20px 112px;
  position: relative;
  z-index: 2;
}

.hero-inner {
  width: min(980px, 100%);
  text-align: center;
}

.title {
  margin: 0;
  font-size: clamp(50px, 8vw, 112px);
  line-height: 1;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(90deg, #27212b 5%, var(--blue) 44%, var(--gold) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.hero-subtitle {
  margin: 26px auto 44px;
  width: min(680px, 100%);
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mega-button {
  min-width: 220px;
  height: 58px;
  font-size: 18px;
}

.user-menu {
  position: relative;
}

.account-chip {
  color: var(--blue);
  border-color: var(--line-strong);
}

.user-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border-radius: 18px;
  display: none;
}

.user-menu:hover .user-popover {
  display: grid;
  gap: 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(45, 35, 55, 0.26);
  padding: 20px;
  backdrop-filter: blur(18px);
}

.modal {
  width: min(520px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.modal-wide {
  width: min(920px, 100%);
}

.modal-extra-wide {
  width: min(1280px, calc(100vw - 32px));
  max-height: min(92vh, 920px);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  font-size: 22px;
}

.close:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(118, 118, 128, 0.1);
}

.form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span,
.label {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  padding: 9px 11px;
  outline: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(60, 130, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(60, 130, 255, 0.13);
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.error {
  color: #b42318;
  background: rgba(255, 69, 58, 0.08);
  border: 1px solid rgba(255, 69, 58, 0.18);
  padding: 10px 12px;
  border-radius: 14px;
}

.success {
  color: #0b5f3d;
  background: rgba(55, 200, 113, 0.12);
  border: 1px solid rgba(55, 200, 113, 0.28);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
}

.workspace {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  padding: 0 26px 26px;
  position: relative;
  z-index: 2;
}

.sidebar,
.main-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.sidebar {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-title,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-title h2,
.panel-title h2 {
  margin: 0;
  font-size: 18px;
}

.project-list {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.import-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.import-label {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 42px;
}

.import-label input {
  display: none;
}

.project-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.58);
}

.project-item.active {
  border-color: var(--line-strong);
  background: rgba(60, 130, 255, 0.08);
}

.project-name {
  min-width: 0;
  color: var(--text);
  text-align: left;
  background: transparent;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border: 1px solid var(--line);
}

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

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin: 18px 0;
}

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

.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 220px));
  gap: 12px;
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.customer-card {
  cursor: pointer;
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  text-align: left;
  overflow: hidden;
}

.customer-card.filled {
  border-color: rgba(60, 130, 255, 0.26);
}

.customer-card.filled::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--intent-color, var(--line));
  box-shadow: 0 0 22px var(--intent-glow, rgba(48, 184, 255, 0.28));
}

.customer-card.filled::after {
  content: attr(data-intent);
  position: absolute;
  top: 10px;
  right: 44px;
  min-width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--intent-color, var(--gold));
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 0 20px var(--intent-glow, rgba(247, 200, 75, 0.28));
}

.customer-card.intent-S {
  --intent-color: #f7c84b;
  --intent-glow: rgba(247, 200, 75, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 225, 0.74));
  border-color: rgba(247, 200, 75, 0.78);
}

.customer-card.intent-A {
  --intent-color: #42dda4;
  --intent-glow: rgba(66, 221, 164, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 255, 244, 0.74));
  border-color: rgba(66, 221, 164, 0.68);
}

.customer-card.intent-B {
  --intent-color: #30b8ff;
  --intent-glow: rgba(48, 184, 255, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 245, 255, 0.74));
  border-color: rgba(48, 184, 255, 0.68);
}

.customer-card.intent-C {
  --intent-color: #b98cff;
  --intent-glow: rgba(185, 140, 255, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 240, 255, 0.74));
  border-color: rgba(185, 140, 255, 0.62);
}

.customer-card.intent-D {
  --intent-color: #8da3b7;
  --intent-glow: rgba(141, 163, 183, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 247, 250, 0.74));
  border-color: rgba(141, 163, 183, 0.5);
}

.customer-card.selected {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.customer-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.customer-name {
  font-weight: 800;
  padding-right: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.customer-card.empty .customer-name {
  color: var(--muted);
  font-weight: 500;
}

.select-box {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.customer-meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 2px;
}

.intent-badge {
  border: 1px solid color-mix(in srgb, var(--intent-color, var(--gold)) 72%, transparent);
  border-radius: 6px;
  padding: 5px 8px;
  color: #fff;
  background: var(--intent-color, var(--gold));
  font-weight: 900;
  letter-spacing: 0;
}

.timer-badge {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(118, 118, 128, 0.1);
  font-weight: 700;
}

.timer-yellow {
  color: #704400;
  background: #f7c84b;
  border-color: rgba(247, 200, 75, 0.76);
}

.timer-red {
  color: #fff;
  background: var(--bad);
  border-color: rgba(255, 93, 108, 0.9);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  background: rgba(118, 118, 128, 0.1);
  font-size: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  padding: 20px;
}

.admin-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(111, 91, 124, 0.14);
  padding: 9px 7px;
  text-align: left;
  vertical-align: middle;
}

.data-table input,
.data-table select {
  width: 118px;
  min-height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 5px 7px;
}

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

.table-actions .btn {
  min-height: 32px;
  padding: 7px 10px;
}

.admin-section-full {
  grid-column: 1 / -1;
}

.declaration-panel {
  display: grid;
  gap: 16px;
}

.application-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.sidebar-tool-btn {
  width: 100%;
  min-height: 44px;
}

.tax-tool-frame-wrap {
  height: min(78vh, 860px);
  padding: 0;
  background: #fff7fb;
}

.tax-tool-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff7fb;
}

.declaration-detail-table,
.declaration-ip-edit-table,
.declaration-product-edit-table {
  table-layout: fixed;
}

.declaration-detail-table th,
.declaration-detail-table td,
.declaration-ip-edit-table th,
.declaration-ip-edit-table td,
.declaration-product-edit-table th,
.declaration-product-edit-table td {
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.declaration-ip-edit-table {
  min-width: 980px;
}

.declaration-product-edit-table {
  min-width: 100%;
}

.declaration-ip-edit-table [data-ip-index] {
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
}

.application-form-shell {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.application-meta-note {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(3, 12, 25, 0.38);
  font-size: 13px;
  line-height: 1.6;
}

.application-form-page {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 28px;
  background: #fff;
  color: #111;
  border-radius: 8px;
  font-family: "SimSun", "Microsoft YaHei", serif;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.application-form-page h1 {
  margin: 0 0 18px;
  text-align: center;
  color: #111;
  font-size: 28px;
}

.application-form-page h2 {
  margin: 22px 0 10px;
  color: #122033;
  font-size: 18px;
}

.form-meta,
.form-notice {
  color: #333;
  line-height: 1.7;
}

.application-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 18px;
  table-layout: fixed;
  font-size: 13px;
}

.application-table th,
.application-table td {
  border: 1px solid #333;
  padding: 8px 10px;
  color: #111;
  vertical-align: top;
  line-height: 1.55;
  min-height: 34px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.application-table th {
  background: #f1f4f8;
  font-weight: 700;
}

.application-kv-table {
  font-size: 14px;
}

.application-dense-table {
  font-size: 12px;
}

.application-dense-table th,
.application-dense-table td {
  padding: 6px 7px;
  line-height: 1.45;
}

.application-form-page [contenteditable="true"] {
  outline: 1px dashed transparent;
}

.application-form-page [contenteditable="true"]:focus {
  outline-color: #0874ff;
  background: #f3f9ff;
}

.inline-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.inline-edit-table {
  min-width: 920px;
  table-layout: fixed;
}

.inline-edit-table input,
.inline-edit-table select,
.inline-edit-table textarea {
  width: 100%;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 6px 8px;
}

.inline-edit-table textarea {
  min-height: 58px;
  resize: vertical;
}

.owner-panel .panel-title {
  align-items: flex-start;
}

.owner-admin-grid {
  margin-top: 20px;
}

.data-table [data-admin-org] {
  width: 160px;
}

.point-transfer {
  display: flex;
  gap: 8px;
  align-items: center;
}

.point-transfer input {
  width: 86px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #10233f;
  background: #fff;
  padding: 5px 8px;
}

.report-page {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 28px;
  background: white;
  color: #122033;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.report-page > * {
  position: relative;
  z-index: 1;
}

.report-page::before {
  content: attr(data-watermark);
  position: absolute;
  inset: -80px;
  z-index: 0;
  color: rgba(11, 61, 115, 0.13);
  font-size: 42px;
  font-weight: 900;
  line-height: 2.8;
  text-align: center;
  white-space: pre-wrap;
  transform: rotate(-28deg);
  pointer-events: none;
  opacity: 0.8;
  content: attr(data-watermark) "\A\A" attr(data-watermark) "\A\A" attr(data-watermark) "\A\A" attr(data-watermark) "\A\A" attr(data-watermark) "\A\A" attr(data-watermark);
}

.report-page h1,
.report-page h2,
.report-page h3 {
  color: #0b3d73;
}

.report-page section {
  break-inside: avoid;
  margin: 22px 0;
}

.report-cover {
  border-radius: 8px;
  padding: 28px;
  color: white;
  background: linear-gradient(135deg, #0b3d73, #1677b8 58%, #f7c84b);
  box-shadow: 0 12px 32px rgba(11, 61, 115, 0.18);
}

.report-cover h1 {
  color: white;
  margin: 8px 0 12px;
  font-size: 30px;
}

.report-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.report-summary-band,
.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.report-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-summary-band div,
.report-metrics div {
  border: 1px solid #d8e7f5;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #f7fbff, #eef6ff);
}

.report-summary-band span,
.report-metrics span {
  display: block;
  color: #5b7188;
  font-size: 12px;
}

.report-summary-band strong,
.report-metrics strong {
  display: block;
  margin-top: 6px;
  color: #0b3d73;
  font-size: 18px;
}

.report-section {
  padding: 20px 0;
  border-top: 2px solid #e4eef8;
}

.report-callout {
  border-left: 5px solid #1677b8;
  border-radius: 8px;
  padding: 14px 16px;
  background: #f0f7ff;
}

.report-info-table,
.policy-table,
.timeline-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.92);
}

.report-info-table th,
.report-info-table td,
.policy-table th,
.policy-table td,
.timeline-table th,
.timeline-table td {
  border: 1px solid #d9e5f0;
  padding: 10px;
  vertical-align: top;
}

.report-info-table th,
.policy-table th,
.timeline-table th {
  color: #0b3d73;
  background: #eaf4ff;
}

.policy-table th {
  background: #0b3d73;
  color: white;
}

.policy-table tr:nth-child(even),
.timeline-table tr:nth-child(even) {
  background: #f8fbff;
}

.report-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.report-chip-grid span {
  border: 1px solid #d8e7f5;
  border-radius: 999px;
  padding: 7px 11px;
  background: #f8fbff;
  color: #24465f;
  font-size: 13px;
}

.report-risk-list {
  border: 1px solid #f4d9a6;
  border-radius: 8px;
  padding: 14px 18px 14px 32px;
  background: #fff8ea;
}

.policy-detail {
  border-left: 4px solid #f7c84b;
  padding: 8px 0 8px 14px;
  margin: 12px 0;
  background: rgba(247, 200, 75, 0.08);
}

.report-actions {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.daily-report-panel {
  padding: 20px;
}

.daily-report-text {
  width: 100%;
  min-height: min(58vh, 520px);
  border-radius: 8px;
  border: 1px solid var(--line);
  color: #102033;
  background: #f8fbff;
  padding: 16px;
  resize: vertical;
  line-height: 1.8;
  outline: 0;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 58px;
  z-index: 40;
  width: min(360px, calc(100vw - 48px));
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 14px 16px;
}

.contact-note {
  position: fixed;
  right: 18px;
  bottom: 42px;
  z-index: 5;
  max-width: min(520px, calc(100vw - 36px));
  color: rgba(115, 104, 121, 0.78);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

.beian-footer {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(720px, calc(100vw - 28px));
  color: rgba(202, 234, 255, 0.78);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  flex-wrap: wrap;
}

.beian-police {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.beian-police img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.user-center-panel {
  min-height: 360px;
}

.user-center-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.metric-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 12, 25, 0.38);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.metric-box span {
  color: var(--muted);
  font-size: 13px;
}

.metric-box strong {
  color: var(--gold);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.link-button {
  padding: 0;
  background: transparent;
  color: var(--blue);
  min-height: auto;
}

/* Enterprise Memphis + business flat style refresh */
:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-deep: #eef3f8;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --panel-soft: #f1f6fb;
  --line: #0d315a;
  --line-strong: #0d315a;
  --text: #10233f;
  --muted: #5c6f86;
  --blue: #2176ff;
  --blue-2: #00a6d6;
  --gold: #f4c542;
  --gold-2: #d89400;
  --bad: #e24b62;
  --good: #16a878;
  --coral: #ff6b5f;
  --mint: #25c7a2;
  --shadow: 8px 8px 0 rgba(13, 49, 90, 0.12);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

body {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(33, 118, 255, 0.035) 25%, transparent 25%) 0 0 / 42px 42px,
    linear-gradient(45deg, transparent 75%, rgba(244, 197, 66, 0.08) 75%) 0 0 / 58px 58px,
    linear-gradient(180deg, #fbfcff 0%, #f1f5f9 100%);
}

.app-shell {
  overflow: hidden;
}

.app-shell::before {
  background:
    linear-gradient(90deg, transparent 0 46px, rgba(13, 49, 90, 0.045) 46px 48px, transparent 48px 96px),
    linear-gradient(0deg, transparent 0 46px, rgba(13, 49, 90, 0.04) 46px 48px, transparent 48px 96px);
  background-size: 96px 96px;
  mask-image: none;
}

.app-shell::after {
  content: "";
  position: fixed;
  inset: 96px 5vw auto auto;
  width: 180px;
  height: 180px;
  pointer-events: none;
  border: 8px solid #0d315a;
  background:
    linear-gradient(135deg, transparent 46%, #0d315a 46% 54%, transparent 54%),
    #f4c542;
  box-shadow:
    -78vw 46vh 0 -46px rgba(37, 199, 162, 0.72),
    -58vw 10vh 0 -64px rgba(255, 107, 95, 0.64),
    -18vw 62vh 0 -68px rgba(33, 118, 255, 0.55);
  transform: rotate(8deg);
  opacity: 0.12;
}

.topbar {
  height: 82px;
  padding: 0 36px;
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 4px solid #0d315a;
}

.brand-small {
  color: #0d315a;
  font-weight: 900;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 4px solid #0d315a;
  border-radius: 0;
  background:
    linear-gradient(90deg, #2176ff 0 50%, #f4c542 50% 100%);
  box-shadow: 4px 4px 0 #ff6b5f;
  transform: rotate(45deg);
}

.btn,
.icon-button,
.field input,
.field select,
.field textarea,
.data-table input,
.data-table select,
.daily-report-text {
  border: 3px solid #0d315a;
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(13, 49, 90, 0.12);
}

.btn {
  color: #0d315a;
  background: #ffffff;
  font-weight: 800;
}

.btn:hover {
  transform: translate(-1px, -1px);
  border-color: #0d315a;
  background: #eef7ff;
  box-shadow: 6px 6px 0 rgba(13, 49, 90, 0.16);
}

.btn-primary {
  color: #0d315a;
  background: #f4c542;
  border-color: #0d315a;
  box-shadow: 5px 5px 0 #0d315a;
}

.btn-blue {
  color: #ffffff;
  background: #2176ff;
  border-color: #0d315a;
  box-shadow: 5px 5px 0 #0d315a;
}

.btn-danger {
  color: #ffffff;
  background: #e24b62;
  border-color: #0d315a;
}

.hero {
  min-height: calc(100vh - 82px);
  padding: 42px 20px 132px;
}

.hero-inner {
  position: relative;
  width: min(1040px, 100%);
  padding: 54px 44px;
  border: 5px solid #0d315a;
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 20%, rgba(37, 199, 162, 0.42) 0 10px, transparent 11px),
    radial-gradient(circle at 84% 18%, rgba(255, 107, 95, 0.38) 0 12px, transparent 13px),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 12px 12px 0 #0d315a;
  text-align: center;
}

.hero-inner::before,
.hero-inner::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 4px solid #0d315a;
}

.hero-inner::before {
  left: 28px;
  bottom: 32px;
  width: 84px;
  height: 28px;
  background: repeating-linear-gradient(90deg, #2176ff 0 12px, #ffffff 12px 20px);
  transform: rotate(-8deg);
}

.hero-inner::after {
  right: 36px;
  bottom: 42px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f4c542;
  box-shadow: -26px -24px 0 -12px #ff6b5f;
}

.title {
  color: #0d315a;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: 5px 5px 0 rgba(244, 197, 66, 0.65);
  font-weight: 900;
}

.hero-subtitle {
  width: min(760px, 100%);
  margin: 28px auto 24px;
  color: #2d435f;
  font-size: 18px;
  font-weight: 700;
}

.hero-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(840px, 100%);
  margin: 0 auto 36px;
}

.hero-feature-grid span {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0d315a;
  font-weight: 900;
  box-shadow: none;
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-block;
  border: 4px solid #0d315a;
  border-radius: 50% 50% 12px 12px;
  background:
    radial-gradient(circle at 50% 13px, #ffffff 0 8px, transparent 9px),
    linear-gradient(#2176ff 0 100%);
  position: relative;
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
  border: 3px solid #0d315a;
  pointer-events: none;
}

.feature-icon::before {
  left: 12px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
}

.feature-icon::after {
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 14px;
  border-radius: 14px 14px 4px 4px;
  background: #ffffff;
}

.feature-icon-crm {
  background:
    radial-gradient(circle at 14px 15px, #ffffff 0 7px, transparent 8px),
    radial-gradient(circle at 33px 15px, #ffffff 0 7px, transparent 8px),
    linear-gradient(#2176ff 0 100%);
}

.feature-icon-policy {
  background:
    linear-gradient(#ffffff 0 0) 25px 14px / 14px 4px no-repeat,
    linear-gradient(#ffffff 0 0) 25px 24px / 14px 4px no-repeat,
    linear-gradient(#25c7a2 0 100%);
}

.feature-icon-diagnosis {
  border-radius: 50% 50% 12px 12px;
  background:
    linear-gradient(#ffffff 0 0) 27px 27px / 12px 4px no-repeat,
    linear-gradient(#ffffff 0 0) 31px 23px / 4px 12px no-repeat,
    linear-gradient(#ff6b5f 0 100%);
}

.feature-icon-daily {
  background:
    linear-gradient(#ffffff 0 0) 24px 14px / 15px 4px no-repeat,
    linear-gradient(#ffffff 0 0) 24px 24px / 15px 4px no-repeat,
    linear-gradient(#f4c542 0 100%);
}

.sidebar,
.main-panel,
.modal,
.user-popover,
.admin-section,
.metric-box,
.import-box,
.project-item,
.customer-card,
.toast {
  border: 4px solid #0d315a;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 8px 8px 0 rgba(13, 49, 90, 0.12);
  backdrop-filter: none;
}

.workspace {
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 22px;
  padding: 0 28px 104px;
}

.sidebar {
  background:
    linear-gradient(135deg, rgba(244, 197, 66, 0.15) 0 24%, transparent 24%),
    #ffffff;
}

.main-panel {
  background:
    linear-gradient(90deg, rgba(33, 118, 255, 0.06) 0 18%, transparent 18%),
    #ffffff;
}

.sidebar-title h2,
.panel-title h2,
.modal-head h2 {
  color: #0d315a;
  font-weight: 900;
}

.field span,
.label,
.hint,
.customer-meta,
.customer-card.empty .customer-name,
.metric-box span {
  color: #5c6f86;
}

.field input,
.field select,
.field textarea,
.data-table input,
.data-table select {
  color: #10233f;
  background: #ffffff;
}

.project-item,
.customer-card {
  background: #f8fbff;
}

.project-item.active,
.customer-card.filled {
  background: #fff7d6;
  border-color: #0d315a;
}

.customer-card.intent-S,
.customer-card.intent-A,
.customer-card.intent-B,
.customer-card.intent-C,
.customer-card.intent-D {
  border-color: #0d315a;
  background: #ffffff;
}

.customer-card.filled::before {
  width: 10px;
  box-shadow: none;
}

.customer-card.filled::after,
.intent-badge {
  color: #0d315a;
  border: 3px solid #0d315a;
  border-radius: 6px;
  box-shadow: 3px 3px 0 rgba(13, 49, 90, 0.2);
}

.timer-badge,
.pill {
  color: #0d315a;
  border: 2px solid #0d315a;
  border-radius: 999px;
  background: #ffffff;
}

.modal-backdrop {
  background: rgba(13, 49, 90, 0.42);
}

.modal {
  background: #ffffff;
}

.modal-head {
  border-bottom: 4px solid #0d315a;
  background: #eef7ff;
}

.close {
  color: #0d315a;
  border: 3px solid transparent;
}

.close:hover {
  color: #0d315a;
  border-color: #0d315a;
  background: #f4c542;
}

.data-table th,
.data-table td {
  border-bottom: 3px solid rgba(13, 49, 90, 0.12);
}

.report-page {
  border: 4px solid #0d315a;
  box-shadow: 8px 8px 0 rgba(13, 49, 90, 0.14);
}

.report-cover {
  border: 4px solid #0d315a;
  color: #ffffff;
  background: linear-gradient(135deg, #0d315a 0%, #2176ff 52%, #f4c542 52% 100%);
  box-shadow: 7px 7px 0 rgba(13, 49, 90, 0.16);
}

.report-summary-band div,
.report-metrics div,
.report-callout,
.report-chip-grid span,
.report-risk-list,
.policy-detail {
  border: 3px solid #0d315a;
  border-radius: 8px;
  background: #ffffff;
}

.policy-table th {
  background: #0d315a;
}

.report-info-table th,
.timeline-table th {
  color: #0d315a;
  background: #fff2bf;
}

.contact-note {
  right: 18px;
  bottom: 58px;
  display: grid;
  justify-items: end;
  gap: 3px;
  padding: 10px 12px;
  border: 3px solid #0d315a;
  border-radius: 8px;
  color: #0d315a;
  background: #ffffff;
  box-shadow: 5px 5px 0 rgba(13, 49, 90, 0.14);
  font-weight: 700;
  line-height: 1.35;
}

.contact-note span:first-child {
  color: #2176ff;
  font-weight: 900;
}

.beian-footer {
  color: #31506f;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(13, 49, 90, 0.12);
  border-radius: 999px;
  padding: 5px 12px;
}

.register-invite-hint {
  color: #10233f;
  background: #fff7d6;
  border: 3px solid #0d315a;
  border-left: 8px solid #f4c542;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
}

.agreement-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #10233f;
  font-size: 13px;
  line-height: 1.7;
}

.agreement-row input {
  margin-top: 5px;
  accent-color: #f4c542;
}

.agreement-row .link-button {
  color: #0d58a6;
  font-weight: 800;
  text-decoration: underline;
}

.legal-backdrop {
  z-index: 32;
  background: rgba(13, 49, 90, 0.58);
}

.legal-doc {
  display: grid;
  gap: 10px;
  padding: 22px;
  color: #10233f;
  line-height: 1.85;
}

.legal-doc h3,
.legal-doc h4,
.legal-doc p {
  margin: 0;
}

.legal-doc h3 {
  font-size: 22px;
  color: #0d315a;
  text-align: center;
}

.legal-doc h4 {
  margin-top: 8px;
  color: #0d315a;
  font-size: 16px;
}

@media (max-width: 1180px) {
  .customer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    padding: 0 16px;
  }

  .hero-inner {
    padding: 40px 20px;
  }

  .hero-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .workspace {
    grid-template-columns: 1fr;
    padding: 0 14px 18px;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    justify-content: stretch;
  }

  .toolbar-actions .btn {
    flex: 1 1 140px;
  }

  .filters,
  .form-grid,
  .application-toolbar,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .customer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-center-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .nav-actions {
    gap: 8px;
  }

  .hero-feature-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-feature-grid span {
    min-height: 56px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .contact-note {
    left: 12px;
    right: 12px;
    justify-items: start;
    text-align: left;
  }

  .btn {
    padding: 0 12px;
  }

  .customer-grid {
    grid-template-columns: 1fr;
  }

  .user-center-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .application-form-shell .report-actions,
  .application-meta-note,
  body:has(.application-form-page) .topbar,
  body:has(.application-form-page) .contact-note,
  body:has(.application-form-page) .toast,
  body:has(.application-form-page) .admin-section,
  body:has(.application-form-page) .application-toolbar,
  body:has(.application-form-page) .panel-title {
    display: none !important;
  }

  .application-form-page {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 16mm;
    box-shadow: none;
    border-radius: 0;
  }
}

/* 2026-06 layout polish: Apple-style business home, top tool entry, overdue emphasis */
body {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.7) 0 12%, transparent 12% 34%, rgba(255, 255, 255, 0.26) 34% 43%, transparent 43%),
    linear-gradient(145deg, #fff1e7 0%, #ffb05f 34%, #ff6a4a 66%, #f33f63 100%);
}

.app-shell::before {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.62) 0 9%, transparent 9% 24%, rgba(255, 255, 255, 0.22) 24% 31%, transparent 31%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), transparent 42%),
    linear-gradient(35deg, transparent 0 58%, rgba(255, 255, 255, 0.18) 58% 66%, transparent 66%);
  background-size: auto;
  opacity: 1;
  mask-image: none;
}

.topbar {
  background: rgba(255, 246, 240, 0.36);
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(24px) saturate(1.2);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-tool-btn {
  min-height: 32px;
  height: 32px;
  max-width: 142px;
  padding: 0 12px;
  border-radius: 999px;
  color: #4d1c13;
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px rgba(138, 39, 25, 0.14);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.topbar-tool-btn:hover {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 24px rgba(138, 39, 25, 0.18);
}

.hero {
  align-items: start;
  padding-top: clamp(64px, 9vh, 110px);
}

.hero-inner {
  width: min(1060px, 100%);
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 30px 70px rgba(117, 30, 18, 0.14));
}

.hero-inner::before,
.hero-inner::after {
  content: none;
}

.title {
  color: #111827;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: none;
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 800;
}

.hero-subtitle {
  width: min(760px, 100%);
  color: rgba(59, 31, 23, 0.78);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 600;
}

.hero-feature-grid {
  gap: 12px;
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.hero-feature-grid span {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.26));
  color: #4a2118;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 18px 38px rgba(129, 37, 22, 0.14);
  backdrop-filter: blur(22px) saturate(1.2);
}

.feature-icon {
  display: none;
}

.mega-button {
  background: linear-gradient(135deg, #ff4f7f 0%, #ff7d55 48%, #ff9a4a 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 22px 52px rgba(172, 45, 30, 0.28);
}

.customer-card.warn-red {
  border-color: rgba(255, 59, 48, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 237, 235, 0.94));
  box-shadow: 0 18px 42px rgba(255, 59, 48, 0.18);
}

.customer-card.warn-red::before {
  background: #ff3b30;
  box-shadow: 0 0 28px rgba(255, 59, 48, 0.46);
}

.customer-card.warn-red .customer-name {
  color: #9f1d16;
}

.timer-red {
  color: #ffffff;
  background: #ff3b30;
  border-color: #ff3b30;
  box-shadow: 0 8px 18px rgba(255, 59, 48, 0.26);
}

.follow-alert {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 59, 48, 0.38);
  border-radius: 10px;
  color: #9f1d16;
  background: rgba(255, 59, 48, 0.12);
  font-weight: 900;
}

@media (max-width: 620px) {
  .topbar {
    gap: 10px;
  }

  .brand-small span:last-child {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-tool-btn {
    max-width: 112px;
    padding: 0 10px;
    font-size: 11px;
  }
}

@media print {
  body {
    background: white;
  }

  .topbar,
  .report-actions,
  .modal-head,
  .toast {
    display: none !important;
  }

  .modal-backdrop {
    position: static;
    display: block;
    background: white;
    padding: 0;
  }

  .modal {
    width: auto;
    max-height: none;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .report-page {
    width: 210mm;
    min-height: 297mm;
    padding: 18mm;
    border-radius: 0;
  }
}

/* Final Apple-style refresh overrides */
:root {
  color-scheme: light;
  --bg: #fff7fb;
  --bg-deep: #f0f8ff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: rgba(255, 255, 255, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.62);
  --line: rgba(111, 91, 124, 0.18);
  --line-strong: rgba(60, 130, 255, 0.34);
  --text: #27212b;
  --muted: #736879;
  --blue: #3c82ff;
  --blue-2: #9b8cff;
  --gold: #ff6fb1;
  --gold-2: #d95d99;
  --bad: #ff453a;
  --good: #37c871;
  --orange: #ff9f45;
  --mint: #68d8c4;
  --shadow: 0 20px 54px rgba(87, 61, 105, 0.13);
  --radius: 22px;
  font-family: "SF Pro Rounded", ui-rounded, "Microsoft YaHei UI", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  color: var(--text);
  background: linear-gradient(180deg, #fffafd 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

.app-shell::before {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.22) 25%, transparent 25%);
  background-position: 0 0, 18px 18px;
  background-size: 36px 36px;
  opacity: 0.34;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

.app-shell::after {
  content: none;
}

.topbar {
  height: 76px;
  padding: 0 34px;
  background: transparent;
  border-bottom: 0;
}

.brand-small {
  color: #3b2f46;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--gold), var(--blue));
  box-shadow: 0 14px 28px rgba(255, 111, 177, 0.2);
  transform: none;
}

.btn,
.icon-button,
.field input,
.field select,
.field textarea,
.data-table input,
.data-table select,
.daily-report-text {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}

.btn {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(60, 130, 255, 0.2);
}

.btn-blue {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-color: transparent;
}

.sidebar,
.main-panel,
.modal,
.user-popover,
.admin-section,
.metric-box,
.import-box,
.project-item,
.customer-card,
.toast {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.project-item,
.customer-card,
.admin-section,
.import-box {
  background: rgba(255, 255, 255, 0.58);
}

.project-item.active,
.customer-card.filled {
  background: rgba(60, 130, 255, 0.08);
  border-color: var(--line-strong);
}

.customer-card.intent-S { background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,248,225,.74)); }
.customer-card.intent-A { background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(232,255,244,.74)); }
.customer-card.intent-B { background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(232,245,255,.74)); }
.customer-card.intent-C { background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,240,255,.74)); }
.customer-card.intent-D { background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,247,250,.74)); }

.customer-card.filled::before {
  width: 6px;
  box-shadow: 0 0 22px var(--intent-glow, rgba(60, 130, 255, 0.28));
}

.customer-card.filled::after,
.intent-badge {
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 22px var(--intent-glow, rgba(60, 130, 255, 0.16));
}

.timer-badge,
.pill {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(118, 118, 128, 0.1);
}

.field input,
.field select,
.field textarea,
.data-table input,
.data-table select,
.inline-edit-table input,
.inline-edit-table select,
.inline-edit-table textarea {
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
}

.modal-backdrop {
  background: rgba(45, 35, 55, 0.26);
  backdrop-filter: blur(18px);
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .report-actions,
  .modal-head,
  .toast,
  body:has(.application-form-page) .contact-note,
  body:has(.application-form-page) .admin-section,
  body:has(.application-form-page) .application-toolbar,
  body:has(.application-form-page) .panel-title {
    display: none !important;
  }

  .modal-backdrop {
    position: static;
    display: block;
    background: #fff;
    padding: 0;
    backdrop-filter: none;
  }

  .modal {
    width: auto;
    max-height: none;
    border: 0;
    box-shadow: none;
    overflow: visible;
    background: #fff;
  }

  .application-form-page,
  .report-page {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 16mm;
    box-shadow: none;
    border-radius: 0;
  }
}
