/* apps.gelembjuk.com — the concept's look: warm paper, ink, teal for development, orange for promotion. */
:root {
  --ground: #F5F3EE;
  --surface: #FFFFFF;
  --line: #E2DED5;
  --line-soft: #EEEBE4;
  --ink: #1C1B19;
  --muted: #5F5B53;
  --teal: #0E6B63;
  --teal-dark: #09524C;
  --teal-tint: #E3F1EF;
  --orange: #E8891A;
  --orange-tint: #FCEBD8;
  --blue: #3B5E9A;
  --blue-tint: #E8EEF8;
  --red: #B42318;
  --red-dark: #8F1D12;
  --red-tint: #FFF4F1;
  --red-line: #F0C9C0;
  --amber: #9A5B00;
  --amber-bar: #D9A13B;
  --input: #CFCAC0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 15px; line-height: 1.45; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1 { font-size: 28px; line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 17px; margin: 0 0 10px; }
code { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; background: var(--line-soft); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grow { flex: 1 1 200px; min-width: 0; }
.empty { color: var(--muted); padding: 8px 0; list-style: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* header */
.top { background: var(--ink); color: var(--ground); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { color: var(--ground); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand span { color: #9FD3CC; }
.brand:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 auto; }
.nav a { color: #E4E0D7; text-decoration: none; padding: 8px 11px; border-radius: 6px; }
.nav a:hover { background: #2E2C28; color: #fff; }
.nav a[aria-current] { background: var(--ground); color: var(--ink); font-weight: 600; }
.count { font-family: 'IBM Plex Mono', monospace; font-size: 12px; background: #3A3833; color: #fff; padding: 1px 6px; border-radius: 10px; }
.nav a[aria-current] .count { background: var(--ink); }
.link-btn { background: none; border: none; color: #C9C4B8; font: inherit; cursor: pointer; padding: 8px 4px; }
.link-btn:hover { color: #fff; }
.main { padding-top: 24px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 26px; }
.flash { margin: 16px 0 0; background: var(--teal-tint); color: #0B4F49; padding: 10px 14px; border-radius: 8px; }
.error { background: var(--red-tint); color: var(--red-dark); border: 1px solid var(--red-line); padding: 10px 14px; border-radius: 8px; margin: 0 0 8px; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--input); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); color: var(--ink); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--teal-dark); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.btn.danger { color: var(--red); border-color: var(--red-line); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 16px; flex: 0 0 auto; }
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }
input[type=text], input[type=password], input[type=url], input[type=date], input[type=number], input:not([type]), select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--input); border-radius: 8px; padding: 8px 11px; min-height: 40px; max-width: 100%; }
textarea { width: 100%; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--input); border-radius: 8px; background: var(--surface); }
label { font-size: 13px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack > label { margin-top: 6px; }
.stack input:not([type=checkbox]):not([type=radio]):not([type=color]), .stack select { width: 100%; }
.stack h2 { margin-top: 14px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 14px; }
.two label { display: block; margin: 6px 0 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; }
.checks label, .radio { color: var(--ink); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 12px; }
.num-in { width: 80px; }
.danger-zone { margin-top: 16px; }
.narrow { max-width: 820px; width: 100%; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.card-h h2 { margin: 0; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; }
.cols > .card { flex: 1 1 320px; min-width: 0; }
.section-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 12px; }
.section-h h1, .section-h h2 { margin: 0; }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; }
.hero-text { flex: 1 1 380px; min-width: 0; }
.hero h1 { margin: 4px 0 10px; font-size: 28px; }
.eyebrow { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.focus { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.chip { background: var(--teal-tint); color: #0B4F49; padding: 4px 10px; border-radius: 14px; font-weight: 600; text-decoration: none; }
.capture { flex: 1 1 380px; min-width: 0; display: flex; gap: 8px; }
.capture input { flex: 1 1 auto; min-width: 0; height: 46px; }
.capture .btn { height: 46px; }

/* quiet */
.quiet { background: var(--red-tint); border: 1px solid var(--red-line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.quiet-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; color: #6B3A31; font-size: 14px; }
.quiet-head h2 { color: var(--red-dark); font-size: 19px; margin: 0; }
.quiet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.qcard { background: var(--surface); border: 1px solid var(--red-line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; }
.qcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qcard-top a { color: var(--ink); text-decoration: none; font-size: 16px; }
.qbig { font-family: 'IBM Plex Mono', monospace; font-size: 21px; color: var(--red); white-space: nowrap; }
.qwhy { font-size: 13px; color: #6B3A31; }
.qactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.quiet-line { background: var(--red-tint); border: 1px solid var(--red-line); color: var(--red-dark); padding: 10px 14px; border-radius: 8px; margin: 0; font-weight: 600; }

/* tasks and rows */
.tasks, .rows { list-style: none; margin: 0; padding: 0; }
.task { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.task-check { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); flex: 0 0 auto; cursor: pointer; }
.task-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.task-title { color: var(--ink); text-decoration: none; font-weight: 500; }
.task-title:hover { text-decoration: underline; }
.task.is-done .task-title { text-decoration: line-through; color: var(--muted); }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; align-items: center; }
.type { padding: 1px 7px; border-radius: 10px; font-weight: 600; }
.type-promo { background: var(--orange-tint); color: #7A3E00; }
.type-dev { background: var(--teal-tint); color: #0B4F49; }
.type-release { background: var(--blue-tint); color: #21416F; }
.type-note { background: var(--line-soft); color: #3F3C36; }
.overdue { color: var(--red); font-weight: 600; }
.row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.row-main { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.date { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); width: 42px; flex: 0 0 auto; padding-top: 2px; }
.who { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 10px; text-transform: uppercase; letter-spacing: .5px; flex: 0 0 auto; }
.who-me { background: var(--ink); color: #fff; }
.who-outside { background: var(--line-soft); color: #3F3C36; }
.age { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); padding-top: 2px; flex: 0 0 auto; }
.age.late { color: var(--red); font-weight: 600; }
.kind-promo { color: #8A3B12; font-weight: 600; }
.kind-release { color: #21416F; font-weight: 600; }
.kind-dev { color: #0B4F49; font-weight: 600; }
.src { font-weight: 600; }

/* project cards */
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.group-name { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.pcard.is-quiet { border-color: var(--red-line); }
.pcard.is-frozen .pcard-body { opacity: .6; }
.pcard-paused { background: var(--line-soft); color: #3F3C36; font-size: 12px; font-weight: 600; padding: 6px 16px; }
.pause-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pause-box .inline-form { margin: 0; }
.pause-state { font-weight: 600; background: var(--line-soft); padding: 6px 12px; border-radius: 8px; }
.pcard-quiet { background: #FBE4DF; color: var(--red-dark); font-size: 12px; font-weight: 600; padding: 6px 16px; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.pcard-head { display: flex; gap: 12px; align-items: center; }
.pcard-title { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.pcard-title a { color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.pcard-title a:hover { text-decoration: underline; }
.pcard-next { font-size: 14px; }
.logo { width: 56px; height: 56px; border-radius: 14px; flex: 0 0 auto; object-fit: cover; }
.logo.sm { width: 42px; height: 42px; border-radius: 10px; }
.logo.mono { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; }
.logo.sm.mono { font-size: 15px; }
.stage { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 12px; flex: 0 0 auto; }
.stage-live { background: var(--teal-tint); color: #0B4F49; }
.stage-beta { background: var(--blue-tint); color: #21416F; }
.stage-review { background: #FDF1D8; color: #7A4A00; }
.stage-dev { background: #EFEAF6; color: #4B2C7A; }
.stage-idea { background: var(--line-soft); color: #3F3C36; }
.stage-frozen { background: var(--line-soft); color: var(--muted); }
.clocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.clock { display: flex; flex-direction: column; gap: 4px; }
.clock-row { display: flex; justify-content: space-between; font-size: 12px; }
.num { font-family: 'IBM Plex Mono', monospace; }
.num.lvl-1 { color: var(--amber); }
.num.lvl-2 { color: var(--red); }
.bar { height: 6px; border-radius: 3px; background: #ECE9E2; overflow: hidden; }
.bar span { display: block; height: 6px; background: var(--teal); }
.bar span.lvl-1 { background: var(--amber-bar); }
.bar span.lvl-2 { background: var(--red); }
.pulse { display: flex; gap: 4px; }
.pulse span { flex: 1 1 0; height: 14px; border-radius: 3px; }
.p-dev, .k-dev { background: var(--teal); }
.p-promo, .k-promo { background: var(--orange); }
.p-both { background: linear-gradient(135deg, var(--teal) 50%, var(--orange) 50%); }
.p-none { background: #ECE9E2; border: 1px solid #D6D1C6; }
.k-release { background: var(--blue); }
.notes { white-space: pre-line; margin-top: 12px; font-size: 14px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.app-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.app-head h1 { margin: 0; }
.groups-card .group-row { display: flex; gap: 8px; align-items: center; }
.groups-card .group-row .inline-form { flex: 1 1 auto; margin: 0; }

/* week */
.week-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.week-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.week-side { flex: 1 1 300px; max-width: 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.week-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.week-nav h1 { margin: 0; font-size: 22px; }
.week-scroll { overflow-x: auto; }
.week { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; min-width: 860px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-height: 380px; display: flex; flex-direction: column; }
.day.is-today { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.day.is-past { background: #FAF9F6; }
.day.drop { background: var(--teal-tint); }
.day-h { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; padding-bottom: 4px; }
.day-h .num { font-weight: 500; font-size: 12px; color: var(--muted); }
.day-tasks { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; }
.wtask { display: flex; flex-direction: column; gap: 2px; padding: 8px 9px; border-radius: 7px; margin-top: 6px; border-top: 3px solid var(--muted); background: var(--line-soft); cursor: grab; font-size: 13px; }
.wtask a { color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.3; }
.wtask .muted { font-size: 11px; }
.wtask.kind-promo { background: #FEF5EA; border-top-color: var(--orange); }
.wtask.kind-dev { background: #EEF6F5; border-top-color: var(--teal); }
.wtask.kind-release { background: #EEF2F9; border-top-color: var(--blue); }
.wtask.is-done { opacity: .55; }
.wtask.is-done a { text-decoration: line-through; }
.wtask.dragging { opacity: .4; }
.day-add { display: block; text-align: center; margin-top: 8px; padding: 6px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 18px; }
.day-add:hover { background: var(--line-soft); color: var(--ink); }
.review { background: var(--red-tint); border-color: var(--red-line); }
.review h2 { color: var(--red-dark); }
.review-text p { margin: 0; white-space: pre-line; }

/* inbox, proposals */
.inbox-list { border: none; padding: 0; margin: 0; }
.inbox-list legend { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.inbox-item { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.inbox-item label { color: var(--ink); font-size: 15px; flex: 1 1 300px; }
.prop { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.prop-take input { width: 20px; height: 20px; margin-top: 10px; accent-color: var(--teal); }
.prop-fields { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.prop-fields input[type=text] { width: 100%; }
.prop-row { display: flex; flex-wrap: wrap; gap: 6px; }
.token-box { background: var(--teal-tint); padding: 12px 14px; border-radius: 8px; display: flex; flex-direction: column; gap: 6px; }

/* login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.login-card input { width: 100%; }
.login-card .btn { margin-top: 10px; }

/* public page */
.pub { max-width: 1120px; margin: 0 auto; padding: 48px 16px 64px; display: flex; flex-direction: column; gap: 40px; font-size: 16px; line-height: 1.5; }
@media (min-width: 720px) { .pub { padding: 56px 24px 72px; } }
.pub-head { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.pub-head h1 { font-size: 40px; margin: 0; }
.pub-head p { margin: 0; font-size: 17px; color: #4A4740; }
.pub-back { font-size: 14px; color: var(--muted); text-decoration: none; }
.pub-group { display: flex; flex-direction: column; gap: 14px; }
.pub-group h2 { font-size: 22px; margin: 0; }
.pub-sub { margin: -8px 0 0; color: var(--muted); font-size: 15px; }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pub-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.pub-card-head { display: flex; gap: 14px; align-items: center; }
.pub-card h3 { margin: 0; font-size: 18px; }
.pub-where { font-size: 13px; color: var(--muted); }
.pub-text { margin: 0; font-size: 15px; color: #3F3C36; flex: 1 1 auto; }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--input); border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.pub-links a:hover { border-color: var(--muted); }
.pub-foot { border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; color: var(--muted); }
