@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');
:root {
  color-scheme: light;
  --cream: #fbf7ef;
  --paper: #fffdf8;
  --paper-deep: #f5eee2;
  --ink: #253a3b;
  --muted: #788887;
  --teal: #0f7780;
  --teal-dark: #095d66;
  --teal-pale: #e3f2ef;
  --line: #e9e1d5;
  --shadow: 0 12px 35px rgba(70, 54, 34, .07);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--cream); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { height: 76px; padding: 0 max(22px, calc((100vw - 1040px)/2)); display:flex; align-items:center; gap:12px; background:rgba(255,253,248,.9); border-bottom:1px solid var(--line); }
.brand-mark { width:42px;height:42px;border-radius:14px;background:var(--teal);color:white;display:grid;place-items:center;font-size:22px;box-shadow:0 6px 15px #0f778033; }
.brand-copy h1 { font:800 16px Manrope,sans-serif; margin:0; letter-spacing:-.3px; }
.brand-copy p { margin:2px 0 0; font-size:11px; color:var(--muted); }
.offline-indicator { margin-left:auto; font-size:11px; font-weight:700; color:var(--teal); background:var(--teal-pale); padding:7px 11px; border-radius:20px; }
.container { max-width:1040px; padding:28px 22px 36px; margin:auto; }
.intro { min-height:205px; border-radius:24px; padding:30px 36px; display:flex; justify-content:space-between; align-items:center; overflow:hidden; background:linear-gradient(115deg,#f0e2cb 0%,#f8eddd 56%,#e6f0e9 100%); position:relative; }
.eyebrow { font-size:10px; letter-spacing:1.55px; font-weight:800; color:var(--teal); margin:0 0 8px; }
.intro h2 { font:800 clamp(27px,4vw,38px)/1.13 Manrope,sans-serif; letter-spacing:-1.6px; margin:0; color:#283e3e; }
.intro h2 span { color:var(--teal); }
.intro-copy { color:#687876; font-size:13px; max-width:370px; margin:12px 0 0; line-height:1.55; }
.intro-art { width:118px;height:118px;border:1px solid #0f778044;border-radius:36px;transform:rotate(12deg);display:grid;place-items:center;color:var(--teal);font-size:66px;font-weight:500;background:#ffffff45;margin-right:5%; }
.stats { display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:17px 0 22px; }
.stat-card { background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:15px 17px;box-shadow:0 4px 15px #46362208; }
.stat-card span { display:block;color:var(--muted);font-size:11px;font-weight:600; }
.stat-card strong { display:block;font:800 25px Manrope,sans-serif;margin-top:4px;color:var(--ink); }
.panel { background:var(--paper);border:1px solid var(--line);border-radius:19px;padding:23px 25px;box-shadow:var(--shadow); }
.section-heading,.list-heading { display:flex;justify-content:space-between;align-items:center;gap:15px; }
.section-heading h2,.list-heading h2 { margin:0;font:800 19px Manrope,sans-serif;letter-spacing:-.5px; }
.form-step { font-size:10px;letter-spacing:1px;font-weight:800;color:var(--teal);background:var(--teal-pale);padding:7px 10px;border-radius:8px; }
form { margin-top:18px; }
label { display:block;font-size:11px;font-weight:700;color:#526362;margin:0 0 7px; }
input,select,textarea { width:100%;border:1px solid #e5ded2;border-radius:10px;background:#fffefa;padding:11px 12px;color:var(--ink);outline:none;font-size:13px;transition:border .15s,box-shadow .15s; }
input:focus,select:focus,textarea:focus { border-color:var(--teal);box-shadow:0 0 0 3px #0f778018; }
textarea { resize:vertical;min-height:66px; }
.form-grid { display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0; }
.optional { color:#9aa4a0;font-weight:400; }
.form-actions { display:flex;gap:9px;margin-top:15px; }
.button { border:0;border-radius:10px;padding:11px 16px;font-size:12px;font-weight:800; }
.button-primary { background:var(--teal);color:white;box-shadow:0 5px 12px #0f77802b; }
.button-primary:hover { background:var(--teal-dark); }
.button-quiet { background:#f3eee5;color:#64716f; }
.entries-section { margin-top:28px; }
.list-heading { margin-bottom:14px; }
.count-pill { display:inline-grid;place-items:center;vertical-align:3px;min-width:23px;height:23px;padding:0 6px;border-radius:20px;background:var(--teal-pale);color:var(--teal);font:700 11px "DM Sans"; }
.search-wrap { display:flex;align-items:center;gap:7px;width:min(245px,45%);border:1px solid var(--line);background:var(--paper);border-radius:10px;padding-left:10px;color:var(--teal); }
.search-wrap input { border:0;box-shadow:none!important;background:transparent;padding:9px 8px 9px 0;min-width:0; }
.entries-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.entry-card { background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:17px 18px;box-shadow:0 5px 18px #46362208;min-width:0; }
.entry-title-row { display:flex;align-items:flex-start;justify-content:space-between;gap:9px; }
.entry-email { font-size:14px;font-weight:800;overflow-wrap:anywhere;margin:1px 0 0; }
.status-badge { white-space:nowrap;font-size:10px;font-weight:800;border-radius:20px;padding:6px 9px;background:#e7f3eb;color:#39744d; }
.status-badge.in-use { background:#e4f1f6;color:#276a82; }
.status-badge.used { background:#f1ede5;color:#7d6d55; }
.status-badge.expired { background:#f9e9e4;color:#a34f3e; }
.resume-block { background:#f7f3eb;border-radius:10px;padding:10px 12px;margin-top:14px; }
.resume-label { display:block;font-size:9px;letter-spacing:1px;font-weight:800;color:#8b948c; }
.resume-value { display:block;font-size:13px;color:var(--teal-dark);margin-top:4px;font-weight:800; }
.entry-notes { margin:10px 0 0;color:#75817d;font-size:11px;line-height:1.45;overflow-wrap:anywhere;min-height:0; }
.entry-notes:empty { display:none; }
.entry-actions { display:flex;gap:7px;flex-wrap:wrap;margin-top:13px;padding-top:11px;border-top:1px solid #f0ebe2; }
.action-button { border:0;background:transparent;color:var(--teal);font-size:11px;font-weight:800;padding:4px 7px;border-radius:6px; }
.action-button:hover { background:var(--teal-pale); }
.delete-action { color:#b45b4b;margin-left:auto; }
.empty-state { text-align:center;padding:42px 18px;border:1px dashed #dcd2c2;border-radius:16px;background:#fffaf2; }
.empty-icon { width:48px;height:48px;margin:0 auto 12px;display:grid;place-items:center;border-radius:16px;background:var(--teal-pale);color:var(--teal);font-size:24px; }
.empty-state h3 { margin:0;font:800 15px Manrope; }
.empty-state p { margin:7px 0 0;color:var(--muted);font-size:12px; }
.footer { display:flex;align-items:center;gap:15px;margin:23px 2px 0;color:#87918c;font-size:10px; }
.text-button { border:0;background:transparent;color:var(--teal);font-size:10px;font-weight:800;padding:4px; }
.footer span { margin-right:auto; }
.toast { position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#263d3d;color:white;padding:11px 16px;border-radius:10px;font-size:12px;box-shadow:var(--shadow);transition:.2s;z-index:10;max-width:calc(100vw - 30px);text-align:center; }
.toast.show { opacity:1;transform:translate(-50%,0); }
.update-banner { position:fixed;left:50%;bottom:18px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;background:#183f42;color:white;padding:10px 12px 10px 16px;border-radius:12px;box-shadow:0 10px 35px #122f2f55;font-size:12px;z-index:20;white-space:nowrap; }
.update-banner button { border:0;border-radius:7px;background:#d9f0e9;color:#155d5e;padding:7px 11px;font-weight:800;font-size:11px; }
.update-banner .dismiss { background:transparent;color:#fff;padding:4px;font-size:18px; }
.hidden { display:none!important; }
@media(max-width:680px) {
  .topbar { height:66px;padding:0 17px; }
  .container { padding:18px 15px 28px; }
  .intro { min-height:178px;padding:23px 22px;border-radius:19px; }
  .intro-art { width:75px;height:75px;border-radius:24px;font-size:42px;margin-right:0; }
  .intro-copy { max-width:250px;font-size:12px; }
  .stats { grid-template-columns:repeat(2,1fr);gap:9px;margin:12px 0 17px; }
  .stat-card { padding:12px 14px; }
  .stat-card strong { font-size:22px; }
  .panel { padding:19px 17px; }
  .form-grid { grid-template-columns:1fr;gap:12px;margin:12px 0; }
  .entries-list { grid-template-columns:1fr; }
  .list-heading { align-items:flex-end; }
  .search-wrap { width:44%; }
  .footer { flex-wrap:wrap;gap:9px; }
  .footer span { width:100%; }
}
@media(max-width:380px) { .intro-art { display:none; } .intro h2 { font-size:29px; } .entry-card { padding:15px; } }
