* { box-sizing: border-box; }
:root {
  --bg: #fff7f1;
  --panel: #ffffff;
  --text: #2e211c;
  --muted: #7f6c63;
  --line: #ead9d0;
  --brand-red: #c92926;
  --brand-red-dark: #9f2f24;
  --brand-orange: #ee761f;
  --brand-soft: #fdebe5;
  --brand-wash: #fff8f1;
  --brand-border: rgba(201, 41, 38, 0.18);
  --green: #16835a;
  --green-soft: #e7f6ef;
  --amber: #a86612;
  --amber-soft: #fff1d5;
  --red: #c24135;
  --red-soft: #fde8e5;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(238, 118, 31, 0.10), transparent 24%),
    linear-gradient(180deg, #fffaf5 0%, #fff7f1 48%, #fdf0e6 100%);
  color: var(--text);
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; }
button {
  border: 0;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 820;
  background: #fff4ec;
  color: var(--text);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
button:active {
  transform: translateY(1px);
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 390px 390px minmax(720px, 1fr);
  gap: 18px;
  padding: 18px;
  transition: filter .2s ease, transform .2s ease;
}
body.login-active .layout {
  filter: blur(5px);
  transform: scale(.995);
}
body.mode-mobile .layout,
body.mode-manager .layout,
body.mode-admin .layout {
  display: block;
  padding: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(238, 118, 31, 0.10), transparent 24%),
    linear-gradient(180deg, #fffaf5 0%, #fff7f1 48%, #fdf0e6 100%);
}
body.mode-mobile .manager-phone,
body.mode-mobile .admin,
body.mode-manager .phone:not(.manager-phone),
body.mode-manager .admin,
body.mode-admin .phone {
  display: none;
}
body.mode-mobile .phone,
body.mode-manager .manager-phone {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  margin: 0 auto;
  border-radius: 0;
  border: 0;
}
body.mode-admin .admin {
  min-height: 100vh;
  border-radius: 0;
  border: 0;
}
.phone, .admin {
  background: var(--panel);
  border: 1px solid rgba(201, 41, 38, 0.14);
  box-shadow: 0 18px 42px rgba(126, 48, 28, .08);
  overflow: hidden;
}
.phone {
  height: 800px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
}
.admin { border-radius: 12px; padding-bottom: 18px; }
.bar {
  min-height: 66px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(201, 41, 38, 0.14);
  background: rgba(255, 250, 245, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.login-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.inline-label {
  margin: 0;
  min-width: 190px;
}
.role-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 0;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}
.version-note {
  margin: 12px 18px 0;
  padding: 12px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: var(--brand-wash);
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
}
.version-note strong {
  color: var(--brand-red-dark);
  white-space: nowrap;
}
.title { font-size: 18px; font-weight: 860; line-height: 1.25; }
.sub { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.pill, .status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 6px;
  padding: 2px 9px;
  color: var(--brand-red-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.status.warn { color: var(--amber); background: var(--amber-soft); }
.status.ok { color: var(--green); background: var(--green-soft); }
.phone-body {
  flex: 1;
  overflow: auto;
  padding: 16px 14px 18px;
  background: var(--brand-wash);
}
.mobile-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: #fffdfb;
}
.mobile-account-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}
.mobile-account-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
#mobileLogoutButton {
  flex: none;
  min-height: 34px;
  padding: 0 11px;
  color: var(--brand-red-dark);
  background: var(--brand-soft);
  font-size: 12px;
}
.view { display: none; }
.view.active, .manager-view.active { display: block; }
.manager-view { display: none; }
.tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(201, 41, 38, 0.14);
  background: #fffdfb;
}
.tabs button {
  min-height: 58px;
  border-radius: 0;
  background: #fffdfb;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  text-align: center;
}
.tabs button.active {
  color: var(--brand-red-dark);
  background: #fff4ec;
}
.metrics, .admin-grid, .twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.admin-grid {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  padding: 16px 18px 4px;
}
.metric, .card {
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 23px;
  line-height: 1.05;
}
h3 {
  margin: 20px 0 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 860;
}
.page-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 10px;
}
.page-head h3 {
  margin: 0;
  font-size: 15px;
}
.page-back {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand-red-dark);
  background: #fffdfb;
  font-size: 12px;
  font-weight: 800;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdfb;
  border-radius: 8px;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--text);
  font-size: 14px;
  font-weight: 620;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.voice-button {
  align-self: flex-start;
  min-height: 32px;
  margin-top: -2px;
  margin-bottom: 10px;
  padding: 0 10px;
  color: var(--brand-red-dark);
  background: var(--brand-soft);
}
.voice-button.recording {
  color: #b42318;
  background: #fff1f0;
}
.field-block {
  margin-bottom: 10px;
}
.field-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}
.select-trigger {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  background: #fffdfb;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 780;
}
.customer-picker {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
  overflow: hidden;
}
.customer-picker.hidden { display: none; }
.customer-picker-search {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #fff8f1;
}
.customer-picker-search input {
  min-height: 38px;
  background: #fff;
}
.customer-picker-body {
  max-height: 220px;
  overflow: auto;
}
.customer-empty {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}
.customer-picker-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #fff8f1;
}
.customer-picker-footer span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}
.customer-picker-footer button {
  min-height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}
