:root {
  --ink: #17202a;
  --muted: #637083;
  --line: #d8dee7;
  --surface: #ffffff;
  --page: #f5f7fa;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --warn: #b45309;
  --ok-bg: #dff5ea;
  --ok-text: #14532d;
  --err-bg: #fde2e2;
  --err-text: #991b1b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

.topbar nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

main {
  min-height: calc(100vh - 64px);
}

.page-shell {
  transition: filter 160ms ease;
}

.modal-open .page-shell,
.modal-open .topbar {
  filter: blur(5px);
}

.notice-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(23, 32, 42, 0.24);
  color: var(--ink);
  max-width: 430px;
  padding: 30px;
  text-align: center;
  width: calc(100% - 36px);
}

.notice-dialog::backdrop {
  background: rgba(15, 23, 42, 0.34);
}

.notice-dialog h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.notice-dialog p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.notice-icon {
  align-items: center;
  background: var(--ok-bg);
  border-radius: 999px;
  color: var(--ok-text);
  display: inline-flex;
  font-size: 26px;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  margin-bottom: 18px;
  width: 56px;
}

.hero {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  margin: 0 auto;
  max-width: 1120px;
  padding: 72px 24px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: 46px;
  line-height: 1.08;
  margin-bottom: 18px;
}

h2 {
  font-size: 24px;
}

.hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 540px;
}

.quote-form,
.login-form,
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(23, 32, 42, 0.07);
}

.quote-form,
.login-form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

label {
  color: var(--ink);
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
}

input,
textarea {
  border: 1px solid #c8d1dd;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  min-height: 44px;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  line-height: 1.45;
  resize: vertical;
}

button,
.button-link {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
}

button:hover,
.button-link:hover {
  background: var(--accent-dark);
}

.secondary-button {
  width: 100%;
}

.alert {
  border-radius: 6px;
  font-size: 14px;
  padding: 12px 14px;
}

.alert.ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.alert.error {
  background: var(--err-bg);
  color: var(--err-text);
}

.login-shell {
  display: grid;
  min-height: calc(100vh - 64px);
  padding: 32px 18px;
  place-items: center;
}

.login-form {
  max-width: 420px;
  width: 100%;
}

.admin-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 40px 24px 64px;
}

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

.section-title h1 {
  font-size: 36px;
  margin: 0;
}

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

.counts span,
.status {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
}

.counts span {
  background: #e8edf3;
  color: #334155;
}

.tabs {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.stack {
  display: grid;
  gap: 16px;
}

.quote-card {
  padding: 20px;
}

.quote-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.quote-head h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 7px;
}

.status.pending {
  background: #fff4d6;
  color: var(--warn);
}

.status.resolved {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.meta-grid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  padding-top: 14px;
}

.meta-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.meta-grid strong {
  overflow-wrap: anywhere;
}

.request {
  color: #2f3a48;
  line-height: 1.55;
  margin: 16px 0;
  white-space: normal;
}

.client-file {
  align-items: center;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 16px 0;
  padding: 12px 14px;
}

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

.download-link {
  color: var(--accent);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.send-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.resolved-box {
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #334155;
  padding: 14px;
}

.resolved-box p:last-child {
  margin-bottom: 0;
}

.empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 24px;
}

@media (max-width: 860px) {
  .topbar {
    padding: 0 18px;
  }

  .hero,
  .tabs {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 34px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .quote-form,
  .login-form,
  .quote-card {
    padding: 18px;
  }
}
