:root {
  --bg-color: #f5f5f7;
  --bg-soft: #fbfbfd;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-muted: rgba(247, 247, 249, 0.86);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #8a8a91;
  --accent-color: #006edb;
  --accent-hover: #0077ed;
  --success-color: #137333;
  --warning-color: #9a6700;
  --danger-color: #b3261e;
  --line-color: rgba(29, 29, 31, 0.08);
  --line-strong: rgba(29, 29, 31, 0.13);
  --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.055);
  --shadow-hover: 0 22px 52px rgba(17, 24, 39, 0.085);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 245, 247, 0.96) 38%, #eef1f5 100%),
    repeating-linear-gradient(90deg, rgba(29, 29, 31, 0.012) 0 1px, transparent 1px 92px);
  color: var(--text-primary);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro SC",
    "PingFang SC",
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

input,
select,
button,
a {
  appearance: none;
  -webkit-appearance: none;
}

.apple-navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  min-height: 52px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.06);
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.apple-navbar-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-brand,
.navbar-meta {
  font-size: 0.94rem;
  line-height: 1;
}

.navbar-brand {
  font-weight: 650;
  letter-spacing: 0;
}

.navbar-meta {
  color: var(--text-secondary);
  margin-right: auto;
}

.navbar-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.navbar-user {
  max-width: min(38vw, 360px);
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-button {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-button:hover {
  border-color: var(--line-strong);
  background: #ffffff;
}

.page-shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 max(44px, env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 28px 0 24px;
}

.hero::before {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(29, 29, 31, 0.08), rgba(29, 29, 31, 0.28), rgba(29, 29, 31, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 8px 18px rgba(17, 24, 39, 0.055);
  opacity: 0.84;
  animation: heroDetailIn 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  max-width: 100%;
  font-size: 4.9rem;
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: 0;
  text-wrap: balance;
  color: transparent;
  background: linear-gradient(180deg, #111113 0%, #292c31 58%, #666d78 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 16px 34px rgba(29, 29, 31, 0.045);
  animation: heroReveal 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -19px;
  width: min(186px, 42%);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(29, 29, 31, 0.18), rgba(0, 110, 219, 0.18), rgba(29, 29, 31, 0.18), transparent);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  opacity: 0;
  animation: heroRuleReveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms both;
}

@keyframes heroDetailIn {
  from {
    opacity: 0;
    transform: translateY(5px) scaleX(0.82);
  }

  to {
    opacity: 0.84;
    transform: translateY(0) scaleX(1);
  }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroRuleReveal {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes statusSweep {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

.workspace {
  display: grid;
  gap: 22px;
}

.app-view {
  animation: viewIn 220ms ease both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-soft);
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 46%);
  pointer-events: none;
}

.auth-page {
  display: grid;
  min-height: calc(100vh - 112px);
  place-items: center;
}

.auth-card {
  width: min(430px, 100%);
  padding: 34px;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  border: 1px solid rgba(29, 29, 31, 0.09);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 247, 249, 0.82)),
    linear-gradient(135deg, rgba(0, 110, 219, 0.1), transparent 48%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 26px rgba(17, 24, 39, 0.08);
}

.auth-mark::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 18px;
  border: 2px solid rgba(0, 110, 219, 0.72);
  border-top-color: rgba(29, 29, 31, 0.16);
  border-radius: 50%;
}

.auth-copy h1,
.view-header h1,
.placeholder-panel h1 {
  margin: 10px 0 0;
  font-size: 2.25rem;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: 0;
}

.auth-copy p,
.view-header p,
.placeholder-panel p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  line-height: 1.58;
}

.login-form,
.account-form {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-primary);
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form-field select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(29, 29, 31, 0.55) 50%),
    linear-gradient(135deg, rgba(29, 29, 31, 0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-field input:focus,
.form-field select:focus {
  border-color: rgba(0, 110, 219, 0.42);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 110, 219, 0.08);
}

.form-status {
  min-height: 42px;
  padding: 11px 13px;
  border: 1px solid var(--line-color);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.35;
}

.form-status.success {
  color: var(--success-color);
  background: rgba(19, 115, 51, 0.07);
  border-color: rgba(19, 115, 51, 0.13);
}

.form-status.error {
  color: var(--danger-color);
  background: rgba(179, 38, 30, 0.07);
  border-color: rgba(179, 38, 30, 0.13);
}

.form-status.processing {
  color: var(--accent-color);
  background: rgba(0, 110, 219, 0.07);
  border-color: rgba(0, 110, 219, 0.13);
}

.form-status.warning {
  color: var(--warning-color);
  background: rgba(154, 103, 0, 0.07);
  border-color: rgba(154, 103, 0, 0.13);
}

.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-top: 18px;
}