.customer-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
}
.customer-option:last-child { border-bottom: 0; }
.customer-option input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
}
.customer-name {
  display: block;
  font-size: 13px;
  font-weight: 840;
}
.customer-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.inline-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 10px;
  background: #fffdfb;
}
.inline-panel summary {
  cursor: pointer;
  color: var(--brand-red-dark);
  font-size: 13px;
  font-weight: 840;
}
.prospect-panel {
  margin-top: 8px;
  background: #fff8f1;
}
.prospect-panel summary {
  font-size: 12px;
}
.secondary-action {
  width: 100%;
  min-height: 42px;
  color: var(--brand-red-dark);
  border: 1px solid var(--brand-border);
  background: #fff4ec;
  font-weight: 840;
}
.purpose-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.purpose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f1;
}
.purpose-row-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.purpose-row-head span {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 820;
}
.purpose-row-head em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}
.purpose-row select { min-height: 38px; background: #fff; }
.purpose-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 10px;
}
.purpose-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 780;
}
.purpose-check input {
  width: 14px;
  min-height: 14px;
  padding: 0;
  accent-color: var(--brand-red);
}
.purpose-check span {
  white-space: nowrap;
}
.purpose-other-input {
  flex: 1 1 100%;
  min-height: 38px;
  margin-top: 0;
  background: #fff;
}
.hidden { display: none !important; }
.locked-visit-customer {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 13px 14px;
  border: 1px solid rgba(201, 41, 38, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f1 100%);
}
.locked-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.locked-visit-customer .locked-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.locked-visit-customer strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}
.locked-visit-customer span,
.locked-visit-customer p {
  margin: 0;
  color: var(--brand-red-dark);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 780;
}
.visit-flow-card {
  display: none;
}
.flow-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 860;
}
.visit-checkin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 14px;
}
.visit-checkin-actions .primary {
  width: 100%;
  margin: 0;
}
.checkin-trace {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 11px;
  align-items: start;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}
.checkin-dot {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-red-dark);
  font-size: 12px;
  font-weight: 880;
}
.checkin-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.checkin-time {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}
.checkin-address {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}
.visit-record-sheet {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
  overflow: hidden;
}
.sheet-section {
  padding: 11px;
  border-bottom: 1px solid var(--line);
}
.sheet-section:last-child {
  border-bottom: 0;
}
.sheet-title {
  margin-bottom: 9px;
  color: var(--brand-red-dark);
  font-size: 13px;
  font-weight: 900;
}
.sheet-grid {
  display: grid;
  gap: 8px;
}
.sheet-grid.three {
  grid-template-columns: 1.2fr .9fr .9fr;
}
.sheet-grid.two {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sheet-grid.one {
  grid-template-columns: 1fr;
}
.sheet-grid div,
.sheet-grid label,
.sheet-textarea {
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f1;
}
.sheet-grid span,
.sheet-textarea span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 780;
}
.sheet-grid strong {
  display: block;
  min-height: 38px;
  padding: 9px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}
