.home-stack { display: grid; gap: 18px; }
.home-metrics[hidden], .home-personal-dashboard[hidden] { display: none !important; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr); gap: 24px; align-items: center; padding: 28px; background: linear-gradient(135deg, #f1f8f4, #f8fbf9); border: 1px solid #dce9e1; border-radius: 14px; }
.home-hero h1 { margin: 0; color: #20352d; font-size: clamp(27px, 4vw, 40px); line-height: 1.12; }
.home-lead { max-width: 720px; margin: 12px 0 0; color: #566b63; font-size: 17px; line-height: 1.55; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.home-action { min-height: 44px; padding: 11px 20px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease; }
.home-action:hover { transform: translateY(-1px); }
.home-action:active { transform: translateY(0); }
.home-action:focus-visible { outline: 3px solid rgba(44, 82, 130, .24); outline-offset: 2px; }
.home-action--primary { border: 1px solid #294f79; background: linear-gradient(90deg, #5f8fc5, #2c5282); color: #fff; box-shadow: 0 5px 12px rgba(44, 82, 130, .24); }
.home-action--primary:hover { background: linear-gradient(90deg, #527faf, #23456d); box-shadow: 0 7px 15px rgba(44, 82, 130, .29); }
.home-action--secondary { border: 1px solid #9db9ca; background: linear-gradient(135deg, #fff, #edf4f8); color: #244c63; box-shadow: 0 3px 9px rgba(36, 76, 99, .10); }
.home-action--secondary:hover { border-color: #6f98b0; background: linear-gradient(135deg, #f8fbfd, #e4eef4); box-shadow: 0 5px 12px rgba(36, 76, 99, .15); }
.home-snapshot { display: grid; gap: 10px; padding: 20px; background: #fff; border: 1px solid #dce9e1; border-radius: 12px; }
.home-snapshot strong { color: #20352d; font-size: 28px; }
.home-snapshot span { color: #667a72; font-size: 13px; }
.home-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-personal-dashboard { display: grid; height: clamp(360px, 25vw, 440px); grid-template-columns: minmax(190px, .72fr) repeat(3, minmax(240px, 1fr)); gap: 14px; align-items: stretch; }
.home-personal-metrics { display: grid; min-height: 0; grid-template-columns: 1fr; gap: 10px; }
.home-personal-metrics .home-metric { background: linear-gradient(145deg, #dfeaf8, #edf3fb); border: 2px solid #83a9d1; box-shadow: 0 3px 0 #347cad; }
.home-personal-metrics .home-metric span { color: #3f617f; font-weight: 600; }
.home-personal-metrics .home-metric strong { color: #123f63; }
.home-dashboard-action { position: relative; display: block; width: 100%; box-sizing: border-box; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.home-dashboard-action:hover { border-color: #4f8ec7; background: linear-gradient(145deg, #d5e6f8, #e7f1fb); transform: translateY(-1px); }
.home-dashboard-action:focus-visible { outline: 3px solid rgba(44, 82, 130, .28); outline-offset: 2px; }
.home-dashboard-action small { position: absolute; right: 12px; bottom: 9px; color: #47779f; font-size: 11px; font-weight: 700; }
.home-personal-panel { display: flex; min-width: 0; min-height: 0; padding: 18px; background: #fff; border: 1px solid #d9e4df; border-radius: 11px; flex-direction: column; }
.home-personal-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.home-personal-head h2 { margin: 0; color: #243c33; font-size: 17px; line-height: 1.25; }
.home-personal-head span { flex: none; color: #74867f; font-size: 11px; }
.home-personal-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
.home-personal-species { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 39px; padding: 9px 7px; border-top: 1px solid #edf1ee; color: #20352d; text-decoration: none; }
.home-personal-species:first-child { border-top: 0; }
.home-personal-species:hover { background: #f2f7fa; color: #245a82; }
.home-personal-species:focus-visible { outline: 3px solid rgba(44, 82, 130, .22); outline-offset: -2px; }
.home-personal-species-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.home-personal-species-name em { margin-left: 4px; color: #6f7f79; font-size: 11px; font-weight: 400; }
.home-personal-species-arrow { flex: none; color: #4f789d; font-size: 18px; }
.home-personal-empty { padding: 18px 4px; color: #6a7c75; font-size: 13px; line-height: 1.45; }
.home-rarest-panel { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, #fffdf8, #fff); border-color: #eadbb8; }
.home-rarest-panel > .home-personal-head { margin: 0 8px; padding: 7px 10px; border: 1px solid #caddea; border-bottom: 0; border-radius: 8px 8px 0 0; background: #dceaf5; }
.home-rarest-panel > .home-personal-head h2 { font-size: 15px; }
.home-rarest-card { position: relative; display: flex; flex: 1; min-height: 0; align-items: stretch; }
.home-rarest-stage { position: relative; display: flex; width: 100%; min-height: 0; }
.home-rarest-link { display: flex; width: 100%; min-height: 0; gap: 12px; padding: 0 8px 1px; border-radius: 9px; color: #20352d; flex-direction: column; text-align: center; text-decoration: none; }
.home-rarest-link:hover { background: #fff8e9; }
.home-rarest-media { display: block; flex: 1; min-height: 118px; overflow: hidden; border: 1px solid #caddea; border-radius: 0 0 8px 8px; background: linear-gradient(135deg, #dbe8f4, #f5f9fd); }
.home-rarest-media img { display: block; width: 100%; height: 100%; min-height: 118px; opacity: 0; object-fit: cover; transition: opacity .25s ease; }
.home-rarest-media--ready img { opacity: 1; }
.home-rarest-copy { min-width: 0; padding: 0 4px 4px; }
.home-rarest-summary { display: block; overflow: hidden; color: #8a6725; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.home-rarest-summary strong { color: #20352d; font-size: 17px; }
.home-rarest-summary em { color: #6f7f79; font-size: 11px; font-weight: 400; }
.home-rarest-link { padding-bottom: 1px; }
.home-rarest-copy { padding-bottom: 0; }
.home-rarest-panel .home-personal-note { margin-top: 2px; }
.home-rarest-nav { position: absolute; z-index: 2; top: 50%; width: 34px; height: 44px; padding: 0; border: 1px solid rgba(63, 105, 141, .45); border-radius: 999px; background: rgba(244, 249, 253, .9); box-shadow: 0 2px 8px rgba(25, 56, 82, .18); color: #315e83; font-size: 30px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.home-rarest-nav:hover { background: #fff; }
.home-rarest-nav:focus-visible { outline: 3px solid rgba(44, 82, 130, .32); outline-offset: 2px; }
.home-rarest-nav--previous { left: 18px; }
.home-rarest-nav--next { right: 18px; }
.home-personal-note { margin: 10px 0 0; color: #7c8883; font-size: 11px; line-height: 1.35; text-align: center; }
.home-metric { padding: 16px 18px; background: #fff; border: 1px solid #e2e8e4; border-radius: 11px; }
.home-metric span { display: block; color: #6a7c75; font-size: 13px; }
.home-metric strong { display: block; margin-top: 5px; color: #243c33; font-size: 20px; }
.home-section { padding: 22px; background: #fff; border: 1px solid #e2e8e4; border-radius: 12px; }
.home-live-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-section-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 14px; }
.home-section-head h2 { margin: 0; color: #243c33; }
.home-section-head a { color: #287452; font-size: 14px; font-weight: 600; text-decoration: none; }
.home-section-head a:hover { text-decoration: underline; }
.home-recent-list { display: grid; }
.home-recent-row { display: grid; grid-template-columns: minmax(190px, .9fr) minmax(200px, 1.1fr) 170px; gap: 12px; align-items: center; padding: 13px 2px; border-top: 1px solid #edf1ee; }
.home-recent-row:first-child { border-top: 0; }
.home-species { min-width: 0; overflow: hidden; color: #20352d; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.home-species:hover { color: #287452; text-decoration: underline; }
.home-english { margin-left: 5px; color: #687a73; font-size: 12px; font-style: italic; font-weight: 400; }
.home-location, .home-date { overflow: hidden; color: #60736b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.home-date { text-align: right; }
.home-rare { margin-left: 5px; color: #d88718; }
.home-rare-section { border-color: #eadbb8; background: linear-gradient(180deg, #fffdf8, #fff); }
.home-row-new { animation: home-row-arrival 4s ease-out; }
@keyframes home-row-arrival { from { background: #e4f6e9; } to { background: transparent; } }
.home-loading, .home-empty { padding: 18px 0; color: #6a7c75; }
.home-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.home-thread { display: block; padding: 12px 0; border-top: 1px solid #edf1ee; color: #20352d; text-decoration: none; }
.home-thread:first-child { border-top: 0; }
.home-thread:hover strong { color: #287452; text-decoration: underline; }
.home-thread span { display: block; margin-top: 4px; color: #74867f; font-size: 12px; }
.home-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-explore-section { display: flex; flex-direction: column; }
.home-explore-section .home-section-head { margin-bottom: 0; }
.home-explore-section .home-features { flex: 0; margin-block: auto; align-items: stretch; }
.home-feature { display: block; padding: 18px; background: #f7faf8; border: 1px solid #e2eae5; border-radius: 10px; color: #243c33; text-decoration: none; }
.home-feature:hover { border-color: #9bc5ad; background: #f0f8f3; }
.home-feature strong { display: block; margin-bottom: 7px; }
.home-feature span { color: #687a73; font-size: 13px; line-height: 1.45; }
.home-modal-open { overflow: hidden; }
.home-modal-overlay { position: fixed; z-index: 12000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(10, 24, 39, .62); backdrop-filter: blur(3px); }
.home-modal-overlay[hidden] { display: none; }
.home-modal-box { display: flex; width: min(760px, 100%); max-height: min(82vh, 760px); overflow: hidden; border: 2px solid #82afe0; border-radius: 15px; background: #f7fbff; box-shadow: 0 22px 60px rgba(9, 30, 48, .35); flex-direction: column; }
.home-modal-header { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 20px 22px 17px; border-bottom: 1px solid #cfe0ef; background: #e5f0fb; }
.home-modal-header h2 { margin: 0; color: #20352d; font-size: 23px; }
.home-modal-header p { margin: 6px 0 0; color: #60736b; font-size: 13px; }
.home-modal-close { flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid #9fbcd3; border-radius: 50%; background: #fff; color: #244c63; font: inherit; font-size: 25px; line-height: 1; cursor: pointer; }
.home-modal-close:hover { border-color: #598cb1; background: #edf5fb; }
.home-modal-close:focus-visible { outline: 3px solid rgba(44, 82, 130, .28); outline-offset: 2px; }
.home-modal-list { min-height: 0; overflow-y: auto; padding: 8px 20px 18px; scrollbar-gutter: stable; }
.home-modal-species { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 13px 4px; border-top: 1px solid #dce8f1; color: #20352d; text-decoration: none; }
.home-modal-species:first-child { border-top: 0; }
.home-modal-species:hover { color: #245a82; background: #edf5fb; }
.home-modal-species:focus-visible { outline: 3px solid rgba(44, 82, 130, .22); outline-offset: -2px; }
.home-modal-species em { margin-left: 4px; color: #6f7f79; font-size: 12px; font-weight: 400; }
.home-modal-species-meta { color: #60736b; font-size: 12px; white-space: nowrap; }
@media (max-width: 1250px) { .home-personal-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-personal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .home-hero, .home-live-columns, .home-columns, .home-personal-dashboard { grid-template-columns: 1fr; } .home-personal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .home-hero { padding: 20px; } .home-actions { display: grid; grid-template-columns: 1fr; } .home-action { width: 100%; } .home-metrics, .home-personal-metrics { grid-template-columns: 1fr; } .home-section { padding: 17px; } .home-recent-row { grid-template-columns: 1fr auto; gap: 5px 12px; } .home-location { grid-column: 1; } .home-date { grid-column: 2; grid-row: 1; } .home-features { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .home-modal-overlay { padding: 10px; } .home-modal-header { padding: 17px; } .home-modal-header h2 { font-size: 19px; } .home-modal-list { padding: 6px 14px 14px; } .home-modal-species { grid-template-columns: 1fr; gap: 4px; } .home-modal-species-meta { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .home-row-new { animation: none; } }
@media (max-width: 1250px) {
    .home-personal-dashboard { height: auto; }
    .home-personal-panel { max-height: 440px; }
}
/* Persónulegu yfirlitsdálkarnir tilheyra bláa notendasvæðinu. */
.home-personal-panel {
    background: #edf5ff;
    border-width: 2px;
    border-color: #82afe0;
    box-shadow: 0 3px 0 #347cad;
}

/* Gerir aðalkynninguna greinilegri gagnvart síðubakgrunninum. */
.home-hero {
    background: #dfeef2;
    border-color: #bdd6dd;
}
