/* Pályázatsegítő – design elv: „A DOSSZIÉ”.
   A portál egy gondosan vezetett iratmappa: minden projekt egy füles mappa, minden hiánypótlási pont egy lap benne.
   Paletta: mélyzöld + elefántcsont + menta, kevés sárgaréz. Színt CSAK a státusz kap (lásd --hianyzik … --elfogadva).
   Betűk: Fraunces (címek, számok – dőltje a kiemelés) + Instrument Sans (szöveg), saját tárhelyről (docs/fonts). */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-latin-wght-normal.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: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-latin-wght-italic.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: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-latin-ext-wght-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/instrument-sans-latin-wght-normal.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: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #f3f0e6; --card: #fffdf8; --ink: #14251f; --muted: #667067; --line: #e2dccb; --soft: #ebe7da;
  --forest: #15382c; --forest-2: #1f4c3c; --mint: #cfe6d7; --mint-2: #e7f1e9; --brass: #a5824a;
  --hianyzik: #827e6e; --feltoltve: #2d5d8c; --javitando: #b3472a; --elfogadva: #1e6a49;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 0 rgba(20, 37, 31, .04), 0 14px 34px -20px rgba(20, 37, 31, .35);
  --r: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 560; line-height: 1.12; letter-spacing: -.012em; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
h2 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; font-weight: 480; }
a { color: inherit; }
p { margin: 0 0 .75em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.loading { padding: 5rem 1rem; text-align: center; color: var(--muted); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem 6rem; }
.narrow { max-width: 720px; }
[hidden] { display: none !important; }

/* ── vezérlők ── */
button, input, select, textarea { font: inherit; color: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em; cursor: pointer;
  padding: .62em 1.15em; border: 1.5px solid rgba(20, 37, 31, .2); border-radius: 999px; background: transparent;
  font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--ink); background: rgba(20, 37, 31, .04); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--forest); border-color: var(--forest); color: #f6f3ea; box-shadow: 0 8px 18px -12px rgba(21, 56, 44, .8); }
.btn.primary:hover { background: var(--forest-2); border-color: var(--forest-2); }
.btn.ok { border-color: var(--elfogadva); background: var(--elfogadva); color: #fff; }
.btn.ok:hover { filter: brightness(1.08); }
.btn.warn { border-color: rgba(179, 71, 42, .45); color: var(--javitando); }
.btn.warn:hover { border-color: var(--javitando); background: rgba(179, 71, 42, .06); }
.btn.quiet { border-color: transparent; font-weight: 550; padding-inline: .8em; color: var(--forest-2); }
.btn.quiet:hover { background: var(--mint-2); border-color: transparent; }
.btn.danger { border-color: transparent; color: var(--javitando); font-weight: 550; padding-inline: .8em; }
.btn.danger:hover { background: rgba(179, 71, 42, .08); border-color: transparent; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.done { border-color: var(--elfogadva); color: var(--elfogadva); background: var(--mint-2); }
:focus-visible { outline: 2.5px solid var(--brass); outline-offset: 2px; }
label { display: block; font-weight: 600; font-size: .875rem; margin: 0 0 1rem; }
label .hint { display: block; font-weight: 400; color: var(--muted); }
input[type=text], input[type=password], input[type=email], input[type=date], select, textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .7em .85em; background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; font-weight: 400; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 4.5em; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-2); outline: none; box-shadow: 0 0 0 4px var(--mint-2); }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.row.end { justify-content: flex-end; }
.spread { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; justify-content: space-between; }

/* ── márkajel: egy kis mappafül pipával ── */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.mark { flex: none; width: 30px; height: 26px; border-radius: 3px 8px 7px 7px; background: var(--forest); position: relative; margin-top: 4px; }
.mark::before { content: ""; position: absolute; left: 0; top: -5px; width: 15px; height: 7px; border-radius: 4px 5px 0 0; background: var(--forest); }
.mark::after { content: ""; position: absolute; left: 9px; top: 6px; width: 11px; height: 6px; border-left: 2.5px solid var(--mint); border-bottom: 2.5px solid var(--mint); transform: rotate(-45deg); border-radius: 1px; }
.brand.light .mark, .brand.light .mark::before { background: var(--mint); }
.brand.light .mark::after { border-color: var(--forest); }

