@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@500;600;700&display=swap');

:root {
  --ink: #1b1d1c;
  --muted: #5e665f;
  --leaf: #446c51;
  --leaf-dark: #34533e;
  --lime: #d9b87e;
  --mint: #edf3ee;
  --cream: #f6f2e9;
  --paper: #fcfaf6;
  --line: #d9d4c8;
  --danger: #a23b32;
  --shadow: 0 20px 55px rgba(27, 29, 28, .10);
  --radius: 24px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Comfortaa", "Nunito", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(191, 214, 177, .30), transparent 28rem),
    linear-gradient(180deg, #fcfaf6, var(--cream));
  font-family: var(--font);
  line-height: 1.5;
}
button, input, textarea { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { position: relative; width: 34px; height: 34px; border-radius: 50% 50% 45% 55%; background: var(--ink); transform: rotate(-8deg); }
.brand-mark::after { content: ""; position: absolute; width: 13px; height: 20px; border-radius: 100% 0 100% 0; background: var(--lime); top: -7px; right: -4px; transform: rotate(27deg); }
.brand small { display: block; color: var(--muted); font-size: .67rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.brand-lockup { gap: 8px; letter-spacing: normal; }
.brand-lockup img { height: 21px; width: auto; display: block; }
.brand-partner { display: inline-flex; align-items: baseline; gap: 3px; margin-left: 1px; padding-left: 9px; border-left: 1px solid rgba(35,38,31,.22); white-space: nowrap; line-height: 1; }
.brand-partner .by { font-size: 8px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.brand-partner .konsac { font-family: Nunito, Quicksand, var(--font); font-size: 12px; font-weight: 800; letter-spacing: -.01em; color: #23261f; }
@media (max-width: 780px) {
  .brand-lockup { gap: 7px; }
  .brand-lockup img { height: 19px; }
  .brand-partner { padding-left: 8px; }
  .brand-partner .by { font-size: 8px; }
  .brand-partner .konsac { font-size: 12px; }
}
.header-note { color: var(--muted); font-size: .86rem; }

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto 64px; }
.card { background: rgba(255, 254, 250, .94); border: 1px solid rgba(210, 223, 211, .9); border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 10px; color: var(--leaf); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--font-display); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: 18px; font-size: clamp(2.2rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.065em; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.045em; }
h3 { line-height: 1.2; letter-spacing: -.025em; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 20px; border: 1px solid transparent; border-radius: 999px;
  background: var(--ink); color: white; cursor: pointer; font-weight: 750; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(17, 28, 24, .15); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, .option:focus-within { outline: 3px solid rgba(36, 122, 85, .28); outline-offset: 2px; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-leaf { background: var(--leaf); }
.btn-danger { color: var(--danger); background: transparent; border-color: #e6c5bf; }
.btn[disabled] { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }

.field { display: grid; gap: 7px; }
.field label { font-size: .84rem; font-weight: 740; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink);
  padding: 13px 14px; min-height: 49px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #96a198; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.span-2 { grid-column: 1 / -1; }

.notice { padding: 14px 16px; border-radius: 14px; background: var(--mint); color: var(--leaf-dark); }
.error { padding: 12px 14px; border-radius: 12px; background: #fceae7; color: var(--danger); font-weight: 650; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: var(--mint); color: var(--leaf-dark); font-size: .75rem; font-weight: 800; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }

.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.panel { padding: clamp(20px, 3vw, 32px); }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: 1 / -1; }
.metric { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 820; line-height: 1; letter-spacing: -.07em; }
.metric-label { color: var(--muted); font-weight: 650; }
.bar-row { display: grid; grid-template-columns: minmax(100px, 1.1fr) 3fr 40px; align-items: center; gap: 12px; margin: 14px 0; }
.track { height: 10px; overflow: hidden; border-radius: 999px; background: #edf0e9; }
.track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--leaf-dark), var(--lime)); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .8rem; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; }
.empty { padding: 36px; text-align: center; color: var(--muted); }

@media (max-width: 780px) {
  .site-header { padding: 16px 0; }
  .header-note { display: none; }
  .shell { width: min(100% - 22px, 1180px); }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: 1 / -1; }
  .panel { padding: 20px; }
}

@media print {
  body { background: white; }
  .site-header, .no-print { display: none !important; }
  .shell { width: 100%; margin: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .dashboard-grid { gap: 10px; }
}
