:root {
  --forest: #12372a;
  --forest-deep: #09261d;
  --sage: #dce9df;
  --lime: #cbe86b;
  --cream: #f6f2e8;
  --paper: #fffdf8;
  --ink: #17231e;
  --muted: #66736d;
  --line: #dfe5e1;
  --bad: #d7604e;
  --good: #e3a72f;
  --great: #2f9470;
  --shadow: 0 24px 70px rgba(20, 48, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.eyebrow,
.step-label,
.panel-kicker {
  margin: 0 0 7px;
  color: var(--great);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px 15px 15px 4px;
  color: white;
  background: var(--forest);
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  transform: rotate(-3deg);
}

.brand-mark span {
  transform: rotate(3deg);
}

.public-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(203, 232, 107, 0.24), transparent 26rem),
    radial-gradient(circle at 95% 90%, rgba(47, 148, 112, 0.13), transparent 29rem),
    var(--cream);
}

.public-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(#789082 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  content: "";
}

.kiosk-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 30px;
}

.kiosk-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 6px 20px;
  animation: rise-in 0.55s ease-out both;
}

.kiosk-header h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.72rem);
  letter-spacing: -0.04em;
}

.question-progress {
  display: flex;
  max-width: 260px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  margin-left: auto;
}

.question-progress span {
  width: 30px;
  height: 5px;
  border-radius: 10px;
  background: #d4dcd7;
  transition: 180ms ease;
}

.question-progress span.complete {
  background: var(--great);
  transform: scaleY(1.35);
}

.evaluation-card {
  overflow: hidden;
  border: 1px solid rgba(18, 55, 42, 0.09);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
  animation: rise-in 0.6s 0.08s ease-out both;
}

