:root {
  --cream: #f8f8f2;
  --surface: #ffffff;
  --surface-soft: #eef4ea;
  --text: #172018;
  --muted: #6f786d;
  --white: #ffffff;
  --orange: #d89a22;
  --green: #57a928;
  --green-dark: #163521;
  --green-mid: #244b31;
  --green-soft: #e8f1e4;
  --line: #dfe6dc;
  --shadow: 0 24px 70px rgba(20, 47, 30, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: Geologica, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(216, 154, 34, 0.08), transparent 24%),
    linear-gradient(90deg, var(--green-dark) 0%, var(--green-dark) 52%, var(--cream) 52%, var(--cream) 100%);
}

a {
  color: inherit;
}

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

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 620px);
  gap: 0;
  height: 100vh;
  align-items: start;
  overflow: hidden;
}

.brand-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.brand-card {
  position: relative;
  height: 100vh;
  padding: clamp(32px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 86% 5%, rgba(255, 255, 255, 0.12), transparent 27%),
    linear-gradient(155deg, #1d3f28 0%, var(--green-dark) 64%, #17331f 100%);
  background-size: 46px 46px, 46px 46px, auto, auto;
}

.brand-card::before,
.brand-card::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-card::before {
  width: 520px;
  height: 520px;
  right: -120px;
  top: -250px;
}

.brand-card::after {
  width: 260px;
  height: 260px;
  left: -100px;
  bottom: -80px;
}

.brand-logo {
  width: 120px;
  height: auto;
  margin-bottom: clamp(44px, 7vw, 64px);
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--orange);
}

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

h1 {
  max-width: 560px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 5vw, 4.35rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.home-brand-title {
  max-width: 720px;
  font-size: clamp(1.66rem, 3.4vw, 2.96rem);
  line-height: 1.13;
}

.brand-copy {
  max-width: 590px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(0.94rem, 1.15vw, 1.05rem);
  line-height: 1.65;
}

.brand-highlights {
  display: grid;
  gap: 13px;
}

.brand-highlights span {
  position: relative;
  padding-left: 38px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 700;
}

.brand-highlights span::before {
  width: 24px;
  height: 24px;
  position: absolute;
  left: 0;
  top: 50%;
  content: "✓";
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #7dbd43;
  transform: translateY(-50%);
}

.form-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100vh;
  padding: clamp(28px, 5vw, 70px) clamp(24px, 5vw, 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--cream);
}

.form-panel::-webkit-scrollbar {
  width: 10px;
}

.form-panel::-webkit-scrollbar-track {
  background: #eef3ea;
}

.form-panel::-webkit-scrollbar-thumb {
  border: 3px solid #eef3ea;
  border-radius: 999px;
  background: #abc8a0;
}

.auth-card {
  width: min(100%, 560px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-header {
  margin-bottom: 28px;
}

.accent-line {
  display: block;
  width: 58px;
  height: 5px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), #8ab945);
}

.auth-header h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(2.1rem, 3.5vw, 3.05rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.065em;
}

.auth-header p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 28px;
  padding: 6px;
  border: 1px solid #edf1e9;
  border-radius: 19px;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.tab-button {
  border: 0;
  border-radius: 15px;
  padding: 14px 16px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 650;
  transition: 180ms ease;
}

.tab-button:hover,
.tab-button:focus-visible {
  color: var(--green-dark);
  outline: none;
}

.tab-button.is-active {
  color: var(--text);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(34, 57, 39, 0.08);
}

.auth-form {
  display: none;
  gap: 18px;
}

.auth-form.is-active {
  display: grid;
}

label {
  display: grid;
  gap: 9px;
  color: #283027;
  font-size: 0.84rem;
  font-weight: 650;
}

.field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.required-mark,
.required-note span {
  color: #c74c2f;
  font-weight: 850;
}

.required-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #e4e9df;
  border-radius: 17px;
  padding: 16px 18px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green) 50%),
    linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input::placeholder,
textarea::placeholder {
  color: #8f978d;
  font-weight: 300;
}

#register-form input::placeholder,
#register-form textarea::placeholder {
  font-weight: 300;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(87, 169, 40, 0.62);
  background: var(--white);
  box-shadow: 0 0 0 5px rgba(87, 169, 40, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.full-field {
  grid-column: 1 / -1;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3d453b;
  font-size: 0.9rem;
  font-weight: 550;
}

.check-label input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.services-dropdown {
  margin: 2px 0 0;
  border: 1px solid #e1e8dc;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
}

.services-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: #283027;
  cursor: pointer;
  list-style: none;
}

