:root {
  --background: #fff8e8;
  --nav: #0b3d1e;
  --title: #0b3d1e;
  --primary: #5a8f1b;
  --primary-hover: #6b8e23;
  --card: #ffffff;
  --card-border: #f7efd8;
  --muted: #5f6a53;
  --text: #1f271d;
  --cream-deep: #efe4c8;
  --danger: #b3261e;
  --watermelon: #e85d75;
  --lemon: #d9a321;
  --lychee: #c75b7a;
  --line: rgba(11, 61, 30, 0.08);
  --soft-surface: #fffcf4;
  --shadow: 0 12px 28px rgba(11, 61, 30, 0.05);
  --radius: 8px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fffaf0 0%, var(--background) 260px);
  color: var(--text);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.admin-open .site-footer {
  display: none;
}

body.admin-open .site-header {
  display: none;
}

body.admin-login-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.shell {
  width: min(100% - 32px, var(--shell));
  margin: 0 auto;
}

.is-hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav);
  color: #fff;
  box-shadow: none;
}

.nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: 330px 1fr 164px;
  align-items: center;
  gap: 24px;
}

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

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: #fff8e8;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.brand-copy {
  min-width: 0;
  display: grid;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 44px;
}

.nav-link {
  min-height: 72px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.54);
  font-weight: 700;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 21px;
  height: 2px;
  border-radius: 999px;
  background: #b8f476;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-admin-button {
  min-height: 32px;
  min-width: 160px;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease;
}

.nav-admin-button:hover,
.nav-admin-button.is-active {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.nav-link-mobile-admin {
  display: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: transparent;
}

.nav-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg);
}

.feedback-section {
  padding: 28px 0 44px;
}

.feedback-grid {
  width: min(100% - 32px, 720px);
  display: block;
}

.card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
}

.feedback-card {
  padding: 30px;
  box-shadow: var(--shadow);
}

.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--title);
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 34px;
  font-weight: 800;
}

h2 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 800;
}

h3 {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 800;
}

.section-description {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
}

.feedback-form,
.login-form {
  display: grid;
  gap: 16px;
}

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

label,
legend {
  color: var(--title);
  font-size: 13px;
  font-weight: 700;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--text);
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease;
}

input {
  min-height: 44px;
  padding: 0 13px;
}

textarea {
  min-height: 126px;
  padding: 12px 14px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90, 143, 27, 0.1);
}

::placeholder {
  color: #8a927f;
}

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

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

.contact-option {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--title);
  font-size: 13px;
  font-weight: 700;
  transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-option input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

.contact-option:has(input:checked) {
  border-color: var(--primary);
  background: #f8fbf2;
  box-shadow: 0 0 0 2px rgba(90, 143, 27, 0.1);
}

.contact-input-field {
  animation: revealField 180ms ease;
}

@keyframes revealField {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flavor-option {
  min-height: 94px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: #fffdf8;
  transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.flavor-option:hover {
  background: #fff;
  box-shadow: none;
}

.flavor-option input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--primary);
}

.flavor-option strong,
.flavor-option small {
  display: block;
}

.flavor-option strong {
  color: var(--title);
  font-size: 13px;
  line-height: 1.3;
}

.flavor-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.flavor-option:has(input:checked) {
  border-color: var(--primary);
  background: #f8fbf2;
  box-shadow: 0 0 0 2px rgba(90, 143, 27, 0.1);
}

.flavor-watermelon {
  border-top: 2px solid rgba(232, 93, 117, 0.42);
}

.flavor-lemon {
  border-top: 2px solid rgba(217, 163, 33, 0.45);
}

.flavor-lychee {
  border-top: 2px solid rgba(199, 91, 122, 0.38);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1;
  transition: background 180ms ease, border 180ms ease, color 180ms ease;
}

.button:hover {
  transform: none;
}

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

.button-primary {
  background: var(--primary);
  color: #fff;
}

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

.button-secondary {
  background: #fffdf8;
  border-color: var(--primary);
  color: var(--primary);
}

.button-secondary:hover {
  background: #eef6e4;
}

.button-ghost {
  background: transparent;
  border-color: var(--card-border);
  color: var(--title);
}

.button-ghost:hover {
  background: #fffdf8;
}

.button-danger {
  min-height: 36px;
  padding: 0 12px;
  background: #fffafa;
  border-color: #f5d4cf;
  color: var(--danger);
  font-size: 13px;
}

.button-wide {
  width: 100%;
}

