:root {
  --red: #AF271D;
  --red-dark: #8A1E16;
  --red-deep: #70130C;
  --red-soft: #FBEDEB;
  --ink: #2C2C2C;
  --muted: #6B6B6B;
  --line: #E7E3E1;
  --bg: #FAFAF9;
  --card: #FFFFFF;
  --surface-2: #F2EFED;
  --hover: #F7F5F4;
  --nav-bg: rgba(250,250,249,.85);
  --footer: #2C2C2C;
  --green: #1E8A5A;
  --green-soft: #E6F4EF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
input, select, textarea { color: inherit; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 38px; height: 38px; }
.brand small { font-weight: 500; color: var(--red); font-size: .8rem; letter-spacing: .02em; padding: 2px 8px; background: var(--red-soft); border-radius: 99px; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { white-space: nowrap; padding: 8px 13px; border-radius: 99px; font-weight: 500; font-size: .95rem; color: var(--muted); transition: .15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--red); background: var(--red-soft); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 99px; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; font-family: inherit; transition: .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before { content: ""; position: absolute; right: -180px; top: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, var(--red-soft) 0%, rgba(251,237,235,0) 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--red); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 22px 0 32px; }
.search { display: flex; background: var(--card); border: 1.5px solid var(--line); border-radius: 99px; padding: 6px; box-shadow: var(--shadow); max-width: 580px; }
.search:focus-within { border-color: var(--red); }
.search input { flex: 1; border: 0; outline: 0; background: none; padding: 10px 18px; font: inherit; font-size: 1rem; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 7px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; font-weight: 500; cursor: pointer; transition: .15s; font-family: inherit; color: var(--ink); }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.hero-art { position: relative; justify-self: center; }
.hero-art .blob { width: 340px; height: 340px; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: var(--red); display: grid; place-items: center; }
.hero-art .blob img { width: 78%; filter: drop-shadow(0 12px 18px rgba(0,0,0,.25)); animation: waddle 4s ease-in-out infinite; transform-origin: bottom center; }
@keyframes waddle { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.float-card { position: absolute; background: var(--card); border-radius: 12px; padding: 10px 14px; box-shadow: 0 8px 28px rgba(0,0,0,.12); font-size: .82rem; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.float-card b { display: block; font-size: .9rem; }
.float-card.a { left: -60px; top: 40px; }
.float-card.b { right: -40px; bottom: 30px; }
.logo-tile { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 700; font-size: .85rem; flex-shrink: 0; }

/* Stats */
.stats { background: var(--ink); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 36px; padding-bottom: 36px; }
.stat { padding: 0 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--display); font-size: 2.3rem; display: block; line-height: 1; }
.stat b span { color: #E8574B; }
.stat small { color: rgba(255,255,255,.65); font-size: .9rem; }

/* Sections */
section.block { padding: 80px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; gap: 16px; }
.sec-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.sec-head p { color: var(--muted); margin: 8px 0 0; }
.link-arrow { color: var(--red); font-weight: 600; white-space: nowrap; }
.link-arrow:hover { color: var(--red-dark); }

/* Job cards */
.job-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.job-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: .18s; cursor: pointer; }
.job-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.job-top { display: flex; gap: 12px; align-items: center; }
.job-top .co { font-size: .85rem; color: var(--muted); }
.job-card h3 { font-size: 1.12rem; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink); }
.tag.t-harjoittelu { background: #E8F1FB; color: #1F4E79; }
.tag.t-kesätyö { background: #FFF4DC; color: #8A5A00; }
.tag.t-vakituinen { background: #E6F4EF; color: #2E7D6B; }
.tag.t-gradu { background: #F0EAF8; color: #6A3D9A; }
.job-meta { margin-top: auto; display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--line); }
.job-meta .soon { color: var(--red); font-weight: 600; }

/* Events */
.events { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-list { display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 76px 1fr 220px auto; gap: 24px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); transition: .15s; }
.event:hover { border-color: var(--red); }
.date-tile { text-align: center; background: var(--red-soft); color: var(--red); border-radius: 12px; padding: 8px 0; font-family: var(--display); }
.date-tile b { display: block; font-size: 1.6rem; line-height: 1; }
.date-tile small { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.event h3 { font-size: 1.08rem; font-weight: 600; }
.event .where { font-size: .88rem; color: var(--muted); }
.cap small { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--red); border-radius: 99px; }
.event .btn { padding: 8px 16px; font-size: .88rem; }
.event .btn.full { background: var(--surface-2); color: var(--muted); cursor: default; }

/* Companies */
.co-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.co-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 30px 18px 18px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: .15s; }
.co-card:hover { border-color: var(--red); }
.co-card .logo-tile { width: 46px; height: 46px; border-radius: 12px; font-size: 1rem; }
.co-card b { display: block; font-size: .98rem; }
.co-card small { color: var(--muted); font-size: .82rem; }
.co-card > div:not(.logo-tile) { min-width: 0; }
.co-card .open { position: absolute; top: 10px; right: 10px; white-space: nowrap; font-size: .72rem; font-weight: 700; color: var(--red); background: var(--red-soft); border-radius: 99px; padding: 3px 9px; }

/* CTA */
.cta { background: var(--red); color: #fff; border-radius: 24px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 560px; }
.cta p { margin: 10px 0 0; opacity: .85; }
.cta .btn { background: #fff; color: var(--red); position: relative; z-index: 1; }
.cta .btn:hover { background: var(--red-soft); }

/* Footer */
footer { background: var(--footer); color: rgba(255,255,255,.7); padding: 48px 0 32px; margin-top: 80px; font-size: .92rem; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer .brand { color: #fff; margin-bottom: 12px; }
footer h4 { color: #fff; font-family: var(--display); margin: 0 0 12px; }
footer a:hover { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-note { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .82rem; }

/* Jobs page */
.page-head { padding: 48px 0 28px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-head p { color: var(--muted); margin: 8px 0 22px; }
.jobs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; padding-bottom: 40px; }
.filters { position: sticky; top: 88px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.filters h4 { font-family: var(--display); font-size: .95rem; margin: 18px 0 10px; }
.filters h4:first-child { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: 10px; font-size: .92rem; padding: 4px 0; cursor: pointer; }
.filters label span { margin-left: auto; color: var(--muted); font-size: .8rem; }
.filters input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; }
.filters select { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font: inherit; background: var(--bg); }
.filter-toggle { display: none; width: 100%; justify-content: center; margin-bottom: 14px; }
.filters .reset { margin-top: 18px; width: 100%; justify-content: center; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: .92rem; color: var(--muted); }
.results-bar b { color: var(--ink); }
.job-list { display: grid; gap: 10px; }
.job-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; cursor: pointer; transition: .15s; }
.job-row:hover, .job-row.sel { border-color: var(--red); box-shadow: var(--shadow); }
.job-row .logo-tile { width: 46px; height: 46px; border-radius: 12px; font-size: 1rem; }
.job-row h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.job-row .sub { font-size: .86rem; color: var(--muted); margin-bottom: 8px; }
.job-row .right { text-align: right; font-size: .82rem; color: var(--muted); }
.job-row .right .soon { color: var(--red); font-weight: 600; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty img { width: 80px; margin: 0 auto 12px; opacity: .8; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(20,20,20,.35); opacity: 0; pointer-events: none; transition: .2s; z-index: 40; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--card); z-index: 50; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.12); }
.drawer.open { transform: none; }
.drawer-head { padding: 24px 28px 20px; border-bottom: 1px solid var(--line); }
.drawer-head .close { float: right; background: var(--surface-2); color: var(--ink); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.drawer-head .logo-tile { width: 56px; height: 56px; border-radius: 14px; font-size: 1.2rem; margin-bottom: 14px; }
.drawer-head h2 { font-size: 1.6rem; margin-bottom: 6px; }
.drawer-head .sub { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.drawer-body { padding: 24px 28px; overflow-y: auto; flex: 1; }
.drawer-body h4 { font-family: var(--display); margin: 22px 0 8px; }
.drawer-body ul { padding-left: 20px; margin: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts div { background: var(--bg); border-radius: 10px; padding: 10px 14px; font-size: .85rem; }
.facts small { color: var(--muted); display: block; }
.drawer-foot { padding: 18px 28px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.drawer-foot .btn-red { flex: 1; justify-content: center; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--card); padding: 12px 20px; border-radius: 99px; font-size: .92rem; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* Logot */
img.logo-tile { object-fit: cover; background: #fff; box-sizing: border-box; border: 1px solid var(--line); }
img.logo-tile.is-dumppi { background: var(--red-soft); padding: 3px; object-fit: contain; }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; vertical-align: 1px; }
.btn-dark { background: var(--ink); color: var(--card); }
.btn-dark:hover { background: #000; }

/* Syöte */
.feed-page { padding: 24px 0 72px; }
.feed-layout.feed-center { display: block; max-width: 680px; margin: 0 auto; }
.feed-layout.feed-center .side-search { margin-bottom: 16px; }
.side-search { grid-column: 1 / -1; max-width: none; padding: 2px; box-shadow: none; }
.side-search input { padding: 10px 16px; }
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.feed { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.compose { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.compose .logo-tile, .post > .logo-tile { width: 44px; height: 44px; border-radius: 50%; font-size: .85rem; }
.compose-body { flex: 1; min-width: 0; }
.compose textarea { width: 100%; border: 0; outline: 0; resize: none; font: inherit; font-size: 1.05rem; padding: 8px 0; background: none; color: var(--ink); }
.compose-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.compose-foot small { color: var(--muted); }
.compose .btn { padding: 8px 18px; }
.compose .btn:disabled { opacity: .45; cursor: default; }
.post { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); transition: background .15s; }
.post:last-child { border-bottom: 0; }
.post:hover { background: var(--hover); }
.post-body { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: center; gap: 4px; font-size: .95rem; flex-wrap: wrap; }
.post-head span { color: var(--muted); margin-left: 2px; }
.verified { width: 17px; height: 17px; fill: var(--red); }
.verified .tick { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.post p { margin: 4px 0 10px; white-space: pre-line; overflow-wrap: anywhere; }
.post-role { font-size: .8rem; color: var(--muted); margin-top: -1px; }
.hashtag { color: var(--red); font-weight: 500; }
.post-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px; display: block; background: var(--surface-2); }
.embed { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: .15s; }
.embed:hover { border-color: var(--red); background: var(--card); }
.embed-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.embed-sub { font-size: .86rem; color: var(--muted); margin: 4px 0 8px; }
.embed-sub .soon { color: var(--red); font-weight: 600; }
.embed-cta { font-size: .86rem; font-weight: 600; color: var(--red); }
.embed-event { display: flex; gap: 14px; align-items: center; }
.embed-event .date-tile { width: 58px; flex-shrink: 0; }
.embed-event .btn { padding: 8px 16px; font-size: .88rem; }
.post-actions { display: flex; align-items: center; gap: 36px; margin-top: 8px; }
.share { margin-left: auto; display: flex; gap: 6px; }
.share a { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: .15s; }
.share svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share svg .dot { fill: currentColor; stroke: none; }
.share .sh-ig:hover { color: #fff; background: radial-gradient(circle at 30% 110%, #FDCB52 0%, #FD5949 40%, #D6249F 65%, #285AEB 100%); }
.share .sh-li:hover { color: #fff; background: #0A66C2; }
.share .sh-wa:hover { color: #fff; background: #25D366; }
.post-actions button { display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 8px 6px 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
.post-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; padding: 7px; box-sizing: content-box; margin: -7px; border-radius: 50%; transition: .15s; }
.post-actions button:hover { color: var(--red); }
.post-actions button:hover svg { background: var(--red-soft); }
.post-actions button[data-act="repost"]:hover { color: #1E8A5A; }
.post-actions button[data-act="repost"]:hover svg { background: #E6F4EF; }
.post-actions .on-red { color: var(--red); }
.post-actions .on-red svg { fill: currentColor; }
.post-actions .on-green { color: #1E8A5A; }
.feed .empty { border: 0; border-radius: 0; }
.feed-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-card h4 { font-family: var(--display); font-size: 1.1rem; margin: 0 0 10px; }
.side-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.side-row + .side-row { border-top: 1px solid var(--line); }
.side-row .logo-tile { width: 40px; height: 40px; border-radius: 10px; }
.side-row > div { flex: 1; min-width: 0; }
.side-row b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-row small { color: var(--muted); font-size: .82rem; }
.side-row .soon { color: var(--red); font-weight: 600; }
.side-row .btn { padding: 6px 14px; font-size: .82rem; }
a.side-row:hover b { color: var(--red); }

/* Chat */
.chat-page { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.chat-shell { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px 1fr; max-width: 1180px; width: 100%; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--card); }
.chat-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-side-head { padding: 20px 18px 12px; }
.chat-side-head h2 { font-size: 1.5rem; margin-bottom: 12px; }
.chat-side-head input { width: 100%; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font: inherit; outline: 0; }
.chat-side-head input:focus { border-color: var(--red); }
#chat-list { overflow-y: auto; }
.chat-item { width: 100%; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; border-left: 3px solid transparent; }
.chat-item:hover { background: var(--hover); }
.chat-item.active { background: var(--red-soft); border-left-color: var(--red); }
.chat-item .logo-tile { width: 46px; height: 46px; border-radius: 50%; }
.chat-item > div { flex: 1; min-width: 0; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; }
.ci-top small { color: var(--muted); font-size: .78rem; }
.ci-last { font-size: .86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { min-width: 20px; height: 20px; border-radius: 99px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
#chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); min-height: 72px; }
#chat-head .logo-tile { width: 42px; height: 42px; border-radius: 50%; }
#chat-head small { display: block; color: var(--muted); font-size: .84rem; }
.chat-empty-head { color: var(--muted); }
#chat-head .back { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; padding: 0 6px 0 0; }
#chat-msgs { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 72%; align-self: flex-start; }
.msg p { margin: 0; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--card); border: 1px solid var(--line); }
.msg small { display: block; font-size: .72rem; color: var(--muted); margin: 3px 6px 0; }
.msg.me { align-self: flex-end; text-align: right; }
.msg.me p { background: var(--red); color: #fff; border-color: var(--red); border-radius: 18px 18px 4px 18px; text-align: left; }
.msg.invite { max-width: 420px; width: 100%; }
.inv-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.inv-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.inv-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--red-soft); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.inv-top small { display: block; color: var(--red); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.inv-top b { font-family: var(--display); font-size: 1.05rem; }
.inv-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 10px; font-size: .9rem; }
.inv-card dt { color: var(--muted); }
.inv-card dd { margin: 0; font-weight: 500; }
.msg .inv-card .inv-note { margin: 0 0 8px; padding: 0; border: 0; background: none; border-radius: 0; font-size: .88rem; color: var(--muted); }
.inv-link { font-size: .86rem; font-weight: 600; color: var(--red); }
.inv-actions { display: flex; gap: 8px; margin-top: 14px; }
.inv-actions .btn { flex: 1; justify-content: center; padding: 9px 12px; font-size: .9rem; }
.inv-status { margin-top: 14px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: .88rem; font-weight: 600; text-align: center; }
.inv-status.ok { background: var(--green-soft); color: var(--green); }
#chat-form { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
#chat-form[hidden] { display: none; }
#chat-form input { flex: 1; padding: 12px 18px; border-radius: 99px; border: 1px solid var(--line); font: inherit; outline: 0; background: var(--bg); min-width: 0; }
#chat-form input:focus { border-color: var(--red); }

/* Kirjautuminen */
.user-chip { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.user-chip:hover, .user-chip.active { border-color: var(--red); }
.user-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.login-page { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px; }
.login-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow); text-align: center; }
.login-logo { width: 64px; margin: 0 auto 12px; }
.login-card h1 { font-size: 1.7rem; }
.login-lead { color: var(--muted); margin: 8px 0 24px; }
#login-form { display: grid; gap: 14px; text-align: left; }
#login-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
#login-form input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font: inherit; font-weight: 400; background: var(--bg); outline: 0; }
#login-form input:focus { border-color: var(--red); background: var(--card); }
#login-form .btn { justify-content: center; padding: 12px; }
.login-error { margin: 0; color: var(--red); font-size: .88rem; font-weight: 600; }
.login-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.jyu-btn { width: 100%; justify-content: center; }
.demo-creds { margin: 22px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--red-soft); border: 1.5px dashed rgba(175,39,29,.35); text-align: left; display: grid; gap: 8px; }
.demo-head { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.demo-badge { background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; }
.cred-row { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; background: var(--card); border-radius: 10px; padding: 8px 12px; }
.cred-row span { color: var(--muted); }
.cred-row code { font-family: ui-monospace, Menlo, monospace; font-size: 1rem; font-weight: 700; color: var(--ink); user-select: all; }
.demo-login { justify-content: center; margin-top: 4px; }
.demo-creds .link-btn { justify-self: center; font-size: .86rem; margin-top: 0; }
.link-btn { background: none; border: 0; padding: 0; margin-top: 4px; font: inherit; font-weight: 600; color: var(--red); cursor: pointer; justify-self: start; }

/* Oma profiili */
.profile-page { padding-top: 24px; padding-bottom: 72px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.profile-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.profile-cover { height: 150px; background: linear-gradient(120deg, var(--red-deep), var(--red) 55%, #E0574A); position: relative; overflow: hidden; }
.profile-cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.5px); background-size: 18px 18px; }
.profile-cover img { position: absolute; right: 28px; bottom: -18px; width: 130px; opacity: .25; transform: rotate(-8deg); }
.profile-top { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 24px; margin-top: -52px; position: relative; }
.profile-avatar { width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--card); object-fit: cover; background: #fff; }
.profile-actions { display: flex; gap: 8px; }
.profile-actions .btn { padding: 8px 16px; font-size: .9rem; }
.profile-info { padding: 12px 24px 4px; }
.profile-info h1 { font-size: 1.6rem; }
.profile-handle { color: var(--muted); font-size: .92rem; }
.profile-role { font-weight: 600; margin-top: 6px; }
.otw { display: inline-block; margin-top: 8px; font-size: .8rem; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 99px; }
.profile-bio { margin: 12px 0; max-width: 620px; }
.profile-meta, .profile-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--muted); }
.profile-stats { margin: 10px 0 14px; }
.profile-stats b { color: var(--ink); }
.profile-edit { padding: 16px 24px; display: grid; gap: 12px; }
.profile-edit[hidden], .profile-info[hidden] { display: none; }
.profile-edit label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.profile-edit input:not([type=checkbox]), .profile-edit textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font: inherit; font-weight: 400; background: var(--bg); resize: vertical; }
.profile-edit .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.profile-edit .check input { accent-color: var(--red); width: 16px; height: 16px; }
.edit-foot { display: flex; justify-content: flex-end; gap: 8px; }
.profile-tabs { display: flex; border-top: 1px solid var(--line); }
.profile-tabs button { flex: 1; padding: 14px 4px; white-space: nowrap; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; position: relative; }
.profile-tabs button:hover { background: var(--hover); }
.profile-tabs button.active { color: var(--ink); }
.profile-tabs button.active::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 48px; height: 4px; border-radius: 4px; background: var(--red); }
.profile-row { align-items: center; }
.profile-row .logo-tile { width: 46px; height: 46px; border-radius: 12px; }
.profile-row .date-tile { width: 58px; flex-shrink: 0; }
.profile-row .tag { margin-top: 2px; display: inline-block; }
a.profile-row:hover b { color: var(--red); }
.strength { display: flex; align-items: center; gap: 12px; }
.strength .bar { flex: 1; height: 8px; }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .9rem; }
.checklist li::before { content: "○"; margin-right: 8px; color: var(--muted); }
.checklist li.done { color: var(--muted); }
.checklist li.done::before { content: "✓"; color: #1E8A5A; font-weight: 700; }
.timeline { display: grid; gap: 12px; border-left: 2px solid var(--line); padding-left: 14px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid var(--card); }
.tl-item b { display: block; font-size: .92rem; }
.tl-item small { color: var(--muted); font-size: .82rem; }
.about-sec { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.about-sec:last-child { border-bottom: 0; }
.about-sec h3 { font-size: 1.15rem; margin-bottom: 14px; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.status-grid div { background: var(--bg); border-radius: 10px; padding: 10px 14px; font-size: .92rem; font-weight: 500; }
.status-grid small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.status-grid .ok { color: #1E8A5A; font-weight: 600; }
.credits { margin-top: 14px; }
.credits-top { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; }
.credits .bar { height: 8px; }
.credits small { display: block; color: var(--muted); font-size: .84rem; margin-top: 6px; }
.member { margin-top: 14px; font-size: .88rem; font-weight: 600; color: var(--red); background: var(--red-soft); border-radius: 10px; padding: 9px 14px; }
.career .tl-item p { margin: 4px 0 0; font-size: .9rem; color: var(--ink); }
.hobbies { display: flex; flex-wrap: wrap; gap: 8px; }
.hobbies span { padding: 8px 14px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; }
.cv-card p { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.cv-card .btn { width: 100%; justify-content: center; }


/* Animoitu pingviinilogo headerissa */
.pingu { position: relative; display: inline-grid; place-items: center; width: 52px; height: 52px; }
.nav .brand { font-size: 1.45rem; gap: 8px; }
.pingu img { width: 100%; height: 100%; transform-origin: 50% 95%; animation: pingu-idle 6s ease-in-out infinite; position: relative; z-index: 1; }
.pingu::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 34px; height: 6px; margin-left: -17px; border-radius: 50%; background: rgba(0,0,0,.18); animation: pingu-shadow 6s ease-in-out infinite; }
/* taaperrus → kyykky → hyppy → lasku (squash & stretch) */
@keyframes pingu-idle {
  0%   { transform: rotate(0deg); }
  8%   { transform: rotate(-7deg); }
  16%  { transform: rotate(7deg); }
  24%  { transform: rotate(-7deg); }
  32%  { transform: rotate(7deg); }
  40%  { transform: rotate(-7deg); }
  48%  { transform: rotate(0deg); }
  60%  { transform: rotate(0deg) scale(1, 1); }
  66%  { transform: translateY(1px) scale(1.15, .82); }
  74%  { transform: translateY(-11px) scale(.9, 1.12) rotate(-4deg); }
  80%  { transform: translateY(-13px) scale(1, 1) rotate(4deg); }
  87%  { transform: translateY(0) scale(1.12, .86); }
  93%  { transform: translateY(0) scale(.97, 1.04); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes pingu-shadow {
  0%, 60%, 100% { transform: scaleX(1); opacity: 1; }
  66% { transform: scaleX(1.15); opacity: 1; }
  77% { transform: scaleX(.55); opacity: .45; }
  87% { transform: scaleX(1.2); opacity: 1; }
}
/* Hover: voltti ja aaltoilevat kirjaimet */
.nav .brand:hover .pingu img { animation: pingu-flip .9s cubic-bezier(.3,1.4,.6,1) 1, pingu-dance .6s ease-in-out .9s infinite; }
.nav .brand:hover .pingu::after { animation: pingu-shadow-flip .9s ease-in-out 1; }
@keyframes pingu-flip {
  0%   { transform: translateY(0) scale(1.12, .85); }
  30%  { transform: translateY(-16px) rotate(-180deg) scale(.95, 1.08); }
  60%  { transform: translateY(-8px) rotate(-360deg); }
  80%  { transform: translateY(0) rotate(-360deg) scale(1.12, .86); }
  100% { transform: translateY(0) rotate(-360deg) scale(1, 1); }
}
@keyframes pingu-dance {
  0%, 100% { transform: rotate(-360deg) translateY(0) rotate(-10deg); }
  25% { transform: rotate(-360deg) translateY(-4px) rotate(0deg); }
  50% { transform: rotate(-360deg) translateY(0) rotate(10deg); }
  75% { transform: rotate(-360deg) translateY(-4px) rotate(0deg); }
}
@keyframes pingu-shadow-flip { 30% { transform: scaleX(.45); opacity: .35; } 80% { transform: scaleX(1.2); } }
.brand-text { display: inline-flex; }
.brand-text span { display: inline-block; }
.nav .brand:hover .brand-text span { animation: letter-wave .7s ease-in-out both; animation-delay: calc(var(--i) * 45ms); }
.nav .brand:hover .brand-text span:nth-last-child(-n+2) { color: var(--red); }
@keyframes letter-wave { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }
/* Klikkaus: iso hyppy */
.pingu.jump img { animation: pingu-jump .55s cubic-bezier(.3,1.5,.6,1) 1 !important; }
@keyframes pingu-jump { 0% { transform: scale(1.2, .8); } 45% { transform: translateY(-22px) scale(.9, 1.15) rotate(-12deg); } 100% { transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .pingu img, .pingu::after, .nav .brand:hover .pingu img, .nav .brand:hover .brand-text span { animation: none !important; }
}

/* Headerin työkalut */
.nav-tools { display: flex; align-items: center; gap: 6px; margin-right: 8px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--surface-2); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell-badge { position: absolute; top: 3px; right: 1px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 99px; background: var(--red); color: #fff; font-size: .62rem; line-height: 1; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); box-sizing: content-box; }
.bell-badge[hidden] { display: none; }
.notif-wrap { position: relative; }
.notif-panel { position: absolute; right: -8px; top: 50px; width: 380px; max-height: 70vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,.18); z-index: 30; }
.notif-panel[hidden] { display: none; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
.notif-head b { font-family: var(--display); font-size: 1.05rem; }
.notif-head .link-btn { margin: 0; font-size: .84rem; }
.notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); position: relative; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--hover); }
.notif .logo-tile { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.notif p { margin: 0; font-size: .9rem; line-height: 1.4; }
.notif small { color: var(--muted); font-size: .78rem; }
.notif.unread { background: var(--red-soft); }
.notif.unread::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--red); transform: translateY(-50%); }
.notif.unread > div { padding-right: 14px; }

/* Tumman tilan kytkin */
.theme-switch { position: relative; width: 58px; height: 30px; flex-shrink: 0; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; padding: 0; transition: background .25s, border-color .25s; }
.theme-switch:hover { border-color: var(--muted); }
.theme-switch:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.ts-icon { position: absolute; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; display: grid; place-items: center; color: var(--muted); }
.ts-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ts-sun { left: 8px; }
.ts-moon { right: 8px; }
.ts-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.4,1.4,.6,1); }
.theme-switch[aria-checked="true"] { background: #3B3B58; border-color: #3B3B58; }
.theme-switch[aria-checked="true"] .ts-knob { transform: translateX(28px); }
.theme-switch[aria-checked="true"] .ts-moon { color: #fff; opacity: 0; }
.theme-switch[aria-checked="true"] .ts-sun { color: #C9C9D6; }
.theme-switch[aria-checked="false"] .ts-sun { opacity: 0; }
.nav-tools { gap: 10px; }

/* Kommentit */
.post-actions .on-blue { color: #1D9BF0; }
.comments { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment .logo-tile, .comment-form .logo-tile { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; font-size: .7rem; }
.c-bubble { background: var(--surface-2); border-radius: 4px 14px 14px 14px; padding: 8px 12px; min-width: 0; }
.c-head { display: flex; align-items: center; gap: 4px; font-size: .86rem; }
.c-head small { color: var(--muted); margin-left: 4px; }
.c-head .verified { width: 14px; height: 14px; }
.c-bubble p { margin: 2px 0 0; font-size: .92rem; overflow-wrap: anywhere; }
.more-comments { justify-self: start; font-size: .86rem; margin: 0; }
.comment-form { display: flex; gap: 8px; align-items: center; }
.comment-form input { flex: 1; min-width: 0; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: .92rem; outline: 0; }
.comment-form input:focus { border-color: var(--red); }
.comment-form .btn { padding: 8px 14px; font-size: .86rem; }

/* Tumma tila */
:root[data-theme="dark"] {
  color-scheme: dark;
  --red: #D2392C; --red-dark: #E0574A; --red-soft: rgba(210,57,44,.16);
  --ink: #ECECEC; --muted: #A3A3A3; --line: #2E2E32; --bg: #121214; --card: #1B1B1E;
  --surface-2: #27272B; --hover: #222226; --nav-bg: rgba(18,18,20,.85); --footer: #0A0A0B;
  --green: #4CC38A; --green-soft: rgba(76,195,138,.14);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
}
:root[data-theme="dark"] .tag.t-harjoittelu { background: rgba(95,184,232,.15); color: #8FCBF0; }
:root[data-theme="dark"] .tag.t-kesätyö { background: rgba(232,170,60,.15); color: #EBC074; }
:root[data-theme="dark"] .tag.t-vakituinen { background: rgba(76,195,138,.15); color: #7FD6AC; }
:root[data-theme="dark"] .tag.t-gradu { background: rgba(170,120,230,.16); color: #C7A6F0; }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .login-logo { filter: drop-shadow(0 0 1px rgba(255,255,255,.6)); }
/* Projektityöilmoitus */
.project-notice { background: var(--red); color: #fff; font-size: .84rem; line-height: 1.4; }
.project-notice .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.pn-label { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
@media (max-width: 640px) { .project-notice .wrap { flex-direction: column; gap: 4px; padding-left: 16px; padding-right: 16px; } }

/* Responsive */
@media (max-width: 1180px) {
  .nav .wrap { gap: 10px; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 12px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; }
  .nav-tools { margin-left: auto; }
  .menu-btn { display: block; margin-left: 4px; color: var(--ink); }
}
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .co-row { grid-template-columns: repeat(2, 1fr); }
  .event { grid-template-columns: 64px 1fr auto; }
  .event .cap { display: none; }
  .jobs-layout { grid-template-columns: 1fr; }
  .feed-layout, .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .feed-side { position: static; grid-template-columns: 1fr 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: flex; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav .login-btn { margin-left: auto; padding: 8px 14px; }
  .user-chip { margin-left: auto; }
  .menu-btn { display: block; margin-left: 8px; }
  .nav .wrap { gap: 6px; }
  .brand { font-size: 1rem; gap: 6px; }
  .brand img, .pingu { width: 40px; height: 40px; }
  .nav .brand { font-size: 1.1rem; gap: 4px; }
  .nav .login-btn { padding: 7px 12px; font-size: .88rem; }
  .icon-btn { width: 36px; height: 36px; }
  .nav-tools { margin-left: auto; margin-right: 4px; gap: 4px; }
  .theme-switch { width: 46px; height: 26px; }
  .ts-knob { width: 18px; height: 18px; }
  .ts-icon, .ts-icon svg { width: 12px; height: 12px; }
  .ts-sun { left: 6px; }
  .ts-moon { right: 6px; }
  .theme-switch[aria-checked="true"] .ts-knob { transform: translateX(20px); }
  .nav .login-btn, .user-chip { margin-left: 0; }
  .user-chip span { display: none; }
  .user-chip { padding: 3px; }
  .notif-panel { position: fixed; left: 8px; right: 8px; top: 64px; width: auto; }
  .stats .wrap { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .job-grid, .co-row { grid-template-columns: 1fr; }
  .event { grid-template-columns: 56px 1fr; gap: 14px; }
  .event .btn { grid-column: 1 / -1; justify-content: center; }
  .cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  footer .wrap { grid-template-columns: 1fr; }
  .job-row { grid-template-columns: auto 1fr; }
  .job-row .right { grid-column: 2; text-align: left; }
  section.block { padding: 56px 0; }
  .feed { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .feed-side { grid-template-columns: 1fr; }
  .post, .compose { padding: 14px 16px; }
  /* Mobiilissa sisältö koko leveydelle: profiilikuva + nimi ylärivillä */
  .post { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; }
  .post > .logo-tile { width: 40px; height: 40px; grid-row: span 2; align-self: center; }
  .post .post-body { display: contents; }
  .post .post-head, .post .post-role { grid-column: 2; }
  .post .post-body > :not(.post-head):not(.post-role) { grid-column: 1 / -1; }
  .post { row-gap: 0; align-items: start; }
  .post .post-body > p { margin: 8px 0; }
  .post .post-img { margin: 2px 0 8px; }
  .post .embed { margin-bottom: 4px; }
  .post .post-actions { margin-top: 2px; }
  .post .post-role { line-height: 1.3; }
  .post .post-head { align-self: end; }
  .post-actions { gap: 6px; justify-content: space-between; }
  .profile-card, .profile-feed { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .profile-top { padding: 0 16px; margin-top: -44px; }
  .profile-avatar { width: 92px; height: 92px; }
  .profile-actions .btn { padding: 7px 12px; font-size: .82rem; }
  .profile-info, .profile-edit { padding-left: 16px; padding-right: 16px; }
  .profile-cover { height: 120px; }
  .about-sec { padding: 18px 16px; }
  .profile-tabs button { font-size: .86rem; padding: 13px 2px; }
  .status-grid { grid-template-columns: 1fr; }
  .post-actions button { padding-right: 4px; }
  .share { gap: 0; margin-left: 4px; }
  .share a { width: 28px; height: 28px; }
  .embed-event { flex-wrap: wrap; }
  .embed-event .btn { width: 100%; justify-content: center; }
  .chat-shell { grid-template-columns: minmax(0, 1fr); border: 0; }
  .chat-shell.in-chat .chat-side { display: none; }
  .chat-shell:not(.in-chat) .chat-main { display: none; }
  #chat-head .back { display: block; }
  .msg { max-width: 85%; }
}