.services-dropdown summary::-webkit-details-marker {
  display: none;
}

.services-dropdown summary::after {
  width: 10px;
  height: 10px;
  content: "";
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.services-dropdown[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.services-dropdown summary span {
  display: block;
  font-size: 0.84rem;
  font-weight: 650;
}

.services-dropdown summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.services-dropdown[open] {
  background: rgba(255, 255, 255, 0.54);
}

.services-dropdown[open] summary {
  border-bottom: 1px solid #e1e8dc;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  padding: 16px;
}

.services-grid .check-label {
  align-items: flex-start;
  border: 1px solid #e4e9df;
  border-radius: 14px;
  padding: 11px 12px;
  background: var(--white);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 500;
}

.terms {
  align-items: flex-start;
  line-height: 1.55;
}

.terms a {
  color: var(--green);
  font-weight: 650;
  text-decoration: none;
}

.terms a:hover,
.terms a:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
}

.text-link {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
}

.primary-button {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 16px 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), #48a51f);
  box-shadow: 0 18px 34px rgba(87, 169, 40, 0.3);
  cursor: pointer;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(87, 169, 40, 0.4);
  outline: none;
}

.secondary-button {
  width: 100%;
  border: 1px solid #dfe8da;
  border-radius: 18px;
  padding: 15px 20px;
  color: var(--green-dark);
  background: var(--white);
  cursor: pointer;
  font-weight: 650;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(87, 169, 40, 0.48);
  color: var(--green);
  transform: translateY(-1px);
  outline: none;
}

.form-message,
.form-alert,
.profile-alert {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(43, 106, 24, 0.24);
  border-left: 5px solid var(--green);
  border-radius: 18px;
  padding: 15px 17px;
  color: #244e17;
  background: linear-gradient(135deg, rgba(87, 169, 40, 0.13), rgba(255, 255, 255, 0.88));
  box-shadow: 0 16px 36px rgba(20, 33, 25, 0.08);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.55;
}

.form-message::before,
.form-alert::before,
.profile-alert::before {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  content: "✓";
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
}

.form-message {
  margin: 0;
}

.form-alert {
  margin: -8px 0 22px;
  border-color: rgba(199, 76, 47, 0.28);
  border-left-color: #c74c2f;
  color: #7a2a18;
  background: linear-gradient(135deg, rgba(199, 76, 47, 0.13), rgba(255, 255, 255, 0.9));
}

.form-alert::before {
  background: #c74c2f;
  content: "!";
}

.form-message.is-info,
.form-alert.is-info,
.profile-alert.is-info {
  border-color: rgba(42, 115, 165, 0.24);
  border-left-color: #2a73a5;
  color: #214c68;
  background: linear-gradient(135deg, rgba(42, 115, 165, 0.12), rgba(255, 255, 255, 0.9));
}

.form-message.is-info::before,
.form-alert.is-info::before,
.profile-alert.is-info::before {
  background: #2a73a5;
  content: "i";
}

.form-message.is-error,
.form-alert.is-error,
.profile-alert.is-error {
  border-color: rgba(199, 76, 47, 0.28);
  border-left-color: #c74c2f;
  color: #7a2a18;
  background: linear-gradient(135deg, rgba(199, 76, 47, 0.13), rgba(255, 255, 255, 0.9));
}

.form-message.is-error::before,
.form-alert.is-error::before,
.profile-alert.is-error::before {
  background: #c74c2f;
  content: "!";
}

.form-message[hidden],
.form-alert[hidden] {
  display: none;
}

.support-note {
  position: relative;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.support-note::before {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 26px;
  content: "";
  background: linear-gradient(90deg, transparent, #dce5d8, transparent);
}

.legal-page {
  height: auto;
  min-height: 100vh;
  overflow: auto;
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 154, 34, 0.12), transparent 26%),
    linear-gradient(135deg, #f8f8f2 0%, #eef4ea 100%);
}

.legal-hero {
  padding: clamp(32px, 7vw, 84px) clamp(20px, 6vw, 72px) clamp(28px, 5vw, 56px);
  color: var(--white);
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 255, 255, 0.13), transparent 25%),
    linear-gradient(155deg, #1d3f28 0%, var(--green-dark) 68%, #17331f 100%);
}

.legal-logo-link {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 34px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.legal-logo-link img {
  width: 70px;
  height: auto;
}

.legal-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 650;
}