.text-button {
  width: max-content;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.success-message {
  min-height: 470px;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  overflow: hidden;
  padding: 42px 28px;
  border: 1px solid rgba(90, 143, 27, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(184, 244, 118, 0.26) 0 82px, transparent 84px),
    linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  color: var(--title);
  text-align: center;
}

.success-orbit {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(90, 143, 27, 0.1);
}

.success-orbit::before {
  content: "";
  position: absolute;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(90, 143, 27, 0.12);
  border-radius: 999px;
}

.success-icon {
  width: 42px;
  height: 42px;
  fill: var(--primary);
}

.success-message h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.success-message p {
  max-width: 440px;
  margin-bottom: 0;
  color: var(--muted);
}

.success-ticket {
  width: min(100%, 360px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 2px;
  padding: 12px 14px;
  border: 1px dashed rgba(90, 143, 27, 0.32);
  border-radius: var(--radius);
  background: #f8fbf2;
}

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

.success-ticket strong {
  color: var(--primary);
}

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

.winner-section {
  padding: 36px 0 64px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 16px;
}

#publicWinnerMount {
  width: min(100%, 720px);
  margin: 0 auto;
}

.winner-empty,
.winner-card {
  border-radius: var(--radius);
}

.winner-empty {
  min-height: 132px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px dashed var(--cream-deep);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.44);
}

.winner-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: var(--shadow);
}

.winner-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--primary);
}

.winner-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #f8fbf2;
  color: var(--primary);
}

.winner-badge svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.winner-content {
  min-width: 0;
}

.winner-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(90, 143, 27, 0.09);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.winner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0 12px;
}

.winner-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius);
  background: #fffdf8;
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.winner-quote {
  margin-bottom: 0;
  color: var(--text);
  font-size: 16px;
}

.admin-view {
  min-height: 100vh;
  padding: 28px 0 52px;
  background: var(--background);
}

body.admin-login-open .admin-view {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

body.admin-login-open .login-card {
  max-height: calc(100dvh - 24px);
  margin: 0 auto;
}

.admin-shell {
  display: grid;
  gap: 20px;
}

.login-card {
  width: min(100%, 480px);
  min-height: 560px;
  margin: clamp(28px, calc((100vh - 560px) / 2), 120px) auto;
  display: grid;
  align-content: center;
  justify-items: stretch;
  padding: 56px 50px 44px;
  border-color: #e8ddc7;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.login-logo {
  width: 106px;
  height: 64px;
  justify-self: center;
  display: grid;
  place-items: center;
  margin: 0 0 62px;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.login-logo img {
  width: 106px;
  height: 64px;
  object-fit: cover;
  object-position: center 40%;
}

.login-card h1 {
  margin: 0 0 22px;
  color: #151515;
  font-size: 34px;
  font-weight: 800;
  text-align: center;
}

.login-form {
  gap: 20px;
}

.login-password-field {
  gap: 10px;
}

.login-password-field label {
  color: #24281f;
  font-size: 17px;
  font-weight: 500;
}

.password-control {
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid #e7dbc3;
  border-radius: 8px;
  background: #fffdf8;
}

.password-control:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90, 143, 27, 0.08);
}

.field-icon {
  width: 24px;
  height: 24px;
  color: #747a68;
  fill: currentColor;
}

.password-control input {
  min-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #596276;
  font-size: 18px;
  box-shadow: none;
}

.password-control input:focus {
  box-shadow: none;
}

.login-submit {
  min-height: 54px;
  margin-top: 16px;
  font-size: 17px;
}

.login-submit .icon {
  width: 24px;
  height: 24px;
}

.form-error {
  margin: -14px 0 -10px;
  color: var(--danger);
  font-weight: 700;
  text-align: center;
}

.login-note {
  width: min(100%, 390px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 46px auto 0;
  color: #22251d;
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
}

.note-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 6px;
  fill: currentColor;
}

body.admin-open:not(.admin-login-open) .admin-view {
  min-height: 100vh;
  padding: 0;
  background: #fff8e8;
}

body.admin-open:not(.admin-login-open) .admin-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
}

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  background: #fff8e8;
}

.admin-sidebar {
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 28px 26px;
  border-right: 1px solid #eadfca;
  background: #fff8e8;
}

.admin-sidebar-brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
}

.admin-sidebar-brand img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  object-fit: cover;
  object-position: center 40%;
}

.admin-sidebar-brand strong,
.admin-sidebar-brand span {
  display: block;
}

.admin-sidebar-brand strong {
  color: var(--title);
  font-size: 22px;
  line-height: 1.15;
}

.admin-sidebar-brand span {
  margin-top: 4px;
  color: #2f3429;
}

.admin-menu {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 32px;
}

.admin-menu-item,
.admin-logout,
.admin-public-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}

.admin-menu-item {
  width: 100%;
  padding: 0 14px;
  background: transparent;
  color: #293020;
  text-align: left;
}