/* ── fejléc ── */
.top { position: sticky; top: 0; z-index: 5; background: rgba(243, 240, 230, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .inner { max-width: 1040px; margin: 0 auto; padding: .7rem 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: center; }
.top .brand { margin-right: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: .2rem; font-size: .9375rem; }
.top nav a, .top nav button { background: none; border: 0; padding: .45em .95em; border-radius: 999px; cursor: pointer; text-decoration: none; color: var(--muted); font-weight: 550; transition: background .15s, color .15s; }
.top nav a:hover, .top nav button:hover { color: var(--ink); background: var(--soft); }
.top nav a[aria-current] { color: #f6f3ea; background: var(--forest); }
.page-head { padding: 2.6rem 0 1.4rem; }
.page-head .sub { color: var(--muted); margin: .5rem 0 0; }
.back { display: inline-block; margin-bottom: .9rem; font-size: .875rem; font-weight: 550; text-decoration: none; opacity: .75; }
.back:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ── belépés: bal oldalt a mélyzöld „borító”, jobb oldalt az űrlap ── */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; background: var(--forest); color: #f1eee3; padding: clamp(1.75rem, 4vw, 3.25rem); display: flex; flex-direction: column; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 100%, rgba(207, 230, 215, .16), transparent 60%), repeating-linear-gradient(0deg, transparent 0 31px, rgba(241, 238, 227, .035) 31px 32px); pointer-events: none; }
.auth-art > * { position: relative; }
.auth-art .deco { position: absolute; right: -64px; top: 15%; width: min(46%, 330px); aspect-ratio: 4 / 3; pointer-events: none; }
.deco i { position: absolute; inset: 0; border: 1.5px solid rgba(207, 230, 215, .2); border-radius: 0 18px 18px 18px; background: rgba(207, 230, 215, .035); }
.deco i::before { content: ""; position: absolute; left: -1.5px; top: -27px; width: 38%; height: 27px; border: 1.5px solid rgba(207, 230, 215, .2); border-bottom: 0; border-radius: 11px 11px 0 0; background: inherit; }
.deco i:nth-child(1) { transform: rotate(-10deg) translate(-44px, 30px); }
.deco i:nth-child(2) { transform: rotate(-4deg) translate(-18px, 12px); }
.deco i:nth-child(3) { transform: rotate(3deg); background: rgba(207, 230, 215, .07); border-color: rgba(207, 230, 215, .32); }
.deco i:nth-child(3)::before { border-color: rgba(207, 230, 215, .32); }
.deco i:nth-child(3)::after { content: ""; position: absolute; left: 12%; right: 30%; top: 26%; height: 44%; background: repeating-linear-gradient(180deg, rgba(207, 230, 215, .3) 0 2px, transparent 2px 24px); }
.auth-art h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 500; margin: auto 0 1rem; max-width: 11em; }
.auth-art h1 em { color: var(--mint); }
.auth-art .lead { max-width: 30em; color: rgba(241, 238, 227, .78); font-size: 1.0625rem; margin: 0 0 2rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; counter-reset: s; max-width: 26em; }
.steps li { counter-increment: s; display: flex; gap: .9rem; align-items: baseline; padding-top: .55rem; border-top: 1px solid rgba(241, 238, 227, .16); color: rgba(241, 238, 227, .9); }
.steps li::before { content: counter(s, decimal-leading-zero); font: italic 500 1.05rem var(--display); color: var(--brass); filter: brightness(1.5); }
.auth-form { display: grid; place-items: center; padding: 2rem 1.25rem; }
.auth-form .box { width: 100%; max-width: 380px; }
.auth-form h2 { font-size: 2rem; margin-bottom: .35rem; }
.auth-form .sub { color: var(--muted); margin-bottom: 1.75rem; }
.auth-form .btn { width: 100%; padding-block: .8em; margin-top: .35rem; }
.auth-form .note { margin: 1.5rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

/* ── státusz: jelvény + laponkénti sáv ── */
.stamp { display: inline-flex; align-items: center; gap: .45em; font: 650 .75rem/1 var(--sans); padding: .5em .8em .5em .7em; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, currentColor 11%, transparent); }
.stamp::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.s-hianyzik { color: var(--hianyzik); } .s-feltoltve { color: var(--feltoltve); }
.s-javitando { color: var(--javitando); } .s-elfogadva { color: var(--elfogadva); }
.stamp.s-hianyzik { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 45%, transparent); }
.stamp.s-hianyzik::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.segbar { display: flex; gap: 4px; height: 8px; }
.segbar span { flex: 1; min-width: 5px; max-width: 64px; border-radius: 99px; background: currentColor; }
.segbar .s-hianyzik { background: rgba(130, 126, 110, .22); }
.dot { display: inline-block; font: 700 .6875rem/1 var(--sans); letter-spacing: .03em; background: var(--javitando); color: #fff; padding: .4em .65em; border-radius: 99px; }
.due { font-variant-numeric: tabular-nums; }
.due.soon { color: var(--javitando); font-weight: 600; }
.ring { --p: 0; flex: none; width: 96px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--mint) calc(var(--p) * 1%), rgba(241, 238, 227, .16) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--forest); }
.ring span { position: relative; font: 500 1.5rem/1 var(--display); color: #f6f3ea; font-variant-numeric: tabular-nums; }
.ring small { font: 500 .8rem var(--sans); opacity: .65; }

/* ── projektlista: füles mappák ── */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 2.6rem 1.5rem; padding-top: .9rem; }
.folder { position: relative; display: block; margin-top: 28px; text-decoration: none; color: inherit; }
.folder .tab {
  position: absolute; left: 0; top: -28px; height: 29px; max-width: 84%; padding: 0 2rem 0 1rem;
  display: flex; align-items: center; gap: .55rem; background: var(--forest); color: #f1eee3;
  border-radius: 11px 0 0 0; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%);
  font: 600 .8125rem var(--sans); letter-spacing: .01em;
}
.folder .tab b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder .tab i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ffb38f; box-shadow: 0 0 0 3px rgba(255, 179, 143, .25); }
.folder .sheet {
  display: grid; gap: .8rem; min-height: 172px; align-content: start; padding: 1.2rem 1.25rem 1.15rem;
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--forest); border-radius: 0 var(--r) var(--r) var(--r);
  box-shadow: 0 6px 0 -3px var(--card), 0 6px 0 -2px var(--line), 0 11px 0 -6px var(--card), 0 11px 0 -5px var(--line), var(--shadow);
  transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s;
}
.folder:hover .sheet { transform: translateY(-4px); }
.folder .f-title { font: 560 1.3rem/1.2 var(--display); letter-spacing: -.01em; overflow-wrap: break-word; }
.folder .f-meta { color: var(--muted); font-size: .8125rem; margin-top: -.45rem; }
.folder .f-foot { display: flex; flex-wrap: wrap; gap: .2rem 1rem; justify-content: space-between; font-size: .8125rem; color: var(--muted); margin-top: auto; padding-top: .3rem; }
.folder .f-foot strong { color: var(--ink); font-weight: 600; }
.folder.archived .tab { background: var(--hianyzik); } .folder.archived .sheet { border-top-color: var(--hianyzik); }
.empty { padding: 3.5rem 1.5rem; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r); background: rgba(255, 253, 248, .5); }
.empty strong { display: block; font: 540 1.35rem var(--display); color: var(--ink); margin-bottom: .35rem; }

