.school-shell { max-width: 1240px; margin: auto; padding: 0 5%; }
.school-main { display: block; padding: 28px 0 38px; }
.portal-badge { padding: 7px 12px; border: 1px solid #c9d3be; border-radius: 30px; background: #eaf0e1; color: #506246; font-size: 12px; }
.school-hero { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: var(--muted); margin: 0 0 18px; }
.school-hero h1 { font-size: clamp(48px, 6vw, 78px); margin: 0 0 22px -3px; }
.school-lead { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }
.storage-note { display: flex; align-items: center; gap: 22px; padding-block: 10px; border-block: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.storage-note>span { margin-right: auto; }
.storage-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #72805a; vertical-align: 1px; margin-right: 7px; }
.school-status { font-size: 13px; color: #3d654b; margin: 0; padding: 0; }
.school-status:not(:empty) { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: #e7ecdc; }
.school-status[data-error="true"] { color: #9c3023; background: #f6e9e1; }
.workspace { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; margin-top: 32px; }
.groups { padding-right: 22px; border-right: 1px solid var(--line); }
.groups-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.groups h2 { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: .04em; }
.icon-button { padding: 0; min-width: 44px; width: 44px; min-height: 44px; background: transparent; color: var(--ink); border: 0; font-size: 24px; }
.icon-button:hover { background: #e7ecdc; }
#group-list { display: grid; gap: 6px; }
.group-button { justify-content: space-between; gap: 8px; width: 100%; padding: 10px 12px; min-height: 44px; background: transparent; border-color: transparent; color: var(--muted); text-align: left; font-size: 13px; }
.group-button span:first-child { overflow-wrap: anywhere; }
.group-button span:last-child { font-size: 11px; flex-shrink: 0; }
.group-button:hover { background: #e9edde; }
.group-button[aria-current="true"] { background: #e4ead9; color: var(--ink); font-weight: 600; }
.groups-help { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 28px; }
.library { min-width: 0; }
.library:focus { outline: none; }
.library-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.library-heading h2 { font-size: 25px; font-weight: 400; letter-spacing: -.7px; margin: 0 0 3px; overflow-wrap: anywhere; }
.library-heading>button { flex-shrink: 0; }
.library-tools { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.search-field { position: relative; display: flex; align-items: center; flex: 1; margin: 0; }
.search-field svg { position: absolute; left: 14px; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.5; pointer-events: none; }
.search-field input { width: 100%; padding-left: 40px; font-size: 13px; border-color: var(--line); background: #fffdf860; }
.library-tools>.text-button { white-space: nowrap; }
.link-list { display: grid; gap: 12px; }
.link-card { border: 1px solid var(--line); background: #fffdf8; border-radius: 14px; padding: 20px; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
@media (hover: hover) {
  .link-card:hover { border-color: #b7c3ad; box-shadow: 0 5px 18px #293e3606; transform: translateY(-1px); }
}
.link-card-heading { display: flex; align-items: flex-start; gap: 12px; }
.link-card-heading>div { flex: 1; min-width: 0; }
.link-card h3 { font-size: 16px; font-weight: 500; line-height: 1.5; margin: 0 0 5px; overflow-wrap: anywhere; }
.link-card h3 a { text-decoration: none; }
.link-card h3 a:hover { text-decoration: underline; }
.link-domain { color: var(--muted); font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.link-card .edit-link { min-height: 32px; width: 32px; min-width: 32px; font-size: 20px; margin-top: -4px; }
.link-card-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e7e9df; }
.group-tag { display: inline-block; font-size: 11px; line-height: 1.5; padding: 4px 8px; border-radius: 5px; color: #56694a; background: #eef1e6; overflow-wrap: anywhere; max-width: 100%; }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-left: auto; }
.card-actions button { min-height: 36px; }
.card-actions button:disabled { cursor: wait; }
.empty-state { text-align: center; border: 1px solid #d5dccb; border-radius: 16px; padding: 40px 20px; background: #fffdf870; }
.empty-symbol { display: inline-grid; place-items: center; width: 48px; height: 48px; background: #e7ecdc; border-radius: 15px; font-size: 24px; color: #63734f; margin-bottom: 14px; }
.empty-state h3 { font-family: Georgia, serif; font-size: 25px; line-height: 1.25; font-weight: 400; letter-spacing: -.6px; margin: 0 0 12px; }
.empty-state p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 20px; }
.library-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.school-details { margin-top: 38px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.school-details summary { cursor: pointer; padding: 18px 0; min-height: 44px; }
.school-details>div { max-width: 760px; font-size: 13px; line-height: 1.8; }
.schools footer { border-top: 1px solid var(--line); justify-content: space-between; align-items: center; gap: 20px; }
.footer-note { font-size: 12px; color: var(--muted); }
.dialog-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.danger { color: #9c3023; }
#link-help { margin: -7px 0 20px; }
@media (max-width: 800px) {
  .workspace { grid-template-columns: 155px minmax(0, 1fr); gap: 22px; }
  .groups { padding-right: 14px; }
  .storage-note { flex-wrap: wrap; gap: 0 20px; }
  .storage-note>span { width: 100%; padding: 8px 0 0; }
}
@media (max-width: 600px) {
  .schools .cloud-high { top: 8%; right: -20%; width: 180px; opacity: .38; }
  .school-shell { padding-inline: 22px; }
  .school-main { padding-top: 26px; }
  .school-hero { gap: 0; margin-bottom: 24px; }
  .school-hero h1 { font-size: clamp(42px, 9.2vw, 54px); margin-bottom: 18px; }
  .school-lead { font-size: 13px; }
  .eyebrow { font-size: 10px; margin-bottom: 15px; }
  .workspace { display: block; margin-top: 20px; }
  .groups { border: 0; padding: 0; margin-bottom: 24px; }
  .groups-heading { margin: 0; }
  #group-list { display: flex; gap: 6px; flex-wrap: wrap; max-height: 180px; overflow-y: auto; }
  .group-button { width: auto; font-size: 12px; gap: 10px; }
  .groups-help { display: none; }
  .library-heading { gap: 10px; margin-bottom: 18px; }
  .library-heading h2 { font-size: 22px; }
  .library-heading>button { font-size: 12px; gap: 8px; padding-inline: 13px; }
  .library-tools { flex-wrap: wrap; gap: 0 12px; margin-bottom: 12px; }
  .search-field { flex-basis: 100%; }
  .library-tools>.text-button { margin-left: auto; }
  .empty-state { padding: 30px 16px; }
  .empty-state h3 { font-size: 22px; }
  .link-card { padding: 16px; }
  .link-card-bottom { align-items: flex-start; }
  .card-actions { gap: 12px; }
  .school-details { margin-top: 28px; }
  .schools footer { align-items: flex-start; flex-direction: column; gap: 4px; padding-block: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .school-hero { animation: reveal .55s var(--ease) both; }
  .workspace { animation: reveal .55s .08s var(--ease) both; }
}


/* Yhtenäinen suomi.fi-tyylinen teema */
:root { --paper: #ffffff; }
.storage-dot { background: #00247d; }
.school-status { color: #00247d; }
.school-status:not(:empty) { background: #eef1f9; }
.icon-button:hover { background: #eef1f9; }
.group-button:hover { background: #eef1f9; }
.group-button[aria-current="true"] { background: #e3e9f7; color: var(--ink); }
.search-field input { background: #ffffff; }
.link-card { background: #ffffff; }
.link-card:hover { border-color: #b9c4e0; box-shadow: none; }
.link-card-bottom { border-top-color: var(--line); }
.group-tag { color: var(--ink); background: #e8ecf6; }
.empty-state { border-color: var(--line); background: #ffffff; }
.empty-symbol { background: #e8ecf6; color: #00247d; }
.empty-state h3 { font-family: Arial, Helvetica, sans-serif; font-style: normal; font-weight: 700; letter-spacing: -.03em; }
.portal-badge { background: #eef1f9; border-color: #b9c4e0; color: var(--ink); }
.pilot-banner { background: #ffffff; }
header { border-bottom: 1px solid var(--line); }

/* Liike poistettu käytöstä */
*, *::before, *::after { animation: none !important; transition: none !important; }
:hover { transform: none !important; }