.form-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.form-intro h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.form-intro > p {
  max-width: 190px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.questions {
  padding: 4px 28px 0;
}

.rating-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(430px, 1.3fr);
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.rating-row legend {
  display: contents;
}

.rating-row legend strong,
.rating-row legend span {
  grid-column: 1;
}

.rating-row legend strong {
  align-self: end;
  font-family: "Manrope", sans-serif;
  font-size: 1.06rem;
}

.rating-row legend > span {
  align-self: start;
  margin-top: 25px;
  color: var(--muted);
  font-size: 0.78rem;
}

.rating-options {
  display: grid;
  grid-row: 1 / span 2;
  grid-column: 2;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rating-option {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #4f5c56;
  background: #fbfcfa;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms, background 160ms, color 160ms, transform 160ms;
}

.rating-option:hover {
  transform: translateY(-2px);
  border-color: #aebbb4;
}

.rating-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-option .emoji {
  font-size: 1.72rem;
  filter: saturate(0.8);
  transition: transform 180ms;
}

.rating-option:has(input:checked) {
  color: var(--forest-deep);
  border-width: 2px;
  transform: translateY(-2px);
}

.rating-option:has(input:checked) .emoji {
  transform: scale(1.18) rotate(-4deg);
  filter: saturate(1.1);
}

.rating-bad:has(input:checked) {
  border-color: var(--bad);
  background: #fff0ed;
}

.rating-good:has(input:checked) {
  border-color: var(--good);
  background: #fff7df;
}

.rating-great:has(input:checked) {
  border-color: var(--great);
  background: #eaf7f0;
}

.optional-section {
  padding: 18px 28px 19px;
  background: #f1f6f2;
  transition: opacity 180ms;
}

.optional-section[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.optional-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.optional-heading h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.optional-badge {
  padding: 5px 10px;
  border: 1px solid #c7d7cd;
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.optional-fields {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 12px;
}

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

.field > span {
  color: #4e5e56;
  font-size: 0.78rem;
  font-weight: 700;
}

.field input,
.field textarea,
.filter-bar input,
.filter-bar select {
  width: 100%;
  outline: none;
  border: 1px solid #d2ddd7;
  border-radius: 12px;
  background: white;
  transition: border 160ms, box-shadow 160ms;
}

.field input,
.field textarea {
  padding: 12px 14px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--great);
  box-shadow: 0 0 0 3px rgba(47, 148, 112, 0.12);
}

.form-actions {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 12px 28px;
  border-top: 1px solid var(--line);
}

.form-status {
  margin: 0 auto 0 0;
  color: var(--bad);
  font-size: 0.82rem;
}

.primary-button {
  display: flex;
  min-width: 220px;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 19px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--forest);
  box-shadow: 0 10px 24px rgba(18, 55, 42, 0.2);
  font-weight: 800;
  transition: transform 160ms, opacity 160ms, background 160ms;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #194b39;
}

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

.primary-button.loading span:first-child {
  font-size: 0;
}

.primary-button.loading span:first-child::after {
  font-size: 0.85rem;
  content: "Enviando...";
}

.thank-you {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 16px;
  opacity: 0;
  color: white;
  background: rgba(9, 38, 29, 0.96);
  transition: opacity 180ms;
}

.thank-you[hidden] {
  display: none;
}

.thank-you.visible {
  opacity: 1;
}

.thank-you-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: var(--lime);
  font-size: 2.2rem;
  font-weight: 800;
  transform: scale(0.7);
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.thank-you.visible .thank-you-icon {
  transform: scale(1);
}

.thank-you strong {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
}

.inactive-shell {
  display: grid;
  min-height: 100vh;
  width: min(560px, calc(100% - 40px));
  margin: auto;
  place-content: center;
  text-align: center;
}

.inactive-shell .brand-mark {
  margin: 0 auto 20px;
}

.inactive-shell h1 {
  margin: 0 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: 2.2rem;
}

.inactive-shell > p:last-child {
  color: var(--muted);
}

/* Login */
.login-page {
  background: var(--paper);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.1fr) minmax(440px, 0.9fr);
}

.login-story {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(35px, 6vw, 80px);
  color: white;
  background:
    radial-gradient(circle at 82% 22%, rgba(203, 232, 107, 0.19), transparent 17rem),
    linear-gradient(145deg, var(--forest) 0%, var(--forest-deep) 100%);
}

.login-story::after {
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  bottom: -150px;
  border: 70px solid rgba(203, 232, 107, 0.08);
  border-radius: 50%;
  content: "";
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.brand-mark-light {
  color: var(--forest);
  background: var(--lime);
}

.eyebrow-light {
  color: var(--lime);
}

.login-story h1 {
  margin: 0 0 20px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.login-story > div > p:last-child {
  max-width: 570px;
  color: #bfd0c7;
  font-size: 1.05rem;
  line-height: 1.7;
}

.login-shifts {
  display: flex;
  gap: 10px;
}

.login-shifts span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: #d7e3dd;
  font-size: 0.74rem;
  font-weight: 700;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 35px;
}

.login-form {
  display: grid;
  width: min(400px, 100%);
  gap: 20px;
}

.login-form h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 2.2rem;
  letter-spacing: -0.045em;
}

.login-form > div > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.login-form .field input {
  min-height: 53px;
  background: #f9faf8;
}

.primary-button-wide {
  width: 100%;
}

.alert-error {
  padding: 12px 14px;
  border: 1px solid #f1c4bd;
  border-radius: 12px;
  color: #8c3327;
  background: #fff0ed;
  font-size: 0.85rem;
}

.security-note {
  margin: -4px 0 0;
  color: #84908a;
  font-size: 0.74rem;
  text-align: center;
}

/* Dashboard */
.dashboard-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 248px minmax(0, 1fr);
  background: #f4f5f1;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 24px 18px;
  color: white;
  background: var(--forest-deep);
}

.sidebar-brand {
  padding: 0 10px 25px;
}

.sidebar-brand > div:last-child {
  display: grid;
  line-height: 1.05;
}

.sidebar-brand small {
  color: #96aaa0;
  font-family: "DM Sans", sans-serif;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-nav {
  display: grid;
  gap: 5px;
}

.store-nav p {
  margin: 18px 12px 5px;
  color: #71877d;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.store-nav a {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: 11px;
  color: #bdcbc4;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: 150ms;
}

.store-nav a:hover,
.store-nav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.09);
}

.store-nav a.active {
  box-shadow: inset 3px 0 var(--lime);
}

.nav-icon {
  width: 14px;
  color: var(--lime);
  font-size: 1.1rem;
}

.store-dot {
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-radius: 50%;
}

.store-dot.online {
  background: #77c895;
  box-shadow: 0 0 0 4px rgba(119, 200, 149, 0.1);
}

.store-dot.offline {
  background: #809087;
}

.logout-form {
  margin-top: 10px;
}

