.page-body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bs-tertiary-bg, #f8f9fa);
}

.page-admin {
  align-items: flex-start;
  padding: 1.25rem 0 2.5rem;
  background-color: #f6f7f8;
}

.page-admin .app-shell {
  max-width: 1120px;
}

.admin-menu {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid #e7e9ec;
  border-radius: 999px;
}

.admin-menu-item {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 550;
  font-size: 0.9rem;
  color: #5c6570;
}

.admin-menu-item:hover {
  color: #2f353b;
  background: #f3f4f6;
}

.admin-menu-item.is-active,
.admin-menu-item.is-active:hover {
  background: #4b5563;
  color: #fff;
}

.dash-section {
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid #e7e9ec;
  background: #fff;
}

.dash-section-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: #374151;
}

.dash-section-intro {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.dash-volume,
.dash-satisfaction,
.dash-know,
.dash-types,
.dash-visitors {
  background: #fff;
  border-color: #e7e9ec;
}

.dash-volume .dash-section-title,
.dash-satisfaction .dash-section-title,
.dash-know .dash-section-title,
.dash-types .dash-section-title,
.dash-visitors .dash-section-title {
  color: #374151;
}

.metric-card,
.admin-card {
  background: #fff;
  border-radius: 0.9rem;
  border: 1px solid #e7e9ec;
  box-shadow: none;
  padding: 1rem 1.05rem;
}

.dash-section .metric-card {
  border: 0;
  background: #f6f7f8;
  padding: 0.75rem 0.85rem;
}

a.metric-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

a.metric-link:hover .metric-card {
  background: #eceef1;
}

.dash-choices {
  padding: 0.15rem 0.15rem 0.2rem;
}

.dist-count {
  min-width: 1.5rem;
  text-align: right;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.admin-card-messages {
  border-top: 2px solid #d1d5db;
}

.tech-reveal {
  border-top: 1px solid var(--bs-border-color);
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bs-secondary-color, #6c757d);
}

.metric-value {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  word-break: break-word;
}

.metric-hint {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--bs-secondary-color, #6c757d);
}

.admin-msg-table {
  table-layout: fixed;
  width: 100%;
}

.admin-msg-table th,
.admin-msg-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-msg-table .col-id { width: 3.1rem; }
.admin-msg-table .col-date { width: 5.8rem; }
.admin-msg-table .col-name { width: 8rem; }
.admin-msg-table .col-email { width: 10rem; }
.admin-msg-table .col-phone { width: 6.2rem; }
.admin-msg-table .col-sat { width: 7rem; }
.admin-msg-table .col-know { width: 6.4rem; }
.admin-msg-table .col-anon { width: 4.5rem; }

.admin-msg-row {
  cursor: pointer;
}

.admin-msg-row:hover,
.admin-msg-row:focus {
  background-color: #f4f5f6;
}

.admin-msg-preview {
  max-width: 0;
  color: #495057;
}

.dash-simple {
  background: #fff;
  border: 1px solid #e7e9ec;
  border-radius: 0.9rem;
  padding: 1.1rem 1.15rem 1.2rem;
}

.dash-block {
  margin-bottom: 1.15rem;
}

.dash-qty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dash-qty {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 5.4rem;
  padding: 0.6rem 0.75rem;
  background: #f6f7f8;
  border-radius: 0.7rem;
  text-decoration: none;
  color: inherit;
}

a.dash-qty:hover {
  background: #eceef1;
  color: inherit;
}

.dash-qty-n {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: #1f2937;
}

.dash-qty-l {
  font-size: 0.72rem;
  color: #6b7280;
}

.dash-period {
  display: flex;
  gap: 0.2rem;
  padding: 0.2rem;
  background: #f6f7f8;
  border-radius: 999px;
}

.dash-period-item {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 550;
  color: #5c6570;
  white-space: nowrap;
}

.dash-period-item:hover {
  color: #111827;
  background: #fff;
}

.dash-period-item.is-active {
  background: #4b5563;
  color: #fff;
}

.dash-period-item.is-active:hover {
  color: #fff;
}

.dist-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
}

.dist-row:last-child {
  margin-bottom: 0;
}

.dist-track {
  height: 0.45rem;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
}

.dist-track > span {
  display: block;
  height: 100%;
  background: #198754;
  border-radius: 999px;
}

.page-public {
  align-items: flex-start;
  padding: 1rem 0 2.5rem;
  background-color: #f4f6f8;
}

.page-public .app-shell {
  max-width: 560px;
}

.admin-page-head .site-logo-admin {
  margin: 0 0 0.15rem;
}

.app-shell {
  max-width: 540px;
}

.site-header {
  margin-bottom: 1.1rem;
}

.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 1rem;
}

.site-logo-link {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.site-logo {
  display: block;
  width: auto;
  max-width: min(360px, 72vw);
  height: auto;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
}

.site-logo-admin {
  max-width: 220px;
  max-height: 52px;
}

.site-logo-auth {
  max-width: 260px;
  max-height: 64px;
  margin: 0 auto 0.35rem;
  object-position: center;
}

.hero-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e8eaed;
  background: #fff;
}

.hero-img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center 32%;
}