.legal-kicker::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--orange);
}

.legal-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.legal-hero > p:last-child {
  max-width: 820px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.legal-container {
  width: min(100% - 40px, 980px);
  margin: -28px auto 0;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid #e1e8dc;
  border-radius: 30px 30px 0 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.legal-container section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid #e7eee3;
}

.legal-container h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.legal-container p,
.legal-container li {
  color: #4f594c;
  font-size: 0.98rem;
  font-weight: 350;
  line-height: 1.85;
}

.legal-container p {
  margin-bottom: 14px;
}

.legal-container p:last-child {
  margin-bottom: 0;
}

.legal-container ul {
  margin: 0;
  padding-left: 20px;
}

.legal-container li + li {
  margin-top: 8px;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid #e7eee3;
}

.legal-footer a {
  border: 1px solid #dfe8da;
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--green-dark);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  border-color: rgba(87, 169, 40, 0.48);
  color: var(--green);
  outline: none;
}

.dashboard-page {
  height: auto;
  min-height: 100vh;
  overflow: auto;
  background:
    radial-gradient(circle at 16% 10%, rgba(216, 154, 34, 0.14), transparent 26%),
    linear-gradient(135deg, #fbf7ed 0%, #f3f8ed 46%, #eef6e6 100%);
}

.dashboard-app {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 18px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(155deg, #111d15 0%, var(--green-dark) 100%);
  box-shadow: 12px 0 40px rgba(17, 29, 21, 0.14);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.dashboard-brand img {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  object-fit: contain;
  background: var(--white);
}

.dashboard-brand strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.dashboard-brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  font-weight: 600;
}

.dashboard-nav {
  display: grid;
  gap: 3px;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.dashboard-nav a:hover,
.dashboard-nav a:focus-visible,
.dashboard-nav a.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.dashboard-nav-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  color: rgba(255, 255, 255, 0.68);
}

.dashboard-nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.dashboard-nav a:hover .dashboard-nav-icon,
.dashboard-nav a:focus-visible .dashboard-nav-icon,
.dashboard-nav a.is-active .dashboard-nav-icon {
  color: var(--white);
}

.dashboard-member-card {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-member-card p {
  margin: 0 0 4px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

.dashboard-member-card strong {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 400;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border-radius: 999px;
  padding: 8px 10px;
  color: #c9f4ae;
  background: rgba(87, 169, 40, 0.2);
  font-size: 0.76rem;
  font-weight: 800;
}

.dashboard-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.dashboard-main {
  min-width: 0;
  padding: 28px 34px 54px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.dashboard-kicker {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 750;
}

.dashboard-topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.dashboard-topbar p:not(.dashboard-kicker) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-actions input {
  min-width: 300px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 15px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
}

.dashboard-button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), #47791f);
  box-shadow: 0 16px 34px rgba(87, 169, 40, 0.25);
}

.dashboard-button-light {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--white);
}

.dashboard-stats,
.dashboard-layout,
.dashboard-pages,
.dashboard-profile-strip {
  display: grid;
  gap: 20px;
}

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

.dashboard-stats.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stats.is-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-card,
.dashboard-page-card,
.dashboard-mini-card {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(20, 33, 25, 0.09);
}

.dashboard-card {
  padding: 22px;
}

.dashboard-stat {
  position: relative;
  overflow: hidden;
}

.dashboard-stat::after {
  width: 110px;
  height: 110px;
  position: absolute;
  right: -40px;
  top: -45px;
  content: "";
  border-radius: 50%;
  background: rgba(216, 154, 34, 0.14);
}

.dashboard-stat span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.dashboard-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.dashboard-stat small {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 750;
}

.dashboard-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  margin-top: 20px;
}

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

.dashboard-section-title h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.dashboard-section-title a {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  text-align: left;
}

.dashboard-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 550;
}

.dashboard-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.dashboard-badge.is-ok {
  color: #4f8d20;
  background: #eaf6df;
}

.dashboard-badge.is-warn {
  color: #b86b00;
  background: #fff3da;
}

.dashboard-badge.is-info {
  color: #2d62b7;
  background: #eef4ff;
}

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

.dashboard-quick a {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  color: var(--text);
  background: #f7faf3;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.dashboard-quick span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.45;
}

.dashboard-pages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.dashboard-page-card {
  padding: 18px;
}

