:root {
  --brand: #1261a6;
  --brand-2: #0f766e;
  --ink: #172033;
  --muted: #667085;
  --paper: #fffdf8;
  --line: #ddd7cc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f5f2ea;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

textarea { resize: vertical; }

.shell { max-width: 1120px; margin: 0 auto; padding: 24px 18px 54px; }
.topbar { background: rgba(255,253,248,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 12px 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.brand { font-weight: 900; margin-right: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.panel, .card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.card { background: #fff; }
.h1 { font-size: 42px; line-height: 1.05; margin: 8px 0 14px; }
.h2 { font-size: 25px; line-height: 1.15; margin: 0 0 12px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; font-weight: 900; }
.button, button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  padding: 10px 13px;
  font-weight: 850;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.dark { background: #111827; border-color: #111827; color: #fff; }
.danger { background: #b42318; border-color: #b42318; color: #fff; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; color: var(--muted); font-size: 12px; font-weight: 850; margin-bottom: 5px; }
.phone {
  width: 360px;
  max-width: 100%;
  border-radius: 34px;
  padding: 10px;
  background: #111827;
  box-shadow: 0 18px 42px rgba(17,24,39,.26);
}
.screen {
  min-height: 670px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg,var(--brand),var(--brand-2));
  display: flex;
  flex-direction: column;
}
.phone-body { flex: 1; padding: 42px 24px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.logo {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  font-size: 26px;
  font-weight: 900;
}
.stack { display: grid; gap: 12px; }
.customer-action { width: 100%; background: rgba(255,255,255,.96); border-color: rgba(255,255,255,.32); color: #111827; padding: 16px 14px; font-size: 16px; }
.form-screen { flex: 1; background: var(--paper); color: var(--ink); padding: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 11px 12px; border-bottom: 1px solid #eee9dd; text-align: left; font-size: 13px; }
th { background: #f8f6f0; color: var(--muted); font-size: 12px; }
.pill { border-radius: 999px; padding: 4px 9px; background: #eef7f5; color: #155e59; font-size: 12px; font-weight: 850; display: inline-flex; }
.notice { padding: 10px 12px; border-radius: 8px; background: #eef7f5; color: #155e59; margin: 12px 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hidden { display: none !important; }

@media (max-width: 820px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .h1 { font-size: 33px; }
}
