/* The shared tutor welcome and Laman Utama, in the portal's navy, teal and gold. */
.tutor-banner { width: 100%; max-width: 1440px; margin-inline: auto; }
body.tutor-theme .main:has(> .tutor-banner:not([hidden])) { padding-top: 32px; gap: 24px; }
body.tutor-theme .home-view { gap: 26px; }
:root body.tutor-theme .tutor-welcome {
  position: relative; isolation: isolate; overflow: hidden; padding: 24px 30px;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'intro clock'; align-items: center;
  gap: 20px 48px; border: 1px solid #244354; border-radius: 20px;
  background: #122c3e; color: #f3f7fa; box-shadow: 0 8px 28px #122c3e0b;
}
.tutor-welcome::before { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; right: -100px; top: -240px; border: 1px solid #ffffff10; border-radius: 50%; box-shadow: 0 0 0 65px #ffffff03, 0 0 0 130px #ffffff02; pointer-events: none; }
.tutor-welcome::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: #d7b773; pointer-events: none; }
.home-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 10px; font-weight: 600; letter-spacing: .14em; color: #a8d8cd; }
.home-kicker .ph { color: #e4c987; font-size: 16px; }
.tutor-welcome .home-welcome { font-size: 12px; color: #b8cad6; margin-bottom: 7px; }
.tutor-welcome .home-greet { color: #fff; font-size: clamp(28px, 2.5vw, 38px); line-height: 1.25; letter-spacing: -.045em; }
.tutor-welcome .greet-dot { color: #e4c987; }
.home-top.tutor-welcome .home-hint { margin: 10px 0 0; color: #c0d0da; font-size: 13px; line-height: 1.6; }
.tutor-welcome .home-clock { border: 0; padding: 0; gap: 7px; align-items: flex-end; }
.tutor-welcome .home-clock-now { color: #f4f7fa; font-size: 29px; }
.tutor-welcome :is(.home-clock-sec, .home-clock-part, .home-clock-date) { color: #b9ccd8; }

/* One selection controls the exterior reference, address, directions and map. */
:root body.tutor-theme .kk-card { padding: 26px; gap: 22px; border-radius: 20px; }
.kk-eyebrow { margin: 0 0 7px; color: var(--brand); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.kk-card .kk-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.kk-card .kk-row { padding: 0; border: 1px solid var(--line); border-radius: 11px; box-shadow: none; background: var(--gray-2); transition: border-color .18s, background .18s; }
.kk-card .kk-row.is-mine { box-shadow: none; }
.kk-card .kk-go { align-items: center; justify-content: center; gap: 10px; padding: 13px 12px; min-height: 68px; height: 100%; border-radius: inherit; }
.kk-card .kk-num { width: 29px; height: 29px; border-radius: 9px; color: var(--gray-11); background: var(--gray-4); font-size: 11px; }
.kk-card .kk-row.is-mine .kk-num { background: var(--green-3); color: var(--green-11); }
.kk-card .kk-name { font: 600 15px/1.4 var(--heading-font); letter-spacing: -.2px; }
.kk-card .kk-row.is-selected { background: color-mix(in srgb, var(--brand) 8%, var(--panel)); border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.kk-card .kk-row.is-selected .kk-num { background: var(--brand); color: var(--panel); }
.kk-card .kk-row:hover { border-color: var(--brand); }
.kk-card .kk-body { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.8fr); align-items: stretch; gap: 20px; }
.kk-detail { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.kk-photo { position: relative; height: 190px; overflow: hidden; background: #122c3e; }
.kk-photo > button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.kk-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transition: transform .25s; }
.kk-photo > button:hover img { transform: scale(1.035); }
.kk-photo-label { position: absolute; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 6px; background: #12283ae8; color: #fff; font-size: 10px; font-weight: 500; pointer-events: none; }
.kk-photo-zoom { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 6px; background: #12283ae8; color: #fff; font-size: 10px; }
.kk-photo.is-pending { display: flex; align-items: center; justify-content: center; padding: 24px 20px 44px; background: var(--gray-3); }
.kk-photo-pending { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gray-10); font-size: 12px; font-weight: 500; }
.kk-photo-pending .ph { font-size: 26px; color: var(--gray-9); }
.kk-detail-copy { padding: 18px; }
.kk-directions { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 8px; padding: 10px; background: var(--brand); color: var(--panel); text-decoration: none; font-size: 12px; font-weight: 600; }
.kk-directions:hover { filter: brightness(1.1); }
.kk-directions .ph:last-child { margin-left: auto; }
.kk-map-wrap { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; min-width: 0; }
.kk-card .kk-map-slot { flex: 1; min-height: 330px; border-radius: 0; box-shadow: none; }
.kk-card .kk-map-note { min-height: 330px; }
.kk-map-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--gray-2); }
.kk-map-toolbar > span { display: flex; align-items: center; gap: 6px; color: var(--gray-11); font-size: 11px; }
.kk-map-toolbar > span > .ph { color: var(--brand); }
.home-view :is(a, button):focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

@media (max-width: 1199px) {
  :root body.tutor-theme .tutor-welcome { padding: 22px 26px; gap: 20px 30px; }
  .kk-card .kk-go { gap: 8px; padding: 12px 9px; }
  .kk-card .kk-body { grid-template-columns: minmax(250px, 1fr) minmax(0, 1.5fr); gap: 16px; }
}
@media (max-width: 899px) {
  :root body.tutor-theme .tutor-welcome { padding: 22px; gap: 18px; }
  :root body.tutor-theme .kk-card { padding: 20px; }
  .kk-card .kk-list { display: flex; flex-direction: row; overflow-x: auto; gap: 9px; padding: 2px 2px 8px; margin: -2px; scroll-snap-type: x proximity; }
  .kk-card .kk-row { flex: 1 0 145px; scroll-snap-align: start; }
  .kk-card .kk-body { grid-template-columns: minmax(230px, 1fr) minmax(0, 1.2fr); }
  .kk-photo { height: 170px; }
  .kk-detail-copy { padding: 15px; }
}
@media (max-width: 639px) {
  body.tutor-theme .main:has(> .tutor-banner:not([hidden])) { padding-top: 20px; gap: 20px; }
  body.tutor-theme .home-view { gap: 20px; }
  :root body.tutor-theme .tutor-welcome { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'clock' 'intro'; gap: 16px; padding: 20px; border-radius: 16px; }
  .tutor-welcome .home-clock { flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px 10px; padding: 0 0 15px; border-bottom: 1px solid #ffffff20; border-top: 0; }
  .tutor-welcome .home-clock-now { font-size: 19px; }
  .tutor-welcome .home-clock-sec { font-size: 10px; }
  .tutor-welcome .home-clock-part { font-size: 9px; }
  .tutor-welcome .home-clock-date { width: 100%; text-align: right; font-size: 10px; }
  .home-kicker { margin-bottom: 14px; font-size: 9px; }
  .tutor-welcome .home-greet { font-size: 29px; }
  :root body.tutor-theme .kk-card { padding: 18px; gap: 18px; border-radius: 16px; }
  .kk-card .kk-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .kk-photo { height: 205px; }
  .kk-card .kk-map-slot, .kk-card .kk-map-note { min-height: 290px; }
}
@media (prefers-reduced-motion: reduce) {
  .kk-row, .kk-photo img { transition: none; }
  .kk-photo > button:hover img { transform: none; }
}

/* The detail beside the map is the photo and Buka di Google Maps: the photo takes the height the map leaves. */
.kk-detail { display: flex; flex-direction: column; }
.kk-detail > .kk-photo { flex: 1 1 auto; min-height: 170px; }

/* A branch photo, full size, over the page (<dialog id="photo-view">): the X at the top right closes it. */
.photo-view { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #0d1b26; color: #f3f7fa; box-shadow: 0 24px 60px #0008; }
.photo-view::backdrop { background: #07111ad0; }
.photo-view[open] { display: flex; flex-direction: column; }
.photo-view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; }
.photo-view-title { margin: 0; min-width: 0; font: 600 14px/1.4 var(--heading-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-view-close { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 9px; background: #ffffff14; color: #fff; font-size: 20px; cursor: pointer; }
.photo-view-close:hover { background: #ffffff2a; }
.photo-view-close:focus-visible { outline: 2px solid #e4c987; outline-offset: 2px; }
.photo-view-img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 32px - 58px); object-fit: contain; background: #000; }
@media (prefers-reduced-motion: no-preference) {
  .photo-view[open] { animation: photo-view-in .18s ease-out; }
  .photo-view[open]::backdrop { animation: photo-view-fade .18s ease-out; }
}
@keyframes photo-view-in { from { opacity: 0; transform: scale(.97); } }
@keyframes photo-view-fade { from { opacity: 0; } }

/* A branch with several photos: thumbnails under the photo, previous / next in the pop-up. */
.kk-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; padding: 12px 18px 0; }
.kk-thumb { padding: 0; height: 48px; overflow: hidden; border: 0; border-radius: 7px; background: var(--gray-3); opacity: .7; cursor: pointer; transition: opacity .15s; }
.kk-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kk-thumb:hover { opacity: 1; }
.kk-thumb[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--brand); outline-offset: 1px; }
.photo-view-title { flex: 1; }
.photo-view-count { flex: none; color: #b9ccd8; font-size: 12px; }
.photo-view-stage { position: relative; min-height: 0; }
/* The same height for every photo, so that the arrows stay put when a tall one follows a wide one. */
.photo-view.has-many .photo-view-img { height: min(calc(100dvh - 90px), 75vw, 825px); }
.photo-view-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 50%; background: #0d1b26cc; color: #fff; font-size: 20px; cursor: pointer; }
.photo-view-nav[hidden] { display: none; }
.photo-view-nav:hover { background: #0d1b26; }
.photo-view-nav:focus-visible { outline: 2px solid #e4c987; outline-offset: 2px; }
.photo-view-nav.is-prev { left: 12px; }
.photo-view-nav.is-next { right: 12px; }
@media (prefers-reduced-motion: reduce) { .kk-thumb { transition: none; } }

/* Admin Gambar: add or remove a branch's photos. */
.kk-admin { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 0; }
.kk-gambar-preview { display: block; width: 100%; max-height: 320px; object-fit: contain; border-radius: 10px; background: var(--gray-3); }
.kk-gambar-preview[hidden] { display: none; }

/* Full-width welcome, then branches on the left and the noticeboard on the right. */
.hc-action-list.has-more { height: 216px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 6px; }
.hc-action-list > li { flex: none; }
.hc-action-list > li[hidden] { display: none; }
.hc-action-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.hc-action-foot > span { color: var(--gray-11); font-size: 11px; }
.hc-action-foot .link-btn { min-height: 32px; }
.home-board { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 22px; align-items: start; }
.home-board > .kk-card { min-width: 0; }
:root body.tutor-theme .home-board .kk-card { padding: 24px; gap: 20px; }
.home-board .kk-body { grid-template-columns: minmax(200px, .85fr) minmax(0, 1.25fr); gap: 16px; }
.home-board .kk-go { padding: 12px 6px; gap: 7px; min-height: 60px; }
.home-board .kk-name { font-size: 12px; }
.home-board .kk-num { width: 25px; height: 25px; flex: none; }
.home-board .kk-list { gap: 8px; }
.home-board .kk-map-slot, .home-board .kk-map-note { min-height: 330px; }
.home-memos { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.memo-next { position: relative; overflow: hidden; padding: 23px; border: 1px solid color-mix(in srgb, var(--brand) 23%, var(--line)); border-radius: 20px; background: color-mix(in srgb, var(--brand) 6%, var(--panel)); }
.memo-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--brand); font-size: 9px; font-weight: 700; letter-spacing: .14em; margin-bottom: 15px; }
.memo-eyebrow .ph { font-size: 18px; }
.memo-next h2 { font: 700 21px/1.4 var(--heading-font); letter-spacing: -.65px; color: var(--gray-12); margin: 0; overflow-wrap: anywhere; }
.memo-next-date { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--gray-11); font-size: 10px; line-height: 1.7; margin: 10px 0 0; }
.memo-next-date .ph { color: var(--brand); font-size: 14px; }
.memo-next-date > span { font-size: 9px; }
.memo-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 20px 0 17px; font-variant-numeric: tabular-nums; }
.memo-countdown > span { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 2px 10px; border: 1px solid color-mix(in srgb, var(--brand) 13%, var(--line)); border-radius: 10px; background: var(--panel); }
.memo-countdown strong { font: 700 25px/1.1 var(--heading-font); letter-spacing: -.8px; color: var(--brand); }
.memo-countdown small { font-size: 9px; color: var(--gray-11); }
.memo-countdown.is-empty strong { color: var(--gray-9); }
.memo-next-note { margin: 0; font-size: 11px; line-height: 1.8; color: var(--gray-11); white-space: pre-wrap; overflow-wrap: anywhere; }
:root body.tutor-theme .memo-board { padding: 0; border-radius: 20px; overflow: hidden; }
.memo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 23px 22px 18px; }
.memo-head h2 { font: 700 18px/1.4 var(--heading-font); letter-spacing: -.6px; margin: 0; color: var(--gray-12); }
.memo-head > .ph { color: var(--brand); font-size: 23px; }
.memo-head .kk-eyebrow { font-size: 8px; }
.memo-add { margin: 0 22px 18px; width: calc(100% - 44px); }
.memo-list { padding: 0 22px; margin: 0; list-style: none; max-height: 470px; overflow-y: auto; scrollbar-width: thin; }
.memo-item { border-top: 1px solid var(--line); padding: 17px 0; }
.memo-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.memo-meta > span { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--panel)); padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 600; }
.memo-item[data-kind="penting"] .memo-meta > span { color: var(--amber-11, #97651e); background: color-mix(in srgb, #cda453 14%, var(--panel)); }
.memo-item h3 { margin: 0 0 7px; color: var(--gray-12); font: 700 13px/1.55 var(--heading-font); overflow-wrap: anywhere; }
.memo-copy { margin: 0; color: var(--gray-11); font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.memo-date { margin: 11px 0 0; color: var(--gray-11); font-size: 9px; line-height: 1.7; }
.memo-edit { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--gray-11); cursor: pointer; }
.memo-edit:hover { border-color: var(--brand); color: var(--brand); }
.memo-empty { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 22px; padding: 27px 0 31px; border-top: 1px solid var(--line); color: var(--gray-11); font-size: 11px; line-height: 1.8; }
.memo-empty > .ph { font-size: 28px; margin-bottom: 12px; color: var(--brand); opacity: .7; }
.memo-empty strong { font-weight: 600; color: var(--gray-12); }
.memo-empty p { margin: 6px 0 0; }
@media (min-width: 1101px) and (max-width: 1450px) {
  .home-board { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
  .home-board .kk-go { flex-direction: column; gap: 6px; }
  .home-board .kk-body { grid-template-columns: minmax(170px, .8fr) minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .home-board { grid-template-columns: minmax(0, 1fr); }
  .home-memos { grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .home-board .kk-body { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); }
}
@media (max-width: 639px) {
  .home-board { gap: 20px; }
  .home-memos { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .memo-next, :root body.tutor-theme .memo-board { border-radius: 16px; }
  .memo-next { padding: 20px; }
  :root body.tutor-theme .home-board .kk-card { padding: 18px; }
  .home-board .kk-body { grid-template-columns: minmax(0, 1fr); }
  .home-board .kk-go { padding: 12px; }
}

/* Panduan Tutor CFS */
.pd-title { margin: 8px 0 0; color: var(--gray-12); font: 700 18px/1.4 var(--heading-font); letter-spacing: -.4px; }
@media (max-width: 639px) {
  .pd-tabs { width: 100%; min-width: 0; }
  .pd-tabs button { flex: 1 1 0; flex-direction: column; min-width: 0; gap: 4px; padding: 8px 4px; font-size: 11px; line-height: 1.3; text-align: center; }
}

/* Perlu Guru: glows red, fast, while a class needs a tutor. */
:root body.tutor-theme .pgr-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; overflow: visible; }
:root body.tutor-theme .pgr-card.is-urgent { outline: 2px solid #e5484d; animation: pgr-glow .55s ease-in-out infinite alternate; }
@keyframes pgr-glow { from { box-shadow: 0 0 2px 0 #e5484d55; } to { box-shadow: 0 0 22px 5px #e5484dcc; } }
.pgr-card .memo-head .ph { color: var(--gray-10); font-size: 24px; }
.pgr-card.is-urgent .memo-head .ph { color: #e5484d; }
.pgr-eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 7px; color: #d13438; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.pgr-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: pgr-blink .55s ease-in-out infinite alternate; }
@keyframes pgr-blink { to { opacity: .25; } }
.pgr-card h2 { margin: 0; color: var(--gray-12); }
.pgr-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #e5484d; color: #fff; font-size: 12px; vertical-align: 3px; letter-spacing: 0; }
.pgr-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pgr-item { display: flex; flex-direction: column; gap: 5px; padding: 13px 14px; border: 1px solid color-mix(in srgb, #e5484d 35%, var(--line)); border-radius: 12px; background: color-mix(in srgb, #e5484d 6%, var(--panel)); }
.pgr-item.is-off { border-color: var(--line); background: var(--gray-2); opacity: .75; }
.pgr-item h3 { margin: 2px 0 0; color: var(--gray-12); font: 700 15px/1.4 var(--heading-font); }
.pgr-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pgr-jenis { padding: 2px 7px; border-radius: 5px; background: #e5484d; color: #fff; font-size: 10px; font-weight: 700; }
.pgr-item.is-off .pgr-jenis { background: var(--gray-9); }
.pgr-where, .pgr-when { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--gray-11); font-size: 12px; }
.pgr-note { margin: 3px 0 0; color: var(--gray-11); font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.pgr-admin { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pgr-cta { margin: 0; color: var(--gray-11); font-size: 12px; font-weight: 600; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  :root body.tutor-theme .pgr-card.is-urgent { animation: none; box-shadow: 0 0 14px 3px #e5484d99; }
  .pgr-dot { animation: none; }
}
.pgr-card .memo-head { padding: 0; border: 0; margin: 0; }
.pgr-card .memo-add { margin: 0; width: 100%; }
.pgr-admin .btn { flex: 0 1 auto; white-space: normal; height: auto; }

.memo-next-btn { width: 100%; margin-top: 14px; justify-content: center; }

/* Laman Utama: countdown, memos and Perlu Guru in a row on top (two or three cards), the map full width below. */
.home-board { grid-template-columns: minmax(0, 1fr); }
.home-memos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-row: auto; align-items: stretch; }
.home-board .kk-go { flex-direction: row; }
.home-board .kk-name { font-size: 15px; }
.home-board .kk-body { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.8fr); }
@media (max-width: 1100px) {
  .home-memos { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .pgr-card { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .home-memos { grid-template-columns: minmax(0, 1fr); }
  .home-board .kk-body { grid-template-columns: minmax(0, 1fr); }
}
.pgr-admin .btn { min-height: 34px; padding: 6px 12px; border-radius: 8px; }
@media (min-width: 1101px) { .pgr-list { max-height: 420px; overflow-y: auto; } }

/* Countdown and memos, a little more compact. */
.memo-next { padding: 16px 18px; border-radius: 16px; }
.memo-eyebrow { margin-bottom: 9px; }
.memo-eyebrow .ph { font-size: 15px; }
.memo-next h2 { font-size: 17px; line-height: 1.3; letter-spacing: -.4px; }
.memo-next-date { margin-top: 5px; }
.memo-countdown { gap: 6px; margin: 11px 0 9px; }
.memo-countdown > span { gap: 2px; padding: 7px 2px 6px; border-radius: 8px; }
.memo-countdown strong { font-size: 19px; }
.memo-next-note { line-height: 1.5; }
.memo-next-btn { margin-top: 10px; }
:root body.tutor-theme .memo-board { border-radius: 16px; }
.memo-head { padding: 16px 18px 11px; }
.memo-head h2 { font-size: 16px; line-height: 1.3; }
.memo-head > .ph { font-size: 20px; }
.memo-add { margin: 0 18px 12px; width: calc(100% - 36px); }
.memo-list { padding: 0 18px; }
.memo-item { padding: 11px 0; }
.memo-meta { margin-bottom: 6px; }
.memo-item h3 { margin-bottom: 3px; line-height: 1.4; }
.memo-copy { line-height: 1.5; }
.memo-date { margin-top: 6px; }
.memo-empty { margin: 0 18px; padding: 16px 0 18px; line-height: 1.5; }
.memo-empty > .ph { font-size: 22px; margin-bottom: 7px; }

/* Login: the portal's navy, teal and gold in place of near-black. */
.sl-screen {
  --gray-1: #12283a; --gray-2: #173044; --gray-3: #233e52; --gray-4: #2b4a60; --gray-5: #345468; --gray-6: #425f73;
  --gray-7: #567386; --gray-8: #70c9ad; --gray-9: #8aa3b3; --gray-10: #a4b8c7; --gray-11: #c1d0dc; --gray-12: #f0f5f8;
  --page: #12283a; --panel: #173044; --placeholder: #8fa6b6;
  --line: #ffffff1c; --line-strong: #ffffff2e;
  background: radial-gradient(ellipse 120% 90% at 50% 35%, #15303f 0%, #0e2233 50%, #091824 100%);
}
.sl-shell { background: color-mix(in srgb, #12283a 62%, transparent); box-shadow: inset 0 0 0 1px #ffffff1c, 0 24px 48px -12px #06121c99; }
.sl-card .input { background: #0c1f2e; }
.sl-card .input:focus { border-color: #70c9ad; box-shadow: 0 0 0 3px #70c9ad33; }
.sl-card .btn-primary { background: #1f8a72; color: #fff; }
@media (hover: hover) { .sl-card .btn-primary:hover { background: #24a085; } }

.pg-padam { color: #c0392b; }
.pg-padam:hover { background: color-mix(in srgb, #e5484d 10%, transparent); color: #a82d22; }
:root[data-theme="dark"] .pg-padam { color: #ff9592; }