.dashboard-page-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 14px;
  color: var(--green);
  background: #eef6e7;
  font-size: 0.78rem;
  font-weight: 850;
}

.dashboard-page-card h3,
.dashboard-mini-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.dashboard-page-card p,
.dashboard-mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 350;
  line-height: 1.58;
}

.dashboard-page-card button,
.dashboard-page-card a {
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px;
  color: var(--text);
  background: #f7faf3;
  cursor: pointer;
  display: block;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.dashboard-profile-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.portal-role-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(87, 169, 40, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.78);
}

.portal-role-panel h2 {
  margin: 14px 0 10px;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.portal-role-panel p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.portal-role-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-role-panel li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px 12px 36px;
  color: var(--text);
  background: #f7faf3;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}

.portal-role-panel li::before {
  width: 9px;
  height: 9px;
  position: absolute;
  left: 15px;
  top: 18px;
  content: "";
  border-radius: 50%;
  background: var(--green);
}

.portal-empty {
  margin: 0;
  border: 1px dashed #cfdcc8;
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
  line-height: 1.65;
}

.dashboard-mini-card {
  padding: 20px;
}

.dashboard-progress {
  height: 10px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef4e9;
}

.dashboard-progress span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--orange));
}

.dashboard-event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}

.dashboard-date {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #bc6b00;
  background: #fff3df;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
}

.dashboard-event b {
  display: block;
  font-size: 0.88rem;
  font-weight: 750;
}

.dashboard-event span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.profile-topbar {
  align-items: stretch;
}

.profile-score-card {
  min-width: 240px;
  align-self: stretch;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(20, 33, 25, 0.09);
}

.profile-score-card span {
  display: block;
  color: var(--green-dark);
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.profile-score-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.profile-alert {
  margin: 0 0 20px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
  gap: 20px;
  align-items: start;
}

.profile-form {
  display: grid;
  gap: 22px;
}

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

.profile-field-hint {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.45;
}

.newsletter-confirm-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}

.newsletter-confirm-field input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  flex: 0 0 auto;
}

.newsletter-body-field {
  display: none;
}

.newsletter-rich-editor {
  min-height: 320px;
}

.newsletter-body-field-wrap {
  display: grid;
  gap: 8px;
}

.newsletter-field-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.newsletter-recipient-stats {
  margin-bottom: 12px;
}

.newsletter-recipient-stats .dashboard-stat span,
.newsletter-recipient-stats .dashboard-stat small {
  font-weight: 600;
}

.newsletter-recipient-stats .dashboard-stat strong {
  font-weight: 700;
}

.newsletter-editor {
  display: grid;
  gap: 0;
}

.newsletter-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e4e9df;
  border-bottom: 0;
  border-radius: 17px 17px 0 0;
  background: #f7faf3;
}

.newsletter-editor-toolbar button {
  width: auto;
  border: 1px solid #d8e3d2;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.newsletter-editor-toolbar button:hover {
  border-color: rgba(87, 169, 40, 0.5);
  color: var(--green);
}

.newsletter-editor-area,
.newsletter-preview {
  display: block;
  width: 100%;
  min-height: 220px;
  border: 1px solid #e4e9df;
  border-radius: 0 0 17px 17px;
  padding: 18px;
  color: var(--text);
  background: var(--white);
  outline: none;
  line-height: 1.65;
}

.newsletter-editor-area:focus {
  border-color: rgba(87, 169, 40, 0.62);
  box-shadow: 0 0 0 5px rgba(87, 169, 40, 0.12);
}

.newsletter-editor-area:empty::before {
  content: attr(data-placeholder);
  color: #8f978d;
  font-weight: 300;
}

.newsletter-preview {
  min-height: 120px;
  border-radius: 17px;
  background: #fbfdf8;
}

.newsletter-editor-area p,
.newsletter-preview p {
  margin: 0 0 12px;
}

.newsletter-editor-area ul,
.newsletter-editor-area ol,
.newsletter-preview ul,
.newsletter-preview ol {
  margin: 0 0 12px 22px;
  padding: 0;
}

.profile-services {
  border: 1px solid #e1e8dc;
  border-radius: 22px;
  padding: 18px;
  background: rgba(247, 250, 243, 0.72);
}

.profile-services h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-actions .dashboard-button {
  width: auto;
  text-decoration: none;
}

.profile-side {
  display: grid;
  gap: 20px;
}

