:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #293e36;
  background: #f6f4ee;
  font-synthesis: none;
  line-height: 1.5;
  --ink: #293e36;
  --muted: #626e65;
  --line: #d5dcd2;
  --paper: #f6f4ee;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 72% 28%, #e7eddf65, transparent 62%); }
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transition: opacity 1s ease; }
.cloud { position: absolute; fill: #fffefa; stroke: #c4ceba; stroke-width: 1; stroke-linecap: round; opacity: .65; }
.cloud-high { top: 12%; right: 7%; width: clamp(220px, 28vw, 390px); }
.cloud-low { bottom: 10%; left: -2%; width: clamp(180px, 23vw, 310px); opacity: .4; }
.cloud-thread { fill: none; opacity: .6; }
.shell, .school-shell { position: relative; z-index: 1; }
.intro-playing .sky { opacity: 0; }
body.intro-playing .cloud, body.clouds-paused .cloud, body:has(input:focus, select:focus, dialog[open]) .cloud { animation-play-state: paused; }
.motion-toggle { width: 32px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.motion-toggle:hover { background: #e9edde; }
.motion-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.motion-play, .clouds-paused .motion-pause { display: none; }
.clouds-paused .motion-play { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .ambience-ready .cloud-high { animation: cloud-drift 38s ease-in-out infinite alternate; }
  .ambience-ready .cloud-low { animation: cloud-drift 52s -12s ease-in-out infinite alternate-reverse; }
}
@keyframes cloud-drift { from { transform: translate3d(-14px, 4px, 0); } to { transform: translate3d(18px, -7px, 0); } }
button, input, select { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 10px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  cursor: pointer; font-size: 14px; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
button:hover, .button:hover { background: #3d594b; }
@media (hover: hover) {
  #minimize:hover, #copy:hover, .button:hover { box-shadow: 0 4px 12px #293e3618; transform: translateY(-1px); }
  #minimize:hover span[aria-hidden] { transform: translate(2px, -2px); }
}
#minimize span[aria-hidden] { display: inline-block; transition: transform .25s var(--ease); }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .65; cursor: wait; }
:is(button,a,input,select):focus-visible { outline: 2px solid #51765b; outline-offset: 5px; }
input, select {
  min-width: 0; min-height: 48px; padding: 12px 14px;
  border: 1px solid #aab7a9; border-radius: 10px;
  background: transparent; color: var(--ink);
}
input::placeholder { color: var(--muted); opacity: 1; }
label { display: block; font-size: 13px; margin-bottom: 8px; }
.shell { max-width: 1400px; min-height: 100svh; margin: auto; padding: 0 5%; display: flex; flex-direction: column; transition: opacity .65s ease; }
header { height: 100px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.brand { font-size: 25px; font-weight: 600; letter-spacing: -.06em; line-height: 1.2; text-decoration: none; }
.brand span { font-weight: 400; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.school-nav { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; text-decoration: none; }
.school-nav:hover { text-decoration: underline; }
.alpha-badge { font-size: 12px; color: var(--muted); text-decoration: none; min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 100px; display: flex; align-items: center; transition: background .2s, border-color .2s; }
.alpha-badge:hover { background: #eaf0e5; border-color: #b2c0ae; color: var(--ink); }
main { flex: 1; display: flex; align-items: center; padding: 30px 0 65px; }
.shortener { width: 100%; max-width: 680px; margin: auto; }
h1, .result h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-style: italic; letter-spacing: -.065em; line-height: 1.04; }
h1 { font-size: clamp(72px, 10vw, 124px); margin: 0 0 22px -5px; }
.heading-dot { color: #72805a; }
.school-entry { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); text-decoration: none; font-size: 12px; }
.school-entry strong { display: block; font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.school-entry span span { color: var(--muted); }
.school-symbol { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: #e7ecdc; }
.school-symbol svg { width: 23px; height: 23px; fill: none; stroke: #56694a; stroke-width: 1.4; }
.school-arrow { margin-left: auto; font-size: 22px; transition: transform .25s var(--ease); }
.school-entry:hover .school-arrow { transform: translate(2px, -2px); }
.school-entry:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.intro-text { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 30px; text-wrap: pretty; }
.input-row { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid #c8d1c3; border-radius: 16px; background: #fffdf8; box-shadow: 0 4px 22px #293e3606; transition: border-color .25s, box-shadow .25s; }
.input-row input { width: 100%; flex: 1; padding: 12px 10px; border: 0; font-size: 17px; outline-offset: 2px; }
.input-row input:focus-visible { outline: none; }
.input-row:focus-within { border-color: #688565; box-shadow: 0 0 0 3px #68856518; }
.input-row:has(input[aria-invalid="true"]) { border-color: #9c3023; }
.input-row button { min-width: 127px; }
.input-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 3px 0; }
.hint { font-size: 12px; color: var(--muted); margin: 0; }
.text-button { min-height: 44px; padding: 4px 0; border: 0; background: transparent !important; color: var(--muted); font-size: 12px; font-weight: 400; text-decoration: none; }
.text-button:hover { color: var(--ink); text-decoration: underline; }
.error { padding-inline: 3px; color: #9c3023; font-size: 13px; margin: 8px 0; }
.error:empty { display: none; }
#compose, .result { animation: reveal .7s var(--ease) both; }
.result:focus { outline: none; }
.result h2 { margin: 0 0 30px; font-size: 64px; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 12px 12px 20px; border: 1px solid #c8d1c3; border-radius: 16px; background: #fffdf8; }
.copy-row>a { font-size: clamp(22px, 3.2vw, 38px); letter-spacing: -.04em; text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
.copy-row button { white-space: nowrap; min-width: 111px; }
.result-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; }
#copy-status { color: #3d654b; font-size: 12px; margin: 0; }
.destination-label { font-size: 12px; color: var(--muted); margin: 12px 0 22px; }
.destination-label>a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.destination-label>a:hover { text-decoration: underline; }
.destination { display: block; font-size: 13px; letter-spacing: 0; overflow-wrap: anywhere; max-height: 58px; overflow: auto; unicode-bidi: plaintext; margin-top: 5px; }
.result-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.secondary-button { border-color: var(--line); background: transparent; color: var(--ink); min-height: 44px; font-size: 12px; padding: 9px 13px; gap: 8px; }
.secondary-button:hover { background: #e9eee3; }
.secondary-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.result-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
footer { display: flex; justify-content: flex-end; padding: 22px 0; flex-shrink: 0; }
footer nav { display: flex; align-items: center; gap: 25px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.skip { position: fixed; top: 10px; left: 10px; padding: 12px; background: var(--ink); color: var(--paper); z-index: 60; opacity: 0; pointer-events: none; transform: translateY(-200%); }
.skip:focus { opacity: 1; pointer-events: auto; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; width: min(520px, calc(100% - 32px)); max-height: calc(100svh - 40px); box-shadow: 0 15px 60px #0002; }
dialog[open] { animation: dialog-arrive .5s var(--ease); }
dialog::backdrop { background: #293e3648; animation: word-arrive .45s ease both; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { font-size: 24px; font-weight: 400; letter-spacing: -.6px; margin: 0; }
.close-button { background: transparent; color: var(--ink); border: 0; min-height: 44px; width: 44px; padding: 0; font-size: 28px; }
.close-button:hover { background: #e9eee3; }
.detail-body { font-size: 13px; line-height: 1.7; }
.detail-body input, .detail-body select { width: 100%; display: block; margin-bottom: 16px; }
.detail-body label:first-child { margin-top: 20px; }
.detail-body .hint { margin-top: 16px; }
.qr-content { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 24px 0; }
.qr-content img { background: #fff; image-rendering: pixelated; max-width: 100%; height: auto; }
#qr-panel>.hint { text-align: center; }
.preview { display: block; max-width: 700px; padding: 40px 24px; margin: auto; }
.preview h1 { font-size: 44px; margin: 40px 0 24px; }
.preview .destination { padding: 15px 0; border-block: 1px solid var(--line); max-height: none; }
.intro { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.intro::before { content: ''; position: absolute; inset: 0; background: var(--paper); transition: opacity .65s ease; }
.intro-word { position: relative; display: flex; align-items: baseline; font-size: clamp(44px, 10vw, 120px); font-weight: 600; line-height: 1.2; letter-spacing: -.06em; white-space: nowrap; transform-origin: top left; animation: word-arrive .35s ease both; }
.intro-cut { position: absolute; top: 0; }
.intro-domain { font-weight: 400; }
.intro-skip { position: absolute; right: 5%; bottom: 28px; background: transparent; color: var(--muted); border: 0; font-size: 12px; min-height: 44px; transition: opacity .2s; }
.intro-skip:hover { background: transparent; text-decoration: underline; }
.intro-playing { overflow: hidden; }
.intro-playing:not(.intro-revealing) .shell { opacity: 0; }
.intro-playing .brand { visibility: hidden; }
.intro-revealing .intro::before { opacity: 0; }
.intro-revealing .intro-skip { opacity: 0; }
.intro-revealing .shortener { animation: reveal 1s .08s var(--ease) both; }
[hidden] { display: none !important; }
@keyframes word-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .cloud-high { top: 13%; right: -12%; width: 210px; opacity: .5; }
  .cloud-low { bottom: 12%; left: -20%; width: 210px; opacity: .3; }
  .shell { padding: 0 24px; }
  header { height: 80px; }
  .brand { font-size: 24px; }
  .header-nav { gap: 14px; }
  .school-nav { font-size: 12px; gap: 5px; }
  .alpha-badge { padding-inline: 11px; }
  main { padding: 24px 0 55px; }
  h1 { font-size: clamp(76px, 19vw, 108px); margin-bottom: 18px; }
  .intro-text { max-width: 300px; font-size: 14px; margin-bottom: 24px; }
  .input-row { gap: 4px; padding: 6px; border-radius: 14px; }
  .input-row input { font-size: 16px; padding-inline: 8px; }
  .input-row button { min-width: 99px; padding-inline: 13px; gap: 10px; font-size: 13px; }
  .input-meta { gap: 8px; }
  .input-meta .hint, .input-meta .text-button { font-size: 12px; }
  .result h2 { font-size: 52px; margin-bottom: 25px; }
  .copy-row { gap: 12px; flex-wrap: wrap; padding: 14px; }
  .copy-row>a { font-size: 25px; }
  .copy-row button { min-width: 98px; padding-inline: 14px; font-size: 12px; }
  .result-bottom .hint { font-size: 12px; max-width: 142px; text-align: right; }
  .result-meta .hint, #copy-status { font-size: 12px; }
  footer { justify-content: center; padding: 20px 0; }
}
@media (max-width: 360px) {
  .shell { padding-inline: 20px; }
  .header-nav { gap: 10px; }
  .school-nav span { display: none; }
  .alpha-badge { padding-inline: 8px; font-size: 11px; }
  .school-entry { margin-top: 18px; padding-top: 16px; }
  main { padding: 20px 0 28px; }
  .input-row { flex-wrap: wrap; padding: 8px; }
  .input-row input { flex-basis: 100%; }
  .input-row button { width: 100%; }
  .input-meta { align-items: baseline; flex-wrap: wrap; gap: 0; }
  .input-meta .hint { margin-left: auto; }
}
@media (max-height: 700px) {
  header { height: 65px; }
  main { padding: 20px 0; }
  h1 { margin-bottom: 16px; }
  .intro-text { margin-bottom: 20px; }
  .result h2 { font-size: 46px; margin-bottom: 20px; }
  .result-bottom { margin-top: 16px; padding-top: 8px; }
  .destination-label { margin: 8px 0 16px; }
  footer { padding: 12px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .intro { display: none !important; }
  .intro-playing .shell { opacity: 1; }
  .intro-playing .brand { visibility: visible; }
}

.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.result-heading h2 { margin: 0; }
.inline-qr { padding: 0; border: 0; background: #fff; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.inline-qr:hover { background: #fff; }
.inline-qr img { display: block; width: 112px; height: 112px; image-rendering: pixelated; }
@media (max-width: 600px) { .result-heading { margin-bottom: 18px; } .inline-qr img { width: 80px; height: 80px; } .result-heading h2 { margin: 0; } }

/* Personal workspace: a quiet writing surface with a compact saved collection. */
.personal { background: radial-gradient(ellipse at 75% 24%, #e3eadc88, transparent 60%), var(--paper); }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.home-tools { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }
.home-tools .school-entry { border: 0; padding: 0; margin: 0; }
.library-entry { color: var(--ink); background: transparent; padding: 0; border: 0; justify-content: flex-start; text-align: left; gap: 12px; }
.library-entry:hover { background: transparent; }
.library-entry>span:nth-child(2) { flex: 1; }
.library-entry strong { display: block; font-size: 13px; font-weight: 500; }
.library-entry strong span { display: inline-block; padding: 0 6px; margin-left: 3px; border-radius: 6px; background: #e3eadd; font-size: 11px; }
.library-entry:hover strong { text-decoration: underline; text-underline-offset: 4px; }
#library-summary { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.library-symbol { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #d4ddd0; border-radius: 12px; font-size: 25px; flex-shrink: 0; }
.personal footer { justify-content: space-between; align-items: center; }
.footer-note { color: var(--muted); font-size: 11px; }
.library-panel { width: min(700px, calc(100% - 24px)); padding: 30px; }
.library-panel .eyebrow { margin-bottom: 6px; }
.library-panel h2 { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 40px; }
.library-notice { font-size: 12px; color: var(--muted); max-width: 490px; margin: 18px 0 24px; }
.library-toolbar { display: grid; grid-template-columns: 1fr 170px; gap: 14px; }
.library-toolbar input, .library-toolbar select { width: 100%; background: #fffdf8; font-size: 14px; }
.library-filter { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.library-filter [aria-pressed="true"], .saved-heading [aria-pressed="true"] { background: #e2eadc; border-color: #829775; }
.library-empty { padding: 36px 12px; text-align: center; }
.library-empty>span { display: inline-block; font-family: Georgia, serif; font-size: 46px; color: #6b805c; }
.library-empty h3 { font-size: 20px; font-weight: 400; margin: 8px 0; }
.library-empty p { max-width: 340px; margin: 0 auto 16px; font-size: 13px; color: var(--muted); }
.library-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.saved-link { background: #fffdf8; border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.saved-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.saved-heading h3 { margin: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.saved-heading button { font-size: 22px; width: 44px; flex-shrink: 0; padding: 4px; }
.saved-destination { font-size: 12px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; margin: 8px 0; }
.saved-meta { font-size: 12px; margin: 0 0 14px; overflow-wrap: anywhere; }
.saved-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-actions button { min-height: 44px; }
.saved-actions [data-action="remove"] { margin-left: auto; }
.library-feedback { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#library-status { color: #3d654b; font-size: 12px; }
.library-bottom { border-top: 1px solid var(--line); padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#save-form .favorite-label { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; }
#save-form input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
#save-form>button { margin-top: 20px; }
#save-form .destination { margin-top: -4px; }
@media (max-width: 600px) {
  .personal .eyebrow { font-size: 9px; margin-bottom: 16px; letter-spacing: .1em; }
  .home-tools { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; padding-top: 18px; }
  .home-tools .school-entry { font-size: 11px; }
  .home-tools .school-entry strong { font-size: 12px; }
  .personal footer { justify-content: center; }
  .footer-note { display: none; }
  .library-panel { padding: 20px; }
  .library-toolbar { grid-template-columns: 1fr; gap: 12px; }
  .library-toolbar>div:last-child { display: flex; align-items: center; gap: 12px; }
  .library-toolbar>div:last-child label { margin: 0; }
  .library-toolbar select { flex: 1; }
  .library-panel h2 { font-size: 34px; }
  .saved-link { padding: 14px; }
  .saved-actions { gap: 6px; }
  .saved-actions button { padding-inline: 9px; font-size: 11px; }
  .personal .result-bottom .hint { max-width: 150px; }
}
@media (max-height: 700px) {
  .personal h1 { font-size: 76px; }
  .personal main { padding-block: 16px; }
  .home-tools { margin-top: 12px; padding-top: 12px; gap: 10px; }
  .personal .eyebrow { margin-bottom: 12px; }
}
@media (max-width: 360px) {
  .personal .result-heading { margin-bottom: 14px; }
  .personal .inline-qr img { width: 64px; height: 64px; }
  .personal .destination-label { margin: 8px 0 16px; }
  .personal .result-actions { gap: 8px; }
  .personal .result-bottom { margin-top: 16px; padding-top: 8px; }
  .personal:has(#result:not([hidden])) footer { padding-block: 12px; }
}

/* Liike poistettu käytöstä: staattinen, vakaa sivu */
*, *::before, *::after { animation: none !important; transition: none !important; }
:hover { transform: none !important; }
.cloud { animation: none !important; }
#minimize:hover, #copy:hover, .button:hover, button:hover { box-shadow: none !important; }

/* Yhtenäinen suomi.fi-tyylinen teema */
:root { --ink: #1f1f1f; --muted: #5a5a5a; --line: #d9d9d6; --paper: #ffffff; }
body { background: #f7f7f5; }
h1, .result h2, .library-panel h2, .intro-word { font-family: Arial, Helvetica, sans-serif; font-style: normal; font-weight: 700; letter-spacing: -.03em; }
.heading-dot { color: #00247d; }
button, .button { background: #00247d; border-color: #00247d; color: #ffffff; }
button:hover, .button:hover { background: #0031a8; }
header { border-bottom: 1px solid var(--line); }
.input-row, .copy-row, dialog { background: #ffffff; }
.input-row:focus-within { border-color: #00247d; box-shadow: 0 0 0 3px #00247d18; }
.alpha-badge { color: var(--muted); }
.alpha-badge:hover { background: #eef1f9; border-color: #b9c4e0; color: var(--ink); }
.school-symbol { background: #e8ecf6; }
.library-entry strong span { background: #e8ecf6; }
.library-filter [aria-pressed="true"], .saved-heading [aria-pressed="true"] { background: #e3e9f7; border-color: #7d95c9; }
.secondary-button:hover { background: #eef1f9; }
.close-button:hover, .motion-toggle:hover { background: #eef1f9; }
#copy-status, #library-status { color: #1d5c31; }
#save-form input[type="checkbox"] { accent-color: #00247d; }
:root { color: #1f1f1f; }
.header-nav { flex-wrap: wrap; row-gap: 0; }
/* Header: joustava korkeus, jotta valikko ei mene päällekkäin logon kanssa */
header { height: auto; min-height: 60px; padding-block: 10px; gap: 8px 24px; }
.brand { flex-shrink: 0; }
