:root {
  --navy: #324158;
  --blue: #074151;
  --blue-dark: #414e90;
  --blue-soft: #acc5dd;
  --cream: #f0efe1;
  --yellow: #f7ee0d;
  --ink: #242121;
  --muted: #55606e;
  --line: #c9d6e3;
  --bg: #e2ebf3;
  --white: #fff;
  --green: #2f7d4f;
  --amber: #a3620a;
  --radius: 14px;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: #dbe6f0; }
body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #f4f7fa 0%, #e2ebf3 45%, #c9d9ea 100%); color: var(--ink); font-size: 16px; line-height: 1.55; font-weight: 400; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

.hero { background: var(--navy); color: var(--white); padding: 40px 0 34px; }
.eyebrow { margin: 0 0 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hero h1 { margin: 0; font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.lede { max-width: 720px; margin: 12px 0 0; font-size: 17px; font-weight: 300; opacity: .95; }

.tabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 22px; margin-bottom: -34px; }
.tabs a { color: var(--white); text-decoration: none; padding: 12px 18px; border-radius: 12px 12px 0 0; font-weight: 600; white-space: nowrap; opacity: .85; }
.tabs a:hover { opacity: 1; background: rgba(255,255,255,.1); }
.tabs a.active { background: #eef3f8; color: var(--navy); opacity: 1; }

main.wrap { padding-top: 40px; padding-bottom: 40px; min-height: 50vh; }
.loading { color: var(--muted); }
h2 { font-size: 30px; margin: 0 0 6px; color: var(--blue-dark); font-weight: 700; letter-spacing: -0.02em; }
.sub { color: var(--ink); margin: 0 0 24px; max-width: 780px; font-size: 17px; }
.muted { color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.seg { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--blue); color: var(--white); }
.search { flex: 1; min-width: 200px; max-width: 320px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-size: 19px; color: var(--ink); }
.card .meta { font-size: 13px; color: var(--muted); }
.card p { margin: 0; }
.card .actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); }
.badge.new { background: #fff9b8; color: #5c5600; }
.badge.soon { background: #fdf0dc; color: var(--amber); }
.badge.open { background: #e2f3e8; color: var(--green); }
.head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 5px 11px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); cursor: pointer; }
.chip:hover { border-color: var(--blue); }

.section-title { margin: 34px 0 12px; font-size: 18px; color: var(--blue-dark); }
.prog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.prog { background: var(--white); border-left: 4px solid var(--blue); border-radius: 10px; padding: 14px 16px; }
.prog strong { display: block; }
.prog span { font-size: 14px; color: var(--muted); }

.opp { border-top: 5px solid var(--yellow); }
.when { font-weight: 700; color: var(--blue); font-size: 14px; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 2px; padding: 13px 26px; font: inherit; font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; background: var(--blue); color: var(--white); text-decoration: none; }
.btn:hover { background: var(--navy); }
.btn.ghost { background: var(--white); color: var(--blue); border: 1px solid var(--blue); }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.small { padding: 7px 12px; font-size: 12px; letter-spacing: .06em; }
.btn.danger { background: var(--white); color: #b3261e; border: 1px solid #e5b5b1; }
.btn:disabled { opacity: .6; cursor: wait; }
.linkbtn { background: none; border: 0; color: var(--blue); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }

.staffbar { background: #fffbd1; border: 1px solid #ece18a; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.talk { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.panel { background: var(--white); border: 14px solid var(--cream); border-radius: 26px; padding: 28px; }
.aside.panel { background: var(--blue-soft); }
.aside h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.aside { font-weight: 300; }
.aside ul { margin: 0; padding-left: 18px; }
.aside li { margin-bottom: 6px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.full { grid-column: 1 / -1; }
label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.req { color: #b3261e; }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #b7c6d6; border-radius: 10px; font: inherit; font-size: 15px; background: var(--white); color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.radios { display: flex; gap: 16px; flex-wrap: wrap; }
.radios label { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 0; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.done { text-align: center; padding: 40px 20px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-soft); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 12px; }

.msg { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.msg dl { display: grid; grid-template-columns: 170px 1fr; gap: 4px 12px; margin: 10px 0; font-size: 14px; }
.msg dt { color: var(--muted); }
.msg dd { margin: 0; white-space: pre-wrap; }

.modal { position: fixed; inset: 0; background: rgba(20,32,45,.45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; z-index: 20; }
.modal-card { background: var(--white); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 560px; }
.modal-card form > div { margin-bottom: 14px; }
.checks { display: grid; gap: 6px; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 10px; z-index: 30; font-size: 14px; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 30px; border-top: 1px solid #b7c6d6; font-size: 14px; }
.foot div { display: flex; flex-direction: column; gap: 2px; }
.foot-right { align-items: flex-end; text-align: right; }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--muted); }

@media (max-width: 800px) {
  .panel { border-width: 8px; padding: 20px; }
  .talk { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .msg dl { grid-template-columns: 1fr; }
  .foot-right { align-items: flex-start; text-align: left; }
}