.profile-summary dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.profile-summary div {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.profile-summary div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-summary dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.profile-summary dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.profile-list h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.profile-list ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.profile-list a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--green-dark);
  background: #f7faf3;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.profile-list a + a {
  margin-top: 10px;
}

.subscriptions-topbar {
  align-items: stretch;
}

.subscription-due-card {
  min-width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 85% 0%, rgba(216, 154, 34, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(20, 33, 25, 0.09);
}

.subscription-due-card span {
  display: block;
  color: var(--green-dark);
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.subscription-due-card p {
  margin: 8px 0 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
}

.subscription-due-card small {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
}

.subscriptions-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 20px;
  margin-top: 20px;
}

.subscription-status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 24px;
  align-items: stretch;
  border: 1px solid rgba(87, 169, 40, 0.22);
  border-left: 7px solid var(--green);
  border-radius: 28px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(87, 169, 40, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 60px rgba(20, 33, 25, 0.09);
}

.subscription-status-panel.is-warn {
  border-color: rgba(247, 148, 29, 0.28);
  border-left-color: var(--orange);
  background:
    radial-gradient(circle at 100% 0%, rgba(247, 148, 29, 0.16), transparent 32%),
    rgba(255, 255, 255, 0.84);
}

.subscription-status-panel.is-info {
  border-color: rgba(42, 115, 165, 0.24);
  border-left-color: #2a73a5;
}

.subscription-status-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.subscription-status-main h2 {
  max-width: 820px;
  margin: 14px 0 10px;
  color: var(--text);
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.subscription-status-main p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.subscription-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.subscription-status-actions .dashboard-button {
  width: auto;
  text-decoration: none;
}

.subscription-status-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.subscription-status-facts div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(247, 250, 243, 0.8);
}

.subscription-status-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.subscription-status-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.subscription-status-facts small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0;
}

.subscription-clarity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.subscription-mini-card {
  display: grid;
  gap: 8px;
}

.subscription-mini-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.subscription-mini-card strong {
  color: var(--green-dark);
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.subscription-mini-card small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.subscription-decision-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  border-left: 6px solid var(--green);
}

.subscription-decision-card.is-warn {
  border-left-color: var(--orange);
  background:
    radial-gradient(circle at 100% 0%, rgba(247, 148, 29, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.78);
}

.subscription-decision-card.is-info {
  border-left-color: #2a73a5;
}

.subscription-decision-card h2 {
  margin: 14px 0 8px;
  color: var(--text);
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.subscription-decision-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.subscription-decision-card .certificate-gate-missing {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.02rem;
}

.subscription-decision-card .certificate-gate-missing strong {
  color: var(--orange);
}

.subscription-decision-card .dashboard-button {
  width: auto;
  flex: 0 0 auto;
  text-decoration: none;
}

.subscription-plan-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(87, 169, 40, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.78);
}

.subscription-plan-card h2,
.subscription-renewal-card h2 {
  margin: 14px 0 10px;
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.subscription-plan-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.subscription-price {
  flex: 0 0 auto;
  min-width: 140px;
  border: 1px solid #e4ecd9;
  border-radius: 22px;
  padding: 18px;
  background: #f7faf3;
  text-align: center;
}

.subscription-price strong {
  display: block;
  color: var(--green-dark);
  font-size: 2.5rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.subscription-price span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.subscription-renewal-card {
  display: grid;
  gap: 18px;
}

.subscription-renewal-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.subscriptions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.subscription-actions {
  display: grid;
  gap: 20px;
}

.subscription-invoices {
  margin-top: 20px;
}

.subscription-invoice-grid {
  display: grid;
  gap: 12px;
}

.subscription-invoice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #f7faf3;
}

.subscription-invoice strong {
  display: block;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 750;
}

.subscription-invoice span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.certificates-topbar {
  align-items: stretch;
}

.certificate-ready-card {
  min-width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 86% 0%, rgba(87, 169, 40, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(20, 33, 25, 0.09);
}

.certificate-ready-card span {
  display: block;
  color: var(--green-dark);
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.certificate-ready-card p {
  margin: 8px 0 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
}

.certificate-ready-card small {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
}

.certificates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.38fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.certificate-grid {
  display: grid;
  gap: 14px;
}

.certificate-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: #f7faf3;
}

.certificate-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #bc6b00;
  background: #fff3df;
  font-size: 0.76rem;
  font-weight: 850;
}

.certificate-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.certificate-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.certificate-side {
  display: grid;
  gap: 20px;
}

.certificate-request-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 154, 34, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.78);
}