.logout-form button {
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #aebeb6;
  background: transparent;
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 13px 10px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.account-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--forest);
  background: var(--lime);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.sidebar-account > div:last-child {
  display: grid;
  min-width: 0;
}

.sidebar-account strong {
  overflow: hidden;
  color: #eef4f0;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account span {
  color: #82988d;
  font-size: 0.6rem;
}

.dashboard-main {
  width: 100%;
  max-width: 1600px;
  padding: 32px clamp(24px, 4vw, 58px) 60px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dashboard-header h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.06em;
}

.dashboard-header > div > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.export-button {
  padding: 11px 16px;
  border: 1px solid #cbd5cf;
  border-radius: 11px;
  color: var(--forest);
  background: white;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1fr 1fr auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 20px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.filter-bar label {
  display: grid;
  gap: 5px;
}

.filter-bar label > span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select,
.filter-bar button {
  min-height: 39px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.filter-bar button {
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--forest);
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.metric-card {
  position: relative;
  display: grid;
  min-height: 142px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.metric-card > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.metric-card strong {
  align-self: center;
  font-family: "Manrope", sans-serif;
  font-size: 2.25rem;
  letter-spacing: -0.06em;
}

.metric-card small {
  align-self: end;
  color: #8a958f;
  font-size: 0.67rem;
}

.metric-primary {
  color: white;
  border-color: var(--forest);
  background:
    radial-gradient(circle at 100% 0, rgba(203,232,107,.22), transparent 9rem),
    var(--forest);
}

.metric-primary > span,
.metric-primary small {
  color: #bfd0c7;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.panel-note {
  color: #89958f;
  font-size: 0.65rem;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.category-card {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: #f5f7f3;
}

.category-card > div:first-child {
  display: grid;
  gap: 9px;
}

.category-card span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.category-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
}

.category-card strong small {
  color: #839089;
  font-size: 0.65rem;
}

.ring {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--great) calc(var(--value) * 1%), #dce4df 0);
}

.ring::before {
  grid-area: 1 / 1;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #f5f7f3;
  content: "";
}

.ring span {
  z-index: 1;
  grid-area: 1 / 1;
  color: var(--forest);
  font-size: 0.62rem;
  font-weight: 800;
}

.bar-list {
  display: grid;
  gap: 15px;
}

.bar-item > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.72rem;
}

.track {
  overflow: hidden;
  height: 7px;
  border-radius: 20px;
  background: #e8ece9;
}

.track span {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: inherit;
  background: var(--great);
}

.bar-item small {
  color: #98a19d;
  font-size: 0.58rem;
}

.stores-panel,
.observations-panel {
  margin-bottom: 14px;
}

.store-table-head,
.store-table-row {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 0.7fr);
  align-items: center;
  gap: 12px;
}

.store-table-head {
  padding: 0 12px 9px;
  color: #8a9690;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-table-row {
  min-height: 54px;
  padding: 7px 12px;
  border-top: 1px solid #edf0ee;
  font-size: 0.75rem;
}

.store-table-row > a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.status-pill {
  min-width: 68px;
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
}

.status-pill.active {
  color: #226b51;
  background: #dff1e7;
}

.status-pill.inactive {
  color: #6e7772;
  background: #e8ece9;
}

.distributions-grid {
  grid-template-columns: repeat(3, 1fr);
}

.distribution-bars {
  display: grid;
  gap: 13px;
}

.distribution-bars > div {
  display: grid;
  grid-template-columns: 75px 1fr 25px;
  align-items: center;
  gap: 9px;
  font-size: 0.66rem;
}

.distribution-bars strong {
  text-align: right;
}

.rating-1 span {
  background: var(--bad);
}

.rating-2 span {
  background: var(--good);
}

.rating-3 span {
  background: var(--great);
}

.observation-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.observation-list article {
  padding: 14px;
  border: 1px solid #e5e9e6;
  border-radius: 13px;
  background: #fafbf9;
}

.observation-list header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.observation-list header strong {
  color: var(--forest);
  font-size: 0.72rem;
}

.observation-list header span {
  color: #8b9690;
  font-size: 0.6rem;
}

.observation-list p {
  margin: 0;
  color: #4f5c56;
  font-size: 0.78rem;
  line-height: 1.55;
}

.contact-chip {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #25664f;
  background: #e3f2e9;
  font-size: 0.65rem;
  font-weight: 700;
}