.view-header p {
  max-width: 320px;
  text-align: right;
}

.view-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

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

.entry-card {
  min-height: 156px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 249, 251, 0.82));
  box-shadow: var(--shadow-soft);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.entry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 110, 219, 0.16);
  box-shadow: var(--shadow-hover);
}

.entry-card span {
  display: block;
  color: var(--accent-color);
  font-size: 0.82rem;
  font-weight: 650;
}

.entry-card strong {
  display: block;
  margin-top: 18px;
  color: var(--text-primary);
  font-size: 1.06rem;
  line-height: 1.42;
  font-weight: 650;
}

.admin-panel {
  padding: 26px;
}

.admin-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: 24px;
}

.tight-heading {
  margin-bottom: 12px;
}

.created-account {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid rgba(0, 110, 219, 0.13);
  border-radius: 18px;
  background: rgba(0, 110, 219, 0.055);
}

.created-account-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.created-account-head span,
.created-account-grid span {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.created-account-head strong {
  font-size: 1.2rem;
  letter-spacing: 0;
}

.created-account-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.batch-account-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-color);
}

.batch-textarea {
  width: 100%;
  min-height: 188px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-primary);
  font: inherit;
  line-height: 1.55;
  outline: none;
}

.batch-textarea:focus {
  border-color: rgba(0, 110, 219, 0.42);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 110, 219, 0.08);
}

.batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

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

.accounts-list.empty,
.accounts-list.loading {
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--line-color);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-secondary);
}

.account-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(108px, 0.55fr) minmax(108px, 0.55fr) 74px;
  gap: 10px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-color);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.account-main,
