/* Fonts are served from this server, not Google: visitors' IP addresses stay with us (GDPR). Both are variable fonts under the SIL Open Font License; latin-ext has the Polish letters. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext.acc46a2a7785.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin.c47ff12887a3.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin-ext.1ad231aac0a8.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f6f3ee;
  --text: #2a2622;
  --muted: #857b70;
  --line: #e7e1d8;
  --accent: #8a6d4b;
  --ok: #55704d;
  --ok-bg: #e8efe4;
  --no: #a4513f;
  --no-bg: #f6e8e4;
  --wait: #8c6a22;
  --wait-bg: #f6edd8;
  --edit: #2f6fde;
  --edit-bg: #eef4ff;
  --edit-line: #b8cdf5;
  --edit-text: #3d5a8a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(42, 38, 34, .05), 0 8px 24px rgba(42, 38, 34, .08);
  --serif: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Inter, system-ui, -apple-system, sans-serif; }
body.no-scroll { overflow: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.15; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); font-size: 13px; }
p.muted { margin: 6px 0 0; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.small-title { font-family: Inter, system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.section-title { font-size: 26px; margin: 0 0 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 24px; }
.title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.title-row .section-title, .title-row h2 { margin: 0; }

/* mockup bar, header */
.mockup-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; background: var(--text); color: #e8e0d4; font-size: 12px; padding: 7px 12px; letter-spacing: .02em; }
.role-switch { display: inline-flex; align-items: center; gap: 6px; }
.role-switch button { padding: 2px 11px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: none; color: #e8e0d4; font-size: 12px; cursor: pointer; }
.role-switch button.on { background: #fff; color: var(--text); border-color: #fff; }
.header { max-width: 1180px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.logo-mark { width: 42px; height: 42px; border: 1px solid var(--text); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.logo-img { display: block; height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.user { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #e2d8ca; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a { padding: 8px 14px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); font-size: 14px; text-decoration: none; }
.main-nav a:hover { color: var(--text); }
.main-nav a.active { background: #fff; border-color: var(--line); color: var(--text); }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 38px; height: 22px; border-radius: 999px; background: #d9d1c6; position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.toggle input:checked + .switch { background: var(--ok); }
.toggle input:checked + .switch::after { transform: translateX(16px); }
.toggle input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px 72px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 12px 0 24px; }
.page-header h1 { font-size: clamp(36px, 5vw, 52px); }

/* editor (architect only) */
.editor-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0 0 20px; padding: 10px 14px; background: var(--edit-bg); border: 1px solid var(--edit-line); border-radius: 14px; }
.editor-back { color: var(--edit); font-size: 14px; font-weight: 500; text-decoration: none; }
.tabs { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; color: var(--edit-text); font-size: 14px; text-decoration: none; }
.tab.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.preview-note { flex: 1; color: var(--edit-text); font-size: 14px; }
.mode-switch { display: inline-flex; padding: 3px; background: #fff; border: 1px solid var(--edit-line); border-radius: 999px; }
.mode-switch button { padding: 6px 14px; border: 0; border-radius: 999px; background: none; color: var(--edit-text); font-size: 13px; font-weight: 500; cursor: pointer; }
.mode-switch button.on { background: var(--edit); color: #fff; }
.ed-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px dashed var(--edit); border-radius: 999px; background: var(--edit-bg); color: var(--edit); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none; }
.ed-btn:hover { background: #e2ecff; }
.ed-btn.on-dark { background: rgba(255, 255, 255, .94); border: 1px solid transparent; }
.ed-btn.full { width: 100%; justify-content: center; margin-top: 14px; }
.ed-icon { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--edit-line); border-radius: 50%; background: #fff; color: var(--edit); font-size: 16px; cursor: pointer; }
.ed-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--edit); font-size: 13px; cursor: pointer; }
.armed { width: auto !important; padding: 0 12px !important; border-radius: 999px !important; border-color: #e3c5bd !important; background: var(--no-bg) !important; color: var(--no) !important; opacity: 1 !important; }
.ed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.card .ed-row { margin: 14px 0 0; }
.cover-tools { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.add-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; padding: 16px; border: 2px dashed var(--edit-line); background: var(--edit-bg); color: var(--edit); font-size: 14px; font-weight: 500; text-align: center; }
.add-tile span { font-size: 28px; line-height: 1; }
.tile.add-tile:hover { transform: none; box-shadow: none; background: #e2ecff; }
.pin.add-tile { display: flex; min-height: 140px; }
.add-row { width: 100%; padding: 12px 14px; border: 2px dashed var(--edit-line); border-radius: 12px; background: var(--edit-bg); color: var(--edit); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.stage.stage-edit { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.stage-link { display: flex; align-items: center; gap: 18px; padding: 18px 20px; text-decoration: none; }
.stage-link:hover .stage-name { text-decoration: underline; }
.stage-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 20px; border-top: 1px dashed var(--edit-line); border-radius: 0 0 var(--radius) var(--radius); background: #f8fbff; color: var(--edit-text); font-size: 13px; }
.stage-controls label { display: inline-flex; align-items: center; gap: 8px; }
.stage-controls select, .stage-controls input { padding: 5px 8px; border: 1px solid var(--edit-line); border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: 13px; }
.stage-controls.bar { margin: -8px 0 28px; border: 1px dashed var(--edit-line); border-radius: 12px; }
.stage.is-hidden .stage-link { opacity: .5; }
.s-hidden { background: transparent; border: 1px dashed #b9b0a5; color: var(--muted); }
.activity { margin-top: 16px; padding: 18px 20px; }
.activity .small-title { margin-top: 0; }
.activity-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; text-decoration: none; }
.activity-row:hover b { text-decoration: underline; }
.activity-row .muted { display: block; }
.act-kind { flex: none; margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: #eeeae4; color: var(--muted); font-size: 11px; font-weight: 600; }
.act-accepted { background: var(--ok-bg); color: var(--ok); }
.act-rejected { background: var(--no-bg); color: var(--no); }
.act-comment { background: #e7edf1; color: #4c6272; }

/* project list */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.project-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.project-cover { display: block; aspect-ratio: 16 / 9; }
.project-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.project-body b { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }

/* home */
.cover { position: relative; height: clamp(220px, 32vw, 360px); border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(24, 19, 14, .6), rgba(24, 19, 14, 0) 65%); }
.cover-text { position: relative; z-index: 1; padding: 28px 32px; color: #fff; }
.cover-text .eyebrow { color: rgba(255, 255, 255, .8); }
.cover-text h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.02; }
.cover-text p { margin: 8px 0 0; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; margin-top: 36px; align-items: start; }

.stage { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.stage + .stage { margin-top: 12px; }
.stage:hover { box-shadow: var(--shadow); }
a.stage:hover { transform: translateY(-1px); }
.stage-no { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.stage-no.done { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok); }
.stage-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.stage-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.stage-name { font-size: 17px; font-weight: 600; }
.stage-meta, .stage-date { font-size: 13px; color: var(--muted); }
.stage-date b { color: var(--text); font-weight: 500; }
.chevron { font-size: 26px; color: #bdb4a9; flex: none; }

.pill { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.s-done { background: var(--ok-bg); color: var(--ok); }
.s-waiting { background: var(--wait-bg); color: var(--wait); }
.s-preparing { background: #eeeae4; color: var(--muted); }
.s-open { background: #e7edf1; color: #4c6272; }

/* calendar */
.calendar { padding: 20px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h2 { font-size: 22px; }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-weekdays span { font-size: 11px; color: var(--muted); padding: 4px 0; }
.day { position: relative; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 13px; border: 0; border-radius: 10px; background: none; padding: 0; }
button.day { cursor: pointer; font-weight: 600; }
button.day:hover { background: var(--bg); }
.day.today { background: var(--text); color: #fff; }
.dots { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-meeting { background: var(--accent); }
.dot-deadline { background: #c39a3c; border-radius: 1px; transform: rotate(45deg); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.event { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 10px 0; cursor: pointer; }
.event:hover .event-text { color: var(--accent); }
.event-date { width: 42px; flex: none; text-align: center; font-size: 11px; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.event-date b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--text); }
.event-deadline .event-date b { color: #a07a26; }
.event-text { font-size: 14px; }
.event-text .muted { display: block; }

/* stage page */
.back { display: inline-block; margin: 8px 0 18px; color: var(--muted); font-size: 14px; text-decoration: none; }
.back:hover { color: var(--text); }
.stage-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.stage-header h1 { font-size: clamp(34px, 4.5vw, 50px); }
.stage-desc { margin: 6px 0 0; color: var(--muted); }
.stage-header-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.stage-header-side p.muted { margin: 0; }
.stage-header-side b { color: var(--text); font-weight: 500; }
.hint { color: var(--muted); margin: 0 0 20px; }
.room { margin-bottom: 36px; }
.two-cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: start; }
.two-cols p { margin-top: 0; }
.agreed { margin: 0; padding-left: 18px; }
.agreed li { margin-bottom: 6px; }
.costs { display: grid; gap: 32px; }
.costs .card p { margin-top: 0; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 20px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs span:last-child { color: var(--text); font-weight: 500; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 28px; }
.folder { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; transition: box-shadow .15s; }
.folder:hover { box-shadow: var(--shadow); }
.folder-icon { color: var(--accent); flex: none; }
.folder-thumb { width: 56px; height: 56px; border-radius: 10px; flex: none; }
.folder-name { display: block; font-weight: 600; }
.folder .muted { display: block; }

/* tiles, pins, rows */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; }
.tile-info, .row-info { display: flex; align-items: center; gap: 8px; flex: none; }
.badge { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-accepted { background: var(--ok-bg); color: var(--ok); }
.badge-rejected { background: var(--no-bg); color: var(--no); }
.badge-waiting { background: var(--wait-bg); color: var(--wait); }
.count { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }

.pins { columns: 4 160px; column-gap: 16px; }
.pin { position: relative; display: block; break-inside: avoid; margin: 0 0 16px; border-radius: 14px; overflow: hidden; cursor: pointer; }
.pin:hover .pic { filter: brightness(.93); }
.pin-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 3px 9px; font-size: 12px; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; text-decoration: none; transition: box-shadow .15s; }
.row:hover { box-shadow: var(--shadow); }
.row.static { cursor: default; }
.row.static:hover { box-shadow: none; }
.row-name { flex: 1; min-width: 160px; overflow-wrap: anywhere; }
.row-name .muted { display: block; }
.row-link { text-decoration: none; cursor: pointer; }
.row-link:hover { text-decoration: underline; }
.row-info { margin-left: auto; }
.pdf-icon { flex: none; font-size: 10px; font-weight: 600; letter-spacing: .05em; color: var(--no); background: var(--no-bg); border-radius: 6px; padding: 6px 7px; }
.pdf-icon.big { font-size: 16px; padding: 20px 18px; border-radius: 10px; }

/* placeholder pictures */
.pic { display: block; width: 100%; }
.board { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; padding: 14px; background: #fbf9f5; aspect-ratio: 4 / 3; width: 100%; }
.swatches { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.swatches i { display: block; border-radius: 8px; }
.materials { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-size: 12px; color: var(--muted); }
.materials span { border-top: 1px solid var(--line); padding-top: 6px; }
.pdf-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #faf8f4; color: #5c544b; }
.tile .pdf-preview { aspect-ratio: 10 / 7; }
.plan { width: 80%; height: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--text); background: var(--text); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.12); }
.btn-light { background: #fff; color: var(--text); border-color: var(--line); }
.btn-light:hover { filter: none; border-color: #cfc6ba; }
.btn-accept { background: var(--ok); border-color: var(--ok); }
.btn-reject { background: #fff; color: var(--no); border-color: #e3c5bd; }
.btn-reject:hover { filter: none; background: var(--no-bg); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.push-right { margin-left: auto; }

/* planner */
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-label { margin: -12px 0 20px; color: var(--muted); }
.planner { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.day-card { display: flex; flex-direction: column; min-height: 230px; padding: 16px 18px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.day-card.is-today { border-color: #cbbba5; box-shadow: var(--shadow); }
.day-card.is-past { background: #fbfaf8; }
.day-card h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; font-size: 22px; }
.day-date { font-family: Inter, system-ui, sans-serif; font-size: 13px; font-weight: 400; color: var(--muted); }
.s-today { background: var(--text); color: #fff; font-family: Inter, system-ui, sans-serif; }
.tasks { flex: 1; min-height: 102px; margin: 0; padding: 0; list-style: none; background: repeating-linear-gradient(to bottom, transparent 0 33px, #efe9e0 33px 34px); }
/* line-height = line spacing of the "paper", so wrapped tasks stay on the lines */
.task { display: flex; align-items: flex-start; gap: 6px; }
.task label { flex: 1; display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 34px; cursor: pointer; }
.task input { flex: none; width: 16px; height: 16px; margin: 9px 0 0; accent-color: var(--accent); }
.task-del { margin-top: 7px; }
.task.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
.task-del { padding: 2px 6px; border: 0; border-radius: 999px; background: none; color: #b9b0a5; font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; }
.task:hover .task-del, .task-del:focus { opacity: 1; }
.task-form input { width: 100%; padding: 8px 0 2px; border: 0; background: transparent; font: inherit; font-size: 14px; outline: none; }
.task-form input::placeholder { color: #b0a69a; }

/* notebook */
.notebook { max-width: 860px; }
.private-note { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; background: var(--text); color: #efe7da; font-size: 14px; }
.nb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; }
.nb-toolbar button { padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; background: none; font-size: 14px; cursor: pointer; }
.nb-toolbar button:hover { background: var(--bg); border-color: var(--line); }
.nb-status { margin-left: auto; padding-right: 6px; }
.nb-editor { min-height: 420px; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 12px 12px; font-size: 16px; line-height: 1.65; outline: none; }
.nb-editor:focus { border-color: #cbbba5; }
.nb-editor h2 { margin: 18px 0 8px; font-size: 28px; }
.nb-editor h2:first-child { margin-top: 0; }
.nb-editor p { margin: 0 0 10px; }
.nb-editor img { max-width: min(100%, 420px); height: auto; border-radius: 10px; vertical-align: top; }
.nb-editor a { color: var(--edit); }

/* members, settings, forms */
.members { display: grid; gap: 28px; max-width: 860px; }
.members .card p { margin-top: 0; }
.invite { display: flex; gap: 10px; margin: 14px 0 6px; }
.invite input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: inherit; font-size: 14px; }
.invite.off input { color: var(--muted); text-decoration: line-through; }
.field { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fdfcfa; font: inherit; }
.logo-preview { display: flex; align-items: center; gap: 14px; min-height: 84px; margin-bottom: 4px; padding: 20px; border: 1px dashed var(--line); border-radius: 12px; }
.form-modal { display: flex; flex-direction: column; gap: 6px; }
.form-modal h2 { margin-bottom: 8px; padding-right: 32px; }
.field-label { margin-top: 10px; font-size: 13px; font-weight: 500; }
.form-modal input, .form-modal textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fdfcfa; font: inherit; }

/* modal */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(32, 27, 22, .5); }
.overlay[hidden] { display: none; }
.overlay-top { z-index: 60; }
.modal-box { position: relative; width: 100%; max-width: 1040px; max-height: calc(100vh - 48px); overflow: auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal-box.narrow { max-width: 520px; grid-template-columns: 1fr; }
.modal-preview { display: flex; align-items: center; justify-content: center; min-height: 320px; padding: 28px; background: #f1ece5; }
.modal-preview .pic { width: min(100%, calc(70vh * var(--r))); border-radius: 10px; }
.modal-preview .board { border-radius: 10px; }
.modal-preview .materials { font-size: 14px; }
.modal-preview .pdf-preview { width: 100%; background: transparent; }
.modal-preview .plan { width: 100%; max-width: 520px; }
.modal-details { padding: 30px 28px; }
.modal-details h2 { font-size: 30px; padding-right: 32px; }
.modal-details .title-row { padding-right: 36px; margin-bottom: 0; }
.modal-details .title-row h2 { padding-right: 0; }
.close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); font-size: 22px; line-height: 1; cursor: pointer; }
.decision { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin: 16px 0 6px; border-radius: 12px; font-weight: 600; }
.decision span { font-size: 13px; font-weight: 400; }
.decision.accepted { background: var(--ok-bg); color: var(--ok); }
.decision.rejected { background: var(--no-bg); color: var(--no); }
.decision.waiting { background: var(--wait-bg); color: var(--wait); }
.history-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.thread { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.comment { padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.comment.architect { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.comment p { margin: 4px 0 0; overflow-wrap: anywhere; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 13px; }
.comment-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fdfcfa; font: inherit; resize: vertical; }
.comment-form textarea:focus { outline: 2px solid #d9cbb8; border-color: #cbbba5; }
.day-event + .day-event { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.day-event p { margin: 6px 0 0; }
.day-event .ed-btn { margin-top: 12px; }
.confirm-box { padding: 28px; }
.confirm-box p { margin: 10px 0 0; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: var(--text); color: #fff; font-size: 14px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (hover: none) { .task-del { opacity: 1; } }
@media (max-width: 920px) {
  .home-grid { grid-template-columns: 1fr; }
  .two-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .overlay { padding: 0; align-items: flex-end; }
  .modal-box, .modal-box.narrow { grid-template-columns: 1fr; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .modal-preview { min-height: 0; padding: 16px; }
  .modal-preview .pic { width: min(100%, calc(45vh * var(--r))); }
  .modal-details { padding: 22px 20px 28px; }
  .stage-header-side { align-items: flex-start; text-align: left; }
  .editor-bar { position: static; }
}
@media (max-width: 560px) {
  .container, .header { padding-left: 16px; padding-right: 16px; }
  .cover-text { padding: 20px; }
  .stage, .stage-link { padding: 14px; gap: 12px; }
  .stage.stage-edit { padding: 0; }
  .user .avatar { display: none; }
  .main-nav a { padding: 6px 10px; }
  .stage-no { width: 36px; height: 36px; font-size: 19px; }
  .chevron { display: none; }
  .nb-editor { padding: 18px; }
}

/* ---------- app (added in the real application) ---------- */
.placeholder-cover { background: linear-gradient(#6f6253, #6f6253) 96% 80% / 22% 12% no-repeat, radial-gradient(ellipse 13% 15% at 66% 30%, #f5f0e8 97%, transparent 100%), linear-gradient(#f5f0e8, #f5f0e8) 71.6% 51.7% / 26% 42% no-repeat, linear-gradient(180deg, #d9ccb9 0 76%, #9c8468 76% 100%); }
.stages-section { margin-top: 36px; max-width: 820px; }
.stage.is-hidden { opacity: .6; }
.user form { margin: 0; }
.link-btn { padding: 0; border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.flash { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); }
.flash p { margin: 0; }
.auth { max-width: 480px; margin: 32px auto; }
.auth h1 { font-size: 40px; margin-bottom: 10px; }
.auth > p { margin: 0 0 18px; }
.form-stack { display: grid; gap: 16px; }
.form-stack > div { display: flex; flex-direction: column; gap: 6px; }
.form-stack label { font-size: 13px; font-weight: 500; }
.form-stack input:not([type="checkbox"]):not([type="hidden"]), .form-stack textarea, .form-stack select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fdfcfa; font: inherit; }
.form-stack input:focus, .form-stack textarea:focus { outline: 2px solid #d9cbb8; border-color: #cbbba5; }
.form-stack .btn { justify-self: start; }
.helptext { font-size: 12px; color: var(--muted); }
.helptext ul { margin: 0; padding-left: 18px; }
.errorlist { margin: 0; padding: 0; list-style: none; color: var(--no); font-size: 13px; }
.errorlist.nonfield { padding: 10px 12px; border-radius: 12px; background: var(--no-bg); }
a.tile, a.row, a.pin { color: inherit; text-decoration: none; }
a.tile { display: block; }
.tile-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #f1ece5; }
.tile-note { display: block; font-size: 13px; color: var(--muted); }
.pin img { display: block; width: 100%; height: auto; }
img.folder-thumb { object-fit: cover; }
.item-page { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); overflow: hidden; }
.item-page .modal-preview { flex-direction: column; gap: 16px; }
.item-img { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; border-radius: 10px; }
.pdf-frame { display: block; width: 100%; height: 72vh; border: 0; border-radius: 10px; background: #fff; }
.pdf-frame .pdf-preview { height: 100%; }
@media (max-width: 760px) {
  .item-page { grid-template-columns: 1fr; }
  .pdf-frame { height: 60vh; }
}
.flash.error { background: var(--no-bg); color: var(--no); }
.flash.warning { background: var(--wait-bg); color: var(--wait); }
.dialog { width: calc(100% - 32px); max-width: 480px; padding: 0; border: 0; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.dialog::backdrop { background: rgba(32, 27, 22, .5); }
.dialog-body { padding: 28px; }
.dialog-body h2 { margin-bottom: 10px; font-size: 30px; }
.dialog-body p { margin: 0 0 10px; }
.item-page .comment-form { margin-top: 12px; }
.flash.info { background: var(--edit-bg); color: var(--edit-text); }
.project-body-grid { margin-top: 36px; max-width: 820px; }
.project-body-grid.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; max-width: none; align-items: start; }
.stage.stage-edit.is-hidden { opacity: 1; }
.stage.stage-edit.is-hidden .stage-link { opacity: .5; }
.stage-controls form { margin: 0; }
.stage-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ed-btn.small { padding: 5px 12px; }
details.inline-edit { margin-top: 14px; }
details.inline-edit > summary { display: inline-flex; list-style: none; }
details.inline-edit > summary::-webkit-details-marker { display: none; }
details.inline-edit[open] > summary { margin-bottom: 12px; }
.stage-header-side details.inline-edit { margin-top: 0; max-width: 420px; text-align: left; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form input { flex: 1; min-width: 220px; padding: 9px 14px; border: 1px solid var(--edit-line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; }
.cover-preview { display: block; width: 100%; max-height: 220px; margin-bottom: 16px; border-radius: 12px; object-fit: cover; }
@media (max-width: 920px) {
  .project-body-grid.with-side { grid-template-columns: 1fr; }
}
.form-stack > .buttons { flex-direction: row; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.upload-form { margin: 0; }
.upload-drop { cursor: pointer; }
.upload-drop:focus-within { outline: 2px solid var(--edit); outline-offset: 2px; }
.upload-drop.drag { border-color: var(--edit); background: #dce8ff; }
.upload-drop.busy { opacity: .6; pointer-events: none; }
.upload-drop.busy::after { content: "Wgrywanie…"; display: block; font-weight: 600; }
.upload-hint { display: block; font-size: 12px; font-weight: 400; color: var(--edit-text); }
label.add-row { display: block; }
.add-row .upload-hint { display: inline; margin-left: 8px; }
.tiles > .upload-form > label { height: 100%; min-height: 180px; border-radius: var(--radius); }
.pins > .upload-form { display: block; break-inside: avoid; }
.pins > .upload-form > label { margin: 0 0 16px; border-radius: 14px; }
.ed-btn.danger { border-color: #e3c5bd; background: var(--no-bg); color: var(--no); }
.ed-row { align-items: flex-start; }
.ed-row details.inline-edit { margin-top: 0; }
.ed-row form { margin: 0; }
.ed-row.tight { margin: 0; }
.title-row { flex-wrap: wrap; }
.item-tools { margin: 14px 0 4px; }
.tile.add-tile, .pin.add-tile { border: 2px dashed var(--edit-line); background: var(--edit-bg); }
a.icon-btn { display: grid; place-items: center; color: inherit; text-decoration: none; }
a.day { color: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
a.day:hover { background: var(--bg); }
a.day.today:hover { background: var(--text); }
.day.selected { outline: 2px solid var(--accent); outline-offset: -2px; }
a.event { color: inherit; text-decoration: none; }
.calendar .ed-btn.full { margin-bottom: 4px; }
.day-panel { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--bg); }
.day-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.day-panel-head a { color: var(--muted); font-size: 22px; line-height: 1; text-decoration: none; }
.day-panel .day-event h3 { font-size: 20px; }
.day-panel .ed-btn { margin-top: 10px; }
.danger-zone { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.task .task-check { flex: 1; min-width: 0; margin: 0; }
.task form { margin: 0; }
.task-tag { display: inline-block; max-width: 130px; padding: 0 8px; overflow: hidden; border-radius: 999px; background: #eeeae4; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 20px; text-decoration: none; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.task-tag:hover { color: var(--text); }
.task-form { display: flex; align-items: center; gap: 6px; margin: 0; }
.task-form input[type="text"] { flex: 1; min-width: 0; }
.task-project { flex: none; max-width: 112px; padding: 2px 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; }
.logo-preview .logo-img { height: 56px; }
.form-stack > div:has(> input[type="checkbox"]) { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 10px; }
.notify-card { margin: 0 0 16px; padding: 16px 18px; }
.notify-card .toggle { align-items: flex-start; color: var(--text); font-size: 14px; }
.notify-card .switch { margin-top: 2px; }
.notify-card .muted { display: block; margin-top: 2px; }
/* phones */
.pdf-mobile { display: none; }
.members .row-name { flex: 1 1 200px; min-width: 0; }
.members .row form { margin-left: auto; }
.logo-preview { flex-wrap: wrap; }
@media (max-width: 760px) {
  .pdf-frame { display: none; }
  .pdf-mobile { display: flex; padding: 28px 0 8px; }
}