.certificate-form {
  display: grid;
  gap: 16px;
}

.certificate-requests {
  margin-top: 20px;
}

.documents-topbar {
  align-items: stretch;
}

.document-count-card {
  min-width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 86% 0%, rgba(216, 154, 34, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(20, 33, 25, 0.09);
}

.document-count-card span {
  display: block;
  color: var(--green-dark);
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.document-count-card p {
  margin: 8px 0 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
}

.document-count-card small {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
}

.documents-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.28fr);
  gap: 16px;
  margin-top: 20px;
}

.document-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.document-category-card {
  position: relative;
  overflow: hidden;
}

.document-category-card::after {
  width: 94px;
  height: 94px;
  position: absolute;
  right: -34px;
  top: -34px;
  content: "";
  border-radius: 50%;
  background: rgba(87, 169, 40, 0.12);
}

.document-category-card span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 15px;
  color: var(--green);
  background: #eef6e7;
  font-weight: 850;
}

.document-category-card h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.document-category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.58;
}

.documents-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.document-list {
  display: grid;
  gap: 14px;
}

.document-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: #f7faf3;
}

.document-file-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #2d62b7;
  background: #eef4ff;
  font-size: 0.74rem;
  font-weight: 850;
}

.document-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.document-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.document-side {
  display: grid;
  gap: 20px;
}

.announcements-topbar {
  align-items: stretch;
}

.announcement-count-card {
  min-width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 86% 0%, rgba(87, 169, 40, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(20, 33, 25, 0.09);
}

.announcement-count-card span {
  display: block;
  color: var(--green-dark);
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.announcement-count-card p {
  margin: 8px 0 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
}

.announcement-count-card small {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
}

.announcement-featured {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 154, 34, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.78);
}

.announcement-featured h2 {
  margin: 14px 0 10px;
  color: var(--text);
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.announcement-featured p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.announcements-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 20px;
}

.announcement-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.announcement-filter button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
  color: var(--green-dark);
  background: #f7faf3;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.announcement-filter button.is-active {
  border-color: rgba(87, 169, 40, 0.38);
  color: var(--white);
  background: linear-gradient(135deg, var(--green), #47791f);
}

.announcements-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.announcement-list {
  display: grid;
  gap: 14px;
}

.announcement-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: #f7faf3;
}

.announcement-date {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #bc6b00;
  background: #fff3df;
  text-align: center;
}

.announcement-date strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1;
}

.announcement-date span {
  display: block;
  margin-top: -8px;
  font-size: 0.64rem;
  font-weight: 750;
}

.announcement-card h3 {
  margin: 10px 0 7px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.announcement-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.58;
}

.announcement-side {
  display: grid;
  gap: 20px;
}

.events-topbar {
  align-items: stretch;
}

.event-count-card {
  min-width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 86% 0%, rgba(216, 154, 34, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(20, 33, 25, 0.09);
}

.event-count-card span {
  display: block;
  color: var(--green-dark);
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.event-count-card p {
  margin: 8px 0 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
}

.event-count-card small {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
}

.event-featured {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(87, 169, 40, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.78);
}

.event-featured h2 {
  margin: 14px 0 10px;
  color: var(--text);
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.event-featured p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.event-featured-meta {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 140px;
}

.event-featured-meta span {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: #f7faf3;
}

.event-date {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #bc6b00;
  background: #fff3df;
  text-align: center;
}

.event-date strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1;
}

.event-date span {
  display: block;
  margin-top: -8px;
  font-size: 0.64rem;
  font-weight: 750;
}

.event-card h3 {
  margin: 10px 0 7px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.event-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.58;
}

.event-side {
  display: grid;
  gap: 20px;
}

.event-registration-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 154, 34, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.78);
}

.event-form {
  display: grid;
  gap: 16px;
}

.event-history {
  margin-top: 20px;
}

.support-topbar {
  align-items: stretch;
}