.admin-menu-item svg,
.admin-public-link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: currentColor;
}

.admin-menu-item:hover {
  background: rgba(90, 143, 27, 0.08);
}

.admin-menu-item.is-active {
  background: var(--primary);
  color: #fff;
}

.admin-sidebar-footer {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #dfd2b9;
}

.admin-public-link,
.admin-logout {
  justify-content: center;
  padding: 0 14px;
}

.admin-public-link {
  border: 1px solid rgba(90, 143, 27, 0.35);
  color: var(--primary);
  background: #fffdf8;
}

.admin-logout {
  background: #203a26;
  color: #fff;
}

.admin-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 28px 32px 40px;
}

.admin-main > *,
.admin-workspace > *,
.stat-card,
.feedback-list-card {
  min-width: 0;
}

.admin-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  border-radius: 12px;
  background: var(--nav);
  color: #fff;
}

.admin-main-header .section-label {
  color: #b8f476;
}

.admin-main-header h1 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 34px;
}

.admin-main-header p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.admin-main-header .button {
  background: #fff;
  color: var(--title);
}

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

.stat-card {
  min-height: 120px;
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 10px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: #fff;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(90, 143, 27, 0.08);
}

.stat-card span,
.stat-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stat-card strong {
  color: var(--title);
  font-size: 30px;
  line-height: 1;
}

.stat-card-total strong {
  font-size: 38px;
}

.stat-status strong {
  font-size: 17px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.picker-card,
.tools-card,
.feedback-list-card {
  border-radius: 12px;
  padding: 22px;
}

.picker-card {
  min-height: 390px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.tools-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.panel-copy {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card-title-row h2 {
  margin-bottom: 0;
}

.trophy-icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 12px;
  background: #f2f8ea;
  color: var(--primary);
  fill: currentColor;
}

.winner-admin-result {
  min-height: 182px;
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 20px;
  border: 1px solid #dcebc9;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 242, 0.92)),
    #fff;
}

.winner-admin-result > p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.winner-admin-result h3 {
  margin-bottom: 2px;
  font-size: 26px;
}

.winner-admin-result dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px 12px;
  margin: 0;
}

.winner-admin-result dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.winner-admin-result dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.picker-actions .button {
  flex: 1 1 180px;
}

.picker-note {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.tool-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.search-box {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #fffdf8;
}

.search-box input {
  min-height: 44px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.search-box input:focus {
  box-shadow: none;
}

.table-count {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2f8ea;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 10px;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--card-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft-surface);
  color: var(--title);
  font-size: 12px;
  font-weight: 800;
}

td {
  color: var(--text);
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fffdf8;
}

.td-opinion {
  max-width: 360px;
}

.td-opinion span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mobile-feedback-list {
  display: none;
}

.feedback-mobile-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: #fffdf8;
}

.feedback-mobile-card p {
  margin-bottom: 0;
}

.feedback-mobile-card .meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--cream-deep);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

.site-footer {
  background: var(--nav);
  color: #fff;
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner div {
  display: grid;
  gap: 3px;
}

.footer-inner strong {
  font-size: 16px;
}

.footer-inner span,
.footer-inner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .dashboard,
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
    position: static;
    grid-template-rows: auto auto auto;
    gap: 16px;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid #eadfca;
  }

  .admin-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 4px;
  }

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

  .admin-main {
    padding: 22px;
  }

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

  .stat-status {
    grid-column: span 2;
  }
}

