@import url("https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/static/woff2/SUIT.css");

:root {
  --ink: #143b31;
  --muted: #6f827b;
  --green: #147759;
  --green-2: #28b484;
  --gold: #d5a84b;
  --paper: #fbf6e7;
  --surface: #fffdf8;
  --line: rgba(166, 127, 52, .18);
  --shadow: 0 18px 45px rgba(92, 69, 29, .13);
  font-family: "SUIT", "Pretendard", "Noto Sans KR", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body.require-admin:not(.admin-authorized) .admin-shell {
  display: none;
}

body.require-admin .woorijib-floating-tools {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 238, 174, .72), transparent 28%),
    linear-gradient(180deg, #fbf6e7, #edf8ef 58%, #fbf6e7);
}

body.admin-protected .admin-shell {
  display: none;
}

body.admin-protected.admin-authorized .admin-shell {
  display: block;
}

.admin-lock {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 28px;
  text-align: center;
}

.admin-lock img {
  width: 180px;
}

.admin-lock h1 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 6vw, 42px);
}

.admin-lock p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 650;
}

.admin-lock div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.admin-lock-form {
  display: grid;
  width: min(100%, 360px);
  gap: 12px;
}

.admin-lock-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  text-align: left;
  font-weight: 850;
}

.admin-lock-form input {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(20, 119, 89, .22);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 20px;
  font-weight: 850;
}

.admin-lock-error {
  min-height: 20px;
  color: #b93838;
  font-weight: 850;
}

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

button {
  cursor: pointer;
}

.admin-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 18px 48px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 10px 0;
  background: rgba(251, 246, 231, .84);
  backdrop-filter: blur(14px);
}

.admin-brand img {
  width: 176px;
}

.admin-topbar span {
  padding: 8px 12px;
  border: 1px solid rgba(20, 119, 89, .18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 760;
}

.admin-theme-trigger {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(20, 119, 89, .28);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0b7658, #39bb88);
  box-shadow: 0 8px 18px rgba(20, 119, 89, .2);
  font-size: 20px;
  line-height: 1;
}

.admin-theme-trigger:hover,
.admin-theme-trigger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(20, 119, 89, .28);
  outline: 3px solid rgba(57, 187, 136, .2);
}

.home-theme-panel {
  width: min(100%, 1010px);
}

.home-theme-workspace {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 18px;
  min-height: 560px;
}

.home-theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 7px;
}

.home-theme-options button {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 51px;
  padding: 6px 8px;
  border: 1px solid rgba(20, 119, 89, .16);
  border-radius: 15px;
  color: #173f33;
  background: #fff;
  text-align: left;
}

.home-theme-options button:hover,
.home-theme-options button.is-selected {
  border-color: #15966d;
  background: #edf9f3;
  box-shadow: 0 8px 18px rgba(20, 119, 89, .12);
}

.home-theme-options button.is-selected {
  outline: 2px solid rgba(21, 150, 109, .2);
}

.home-theme-options button > span {
  display: grid;
  gap: 3px;
}

.home-theme-options button b {
  font-size: 14px;
}

.home-theme-options button small {
  color: #6a8078;
  font-size: 11px;
}

.home-theme-custom {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
  margin-top: 5px;
  padding: 13px;
  border: 1px solid rgba(20, 119, 89, .2);
  border-radius: 16px;
  background: linear-gradient(145deg, #f2fbf6, #fffdf5);
}

.home-theme-custom > strong {
  color: #125a47;
  font-size: 13px;
}

.home-theme-custom label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 78px;
  align-items: center;
  gap: 7px;
}

.home-theme-custom label > span {
  display: grid;
  gap: 2px;
}

.home-theme-custom label b {
  font-size: 12px;
}

.home-theme-custom label small {
  color: #70857d;
  font-size: 10px;
}

.home-theme-custom input[type="color"] {
  width: 38px;
  height: 38px;
  padding: 2px;
  border: 1px solid rgba(20, 119, 89, .24);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.home-theme-custom input[type="text"] {
  width: 78px;
  height: 36px;
  padding: 0 7px;
  border: 1px solid rgba(20, 119, 89, .2);
  border-radius: 9px;
  color: #244a3e;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.theme-swatch {
  width: 31px;
  height: 31px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(24, 70, 56, .16), 0 5px 12px rgba(24, 70, 56, .14);
}

.theme-swatch.is-brand { background: linear-gradient(135deg, #075a47, #23a47c); }
.theme-swatch.is-mint { background: linear-gradient(135deg, #52b996, #c7f1df); }
.theme-swatch.is-forest { background: linear-gradient(135deg, #023d31, #4b8a68); }
.theme-swatch.is-teal { background: linear-gradient(135deg, #056b69, #46cec4); }
.theme-swatch.is-sage { background: linear-gradient(135deg, #6f8e73, #c8d8c2); }
.theme-swatch.is-lime { background: linear-gradient(135deg, #588c32, #bde682); }
.theme-swatch.is-sky { background: linear-gradient(135deg, #397fa8, #9bd8ef); }
.theme-swatch.is-navy { background: linear-gradient(135deg, #243c60, #738cae); }
.theme-swatch.is-lavender { background: linear-gradient(135deg, #71649a, #c8bdec); }
.theme-swatch.is-coral { background: linear-gradient(135deg, #c85c4a, #f3a78e); }
.theme-swatch.is-rose { background: linear-gradient(135deg, #9f5e6f, #dda7b4); }
.theme-swatch.is-sand { background: linear-gradient(135deg, #9b7543, #d9bd8e); }

.home-theme-preview-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.home-theme-preview-shell > strong {
  color: #165a48;
  font-size: 13px;
}

.home-theme-preview-shell iframe {
  width: 100%;
  height: 560px;
  border: 1px solid rgba(20, 119, 89, .2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 72, 56, .14);
}

.home-theme-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #527268;
  font-size: 12px;
  font-weight: 760;
}

.home-theme-status.is-error {
  color: #b43b32;
}

@media (max-width: 760px) {
  .admin-theme-trigger {
    width: 35px;
    height: 35px;
    font-size: 17px;
  }

  .home-theme-workspace {
    grid-template-columns: 1fr;
  }

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

  .home-theme-options button {
    grid-template-columns: 35px minmax(0, 1fr);
    min-height: 54px;
    padding: 6px 8px;
  }

  .home-theme-custom {
    grid-column: 1 / -1;
  }

  .theme-swatch {
    width: 31px;
    height: 31px;
  }

  .home-theme-preview-shell iframe {
    height: 470px;
  }
}

.admin-hero,
.admin-section,
.stats-grid article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 240, 181, .52), transparent 34%),
    rgba(255, 253, 248, .86);
  box-shadow: var(--shadow);
}

.admin-hero {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 30px;
}

.compact-admin-hero h1 {
  max-width: 760px;
  font-size: clamp(27px, 3.2vw, 38px);
}

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

.admin-hero small,
.section-title small {
  color: #9a702a;
  font-weight: 820;
}

.admin-hero h1 {
  max-width: 650px;
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

.admin-hero p,
.guide-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 560;
}

.join-eligibility-notice {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(196, 143, 47, 0.34);
  border-radius: 8px;
  background: #fffaf0;
  color: #4d4537;
}

.join-eligibility-notice strong {
  display: block;
  margin-bottom: 5px;
  color: #9a6717;
  font-size: 0.95rem;
  font-weight: 700;
}

.join-eligibility-notice p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.admin-primary,
.section-title button,
.team-call-actions button,
.team-call-actions a.accept-call {
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 14px 28px rgba(20, 119, 89, .24);
  font-weight: 840;
  text-decoration: none;
}

.admin-primary {
  flex: 0 0 auto;
  padding: 15px 18px;
}

.rate-edit-button,
.rate-icon-button,
.private-rate-action {
  cursor: pointer;
}

.rate-edit-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rate-edit-button span,
.rate-icon-button span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #c99a3c, #8c621a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  font-weight: 900;
}

.rate-icon-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(181, 136, 50, .32);
  border-radius: 16px;
  padding: 0 14px;
  color: #8a6116;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 24px rgba(103, 75, 19, .08);
  font-weight: 840;
}

.admin-primary.ghost {
  color: var(--green);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(20, 119, 89, .18);
  box-shadow: none;
}

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

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

.ops-shortcut-bar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 12px;
}

.shortcut-card {
  display: grid;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, .86);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.ops-shortcut-bar .shortcut-card {
  position: relative;
  min-height: 76px;
  overflow: hidden;
  padding: 13px 15px;
  border-color: rgba(14, 143, 105, .18);
  background:
    linear-gradient(135deg, rgba(10, 132, 98, .95), rgba(42, 195, 147, .88)),
    #0f8d6a;
  box-shadow: 0 16px 28px rgba(14, 143, 105, .16);
}

.ops-shortcut-bar .shortcut-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(172, 111, 20, .96), rgba(225, 175, 79, .9));
}

.ops-shortcut-bar .shortcut-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(31, 112, 145, .96), rgba(69, 179, 190, .88));
}

.ops-shortcut-bar .shortcut-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(92, 91, 140, .96), rgba(139, 145, 203, .88));
}

.ops-shortcut-bar .shortcut-card::after {
  content: "";
  position: absolute;
  inset: -40% auto auto 62%;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.shortcut-card small {
  color: #9a702a;
  font-weight: 820;
}

.ops-shortcut-bar .shortcut-card small,
.ops-shortcut-bar .shortcut-card strong,
.ops-shortcut-bar .shortcut-card span {
  position: relative;
  z-index: 1;
  color: #fff;
}

.shortcut-card strong {
  color: var(--green);
  font-size: 23px;
}

.ops-shortcut-bar .shortcut-card strong {
  font-size: 18px;
}

.shortcut-card span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
  font-weight: 560;
}

.ops-shortcut-bar .shortcut-card span {
  line-height: 1.25;
  font-size: 12px;
  font-weight: 720;
  opacity: .9;
}

.stats-grid article {
  padding: 20px;
}

.stats-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 28px;
}

.ops-alert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ops-alert {
  display: grid;
  gap: 7px;
  padding: 17px;
  border: 1px solid rgba(213, 168, 75, .28);
  border-radius: 20px;
  background: rgba(255, 253, 248, .82);
  box-shadow: 0 12px 28px rgba(143, 109, 52, .08);
}

.ops-alert.urgent {
  border-color: rgba(205, 67, 56, .28);
  background: linear-gradient(135deg, rgba(255, 242, 236, .92), rgba(255, 253, 248, .86));
}

.ops-alert small {
  color: #9a702a;
  font-weight: 860;
}

.ops-alert strong {
  color: var(--ink);
  font-size: 20px;
}

.ops-alert span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
  font-weight: 650;
}

.admin-section {
  margin-top: 18px;
  padding: 22px;
}

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

.section-title h2 {
  margin: 4px 0 0;
  font-size: 23px;
}

.section-title button,
.section-title a {
  padding: 12px 14px;
}

.call-list,
.team-table {
  display: grid;
  gap: 12px;
}

.call-card,
.team-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(20, 119, 89, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
}

.call-card {
  grid-template-columns: 1.25fr .9fr .9fr auto;
  align-items: center;
}

.call-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.call-title-row b {
  padding: 4px 8px;
  border-radius: 999px;
  color: #9a4f35;
  background: #fff0e8;
  font-size: 11px;
}

.call-money {
  display: grid;
  gap: 7px;
}

.call-money span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(232, 251, 242, .75);
  font-size: 12px;
  font-weight: 700;
}

.call-money strong {
  color: var(--ink);
}

.next-action {
  margin-top: 8px !important;
  color: #9a702a !important;
  font-weight: 820 !important;
}

.call-card h3,
.team-row h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.call-card p,
.team-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 560;
}

.status-pill {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0c6a4f;
  background: #e8fbf2;
  font-size: 12px;
  font-weight: 820;
}

.call-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.call-actions button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(20, 119, 89, .18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 255, 255, .8);
  font-weight: 760;
}

.call-actions button.danger {
  border-color: rgba(196, 85, 45, .22);
  color: #a34220;
  background: #fff5ee;
}

.call-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.quote-night-notice {
  margin: 8px 0 0;
  padding: 7px 10px;
  border: 1px solid rgba(186, 125, 31, .28);
  border-radius: 10px;
  color: #84530d;
  background: #fff4d8;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 850;
}

.quote-customer-request {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  margin: 7px 0 0;
  padding: 7px 10px;
  border-radius: 10px;
  color: #315e51;
  background: rgba(234, 250, 241, .82);
  font-size: 12px;
  line-height: 1.45;
}

.quote-customer-request strong {
  color: #12684f;
  white-space: nowrap;
}

.quote-address {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0 !important;
  padding: 8px 10px;
  border: 1px solid rgba(188, 126, 27, .2);
  border-radius: 10px;
  background: rgba(255, 248, 222, .86);
  color: #315e51 !important;
  font-size: 12px;
  line-height: 1.45;
}

.quote-address strong {
  color: #9b6418;
  white-space: nowrap;
}

.quote-address span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.quote-address em {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(18, 152, 113, .1);
  color: #0d6d55;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.team-row {
  grid-template-columns: 1fr .8fr .8fr .8fr .9fr;
  align-items: center;
}

.settings-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 18px;
}

.price-settings {
  grid-column: 1 / -1;
}

.setting-field {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-weight: 780;
}

.setting-field div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-field input,
.price-grid input,
.leader-filter input,
.leader-filter select,
.personal-sms-form input,
.personal-sms-form select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(20, 119, 89, .16);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--green);
  background: rgba(255, 255, 255, .86);
  font-weight: 820;
}

textarea {
  min-height: 150px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}

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

.price-grid h3 {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 11px 13px;
  border-radius: 16px;
  color: #12684f;
  background: linear-gradient(135deg, rgba(232, 251, 242, .96), rgba(255, 248, 225, .9));
  font-size: 16px;
}

.private-rate-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(181, 136, 50, .28);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 248, 225, .92), rgba(235, 250, 243, .92));
  color: var(--ink);
}

.private-rate-panel strong {
  color: #8a6116;
  font-size: 18px;
}

.private-rate-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 720;
}

.private-rate-action {
  justify-self: start;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, #b9892b, #8c621a);
  box-shadow: 0 12px 22px rgba(103, 75, 19, .16);
  font-weight: 850;
}

.price-note {
  margin-top: 14px;
}