/* ── ügyféllista ── */
.people { display: grid; gap: .75rem; }
.person { display: grid; grid-template-columns: auto 1fr auto; gap: .4rem 1rem; align-items: center; padding: .95rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.person .avatar { width: 44px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--forest); font: 560 1.1rem var(--display); }
.person .name { font: 560 1.15rem/1.25 var(--display); }

/* ── projekt fejléc: a mappa „borítója” ── */
.hero { margin: 1.6rem 0 1rem; padding: clamp(1.3rem, 3vw, 2.1rem); border-radius: 22px; background: var(--forest); color: #f1eee3; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 120% at 100% 0, rgba(207, 230, 215, .15), transparent 55%); pointer-events: none; }
.hero > * { position: relative; }
.hero-main { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; }
.hero-main > div:first-child { min-width: 0; }
.hero .client { margin: 0 0 .5rem; color: var(--mint); font-weight: 600; font-size: .9375rem; }
.hero h1 { font-weight: 500; overflow-wrap: break-word; }
.hero .facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; font-size: .875rem; }
.hero .facts > * { padding: .4em .85em; border-radius: 99px; background: rgba(241, 238, 227, .1); color: #f1eee3; }
.hero .facts .due.soon { background: #ffd9c9; color: #7a2a12; }
.hero .segbar { margin-top: 1.4rem; height: 7px; }
.hero .segbar span { max-width: none; }
.hero .segbar .s-hianyzik { background: rgba(241, 238, 227, .16); }
.hero .segbar .s-feltoltve { background: #8fb9e3; } .hero .segbar .s-javitando { background: #f09a7a; } .hero .segbar .s-elfogadva { background: var(--mint); }
.toolbar { display: flex; flex-wrap: wrap; gap: .15rem; align-items: center; margin: 0 0 1.4rem; font-size: .875rem; }
.toolbar .btn { font-size: .875rem; }
.toolbar .btn.danger { margin-left: auto; }
.notice { padding: .75rem 1rem; border-radius: 12px; background: #fbe9e1; color: #7a2a12; font-size: .9375rem; margin: 0 0 1rem; }
.notice a { font-weight: 600; }
.banner { padding: .75rem 1rem; border-radius: 12px; background: #fbe9e1; color: #7a2a12; margin-bottom: 1rem; font-size: .9375rem; overflow-wrap: anywhere; }

/* ── pontok: lapok a mappában ── */
.point { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: .8rem; transition: box-shadow .2s; }
.point::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: currentColor; }
.point[open] { box-shadow: var(--shadow); }
.point > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto auto; gap: .2rem 1rem; align-items: center; padding: 1.05rem 1.15rem 1.05rem 1.35rem; color: var(--ink); border-radius: var(--r); }
.point > summary::-webkit-details-marker { display: none; }
.point > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; opacity: .7; }
.point[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.point .no { font: italic 480 1.75rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--brass); min-width: 1.5em; }
.point .title { font: 560 1.2rem/1.25 var(--display); letter-spacing: -.005em; overflow-wrap: break-word; min-width: 0; }
.point .badges { display: flex; gap: .5rem; align-items: center; }
.point .body { padding: 0 1.35rem 1.25rem; color: var(--ink); }
.point .desc { white-space: pre-line; padding: .1rem 0 .2rem; color: #33443c; overflow-wrap: anywhere; max-width: 62ch; }
.point h3 { font: 650 .8125rem/1 var(--sans); letter-spacing: 0; color: var(--muted); margin: 1.4rem 0 .6rem; display: flex; align-items: center; gap: .75rem; }
.point h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.files li { display: flex; flex-wrap: wrap; gap: .15rem .8rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.files .ext { flex: none; min-width: 3.1em; text-align: center; font: 700 .625rem/1 var(--sans); letter-spacing: .06em; padding: .7em .4em; border-radius: 7px; background: var(--mint-2); color: var(--forest-2); }
.files .fname { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-weight: 600; overflow-wrap: anywhere; }
.files .fname:hover { text-decoration: underline; text-underline-offset: 3px; }
.files .info { color: var(--muted); font-size: .8125rem; margin-right: auto; }
.files .act { background: none; border: 0; padding: .2em .4em; border-radius: 6px; cursor: pointer; font-size: .8125rem; font-weight: 550; color: var(--forest-2); }
.files .act:hover { background: var(--mint-2); }
.files .act.del { color: var(--javitando); } .files .act.del:hover { background: rgba(179, 71, 42, .08); }
.drop { display: grid; justify-items: center; gap: .15rem; margin: .7rem 0 0; padding: 1.3rem 1rem; border: 1.5px dashed rgba(31, 76, 60, .35); border-radius: 14px; background: var(--mint-2); text-align: center; cursor: pointer; font-weight: 400; font-size: .9375rem; color: #3d5248; transition: background .15s, border-color .15s; }
.drop::before { content: "↑"; display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: .35rem; border-radius: 50%; background: var(--forest); color: var(--mint); font: 600 1.05rem var(--sans); }
.drop:hover, .drop.over { background: var(--mint); border-color: var(--forest); }
.drop strong { color: var(--forest); font-weight: 650; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-status { display: block; margin-top: .4rem; }
.thread { display: grid; gap: .5rem; }
.msg { padding: .65rem .9rem; border-radius: 4px 14px 14px 14px; background: var(--soft); max-width: min(92%, 60ch); justify-self: start; }
.msg.mine { justify-self: end; border-radius: 14px 4px 14px 14px; background: var(--forest); color: #f1eee3; }
.msg .who { font-size: .75rem; opacity: .7; margin-bottom: .1rem; }
.msg .text { white-space: pre-line; overflow-wrap: anywhere; }
.composer textarea { margin: .6rem 0; }
.locked { margin: .8rem 0 0; padding: .7rem .9rem; border-radius: 12px; background: var(--mint-2); font-size: .9375rem; color: var(--elfogadva); font-weight: 550; }
.tools { margin-top: 1.1rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .8125rem; }
.tools .btn { font-size: .8125rem; }
.tools .btn.danger { margin-left: auto; }

/* ── párbeszédablak, értesítés, kártyák ── */
dialog { width: min(540px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); border: 0; border-radius: 22px; padding: 1.75rem; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(20, 37, 31, .55); }
dialog::backdrop { background: rgba(21, 56, 44, .5); backdrop-filter: blur(3px); }
dialog h2 { margin-bottom: 1.1rem; font-size: 1.6rem; }
dialog label { margin-bottom: .85rem; }
dialog .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
dialog .actions { position: sticky; bottom: -1.75rem; margin: 1.1rem -1.75rem -1.75rem; padding: .9rem 1.75rem 1.5rem; background: var(--card); border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; }
dialog textarea.letter { min-height: 13.5em; font-size: .9375rem; line-height: 1.5; background: #fff; }
.toasts { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: grid; gap: .5rem; z-index: 99; width: min(480px, calc(100vw - 2rem)); pointer-events: none; }
.toast { background: var(--ink); color: #f6f3ea; padding: .8rem 1.1rem; border-radius: 14px; font-size: .9375rem; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); animation: rise .25s cubic-bezier(.2, .7, .2, 1); }
.toast.err { background: var(--javitando); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; margin-bottom: 1.1rem; }
.card h2 { margin-bottom: 1rem; }
table.log { width: 100%; border-collapse: collapse; font-size: .8125rem; }
table.log td { padding: .45rem .6rem .45rem 0; border-bottom: 1px solid var(--soft); vertical-align: top; overflow-wrap: anywhere; }
.scroll-x { overflow-x: auto; }

@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-art { padding: 1.4rem 1.25rem 1.6rem; }
  .auth-art h1 { margin: 1.6rem 0 .6rem; font-size: 2rem; }
  .auth-art .lead { margin-bottom: 0; font-size: 1rem; }
  .steps, .auth-art .deco { display: none; }
  .auth-form { place-items: start center; padding-top: 2rem; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 1rem; }
  .top .inner { padding-inline: 1rem; }
  .top nav a, .top nav button { padding-inline: .7em; }
  .point > summary { grid-template-columns: auto 1fr auto; padding-left: 1.15rem; }
  .point .badges { grid-column: 1 / -1; grid-row: 2; }
  .point > summary::after { grid-column: 3; grid-row: 1; }
  .point .body { padding-inline: 1.15rem; }
  .hero-main { display: block; position: static; }
  .hero h1 { font-size: 1.7rem; }
  .hero .back { margin-bottom: 1.5rem; }
  .ring { position: absolute; top: 1.1rem; right: 1.1rem; width: 58px; } .ring::before { inset: 5px; } .ring span { font-size: 1rem; } .ring small { font-size: .65rem; }
  dialog { padding: 1.35rem; } dialog .two { grid-template-columns: 1fr; }
  dialog .actions { bottom: -1.35rem; margin: 1rem -1.35rem -1.35rem; padding: .8rem 1.35rem 1.2rem; }
  .person { grid-template-columns: auto 1fr; }
  .person .row { grid-column: 1 / -1; }
  .btn { white-space: normal; }
  .toolbar .btn.danger, .tools .btn.danger { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