.sheet-grid input,
.sheet-grid select,
.sheet-textarea textarea {
  border-color: transparent;
  background: #fff;
  border-radius: 6px;
}
.sheet-textarea {
  display: block;
  margin-top: 8px;
}
.sheet-textarea.no-top {
  margin-top: 0;
}
.plan-content-view {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f1;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 720;
}
.sheet-textarea textarea {
  min-height: 74px;
}
.result-money {
  margin-top: 8px;
}
.sheet-textarea .voice-button {
  margin: 6px 0 0;
}
.record-customer-hidden {
  margin-top: 8px;
}
button:disabled {
  cursor: not-allowed;
  opacity: .52;
  transform: none;
}
.mini-table {
  width: 100%;
  margin: 8px 0 0;
  font-size: 12px;
}
.mini-table th,
.mini-table td {
  padding: 8px 6px;
}
.task-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.task-table th,
.task-table td {
  border-bottom: 1px solid var(--line);
}
.task-table tbody tr:last-child td {
  border-bottom: 0;
}
.home-module-card {
  border-color: var(--line);
}
[data-open-home-month-task],
.home-plan-card {
  cursor: pointer;
}
.home-module-card .progress {
  margin-top: 11px;
}
.review-alert {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(245, 124, 0, .28);
  border-radius: 8px;
  background: #fff4e5;
  color: #8a3d00;
}
.review-alert strong {
  font-size: 14px;
  font-weight: 900;
}
.review-alert span {
  font-size: 12px;
  font-weight: 720;
  line-height: 1.45;
}
.review-feedback-card .primary {
  width: 100%;
  margin-top: 10px;
}
.home-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.home-summary-grid div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f1;
}
.home-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}
.home-summary-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 880;
  line-height: 1.2;
}
.home-module-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.home-module-action {
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: #fffdfb;
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 3px;
  align-content: center;
}
.home-module-action span {
  font-size: 14px;
  font-weight: 880;
}
.home-module-action small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
.home-module-action.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(201, 41, 38, 0.16);
}
.home-module-action.primary-action small {
  color: rgba(255, 255, 255, .84);
}
.home-module-action.wide-action {
  grid-column: 1 / -1;
}
.home-module-action.muted-action {
  background: #f7f2ef;
  color: var(--muted);
  border-color: #eadbd4;
  cursor: default;
}
.home-module-action.muted-action span {
  color: var(--muted);
}
.compact-task-table {
  margin-top: 10px;
}
.monthly-task-form {
  display: grid;
  gap: 2px;
}
.task-pair-list {
  display: grid;
  gap: 10px;
}
.task-pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f1;
}
.task-pair-row label {
  margin-bottom: 0;
}
.lock-note {
  padding: 10px 11px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: var(--brand-wash);
  color: var(--brand-red-dark);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.5;
}
.plan-link-card {
  margin: -2px 0 12px;
  padding: 12px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  background: #fffdfb;
}
.plan-link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 880;
}
.plan-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.plan-link-grid div {
  padding: 10px;
  border-radius: 8px;
  background: var(--brand-wash);
}
.plan-link-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.plan-link-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.1;
}
.plan-link-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.mini-action {
  min-height: 34px;
  padding: 0 10px;
  color: var(--brand-red-dark);
  background: var(--brand-soft);
  font-size: 12px;
}
.primary {
  width: 100%;
  min-height: 46px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  box-shadow: 0 12px 24px rgba(201, 41, 38, 0.18);
  font-size: 15px;
  font-weight: 860;
}
.plan-note {
  margin: 0 0 12px;
  padding: 10px 11px;
  border-left: 3px solid var(--brand-red);
  border-radius: 6px;
  background: var(--brand-wash);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}
.inline-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fffdfb;
}
.form-action-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
#addItineraryDay {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(201, 41, 38, 0.12), rgba(238, 118, 31, 0.18));
  color: var(--brand-red-dark);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}