.account-code {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-name,
.account-code strong {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-role,
.account-code span,
.account-muted {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.account-permission-summary {
  display: block;
  margin-top: 3px;
  color: var(--text-tertiary);
  font-style: normal;
}

.account-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid var(--line-color);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
}

.account-state.active {
  color: var(--success-color);
  background: rgba(19, 115, 51, 0.07);
  border-color: rgba(19, 115, 51, 0.13);
}

.account-state.disabled {
  color: var(--text-secondary);
  background: rgba(29, 29, 31, 0.045);
}

.account-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-permission-controls {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 2px;
}

.permission-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.permission-check input {
  accent-color: var(--accent-color);
}

.plain-button,
.compact-button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 0.82rem;
}

.plain-button {
  border: 1px solid var(--line-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
}

.plain-button:hover {
  border-color: var(--line-strong);
  background: #ffffff;
}

.plain-button.danger {
  color: var(--danger-color);
}

.plain-link {
  color: var(--accent-color);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.plain-link:hover {
  text-decoration: underline;
}

.monitor-panel {
  padding: 26px;
}

.monitor-panel > * {
  position: relative;
  z-index: 1;
}

.monitor-summary.empty,
.monitor-summary.loading,
.monitor-detail.empty,
.monitor-detail.loading {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line-color);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-secondary);
}

.monitor-totals {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.monitor-total,
.monitor-row,
.monitor-detail,
.monitor-history {
  border: 1px solid var(--line-color);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.monitor-total {
  padding: 13px;
}

.monitor-total span,
.monitor-metric span,
.history-row span,
.history-empty,
.monitor-detail-head span {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.monitor-total strong {
  display: block;
  margin-top: 5px;
  font-size: 1.18rem;
}

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

.monitor-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 74px minmax(132px, 0.8fr) 74px minmax(132px, 0.8fr) 74px auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
}

.monitor-person,
.monitor-metric,
.monitor-detail-head > div,
.history-row {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.monitor-person strong,
.monitor-person span,
.monitor-metric strong,
.history-row strong,
.history-row span,
.monitor-detail-head strong,
.monitor-detail-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-detail-heading {
  margin-top: 24px;
}

.monitor-detail {
  padding: 16px;
}

.monitor-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.monitor-detail-head strong {
  font-size: 1.08rem;
}

.monitor-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}

.monitor-history {
  padding: 14px;
}

.monitor-history h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 650;
}

.history-row {
  padding: 11px 0;
  border-top: 1px solid rgba(29, 29, 31, 0.07);
}

.history-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.history-user-agent {
  white-space: normal !important;
  line-height: 1.45;
}

.placeholder-panel {
  min-height: 360px;
  padding: 34px;
  display: grid;
  align-content: center;
  justify-items: start;
}

.placeholder-panel > * {
  position: relative;
  z-index: 1;
}

.upload-shell,
.sheet-panel,
.report-panel {
  padding: 26px;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(286px, 0.8fr);
  gap: 18px;
}

.upload-main,
.upload-side {
  position: relative;
  z-index: 1;
}

.upload-side {
  display: grid;
  gap: 14px;
}

.section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.section-heading h2,
.section-heading h3,
.info-card-head h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: 0;
}

.section-heading h2 {
  font-size: 1.56rem;
  line-height: 1.2;
}

.section-heading p,
.meta-label,
.dropzone-subtitle,
.status-banner,
.sheet-card-meta,
.sheet-metric span {
  color: var(--text-secondary);
}

.section-heading p {
  max-width: 620px;
  margin: 8px 0 0;
  font-size: 0.96rem;
  line-height: 1.62;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid rgba(0, 110, 219, 0.1);
  border-radius: 999px;
  background: rgba(0, 110, 219, 0.07);
  color: var(--accent-color);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 284px;
  padding: 32px 24px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 249, 251, 0.92) 100%),
    linear-gradient(135deg, rgba(0, 110, 219, 0.045), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 26px rgba(17, 24, 39, 0.045);
  text-align: center;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.dropzone:hover,
.dropzone.dragging {
  transform: translateY(-1px);
  border-color: rgba(0, 110, 219, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    var(--shadow-hover);
}

.dropzone input {
  display: none;
}

.dropzone-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(0, 110, 219, 0.08);
  border-radius: 25px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 26px rgba(0, 80, 160, 0.08);
}

.dropzone-icon::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 19px;
  background: linear-gradient(180deg, #2f95ff 0%, #006edb 100%);
}

.dropzone-core {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 -8px 14px rgba(0, 110, 219, 0.1);
}

.dropzone-core::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 110, 219, 0.68);
}

.dropzone-title {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: 0;
}

.dropzone-subtitle {
  font-size: 0.94rem;
  line-height: 1.55;
}

.actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.primary-button {
  border: 0;
  color: #ffffff;
  background: var(--accent-color);
  box-shadow: 0 10px 24px rgba(0, 110, 219, 0.18);
}

.primary-button:hover {
  background: var(--accent-hover);
}

.ghost-button {
  color: var(--text-primary);
  border: 1px solid var(--line-color);
  background: rgba(255, 255, 255, 0.78);
}

.ghost-button:hover {
  border-color: var(--line-strong);
  background: #ffffff;
}

.primary-button:active,
.ghost-button:active {
  transform: scale(0.985);
}

.primary-button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.status-banner {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-color);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  line-height: 1.58;
}

.status-banner.muted {
  color: var(--text-secondary);
}

.status-banner.processing {
  color: var(--accent-color);
  background: rgba(0, 110, 219, 0.07);
  border-color: rgba(0, 110, 219, 0.13);
}

.status-banner.processing::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0, 110, 219, 0.16), rgba(0, 110, 219, 0.56), rgba(0, 110, 219, 0.16), transparent);
  animation: statusSweep 1.6s ease-in-out infinite;
}

.status-banner.success {
  color: var(--success-color);
  background: rgba(19, 115, 51, 0.07);
  border-color: rgba(19, 115, 51, 0.13);
}