@media (max-height: 680px) {
  .login-card {
    width: min(100%, 440px);
    min-height: auto;
    padding: 28px 40px 26px;
  }

  .login-logo {
    width: 86px;
    height: 52px;
    margin-bottom: 26px;
  }

  .login-logo img {
    width: 86px;
    height: 52px;
  }

  .login-card h1 {
    margin-bottom: 16px;
    font-size: 28px;
  }

  .login-form {
    gap: 14px;
  }

  .password-control {
    min-height: 48px;
  }

  .password-control input {
    min-height: 46px;
    font-size: 16px;
  }

  .login-submit {
    min-height: 48px;
    margin-top: 10px;
    font-size: 15px;
  }

  .login-note {
    margin-top: 24px;
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, var(--shell));
  }

  .nav {
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .nav .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .nav-toggle {
    position: relative;
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  .nav-admin-button {
    display: none;
  }

  .nav-links {
    position: absolute;
    inset: 68px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: var(--nav);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link,
  .nav-link-mobile-admin {
    width: 100%;
    min-height: 46px;
    margin-left: 0;
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.78);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link-mobile-admin {
    display: inline-flex;
    padding: 0 14px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
  }

  .feedback-section {
    padding-top: 20px;
  }

  .feedback-card,
  .picker-card,
  .tools-card,
  .feedback-list-card {
    padding: 20px;
  }

  .success-message {
    min-height: 420px;
    padding: 34px 18px;
  }

  .success-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .success-ticket {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .admin-sidebar {
    gap: 12px;
    padding: 14px 12px 12px;
    background: #fff8e8;
  }

  .admin-sidebar-brand {
    grid-template-columns: 42px 1fr;
    padding: 10px 12px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: #fff;
  }

  .admin-sidebar-brand img {
    width: 42px;
    height: 42px;
  }

  .admin-sidebar-brand strong {
    font-size: 18px;
  }

  .admin-sidebar-brand span {
    font-size: 13px;
  }

  .admin-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .admin-menu::-webkit-scrollbar {
    display: none;
  }

  .admin-sidebar-footer {
    grid-template-columns: 1fr 0.72fr;
    gap: 8px;
    padding-top: 10px;
  }

  .admin-menu-item,
  .admin-public-link,
  .admin-logout {
    width: auto;
    min-height: 42px;
    white-space: nowrap;
    font-size: 13px;
  }

  .admin-menu-item {
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid var(--card-border);
    background: #fff;
  }

  .admin-menu-item.is-active {
    border-color: var(--primary);
  }

  .admin-main {
    padding: 12px 12px 28px;
    gap: 14px;
  }

  .admin-main-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 12px;
  }

  .admin-main-header h1 {
    margin-bottom: 4px;
    font-size: 26px;
  }

  .admin-main-header p {
    font-size: 14px;
  }

  .admin-main-header .button {
    width: 100%;
  }

  .admin-view {
    padding: 24px 0;
  }

  .login-card {
    width: min(100%, 380px);
    min-height: auto;
    margin: 0 auto;
    padding: 38px 24px 32px;
  }

  .login-logo {
    width: 92px;
    height: 56px;
    margin-bottom: 36px;
  }

  .login-logo img {
    width: 92px;
    height: 56px;
  }

  .login-card h1 {
    font-size: 28px;
  }

  .login-password-field label {
    font-size: 16px;
  }

  .password-control {
    min-height: 56px;
  }

  .password-control input {
    min-height: 54px;
    font-size: 16px;
  }

  .login-submit {
    min-height: 54px;
    font-size: 16px;
  }

  .login-note {
    margin-top: 32px;
    font-size: 14px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  .section-description {
    font-size: 16px;
  }

  .flavor-options,
  .contact-options {
    grid-template-columns: 1fr;
  }

  .winner-card {
    grid-template-columns: 1fr;
  }

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

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

  .stat-card {
    min-height: 96px;
    padding: 14px;
  }

  .stat-card strong {
    font-size: 24px;
  }

  .stat-card-total,
  .stat-status {
    grid-column: 1 / -1;
  }

  .stat-card-total strong {
    font-size: 30px;
  }

  .admin-workspace {
    gap: 12px;
  }

  .picker-card,
  .tools-card,
  .feedback-list-card {
    border-radius: 12px;
    padding: 16px;
  }

  .picker-card {
    min-height: auto;
    grid-template-rows: auto auto auto auto;
  }

  .panel-copy {
    font-size: 13px;
  }

  .trophy-icon {
    width: 40px;
    height: 40px;
    padding: 9px;
  }

  .winner-admin-result {
    min-height: 132px;
    padding: 14px;
  }

  .winner-admin-result h3 {
    font-size: 22px;
  }

  .winner-admin-result dl {
    grid-template-columns: 78px 1fr;
    gap: 7px 10px;
    font-size: 13px;
  }

  .tools-card {
    gap: 6px;
  }

  .search-box {
    min-height: 44px;
  }

  .feedback-list-card .card-title-row {
    gap: 8px;
  }

  .table-wrap {
    display: none;
  }

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

  .feedback-mobile-card {
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: #fff;
  }

  .feedback-mobile-card strong {
    color: var(--title);
    font-size: 15px;
  }

  .feedback-mobile-card p {
    margin-top: 4px;
    color: var(--text);
    font-size: 13px;
  }

  .feedback-mobile-card .meta {
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
    background: var(--soft-surface);
  }

  .feedback-mobile-card .button {
    width: 100%;
  }

  .card-title-row {
    flex-direction: column;
    gap: 12px;
  }

  .table-count {
    width: max-content;
  }

  .footer-inner {
    min-height: 140px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-copy strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .winner-admin-result dl {
    grid-template-columns: 1fr;
  }

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

  .admin-public-link,
  .admin-logout {
    width: 100%;
  }
}