.empty-state {
  display: grid;
  min-height: 170px;
  place-content: center;
  place-items: center;
  color: #87938d;
  text-align: center;
}

.empty-state > span {
  color: var(--great);
  font-size: 1.8rem;
}

.empty-state strong {
  margin-top: 8px;
  color: #506059;
}

.empty-state p {
  margin: 4px 0 0;
  font-size: 0.75rem;
}

/* Settings */
.settings-main {
  max-width: 1500px;
}

.settings-header {
  margin-bottom: 18px;
}

.settings-summary {
  display: flex;
  gap: 8px;
}

.settings-summary span {
  display: grid;
  min-width: 100px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: white;
  font-size: 0.65rem;
}

.settings-summary strong {
  color: var(--forest);
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
}

.settings-notice,
.dashboard-alert {
  margin-bottom: 14px;
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.settings-notice.success {
  border: 1px solid #b9dec8;
  color: #25664f;
  background: #e8f5ed;
}

.settings-notice.error {
  border: 1px solid #f1c4bd;
  color: #8c3327;
  background: #fff0ed;
}

.settings-tabs {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.settings-tabs a {
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  text-decoration: none;
}

.settings-tabs a:hover {
  color: var(--forest);
  background: #eef3ef;
}

.settings-section {
  margin-bottom: 14px;
  padding: 22px;
  scroll-margin-top: 72px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: white;
}

.settings-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.settings-section-heading h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
}

.settings-section-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.create-drawer {
  margin-bottom: 12px;
  border: 1px dashed #b9c8c0;
  border-radius: 14px;
  background: #f7faf7;
}

.create-drawer > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.create-drawer > summary::-webkit-details-marker,
.settings-item > summary::-webkit-details-marker {
  display: none;
}

.create-drawer > summary strong {
  font-size: 1.3rem;
  transition: transform 160ms;
}

.create-drawer[open] > summary strong {
  transform: rotate(45deg);
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.settings-form .field input,
.settings-form .field select,
.settings-row-form .field input,
.store-setting-card .field input {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  outline: none;
  border: 1px solid #d2ddd7;
  border-radius: 10px;
  background: white;
}

.settings-form .field select {
  appearance: none;
}

.permission-picker {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.permission-picker legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
}

.permission-picker label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 8px;
  background: #f5f7f4;
  font-size: 0.7rem;
  font-weight: 700;
}

.permission-picker input,
.switch-field input {
  accent-color: var(--great);
}

.settings-save,
.compact-save {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--forest);
  font-size: 0.72rem;
  font-weight: 800;
}

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

.settings-item {
  border: 1px solid #e2e8e4;
  border-radius: 13px;
  background: #fbfcfa;
}

details.settings-item > summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px;
  cursor: pointer;
  list-style: none;
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-identity > div {
  display: grid;
}

.user-identity strong {
  font-size: 0.78rem;
}

.user-identity small {
  color: var(--muted);
  font-size: 0.62rem;
}

.settings-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: #52625a;
  background: #e8eeea;
  font-size: 0.61rem;
  font-weight: 800;
}

.edit-form {
  background: #f5f8f5;
}

.inline-danger-form {
  padding: 0 16px 14px;
  background: #f5f8f5;
}

.inline-danger-form button {
  padding: 7px 10px;
  border: 1px solid #e9b9b1;
  border-radius: 8px;
  color: #9b3e31;
  background: #fff5f3;
  font-size: 0.65rem;
  font-weight: 800;
}

.question-form .wide-field {
  grid-column: span 2;
}

.switch-field {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  color: #506059;
  font-size: 0.68rem;
  font-weight: 700;
}

.settings-row-form {
  display: grid;
  grid-template-columns: 34px 1fr 1.4fr 72px 160px 64px;
  align-items: end;
  gap: 10px;
  padding: 11px;
}

.position-number {
  display: grid;
  width: 29px;
  height: 29px;
  align-self: center;
  place-items: center;
  border-radius: 8px;
  color: var(--forest);
  background: var(--sage);
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
}

.position-field input {
  text-align: center;
}

.question-switches {
  display: grid;
  gap: 1px;
}

.question-switches .switch-field {
  min-height: 25px;
}

.compact-save {
  min-height: 38px;
}

.store-settings-grid {
  grid-template-columns: repeat(2, 1fr);
}

.store-setting-card {
  display: grid;
  gap: 13px;
  padding: 15px;
}