#addItineraryDay:active {
  background: #fff4ec;
}
.empty-itinerary {
  padding: 14px 2px 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.6;
}
.itinerary-item {
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.itinerary-item:hover,
.itinerary-item.expanded {
  background: #fff8f1;
  border-color: rgba(201, 41, 38, 0.24);
}
.itinerary-detail {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.itinerary-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
}
.itinerary-detail-row strong {
  min-width: 0;
  font-weight: 820;
}
.itinerary-detail-row span {
  flex: none;
  color: var(--brand-red-dark);
  font-weight: 800;
}
.home-plan-card {
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.home-plan-card:hover {
  background: #fff8f1;
  border-color: rgba(201, 41, 38, 0.24);
}
.item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 860;
  line-height: 1.35;
}
.detail-action {
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.detail-action:hover {
  background: #fff8f1;
  border-color: rgba(201, 41, 38, 0.24);
}
.detail-action strong {
  display: block;
  min-width: 0;
  font-size: 14px;
}
.plan-actual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.plan-actual-grid div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f1;
}
.plan-actual-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}
.plan-actual-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 880;
}
.muted {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 620;
}
.progress {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: #f3e5dc;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
}
table {
  width: calc(100% - 36px);
  margin: 0 18px 10px;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  background: #fff4ec;
  font-size: 12px;
}
.admin h3 { margin-left: 18px; }
.manager-phone .item button {
  margin-top: 8px;
  margin-right: 6px;
}
.manager-oa-card {
  margin-bottom: 12px;
}
.workbench-switch {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(245, 124, 0, .24);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdfb 0%, #fff4ec 100%);
}
.workbench-switch strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 920;
}
.workbench-switch span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.35;
}
.workbench-actions,
.manager-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.workbench-actions button,
.manager-card-actions button {
  white-space: nowrap;
}
.workbench-actions button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}
.oa-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.oa-quick-grid button {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px;
  text-align: left;
  color: var(--text);
  border-color: rgba(245, 124, 0, .20);
  background: linear-gradient(180deg, #fffdfb 0%, #fff4ec 100%);
}
.oa-quick-grid strong {
  font-size: 15px;
  font-weight: 920;
}
.oa-quick-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.35;
}
.oa-todo-card {
  cursor: pointer;
}
.oa-action-form {
  margin-bottom: 12px;
}
.meeting-import-card {
  border-color: rgba(201, 41, 38, .18);
  background: linear-gradient(180deg, #fffdfb 0%, #fff7f1 100%);
}
.meeting-import-card textarea {
  min-height: 120px;
}
.meeting-action-item strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.meeting-action-item .progress,
.meeting-summary-card .progress {
  height: 8px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f4e3d8;
}
.meeting-action-item .progress i,
.meeting-summary-card .progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}
.manager-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.manager-action-row button {
  margin: 0;
}
.manager-action-row button:first-child {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin: 0 18px 12px;
}
.admin-form input, .admin-form select, .admin-form button {
  min-width: 0;
}
.team-analysis-form {
  grid-template-columns: minmax(160px, 240px) minmax(140px, 180px);
  justify-content: start;
}
.team-analysis-panel {
  margin: 0 18px 12px;
}
.team-analysis-panel .item {
  border-color: rgba(245, 124, 0, .22);
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f1 100%);
}
.team-analysis-summary {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}
.team-analysis-text {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.55;
}
.team-analysis-text p {
  margin: 0;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(42, 29, 24, .42);
}
.modal-box {
  width: min(520px, 100%);
  padding: 22px;
  border-radius: 16px;
  background: #fffdfb;
  box-shadow: 0 24px 60px rgba(42, 29, 24, .22);
}
.modal-title {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}
.modal-sub {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}
.modal-box textarea {
  min-height: 120px;
}
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: #2e211c;
  font-weight: 720;
  opacity: 0;
  transition: opacity .2s ease;
  text-align: center;
  pointer-events: none;
}
.toast.show { opacity: 1; }
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 12%, rgba(238, 118, 31, .20), transparent 28%),
    rgba(46, 33, 28, .48);
  backdrop-filter: blur(3px);
}
.login-overlay.hidden { display: none; }
.login-box {
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: 12px;
  background: #fffdfb;
  box-shadow: 0 24px 70px rgba(126, 48, 28, .18);
}
.login-title {
  font-size: 22px;
  font-weight: 850;
}
.login-sub {
  margin: 6px 0 18px;
  color: var(--muted);
}
@media (max-width: 1320px) {
  .layout { grid-template-columns: 1fr; padding: 12px; }
  .phone { width: 100%; max-width: 430px; margin: 0 auto; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form { grid-template-columns: 1fr; }
}