.status-banner.warning {
  color: var(--warning-color);
  background: rgba(154, 103, 0, 0.07);
  border-color: rgba(154, 103, 0, 0.13);
}

.status-banner.error {
  color: var(--danger-color);
  background: rgba(179, 38, 30, 0.07);
  border-color: rgba(179, 38, 30, 0.13);
}

.info-card,
.file-meta-card,
.sheet-card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line-color);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.info-card {
  padding: 16px;
}

.info-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.info-card-head.compact {
  margin-bottom: 14px;
}

.info-card-head h3 {
  margin-top: 7px;
  font-size: 1.05rem;
  line-height: 1.32;
}

.health-badge,
.sheet-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.health-badge.online,
.sheet-state.pass {
  color: var(--success-color);
  background: rgba(19, 115, 51, 0.07);
  border-color: rgba(19, 115, 51, 0.12);
}

.health-badge.offline,
.sheet-state.issue {
  color: var(--danger-color);
  background: rgba(179, 38, 30, 0.07);
  border-color: rgba(179, 38, 30, 0.12);
}

.health-badge.pending {
  color: var(--text-secondary);
}

.file-meta-grid,
.sheet-summary {
  display: grid;
  gap: 10px;
}

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

.file-meta-card {
  padding: 14px;
}

.meta-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.8rem;
}

.meta-value {
  display: block;
  font-size: 0.96rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.audit-options {
  display: grid;
  gap: 10px;
}

.switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line-color);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.switch-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.055);
}

.switch-copy {
  display: flex;
  align-items: center;
  min-height: 32px;
}

.switch-label {
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.3;
}

.switch-control {
  position: relative;
  flex: 0 0 auto;
}

.switch-control input {
  position: absolute;
  inset: 0;
  width: 52px;
  height: 32px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch-track {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.14);
  transition: background-color 0.18s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.14);
  transition: transform 0.18s ease;
}

.switch-control input:checked + .switch-track {
  background: linear-gradient(180deg, #1688ff, #006edb);
}

.switch-control input:checked + .switch-track::after {
  transform: translateX(20px);
}

.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 18px;
}

.sheet-summary.empty {
  padding: 20px;
  border: 1px solid var(--line-color);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-secondary);
}

.sheet-summary {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sheet-card {
  padding: 16px;
}

.sheet-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-card h4 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.sheet-card-meta {
  margin: 5px 0 0;
  font-size: 0.86rem;
}

.sheet-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sheet-metric {
  padding: 11px 12px;
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 15px;
  background: rgba(247, 247, 249, 0.86);
}

.sheet-metric span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.76rem;
}

.sheet-metric strong {
  display: block;
  font-size: 0.94rem;
  letter-spacing: 0;
}

.report-box {
  margin: 0;
  min-height: 400px;
  padding: 18px;
  overflow: auto;
  border: 1px solid rgba(29, 29, 31, 0.07);
  border-radius: 23px;
  background: linear-gradient(180deg, #fbfbfd 0%, #f2f3f5 100%);
  color: #2d2d2f;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 29, 31, 0.22) transparent;
}

.report-box.empty {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.58;
}

.report-text-block {
  margin: 0;
  color: #2d2d2f;
  font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
  font-size: 0.9rem;
  line-height: 1.68;
  white-space: pre-wrap;
  word-break: break-word;
}

.report-section {
  border: 1px solid rgba(29, 29, 31, 0.07);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.62);
}

.report-section + .report-section {
  margin-top: 10px;
}

.report-section summary {
  min-height: 46px;
  padding: 13px 15px;
  color: var(--text-primary);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
  list-style-position: inside;
}

.report-section .report-text-block {
  padding: 0 15px 15px;
}