.store-setting-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-setting-top code {
  color: var(--muted);
  font-size: 0.67rem;
}

.audit-list {
  display: grid;
}

.audit-list > div {
  display: grid;
  min-height: 46px;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0ee;
}

.audit-list > div:last-child {
  border-bottom: 0;
}

.audit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--great);
  box-shadow: 0 0 0 4px rgba(47, 148, 112, 0.1);
}

.audit-list p {
  margin: 0;
  color: #4f5d56;
  font-size: 0.71rem;
}

.audit-list time {
  color: #929d97;
  font-size: 0.61rem;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .rating-row {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .rating-row legend strong,
  .rating-row legend span {
    grid-column: 1;
  }

  .rating-row legend > span {
    margin-top: 0;
  }

  .rating-options {
    grid-row: auto;
    grid-column: 1;
  }

  .dashboard-page {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .sidebar {
    padding: 20px 10px;
  }

  .sidebar-brand {
    justify-content: center;
    padding: 0 0 20px;
  }

  .sidebar-brand > div:last-child,
  .store-nav p,
  .store-nav a span:last-child,
  .logout-form {
    display: none;
  }

  .store-nav a {
    justify-content: center;
  }

  .filter-bar {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .dashboard-grid,
  .distributions-grid {
    grid-template-columns: 1fr;
  }

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

  .settings-row-form {
    grid-template-columns: 34px 1fr 1fr 64px;
  }

  .settings-row-form .description-field {
    grid-column: 2 / 4;
  }

  .question-switches {
    grid-column: 2 / 4;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .kiosk-shell {
    width: min(100% - 20px, 620px);
    padding-top: 12px;
  }

  .kiosk-header {
    padding-bottom: 12px;
  }

  .form-intro {
    align-items: start;
    padding: 20px;
  }

  .form-intro > p {
    display: none;
  }

  .questions {
    padding: 2px 20px 0;
  }

  .rating-row {
    padding: 14px 0;
  }

  .rating-option {
    min-height: 72px;
    flex-direction: column;
    gap: 2px;
    font-size: 0.76rem;
  }

  .optional-section {
    padding: 16px 20px;
  }

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

  .form-actions {
    padding: 12px 20px;
  }

  .primary-button {
    width: 100%;
  }

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

  .login-story {
    min-height: 300px;
    padding: 28px;
  }

  .login-story h1 {
    font-size: 3.2rem;
  }

  .login-shifts {
    display: none;
  }

  .login-panel {
    padding: 45px 25px;
  }

  .dashboard-page {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 10px;
  }

  .sidebar-brand {
    display: none;
  }

  .store-nav {
    display: flex;
  }

  .store-nav a {
    min-width: 42px;
  }

  .dashboard-main {
    padding: 24px 14px 45px;
  }

  .dashboard-header {
    align-items: start;
  }

  .export-button {
    white-space: nowrap;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .category-cards {
    grid-template-columns: 1fr;
  }

  .store-table {
    overflow-x: auto;
  }

  .store-table-head,
  .store-table-row {
    min-width: 670px;
  }

  .observation-list {
    grid-template-columns: 1fr;
  }

  .sidebar-account {
    display: none;
  }

  .settings-header {
    display: grid;
    gap: 15px;
  }

  .settings-summary {
    justify-self: start;
  }

  .settings-tabs {
    overflow-x: auto;
  }

  .settings-section {
    padding: 16px;
  }

  .settings-section-heading {
    display: grid;
  }

  .settings-section-heading > p {
    text-align: left;
  }

  .settings-form,
  .store-settings-grid {
    grid-template-columns: 1fr;
  }

  .question-form .wide-field {
    grid-column: auto;
  }

  .permission-picker {
    grid-template-columns: repeat(2, 1fr);
  }

  .settings-row-form {
    grid-template-columns: 30px 1fr;
  }

  .settings-row-form .description-field,
  .settings-row-form .position-field,
  .settings-row-form .question-switches,
  .settings-row-form .compact-save {
    grid-column: 2;
  }

  .audit-list > div {
    grid-template-columns: 12px 1fr;
    padding: 8px 0;
  }

  .audit-list time {
    grid-column: 2;
  }
}

@media (max-width: 460px) {
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .question-progress span {
    width: 18px;
  }

  .form-intro h2 {
    font-size: 1.45rem;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