.price-grid label,
.leader-filter label,
.personal-sms-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.leader-filter,
.personal-sms-form {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.leader-filter {
  grid-template-columns: 1fr 180px;
}

.large-team-table .team-row {
  grid-template-columns: 1.25fr .55fr .55fr .65fr .65fr .9fr;
}
.team-leader-key-info { display: grid; gap: 5px; margin: 8px 0; }
.team-leader-key-info span { display: flex; align-items: baseline; gap: 7px; color: #536d65; font-size: 13px; }
.team-leader-key-info strong { min-width: 52px; color: #0f7057; font-size: 12px; }
.team-leader-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.team-leader-admin-actions .admin-primary { min-height: 36px; padding: 8px 12px; font-size: 12px; text-decoration: none; }
.team-admin-control-panel { border-color: #d6bc72; background: #fff9e8; }
.team-admin-control-panel label { display: grid; gap: 6px; color: #355e53; font-weight: 850; }
.team-admin-control-panel input,
.team-admin-control-panel select { min-height: 42px; border: 1px solid #bad8cd; border-radius: 10px; background: #fff; color: #164b3f; padding: 8px 10px; font: inherit; }
.team-admin-control-panel p { grid-column: 1 / -1; margin: 0; color: #80631f; font-size: 12px; line-height: 1.5; }

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

.sms-card {
  margin-top: 18px;
}

.send-sms-button {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 14px 28px rgba(20, 119, 89, .24);
  font-weight: 840;
}

.personal-sms-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.message-field,
.personal-sms-form .send-sms-button {
  grid-column: 1 / -1;
}

.sms-count {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.sms-count.warning {
  color: #9a4f35;
}

.ops-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-check-list span {
  padding: 9px 12px;
  border: 1px solid rgba(20, 119, 89, .14);
  border-radius: 999px;
  color: #12684f;
  background: rgba(232, 251, 242, .86);
  font-size: 13px;
  font-weight: 760;
}

.customer-workspace {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(430px, .55fr);
  gap: 14px;
  align-items: start;
}

.customer-list-panel,
.customer-detail-card {
  margin-top: 18px;
}

.customer-detail-panel {
  position: sticky;
  top: 82px;
}

.compact-title {
  align-items: flex-start;
}

.customer-list {
  display: grid;
  gap: 8px;
}

.customer-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(20, 119, 89, .12);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  text-align: left;
}

.customer-list-item.active {
  border-color: rgba(20, 119, 89, .38);
  background: linear-gradient(135deg, rgba(232, 251, 242, .96), rgba(255, 253, 248, .9));
  box-shadow: 0 14px 28px rgba(20, 119, 89, .12);
}

.customer-list-item strong {
  min-width: 0;
  font-size: 16px;
}

.customer-list-item span,
.customer-list-item small {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.customer-list-item small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--green);
  background: rgba(232, 251, 242, .9);
}

.customer-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.customer-detail-list div {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .74);
}

.customer-detail-list div:nth-child(4),
.customer-detail-list div:nth-child(5),
.customer-detail-list div:nth-child(8) {
  grid-column: 1 / -1;
}

.customer-detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.customer-detail-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.customer-search-field {
  display: grid;
  gap: 6px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.customer-search-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(20, 119, 89, .18);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  font-size: 15px;
  font-weight: 760;
}

.customer-empty {
  margin: 0;
  border: 1px dashed rgba(20, 119, 89, .25);
  border-radius: 14px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, .62);
  font-weight: 760;
}

.admin-memo-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.admin-memo-field textarea {
  min-height: 92px;
}

.status-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.status-controls button,
.admin-action-button {
  min-height: 42px;
  border: 1px solid rgba(20, 119, 89, .18);
  border-radius: 14px;
  color: var(--green);
  background: rgba(255, 255, 255, .82);
  font-weight: 820;
}

.status-controls button.active,
.admin-action-button {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 12px 24px rgba(20, 119, 89, .18);
}

.status-controls button.danger-status.active,
.admin-action-button.danger-action {
  border-color: rgba(196, 85, 45, .24);
  color: #a34220;
  background: #fff5ee;
  box-shadow: none;
}

.customer-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.ghost-action {
  color: var(--green);
  background: rgba(255, 255, 255, .82);
  box-shadow: none;
}

pre {
  margin: 0;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(20, 119, 89, .14);
  border-radius: 18px;
  color: #123e32;
  background: rgba(255, 255, 255, .76);
  white-space: pre-wrap;
  line-height: 1.6;
  font-family: inherit;
  font-weight: 650;
}

.admin-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  display: none;
  max-width: min(92vw, 420px);
  transform: translateX(-50%);
  padding: 13px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 59, 49, .92);
  box-shadow: 0 16px 36px rgba(20, 59, 49, .22);
  font-weight: 760;
  text-align: center;
}

.admin-toast.show {
  display: block;
}

.admin-operation-focus { outline: 4px solid rgba(239, 169, 47, .48); outline-offset: 5px; }

.rate-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 21, 16, .48);
  backdrop-filter: blur(10px);
}

.rate-modal.open {
  display: flex;
}

.rate-lock-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11, 39, 31, .46);
  backdrop-filter: blur(10px);
}

.rate-lock-panel {
  position: relative;
  width: min(100%, 430px);
  padding: 30px;
  border: 1px solid rgba(166, 127, 52, .2);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.rate-lock-panel small {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(40, 180, 132, .12);
  font-weight: 850;
}

.rate-lock-panel h2 {
  margin: 16px 0 8px;
  font-size: 25px;
}

.rate-lock-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 650;
}

.rate-lock-panel form {
  display: grid;
  gap: 12px;
}

.rate-lock-panel label {
  display: grid;
  gap: 8px;
  font-weight: 850;
}

.rate-lock-panel input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(20, 119, 89, .22);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 20px;
  font-weight: 850;
}

.rate-lock-error {
  min-height: 20px;
  color: #b93838;
  font-weight: 850;
}

.rate-modal-panel {
  width: min(1180px, 100%);
  max-height: min(92vh, 940px);
  overflow: auto;
  border: 1px solid rgba(181, 136, 50, .28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 239, 179, .42), transparent 32%),
    linear-gradient(145deg, rgba(255, 253, 245, .98), rgba(241, 252, 247, .98));
  box-shadow: 0 28px 70px rgba(6, 36, 26, .28);
}

.rate-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 10px;
}

.rate-modal-header small {
  color: #9a702a;
  font-weight: 850;
}

.rate-modal-header h2 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 32px);
}

.rate-modal-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 680;
}

.rate-modal-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(181, 136, 50, .28);
  border-radius: 50%;
  color: #8a6116;
  background: rgba(255, 255, 255, .86);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
}

.leader-assign-modal-panel {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 28px));
  padding-bottom: 18px;
}

.leader-search-field {
  display: grid;
  gap: 7px;
  margin: 8px 22px 14px;
  color: var(--ink);
  font-weight: 850;
}

.leader-search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(20, 119, 89, .24);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  font: inherit;
}

.leader-assign-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: 360px;
  margin: 0 22px;
  overflow: auto;
}

.leader-assign-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(20, 119, 89, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .8);
  cursor: pointer;
}

.leader-assign-option.is-selected {
  border-color: #14976f;
  background: rgba(219, 249, 238, .9);
  box-shadow: 0 0 0 2px rgba(20, 151, 111, .1);
}

.leader-assign-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #14976f;
}

.leader-assign-option span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.leader-assign-option strong,
.leader-assign-option small,
.leader-assign-option em {
  overflow-wrap: anywhere;
}

.leader-assign-option small {
  color: var(--muted);
  line-height: 1.4;
}

.leader-assign-option em {
  color: #8d6b2e;
  font-size: 11px;
  font-style: normal;
}

.leader-assign-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 16px;
  border: 1px dashed rgba(20, 119, 89, .25);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  font-weight: 750;
}

.leader-assign-notice {
  margin: 13px 22px 0;
  color: #956819;
  font-size: 13px;
  font-weight: 800;
}

.rate-status {
  margin: 0 22px 10px;
  padding: 10px 13px;
  border: 1px solid rgba(20, 119, 89, .14);
  border-radius: 16px;
  color: var(--green);
  background: rgba(232, 251, 242, .82);
  font-weight: 780;
}

.rate-status[data-tone="error"],
.rate-status[data-tone="locked"] {
  border-color: rgba(198, 66, 48, .18);
  color: #98402f;
  background: rgba(255, 238, 232, .9);
}

.rate-form {
  display: grid;
  gap: 10px;
  padding: 0 22px 18px;
}

.rate-dispatch-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #b9dfd3;
  border-radius: 18px;
  background: #eefaf5;
}

.rate-dispatch-settings small,
.rate-dispatch-settings p {
  color: #557a70;
}

.rate-dispatch-settings h3,
.rate-dispatch-settings p {
  margin: 3px 0 0;
}

.rate-dispatch-settings label {
  min-width: 190px;
  font-weight: 800;
}

.rate-dispatch-settings label span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.rate-dispatch-settings input {
  width: 120px;
}

.rate-legend-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(181, 136, 50, .18);
  border-radius: 16px;
  background: rgba(255, 253, 245, .96);
  padding: 8px;
}

.rate-legend-bar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 920;
  padding: 6px 12px;
}

.rate-legend-bar .customer-mark {
  color: #fff;
  background: linear-gradient(135deg, #0f8d6a, #2ac393);
}

.rate-legend-bar .leader-mark {
  color: #fff;
  background: linear-gradient(135deg, #9a6818, #d8a747);
}

.rate-service-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
  padding: 8px;
  border: 1px solid rgba(181, 136, 50, .18);
  border-radius: 16px;
  background: rgba(255, 253, 245, .9);
}

.rate-service-tabs button {
  min-height: 42px;
  border: 1px solid rgba(20, 119, 89, .14);
  border-radius: 13px;
  color: #12684f;
  background: rgba(255, 255, 255, .78);
  font-weight: 900;
}

.rate-service-tabs button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f8d6a, #2ac393);
  box-shadow: 0 12px 22px rgba(20, 119, 89, .16);
}

.rate-category {
  margin: 0;
  border: 1px solid rgba(181, 136, 50, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
  padding: 10px;
}

.rate-category h3 {
  margin: 0 0 8px;
  color: #103f34;
  font-size: 15px;
  font-weight: 950;
}

.rate-category[hidden] {
  display: none;
}

.rate-service-help {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.rate-tier {
  display: grid;
  grid-template-columns: 150px repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  border-radius: 14px;
  padding: 9px;
}

.rate-tier + .rate-tier {
  margin-top: 7px;
}

.rate-tier.compact-six {
  grid-template-columns: 132px repeat(6, minmax(118px, 1fr));
  gap: 6px;
  padding: 7px;
}

.rate-tier b {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
}

.rate-tier.compact-six b {
  min-height: 42px;
  font-size: 12px;
}

.customer-rate {
  border: 1px solid rgba(15, 141, 106, .2);
  background: linear-gradient(135deg, rgba(231, 251, 243, .92), rgba(255, 255, 255, .72));
}

.customer-rate b {
  background: linear-gradient(135deg, #0f8d6a, #2ac393);
}

.leader-rate {
  border: 1px solid rgba(180, 120, 28, .24);
  background: linear-gradient(135deg, rgba(255, 246, 220, .94), rgba(255, 255, 255, .74));
}

.leader-rate b {
  background: linear-gradient(135deg, #9a6818, #d8a747);
}

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

.rate-form legend {
  padding: 0 8px;
  color: #8a6116;
  font-weight: 860;
}

.rate-form label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.rate-tier.compact-six label {
  gap: 3px;
  font-size: 11px;
}

.rate-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(20, 119, 89, .16);
  border-radius: 12px;
  padding: 0 10px;
  color: var(--green);
  background: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 820;
}

.rate-tier.compact-six input {
  min-height: 34px;
  border-radius: 10px;
  padding: 0 8px;
  font-size: 13px;
}

.leader-rate input {
  border-color: rgba(180, 120, 28, .22);
  color: #8a6116;
}

@media (max-width: 980px) {
  .rate-tier,
  .rate-tier.compact-six {
    grid-template-columns: 120px repeat(3, minmax(0, 1fr));
  }

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

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

.team-call-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.team-call-shell {
  width: min(100%, 520px);
}

.team-call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.team-call-header img {
  width: 170px;
}

.team-call-header span {
  color: #9a702a;
  font-weight: 860;
}

.team-call-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.team-call-header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(20, 119, 89, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #0d7559;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.team-call-photo-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px 5px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(202, 100, 57, .28);
  border-radius: 14px;
  background: rgba(255, 239, 226, .92);
  color: #8d3f25;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 850;
  text-align: center;
}

.team-call-photo-notice small {
  color: #9a5a42;
  font: inherit;
}

.team-operation-rules {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid rgba(190, 130, 35, .28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 249, 225, .96), rgba(237, 251, 245, .92));
  color: #355d51;
  box-shadow: 0 8px 20px rgba(72, 82, 47, .07);
}

.team-operation-rules > strong {
  color: #8b641f;
  font-size: 15px;
  font-weight: 950;
}

.team-operation-rules ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 19px;
}

.team-operation-rules li {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 750;
}

.team-operation-rules.is-customer-info {
  margin-bottom: 14px;
}

.team-call-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, .9);
  box-shadow: var(--shadow);
}

.team-call-card small {
  color: #9a702a;
  font-weight: 860;
}

.team-call-card h1 {
  margin: 4px 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.team-call-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 8px;
}

.team-call-summary-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(225px, .85fr);
  align-items: start;
  gap: 10px;
}

.team-call-summary-copy { min-width: 0; }

.team-call-status span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(20, 119, 89, .16);
  border-radius: 999px;
  color: #12684f;
  background: rgba(232, 251, 242, .92);
  font-size: 12px;
  font-weight: 840;
}

.team-offer-week {
  margin: 0;
  padding: 7px 6px;
  border: 1px solid rgba(20, 119, 89, .16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 250, 233, .86), rgba(236, 252, 244, .88));
}
.team-offer-week[hidden] { display: none; }
.team-offer-week > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.team-offer-week > header strong { color: #315f53; font-size: 11px; }
.team-offer-week > header span { color: #8b7449; font-size: 9px; font-weight: 800; }
.team-offer-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.team-offer-week-grid > div {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  min-width: 0;
  min-height: 48px;
  border-radius: 9px;
  color: #657a73;
  background: rgba(255, 255, 255, .72);
}
.team-offer-week-grid small { color: inherit; font-size: 8px; }
.team-offer-week-grid strong { font-size: 12px; line-height: 1; }
.team-offer-week-grid em { font-style: normal; font-size: 7px; font-weight: 900; white-space: nowrap; }
.team-offer-week-grid b { font-size: 6px; line-height: 1; white-space: nowrap; }
.team-offer-week-grid .has-call:not(.is-call-day) { color: #8a5515; background: #fff1c9; }
.team-offer-week-grid .is-call-day {
  color: #fff;
  background: linear-gradient(145deg, #168060, #25ad83);
  box-shadow: 0 6px 12px rgba(20, 119, 89, .2);
}
.team-offer-week-grid .is-call-day small { color: #fff; }

.call-countdown {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px 11px;
  border: 1px solid rgba(184, 134, 47, .26);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 226, 145, .5), transparent 46%),
    linear-gradient(135deg, rgba(255, 250, 233, .96), rgba(236, 252, 244, .9));
  box-shadow: 0 14px 28px rgba(103, 75, 30, .1);
  text-align: left;
}

.call-countdown span {
  color: #9a702a;
  font-size: 12px;
  font-weight: 900;
}

.call-countdown strong {
  color: #123f33;
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.call-countdown small {
  color: #526c63;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
}

.call-countdown.is-urgent {
  border-color: rgba(213, 89, 58, .38);
  animation: callPulse 1s infinite;
}

.call-countdown.is-urgent strong,
.call-countdown.is-expired strong {
  color: #c33f2f;
}

.call-countdown.is-expired small::after {
  content: " 운영진이 다음 팀장님께 안내할 수 있습니다.";
}

@keyframes callPulse {
  0%,
  100% {
    box-shadow: 0 14px 28px rgba(103, 75, 30, .1);
  }

  50% {
    box-shadow: 0 16px 34px rgba(195, 63, 47, .2);
  }
}

.team-call-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.team-call-card dl > div {
  display: block;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(232, 251, 242, .7);
}

.team-call-card dt {
  color: var(--muted);
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 760;
}

.team-call-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 820;
}

.team-call-price {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0f8a67, #24ba8a);
  box-shadow: 0 12px 24px rgba(20, 119, 89, .22);
  font-size: 16px;
  font-weight: 950;
}

@media (max-width: 390px) {
  .team-call-body { padding: 10px; }
  .team-call-header { margin-bottom: 9px; }
  .team-call-header-actions > span { display: none; }
  .call-countdown { grid-template-columns: auto auto; gap: 5px 9px; }
  .call-countdown small { grid-column: 1 / -1; }
  .team-call-card dl { gap: 5px; }
  .team-call-card dl > div { padding: 7px 8px; }
  .team-offer-week { padding: 7px 5px; }
  .team-offer-week-grid { gap: 2px; }
  .team-offer-week-grid > div { min-height: 39px; border-radius: 7px; }
  .team-offer-week-grid em { font-size: 6px; }
}

@media (max-width: 520px) {
  .team-call-summary-top { grid-template-columns: 1fr; }
  .team-offer-week { margin-bottom: 8px; }
}

.team-customer-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, .92);
  box-shadow: var(--shadow);
}

.team-customer-card .section-title {
  margin-bottom: 12px;
}

.team-customer-card h1 {
  margin: 4px 0 0;
  color: #123f33;
  font-size: 28px;
  line-height: 1.2;
}

.customer-call-alert {
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid rgba(20, 119, 89, .18);
  border-radius: 18px;
  background: rgba(232, 251, 242, .78);
}

.customer-call-alert strong {
  color: #12684f;
  font-size: 16px;
  font-weight: 900;
}

.customer-call-alert p {
  margin: 6px 0 0;
  color: #526c63;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.customer-info-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.customer-info-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 9px;
  padding: 11px;
  border-radius: 15px;
  background: rgba(232, 251, 242, .68);
}

.customer-info-list dt {
  color: #6c8179;
  font-weight: 800;
}

.customer-info-list dd {
  margin: 0;
  color: #123f33;
  line-height: 1.45;
  font-weight: 850;
}

.customer-info-list a {
  color: #0f8a67;
  text-decoration: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settlement-card {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(213, 168, 75, .36);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 246, 214, .94), rgba(255, 255, 255, .88)),
    rgba(255, 253, 248, .92);
  box-shadow: 0 14px 34px rgba(143, 109, 52, .1);
}

