:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #63716e;
  --line: #dce7e1;
  --surface: #f6faf8;
  --panel: #ffffff;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --warning: #9a5a12;
  --danger: #b42318;
  --soft: #e7f4f1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
.button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  padding: 0 18px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--brand-strong);
}

.button.secondary {
  background: #edf5f2;
  color: var(--brand-strong);
  border: 1px solid var(--line);
}

.button.compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.support-shell {
  min-height: 100vh;
}

.support-topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 850;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--brand-strong);
}

.login-band,
.hero-band,
.control-band,
.content-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.login-band {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
}

.login-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(20, 47, 41, 0.08);
}

.login-panel {
  width: min(460px, 100%);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.hero-band {
  padding: 36px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.hero-band h1,
.login-panel h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.06;
}

.hero-band p,
.login-panel p {
  color: var(--muted);
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
}

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

.control-band {
  padding-bottom: 18px;
}

.scenario-form,
.inline-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 9px 11px;
}

textarea {
  resize: vertical;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 48px;
}

.panel {
  padding: 20px;
}

.panel.wide {
  grid-column: 1 / -1;
}

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

.section-title h2 {
  margin: 0;
  font-size: 20px;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.suggestion-list,
.ticket-list,
.report-grid {
  display: grid;
  gap: 10px;
}

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

.ticket-row,
.suggestion-card,
.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.ticket-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.8fr) minmax(120px, 0.7fr) auto minmax(90px, 0.55fr) minmax(150px, 0.8fr);
  gap: 12px;
  align-items: center;
}

.ticket-row strong,
.ticket-row small {
  display: block;
}

.ticket-row small,
.ticket-row > span,
.suggestion-card h3,
.report-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.ticket-row small,
.suggestion-card p,
.report-card p {
  margin: 0;
  color: var(--muted);
}

.report-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.report-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.report-card dt,
.report-card dd {
  margin: 0;
}

.report-card dt {
  color: var(--muted);
}

.report-card dd {
  font-weight: 850;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.support-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 5, 0.68);
}

.support-modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-strong);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.pill.urgent {
  background: #fff0ea;
  color: var(--danger);
}

.pill.high {
  background: #fff7e8;
  color: var(--warning);
}

.status {
  margin: 0;
  min-height: 20px;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .support-topbar,
  .hero-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .scenario-form,
  .inline-fields,
  .content-grid,
  .report-grid,
  .ticket-row {
    grid-template-columns: 1fr;
  }
}
