:root {
  --bg: #f4efe7;
  --panel: rgba(255, 252, 247, 0.82);
  --panel-strong: #fffaf2;
  --text: #1f1a17;
  --muted: #6b5d54;
  --line: rgba(87, 70, 57, 0.18);
  --accent: #b55233;
  --accent-deep: #8e3c21;
  --accent-soft: #f6d7cb;
  --shadow: 0 24px 60px rgba(55, 35, 21, 0.12);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-brand: "Sora", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-display: "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --green-strong: #9dec72;
  --green-soft: #d7f7c0;
  --green-deep: #0e2611;
  --green-panel: rgba(11, 31, 14, 0.88);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(181, 82, 51, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(27, 117, 94, 0.14), transparent 24%),
    linear-gradient(135deg, #f6f0e7 0%, #efe3d3 48%, #f9f6f0 100%);
}

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

.landing-body,
.app-body {
  min-height: 100vh;
}

.landing-body {
  background:
    radial-gradient(circle at top right, rgba(157, 236, 114, 0.22), transparent 22%),
    radial-gradient(circle at left center, rgba(102, 204, 130, 0.12), transparent 24%),
    linear-gradient(160deg, #041106 0%, #071509 52%, #0b180d 100%);
  color: #f4fff0;
}

.landing-shell,
.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.landing-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.hero-panel,
.info-panel,
.card,
.status-banner {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.landing-hero {
  width: 100%;
  padding: 40px 0;
}

.landing-hero .eyebrow {
  color: var(--green-strong);
}

.landing-hero h1 {
  max-width: 12ch;
  margin-top: 18px;
  color: #f5fff1;
  font-family: var(--font-brand);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.landing-hero .hero-copy {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(232, 245, 228, 0.76);
}

.landing-hero-centered {
  width: min(860px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.landing-subtitle {
  margin: 0;
  color: rgba(232, 245, 228, 0.74);
  font-size: 1rem;
  line-height: 1.6;
}

.landing-notice {
  width: min(720px, 100%);
  margin: 8px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(157, 236, 114, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 245, 228, 0.8);
  font-size: 0.92rem;
  line-height: 1.6;
}

.landing-button-group {
  width: min(720px, 100%);
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.landing-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 0 24px;
  border-radius: 24px;
  border: 1px solid rgba(157, 236, 114, 0.16);
  background: linear-gradient(180deg, rgba(18, 40, 20, 0.92) 0%, rgba(9, 24, 11, 0.92) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  color: #f4fff0;
  font-family: var(--font-brand);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.landing-button:hover {
  transform: translateY(-2px);
  border-color: rgba(157, 236, 114, 0.3);
}

.landing-button-primary {
  color: #081108;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 32%),
    linear-gradient(180deg, #b3f47e 0%, #98ea68 100%);
}

.access-card {
  min-height: 250px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(157, 236, 114, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 40, 20, 0.92) 0%, rgba(9, 24, 11, 0.92) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.access-card:hover {
  transform: translateY(-3px);
  border-color: rgba(157, 236, 114, 0.3);
}

.access-card strong {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f4fff0;
}

.access-card p {
  margin: 0;
  color: rgba(232, 245, 228, 0.72);
  line-height: 1.6;
}

.access-card-primary {
  background:
    radial-gradient(circle at top right, rgba(157, 236, 114, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(17, 48, 19, 0.96) 0%, rgba(9, 30, 11, 0.96) 100%);
}

.access-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(157, 236, 114, 0.14);
  color: var(--green-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel {
  align-self: center;
  padding: 48px;
  border-radius: var(--radius-xl);
}

.info-panel {
  display: grid;
  gap: 16px;
  align-self: center;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.info-card,
.status-banner {
  background: var(--panel-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.info-label,
.eyebrow {
  display: inline-block;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 14px;
  font-size: clamp(2.5rem, 4vw, 4.6rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.hero-copy,
.section-copy,
.card-head p,
.info-card strong,
#pagination-label,
label span,
th,
td,
code,
button,
input {
  font-family: var(--font-body);
}

.hero-copy,
.section-copy,
.card-head p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions,
.header-actions,
.inline-actions,
.pagination-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.primary-link,
.secondary-link,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.primary-link,
.primary-button {
  background: var(--accent);
  color: #fff7f2;
}

.secondary-link,
.ghost-button {
  background: rgba(255, 250, 242, 0.8);
  border-color: rgba(181, 82, 51, 0.22);
  color: var(--accent-deep);
}

.primary-link:hover,
.secondary-link:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.app-header-dashboard {
  align-items: center;
  margin-bottom: 24px;
}

.app-shell-dashboard .section-copy {
  max-width: 560px;
}

.status-banner {
  display: none;
  margin-bottom: 20px;
}

.status-banner.is-visible {
  display: block;
}

.status-banner.is-success {
  border-color: rgba(27, 117, 94, 0.28);
  color: #0f5f4a;
}

.status-banner.is-error {
  border-color: rgba(181, 82, 51, 0.28);
  color: #8e3c21;
}

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

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

.summary-card {
  border: 1px solid rgba(157, 236, 114, 0.16);
  border-radius: 24px;
  padding: 22px 24px;
  background:
    linear-gradient(180deg, rgba(17, 38, 19, 0.94) 0%, rgba(10, 25, 12, 0.94) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.summary-label {
  display: block;
  color: rgba(232, 245, 228, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 10px;
  color: #f4fff0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

.action-bar {
  margin-bottom: 20px;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.action-buttons .landing-button {
  min-height: 64px;
  font-size: 1.02rem;
}

.action-buttons .landing-button.is-selected {
  color: #081108;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 32%),
    linear-gradient(180deg, #b3f47e 0%, #98ea68 100%);
}

.action-panels {
  margin-top: 18px;
}

.action-panel {
  border: 1px solid rgba(157, 236, 114, 0.12);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 252, 247, 0.82);
}

.compact-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.compact-form .inline-actions {
  align-items: end;
}

.compact-form label:first-child {
  grid-column: span 1;
}

.compact-form label {
  min-width: 0;
}

.card {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.card-head {
  margin-bottom: 18px;
}

.card-head-inline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

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

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.9rem;
  font-weight: 700;
}

input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 0.98rem;
}

input:focus {
  outline: 2px solid rgba(181, 82, 51, 0.18);
  border-color: rgba(181, 82, 51, 0.45);
}

.input-error {
  border-color: rgba(255, 255, 255, 0.42) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.field-error {
  display: block;
  min-height: 18px;
  color: #f4fff0;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 6px;
}

.list-card {
  margin-bottom: 20px;
}

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

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

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

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  font-size: 0.95rem;
}

.table-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 26, 23, 0.12);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-weight: 700;
}

.table-button.delete {
  color: var(--accent-deep);
  border-color: rgba(181, 82, 51, 0.2);
}

.code-preview {
  overflow-x: auto;
  margin: 16px 0 0;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: #201a18;
  color: #f4efe7;
  font-size: 0.88rem;
  line-height: 1.5;
}

.app-body {
  background:
    radial-gradient(circle at top right, rgba(157, 236, 114, 0.22), transparent 22%),
    radial-gradient(circle at left center, rgba(102, 204, 130, 0.12), transparent 24%),
    linear-gradient(160deg, #041106 0%, #071509 52%, #0b180d 100%);
  color: #f4fff0;
}

.app-shell-dashboard {
  width: min(1280px, calc(100% - 48px));
  padding-top: 44px;
}

.app-shell-dashboard .eyebrow {
  color: var(--green-strong);
}

.app-shell-dashboard h1 {
  max-width: none;
  color: #f5fff1;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.92;
}

.app-shell-dashboard .section-copy {
  color: rgba(232, 245, 228, 0.76);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #b6f47e 0%, #9ae866 100%);
  color: #122313;
  border-color: rgba(146, 216, 96, 0.18);
  box-shadow: 0 16px 30px rgba(131, 202, 88, 0.22);
}

.btn-secondary {
  background: transparent;
  color: #edf6e8;
  border-color: rgba(157, 236, 114, 0.28);
  box-shadow: none;
}

.btn-pagination {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
}

.btn-submit {
  width: 100%;
}

.summary-grid {
  margin-top: 10px;
  margin-bottom: 26px;
}

.summary-card {
  border: 1px solid rgba(157, 236, 114, 0.12);
  border-radius: 18px;
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(17, 38, 19, 0.94) 0%, rgba(10, 25, 12, 0.94) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.summary-card-emphasis {
  background:
    radial-gradient(circle at top right, rgba(157, 236, 114, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(17, 48, 19, 0.96) 0%, rgba(9, 30, 11, 0.96) 100%);
}

.summary-label {
  color: rgba(228, 244, 216, 0.68);
}

.summary-card strong {
  color: #f4fff0;
  font-size: clamp(2.1rem, 3.1vw, 3rem);
}

.action-bar.card,
.list-card.card {
  border: 1px solid rgba(157, 236, 114, 0.12);
  background: linear-gradient(180deg, rgba(17, 38, 19, 0.94) 0%, rgba(10, 25, 12, 0.94) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.action-buttons {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.action-buttons .btn {
  width: 100%;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.action-buttons .btn.is-selected {
  background: linear-gradient(180deg, #b5f57f 0%, #99eb69 100%);
  color: #11210f;
  border-color: rgba(146, 216, 96, 0.18);
  box-shadow: 0 16px 30px rgba(131, 202, 88, 0.22);
}

.action-panels {
  margin-top: 0;
}

.action-panel {
  border: 1px solid rgba(157, 236, 114, 0.12);
  border-radius: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.action-panel.is-highlighted {
  border-color: rgba(181, 245, 127, 0.72);
  box-shadow: 0 0 0 1px rgba(181, 245, 127, 0.16), 0 18px 40px rgba(121, 193, 69, 0.16);
  transform: translateY(-2px);
}

.action-panel .card-head {
  margin-bottom: 14px;
}

.action-panel .card-head h2,
.list-card h2 {
  color: #f4fff0;
  font-size: 1.8rem;
}

.compact-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
}

.compact-form label,
.compact-form .inline-actions,
.compact-form .btn-submit {
  align-self: end;
}

.compact-form .inline-actions {
  min-height: 46px;
}

.list-card {
  margin-bottom: 24px;
}

.card-head-inline {
  margin-bottom: 14px;
}

.table-wrap {
  border: 1px solid rgba(157, 236, 114, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

table {
  overflow: hidden;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(17, 33, 15, 0.06);
}

th {
  color: rgba(228, 244, 216, 0.64);
  font-size: 0.76rem;
}

td {
  color: #edf6e8;
}

.table-button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(157, 236, 114, 0.24);
  background: transparent;
  color: #edf6e8;
  font-family: var(--font-body);
  font-weight: 700;
}

.table-button.delete {
  color: #b6f47e;
  border-color: rgba(157, 236, 114, 0.28);
  background: transparent;
}

.status-banner {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  color: #f4fff0;
}

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  min-width: min(360px, calc(100vw - 32px));
  max-width: 420px;
  padding: 18px 20px;
  border-radius: 16px;
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  transform: translateY(-8px) scale(0.98);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.status-banner.is-success {
  border-color: rgba(255, 255, 255, 0.32);
  color: #f4fff0;
}

.status-banner.is-error {
  border-color: rgba(255, 255, 255, 0.32);
  color: #f4fff0;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 10, 4, 0.68);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 440px);
  border: 1px solid rgba(157, 236, 114, 0.18);
  border-radius: 16px;
  padding: 24px;
  background: #0f170d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.modal-copy {
  margin: 8px 0 0;
  color: rgba(236, 249, 227, 0.76);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.code-preview {
  background: #171f15;
  color: #ecf9e3;
}

@media (max-width: 920px) {
  .landing-shell,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .action-buttons,
  .compact-form {
    grid-template-columns: 1fr;
  }

  .app-header,
  .card-head-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-shell-dashboard {
    width: min(100% - 24px, 100%);
  }
}

@media (max-width: 640px) {
  .landing-shell,
  .app-shell {
    width: min(100% - 20px, 100%);
    padding: 20px 0 32px;
  }

  .landing-hero {
    padding: 16px 0;
  }

  .landing-button {
    min-height: 72px;
    padding: 0 18px;
  }

  .action-buttons .btn {
    min-height: 58px;
  }

  .toast {
    top: 16px;
    right: 16px;
    left: 16px;
    min-width: auto;
    width: min(calc(100vw - 32px), 360px);
    max-width: none;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .hero-panel,
  .card,
  .info-panel {
    padding: 20px;
  }

  h1 {
    font-size: 2.4rem;
  }
}