.settlement-card strong {
  color: #8f6d34;
  font-size: 15px;
}

.settlement-card p {
  margin: 0;
  color: #365b51;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(20, 119, 89, .16);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(232, 251, 242, .86);
  font-weight: 760;
  line-height: 1.45;
}

.agreement-check input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.ops-form {
  display: grid;
  gap: 14px;
}

.ops-form > label,
.service-check-grid {
  display: grid;
  gap: 7px;
  color: #214e44;
  font-size: 14px;
  font-weight: 820;
}

.ops-form input[type="text"],
.ops-form input[type="tel"],
.ops-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(20, 119, 89, .18);
  border-radius: 15px;
  color: #123e32;
  background: rgba(255, 255, 255, .86);
  font: inherit;
  font-weight: 650;
  padding: 0 14px;
}

.ops-form input[readonly] {
  color: #6d837c;
  background: rgba(232, 251, 242, .74);
}

.service-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(213, 168, 75, .24);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 250, 231, .88), rgba(237, 255, 248, .88));
  padding: 16px;
}

.service-check-grid legend {
  grid-column: 1 / -1;
  color: #9a702a;
  font-size: 15px;
  font-weight: 920;
  padding: 0 6px;
}

.service-check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(20, 119, 89, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  color: #214e44;
  padding: 9px 10px;
}

.service-check-grid input,
.privacy-box + .agreement-check input {
  accent-color: var(--green);
}

.privacy-box {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(213, 168, 75, .28);
  border-radius: 18px;
  background: rgba(255, 248, 226, .72);
  color: #385d52;
  padding: 15px;
}

.privacy-box strong {
  color: #8f6d34;
  font-size: 15px;
}

.privacy-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 620;
}

.duty-box {
  border-color: rgba(154, 112, 42, .34);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 239, 184, .54), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 231, .92), rgba(255, 255, 255, .88));
}

.duty-box ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #365b51;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
}

.duty-box li::marker {
  color: #b8862f;
}

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

.notice-link-card {
  display: grid;
  gap: 8px;
  padding: 16px 17px;
  border: 1px solid rgba(18, 104, 79, .18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 228, 150, .45), transparent 44%),
    linear-gradient(135deg, rgba(232, 250, 242, .92), rgba(255, 252, 238, .9));
  color: #123f33;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(18, 104, 79, .08);
}

.notice-link-card strong {
  color: #12684f;
  font-size: 16px;
  font-weight: 900;
}

.notice-link-card span {
  color: #45665c;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.notice-link-card:hover {
  border-color: rgba(201, 154, 55, .45);
  transform: translateY(-1px);
}

.cleaning-scope-trigger {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cleaning-scope-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(86vh, 820px);
  margin: auto;
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(18, 104, 79, .25);
  border-radius: 24px;
  background: linear-gradient(145deg, #fffdf5, #f1fff8);
  color: #153f35;
  box-shadow: 0 30px 90px rgba(17, 62, 50, .3);
}

.cleaning-scope-dialog::backdrop {
  background: rgba(18, 45, 38, .58);
  backdrop-filter: blur(4px);
}

.cleaning-scope-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cleaning-scope-dialog__head small { color: #a26a13; font-weight: 900; }
.cleaning-scope-dialog__head h2 { margin: 4px 0 0; color: #0b6b52; font-size: 25px; }
.cleaning-scope-dialog__head button {
  width: 38px;
  height: 38px;
  border: 1px solid #cfe2da;
  border-radius: 50%;
  background: #fff;
  color: #30594f;
  font-size: 25px;
  cursor: pointer;
}

.cleaning-scope-dialog__intro,
.cleaning-scope-dialog__foot { margin: 16px 0; color: #49685f; font-size: 14px; line-height: 1.65; }
.cleaning-scope-dialog__service {
  margin: -4px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eaf8f2;
  color: #0f7057;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}
.cleaning-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cleaning-scope-grid section,
.cleaning-scope-extra { padding: 14px; border: 1px solid #d8e9e2; border-radius: 16px; background: rgba(255, 255, 255, .78); }
.cleaning-scope-grid strong,
.cleaning-scope-extra strong { color: #0f7057; font-size: 15px; }
.cleaning-scope-grid p,
.cleaning-scope-extra p { margin: 6px 0 0; color: #49685f; font-size: 13px; line-height: 1.6; }
.cleaning-scope-extra { margin-top: 12px; border-color: #ead69c; background: #fff9e9; }
.cleaning-scope-confirm { width: 100%; }

@media (max-width: 620px) {
  .cleaning-scope-dialog { padding: 17px; border-radius: 20px; }
  .cleaning-scope-grid { grid-template-columns: 1fr; }
}

.rate-reload-button {
  width: fit-content;
  margin: -4px 0 14px;
}

.team-info-dashboard {
  display: grid;
  gap: 18px;
}

.team-info-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.team-info-meta span,
.team-empty-call,
.team-info-call-card,
.team-check-grid a,
.team-duty-summary {
  border: 1px solid rgba(20, 119, 89, .14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 241, 184, .44), transparent 42%),
    rgba(255, 253, 248, .9);
}

.team-info-meta span {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  color: #688177;
  font-size: 12px;
  font-weight: 760;
}

.team-info-meta strong {
  color: #123f33;
  font-size: 14px;
  line-height: 1.45;
}

.team-info-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #147759, #27b487);
  font-size: 13px;
  font-weight: 900;
}

.team-call-list {
  display: grid;
  gap: 12px;
}

.team-empty-call,
.team-info-call-card {
  padding: 17px;
}

.team-empty-call strong,
.team-info-call-card h3,
.team-duty-summary strong {
  color: #123f33;
  font-size: 18px;
  font-weight: 900;
}

.team-empty-call p,
.team-info-call-card p {
  margin: 8px 0 0;
  color: #5f786e;
  line-height: 1.55;
  font-weight: 680;
}

.team-info-call-card {
  display: grid;
  gap: 8px;
}

.team-info-call-card small {
  color: #b8862f;
  font-weight: 900;
}

.team-reminder-alert {
  display: grid;
  gap: 6px;
  padding: 15px 17px;
  border: 1px solid rgba(217, 139, 28, .28);
  border-radius: 18px;
  color: #7b4c08;
  background: #fff8df;
  line-height: 1.55;
}

.team-call-price-line strong {
  color: #12684f;
  font-size: 16px;
}

.team-call-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 5px;
}

.team-call-card-actions a,
.team-call-card-actions button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 13px;
}

.team-settlement-status {
  justify-self: start;
  padding: 7px 11px;
  border-radius: 999px;
  color: #6a756f;
  background: #eef3f0;
  font-size: 12px;
  font-weight: 900;
}

.team-settlement-status.paid {
  color: #0e7151;
  background: #e3f8ef;
}

.team-settlement-status.partial {
  color: #9a6100;
  background: #fff3cf;
}

.team-settlement-status.unpaid {
  color: #a34138;
  background: #ffebe7;
}

.settlement-dialog {
  width: min(92vw, 540px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 26px 80px rgba(17, 52, 42, .24);
}

.settlement-dialog::backdrop {
  background: rgba(14, 33, 27, .48);
}

.settlement-dialog form {
  display: grid;
  gap: 18px;
  padding: 24px;
  color: #244b3f;
  background: #fffdf8;
}

.settlement-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.settlement-dialog h2,
.settlement-dialog p {
  margin: 0;
}

.settlement-dialog-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef5f1;
  cursor: pointer;
}

.settlement-dialog fieldset {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.settlement-dialog fieldset label,
.settlement-confirm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(20, 119, 89, .16);
  border-radius: 14px;
  background: #fff;
  font-weight: 780;
}

.quote-stage.leader-completed,
.quote-completion-report,
.quote-settlement-report {
  color: #0e7151;
  background: #e5f8f0;
}

.quote-completion-report,
.quote-settlement-report {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
}

.quote-settlement-report.partial {
  color: #8b5c0c;
  background: #fff4d2;
}

.quote-settlement-report.unpaid {
  color: #9e4037;
  background: #ffebe7;
}

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

.team-check-grid a {
  display: grid;
  gap: 7px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.team-check-grid strong {
  color: #12684f;
  font-size: 16px;
  font-weight: 900;
}

.team-check-grid span {
  color: #526c63;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.team-duty-summary ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.team-duty-summary li {
  color: #45665c;
  line-height: 1.55;
  font-weight: 700;
}

.team-schedule-confirm {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e3c579;
  border-radius: 18px;
  background: #fff9e8;
}

.team-schedule-confirm strong,
.team-schedule-confirm p {
  display: block;
  margin: 0;
}

.team-schedule-confirm p {
  margin-top: 5px;
  color: #6f6750;
  font-size: 12px;
  line-height: 1.5;
}

.team-schedule-confirm div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.team-schedule-confirm button {
  min-height: 44px;
  border: 1px solid #d9b85f;
  border-radius: 12px;
  color: #77520a;
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}

.team-call-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.team-call-actions button {
  min-height: 54px;
  font-size: 16px;
}

.action-guide {
  margin: -2px 4px 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
  text-align: center;
}

.team-call-actions .reject-call {
  color: #9a4f35;
  background: linear-gradient(135deg, #fff5ee, #ffe6d9);
  box-shadow: none;
}

.team-call-actions .cancel-call {
  display: grid;
  gap: 2px;
  color: #973f2f;
  background: linear-gradient(135deg, #fff2ef, #ffe1d8);
  box-shadow: none;
}

.team-call-actions .cancel-call small {
  color: #9a4f35;
  font-size: 11px;
  font-weight: 760;
}

.sms-preview-link {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(20, 119, 89, .18);
  border-radius: 16px;
  color: var(--green);
  background: rgba(255, 255, 255, .82);
  font-weight: 820;
  text-decoration: none;
}

.team-call-note {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 560;
}

.sms-preview-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.sms-preview-shell {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(260px, 420px);
  gap: 24px;
  align-items: center;
  width: min(100%, 900px);
}

.sms-preview-shell .team-call-header {
  grid-column: 1 / -1;
}

.phone-preview {
  overflow: hidden;
  border: 10px solid #1f2926;
  border-radius: 34px;
  background: #f7f8f6;
  box-shadow: 0 26px 70px rgba(20, 59, 49, .28);
}

.phone-status,
.sms-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-status {
  padding: 10px 18px 6px;
  color: #1c2925;
  font-size: 12px;
  font-weight: 840;
}

.verification-card,
.business-verification-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(19, 145, 111, 0.25);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 250, 243, 0.96), rgba(255, 252, 238, 0.96));
}

.business-verification-card {
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.5fr) auto;
  border-color: rgba(190, 143, 36, 0.28);
  background: linear-gradient(135deg, rgba(255, 249, 226, 0.97), rgba(238, 250, 245, 0.96));
}

.verification-card-copy small,
.verification-card-copy strong,
.verification-card-copy p {
  display: block;
}

.verification-card-copy small {
  margin-bottom: 4px;
  color: #9b6c12;
  font-weight: 700;
}

.verification-card-copy strong {
  color: #073f35;
  font-size: 1.08rem;
}

.verification-card-copy p {
  margin: 5px 0 0;
  color: #4b6c63;
  font-size: 0.9rem;
  line-height: 1.55;
}

.verification-card-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.verification-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff7dc;
  color: #9a6811;
  font-size: 0.84rem;
  font-weight: 700;
}

.verification-status[data-tone="verified"] {
  background: #dff7eb;
  color: #087554;
}

.verification-status[data-tone="error"] {
  background: #fff0ec;
  color: #ad3f2b;
}

.verification-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  color: #315b50;
  font-size: 0.84rem;
  line-height: 1.45;
}

.verification-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: #158465;
}

.business-verification-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.business-verification-fields label {
  margin: 0;
}

.team-join-form {
  gap: 10px;
}

.team-join-form .verification-card {
  padding: 14px 16px;
}

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

.team-contact-row label {
  display: grid;
  gap: 6px;
  color: #214e44;
  font-size: 14px;
  font-weight: 820;
}

.team-verification-split {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(20, 119, 89, .2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 252, 246, .94), rgba(255, 249, 226, .92));
}

.team-verification-split .verified-address-field,
.team-verification-split .business-verification-card {
  min-width: 0;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.team-verification-split .business-verification-card {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 10px;
  border-left: 1px solid rgba(20, 119, 89, .28);
}

.team-verification-split .business-verification-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.team-verification-split .business-verification-fields input,
.team-verification-split .verified-address-grid input {
  min-height: 40px;
  padding-inline: 10px;
  border-radius: 11px;
}

.team-verification-split .verification-card-action {
  justify-content: space-between;
}

.important-payment-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px;
  border-color: rgba(210, 126, 36, .42);
  background: linear-gradient(135deg, rgba(255, 246, 214, .96), rgba(237, 255, 248, .9));
}

.service-check-grid.important-payment-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.important-payment-panel label {
  min-height: 38px;
  padding: 7px 10px;
}

.important-payment-panel p {
  grid-column: 1 / -1;
  margin: 0;
  color: #765019;
  font-size: 12px;
  line-height: 1.45;
}

.important-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: #d56c28;
  font-size: 11px;
  vertical-align: middle;
}

.agreement-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.agreement-row .agreement-check {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
}

.agreement-row .agreement-check input {
  width: 18px;
  height: 18px;
}

.team-join-form > .service-check-grid:not(.payment-check-grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 12px;
}

.team-join-form > .service-check-grid:not(.payment-check-grid) label {
  min-height: 38px;
  padding: 7px 9px;
}

.service-selection-warning {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  padding: 11px 13px;
  border: 1px solid rgba(221, 153, 39, .42);
  border-radius: 13px;
  background: #fff8df;
  color: #6f5524;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.6;
}
.service-selection-warning strong { margin-right: 5px; color: #c15d16; font-weight: 950; }

.team-join-form .privacy-box {
  gap: 5px;
  padding: 12px 14px;
}

.team-join-form .duty-box ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

@media (max-width: 760px) {
  .verification-card,
  .business-verification-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .business-verification-fields {
    grid-template-columns: 1fr;
  }

  .verification-card-action {
    justify-content: space-between;
  }

  .team-verification-split,
  .agreement-row {
    grid-template-columns: 1fr;
  }

  .team-verification-split .business-verification-card {
    border-top: 1px solid rgba(20, 119, 89, .28);
    border-left: 0;
  }

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

  .team-join-form > .service-check-grid:not(.payment-check-grid),
  .team-join-form .duty-box ul {
    grid-template-columns: 1fr;
  }
}

.sms-app-header {
  justify-content: flex-start;
  gap: 12px;
  padding: 8px 16px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  background: #ffffff;
}

.sms-app-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #147759;
  background: #e9fbf1;
  font-size: 30px;
  line-height: 1;
}

.sms-app-header strong,
.sms-app-header small {
  display: block;
}

.sms-app-header small {
  margin-top: 2px;
  color: #7b8d86;
  font-size: 12px;
  font-weight: 650;
}

.sms-date {
  margin: 16px auto;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #7b8d86;
  background: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 700;
}

.sms-bubble {
  width: calc(100% - 42px);
  margin: 0 0 26px 16px;
  padding: 16px;
  border-radius: 20px 20px 20px 6px;
  color: #123e32;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 59, 49, .08);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.sms-bubble p {
  margin: 0 0 12px;
}

.sms-bubble p:last-child {
  margin-bottom: 0;
}

.sms-bubble a {
  color: #147759;
  text-decoration: underline;
  word-break: break-all;
}

.sms-preview-note {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, .86);
  box-shadow: var(--shadow);
}

.sms-preview-note h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.16;
}

.sms-preview-note p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 560;
}

.complete-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 240, 181, .64), transparent 34%),
    rgba(255, 253, 248, .9);
  box-shadow: var(--shadow);
  text-align: center;
}

.complete-card span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 16px 34px rgba(20, 119, 89, .24);
  font-size: 34px;
  font-weight: 900;
}

.complete-card h1 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 27px;
  line-height: 1.25;
}

.complete-card p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 650;
}

.complete-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .admin-hero,
  .section-title {
    display: grid;
  }

  .stats-grid,
  .ops-alert-grid,
  .settings-grid,
  .shortcut-grid,
  .sms-grid,
  .customer-workspace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .call-card,
  .team-row,
  .large-team-table .team-row,
  .personal-sms-form {
    grid-template-columns: 1fr;
  }

  .call-actions {
    justify-content: flex-start;
  }

  .sms-preview-shell {
    grid-template-columns: 1fr;
  }

  .team-info-meta,
  .team-check-grid {
    grid-template-columns: 1fr;
  }