.support-count-card {
  min-width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 86% 0%, rgba(87, 169, 40, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(20, 33, 25, 0.09);
}

.support-count-card span {
  display: block;
  color: var(--green-dark);
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.support-count-card p {
  margin: 8px 0 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
}

.support-count-card small {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.support-form-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 154, 34, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.78);
}

.support-form {
  display: grid;
  gap: 20px;
}

.support-side {
  display: grid;
  gap: 20px;
}

.support-history {
  margin-top: 20px;
}

.support-ticket-list {
  display: grid;
  gap: 14px;
}

.support-ticket {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: #f7faf3;
}

.support-ticket-code {
  min-width: 112px;
  border-radius: 16px;
  padding: 13px 12px;
  color: #2d62b7;
  background: #eef4ff;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.support-ticket h3 {
  margin: 10px 0 7px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.support-ticket p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.58;
}

.settings-topbar {
  align-items: stretch;
}

.settings-status-card {
  min-width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 86% 0%, rgba(87, 169, 40, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(20, 33, 25, 0.09);
}

.settings-status-card span {
  display: block;
  color: var(--green-dark);
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.settings-status-card p {
  margin: 8px 0 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
}

.settings-status-card small {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.settings-form-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 154, 34, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.78);
}

.settings-form {
  display: grid;
  gap: 20px;
}

.settings-side {
  display: grid;
  gap: 20px;
}

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

.settings-security-list div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: #f7faf3;
}

.settings-security-list strong,
.settings-security-list span {
  display: block;
}

.settings-security-list strong {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 750;
}

.settings-security-list span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.settings-notifications {
  margin-top: 20px;
}

.settings-tabs {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.settings-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.settings-tab-nav label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  padding: 0 16px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 750;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

#settings-tab-email:checked ~ .settings-tab-nav label[for="settings-tab-email"],
#settings-tab-platform:checked ~ .settings-tab-nav label[for="settings-tab-platform"] {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), #47791f);
  box-shadow: 0 12px 28px rgba(87, 169, 40, 0.22);
}

.settings-tab-panel {
  display: none;
}

#settings-tab-email:checked ~ .settings-tab-email,
#settings-tab-platform:checked ~ .settings-tab-platform {
  display: block;
}

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

.settings-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  background: #f7faf3;
}

.settings-toggle input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--green);
}

.settings-toggle strong,
.settings-toggle small {
  display: block;
}

.settings-toggle strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
}

.settings-toggle small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
}

.admin-login-page {
  height: auto;
  min-height: 100vh;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 12%, rgba(216, 154, 34, 0.16), transparent 28%),
    linear-gradient(135deg, #111d15 0%, var(--green-dark) 52%, #f8f8f2 52%, #eef4ea 100%);
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  width: min(100%, 460px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 44px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.admin-login-card img {
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 28px rgba(20, 47, 30, 0.16);
}

.admin-login-card h1 {
  margin: 12px 0;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.07em;
}

.admin-login-card > p:not(.dashboard-kicker) {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.65;
}

.admin-login-form {
  display: grid;
  gap: 18px;
}

.admin-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.admin-empty {
  border: 1px dashed #cfdcc8;
  border-radius: 20px;
  padding: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.admin-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 750;
}

.admin-empty p {
  margin: 0;
  line-height: 1.65;
}

.dashboard-table small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 350;
}

.admin-content-grid {
  margin-top: 0;
}

.admin-content-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.admin-content-form {
  display: grid;
  gap: 16px;
}

.admin-content-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-content-publish {
  align-self: end;
  min-height: 52px;
}

.admin-settings-form {
  display: grid;
  gap: 16px;
}

.admin-settings-form input:disabled,
.admin-settings-form select:disabled {
  color: #667164;
  background: #f7faf3;
  cursor: not-allowed;
}

.admin-checklist {
  display: grid;
  gap: 12px;
}

.admin-checklist span {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--text);
  background: #f7faf3;
  font-size: 0.9rem;
  font-weight: 550;
}

.admin-checklist i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.admin-checklist .is-pending i {
  background: var(--orange);
}