.hero-team-btn {
  flex: 0 0 auto;
  border: 1px solid #0d2c6c;
  background: #fff;
  color: #0d2c6c;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-team-btn:hover,
.hero-team-btn:focus-visible {
  background: #0d2c6c;
  border-color: #0d2c6c;
  color: #fff;
}

.page-title {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.anon-block .form-check-input {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0;
}

.anon-block .form-check-label {
  font-size: 0.82rem;
  font-weight: 500;
}

.anon-hint,
.limit-hint {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--bs-secondary-color, #6c757d);
}

.message-block .form-label {
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.message-block textarea {
  min-height: 3.25rem;
  font-size: 0.875rem;
}

#submit-message:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tracking {
  letter-spacing: 0.12em;
}

.team-drawer {
  --bs-offcanvas-width: min(100vw, 24rem);
}

.team-drawer .offcanvas-header {
  border-bottom: 1px solid #eee;
  background: #fff;
}

.team-drawer .offcanvas-title,
.team-drawer h2 {
  font-weight: 600;
  color: #374151;
}

.team-drawer .offcanvas-body {
  padding-top: 0.75rem;
  background: #fafbfc;
}

.team-header-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

.team-burger {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.45rem;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team-burger:hover,
.team-burger.is-open {
  background: #f7f8f9;
  border-color: #d1d5db;
}

.team-burger-bars,
.team-burger-bars::before,
.team-burger-bars::after {
  display: block;
  width: 0.9rem;
  height: 1.5px;
  border-radius: 2px;
  background: #6b7280;
}

.team-burger-bars {
  position: relative;
}

.team-burger-bars::before,
.team-burger-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.team-burger-bars::before {
  top: -5px;
}

.team-burger-bars::after {
  top: 5px;
}

.team-index {
  display: none;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.45rem 1rem 0.7rem;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.team-index.is-open {
  display: flex;
}

.team-chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 550;
  text-decoration: none;
  line-height: 1.2;
  color: #4b5563;
}

.team-chip:hover {
  color: #111827;
}

.team-chip-0 {
  background: #f5faf7;
  border-color: #d7e6dc;
  color: #5d7466;
}

.team-chip-1 {
  background: #f5f8fb;
  border-color: #d7e0ea;
  color: #5b6d82;
}

.team-chip-2 {
  background: #f8f6fb;
  border-color: #e2dbea;
  color: #6d627c;
}

.team-chip-3 {
  background: #fbf8f5;
  border-color: #eadfd3;
  color: #7a6a58;
}

.team-group {
  margin-bottom: 0.55rem;
  padding: 0.15rem 0.75rem 0.15rem;
  border-radius: 0.75rem;
  border: 1px solid #e8eaed;
  scroll-margin-top: 0.5rem;
}

.team-group:last-child {
  margin-bottom: 0;
}

.team-group[open] {
  padding-bottom: 0.55rem;
}

.team-tone-0 {
  background: #f7faf8;
  border-color: #dde8e1;
}

.team-tone-1 {
  background: #f6f8fb;
  border-color: #dce3ec;
}

.team-tone-2 {
  background: #f8f7fb;
  border-color: #e4deeb;
}

.team-tone-3 {
  background: #fbf8f5;
  border-color: #ebe2d8;
}

.team-group-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.5rem 0;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.team-group-head::marker {
  content: "";
  font-size: 0;
}

.team-group-head::-webkit-details-marker {
  display: none;
}

.team-group[open] .team-group-head {
  margin-bottom: 0.35rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.team-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
}

.team-tone-0 .team-num {
  background: #e7f1eb;
  color: #5d7466;
}

.team-tone-1 .team-num {
  background: #e7eef5;
  color: #5b6d82;
}

.team-tone-2 .team-num {
  background: #eeeaf4;
  color: #6d627c;
}

.team-tone-3 .team-num {
  background: #f3ebe3;
  color: #7a6a58;
}

.team-group-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.25;
  color: #374151;
}

.team-group-desc {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #6b7280;
}

.team-count {
  font-size: 0.68rem;
  font-weight: 550;
  white-space: nowrap;
  color: #6b7280;
}

.team-chevron {
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.12rem;
  border-right: 1.5px solid #9ca3af;
  border-bottom: 1.5px solid #9ca3af;
  transform: rotate(45deg);
}

.team-group[open] .team-chevron {
  margin-top: 0.12rem;
  transform: rotate(-135deg);
}

.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-person {
  margin-bottom: 0;
  padding: 0.42rem 0.15rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 0.8rem;
  line-height: 1.3;
}

.team-person:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0.1rem;
}

.team-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  align-items: baseline;
}

.team-name {
  font-weight: 600;
  color: #1f2937;
}

.team-email {
  text-decoration: none;
  font-size: 0.74rem;
  color: #6b7280;
  word-break: break-all;
}

.team-email:hover {
  color: #374151;
}

.team-role {
  padding-left: 0;
  font-size: 0.72rem;
  color: #9ca3af;
}

.face-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.face-option {
  flex: 1 1 0;
  min-width: 0;
}

.face-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.face-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 4.75rem;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.15rem;
  border: 3px solid transparent;
  border-radius: 1rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.face-emoji {
  font-size: 1.85rem;
  line-height: 1;
}

.face-caption {
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  color: #212529;
}

.face-1 { background: #f8d7da; color: #b02a37; }
.face-2 { background: #ffe0c2; color: #ca6510; }
.face-3 { background: #fff3cd; color: #997404; }
.face-4 { background: #d8f3dc; color: #146c43; }
.face-5 { background: #a8e6b1; color: #0f5132; }

.face-option input:focus-visible + .face-btn {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

.face-option input:checked + .face-btn {
  border-color: #14532d;
  box-shadow: 0 0 0 0.15rem rgba(25, 135, 84, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 380px) {
  .hero-img { height: 132px; }
  .face-emoji { font-size: 1.55rem; }
  .face-caption { font-size: 0.55rem; }
  .face-btn { min-height: 4.25rem; }
}