.customer-detail-panel {
  position: static;
}
}

.quote-alert-panel {
  border-color: rgba(18, 152, 113, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 250, 230, 0.94), rgba(237, 255, 248, 0.96)),
    #fff;
}

.quote-alert-panel.has-pending {
  border-color: rgba(188, 126, 27, 0.42);
  box-shadow: 0 18px 44px rgba(131, 93, 24, 0.14);
  animation: pendingPanelPulse 1.4s ease-in-out infinite;
}

.quote-alert-panel #enableQuoteAlarm {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0e8f69, #2ec494);
  color: #fff;
  font-weight: 800;
  padding: 12px 18px;
  box-shadow: 0 12px 26px rgba(17, 143, 106, 0.22);
}

.quote-alert-panel #enableQuoteAlarm.needs-click {
  background: linear-gradient(135deg, #b97718, #f0b84d);
}

.quote-alert-panel #enableQuoteAlarm:disabled {
  opacity: 0.72;
}

.quote-alert-summary {
  margin-top: 14px;
  border: 1px solid rgba(198, 154, 71, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  color: #0d463b;
  font-size: 1rem;
  font-weight: 750;
  padding: 15px 16px;
}

.quote-alert-summary strong {
  color: #b0781f;
  font-size: 1.18em;
}

.dispatch-mode-panel {
  display: grid;
  grid-template-columns: minmax(210px, .7fr) minmax(0, 1.8fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid rgba(23, 132, 101, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.dispatch-mode-panel small {
  display: block;
  color: #a06c1b;
  font-weight: 900;
  margin-bottom: 6px;
}

.dispatch-mode-panel strong {
  display: block;
  color: #063f35;
  font-size: 1.08rem;
  font-weight: 950;
}

.dispatch-mode-panel p {
  margin: 6px 0 0;
  color: #526d66;
  font-size: 0.9rem;
  line-height: 1.45;
}

.dispatch-mode-panel.is-auto {
  border-color: rgba(220, 134, 34, 0.42);
  background: linear-gradient(135deg, rgba(255, 244, 210, 0.94), rgba(235, 255, 247, 0.9));
}

.dispatch-mode-actions {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.dispatch-mode-actions button {
  border: 1px solid rgba(17, 130, 98, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #49655e;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  min-height: 34px;
  padding: 6px 9px;
}

.dispatch-mode-actions button.active {
  border-color: rgba(189, 126, 28, 0.45);
  background: linear-gradient(135deg, #0f8d6a, #2ac393);
  color: #fff;
  box-shadow: 0 14px 28px rgba(17, 143, 106, 0.24);
  animation: dispatchActiveBlink 1s ease-in-out infinite;
}

.dispatch-mode-panel.is-auto .dispatch-mode-actions button.active {
  background: linear-gradient(135deg, #b87419, #edbb54);
  box-shadow: 0 14px 30px rgba(194, 126, 31, 0.28);
}

.dispatch-category-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.dispatch-category-settings article {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(17, 130, 98, 0.14);
  border-radius: 11px;
  background: rgba(248, 253, 251, 0.86);
}

.dispatch-category-settings article > strong {
  margin-bottom: 5px;
  font-size: 12px;
  white-space: nowrap;
}

.dispatch-category-settings .dispatch-mode-actions button.active[data-dispatch-mode="auto"] {
  background: linear-gradient(135deg, #b87419, #edbb54);
}

.dispatch-category-settings .dispatch-mode-actions button.active[data-dispatch-mode="manual"] {
  background: linear-gradient(135deg, #0f8d6a, #2ac393);
}

.dispatch-failover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(17, 130, 98, 0.2);
}

.dispatch-failover > span {
  color: #6b7d77;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.25;
}

.dispatch-failover > div {
  display: grid;
  grid-template-columns: repeat(2, 34px);
  gap: 3px;
}

.dispatch-failover button {
  min-height: 25px;
  padding: 3px 5px;
  border: 1px solid rgba(17, 130, 98, 0.16);
  border-radius: 7px;
  background: #eef3f1;
  color: #667872;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
}

.dispatch-failover button.active[data-dispatch-failover="on"] {
  border-color: #c18a2d;
  background: linear-gradient(135deg, #b87419, #edbb54);
  color: #fff;
}

.dispatch-failover button.active[data-dispatch-failover="off"] {
  border-color: #5c8578;
  background: #718982;
  color: #fff;
}

@keyframes dispatchActiveBlink {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }

  50% {
    transform: translateY(-1px);
    filter: brightness(1.13);
  }
}

.quote-has-pending .quote-alert-summary {
  border-color: rgba(206, 77, 44, 0.34);
  background: linear-gradient(135deg, rgba(255, 238, 224, 0.96), rgba(255, 255, 255, 0.84));
  animation: pendingSummaryBlink 1s ease-in-out infinite;
}

.quote-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quote-filter-bar button,
.quote-filter-bar a {
  border: 1px solid rgba(17, 130, 98, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #325a51;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  min-height: 38px;
  padding: 8px 13px;
  text-decoration: none;
}

.quote-filter-bar button.active {
  border-color: rgba(13, 126, 91, 0.32);
  background: linear-gradient(135deg, #0f8d6a, #2ac393);
  color: #fff;
  box-shadow: 0 10px 22px rgba(17, 143, 106, 0.2);
}

.quote-filter-bar a {
  margin-left: auto;
  border-color: rgba(188, 126, 27, 0.26);
  color: #9b6418;
}

.scheduled-call-admin .section-title a {
  border: 1px solid rgba(188, 126, 27, 0.28);
  border-radius: 999px;
  padding: 10px 14px;
  color: #946018;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.call-date-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0 13px;
}

.call-date-filter-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  border: 1px solid rgba(17, 130, 98, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  color: #28594e;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.call-date-filter-bar button strong {
  color: #0d8968;
  font-size: 15px;
}

.call-date-filter-bar button small {
  color: inherit;
  font-size: 10px;
}

.call-date-filter-bar button.active {
  border-color: transparent;
  background: linear-gradient(135deg, #0d8b68, #29bb8f);
  color: #fff;
  box-shadow: 0 10px 22px rgba(17, 143, 106, 0.2);
}

.call-date-filter-bar button.active strong {
  color: #fff;
}

.scheduled-call-list {
  min-height: 76px;
}

.call-date-empty {
  padding: 22px 18px;
  border: 1px solid rgba(215, 184, 108, 0.38);
  border-radius: 16px;
  background: rgba(255, 250, 231, 0.78);
  color: #8b611f;
  font-weight: 800;
  text-align: center;
}

.quote-request-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.estimate-category-filter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding: 5px;
  border: 1px solid rgba(17, 130, 98, 0.15);
  border-radius: 13px;
  background: rgba(236, 248, 243, 0.78);
}

.estimate-category-filter button {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #42665d;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.estimate-category-filter button.active {
  border-color: rgba(10, 119, 86, 0.2);
  background: linear-gradient(135deg, #0d8b68, #28b98d);
  color: #fff;
  box-shadow: 0 5px 13px rgba(17, 143, 106, 0.17);
}

@media (max-width: 620px) {
  .estimate-category-filter {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .estimate-category-filter::-webkit-scrollbar { display: none; }
  .estimate-category-filter button { flex: 0 0 auto; min-width: 82px; }
}

.quote-request-card,
.quote-empty {
  border: 1px solid rgba(24, 92, 75, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
}

.quote-request-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: stretch;
  gap: 12px;
}

.quote-request-card.pending {
  border-color: rgba(188, 126, 27, 0.4);
  background: linear-gradient(135deg, rgba(255, 249, 226, 0.94), rgba(255, 255, 255, 0.9));
  animation: pendingCardGlow 1.25s ease-in-out infinite;
}

.quote-request-card.completed {
  border-color: rgba(21, 142, 104, 0.18);
  background: linear-gradient(135deg, rgba(232, 255, 247, 0.94), rgba(255, 255, 255, 0.9));
}

.quote-request-card.cancelled {
  border-color: rgba(176, 76, 49, 0.18);
  background: linear-gradient(135deg, rgba(255, 242, 235, 0.96), rgba(255, 255, 255, 0.9));
}

@keyframes pendingPanelPulse {
  0%,
  100% {
    box-shadow: 0 18px 44px rgba(131, 93, 24, 0.14);
  }

  50% {
    box-shadow: 0 22px 58px rgba(196, 117, 28, 0.3);
  }
}

@keyframes pendingSummaryBlink {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes pendingCardGlow {
  0%,
  100% {
    border-color: rgba(188, 126, 27, 0.4);
  }

  50% {
    border-color: rgba(224, 72, 42, 0.62);
  }
}

.quote-card-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.quote-card-head,
.quote-card-title-row,
.quote-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.quote-card-title-row {
  justify-content: space-between;
}

.quote-request-card small {
  color: #8a744d;
  font-weight: 700;
}

.quote-request-card h3 {
  margin: 0;
  color: #083f35;
  font-size: 1rem;
}

.quote-request-card p {
  margin: 0;
  color: #48645e;
}

.quote-card-contact {
  font-size: .92rem;
  font-weight: 730;
}

.quote-card-meta span {
  border-radius: 999px;
  background: rgba(18, 152, 113, 0.08);
  color: #0d6d55;
  font-size: .82rem;
  font-weight: 850;
  padding: 5px 9px;
}

.quote-request-card .quote-service-name {
  color: #0d6d55;
  font-weight: 850;
}

.quote-request-card .quote-estimate-total {
  color: #9b6418;
  font-size: .95rem;
  font-weight: 900;
  white-space: nowrap;
}

.quote-request-card .quote-estimate-summary {
  border-radius: 12px;
  background: rgba(18, 152, 113, 0.08);
  color: #234f45;
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 7px 9px;
}

.quote-request-card .quote-dispatch-status {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(17, 130, 98, 0.16);
  border-radius: 999px;
  background: rgba(20, 147, 111, 0.1);
  color: #0b7659;
  font-size: 0.78rem;
  font-weight: 900;
  margin-top: 0;
  padding: 5px 9px;
}

.quote-request-card .quote-dispatch-status.sent {
  border-color: rgba(21, 142, 104, 0.24);
  background: rgba(20, 147, 111, 0.16);
}

.quote-request-card .quote-dispatch-status.failed,
.quote-request-card .quote-dispatch-status.no_leader {
  border-color: rgba(202, 85, 45, 0.26);
  background: rgba(255, 232, 220, 0.88);
  color: #a34220;
}

.quote-request-card .quote-stage {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(15, 142, 102, 0.12);
  color: #0a7659;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 10px;
}

.quote-request-card.pending .quote-stage {
  background: rgba(203, 143, 35, 0.16);
  color: #9b6418;
}

.quote-request-card .quote-stage.dispatched {
  background: rgba(42, 118, 199, 0.12);
  color: #2867a8;
}

.quote-request-card .quote-stage.cancelled {
  background: rgba(203, 80, 44, 0.12);
  color: #a34220;
}

.quote-request-card .quote-stage.completed {
  background: rgba(15, 142, 102, 0.18);
  color: #087154;
}

.quote-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-self: center;
  min-width: 0;
}

.quote-request-card button {
  border: 1px solid rgba(16, 139, 101, 0.2);
  border-radius: 13px;
  background: #139d75;
  color: #fff;
  font-size: .86rem;
  font-weight: 850;
  min-height: 42px;
  padding: 8px 10px;
}

.quote-request-card button:disabled {
  background: rgba(19, 88, 73, 0.12);
  color: #6f827d;
}

.quote-request-card button.danger {
  border-color: rgba(196, 85, 45, 0.22);
  background: #fff5ee;
  color: #a34220;
}

.quote-request-card button.danger:disabled {
  background: rgba(101, 74, 65, 0.08);
  color: #8d817c;
}

.past-call-summary {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.past-call-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.past-call-meta span {
  border-radius: 999px;
  background: rgba(15, 142, 102, 0.1);
  color: #0a7659;
  font-size: 0.85rem;
  font-weight: 850;
  padding: 6px 10px;
}

@media (max-width: 520px) {
  .admin-shell {
    padding-inline: 12px;
  }

  .stats-grid,
  .ops-alert-grid,
  .settings-grid,
  .shortcut-grid,
  .price-grid,
  .leader-filter,
  .sms-grid,
  .customer-workspace,
  .status-controls,
  .customer-action-grid {
    grid-template-columns: 1fr;
  }

  .dispatch-mode-panel,
  .quote-request-card {
    grid-template-columns: 1fr;
  }

  .quote-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .quote-filter-bar button,
  .quote-filter-bar a {
    flex: 0 0 auto;
  }

  .quote-filter-bar a {
    margin-left: 0;
  }

  .dispatch-mode-actions {
    grid-template-columns: 1fr;
  }

  .dispatch-category-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dispatch-category-settings .dispatch-mode-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .admin-hero,
  .admin-section {
    padding: 18px;
    border-radius: 22px;
  }

  .rate-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .rate-modal-panel {
    max-height: 92vh;
    border-radius: 24px;
  }

  .rate-modal-header {
    padding: 20px 18px 12px;
  }

  .rate-dispatch-settings {
    align-items: stretch;
    flex-direction: column;
  }

  .rate-dispatch-settings label {
    min-width: 0;
  }

  .rate-status {
    margin: 0 18px 14px;
  }

  .rate-form {
    padding: 0 18px 18px;
  }

  .rate-category,
  .rate-form fieldset {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .rate-tier,
  .rate-tier.compact-six,
  .settlement-rate {
    grid-template-columns: 1fr;
  }

  .rate-tier b {
    min-height: 38px;
  }

  .service-check-grid {
    grid-template-columns: 1fr;
  }

  .rate-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.map-hero {
  align-items: center;
}

.map-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.map-summary-grid article {
  padding: 18px 20px;
  border: 1px solid rgba(215, 184, 108, 0.42);
  border-radius: 22px;
  background: linear-gradient(135deg, #fffdf6 0%, #eefaf4 100%);
  box-shadow: 0 14px 34px rgba(20, 82, 63, 0.08);
}

.map-summary-grid span {
  display: block;
  color: #9a722b;
  font-size: 13px;
  font-weight: 900;
}

.map-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: #073f36;
  font-size: 28px;
  line-height: 1;
}

.admin-map-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.map-side-panel,
.map-main-panel {
  min-width: 0;
}

.compact-title {
  gap: 12px;
  margin-bottom: 12px;
}

.compact-title h2 {
  font-size: 22px;
}

.map-call-list,
.map-leader-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.map-call-list button {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(215, 184, 108, 0.42);
  border-radius: 16px;
  padding: 12px;
  background: #fffef8;
  color: #073f36;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.map-call-list button.active,
.map-call-list button:hover {
  border-color: rgba(26, 154, 116, 0.55);
  background: #eaf9f1;
  box-shadow: 0 10px 22px rgba(21, 137, 102, 0.14);
}

.map-call-list strong,
.map-leader-list strong {
  display: block;
  font-weight: 900;
}

.map-call-list span,
.map-call-list small,
.map-leader-list span,
.map-leader-list small {
  display: block;
  margin-top: 4px;
  color: #557067;
  font-size: 12px;
  line-height: 1.35;
}

.map-selected-card,
.map-empty-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(203, 160, 70, 0.35);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7d7 0%, #fffef8 100%);
  color: #073f36;
}

.map-selected-card small,
.map-empty-card span {
  display: block;
  color: #9a722b;
  font-size: 12px;
  font-weight: 900;
}

.map-selected-card strong,
.map-empty-card strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  font-weight: 900;
}

.map-selected-card > span {
  display: block;
  margin-top: 5px;
  color: #557067;
  font-size: 13px;
}

.map-selected-card dl {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.map-selected-card div {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.map-selected-card dt {
  color: #9a722b;
  font-size: 11px;
  font-weight: 900;
}

.map-selected-card dd {
  margin: 0;
  color: #073f36;
  font-size: 13px;
  font-weight: 800;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: #557067;
  font-size: 12px;
  font-weight: 900;
}

.pin {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 999px;
}

.pin.customer {
  background: #d84436;
}

.pin.leader {
  background: #149b72;
}

.map-mode-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff1c7;
  color: #916922;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.leader-map {
  height: 64vh;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(26, 150, 118, 0.2);
  border-radius: 22px;
  background: #eef6ef;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 16px 36px rgba(20, 82, 63, 0.08);
}

.map-leader-list article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid rgba(215, 184, 108, 0.4);
  border-radius: 16px;
  padding: 12px;
  background: #fffef9;
}

.map-leader-list article.near {
  border-color: rgba(31, 173, 126, 0.35);
  background: #ecfbf4;
}

.map-leader-list b {
  color: #087357;
  font-size: 14px;
  white-space: nowrap;
}

.map-marker {
  border: 0;
  background: transparent;
}

.map-marker span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.customer-marker span {
  background: #d84436;
}

.leader-marker span {
  background: #13986f;
}

.map-popup {
  min-width: 180px;
  padding: 4px 2px;
  color: #073f36;
  font-size: 13px;
  line-height: 1.45;
}

.map-popup b {
  display: block;
  margin-bottom: 4px;
  font-weight: 900;
}

.map-popup span {
  display: block;
}

@media (max-width: 1100px) {
  .admin-map-layout {
    grid-template-columns: 1fr;
  }

  .leader-map {
    height: 520px;
    min-height: 420px;
  }

  .map-call-list,
  .map-leader-list {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .map-summary-grid {
    grid-template-columns: 1fr;
  }

  .leader-map {
    height: 420px;
  }
}

.macro-control-section { border: 2px solid #8bcdb7; background: linear-gradient(145deg, #f8fffb 0%, #e8f8f1 100%); box-shadow: 0 16px 36px rgba(18, 103, 79, .1); }
.macro-control-title { align-items: center; }
.macro-connection-status { padding: 7px 12px; border-radius: 999px; background: #edf1ef; color: #64756f; font-size: 13px; }
.macro-connection-status.is-online { background: #d8f5e7; color: #087554; }
.macro-control-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.macro-control-grid article { padding: 14px; border: 1px solid #c9e5da; border-radius: 14px; background: rgba(255,255,255,.9); }
.macro-control-grid small { display: block; margin-bottom: 6px; color: #6b7f78; font-weight: 800; }
.macro-control-grid strong { color: #123f34; font-size: 15px; }
#macroModeStatus.is-enabled { color: #087957; }
.macro-control-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.macro-control-actions button { min-height: 42px; }
.macro-power-button { padding: 10px 18px; border: 0; border-radius: 12px; color: #fff; font-weight: 900; cursor: pointer; }
.macro-power-button.is-on { background: #11936d; }
.macro-power-button.is-off { background: #d55342; }
.macro-power-button:disabled { opacity: .42; cursor: not-allowed; }
.macro-security-note { margin: 13px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff6d9; color: #765814; font-size: 13px; line-height: 1.55; }
.macro-security-note b { margin-right: 6px; }
.macro-password-dialog { width: min(440px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 22px; background: transparent; }
.macro-password-dialog::backdrop { background: rgba(6, 35, 28, .58); backdrop-filter: blur(3px); }
.macro-password-form { position: relative; display: grid; gap: 11px; padding: 26px; border: 2px solid #8acdb6; border-radius: 22px; background: #fffef9; box-shadow: 0 24px 70px rgba(4, 39, 30, .3); }
.macro-password-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #e5f3ed; color: #135744; font-size: 25px; cursor: pointer; }
.macro-password-icon { font-size: 32px; }
.macro-password-form h2, .macro-password-form p { margin: 0; }
.macro-password-form p { color: #61766f; line-height: 1.55; }
.macro-password-form label { color: #174b3e; font-weight: 850; }
.macro-password-form input { width: 100%; height: 48px; padding: 0 14px; border: 2px solid #b7d9cd; border-radius: 12px; color: #113d33; background: #fff; font-size: 20px; font-weight: 850; letter-spacing: .08em; }
.macro-password-error { min-height: 18px; color: #c13f31; font-size: 13px; font-weight: 800; }
.macro-password-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; }

@media (max-width: 680px) {
  .macro-control-grid { grid-template-columns: 1fr; }
  .macro-control-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .macro-control-actions #macroDownloadButton { grid-column: 1 / -1; }
}

/* 매크로 관리는 세로 공간을 최소화한 한눈형 관리바로 표시합니다. */
.macro-control-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title title"
    "guide guide"
    "status actions"
    "categories categories"
    "monitor monitor"
    "notice notice";
  gap: 7px 12px;
  padding: 11px 14px !important;
}

.macro-control-section .section-title { grid-area: title; margin: 0; }
.macro-control-section .section-title small { font-size: 11px; line-height: 1.1; }
.macro-control-section .section-title h2 { margin-top: 2px; font-size: 18px; line-height: 1.15; }
.macro-control-section > .guide-text { grid-area: guide; margin: 0; font-size: 12px; line-height: 1.35; }
.macro-control-section .macro-connection-status { padding: 5px 9px; font-size: 11px; }
.macro-control-section .macro-control-grid { grid-area: status; display: flex; gap: 6px; margin: 0; min-width: 0; }
.macro-control-section .macro-control-grid article { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 9px; border-radius: 10px; }
.macro-control-section .macro-control-grid small { flex: 0 0 auto; margin: 0; font-size: 10px; }
.macro-control-section .macro-control-grid strong { overflow: hidden; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.macro-control-section .macro-control-actions { grid-area: actions; display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; margin: 0; }
.macro-control-section .macro-control-actions button { min-height: 34px; padding: 7px 10px; border-radius: 9px; font-size: 12px; white-space: nowrap; }
.macro-control-section .macro-device-change { border-color: #d9b764; color: #805f0d; background: #fff9e8; }
.macro-control-section .macro-device-change:disabled { border-color: #d9e1de; color: #83908c; background: #f2f5f4; cursor: not-allowed; opacity: .78; }
.macro-control-section .macro-settings-link { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 10px; border-radius: 9px; font-size: 12px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.macro-category-settings { grid-area: categories; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.macro-category-settings article { display: grid; grid-template-columns: auto minmax(88px, 1fr) auto auto; align-items: center; gap: 5px; min-width: 0; padding: 6px 7px; border: 1px solid #c9e5da; border-radius: 10px; background: rgba(255,255,255,.86); }
.macro-category-settings strong { color: #174b3e; font-size: 11px; white-space: nowrap; }
.macro-category-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.macro-category-buttons button { min-height: 28px; padding: 4px 6px; border: 1px solid #d0dfda; border-radius: 7px; background: #e8eeeb; color: #65736f; font-size: 10px; font-weight: 900; cursor: pointer; }
.macro-category-buttons button.is-active[data-macro-category-mode="on"] { border-color: #0e9a72; background: #13a47b; color: #fff; }
.macro-category-buttons button.is-active[data-macro-category-mode="off"] { border-color: #c76052; background: #d66b5b; color: #fff; }
.macro-category-settings label { display: flex; align-items: center; gap: 3px; color: #6c7e78; font-size: 9px; white-space: nowrap; }
.macro-category-settings input { width: 39px; height: 27px; padding: 2px; border: 1px solid #c8ded6; border-radius: 6px; background: #f8fbfa; color: #164b3d; font-size: 11px; font-weight: 900; text-align: center; }
.macro-time-save { min-height: 27px; padding: 4px 6px; border: 1px solid #aad4c6; border-radius: 7px; background: #f1faf7; color: #087b5f; font-size: 9px; font-weight: 900; cursor: pointer; }
.macro-control-section .macro-security-note { grid-area: notice; margin: 0; padding: 6px 9px; font-size: 11px; line-height: 1.3; }
.macro-job-monitor { grid-area: monitor; overflow: hidden; border: 1px solid #b9dacf; border-radius: 12px; background: rgba(255,255,255,.78); }
.macro-job-monitor summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; color: #174b3e; cursor: pointer; list-style: none; }
.macro-job-monitor summary::-webkit-details-marker { display: none; }
.macro-job-monitor summary span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.macro-job-monitor summary small { color: #70837d; font-size: 10px; font-weight: 700; }
.macro-job-monitor summary strong { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #edf6f2; color: #24725e; font-size: 11px; }
.macro-job-monitor summary strong.is-danger { background: #fff0ed; color: #bd3f32; }
.macro-job-guide { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 7px 10px; border-top: 1px solid #dcebe6; background: #f7fbf9; color: #536b63; font-size: 10px; }
.macro-job-guide span { display: inline-flex; align-items: center; gap: 4px; }
.macro-job-guide i { width: 8px; height: 8px; border-radius: 50%; background: #e0a22c; }
.macro-job-guide i.done { background: #1a9d77; }
.macro-job-guide i.danger { background: #d85b4c; }
.macro-job-counts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; padding: 8px 10px; }
.macro-job-counts span { padding: 6px; border: 1px solid #d8e7e2; border-radius: 8px; color: #63766f; font-size: 9px; text-align: center; }
.macro-job-counts b { display: block; margin-top: 2px; color: #174b3e; font-size: 15px; }
.macro-job-counts .is-danger { border-color: #efc0b9; background: #fff5f2; color: #aa4538; }
.macro-job-counts .is-danger b { color: #bd3f32; }
.macro-job-list { display: grid; gap: 5px; max-height: 260px; overflow: auto; padding: 0 10px 8px; }
.macro-job-list > p { margin: 4px 0; color: #74847f; font-size: 11px; }
.macro-job-item { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(130px, 1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid #dce8e4; border-radius: 9px; background: #fff; }
.macro-job-item.is-failed { border-color: #efb3aa; background: #fff8f6; }
.macro-job-item strong, .macro-job-item small { display: block; }
.macro-job-item strong { overflow: hidden; color: #17483c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.macro-job-item small { margin-top: 2px; color: #74847f; font-size: 9px; }
.macro-job-item .macro-job-result { min-width: 78px; text-align: right; }
.macro-job-status { display: inline-block; padding: 3px 6px; border-radius: 999px; background: #edf5f2; color: #397563; font-size: 9px; font-weight: 900; }
.macro-job-status.failed { background: #fbe2de; color: #bd3f32; }
.macro-job-status.ready, .macro-job-status.retrying, .macro-job-status.sending { background: #fff0ca; color: #8b640c; }
.macro-job-result button { display: block; margin: 4px 0 0 auto; padding: 3px 6px; border: 1px solid #df8f84; border-radius: 6px; background: #fff; color: #b34336; font-size: 9px; font-weight: 900; cursor: pointer; }
.macro-job-retention { margin: 0; padding: 6px 10px; border-top: 1px solid #dcebe6; color: #6e7d78; font-size: 9px; }
.macro-settings-dialog { width: min(1180px, calc(100% - 24px)); height: min(850px, calc(100dvh - 24px)); max-width: none; max-height: none; padding: 0; overflow: hidden; border: 1px solid #75bca8; border-radius: 18px; background: #293133; color: #f3fbf8; box-shadow: 0 24px 80px rgba(0,0,0,.48); }
.macro-settings-dialog::backdrop { background: rgba(8,14,15,.72); backdrop-filter: blur(5px); }
.macro-settings-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.macro-settings-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.14); background: linear-gradient(120deg,#354044,#252c2f); }
.macro-settings-dialog-head small { color: #7ce1c3; font-size: 10px; font-weight: 900; }
.macro-settings-dialog-head h2 { margin: 2px 0 0; font-size: 19px; }
.macro-settings-dialog-head p { margin: 3px 0 0; color: #b8c7c2; font-size: 11px; }
.macro-settings-dialog-head > button { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.macro-settings-dialog iframe { width: 100%; height: 100%; border: 0; background: #252d2f; }
.macro-settings-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-top: 1px solid rgba(255,255,255,.14); background: #252c2e; color: #b9c8c3; font-size: 10px; }
.macro-settings-dialog-foot button { min-width: 88px; }

@media (max-width: 920px) {
  .macro-control-section { grid-template-columns: 1fr; grid-template-areas: "title" "guide" "status" "actions" "categories" "monitor" "notice"; }
  .macro-control-section .macro-control-actions { justify-content: flex-start; flex-wrap: wrap; }
  .macro-category-settings { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .macro-control-section { padding: 10px !important; }
  .macro-control-section .macro-control-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .macro-control-section .macro-control-grid article { justify-content: space-between; padding: 6px 8px; }
  .macro-control-section .macro-control-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .macro-control-section .macro-control-actions #macroDownloadButton { grid-column: 1 / -1; }
  .macro-category-settings { grid-template-columns: 1fr; }
  .macro-job-counts { grid-template-columns: repeat(3, 1fr); }
  .macro-job-item { grid-template-columns: minmax(0, 1fr) auto; }
  .macro-job-item .macro-job-room { grid-column: 1 / -1; }
  .macro-settings-dialog { width: calc(100% - 10px); height: calc(100dvh - 10px); border-radius: 13px; }
  .macro-settings-dialog-head { padding: 9px 11px; }
  .macro-settings-dialog-head p, .macro-settings-dialog-foot span { display: none; }
  .macro-settings-dialog-foot { justify-content: flex-end; padding: 7px 9px; }
}

.home-repair-team-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #7fc4ae;
  border-radius: 18px;
  background: #f2fbf7;
}

.home-repair-team-box h2 {
  margin: 0;
  color: #075c48;
  font-size: 1.05rem;
}

.home-repair-team-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.home-repair-team-items span {
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  color: #17483b;
  font-weight: 900;
}

.home-repair-team-box > dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.home-repair-team-box > dl div {
  padding: 9px;
  border-radius: 10px;
  background: #fff;
}

.home-repair-team-box > dl dt {
  color: #6c7e78;
  font-size: 0.75rem;
}

.home-repair-team-box > dl dd {
  margin: 4px 0 0;
  color: #153e34;
  font-weight: 800;
}

.home-repair-team-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.home-repair-team-photos img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 11px;
  object-fit: cover;
}

.home-repair-team-box > p,
.home-repair-team-box > strong {
  display: block;
  margin: 11px 0 0;
  line-height: 1.55;
}

.home-repair-final-amount {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e3c474;
  border-radius: 13px;
  background: #fffdf6;
}

.home-repair-final-amount label {
  display: grid;
  gap: 6px;
  color: #4e421f;
  font-weight: 900;
}

.home-repair-final-amount input {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #d8c591;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.home-repair-final-amount p {
  margin: 0;
  color: #755a19;
  font-weight: 800;
  line-height: 1.45;
}

.home-repair-final-amount button {
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  background: #0e8465;
  color: #fff;
  font-weight: 900;
}

.home-repair-team-box > strong {
  padding: 9px 11px;
  border-radius: 10px;
  color: #805a08;
  background: #fff1c8;
}

.policy-wrap {
  width: min(920px, calc(100% - 32px));
  margin: 28px auto 64px;
}

.policy-lead,
.policy-section {
  padding: 26px 28px;
  border: 1px solid #d7e8df;
  background: #fffef9;
}

.policy-lead {
  margin-bottom: 18px;
  border-color: #b8dccd;
  background: #f1fbf6;
}

.policy-lead h1 {
  margin: 0 0 12px;
  color: #073f35;
}

.policy-section + .policy-section {
  margin-top: 16px;
}

.policy-section h2 {
  margin: 0 0 16px;
  color: #0c4f42;
  font-size: 1.12rem;
}

.policy-section p,
.policy-section li,
.policy-lead p {
  color: #395b53;
  line-height: 1.82;
}

.policy-section p,
.policy-lead p {
  margin: 0;
}

.policy-section p + p,
.policy-lead p + p,
.policy-section ul + p {
  margin-top: 14px;
}

.policy-section ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.policy-section li + li {
  margin-top: 8px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.policy-table th,
.policy-table td {
  padding: 10px;
  border: 1px solid #dce9e3;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.policy-table th {
  color: #0c4f42;
  background: #f1f8f4;
}

.public-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.public-price-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #d7e8df;
  border-radius: 8px;
  background: #fff;
}

.public-price-category {
  margin-bottom: 8px;
  color: #16755f;
  font-size: 0.78rem;
  font-weight: 700;
}

.public-price-card h3 {
  margin: 0;
  color: #073f35;
  font-size: 1rem;
  line-height: 1.45;
}

.public-price-card p {
  min-height: 46px;
  margin: 6px 0 14px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.public-price-offer {
  display: grid;
  gap: 2px;
  margin-top: auto;
}

.public-price-offer > span {
  color: #667a72;
  font-size: 0.74rem;
  font-weight: 700;
}

.public-price-value {
  color: #073f35;
  font-size: 1.55rem;
  font-weight: 800;
}

.public-price-card a {
  margin-top: 12px;
  color: #0b6e59;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.public-price-notice {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid #edd8a6;
  border-radius: 8px;
  background: #fffaf0;
}

.public-price-notice > strong {
  color: #855a13;
}

.public-price-notice p {
  margin: 8px 0 0;
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .policy-wrap {
    width: min(100% - 20px, 920px);
    margin-top: 14px;
  }

  .policy-lead,
  .policy-section {
    padding: 21px 18px;
  }

  .policy-lead {
    margin-bottom: 14px;
  }

  .policy-section + .policy-section {
    margin-top: 12px;
  }

  .policy-table {
    font-size: 0.78rem;
  }

  .policy-table th,
  .policy-table td {
    padding: 8px 6px;
  }

  .public-price-grid {
    grid-template-columns: 1fr;
  }

  .public-price-card {
    padding: 16px;
  }

  .public-price-card p {
    min-height: 0;
  }
}

.team-call-dashboard-page .admin-shell {
  width: min(100%, 1040px);
  padding-bottom: 28px;
}

.team-call-dashboard-page .admin-topbar {
  min-height: 54px;
  padding-block: 6px;
}

.team-call-dashboard-page .admin-brand img {
  width: 150px;
}

.team-call-dashboard-page .admin-hero {
  align-items: center;
  padding: 16px 19px;
  border-radius: 18px;
}

.team-call-dashboard-page .admin-hero h1 {
  margin: 4px 0;
  font-size: clamp(22px, 3vw, 30px);
}

.team-call-dashboard-page .admin-hero p {
  font-size: 12px;
  line-height: 1.4;
}

.team-page-menu {
  position: sticky;
  top: 54px;
  z-index: 12;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 9px 0;
  background: rgba(251, 246, 231, .93);
  scrollbar-width: thin;
  backdrop-filter: blur(14px);
}

.team-page-menu a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid rgba(20, 119, 89, .16);
  border-radius: 14px;
  color: #12684f;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 7px 15px rgba(20, 82, 63, .07);
}

.team-page-menu a.active {
  color: #fff;
  background: linear-gradient(135deg, #147759, #27b487);
}

.team-page-menu a span {
  font-size: 18px;
}

.team-page-menu a strong {
  font-size: 13px;
}

.team-call-dashboard-page .team-current-call {
  margin-top: 0;
  padding: 15px;
  border-radius: 18px;
}

.team-call-calendar {
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid rgba(20, 119, 89, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 220, 124, .24), transparent 32%),
    linear-gradient(145deg, rgba(255, 254, 249, .98), rgba(238, 250, 244, .96));
  box-shadow: 0 10px 26px rgba(20, 82, 63, .09);
}

.team-call-calendar[hidden] { display: none; }

.team-call-calendar > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.team-call-calendar header small { display: none; }
.team-call-calendar h2 { margin: 0; color: #123f33; font-size: 15px; }
.team-calendar-controls { display: grid; grid-template-columns: 30px minmax(92px, auto) 30px; align-items: center; gap: 4px; }
.team-calendar-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(20, 119, 89, .2);
  border-radius: 10px;
  color: #0d7559;
  background: #f3fbf7;
  font-size: 22px;
  cursor: pointer;
}
.team-calendar-controls strong { color: #214e44; font-size: 14px; text-align: center; }
.team-calendar-weekdays, .team-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.team-calendar-weekdays { margin-bottom: 4px; color: #70837c; font-size: 10px; font-weight: 850; text-align: center; }
.team-calendar-weekdays span:first-child { color: #c05242; }
.team-calendar-weekdays span:last-child { color: #3e6ea8; }
.team-calendar-day, .team-calendar-blank { min-height: 27px; }
.team-calendar-day {
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
  padding: 1px 2px;
  border: 1px solid #e1ece7;
  border-radius: 10px;
  color: #395e53;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.team-calendar-day > b { font-size: 8px; line-height: 1; }
.team-calendar-day > span { display: grid; gap: 2px; }
.team-calendar-day em {
  overflow: hidden;
  padding: 1px;
  border-radius: 5px;
  font-size: 6px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-calendar-day em.morning { color: #8a5a06; background: #fff0bd; }
.team-calendar-day em.afternoon { color: #315c91; background: #e5efff; }
.team-calendar-day em.unspecified { color: #66547e; background: #f0e8f8; }
.team-calendar-day.has-call { border-color: rgba(20, 119, 89, .32); background: #f8fdfb; }
.team-calendar-day.has-call:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(20, 119, 89, .13); }
.team-calendar-day.is-today > b { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; color: #fff; background: #158465; }
.team-calendar-day.is-selected { outline: 2px solid #e0a536; outline-offset: 1px; }
.team-calendar-selected { display: none; }

.team-call-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-call-dashboard-head small {
  color: #9a702a;
  font-weight: 850;
}

.team-call-dashboard-head h2 {
  margin: 2px 0 0;
  color: #123f33;
  font-size: 20px;
}

.team-leader-quick-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.team-leader-quick-meta span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 11px;
  color: #698078;
  background: #f3f8f5;
  font-size: 10px;
  font-weight: 750;
}

.team-leader-quick-meta strong {
  overflow: hidden;
  color: #214e44;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-call-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.team-call-status-grid button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 50px;
  padding: 8px 11px;
  border: 1px solid rgba(20, 119, 89, .14);
  border-radius: 13px;
  color: #385d52;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.team-call-status-grid button.active {
  border-color: rgba(20, 119, 89, .4);
  color: #0d6d55;
  background: #e7f8f0;
  box-shadow: 0 7px 16px rgba(20, 119, 89, .1);
}

.team-call-status-grid button > span {
  font-size: 19px;
}

.team-call-status-grid small {
  font-size: 11px;
  font-weight: 800;
}

.team-call-status-grid strong {
  font-size: 16px;
}

.compact-team-call-list {
  gap: 9px;
}

.compact-call-card {
  gap: 9px;
  padding: 13px;
  border-radius: 15px;
}

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

.compact-call-head h3 {
  margin: 2px 0 0;
  font-size: 17px;
}

.call-progress-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #587169;
  background: #edf3f0;
  font-size: 11px;
  font-weight: 900;
}

.call-progress-badge.today { color: #fff; background: #158465; }
.call-progress-badge.upcoming { color: #7b5717; background: #fff0c8; }
.call-progress-badge.overdue { color: #a33e33; background: #ffe6e1; }
.call-progress-badge.reported { color: #315b91; background: #e7f0ff; }
.call-progress-badge.completed { color: #0d6d55; background: #ddf6e9; }
.call-progress-badge.cancelled { color: #777; background: #eee; }

.compact-call-details {
  display: grid;
  grid-template-columns: 1.3fr .8fr .9fr;
  gap: 6px;
  margin: 0;
}

.compact-call-details > div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(20, 119, 89, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
}

.compact-call-details .wide {
  grid-column: span 3;
}

.compact-call-details dt {
  color: #7a8d86;
  font-size: 10px;
  font-weight: 850;
}

.compact-call-details dd {
  margin: 3px 0 0;
  color: #244c40;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.compact-call-details a {
  color: #0d7559;
  font-weight: 900;
}

.compact-call-details .call-price-value {
  color: #b17317;
  font-size: 15px;
  font-weight: 950;
}

.extra-share-calculator {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(211, 153, 52, .28);
  border-radius: 12px;
  background: #fff9e8;
}

.extra-share-calculator label,
.extra-share-calculator > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #6f5528;
  font-size: 10px;
  font-weight: 850;
}

.extra-share-calculator label > span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.extra-share-calculator input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(181, 124, 30, .28);
  border-radius: 9px;
  color: #704a0d;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.extra-share-calculator strong {
  color: #0d6d55;
  font-size: 16px;
}

.extra-share-calculator > div:first-of-type strong {
  color: #b05e19;
}

.compact-call-card .team-settlement-status {
  padding: 5px 9px;
  font-size: 10px;
}

.compact-call-card .team-call-card-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.compact-call-card .team-call-card-actions a,
.compact-call-card .team-call-card-actions button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.team-guide-details {
  margin-top: 10px;
  border: 1px solid rgba(20, 119, 89, .14);
  border-radius: 16px;
  background: rgba(255, 253, 248, .82);
}

.team-guide-details summary {
  padding: 13px 15px;
  color: #315b50;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.team-guide-details .team-check-grid,
.team-guide-details .team-duty-summary {
  margin: 0 12px 12px;
}

@media (max-width: 680px) {
  .team-call-dashboard-page .admin-shell {
    padding-inline: 10px;
  }

  .team-page-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    overflow-x: visible;
    scrollbar-width: none;
  }

  .team-page-menu a {
    min-width: 0;
    min-height: 38px;
    justify-content: center;
    gap: 3px;
    padding: 0 3px;
    border-radius: 11px;
    white-space: nowrap;
  }

  .team-page-menu a span { font-size: 14px; }
  .team-page-menu a strong { font-size: 10px; letter-spacing: -.45px; }

  .team-call-dashboard-page .admin-hero {
    padding: 13px;
  }

  .team-leader-quick-meta {
    grid-template-columns: 1fr 1fr;
  }

  .team-leader-quick-meta span:last-child {
    grid-column: 1 / -1;
  }

  .team-call-status-grid {
    gap: 5px;
  }

  .team-call-calendar { padding: 8px 6px; }
  .team-call-calendar > header { align-items: flex-end; }
  .team-calendar-controls { grid-template-columns: 30px minmax(88px, auto) 30px; }
  .team-calendar-controls button { width: 30px; height: 30px; }
  .team-calendar-weekdays, .team-calendar-grid { gap: 1px; }
  .team-calendar-day, .team-calendar-blank { min-height: 27px; }
  .team-calendar-day { padding: 1px; border-radius: 5px; }
  .team-calendar-day > b { font-size: 8px; }
  .team-calendar-day em { padding: 0 1px; font-size: 5.5px; }

  .team-call-status-grid button {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
    padding: 7px 4px;
    text-align: center;
  }

  .compact-call-details {
    grid-template-columns: 1fr 1fr;
  }

  .compact-call-details .wide {
    grid-column: span 2;
  }

  .compact-call-details > div:first-child {
    grid-column: span 2;
  }

  .extra-share-calculator {
    grid-template-columns: 1fr 1fr;
  }

  .extra-share-calculator label {
    grid-column: 1 / -1;
  }
}

.editable-note {
  display: inline-flex;
  margin-left: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #527268;
  background: #e9f7f0;
  font-size: 12px;
  font-weight: 800;
}

.admin-quick-links {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.admin-quick-links a {
  display: grid;
  min-height: 78px;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 9px 6px;
  border: 1px solid rgba(20, 119, 89, .16);
  border-radius: 15px;
  color: #214e44;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 18px rgba(20, 82, 63, .07);
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.admin-quick-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 119, 89, .38);
  background: #f1fbf6;
}

.admin-quick-links span {
  font-size: 23px;
  line-height: 1;
}

.admin-quick-links strong {
  font-size: 12px;
  line-height: 1.25;
}

.past-call-search {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding: 13px;
  border: 1px solid rgba(20, 119, 89, .18);
  border-radius: 15px;
  background: #f3fbf7;
}

.past-call-search[hidden] {
  display: none;
}

.past-call-search label {
  color: #145e4b;
  font-weight: 900;
}

.past-call-search > div {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 7px;
}

.past-call-search input {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(20, 119, 89, .25);
  border-radius: 11px;
  background: #fff;
  font: inherit;
}

.past-call-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.past-call-pagination button {
  padding: 9px 13px;
  border: 1px solid rgba(20, 119, 89, .25);
  border-radius: 11px;
  color: #12644f;
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}

.past-call-pagination button:disabled {
  opacity: .4;
  cursor: default;
}

.past-call-pagination span {
  min-width: 70px;
  text-align: center;
  font-weight: 850;
}

@media (max-width: 640px) {
  .past-call-search > div {
    grid-template-columns: 1fr 1fr;
  }

  .past-call-search input {
    grid-column: 1 / -1;
  }
}

.admin-compact .admin-shell {
  width: min(100%, 1260px);
  padding-bottom: 28px;
}

.admin-compact .admin-topbar {
  min-height: 54px;
  padding-block: 6px;
}

.admin-compact .admin-brand img {
  width: 150px;
}

.admin-compact .admin-hero {
  gap: 14px;
  align-items: center;
  padding: 17px 20px;
  border-radius: 18px;
}

.admin-compact .admin-hero h1 {
  margin: 4px 0 5px;
  font-size: clamp(24px, 3vw, 32px);
}

.admin-compact .admin-hero p {
  font-size: 13px;
  line-height: 1.4;
}

.admin-compact .admin-primary {
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 13px;
}

.admin-compact .stats-grid {
  gap: 8px;
  margin: 10px 0;
}

.admin-compact .stats-grid article {
  padding: 11px 13px;
  border-radius: 15px;
}

.admin-compact .stats-grid strong {
  margin-top: 3px;
  font-size: 21px;
}

.admin-compact .ops-alert-grid {
  gap: 8px;
  margin-bottom: 10px;
}

.admin-compact .ops-alert {
  gap: 3px;
  padding: 11px 13px;
  border-radius: 15px;
}

.admin-compact .ops-alert strong {
  font-size: 17px;
}

.admin-compact .ops-alert span {
  font-size: 12px;
  line-height: 1.35;
}

.ops-call-alerts .ops-alert-macro {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-color: #df5749;
  background: linear-gradient(135deg, #d94b3f, #b72e27);
  color: #fff;
  box-shadow: 0 5px 14px rgba(184, 46, 39, .24);
}

.ops-alert-macro .ops-alert-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.macro-delivery-results {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px dashed rgba(25, 112, 86, .2);
  background: rgba(244, 251, 248, .72);
}

.macro-delivery-results > strong { margin-right: 3px; color: #174b3e; font-size: 11px; }
.macro-room-result { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #cbded8; border-radius: 999px; background: #fff; font-size: 10px; }
.macro-room-result b { color: #264f45; }
.macro-room-result em { color: #667b75; font-style: normal; font-weight: 900; }
.macro-room-result.is-delivered { border-color: #75cbb1; background: #eaf9f4; }
.macro-room-result.is-delivered em { color: #08795e; }
.macro-room-result.is-sending,
.macro-room-result.is-ready,
.macro-room-result.is-retrying { border-color: #e1bd68; background: #fff8e7; }
.macro-room-result.is-sending em,
.macro-room-result.is-ready em,
.macro-room-result.is-retrying em { color: #8b6410; }
.macro-room-result.is-failed,
.macro-room-result.is-partial_failure { border-color: #e49b92; background: #fff0ee; }
.macro-room-result.is-failed em,
.macro-room-result.is-partial_failure em { color: #b5362c; }

.admin-compact .admin-section {
  margin-top: 10px;
  padding: 15px 17px;
  border-radius: 18px;
}

.admin-compact .section-title {
  margin-bottom: 9px;
}

.admin-compact .section-title h2 {
  margin-top: 2px;
  font-size: 20px;
}

.admin-compact .quote-alert-summary,
.admin-compact .dispatch-mode-panel,
.admin-compact .quote-filter-bar {
  margin-top: 9px;
}

.admin-compact .quote-alert-summary,
.admin-compact .dispatch-mode-panel {
  padding: 11px 13px;
  border-radius: 15px;
}

.admin-compact .dispatch-mode-panel p {
  margin-top: 3px;
  font-size: 12px;
}

.admin-compact .dispatch-mode-actions button {
  min-height: 40px;
  padding: 7px 10px;
}

.admin-compact .quote-filter-bar {
  gap: 5px;
}

.admin-compact .quote-filter-bar button,
.admin-compact .quote-filter-bar a {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}

@media (max-width: 980px) {
  .call-date-filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-quick-links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-compact .admin-hero {
    align-items: stretch;
    padding: 15px;
  }
}

/* Team join: always keep address and business verification in a divided 50/50 panel. */
.team-verification-split {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.team-verification-split .business-verification-card {
  border-top: 0 !important;
  border-left: 1px solid rgba(20, 119, 89, .38) !important;
}

.team-verification-split > .verified-address-field {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.team-verification-split > .business-verification-card {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.team-verification-split .verified-address-field,
.team-verification-split .business-verification-card {
  padding: 10px 12px;
}

.team-verification-split .verified-address-head,
.team-verification-split .verification-card-copy {
  gap: 4px;
}

.team-verification-split .verified-address-head strong,
.team-verification-split .verification-card-copy strong {
  font-size: 14px;
}

.team-verification-split .verified-address-head button,
.team-verification-split .verification-card-action button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.team-verification-split .verified-address-grid,
.team-verification-split .business-verification-fields {
  gap: 5px;
}

.team-verification-split .verified-address-grid input,
.team-verification-split .business-verification-fields input {
  min-height: 34px;
  padding-inline: 8px;
  border-radius: 9px;
  font-size: 12px;
}

.team-verification-split label,
.team-verification-split p,
.team-verification-split .verification-consent,
.team-verification-split .verification-status {
  font-size: 11px;
}

.team-verification-split .verification-card-copy p,
.team-verification-split .verified-address-field > p {
  margin: 2px 0 0;
  line-height: 1.3;
}

.team-verification-split .verification-card-action {
  gap: 6px;
}

.team-info-dashboard[hidden] {
  display: none !important;
}

.admin-server-status {
  margin: 0 0 14px;
  border: 1px solid #d45d4c;
  border-radius: 14px;
  background: #fff2ef;
  color: #8b2f23;
  padding: 12px 14px;
  font-weight: 850;
}

.admin-server-status[hidden] { display: none !important; }

#smsRetryList { display: grid; gap: 8px; }
#smsRetryList article { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border: 1px solid #cfe5dc; border-radius: 14px; background: #f7fcf9; padding: 11px 13px; }
#smsRetryList article strong, #smsRetryList article span, #smsRetryList article small { display: block; }
#smsRetryList article span { color: #566d65; margin-top: 3px; }
#smsRetryList article button { border: 0; border-radius: 10px; background: #118665; color: #fff; padding: 9px 12px; font-weight: 850; cursor: pointer; }

/* Mobile layout: prioritize readable fields over desktop density. */
@media (max-width: 640px) {
  .team-join-page .admin-shell {
    padding-inline: 10px;
  }

  .team-join-page .admin-topbar,
  .team-call-dashboard-page .admin-topbar {
    min-height: 58px;
    gap: 8px;
    padding: 7px 4px;
  }

  .team-join-page .admin-brand img,
  .team-call-dashboard-page .admin-brand img {
    width: 122px;
  }

  .team-join-page .admin-topbar > span,
  .team-call-dashboard-page .admin-topbar > span {
    max-width: 48%;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .team-join-page .admin-section {
    padding: 13px 11px;
    border-radius: 16px;
  }

  .team-join-page .team-contact-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .team-join-page .team-verification-split {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .team-join-page .team-verification-split > .verified-address-field,
  .team-join-page .team-verification-split > .business-verification-card {
    grid-column: 1 !important;
    grid-row: auto !important;
    padding: 11px !important;
    border: 1px solid rgba(20, 119, 89, .22) !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(239, 252, 246, .96), rgba(255, 249, 226, .94)) !important;
  }

  .team-join-page .team-verification-split > .business-verification-card {
    border-color: rgba(190, 143, 36, .3) !important;
  }

  .team-join-page .business-verification-fields,
  .team-join-page .team-verification-split .business-verification-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .team-join-page .business-verification-fields label:first-child {
    grid-column: 1 / -1;
  }

  .team-join-page .verification-card,
  .team-join-page .business-verification-card {
    gap: 9px;
  }

  .team-join-page .verification-card-action {
    gap: 7px;
  }

  .team-join-page .verification-card-action button,
  .team-join-page .verified-address-head button {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .team-join-page .important-payment-panel {
    gap: 6px;
    padding: 10px;
  }

  .team-join-page .important-payment-panel label {
    min-height: 46px;
    padding: 7px 8px;
    font-size: 12px;
    line-height: 1.3;
  }

  .team-join-page .important-payment-panel p {
    font-size: 11px;
  }

  .team-join-page .woorijib-floating-tools {
    display: none !important;
  }

  .team-call-dashboard-page .admin-shell {
    padding-inline: 8px;
  }

  .team-call-dashboard-page .team-current-call {
    padding: 10px;
  }

  .team-call-dashboard-head h2 {
    font-size: 17px;
  }

  .team-call-status-grid button {
    min-height: 64px;
  }

  .team-reminder-alert {
    padding: 10px 11px;
    font-size: 12px;
    line-height: 1.45;
  }

  .compact-call-card {
    padding: 11px;
  }

  .compact-call-details {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px;
  }

  .compact-call-details > div,
  .compact-call-details > div:first-child,
  .compact-call-details .wide {
    grid-column: 1 !important;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 9px 10px;
  }

  .compact-call-details dt {
    padding-top: 1px;
    font-size: 11px;
  }

  .compact-call-details dd {
    min-width: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: keep-all;
  }

  .compact-call-details a,
  .compact-call-details .call-price-value {
    white-space: nowrap;
  }

  .extra-share-calculator {
    grid-template-columns: 1fr 1fr;
  }

  .extra-share-calculator label {
    grid-column: 1 / -1;
  }

  .admin-compact .quote-filter-bar {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .admin-compact .quote-filter-bar button,
  .admin-compact .quote-filter-bar a {
    flex: 0 1 auto;
  }

  .admin-compact .quote-filter-bar a {
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  .team-join-page .important-payment-panel,
  .service-check-grid.important-payment-panel {
    grid-template-columns: 1fr;
  }

  .team-join-page .important-payment-panel p {
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  .leader-assign-modal {
    padding: 8px;
  }

  .leader-assign-modal-panel {
    max-height: calc(100vh - 16px);
    border-radius: 18px;
  }

  .leader-assign-modal .rate-modal-header {
    padding: 15px 14px 8px;
  }

  .leader-search-field,
  .leader-assign-results {
    margin-inline: 14px;
  }

  .leader-assign-results {
    grid-template-columns: minmax(0, 1fr);
  }

  .leader-assign-notice {
    margin-inline: 14px;
  }
}
/* 2026-07-21 unified customer / leader / admin workflow */
.compact-workflow-shell main { max-width: 1120px; margin: 0 auto; }
.customer-history-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:12px 0; }
.customer-history-summary article { padding:14px; border:1px solid #b9ddd2; border-radius:18px; background:#f2fcf8; text-align:center; }
.customer-history-summary small,.customer-history-summary strong { display:block; }
.customer-history-summary strong { margin-top:4px; color:#08785c; font-size:1.45rem; }
.customer-progress-list { display:grid; gap:12px; }
.customer-progress-card { padding:18px; border:1px solid #cde5dd; border-radius:22px; background:#fff; box-shadow:0 10px 28px rgba(27,75,61,.07); }
.customer-progress-card header { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.customer-progress-card header h2 { margin:2px 0 0; font-size:1.15rem; }
.customer-progress-card header span { padding:7px 11px; border-radius:999px; background:#e6f8f1; color:#08785c; font-weight:800; }
.customer-progress-card.is-cancelled header span { background:#fff0ea; color:#a3432f; }
.customer-progress-steps { display:grid; grid-template-columns:repeat(6,1fr); gap:5px; margin:14px 0; }
.customer-progress-steps.is-compact { grid-template-columns:repeat(2,minmax(0,180px)); }
.customer-progress-steps b { display:grid; place-items:center; min-height:45px; border-radius:12px; background:#eef2f0; color:#86938e; font-size:.8rem; }
.customer-progress-steps b.active { background:#159c78; color:#fff; }
.customer-progress-steps small { display:block; font-size:.7rem; }
.customer-progress-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:0; }
.customer-progress-card dl div { display:grid; grid-template-columns:92px 1fr; gap:8px; padding:9px 11px; border-radius:12px; background:#f7fbf9; }
.customer-progress-card dt { color:#6c7b76; font-weight:700; }.customer-progress-card dd { margin:0; font-weight:700; overflow-wrap:anywhere; }
.customer-progress-card dl .customer-selection-row { grid-column:1/-1; align-items:start; }
.customer-selection-detail { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.customer-selection-detail li { display:grid; grid-template-columns:84px 1fr; gap:8px; padding-bottom:6px; border-bottom:1px dashed #dce9e4; }
.customer-selection-detail li:last-child { padding-bottom:0; border-bottom:0; }
.customer-selection-detail b { color:#0a725a; font-size:.82rem; }.customer-selection-detail span { font-weight:700; line-height:1.5; }
.customer-night-notice { display:flex; gap:8px 14px; margin:12px 0; padding:12px 14px; border:1px solid #e7c87a; border-radius:13px; background:#fff8df; color:#75520d; line-height:1.55; }
.customer-night-notice strong { flex:0 0 auto; }.customer-night-notice span { font-size:.9rem; }
.customer-deposit-notice { margin-top:14px; border-color:#e2cb8c; background:#fffaf0; }
.customer-deposit-notice>strong { color:#76520b; font-size:1rem; }.customer-deposit-notice>p { margin:7px 0 12px; color:#5f5541; line-height:1.6; }
.customer-deposit-notice dl { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin:0; }
.customer-deposit-notice dl div { display:grid; gap:3px; padding:10px 12px; border-radius:10px; background:#fff; }
.customer-deposit-notice dt { color:#82765f; font-size:.75rem; font-weight:700; }.customer-deposit-notice dd { margin:0; color:#194b40; font-weight:900; overflow-wrap:anywhere; }
.customer-call-actions { display:flex; justify-content:flex-end; margin-top:12px; padding-top:10px; border-top:1px dashed #d8e5df; }
.customer-delete-action { min-height:38px; padding:7px 14px; border:1px solid #efc7ba; border-radius:10px; background:#fff5f1; color:#b64d30; font-weight:850; }
.customer-delete-action:disabled { cursor:default; opacity:.55; }
.customer-help-note { margin-top:14px; display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; }.customer-help-note p { flex:1 1 480px; margin:0; }
.team-policy-panel { display:flex; gap:14px; align-items:center; justify-content:space-between; margin:10px 0; padding:12px 16px; border:1px solid #b9ddd2; border-radius:16px; background:#f3fcf8; }
.team-policy-panel div { display:flex; flex-wrap:wrap; gap:5px 12px; align-items:center; }.team-policy-panel small,.team-policy-panel span { color:#64756f; }.team-policy-panel strong { color:#08785c; }.team-policy-panel p { margin:0; font-size:.85rem; }
.team-policy-panel.is-suspended { border-color:#e3a98e; background:#fff4ed; }.team-policy-panel.is-suspended strong { color:#a9472c; }
.team-inquiry-panel { margin-top:12px; }.team-inquiry-panel form { display:grid; grid-template-columns:180px 1fr auto; gap:8px; }.team-inquiry-panel textarea { min-height:58px; resize:vertical; }
.leader-policy-list { display:grid; gap:8px; }.leader-policy-list article { display:grid; grid-template-columns:minmax(220px,1fr) 150px auto auto; gap:8px; align-items:center; padding:10px; background:#f7fbf9; border-radius:14px; }.leader-policy-list article div { display:grid; }.leader-policy-list article span { color:#677770; font-size:.82rem; }.leader-policy-list label { display:flex; align-items:center; gap:5px; }.leader-policy-list input { width:64px; }
.leader-inquiry-admin { margin-top:14px; }.leader-inquiry-admin summary { cursor:pointer; font-weight:800; }.leader-inquiry-admin article { margin-top:8px; padding:10px; border-radius:12px; background:#f7fbf9; }.leader-inquiry-admin p { margin:5px 0; }
.sms-template-lock { min-height:100vh; display:grid; place-items:center; padding:20px; background:#f7fbf9; }.sms-template-lock[hidden] { display:none; }.sms-template-lock form { width:min(100%,380px); display:grid; gap:12px; padding:28px; border-radius:24px; background:#fff; box-shadow:0 16px 50px rgba(27,75,61,.14); }.sms-template-lock img { width:170px; }.sms-template-lock h1,.sms-template-lock p { margin:0; }.sms-template-lock input { min-height:48px; }.sms-template-lock span { color:#b33d2a; min-height:1.2em; }
.sms-template-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.sms-template-card { display:grid; gap:8px; padding:14px; border:1px solid #d7e6e0; border-radius:16px; background:#fbfdfc; }.sms-template-card header { display:grid; gap:3px; }.sms-template-card header span,.sms-template-card small { color:#6b7b75; font-size:.8rem; }.sms-template-card textarea { min-height:240px; resize:vertical; line-height:1.5; }
.sms-template-card.is-paused { border-style: dashed; background: #f2f5f4; opacity: .78; }.sms-template-card.is-paused textarea { min-height: 110px; background: #eef2f0; color: #65736e; cursor: not-allowed; }
.policy-warning { border-color:#e6bd73 !important; background:#fff9e9 !important; color:#805717 !important; }.reassign-call { background:#fff !important; color:#08785c !important; border:1px solid #9bcfbe !important; }
@media (max-width:720px) {
  .customer-history-summary { grid-template-columns:repeat(3,1fr); gap:5px; }.customer-history-summary article { padding:10px 4px; }.customer-history-summary strong { font-size:1.1rem; }
  .customer-progress-card { padding:12px; }.customer-progress-card dl { grid-template-columns:1fr; }.customer-progress-card dl div { grid-template-columns:82px 1fr; }.customer-selection-detail li { grid-template-columns:72px 1fr; }.customer-night-notice { align-items:flex-start; flex-direction:column; gap:4px; }.customer-deposit-notice dl { grid-template-columns:1fr; }.customer-progress-steps { gap:3px; }.customer-progress-steps b { min-height:40px; font-size:.72rem; }
  .team-policy-panel { display:grid; }.team-inquiry-panel form { grid-template-columns:1fr; }.leader-policy-list article { grid-template-columns:1fr 1fr; }.leader-policy-list article div { grid-column:1/-1; }
  .sms-template-grid { grid-template-columns:1fr; }.sms-template-card textarea { min-height:210px; }
}

/* 2026-08-03: compact profile settings */
.profile-page-shell main { max-width:1120px; }
.profile-page-shell .compact-admin-hero { min-height:0; padding:22px 28px; align-items:center; }
.profile-page-shell .compact-admin-hero h1 { max-width:none; margin:4px 0 6px; font-size:clamp(26px,3vw,36px); }
.profile-page-shell .compact-admin-hero p { max-width:680px; margin:0; }
.profile-page-shell .profile-form-panel { padding:16px 18px; }
.profile-page-shell .profile-form-panel .section-title { margin-bottom:10px; }
.profile-page-shell .profile-form { gap:8px; }
.profile-page-shell .team-policy-panel { min-height:54px; margin:0; padding:10px 14px; gap:10px 18px; }
.profile-page-shell .team-policy-status { flex:0 0 auto; }
.profile-page-shell .team-policy-panel p { flex:1; color:#61756f; font-size:.79rem; line-height:1.4; }
.team-policy-link { display:inline-flex; align-items:center; justify-content:center; min-height:32px; padding:0 10px; border:1px solid #b9ddd2; border-radius:999px; background:#fff; color:#08785c; font-size:.8rem; font-weight:800; white-space:nowrap; }
.profile-page-shell .verification-card { min-height:88px; padding:11px 13px; gap:10px; border-radius:14px; }
.profile-page-shell .verification-card-copy { display:grid; grid-template-columns:auto 1fr; column-gap:10px; align-items:center; }
.profile-page-shell .verification-card-copy small { grid-column:1; margin:0; }
.profile-page-shell .verification-card-copy strong { grid-column:2; font-size:1rem; }
.profile-page-shell .verification-card-copy p { grid-column:1 / -1; margin:3px 0 0; font-size:.78rem; line-height:1.35; }
.profile-page-shell .verification-consent { grid-column:1 / -1; margin-top:4px; font-size:.75rem; }
.profile-page-shell .verification-card-action { gap:8px; }
.profile-page-shell .verification-card-action .admin-primary { min-height:40px; padding-inline:15px; }
.profile-contact-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) minmax(0,.95fr); gap:10px; }
.profile-identity-layout { display:grid; grid-template-columns:minmax(350px,.85fr) minmax(0,1.35fr); gap:12px; align-items:stretch; }
.profile-identity-layout .profile-contact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-content:center; padding:11px 13px; border:1px solid rgba(20,119,89,.16); border-radius:14px; background:rgba(255,255,255,.68); }
.profile-identity-layout .profile-contact-grid { grid-column:2; }
.profile-identity-layout .profile-email-field { grid-column:1 / -1; }
.profile-identity-layout .verification-card { grid-column:1; grid-row:1; grid-template-columns:minmax(0,1fr); align-content:center; min-height:100%; margin:0; }
.profile-identity-layout .verification-card-action { justify-content:flex-end; }
.profile-account-summary { display:flex; flex-wrap:wrap; gap:6px; padding:7px 10px; border:1px solid #c7e4db; border-radius:12px; background:#f4fbf8; }
.profile-account-summary > div { display:flex; align-items:center; gap:7px; min-height:30px; padding:4px 9px; border-radius:9px; background:#fff; }
.profile-account-summary small { color:#678078; font-size:12px; }
.profile-account-summary strong { color:#0d7259; font-size:14px; }
.profile-contact-grid > label { display:grid; gap:6px; color:#214e44; font-size:13px; font-weight:820; }
.profile-contact-grid input { min-height:40px !important; }
.profile-details-layout { display:grid; grid-template-columns:minmax(0,1.16fr) minmax(390px,.84fr); gap:12px; align-items:stretch; }
.profile-details-layout > * { min-width:0; }
.profile-page-shell .profile-details-layout .verified-address-field { grid-column:auto; align-content:start; gap:8px; margin:0; padding:12px; border-radius:14px; }
.profile-page-shell .profile-details-layout .verified-address-grid { gap:7px; }
.profile-page-shell .profile-details-layout .verified-address-grid input { min-height:40px; }
.profile-page-shell .profile-details-layout .verified-address-field > p { font-size:.7rem; line-height:1.35; }
.profile-consent-panel { display:grid; align-content:start; gap:8px; padding:10px; border:1px solid rgba(213,168,75,.2); border-radius:14px; background:rgba(255,253,248,.64); }
.profile-page-shell .profile-privacy-box { display:block; padding:0; overflow:hidden; }
.profile-page-shell .profile-privacy-box summary { display:flex; align-items:center; justify-content:space-between; padding:11px 14px; cursor:pointer; list-style:none; color:#8f6d34; font-size:.86rem; font-weight:800; }
.profile-page-shell .profile-privacy-box summary::-webkit-details-marker { display:none; }
.profile-page-shell .profile-privacy-box summary span { color:#08785c; font-size:.78rem; font-weight:800; }
.profile-page-shell .privacy-detail-content { display:grid; gap:5px; padding:0 14px 12px; border-top:1px solid rgba(213,168,75,.18); }
.profile-page-shell .privacy-detail-content p { font-size:.78rem; line-height:1.45; }
.profile-agreement-grid { display:grid; grid-template-columns:1fr; gap:7px; }
.profile-agreement-grid .agreement-check { min-height:44px; padding:8px 10px; border-radius:11px; font-size:.76rem; font-weight:700; }
.profile-agreement-grid .agreement-check input { width:18px; height:18px; }
.profile-agreement-grid .payment-notice-agreement { grid-column:auto; background:linear-gradient(100deg, rgba(232,251,242,.94), rgba(255,253,247,.94)); }
.profile-agreement-grid .payment-notice-agreement span { display:grid; gap:3px; }
.profile-agreement-grid .payment-notice-agreement strong { color:#08785c; font-size:.86rem; }
.profile-agreement-grid .payment-notice-agreement small { color:#45665d; font-size:.69rem; font-weight:650; line-height:1.4; }
.profile-agreement-grid .optional-agreement { background:rgba(255,255,255,.72); }
.profile-agreement-grid .agreement-requirement {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:5px;
  padding:2px 7px;
  border:1px solid transparent;
  border-radius:999px;
  font-size:.7rem;
  font-style:normal;
  font-weight:850;
  line-height:1.25;
  white-space:nowrap;
  vertical-align:1px;
}
.profile-agreement-grid .agreement-requirement.is-required {
  border-color:rgba(213,168,75,.42);
  color:#9b5f00;
  background:#fff0c7;
}
.profile-agreement-grid .agreement-requirement.is-optional {
  border-color:rgba(20,119,89,.2);
  color:#45665d;
  background:#edf5f2;
}
.profile-page-shell .inline-actions { margin-top:2px; }

@media (max-width:760px) {
  .profile-page-shell .compact-admin-hero { padding:18px; align-items:flex-start; }
  .profile-page-shell .compact-admin-hero h1 { font-size:28px; }
  .profile-page-shell .profile-form-panel { padding:16px; }
  .profile-page-shell .team-policy-panel { grid-template-columns:1fr auto; align-items:center; }
  .profile-page-shell .team-policy-panel p { grid-column:1 / -1; font-size:.75rem; }
  .profile-page-shell .verification-card-copy { display:block; }
  .profile-page-shell .verification-card-copy small { margin-bottom:2px; }
  .profile-contact-grid,
  .profile-agreement-grid { grid-template-columns:1fr; }
  .profile-identity-layout { grid-template-columns:1fr; }
  .profile-identity-layout .profile-contact-grid { grid-column:auto; grid-template-columns:1fr; }
  .profile-identity-layout .verification-card { grid-column:auto; grid-row:auto; }
  .profile-identity-layout .profile-email-field { grid-column:auto; }
  .profile-page-shell .verification-card-action { width:100%; justify-content:space-between; }
  .profile-details-layout { grid-template-columns:1fr; }
  .profile-consent-panel { padding:8px; }
}

@media (min-width:761px) and (max-width:980px) {
  .profile-identity-layout { grid-template-columns:1fr; }
  .profile-identity-layout .profile-contact-grid,
  .profile-identity-layout .verification-card { grid-column:auto; grid-row:auto; }
  .profile-details-layout { grid-template-columns:1fr; }
}
.team-account-badge,
.team-grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border: 1px solid rgba(20, 83, 68, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
}

.team-grade-junior {
  color: #53616a;
  background: #eef2f4;
}

.team-grade-excellent {
  color: #865e0a;
  background: #fff4cd;
  border-color: #e9ce75;
}

.team-grade-partner {
  color: #135b73;
  background: #e7f8ff;
  border-color: #9ed9eb;
}

.team-grade-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.team-grade-guide {
  flex-basis: 100%;
  color: #4e6c63;
  font-size: 12px;
  font-weight: 750;
}

.leader-grade-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.leader-grade-guide article {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #dcebe4;
  border-radius: 12px;
  background: #f8fcfa;
}

.leader-grade-guide img { width: 42px; height: 42px; flex: 0 0 auto; }
.leader-grade-guide strong { color: #164f41; }
.leader-grade-guide p { margin: 4px 0 0; color: #637972; font-size: 12px; line-height: 1.5; }
.leader-grade-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.leader-upgrade-help {
  padding: 3px 8px;
  border: 1px solid #e0c46b;
  border-radius: 999px;
  background: #fff8dc;
  color: #8b5e09;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.leader-upgrade-help:hover { background: #ffefb7; }
.leader-grade-guide .leader-grade-extra-note { grid-column: 1 / -1; margin: 0; padding: 10px 13px; border-radius: 10px; background: #fff8e8; color: #805d20; font-size: 13px; font-weight: 750; }

.leader-upgrade-dialog {
  width: min(430px, calc(100% - 30px));
  margin: auto;
  padding: 20px;
  border: 1px solid #d9c579;
  border-radius: 20px;
  background: linear-gradient(145deg, #fffdf4, #f2fff9);
  color: #153f35;
  box-shadow: 0 24px 70px rgba(17, 62, 50, .3);
}
.leader-upgrade-dialog::backdrop { background: rgba(18, 45, 38, .5); backdrop-filter: blur(3px); }
.leader-upgrade-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.leader-upgrade-dialog__head small { color: #a26a13; font-weight: 900; }
.leader-upgrade-dialog__head h3 { margin: 4px 0 0; color: #0b6b52; font-size: 21px; }
.leader-upgrade-dialog__head > button { width: 35px; height: 35px; border: 1px solid #d7e8e1; border-radius: 50%; background: #fff; color: #315f53; font-size: 22px; cursor: pointer; }
.leader-upgrade-dialog > p { margin: 18px 0; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .78); color: #49685f; font-size: 14px; font-weight: 750; line-height: 1.7; }
.leader-upgrade-dialog > .admin-primary { width: 100%; }

@media (max-width: 760px) {
  .leader-grade-guide { grid-template-columns: 1fr; }
  .leader-grade-guide .leader-grade-extra-note { grid-column: auto; }
}

/* 팀장 가입 화면 가독성 보강 */
.team-join-page .admin-hero p,
.team-join-page .guide-text,
.team-join-page .join-eligibility-notice p,
.team-join-page .verification-card-copy p,
.team-join-page .verified-address-field p,
.team-join-page .business-verification-card p,
.team-join-page .important-payment-panel p,
.team-join-page .privacy-box p,
.team-join-page .notice-link-card span,
.team-join-page .duty-box li { font-size: 14px; line-height: 1.58; }
.team-join-page .ops-form > label,
.team-join-page .team-contact-row label,
.team-join-page .business-verification-fields label,
.team-join-page .verified-address-grid label,
.team-join-page .service-check-grid,
.team-join-page .service-check-grid label { font-size: 15px; }
.team-join-page .service-check-grid legend { font-size: 17px; }
.team-join-page .leader-grade-guide strong { font-size: 16px; }
.team-join-page .leader-grade-guide p { font-size: 14px; line-height: 1.55; }
.team-join-page .verification-card-copy strong,
.team-join-page .verified-address-head strong,
.team-join-page .privacy-box > strong,
.team-join-page .notice-link-card strong { font-size: 16px; }
.team-join-page .verification-consent,
.team-join-page .editable-note,
.team-join-page .agreement-row .agreement-check { font-size: 13.5px; }

/* 팀장 가입 페이지 안에서 바로 여는 Google 로그인 */
.team-join-hero-copy { min-width: 0; width: min(100%, 760px); }
.team-inline-login,
.team-inline-account {
  display: flex;
  width: min(100%, 650px);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(20, 119, 89, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 28px rgba(37, 89, 73, .09);
}
.team-inline-login[hidden],
.team-inline-account[hidden] { display: none !important; }
.team-inline-login__copy,
.team-inline-account { align-items: center; }
.team-inline-login__copy { display: flex; min-width: 0; gap: 11px; }
.team-inline-login__copy > div,
.team-inline-account > div { display: grid; gap: 3px; min-width: 0; }
.team-inline-login__copy strong,
.team-inline-account strong { color: #124b3d; font-size: 15px; }
.team-inline-login__copy span:not(.google-mark),
.team-inline-account > div > span { color: #60776f; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.google-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #e1e5ea;
  border-radius: 50%;
  color: #4285f4;
  background: #fff;
  font-size: 20px;
  font-weight: 900;
}
.team-google-login-button { min-height: 46px; padding: 12px 17px; white-space: nowrap; }
.team-inline-account { justify-content: flex-start; background: rgba(236, 250, 243, .92); }
.team-inline-account__check {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #15966f;
  font-size: 20px;
  font-weight: 900;
}

@media (max-width: 640px) {
  .team-join-page .admin-hero.has-page-mascot { padding: 18px 98px 18px 16px; }
  .team-join-page .admin-hero h1 { font-size: 27px; }
  .team-inline-login { display: grid; gap: 11px; padding: 12px; }
  .team-google-login-button { width: 100%; }
  .team-inline-login__copy strong { font-size: 14px; }
  .team-inline-login__copy span:not(.google-mark) { font-size: 11px; }
}

.address-with-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.address-with-copy button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #bfe1d4;
  border-radius: 8px;
  background: #edf8f3;
  color: #0d7559;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.call-price-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr);
  align-items: stretch;
  gap: 5px;
  margin: 10px 0;
}

.call-price-equation > span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(20, 119, 89, .14);
  border-radius: 10px;
  background: #f3faf6;
  text-align: center;
}

.call-price-equation small { color: #6c8179; font-size: 10px; font-weight: 850; }
.call-price-equation strong { color: #0d7559; font-size: 16px; }
.call-price-equation .is-total { background: #fff7da; border-color: #ead393; }
.call-price-equation .is-total strong { color: #a56a0b; }
.call-price-equation > b { display: grid; place-items: center; color: #a56a0b; }

.extra-share-calculator {
  border-width: 2px;
  padding: 13px;
}

.extra-share-calculator label { font-size: 13px; }
.extra-share-calculator input { height: 42px; font-size: 18px; }
.extra-share-calculator strong { font-size: 19px; }

.completion-payment-guide {
  width: 100%;
  margin: 0 0 8px;
  color: #805b13;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

@media (max-width: 560px) {
  .call-price-equation { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr); gap: 2px; }
  .call-price-equation > span { padding: 8px 3px; }
  .call-price-equation strong { font-size: 13px; }
  .address-with-copy { align-items: flex-start; }
}

/* Focused team guidance pages opened from deposit-confirmation SMS links. */
.team-guide-page {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(145deg, #fff9e8 0%, #effaf4 58%, #e9f8f2 100%);
  color: #123d34;
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
}

.team-guide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 22px;
}

.team-guide-topbar .brand { color: inherit; text-decoration: none; }
.team-guide-home {
  padding: 9px 14px;
  border: 1px solid #b9ddd0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #0d7559;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.team-guide-main { max-width: 900px; margin: 0 auto; padding: 10px 18px 50px; }
.team-guide-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid #c7e2d8;
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 48px rgba(31, 96, 76, .11);
}
.team-guide-eyebrow { margin: 0 0 8px; color: #b06f08; font-size: 13px; font-weight: 900; }
.team-guide-card h1 { margin: 0; color: #075f4a; font-size: clamp(27px, 5vw, 42px); line-height: 1.2; }
.team-guide-intro { margin: 12px 0 24px; color: #58726a; font-size: 16px; line-height: 1.7; }
.team-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.team-guide-grid article, .team-guide-steps li, .team-guide-list li {
  border: 1px solid #d5e9e1;
  border-radius: 16px;
  background: #f6fcf9;
}
.team-guide-grid article { padding: 17px; }
.team-guide-grid h2, .team-guide-notice h2 { margin: 0 0 7px; color: #0b7257; font-size: 16px; }
.team-guide-grid p, .team-guide-notice p { margin: 0; line-height: 1.65; }
.team-guide-list, .team-guide-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.team-guide-list li { position: relative; padding: 14px 16px 14px 40px; line-height: 1.55; }
.team-guide-list li::before { content: "✓"; position: absolute; left: 16px; color: #0c8b68; font-weight: 950; }
.team-guide-steps { counter-reset: team-guide-step; }
.team-guide-steps li { display: grid; grid-template-columns: minmax(100px, .32fr) 1fr; gap: 14px; padding: 16px; line-height: 1.55; }
.team-guide-steps strong { color: #0b7257; }
.team-guide-notice { margin-top: 16px; padding: 17px; border: 1px solid #bcded1; border-radius: 16px; background: #edf9f4; line-height: 1.65; }
.team-guide-notice--warm { border-color: #ead394; background: #fff9e7; }
.team-guide-notice--important { border-color: #f0b6a9; background: #fff2ee; color: #a13d2c; }

@media (max-width: 640px) {
  .team-guide-topbar { padding: 14px 14px; }
  .team-guide-main { padding: 6px 10px 34px; }
  .team-guide-card { border-radius: 20px; }
  .team-guide-grid { grid-template-columns: 1fr; }
  .team-guide-steps li { grid-template-columns: 1fr; gap: 4px; }
}
.home-repair-admin-box {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #83c8b1;
  border-radius: 17px;
  background: linear-gradient(145deg, #f5fff9, #eaf8f2);
}

.home-repair-admin-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #0a604a;
}

.home-repair-admin-box__head span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #147e62;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.home-repair-admin-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.home-repair-admin-states {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.home-repair-admin-states span {
  padding: 6px 8px;
  border-radius: 999px;
  color: #755212;
  background: #fff0c7;
  font-size: 0.72rem;
  font-weight: 900;
}

.home-repair-admin-items b {
  padding: 8px 10px;
  border: 1px solid #b9ddcf;
  border-radius: 11px;
  background: #fff;
  color: #143f35;
  font-size: 0.88rem;
}

.home-repair-admin-box dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 0;
}

.home-repair-admin-box dl div {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.home-repair-admin-box dt {
  color: #57766d;
  font-size: 0.74rem;
  font-weight: 800;
}

.home-repair-admin-box dd {
  margin: 4px 0 0;
  color: #163f35;
  font-weight: 800;
}

.home-repair-team-notice {
  margin: 11px 0 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff3d5;
  color: #775412;
  font-size: 0.82rem;
  font-weight: 800;
}

.home-repair-admin-photos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.home-repair-admin-photos img,
.home-repair-admin-photos span {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  background: #dbe9e4;
}

.home-repair-admin-photos span {
  display: grid;
  place-items: center;
  padding: 4px;
  color: #547068;
  text-align: center;
  font-size: 0.72rem;
}

@media (max-width: 720px) {
  .home-repair-admin-box dl {
    grid-template-columns: 1fr;
  }

  .home-repair-admin-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