@media (max-width: 980px) {
  html,
  body {
    height: auto;
    overflow: auto;
    background: var(--cream);
  }

  .auth-shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .brand-panel {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .brand-card {
    height: auto;
  }

  .form-panel {
    height: auto;
    overflow: visible;
  }

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

  .dashboard-sidebar {
    position: relative;
    height: auto;
  }

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

  .dashboard-topbar,
  .dashboard-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-actions,
  .dashboard-actions input,
  .dashboard-button {
    width: 100%;
  }

  .dashboard-stats,
  .dashboard-stats.is-five,
  .dashboard-pages,
  .dashboard-profile-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .portal-role-panel {
    grid-template-columns: 1fr;
  }

  .profile-layout,
  .subscription-status-panel,
  .subscription-clarity-grid,
  .subscriptions-hero,
  .subscriptions-layout,
  .certificates-layout,
  .documents-toolbar,
  .document-categories,
  .documents-layout,
  .announcements-toolbar,
  .announcements-layout,
  .events-layout,
  .support-layout,
  .settings-layout,
  .admin-content-layout {
    grid-template-columns: 1fr;
  }

  .profile-score-card,
  .subscription-due-card,
  .certificate-ready-card,
  .document-count-card,
  .announcement-count-card,
  .event-count-card,
  .support-count-card,
  .settings-status-card {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .brand-card,
  .form-panel {
    padding: 28px 20px;
  }

  .brand-logo {
    width: 104px;
    margin-bottom: 34px;
  }

  .form-grid,
  .profile-form-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-main {
    padding: 22px 16px 40px;
  }

  .dashboard-nav,
  .dashboard-stats,
  .dashboard-stats.is-five,
  .dashboard-pages,
  .dashboard-profile-strip,
  .subscription-status-panel,
  .subscription-clarity-grid,
  .dashboard-quick {
    grid-template-columns: 1fr;
  }

  .settings-toggle-grid {
    grid-template-columns: 1fr;
  }

  .profile-services {
    padding: 14px;
  }

  .profile-actions .dashboard-button {
    width: 100%;
  }

  .subscription-plan-card,
  .subscription-invoice,
  .announcement-featured,
  .event-featured {
    align-items: stretch;
    flex-direction: column;
  }

  .subscription-price {
    width: 100%;
  }

  .subscription-invoice .dashboard-button {
    width: 100%;
  }

  .certificate-card,
  .document-card,
  .announcement-card,
  .event-card,
  .support-ticket {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .certificate-icon,
  .document-file-icon,
  .announcement-date,
  .event-date,
  .support-ticket-code {
    width: 100%;
  }

  .certificate-card .dashboard-button,
  .document-card .dashboard-button,
  .announcement-card .dashboard-button,
  .event-card .dashboard-button,
  .support-ticket .dashboard-button {
    width: 100%;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .dashboard-app {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
  }

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

  .dashboard-stats,
  .dashboard-stats.is-five,
  .dashboard-pages,
  .dashboard-profile-strip,
  .subscription-clarity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.registration-row {
  cursor: pointer;
}

.registration-row:hover td {
  background: rgba(87, 169, 40, 0.06);
}

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

.registration-detail-grid article {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.registration-detail-grid article.full-field {
  grid-column: 1 / -1;
}

.registration-detail-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.registration-detail-grid strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.registration-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.registration-action-form {
  display: grid;
  gap: 12px;
}

.registration-action-form textarea {
  min-height: 96px;
}

@media (max-width: 900px) {
  .registration-detail-grid,
  .registration-actions {
    grid-template-columns: 1fr;
  }
}

.event-admin-toolbar,
.event-admin-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.event-admin-bulk-actions {
  margin: 0 0 20px;
}

.event-admin-bulk-form {
  margin: 0;
}

.event-admin-edit {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.event-admin-edit summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 12px;
}

.event-admin-edit-form {
  margin-top: 12px;
}

.event-admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.event-admin-inline-form select {
  min-width: 160px;
}

.event-admin-actions-cell {
  min-width: 280px;
}

.event-inline-form {
  margin: 0;
}

.event-archive .event-card-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.event-archive-status {
  flex-shrink: 0;
}

.event-card-has-qr {
  flex-wrap: wrap;
}

.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.event-checkin-qr {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle, #e8ecf0);
}

.event-checkin-qr p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted, #5a6570);
}

.event-feedback-section .event-feedback-form {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle, #e8ecf0);
}

.event-feedback-section .event-feedback-form:last-child {
  border-bottom: none;
}

.event-checkin-panel {
  max-width: 640px;
}

.event-checkin-form label {
  display: block;
  margin-bottom: 16px;
}

.event-checkin-form input[type="text"] {
  width: 100%;
  margin-top: 6px;
}

.event-checkin-preview {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle, #e8ecf0);
}

.event-checkin-details {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.event-checkin-details li {
  margin-bottom: 8px;
}

.event-admin-extra-stats {
  margin-top: 12px;
}

.event-admin-waitlist-promote {
  margin: 0;
}

.event-admin-feedback {
  margin-top: 24px;
}

.events-topbar {
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .dashboard-stats.is-four,
  .dashboard-stats.is-five {
    grid-template-columns: 1fr 1fr;
  }

  .event-archive .event-card-compact {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-checkin-qr {
    flex-direction: column;
    align-items: flex-start;
  }
}