.report-box::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.report-box::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.24);
  background-clip: padding-box;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .upload-layout,
  .results-grid,
  .monitor-detail-grid {
    grid-template-columns: 1fr;
  }

  .monitor-row {
    grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(90px, 0.5fr)) auto;
  }

  .monitor-row .monitor-metric:nth-of-type(2),
  .monitor-row .monitor-metric:nth-of-type(4) {
    grid-column: span 2;
  }

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

  .upload-side .info-card {
    min-width: 0;
  }

  .file-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .apple-navbar-inner,
  .page-shell {
    width: min(100% - 16px, 1120px);
  }

  .apple-navbar {
    min-height: 48px;
  }

  .apple-navbar-inner {
    min-height: 48px;
  }

  .navbar-brand,
  .navbar-meta {
    font-size: 0.84rem;
  }

  .navbar-meta {
    display: none;
  }

  .navbar-account {
    gap: 7px;
  }

  .navbar-user {
    max-width: 48vw;
    font-size: 0.76rem;
  }

  .nav-button {
    min-height: 30px;
    padding: 0 11px;
    font-size: 0.76rem;
  }

  .page-shell {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .auth-page {
    min-height: calc(100vh - 82px);
  }

  .auth-card,
  .admin-panel,
  .monitor-panel,
  .placeholder-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .auth-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 16px;
  }

  .auth-mark::before {
    width: 18px;
    height: 18px;
    margin: 15px;
  }

  .auth-copy h1,
  .view-header h1,
  .placeholder-panel h1 {
    font-size: 1.8rem;
  }

  .view-header {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding-top: 8px;
  }

  .view-header p {
    max-width: none;
    text-align: left;
  }

  .entry-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .entry-card {
    min-height: 112px;
    padding: 16px;
  }

  .entry-card strong {
    margin-top: 12px;
    font-size: 0.98rem;
  }

  .form-field input,
  .form-field select {
    min-height: 46px;
  }

  .created-account-grid,
  .account-row,
  .monitor-row,
  .monitor-totals {
    grid-template-columns: 1fr;
  }

  .account-state,
  .monitor-row .plain-button {
    justify-self: start;
  }

  .monitor-row .monitor-metric:nth-of-type(2),
  .monitor-row .monitor-metric:nth-of-type(4) {
    grid-column: auto;
  }

  .monitor-total,
  .monitor-row,
  .monitor-detail,
  .monitor-history {
    border-radius: 16px;
  }

  .monitor-detail {
    padding: 13px;
  }

  .monitor-detail-head {
    display: grid;
  }

  .account-state {
    padding: 0 12px;
  }

  .hero {
    padding: 14px 0 15px;
  }

  .hero::before {
    width: 54px;
    height: 4px;
    margin-bottom: 13px;
  }

  .hero h1 {
    font-size: 2.28rem;
    line-height: 1.04;
    letter-spacing: 0;
  }

  .hero h1::after {
    bottom: -12px;
    width: min(160px, 54%);
  }

  .workspace {
    gap: 12px;
  }

  .upload-shell,
  .sheet-panel,
  .report-panel {
    padding: 14px;
    border-radius: 24px;
  }

  .upload-layout {
    gap: 14px;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .section-heading h2 {
    font-size: 1.2rem;
  }

  .section-heading p {
    margin-top: 7px;
    font-size: 0.9rem;
    line-height: 1.54;
  }

  .eyebrow {
    min-height: 24px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .dropzone {
    min-height: 196px;
    padding: 20px 14px;
    gap: 9px;
    border-radius: 22px;
  }

  .dropzone-icon {
    width: 68px;
    height: 68px;
    border-radius: 21px;
  }

  .dropzone-icon::before {
    inset: 10px;
    border-radius: 16px;
  }

  .dropzone-core {
    width: 23px;
    height: 30px;
    border-radius: 8px;
  }

  .dropzone-core::before {
    top: 7px;
    left: 7px;
    width: 10px;
    height: 3px;
  }

  .dropzone-title {
    font-size: 0.98rem;
  }

  .dropzone-subtitle {
    font-size: 0.86rem;
  }

  .upload-side {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .info-card {
    padding: 13px;
    border-radius: 20px;
  }

  .info-card-head {
    gap: 10px;
  }

  .info-card-head h3 {
    margin-top: 6px;
    font-size: 0.98rem;
  }

  .file-meta-grid,
  .sheet-summary,
  .sheet-card-metrics {
    grid-template-columns: 1fr;
  }

  .file-meta-card {
    padding: 12px;
  }

  .audit-options {
    gap: 9px;
  }

  .switch-card {
    min-height: 54px;
    padding: 12px 13px;
    border-radius: 16px;
  }

  .switch-label {
    font-size: 0.9rem;
  }

  .actions {
    gap: 9px;
    margin-top: 14px;
  }

  .has-download-result .actions {
    position: sticky;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 12;
    padding: 9px;
    margin-right: -8px;
    margin-left: -8px;
    border: 1px solid rgba(29, 29, 31, 0.06);
    border-radius: 20px;
    background: rgba(251, 251, 253, 0.88);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
  }

  .primary-button,
  .ghost-button {
    width: 100%;
    min-height: 46px;
  }

  .status-banner {
    margin-top: 14px;
    padding: 11px 13px;
    font-size: 0.88rem;
  }

  .sheet-card {
    padding: 14px;
    border-radius: 18px;
  }

  .sheet-card-head {
    margin-bottom: 12px;
  }

  .sheet-card h4 {
    font-size: 0.95rem;
  }

  .report-box {
    min-height: 260px;
    padding: 15px;
    border-radius: 20px;
  }

  .report-text-block {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  .report-section summary {
    min-height: 44px;
    padding: 12px 13px;
    font-size: 0.88rem;
  }

  .report-section .report-text-block {
    padding: 0 13px 13px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 2.06rem;
  }

  .upload-shell,
  .sheet-panel,
  .report-panel {
    padding: 12px;
  }

  .dropzone {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero h1,
  .hero h1::after {
    animation: none;
  }
}

.menu-builder-panel {
  margin-top: 18px;
}

.menu-main-panel {
  padding: 28px;
}

.menu-builder-heading {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.menu-builder-heading > div {
  min-width: 0;
}

.product-entry-panel {
  padding: 24px;
}

.product-form {
  display: grid;
  gap: 12px;
}

.aux-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.menu-rows {
  display: grid;
  gap: 8px;
}

.menu-row {
  align-items: center;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 36px minmax(92px, 0.7fr) minmax(92px, 0.7fr) minmax(190px, 1.5fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(180px, 1.4fr);
  padding: 8px;
}

.menu-row.has-error {
  background: #fff2f0;
  border-color: #d93025;
}

.menu-row.is-ok {
  border-color: #17803d;
}

.menu-row-index {
  color: #6e6e73;
  font-size: 13px;
  text-align: center;
}

.menu-input,
.account-school-control select {
  border: 1px solid rgba(29, 29, 31, 0.14);
  border-radius: 8px;
  box-sizing: border-box;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.menu-preview {
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.45;
}

.menu-dish-cell,
.menu-filter-cell {
  display: grid;
  gap: 6px;
}

.menu-dish-candidates {
  min-height: 34px;
  color: #4a4a4f;
  font-size: 13px;
}

.menu-dish-candidates:disabled {
  color: #8e8e93;
}

.online-report-panel {
  grid-column: 1 / -1;
}

.account-school-control {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(120px, 1fr);
}

.compact-switch {
  margin: 0;
}

.candidate-login-box,
.hr-interview-panel,
.task-card,
.video-section {
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 16px;
}

.candidate-login-box {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.candidate-code-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

.hr-interview-panel {
  align-self: start;
  display: grid;
  gap: 16px;
}

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

.candidate-list.empty,
.score-report.empty-state {
  color: var(--text-secondary);
}

.candidate-item {
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: var(--surface-muted);
  display: grid;
  gap: 8px;
  padding: 12px;
  text-align: left;
}

.candidate-item.is-active {
  border-color: var(--accent-color);
}

.candidate-item-header,
.section-row,
.message-editor-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.candidate-code {
  color: var(--accent-color);
  font-family: "Cascadia Code", Consolas, monospace;
  font-weight: 750;
}

.score-report {
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.score-grid,
.score-row,
.exam-editor,
.message-editor,
.message-editor-list,
.assessment,
.answer-form,
.material-pack {
  display: grid;
  gap: 10px;
}

.score-row-header {
  display: flex;
  justify-content: space-between;
}

.meter {
  background: rgba(29, 29, 31, 0.08);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.meter span {
  background: var(--success-color);
  display: block;
  height: 100%;
}

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

.chat-editor-row {
  align-items: end;
  background: var(--surface-muted);
  border: 1px solid var(--line-color);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

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

.remove-chat-row {
  justify-self: start;
}

.candidate-banner {
  align-items: center;
  background: #102033;
  border-radius: 8px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.candidate-banner .label {
  background: rgba(255, 255, 255, 0.12);
  color: #dcecff;
}

.timer-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 10px 12px;
  text-align: right;
}

.timer-card span {
  color: #cbd8e6;
  font-size: 12px;
}

.timer-card strong {
  font-size: 22px;
}

.task-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 0.8fr;
}

.material-item {
  background: var(--surface-muted);
  border: 1px solid var(--line-color);
  border-radius: 8px;
  padding: 12px;
}

.material-item strong {
  display: block;
  margin-bottom: 6px;
}

.event-card {
  background: #fff9ef;
  border-color: #ffd79a;
}

.event-card.is-locked {
  background: var(--surface-muted);
  border-color: var(--line-color);
}

.event-card.is-live {
  animation: pulseBorder 1.5s ease-in-out infinite;
}

@keyframes pulseBorder {
  0%,
  100% {
    border-color: #ffd79a;
  }
  50% {
    border-color: var(--warning-color);
  }
}

.chat-shell {
  background: #f0f2f5;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(360px, 1fr);
  min-height: 520px;
  overflow: hidden;
}

.chat-role-list {
  background: #f7f8fa;
  border-right: 1px solid var(--line-color);
  display: grid;
  grid-auto-rows: minmax(72px, max-content);
  max-height: 560px;
  overflow: auto;
}

.chat-role-button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  text-align: left;
}

.chat-role-button.is-active {
  background: #e9edf2;
}

.chat-role-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.chat-role-name {
  font-weight: 800;
}

.chat-role-preview {
  color: var(--text-secondary);
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chat-role-count {
  color: var(--text-tertiary);
  font-size: 12px;
}

.unread-badge {
  align-items: center;
  background: #fa5151;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
}

.chat-window {
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  min-width: 0;
}

.chat-thread {
  background: #eef2f6;
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow: auto;
  padding: 18px;
}

.wechat-message {
  align-items: center;
  display: flex;
  gap: 10px;
}

.wechat-message.is-sent {
  justify-content: flex-end;
}

.chat-avatar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  color: var(--accent-color);
  display: inline-flex;
  flex: 0 0 36px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.chat-avatar.is-me {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.message-stack {
  display: grid;
  gap: 4px;
  max-width: min(72%, 640px);
}

.message-meta {
  color: var(--text-secondary);
  font-size: 12px;
}

.is-sent .message-meta {
  text-align: right;
}

.message-bubble {
  background: #fff;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 8px;
  line-height: 1.55;
  padding: 10px 12px;
  word-break: break-word;
}

.is-sent .message-bubble {
  background: #95ec69;
  border-color: #78d64b;
}

.new-message-notice {
  background: #fff7e6;
  border-top: 1px solid #ffd79a;
  color: #7a4300;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
}

.chat-reply-box {
  align-items: end;
  background: #fff;
  border-top: 1px solid var(--line-color);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 12px;
}

#hrChatReplyHint {
  background: #fff;
  border-top: 1px solid var(--line-color);
  margin: 0;
  padding: 0 12px 12px;
}

.video-prompt-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.prompt-button {
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  color: var(--text-primary);
  min-height: 76px;
  padding: 10px;
  text-align: left;
}

.prompt-button.is-active {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 110, 219, 0.12);
}

.finding-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

@media (max-width: 900px) {
  .menu-builder-heading {
    display: grid;
  }

  .aux-grid,
  .menu-row,
  .task-grid,
  .editor-grid,
  .chat-editor-row,
  .chat-shell,
  .candidate-code-row {
    grid-template-columns: 1fr;
  }

  .chat-role-list {
    border-bottom: 1px solid var(--line-color);
    border-right: 0;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    max-height: none;
    overflow-x: auto;
  }

  .chat-reply-box,
  .video-prompt-list {
    grid-template-columns: 1fr;
  }
}
