/* Evie & Bear Issues (docs/BOUWBRIEF-ISSUES.md). Stijl = Insights / de goedgekeurde mockup in docs/issues-mockup/. */
:root { --f: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color-scheme: light; }
html, body { margin: 0; background: #ecebe8; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--f); color: #111; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; }
:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eb { min-height: 100vh; padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 18px; max-width: 1440px; margin: 0 auto;
  background: radial-gradient(900px 520px at 100% 0%, rgba(198,254,86,.20), transparent 60%), radial-gradient(900px 640px at 0% 100%, rgba(255,208,186,.30), transparent 62%), linear-gradient(180deg, #f2f1ee 0%, #e9e8e4 100%); }
@media (min-width: 700px) { .eb { padding: 32px; gap: 20px; } }
body { background: linear-gradient(180deg, #f2f1ee 0%, #e9e8e4 100%); }
.eb.center { justify-content: center; align-items: center; }

.head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 46px; height: 46px; border-radius: 14px; background: #111; color: #c6fe56; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.h1 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; margin: 0; line-height: 1.2; }
.sub { margin: 2px 0 0; color: #6f6e69; font-size: 13px; }
.right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: relative; }
.live { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-radius: 999px; background: #fbfbfa; font-size: 14px; box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 10px 28px rgba(17,17,17,.05); min-height: 44px; border: 0; cursor: pointer; }
.live b { font-weight: 650; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #111; flex: none; }
.spin .dot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.who { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fbfbfa; font: 500 14px var(--f); border: 0; box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 10px 28px rgba(17,17,17,.05); min-height: 44px; cursor: pointer; }
.av { width: 32px; height: 32px; border-radius: 50%; background: #111; color: #c6fe56; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.av.e { background: #e2e1dd; color: #111; } .av.b { background: #c6fe56; color: #111; }
.av.s { width: 26px; height: 26px; font-size: 10px; }
.menu { position: absolute; right: 0; top: 52px; z-index: 20; background: #fbfbfa; border-radius: 16px; padding: 6px; min-width: 200px; box-shadow: 0 10px 40px rgba(17,17,17,.18); display: flex; flex-direction: column; }
.menu button, .menu a { text-align: left; padding: 12px 14px; border-radius: 10px; border: 0; background: none; font-size: 14px; cursor: pointer; text-decoration: none; min-height: 44px; }
.menu button:hover, .menu a:hover { background: rgba(17,17,17,.06); }

.tabs { display: flex; gap: 2px; padding: 5px; background: rgba(255,255,255,.72); border-radius: 999px; align-self: flex-start; max-width: 100%; overflow-x: auto; box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 10px 28px rgba(17,17,17,.05); }
.tab { flex: none; padding: 10px 18px; border-radius: 999px; font: 500 14px var(--f); border: 0; background: none; cursor: pointer; white-space: nowrap; min-height: 44px; }
.tab.on { background: #111; color: #fff; }
.tab i { font-style: normal; margin-left: 6px; font-size: 12px; font-weight: 650; padding: 1px 7px; border-radius: 999px; background: rgba(17,17,17,.08); }
.tab.on i { background: #c6fe56; color: #111; }

.peek { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-radius: 16px; background: #121212; color: #f6f6f3; font-size: 14px; }
.peek > span { display: inline-flex; gap: 10px; align-items: center; }
.peek b { font-weight: 650; }

.hero { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .hero { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.tile, .card { background: #fbfbfa; border-radius: 22px; box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 10px 28px rgba(17,17,17,.05); }
.tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; text-align: left; cursor: pointer; }
@media (min-width: 700px) { .tile { padding: 22px 24px 18px; } }
.dark { background: #121212 !important; color: #f6f6f3; }
.lbl { font-size: 13px; font-weight: 500; color: #6f6e69; }
.dark .lbl, .dark .note { color: #9d9c97; }
.val { font-weight: 600; font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
@media (min-width: 700px) { .val { font-size: 38px; } }
.cmp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #6f6e69; }
.dark .cmp { color: #9d9c97; }
.chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(17,17,17,.06); color: #111; white-space: nowrap; }
.chip.bad { background: #fee2e2; color: #b91c1c; } .chip.warn { background: #fef3c7; color: #92400e; } .chip.lime { background: #c6fe56; color: #111; }
.dark .chip { background: rgba(255,255,255,.1); color: #f6f6f3; } .dark .chip.bad { background: rgba(255,122,110,.16); color: #ff7a6e; }
.bad { color: #dc2626; } .warn { color: #b45309; } .muted { color: #6f6e69; }

.quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px; border-radius: 20px; background: #fbfbfa; box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 10px 28px rgba(17,17,17,.05); }
.quick input { flex: 1 1 240px; min-width: 0; border: 0; background: transparent; padding: 0 12px; height: 44px; font-size: 15px; }
.quick input:focus { outline: none; }
.quick:focus-within { outline: 2px solid #111; }
.quick select { border: 0; border-radius: 999px; background: rgba(17,17,17,.06); padding: 0 12px; height: 44px; font-size: 14px; }

.seg { display: inline-flex; gap: 2px; padding: 4px; background: rgba(17,17,17,.06); border-radius: 999px; max-width: 100%; overflow-x: auto; }
.seg button { padding: 8px 14px; border-radius: 999px; font: 500 14px var(--f); color: #6f6e69; border: 0; background: none; white-space: nowrap; cursor: pointer; min-height: 40px; }
.seg button.on { background: #fbfbfa; color: #111; box-shadow: 0 1px 3px rgba(17,17,17,.1); }
.seg button b { font-weight: 650; margin-left: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: #111; color: #fff; font: 500 13px var(--f); cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn.ghost { background: rgba(17,17,17,.06); color: #111; }
.btn.lime { background: #c6fe56; color: #111; }
.btn.red { background: none; color: #b91c1c; }
.btn.big { min-height: 48px; font-size: 15px; padding: 0 22px; }
.btn[disabled] { opacity: .5; cursor: default; }
.note { font-size: 13px; color: #6f6e69; margin: 0; line-height: 1.45; }
.err { color: #b91c1c; font-size: 13px; margin: 0; }

.sec { display: flex; flex-direction: column; gap: 10px; }
.sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 16px; flex-wrap: wrap; }
.sechead h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 0; display: flex; align-items: center; gap: 10px; }
@media (min-width: 700px) { .sechead h2 { font-size: 22px; } }
.sechead .side { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cnt { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: #111; color: #c6fe56; font-size: 14px; font-weight: 650; }
.cnt.lime { background: #c6fe56; color: #111; } .cnt.grey { background: rgba(17,17,17,.1); color: #111; }

.issue { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 14px; align-items: center; padding: 14px; border-radius: 18px; background: #fbfbfa; box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 10px 28px rgba(17,17,17,.05); }
.issue > .why, .issue > .own, .issue > .acts, .issue > .extra { grid-column: 2; }
@media (min-width: 1000px) {
  .issue { grid-template-columns: 76px minmax(0, 1.6fr) minmax(0, 1fr) 150px auto; gap: 16px; padding: 14px 18px; }
  .issue > .why, .issue > .own, .issue > .acts { grid-column: auto; }
  .issue > .extra { grid-column: 2 / -1; }
}
.issue.waiting { background: rgba(255,255,255,.55); box-shadow: none; }
.days { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; border-radius: 16px; font-variant-numeric: tabular-nums; text-align: center; padding: 4px; }
.days b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1; }
.days small { font-size: 10.5px; font-weight: 500; margin-top: 3px; line-height: 1.15; }
.days.red { background: #121212; color: #ff7a6e; } .days.amber { background: #fef3c7; color: #92400e; } .days.grey { background: rgba(17,17,17,.06); color: #111; }
.t { font-size: 15px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.m { font-size: 13px; color: #6f6e69; margin-top: 3px; }
.new { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 999px; background: #c6fe56; color: #111; vertical-align: 2px; }
.why { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.why .q { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 12px; background: rgba(17,17,17,.05); }
.why .q b { font-weight: 650; }
.own { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.d { display: block; font-size: 12px; color: #6f6e69; }
.chain { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12px; margin-top: 6px; }
.chain span { padding: 2px 8px; border-radius: 999px; background: rgba(17,17,17,.06); color: #6f6e69; }
.chain span.now { background: #111; color: #c6fe56; font-weight: 650; }
.acts { display: flex; gap: 8px; justify-content: flex-start; flex-wrap: wrap; }
@media (min-width: 1000px) { .acts { justify-content: flex-end; } }
.extra { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.extra input { flex: 1 1 220px; min-width: 0; height: 40px; border: 0; border-radius: 12px; background: rgba(17,17,17,.06); padding: 0 12px; font-size: 14px; }
.link { font-size: 12px; color: #6f6e69; }
.link button { border: 0; background: none; padding: 0; text-decoration: underline; cursor: pointer; font-size: 12px; color: #111; min-height: 24px; }

.calm { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.55); font-size: 14px; color: #6f6e69; }
.calm .dot { background: #8cbf2f; }
.calm.warnbar .dot { background: #dc2626; }
.done { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.55); font-size: 14px; }
.done > .note, .done > button { grid-column: 2; justify-self: start; }
@media (min-width: 900px) { .done { grid-template-columns: 28px minmax(0, 1fr) 240px auto; padding: 10px 18px; } .done > .note, .done > button { grid-column: auto; } }
.done .strike { color: #6f6e69; text-decoration: line-through; overflow-wrap: anywhere; }
.tick { width: 22px; height: 22px; border-radius: 50%; background: #c6fe56; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.newbox { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-radius: 18px; background: #fbfbfa; border: 2px solid #c6fe56; font-size: 14px; }
.newbox ul { margin: 0; padding-left: 18px; }

/* venster (Edit, Chase, Users) */
.shade { position: fixed; inset: 0; background: rgba(17,17,17,.35); z-index: 30; display: flex; justify-content: flex-end; }
.panel { background: #fbfbfa; width: min(100%, 480px); height: 100%; overflow-y: auto; padding: max(20px, env(safe-area-inset-top)) 22px 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: -10px 0 40px rgba(17,17,17,.2); }
.panel.wide { width: min(100%, 640px); }
.panel h2 { font-size: 20px; font-weight: 600; margin: 0; }
.ph { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: #6f6e69; }
.field input, .field select, .field textarea { border: 0; border-radius: 12px; background: rgba(17,17,17,.06); padding: 0 14px; height: 44px; font: 400 15px var(--f); color: #111; width: 100%; }
.field textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hist { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 13px; padding: 8px 0; border-top: 1px solid rgba(17,17,17,.07); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.msg { width: 100%; min-height: 200px; border: 0; border-radius: 14px; background: rgba(17,17,17,.06); padding: 14px; font: 400 14px/1.5 var(--f); resize: vertical; }
.urow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(17,17,17,.07); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: #111; color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; z-index: 40; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); }
.toast button { background: #c6fe56; color: #111; border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 600; cursor: pointer; }

.login { width: 100%; max-width: 420px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.login .field { font-size: 13px; }
.login .field input { height: 48px; border-radius: 14px; }
