
:root {
  --bg: #f7f9fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --ok: #10b981;
  --warn: #ef4444;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.wrapper {
  max-width: 880px; margin: 0 auto; padding: 24px;
}

.header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

.brand {
  display: flex; align-items: center; gap: 12px;
}
.logo {
  width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 6px 18px rgba(2,132,199,.2);
}
.title { margin: 0; font-weight: 800; letter-spacing: 0.2px; }

.card {
  background: var(--card); border-radius: 14px; padding: 20px; box-shadow: 0 10px 30px rgba(2,32,71,.06);
  margin-top: 18px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

label { font-weight: 600; font-size: 14px; color: var(--muted); }
input[type="number"], input[type="date"] {
  width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 16px; background: #fff;
}
input:focus { outline: 2px solid var(--brand); border-color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; padding: 12px 16px; cursor: pointer; font-weight: 700;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }

.btn-outline { border: 1px solid #e5e7eb; background: #fff; color: var(--text); }
.btn-outline:hover { background: #f3f4f6; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.result {
  background: #f0f9ff; border: 1px solid #e0f2fe; border-radius: 12px; padding: 14px;
  display: none; margin-top: 14px;
}

.kv { display: grid; grid-template-columns: 240px 1fr; gap: 8px; align-items: baseline; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv strong { margin-top: 6px; } }

.note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.note a { color: var(--brand-dark); text-decoration: none; }
.note a:hover { text-decoration: underline; }

.footer { color: var(--muted); font-size: 13px; margin-top: 28px; }
.footer a { color: var(--brand-dark); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.alert { color: var(--warn); font-weight: 600; }

hr { border: none; border-top: 1px solid #e5e7eb; margin: 16px 0; }

.print-only { display: none; }
@media print {
  .actions, .header, .footer, .note .cta { display: none !important; }
  .card { box-shadow: none; border: none; }
  .print-only { display: block; }
  body { background: #fff; }
}
