@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
.sntk-wrap { max-width: 820px; margin: 0 auto; padding: 1rem 0 2rem; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.sntk-msg { padding: 1rem; background: #f7f9fc; border-radius: 8px; border: 1px solid #e0e8f0; font-size: 14px; }
.sntk-card { background: #fff; border: 1px solid #e4e8ef; border-radius: 12px; padding: 1.5rem; }

/* Head */
.sntk-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid #eef0f4; }
.sntk-head-icon { width: 36px; height: 36px; background: #f0fae6; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sntk-title { font-size: 15px; font-weight: 600; color: #1a2744; margin: 0 0 3px; }
.sntk-sub { font-size: 12px; color: #6b7280; margin: 0; line-height: 1.5; }

/* Form layout */
.sntk-section-label { font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 8px; }
.sntk-row { display: grid; gap: 10px; margin-bottom: 12px; }
.sntk-row-2 { grid-template-columns: 1fr 1fr; }
.sntk-row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
/* Faceted pills (Curriculum → Year → Subject) — visual layer over hidden source-of-truth selects */
.sntk-facets { margin-bottom: 14px; }
.sntk-facet-block { margin-bottom: 12px; }
.sntk-pillrow { display: flex; flex-wrap: wrap; gap: 6px; }
.sntk-pill { display: inline-flex; align-items: center; padding: 6px 13px; font-size: 13px; font-weight: 600; border-radius: 999px; border: 1px solid #e2e5ea; background: #fff; color: #4b5563; cursor: pointer; font-family: inherit; transition: background .12s, border-color .12s; }
.sntk-pill:hover { border-color: #c7ccd4; }
.sntk-pill.active { background: #eef6e3; border-color: #6AAF2C; color: #3b6d11; }
.sntk-hidden-selects { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sntk-field { margin-bottom: 12px; }
.sntk-field label { display: block; font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.sntk-field select {
    width: 100%;
    padding: 7px 32px 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #1a2744;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1L5 5L9 1' stroke='%231a2744' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.sntk-field select:focus { outline: none; border-color: #6AAF2C; box-shadow: 0 0 0 3px rgba(106,175,44,0.1); }
.sntk-divider { height: 1px; background: #eef0f4; margin: 14px 0; }

/* Topic field */
.sntk-topic-wrap { position: relative; }
.sntk-topic-input { width: 100%; padding: 7px 34px 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; color: #1a2744; background: #f9fafb; }
.sntk-topic-input:not([readonly]):focus { outline: none; border-color: #6AAF2C; box-shadow: 0 0 0 3px rgba(106,175,44,0.1); background: #fff; }
.sntk-topic-prefilled { background: #f0fae6 !important; border-color: #b5da7c !important; color: #2d5a0e !important; }
.sntk-topic-chosen { background: #f3f4f6 !important; border-color: #d1d5db !important; }
.sntk-topic-clear { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #9ca3af; font-size: 14px; padding: 0; line-height: 1; display: inline-flex; align-items: center; }
.sntk-topic-clear:hover { color: #374151; }

/* Hints */
.sntk-hint { font-size: 11px; margin: 4px 0 0; color: #9ca3af; line-height: 1.5; }
.sntk-hint-green { color: #6AAF2C !important; }
.sntk-hint-muted { color: #9ca3af !important; }

/* Autocomplete */
.sntk-autocomplete { position: absolute; top: calc(100% + 3px); left: 0; right: 0; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; z-index: 200; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.sntk-ac-item { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #f3f4f6; font-size: 13px; color: #1a2744; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sntk-ac-item:last-child { border-bottom: none; }
.sntk-ac-item:hover { background: #f0fae6; }
.sntk-ac-item mark { background: none; color: #6AAF2C; font-weight: 700; }
.sntk-ac-meta { font-size: 11px; color: #9ca3af; flex-shrink: 0; font-weight: 500; }
.sntk-ac-empty { padding: 12px; font-size: 12px; color: #9ca3af; text-align: center; }

/* Duration toggle */
.sntk-toggle-group { display: flex; gap: 6px; }
.sntk-tog { flex: 1; padding: 7px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 600; color: #6b7280; cursor: pointer; text-align: center; transition: all 0.12s; }
.sntk-tog:hover { border-color: #6AAF2C; color: #2d5a0e; }
.sntk-tog-on { background: #f0fae6 !important; border-color: #6AAF2C !important; color: #2d5a0e !important; }

/* Day buttons */
.sntk-days-group { display: flex; gap: 6px; margin-bottom: 6px; }
.sntk-day { flex: 1; padding: 7px 4px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; font-size: 11px; font-weight: 600; color: #6b7280; cursor: pointer; text-align: center; line-height: 1.3; transition: all 0.12s; }
.sntk-day:hover { border-color: #6AAF2C; color: #2d5a0e; }
.sntk-day-on { background: #f0fae6 !important; border-color: #6AAF2C !important; color: #2d5a0e !important; }
.sntk-day-fw { flex: 2; font-size: 11px; }
.sntk-day-sub { display: block; font-size: 10px; font-weight: 400; color: #9ca3af; margin-top: 2px; }
.sntk-day-on .sntk-day-sub { color: #6AAF2C; }
.sntk-days-hint { font-size: 11px; margin: 0 0 12px; }
.sntk-hint-prompt { color: #9ca3af; }
.sntk-hint-active { color: #6AAF2C; }

/* Usage bar */
.sntk-usage-bar { display: flex; justify-content: space-between; align-items: center; padding: 7px 11px; background: #f9fafb; border-radius: 6px; margin-bottom: 10px; font-size: 12px; color: #6b7280; border: 1px solid #eef0f4; }
.sntk-usage-reset { font-size: 11px; color: #9ca3af; }

/* Submit button */
.sntk-btn { width: 100%; padding: 10px; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.sntk-btn-ready { background: #6AAF2C; color: #fff; }
.sntk-btn-ready:hover { background: #5a9a24; }
.sntk-btn-waiting { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; border: 1px solid #e5e7eb; }
/* Topic field is a hidden form value — the search bar above is the sole visible topic interface */
.sntk-topic-field, .sntk-topic-field + .sntk-divider { display: none; }
.sntk-facets-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sntk-facets-header .sntk-section-label { margin: 0; }
.sntk-btn-clear { background: none; border: none; padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 700; color: #9ca3af; cursor: pointer; font-family: inherit; letter-spacing: 0.06em; text-transform: uppercase; transition: background .15s, color .15s; }
.sntk-btn-clear:hover { background: #f1f5f9; color: #475569; }
.sntk-btn-sub { font-size: 11px; font-weight: 400; opacity: 0.85; margin-left: 5px; }

/* Loading */
.sntk-loading { text-align: center; padding: 1.5rem 0 0.5rem; }
.sntk-spinner { width: 30px; height: 30px; border: 3px solid #e5e7eb; border-top-color: #6AAF2C; border-radius: 50%; animation: sntk-spin 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes sntk-spin { to { transform: rotate(360deg); } }
.sntk-loading-title { font-size: 14px; font-weight: 600; color: #1a2744; margin: 0 0 4px; transition: opacity 0.3s ease; }
.sntk-loading-topic { font-size: 12px; color: #6AAF2C; font-style: italic; margin: 0 0 0; }
.sntk-jokes-wrap { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #eef0f4; text-align: left; }
.sntk-jokes-intro { font-size: 12px; color: #6b7280; text-align: center; margin: 0 0 10px; }
.sntk-joke-row { display: flex; align-items: stretch; gap: 8px; margin-bottom: 12px; }
.sntk-joke-arrow { width: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; color: #b5da7c; font-size: 22px; line-height: 1; transition: all 0.12s; user-select: none; padding: 0; }
.sntk-joke-arrow:hover { background: #f0fae6; border-color: #6AAF2C; color: #3a6b0f; transform: scale(1.08); }
.sntk-joke-arrow:active { transform: scale(0.95); }
.sntk-joke-card { flex: 1; background: #f0fae6; border: 1px solid #b5da7c; border-radius: 8px; padding: 16px 18px; min-height: 70px; display: flex; align-items: center; justify-content: center; }
.sntk-joke-text { font-size: 13px; color: #2d5a0e; text-align: center; line-height: 1.6; margin: 0; transition: opacity 0.15s; }
.sntk-jokes-note { font-size: 11px; color: #9ca3af; text-align: center; margin: 0; padding: 8px 12px; background: #f9fafb; border-radius: 6px; border: 1px solid #f3f4f6; line-height: 1.5; }

/* Results */
.sntk-res-header { margin-bottom: 14px; }
.sntk-res-check { font-size: 14px; font-weight: 600; color: #1a2744; margin: 0 0 4px; }
.sntk-file-badge { display: inline-flex; align-items: center; padding: 2px 8px; background: #f0fae6; border-radius: 20px; font-size: 11px; font-weight: 600; color: #2d5a0e; margin-left: 8px; }
.sntk-res-meta { font-size: 12px; color: #6b7280; margin: 0; }
.sntk-week-grid { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.sntk-day-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #f9fafb; border-radius: 8px; border: 1px solid #eef0f4; }
.sntk-day-info { display: flex; flex-direction: column; gap: 2px; }
.sntk-day-name { font-size: 13px; font-weight: 600; color: #1a2744; }
.sntk-day-focus { font-size: 11px; color: #9ca3af; }
.sntk-day-btns { display: flex; gap: 6px; }
.sntk-dl-btn { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; font-family: inherit; }
.sntk-dl-lp { background: #1a2744; color: #fff; }
.sntk-dl-lp:hover { background: #243668; }
.sntk-dl-ws { background: #6AAF2C; color: #fff; }
.sntk-dl-ws:hover { background: #5a9a24; }
.sntk-btn-again { width: 100%; padding: 8px 14px; background: #f9fafb; color: #374151; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 12px; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, color .15s; }
.sntk-btn-again:hover { background: #f0fae6; border-color: #6AAF2C; color: #3B6D11; }

/* Error */
.sntk-error { padding: 10px 14px; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 6px; color: #991b1b; font-size: 13px; margin-top: 10px; }

/* Responsive */
@media (max-width: 520px) {
    .sntk-row-4 { grid-template-columns: 1fr 1fr; }
    .sntk-row-2 { grid-template-columns: 1fr; }
    .sntk-day-fw { flex: 2; }
}


/* Restore suggested topic link */
.sntk-restore-wrap { margin: 5px 0 0; }
.sntk-restore-link { font-size: 11px; color: #6AAF2C; text-decoration: none; }
.sntk-restore-link:hover { text-decoration: underline; }

/* ========================================================================
   Credit Indicator (Layout B compact, groups of 5)
   ======================================================================== */
.sntk-credits-compact {
    background: #fafbfc;
    border: 1px solid #e0e3e8;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.sntk-credits-text { font-size: 12px; color: #555; white-space: nowrap; }
.sntk-credits-text strong { color: #1a2744; font-weight: 700; }
.sntk-credits-text.warning strong { color: #d97706; }
.sntk-credits-text.danger strong { color: #c0392b; }

.sntk-credits-bars {
    flex: 1;
    min-width: 120px;
    display: flex;
    gap: 4px;
    height: 6px;
}
.sntk-credit-group {
    flex: 1;
    background: #e8edf2;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.sntk-credit-fill {
    background: #6AAF2C;
    height: 100%;
    width: 100%;
    transition: width 0.25s, background 0.25s;
}
.sntk-credit-fill.used { background: #d1d5db; }
.sntk-credit-fill.warning { background: #f59e0b; }
.sntk-credit-fill.danger { background: #c0392b; }

.sntk-credits-reset {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 540px) {
    .sntk-credits-compact { gap: 8px; }
    .sntk-credits-text, .sntk-credits-reset { font-size: 11px; }
    .sntk-credits-bars { width: 100%; min-width: 0; flex-basis: 100%; order: 3; }
}

/* ========================================================================
   Lesson Library
   ======================================================================== */
.sntk-library-wrap {
    max-width: 820px;
    margin: 24px auto 40px;
    padding: 0 20px;
}
.sntk-library-panel {
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sntk-library-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 14px;
    gap: 4px;
}
.sntk-library-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2744;
}
.sntk-library-subtitle {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Search bar */
.sntk-library-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}
.sntk-library-search-icon {
    flex: 1;
    position: relative;
}
.sntk-library-search-icon::before {
    content: '🔍';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    opacity: 0.5;
    pointer-events: none;
}
.sntk-library-search {
    width: 100%;
    padding: 10px 38px 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    color: #1a2744;
    background: #fff;
}
.sntk-library-search:focus {
    outline: none;
    border-color: #6AAF2C;
    box-shadow: 0 0 0 3px rgba(106,175,44,0.1);
}

/* Filter pills */
.sntk-library-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef0f4;
}
.sntk-filter-pill {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #1a2744;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    font-family: inherit;
}
.sntk-filter-pill:hover { border-color: #6AAF2C; }
.sntk-filter-pill.sntk-filter-fav { color: #d97706; }
.sntk-filter-pill.sntk-filter-fav.active {
    background: #fef3c7;
    color: #d97706;
    border-color: #f59e0b;
}
.sntk-fav-star { font-size: 13px; }

.sntk-filter-select {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 28px 6px 10px;
    font-size: 12px;
    color: #1a2744;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1L5 5L9 1' stroke='%231a2744' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-family: inherit;
}
.sntk-filter-select:focus {
    outline: none;
    border-color: #6AAF2C;
    box-shadow: 0 0 0 3px rgba(106,175,44,0.1);
}
.sntk-filter-select.has-value {
    background-color: #1a2744;
    color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1L5 5L9 1' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.sntk-filter-clear {
    font-size: 11px;
    color: #888;
    cursor: pointer;
    padding: 6px 8px;
    text-decoration: none;
    margin-left: auto;
}
.sntk-filter-clear:hover { color: #c0392b; }

/* Group headers */
.sntk-library-group-header {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 18px 0 8px;
    padding: 0 4px;
}
.sntk-library-group-header:first-child { margin-top: 0; }

/* Item card */
.sntk-library-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 14px;
    padding: 14px;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    margin-bottom: 10px;
    align-items: center;
    transition: all 0.15s;
    background: #fff;
}
.sntk-library-item:hover {
    border-color: #c4d8a8;
    background: #fcfdfb;
}
.sntk-library-item.is-fav {
    border-color: #fde68a;
    background: #fffef5;
}
.sntk-library-item.is-fav:hover { border-color: #f59e0b; }
.sntk-library-item.expanded {
    background: #f8faf3;
    border-color: #6AAF2C;
}
.sntk-library-item-icon {
    width: 36px;
    height: 36px;
    background: #f0fae6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #6AAF2C;
    flex-shrink: 0;
    font-weight: 700;
}
.sntk-library-item-icon.science { background: #e8f4fa; color: #2980b9; }
.sntk-library-item-icon.english { background: #fef3e8; color: #d97706; }
.sntk-library-item-icon.hass { background: #f3e8fa; color: #9333ea; }
.sntk-library-item-icon.hpe { background: #fce8ec; color: #be123c; }
.sntk-library-item-icon.arts { background: #fdf2f8; color: #db2777; }
.sntk-library-item-icon.tech { background: #ecfdf5; color: #059669; }

.sntk-library-item-meta {
    font-size: 13px;
    color: #1a2744;
    font-weight: 600;
    margin-bottom: 2px;
}
.sntk-library-item-topic {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}
.sntk-library-item-info {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}
.sntk-library-item-info span { display: inline-block; margin-right: 12px; }
.sntk-library-item-info span.dot { color: #ccc; margin: 0 4px; }
.sntk-lib-cur-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 99px; vertical-align: middle; margin-left: 4px; }
.sntk-lib-cur-acara { background: #eef6e3; color: #3B6D11; }
.sntk-lib-cur-nsw   { background: #e8f0fe; color: #1a56b0; }

/* Star button */
.sntk-fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 18px;
    line-height: 1;
    color: #d1d5db;
    transition: all 0.12s;
    font-family: inherit;
}
.sntk-fav-btn:hover { color: #f59e0b; transform: scale(1.15); }
.sntk-fav-btn.active { color: #f59e0b; }

/* Reopen button */
.sntk-reopen-btn {
    background: #1a2744;
    color: #fff;
    border: 1px solid #1a2744;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}
.sntk-reopen-btn:hover { background: #2d3a5c; color: #fff; }
.sntk-slides-btn {
    background: #fff;
    color: #3B6D11;
    border: 1px solid #9ccb63;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    white-space: nowrap;
    transition: background .12s, border-color .12s, color .12s;
}
.sntk-slides-btn:hover { background: #f0fae6; border-color: #6AAF2C; }
.sntk-slides-btn:disabled { opacity: .65; cursor: default; }
.sntk-reopen-btn.expanded-state { background: #6AAF2C; border-color: #6AAF2C; }
.sntk-dash-section-hdr, .sntk-dash-only-hdr { font-size: 15px; font-weight: 700; color: #1a2744; text-transform: uppercase; letter-spacing: .06em; text-align: center; margin-bottom: 24px; padding-bottom: 10px; position: relative; }
.sntk-dash-section-hdr::after, .sntk-dash-only-hdr::after { content: ''; display: block; width: 36px; height: 3px; background: #6AAF2C; border-radius: 2px; margin: 8px auto 0; }
.sntk-dash-only-hdr { display: none; }
.sntk-dash .sntk-dash-only-hdr { display: block; }
.sntk-dash-planner-section { margin-top: 8px; padding-top: 4px; border-top: 2px solid #e8edf5; }

/* Expanded panel */
.sntk-library-expand {
    background: #fff;
    border: 1px solid #6AAF2C;
    border-radius: 8px;
    padding: 14px 18px;
    margin: -8px 0 10px 14px;
}
.sntk-library-expand-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #6AAF2C;
    margin-bottom: 10px;
}
.sntk-day-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 4px;
    border-bottom: 1px dashed #eef0f4;
}
.sntk-day-row:last-of-type {
    border-bottom: none;
    padding-bottom: 12px;
}
.sntk-day-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a2744;
    min-width: 90px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sntk-day-icon {
    width: 22px;
    height: 22px;
    background: #f0fae6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #6AAF2C;
    font-weight: 700;
}
.sntk-file-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    color: #1a2744;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}
.sntk-file-btn:hover {
    border-color: #6AAF2C;
    color: #5a9826;
    background: #f0fae6;
}
.sntk-open-all-row {
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid #eef0f4;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.sntk-open-all-btn {
    background: #1a2744;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.sntk-open-all-btn:hover { background: #2d3a5c; }

/* Empty / loading states */
.sntk-library-loading,
.sntk-library-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
    line-height: 1.7;
}
.sntk-library-empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.4; }

/* Footer */
.sntk-library-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef0f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}
.sntk-library-footer a {
    color: #6AAF2C;
    text-decoration: none;
    font-weight: 600;
}
.sntk-library-footer a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 540px) {
    .sntk-library-item {
        grid-template-columns: auto 1fr;
        gap: 10px;
    }
    .sntk-library-item .sntk-fav-btn,
    .sntk-library-item .sntk-reopen-btn,
    .sntk-library-item .sntk-slides-btn {
        grid-column: 2;
        justify-self: end;
    }
    .sntk-library-item .sntk-fav-btn { grid-row: 1; }
    .sntk-library-item .sntk-reopen-btn { grid-row: 2; }
    .sntk-library-item .sntk-slides-btn { grid-row: 3; }
    .sntk-day-row {
        grid-template-columns: auto auto auto;
    }
}

.sntk-credits-hint {
    margin: -6px 0 14px;
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.4;
}

/* ── Differentiation (Support + Extension) — v3.23.0 ── */
.sntk-diff-block {
    border: 1px dashed #c5e89a;
    background: #f7fcef;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 4px 0 16px;
}
.sntk-diff-head { display: flex; flex-direction: column; margin-bottom: 10px; }
.sntk-diff-title { font-size: 13px; font-weight: 700; color: #1a2744; }
.sntk-diff-sub { font-size: 12px; color: #6b7280; margin-top: 2px; line-height: 1.4; }
.sntk-diff-btn {
    background: #1a2744;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .15s ease;
}
.sntk-diff-btn:hover { background: #243668; }
.sntk-diff-btn:disabled { opacity: .65; cursor: progress; }
.sntk-diff-result {
    margin-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.sntk-dl-diff { background: #6AAF2C; color: #fff; }
.sntk-dl-diff:hover { background: #5a9a24; }
.sntk-diff-done { font-size: 12px; font-weight: 600; color: #3B6D11; }
.sntk-diff-error { font-size: 12px; color: #c0392b; }

/* ── Term Planner — v3.26.0 ── */
.sntk-planner-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 10px;
    flex-wrap: wrap;
    border-top: 2px solid #e8edf5;
    padding-top: 20px;
}
.sntk-planner-toolbar-left { display: flex; flex-direction: column; gap: 4px; }
.sntk-planner-caption { font-size: 20px; font-weight: 800; color: #1a2744; letter-spacing: -0.01em; line-height: 1.2; }
.sntk-pl-daterow { display: flex; align-items: center; gap: 7px; }
.sntk-pl-datelbl { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .04em; }
.sntk-pl-dateinput { padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; font-family: inherit; color: #1a2744; }
.sntk-pl-dateinput:focus { outline: none; border-color: #6AAF2C; }
.sntk-btn-export { padding: 8px 14px; background: #fff; color: #374151; border: 1px solid #d1d5db; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, color .15s; }
.sntk-btn-export:hover { background: #f0fae6; border-color: #6AAF2C; color: #3B6D11; }
.sntk-planner-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 6px;
}
.sntk-planner-table th {
    background: #1a2744;
    color: #fff;
    text-align: left;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.sntk-planner-table td {
    border-bottom: 1px solid #e8edf5;
    padding: 10px;
    vertical-align: top;
}
.sntk-planner-table tr.is-done { background: #f7fcef; }
.sntk-pl-wk { width: 86px; white-space: nowrap; }
.sntk-pl-wknum { font-weight: 700; color: #1a2744; }
.sntk-pl-tick { color: #6AAF2C; font-weight: 700; margin-left: 6px; }
.sntk-pl-topic { font-weight: 600; color: #1a2744; line-height: 1.4; }
.sntk-pl-acara { font-size: 11px; color: #6b7280; margin-top: 3px; font-family: Arial, sans-serif; }
.sntk-pl-none { font-weight: 400; color: #9ca3af; font-style: italic; }
.sntk-pl-res { width: 230px; }
.sntk-pl-files { display: flex; flex-wrap: wrap; gap: 6px; }
.sntk-pl-file {
    background: #fff;
    color: #1a2744;
    border: 1px solid #c5e89a;
    border-radius: 5px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.sntk-pl-file:hover { background: #f0fae6; border-color: #6AAF2C; }
.sntk-pl-notyet { font-size: 12px; color: #9ca3af; }
.sntk-pl-gen {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    color: #3B6D11;
    border: 1px dashed #9ccb63;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
.sntk-pl-gen svg { width: 13px; height: 13px; }
.sntk-pl-gen:hover { background: #f0fae6; border-color: #6AAF2C; border-style: solid; }
@media (max-width: 600px) {
    .sntk-planner-table, .sntk-planner-table tbody, .sntk-planner-table tr, .sntk-planner-table td { display: block; width: auto; }
    .sntk-planner-table thead { display: none; }
    .sntk-planner-table tr { border: 1px solid #e8edf5; border-radius: 6px; margin-bottom: 8px; padding: 4px; }
    .sntk-planner-table td { border-bottom: none; padding: 6px 8px; }
    .sntk-pl-res { width: auto; }
}

/* ── Term Planner — at-a-glance week-card grid (v3.48.0) ── */
.sntk-planner-actions { display: flex; gap: 8px; }
.sntk-btn-batch { padding: 8px 14px; background: #6AAF2C; color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s; }
.sntk-btn-batch:hover { background: #5a9a24; }
.sntk-btn-batch:disabled { opacity: .6; cursor: default; }
.sntk-btn-clear-term { padding: 8px 14px; background: #fff; color: #b91c1c; border: 1px solid #fca5a5; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .12s, border-color .12s; }
.sntk-btn-clear-term:hover { background: #fef2f2; border-color: #b91c1c; color: #b91c1c; }
.sntk-planner-actions .sntk-btn-again { width: auto; }
.sntk-planner-hint { font-size: 13px; color: #9ca3af; padding: 18px 4px; }
.sntk-planner-progress { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
.sntk-pl-progress-bar { flex: 1; height: 8px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
.sntk-pl-progress-fill { height: 100%; width: 0%; background: #6AAF2C; transition: width .3s ease; }
.sntk-pl-progress-text { font-size: 12px; font-weight: 600; color: #5a6b85; white-space: nowrap; }

.sntk-planner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 8px; }
.sntk-pl-card { border: 1px solid #e8edf5; border-radius: 12px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 8px; min-height: 132px; }
.sntk-pl-card.is-done { border-color: #c7efd6; background: #fbfffb; }
.sntk-pl-card.is-planned { background: #f4fbeb; border-color: #c5e89a; }
.sntk-pl-card.is-empty { background: #f8fafc; }
.sntk-pl-card.is-scope { background: #f8fafc; border-color: #e8edf5; }
.sntk-pl-card.is-generating { opacity: .65; }
@keyframes sntk-flash { 0%,100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px #6AAF2C; } }
.sntk-pl-card.sntk-pl-card-flash { animation: sntk-flash 1.8s ease; }
.sntk-pl-card-top { display: flex; align-items: center; gap: 6px; }
.sntk-pl-card .sntk-pl-wknum { font-size: 11px; font-weight: 800; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; }
.sntk-pl-chip-status { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.sntk-pl-chip-status.done { background: #eef6e3; color: #3b6d11; }
.sntk-pl-chip-status.planned { background: #e6f4d0; color: #3b6d11; }
.sntk-pl-chip-status.todo { background: #fef3e2; color: #9a5b0b; }
.sntk-pl-chip-status.none { background: #f1f2f4; color: #9ca3af; }
.sntk-pl-chip-status.scope { background: #f1f2f4; color: #9ca3af; }
.sntk-pl-star { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 15px; line-height: 1; color: #d1d5db; padding: 0; font-family: inherit; }
.sntk-pl-star.on { color: #f5b301; }
.sntk-pl-removebtn { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 14px; line-height: 1; color: #d1d5db; padding: 0 2px; font-family: inherit; transition: color .12s; }
.sntk-pl-removebtn:hover { color: #b91c1c; }
.sntk-pl-card.is-done .sntk-pl-removebtn { margin-left: 0; }
.sntk-pl-card-topic { font-size: 13px; font-weight: 700; color: #1a2744; line-height: 1.35; flex: 1; }
.sntk-pl-card-topic-scope { font-weight: 400; color: #9ca3af; }
.sntk-pl-card-topic em { color: #9ca3af; font-weight: 400; }
.sntk-pl-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sntk-pl-chip { background: #fff; color: #3B6D11; border: 1px solid #c5e89a; border-radius: 5px; padding: 3px 8px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; }
.sntk-pl-chip:hover { background: #f0fae6; border-color: #6AAF2C; }
.sntk-pl-chip.slides { color: #185FA5; border-color: #b9d3ec; }
.sntk-pl-chip.slides:hover { background: #eef4fb; border-color: #185FA5; }
.sntk-pl-chip.share { color: #6D28D9; border-color: #d6c7f0; }
.sntk-pl-chip.share:hover { background: #f5f0fd; border-color: #6D28D9; }
.sntk-pl-chip.share:disabled { opacity: .6; cursor: default; }
.sntk-pl-card-actions { display: flex; align-items: center; gap: 8px; }
.sntk-pl-usebtn { background: #fff; color: #6b7280; border: 1px solid #d1d5db; border-radius: 6px; padding: 5px 10px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .12s, color .12s, border-color .12s; }
.sntk-pl-usebtn:hover { background: #6AAF2C; color: #fff; border-color: #6AAF2C; }
.sntk-pl-usebtn:disabled { opacity: .6; cursor: default; }
.sntk-pl-genbtn { background: #fff; color: #3B6D11; border: 1px dashed #9ccb63; border-radius: 6px; padding: 5px 10px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sntk-pl-genbtn:hover { background: #f0fae6; border-color: #6AAF2C; border-style: solid; }
.sntk-pl-genbtn:disabled { opacity: .6; cursor: default; }
.sntk-pl-editlink { background: none; border: none; color: #9ca3af; font-size: 11px; cursor: pointer; text-decoration: underline; font-family: inherit; }
.sntk-pl-editlink:hover { color: #6b7280; }
/* Blank skeleton grid shown before any plan is loaded */
.sntk-planner-skeleton .sntk-pl-card-ghost { opacity: .45; pointer-events: none; min-height: 100px; }
.sntk-pl-ghost-bar { border-radius: 4px; background: #e8edf5; }
.sntk-pl-ghost-bar--topic { height: 12px; width: 85%; margin-top: 6px; }
.sntk-pl-ghost-bar--short { height: 10px; width: 50%; margin-top: 6px; }
.sntk-pl-daterange { font-size: 10.5px; color: #9ca3af; font-weight: 500; margin-top: -4px; }
.sntk-pl-note { width: 100%; min-height: 48px; padding: 6px 8px; font-size: 11.5px; font-family: inherit; border: 1px solid #e8edf5; border-radius: 6px; resize: vertical; box-sizing: border-box; color: #374151; background: transparent; line-height: 1.45; margin-top: 4px; }
.sntk-pl-note:focus { outline: none; border-color: #6AAF2C; background: #fff; box-shadow: 0 0 0 2px rgba(106,175,44,.08); }
.sntk-pl-note::placeholder { color: #d1d5db; }

@media (max-width: 1100px) { .sntk-planner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .sntk-planner-grid { grid-template-columns: 1fr; } }

@media print {
  .sntk-dash-side, .sntk-dash-topbar, .sntk-facets, .sntk-hidden-selects, .sntk-planner-actions, .sntk-planner-progress, .sntk-pl-card-actions, .sntk-pl-star, .sntk-pl-removebtn, .sntk-pl-tutor, .sntk-email-panel, .sntk-pl-dateinput { display: none !important; }
  .sntk-planner-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sntk-pl-card { break-inside: avoid; border: 1px solid #ccc; min-height: 0; }
  .sntk-planner-caption { font-size: 18px; }
  .sntk-pl-daterange { display: block; color: #555; }
  .sntk-pl-note { border: 1px solid #ddd; min-height: 0; background: #fff; font-size: 11px; resize: none; }
  .sntk-pl-note:empty { display: none; }
  .sntk-pl-datelbl { display: block; }
}

/* ── Tutor toolkit — planner tutor-mode controls + parent-email panel (v3.50.0) ── */
.sntk-btn-tutor { padding: 8px 14px; background: #6D28D9; color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sntk-btn-tutor:hover { background: #5b21b6; }
.sntk-pl-tutor { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e8edf5; display: flex; flex-direction: column; gap: 6px; }
.sntk-pl-level { display: inline-flex; border: 1px solid #d6c7f0; border-radius: 7px; overflow: hidden; }
.sntk-pl-lvl { flex: 1; background: #fff; color: #5b21b6; border: none; border-right: 1px solid #ede4fb; padding: 5px 6px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sntk-pl-lvl:last-child { border-right: none; }
.sntk-pl-lvl:hover { background: #f5f0fd; }
.sntk-pl-lvl.active { background: #6D28D9; color: #fff; }
.sntk-pl-lvl:disabled { opacity: .6; cursor: default; }
.sntk-pl-recap { background: #fff; color: #5b21b6; border: 1px solid #d6c7f0; border-radius: 7px; padding: 5px 8px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sntk-pl-recap:hover { background: #f5f0fd; border-color: #6D28D9; }

.sntk-email-panel { border: 1px solid #d6c7f0; border-radius: 12px; padding: 14px; margin: 12px 0; background: #faf8ff; }
.sntk-email-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 14px; color: #1a2744; }
.sntk-email-close { background: none; border: none; font-size: 18px; line-height: 1; color: #9ca3af; cursor: pointer; }
.sntk-email-lbl { display: block; font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 3px; }
.sntk-email-subject { width: 100%; padding: 8px 10px; border: 1px solid #e2e5ea; border-radius: 7px; font-size: 13px; font-family: inherit; box-sizing: border-box; }
.sntk-email-body { width: 100%; padding: 10px; border: 1px solid #e2e5ea; border-radius: 7px; font-size: 13px; line-height: 1.55; font-family: inherit; box-sizing: border-box; resize: vertical; }
.sntk-email-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sntk-email-copy { background: #6D28D9; color: #fff; border: none; border-radius: 7px; padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sntk-email-copy:hover { background: #5b21b6; }
.sntk-email-mailto { background: #fff; color: #5b21b6; border: 1px solid #d6c7f0; border-radius: 7px; padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sntk-email-mailto:hover { background: #f5f0fd; }
.sntk-email-note { font-size: 11px; color: #9ca3af; }


.sntk-email-polish { background: #fff; color: #6D28D9; border: 1px solid #d6c7f0; border-radius: 7px; padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sntk-email-polish:hover { background: #f5f0fd; border-color: #6D28D9; }
.sntk-email-polish:disabled { opacity: .6; cursor: default; }
.sntk-email-cost { font-weight: 600; opacity: .8; }

/* ── Study Plans — home-study goals planner (v3.49.0) ── */
.sntk-study-saved { margin-bottom: 16px; }
.sntk-study-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sntk-study-card { text-align: left; background: #fff; border: 1px solid #e8edf5; border-radius: 12px; padding: 12px; cursor: pointer; font-family: inherit; transition: border-color .12s, box-shadow .12s; }
.sntk-study-card:hover { border-color: #6AAF2C; box-shadow: 0 6px 16px rgba(21,35,63,.07); }
.sntk-study-card-title { font-size: 13px; font-weight: 700; color: #1a2744; }
.sntk-study-card-meta { font-size: 11px; color: #6b7280; margin: 3px 0 8px; }
.sntk-study-card-bar { height: 6px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
.sntk-study-card-bar div { height: 100%; background: #6AAF2C; }
.sntk-study-card-prog { font-size: 10px; color: #9ca3af; margin-top: 5px; }

.sntk-study-plan { margin-top: 18px; }
.sntk-study-planhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sntk-study-plantitle { font-size: 17px; font-weight: 800; color: #1a2744; }
.sntk-study-planmeta { font-size: 12px; color: #6b7280; margin-top: 2px; }
.sntk-study-archive { background: none; border: 1px solid #e5e7eb; color: #9ca3af; border-radius: 6px; padding: 4px 10px; font-size: 11px; cursor: pointer; font-family: inherit; }
.sntk-study-archive:hover { border-color: #ef4444; color: #ef4444; }
.sntk-study-progress { display: flex; align-items: center; gap: 10px; margin: 12px 0 16px; }
.sntk-study-progress-bar { flex: 1; height: 8px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
.sntk-study-progress-bar div { height: 100%; background: #6AAF2C; transition: width .3s ease; }
.sntk-study-progress span { font-size: 12px; font-weight: 600; color: #5a6b85; white-space: nowrap; }

.sntk-study-steps { display: flex; flex-direction: column; gap: 8px; }
.sntk-study-step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #eef0f4; border-radius: 10px; background: #fff; }
.sntk-study-step.done { background: #f7fcef; border-color: #c7efd6; }
.sntk-study-step.done .sntk-study-steptopic { color: #6b7280; text-decoration: line-through; }
.sntk-study-tick { position: relative; display: inline-flex; cursor: pointer; }
.sntk-study-tick input { position: absolute; opacity: 0; width: 22px; height: 22px; cursor: pointer; margin: 0; }
.sntk-study-tick span { width: 22px; height: 22px; border: 2px solid #cbd5e1; border-radius: 6px; display: inline-block; }
.sntk-study-tick input:checked + span { background: #6AAF2C; border-color: #6AAF2C; }
.sntk-study-tick input:checked + span::after { content: '✓'; color: #fff; font-size: 14px; position: absolute; left: 4px; top: -1px; }
.sntk-study-stepmid { flex: 1; min-width: 0; }
.sntk-study-steptopic { font-size: 13px; font-weight: 700; color: #1a2744; line-height: 1.35; }
.sntk-study-stepn { color: #9ca3af; }
.sntk-study-stepprov { font-size: 11px; color: #6b7280; margin-top: 2px; }
.sntk-study-stepact { display: flex; gap: 6px; flex-shrink: 0; }
.sntk-study-get { background: #fff; color: #3B6D11; border: 1px solid #c5e89a; border-radius: 6px; padding: 5px 10px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
.sntk-study-get:hover { background: #f0fae6; border-color: #6AAF2C; }
.sntk-study-get:disabled { opacity: .6; cursor: default; }
.sntk-study-slides { background: #fff; color: #185FA5; border: 1px solid #b9d3ec; border-radius: 6px; padding: 5px 9px; font-size: 12px; cursor: pointer; font-family: inherit; }
.sntk-study-slides:hover { background: #eef4fb; border-color: #185FA5; }
@media (max-width: 600px) {
    .sntk-study-step { flex-wrap: wrap; }
    .sntk-study-stepact { width: 100%; }
}

/* ── Dashboard (v3.28.0) — navy SaaS layout ── */
.sntk-dash { font-family: "Plus Jakarta Sans", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif; overflow: hidden; background: #fff; max-width: none; margin: 0; border: none; border-radius: 0; box-shadow: none; }
.sntk-dash * { box-sizing: border-box; }
/* Dashboard page only: Kadence keeps .content-area{margin:5rem 0} (a MARGIN, so the page's
   "hide vertical padding" setting never touches it) plus .entry-content-wrap{padding:2rem}.
   Zero both so the app sits flush to the header/footer and goes edge-to-edge. */
body.sntk-dash-page .content-area { margin-top: 0; margin-bottom: 0; }
body.sntk-dash-page .entry-content-wrap { padding: 0; }
/* The shortcode lives in a Paragraph block, so the browser auto-closes the <p> before
   our block-level .sntk-dash — leaving a whitespace-only paragraph above the app whose
   margin + line-box showed as a gap between the site header and the toolkit. Collapse it
   (and drop the article shadow) so the app sits truly flush. */
body.sntk-dash-page .entry-content > p { margin: 0; line-height: 0; }
body.sntk-dash-page .entry { box-shadow: none; }
body.sntk-dash-page #colophon { display: none; }
body.sntk-dash-page { overflow: hidden; }
.sntk-dash-body { display: flex; align-items: stretch; height: var(--sntk-dash-h, min(88vh, 900px)); min-height: 600px; }

.sntk-dash-side { width: 232px; flex-shrink: 0; background: #15233f; color: #cbd5e1; padding: 16px 14px; display: flex; flex-direction: column; overflow-y: auto; }
.sntk-dash-brandrow { display: flex; align-items: center; gap: 10px; padding: 6px 6px 14px; }
.sntk-dash-brandico { width: 36px; height: 36px; border-radius: 11px; background: #5a9a24; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sntk-dash-brandico svg { width: 19px; height: 19px; }
.sntk-dash-brandtext { display: flex; flex-direction: column; line-height: 1.15; }
.sntk-dash-brand { font-size: 14px; font-weight: 800; color: #fff; }
.sntk-dash-brandsub { font-size: 11px; color: #8aa0c2; }
.sntk-dash-side-label { font-size: 10px; color: #7d93b5; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin: 4px 4px 7px; }
.sntk-dash-nav-divider { border: none; border-top: 1px solid #e4eaf3; margin: 16px 4px; }
.sntk-dash-roles { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.sntk-dash-rolebtn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #e2e8f0; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: background .12s, color .12s, border-color .12s; }
.sntk-dash-rolebtn:hover { background: rgba(255,255,255,.13); color: #fff; }
.sntk-dash-rolebtn.active { background: #fff; color: #15233f; font-weight: 700; border-color: #fff; }
.sntk-dash-rolecheck { width: 15px; height: 15px; opacity: 0; color: #5a9a24; flex-shrink: 0; }
.sntk-dash-rolebtn.active .sntk-dash-rolecheck { opacity: 1; }
.sntk-dash-navlist { display: flex; flex-direction: column; gap: 2px; }
.sntk-dash-nav { display: flex; align-items: center; gap: 12px; padding: 10px 11px; border-radius: 10px; font-size: 13.5px; color: #aebdd4; cursor: pointer; text-decoration: none; position: relative; font-weight: 500; transition: background .12s, color .12s; }
.sntk-dash-nav:hover { background: rgba(255,255,255,.06); color: #fff; }
.sntk-dash-nav.active { background: rgba(255,255,255,.10); color: #fff; font-weight: 700; }
.sntk-dash-nav.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: #5a9a24; }
.sntk-dash-nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.sntk-nav-lbl-wrap { display: flex; flex-direction: column; gap: 1px; }
.sntk-nav-count { font-size: 11px; font-weight: 400; color: #6b8baf; line-height: 1.3; }
.sntk-dash-nav:hover .sntk-nav-count { color: rgba(255,255,255,.65); }
.sntk-dash-nav.active .sntk-nav-count { color: rgba(255,255,255,.55); }
.sntk-dash-sidefoot { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.sntk-dash-sidefoot .sntk-dash-nav { color: #8aa0c2; }

.sntk-dash-main { flex: 1; min-width: 0; background: #f4f6f9; display: flex; flex-direction: column; }
.sntk-dash-topbar { height: 60px; flex-shrink: 0; background: #fff; border-bottom: 1px solid #e7e9ee; display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.sntk-dash-topbar-title { font-size: 15px; font-weight: 700; color: #15233f; flex: 1; }
.sntk-dash-avatar { width: 34px; height: 34px; border-radius: 50%; background: #15233f; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.sntk-dash-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 24px max(26px, (100% - 1320px) / 2) 34px; }

.sntk-dash-greetrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.sntk-dash-greet { font-size: 24px; font-weight: 800; color: #15233f; margin: 0 0 2px; letter-spacing: -.02em; }
.sntk-dash-sub { font-size: 15px; color: #5a6472; margin: 0; }

.sntk-dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.sntk-stat { background: #fff; border: 1px solid #e7e9ee; border-radius: 16px; padding: 15px 16px; box-shadow: 0 1px 2px rgba(21,35,63,.04); }
.sntk-stat-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #6b7280; }
.sntk-stat-ico { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sntk-stat-ico svg { width: 15px; height: 15px; }
.sntk-stat-ico.s-blue { background: #e8f1fe; color: #2563eb; }
.sntk-stat-ico.s-violet { background: #f1ecff; color: #7c3aed; }
.sntk-stat-ico.s-amber { background: #fdf0d9; color: #d97706; }
.sntk-stat-ico.s-green { background: #ecf6df; color: #5a9a24; }
.sntk-stat-num { font-size: 24px; font-weight: 800; color: #15233f; margin-top: 8px; }
.sntk-stat-num span { font-size: 15px; font-weight: 600; color: #9ca3af; }


.sntk-dash-view { display: none; }
.sntk-dash-view.active { display: block; }
.sntk-dash-view[data-view="create"].active { display: flex; flex-direction: column; }
.sntk-dash-view[data-view="create"] .sntk-library-wrap { order: 10; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e7e9ee; }
.sntk-dash-slot { padding: 48px 28px; text-align: center; color: #9ca3af; background: #fff; border: 1px dashed #d6dde6; border-radius: 16px; font-size: 14px; }

.sntk-dash .sntk-wrap { max-width: none; margin: 0; }
.sntk-dash .sntk-library-wrap { max-width: none; margin: 0; padding: 0; }
.sntk-dash .sntk-library-panel {
    padding-left:  max(24px, calc((100% - 820px) / 2));
    padding-right: max(24px, calc((100% - 820px) / 2));
}
.sntk-dash .sntk-head { display: none; }
.sntk-dash .sntk-card,
.sntk-dash .sntk-library-panel { background: #fff; border: 1px solid #e7e9ee; border-radius: 16px; box-shadow: 0 1px 2px rgba(21,35,63,.04); }

@media (max-width: 860px) { .sntk-dash-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
    .sntk-dash-body { flex-direction: column; min-height: 0; height: auto; }
    .sntk-dash-side { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; overflow: visible; }
    .sntk-dash-scroll { overflow: visible; }
    .sntk-dash-brandrow { padding: 0; margin-right: auto; }
    .sntk-dash-side-label { display: none; }
    .sntk-dash-roles { flex-direction: row; width: 100%; margin-bottom: 0; }
    .sntk-dash-rolebtn { flex: 1; justify-content: center; }
    .sntk-dash-rolecheck { display: none; }
    .sntk-dash-navlist { flex-direction: row; flex-wrap: wrap; }
    .sntk-dash-nav.active::before { display: none; }
    .sntk-dash-sidefoot { display: none; }
    .sntk-dash-scroll { padding: 18px 14px 26px; }
}

/* ── Google-style curriculum search bar (v3.28.0) ── */
.sntk-search-wrap { position: relative; margin-bottom: 16px; }
@keyframes sntk-highlight-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(106,175,44,0); } 40% { box-shadow: 0 0 0 6px rgba(106,175,44,.35); } }
.sntk-pl-highlight { animation: sntk-highlight-pulse 2s ease; }
.sntk-search-field { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d6dde6; border-radius: 14px; padding: 7px; box-shadow: 0 1px 2px rgba(21,35,63,.05); transition: border-color .12s, box-shadow .12s; }
.sntk-search-field:focus-within { border-color: #15233f; box-shadow: 0 0 0 3px rgba(21,35,63,.08); }
.sntk-search-scope { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 12.5px; font-weight: 700; color: #15233f; background: #f4f6f9; border: 1px solid #e7e9ee; border-radius: 10px; cursor: default; font-family: inherit; pointer-events: none; }
.sntk-search-scope svg { width: 15px; height: 15px; }
.sntk-search-input { flex: 1; min-width: 0; border: none; background: transparent; padding: 8px 6px; font-size: 15px; color: #15233f; }
.sntk-search-input:focus { outline: none; }
.sntk-search-go { flex-shrink: 0; display: flex; align-items: center; gap: 7px; background: #15233f; color: #fff; border: none; border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .12s; }
.sntk-search-go:hover { background: #1e3050; }
.sntk-search-go svg { width: 16px; height: 16px; }
.sntk-search-hint { font-size: 11px; color: #9ca3af; margin: 7px 2px 0; line-height: 1.4; }
/* Results panel — in document flow, not a floating dropdown */
.sntk-search-results { background: #fff; border: 1px solid #e6e9f0; border-radius: 12px; margin-top: 12px; overflow: hidden; }
.sntk-results-header { padding: 10px 16px; font-size: 11.5px; color: #9ca3af; border-bottom: 1px solid #f1f3f7; }
.sntk-result-item { padding: 13px 16px; border-bottom: 1px solid #f1f3f7; display: flex; align-items: flex-start; gap: 12px; transition: background .1s; }
.sntk-result-item:last-of-type { border-bottom: none; }
.sntk-result-item:hover { background: #f9fafb; }
.sntk-result-main { flex: 1; min-width: 0; cursor: pointer; }
.sntk-result-topic { font-size: 14px; font-weight: 700; color: #15233f; margin-bottom: 6px; line-height: 1.35; }
.sntk-result-item:hover .sntk-result-topic { color: #3b6d11; }
.sntk-result-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sntk-result-tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.sntk-tag-year { background: #f0fae6; color: #3b6d11; border: 1px solid #d4edbb; }
.sntk-tag-subject { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.sntk-tag-slot { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.sntk-result-actions { flex-shrink: 0; display: flex; flex-direction: column; gap: 5px; padding-top: 2px; }
.sntk-results-pagination { padding: 12px 16px; display: flex; align-items: center; gap: 5px; justify-content: center; border-top: 1px solid #f1f3f7; flex-wrap: wrap; }
.sntk-page-btn { padding: 5px 11px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; cursor: pointer; font-family: inherit; color: #374151; transition: background .12s; }
.sntk-page-btn:hover:not(.active) { background: #e9ebee; }
.sntk-page-btn.active { background: #15233f; color: #fff; border-color: #15233f; }
/* Selection panel — shown below results when a row is clicked */
.sntk-result-item.selected { background: #f0fae6; }
.sntk-result-item.selected .sntk-result-topic { color: #3b6d11; }
.sntk-sel-panel { background: #f8fdf3; border: 1.5px solid #c5e89a; border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.sntk-sel-excerpt { margin-bottom: 8px; }
.sntk-sel-excerpt-topic { font-size: 14px; font-weight: 700; color: #15233f; margin-bottom: 3px; line-height: 1.4; }
.sntk-sel-excerpt-meta { font-size: 11.5px; color: #5a7a3a; line-height: 1.5; }
.sntk-sel-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sntk-sel-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sntk-sel-slot { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 120px; }
.sntk-sel-lbl { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.sntk-sel-slot select { padding: 5px 26px 5px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; font-family: inherit; background: #fff; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1L5 5L9 1' stroke='%231a2744' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 8px center; -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; }
.sntk-sel-slot select:focus { outline: none; border-color: #6AAF2C; box-shadow: 0 0 0 2px rgba(106,175,44,0.12); }
.sntk-sel-actions { display: flex; gap: 6px; flex-shrink: 0; margin-left: auto; }
.sntk-sel-plan { background: #fff; color: #3B6D11; border: 1px solid #c5e89a; border-radius: 6px; padding: 7px 12px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.sntk-sel-plan:hover { background: #6AAF2C; color: #fff; border-color: #6AAF2C; }
.sntk-lib-plan-slot { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid #f0f2f6; margin-top: 4px; }
.sntk-sel-gen { background: #1a2744; color: #fff; border: none; border-radius: 6px; padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, transform .12s; }
.sntk-sel-gen:hover { background: #6AAF2C; transform: translateX(2px); }
/* Keep old item styles for sntk-search-picker which lives inside result items */
.sntk-search-main { flex: 1; min-width: 0; cursor: pointer; }
.sntk-search-main:hover .sntk-search-topic { color: #3b6d11; }
.sntk-search-actions { display: flex; gap: 6px; flex-shrink: 0; }
.sntk-search-plan { background: #fff; color: #3B6D11; border: 1px solid #c5e89a; border-radius: 6px; padding: 5px 10px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.sntk-search-plan:hover { background: #6AAF2C; color: #fff; border-color: #6AAF2C; }
.sntk-search-gen { background: #1a2744; color: #fff; border: none; border-radius: 6px; padding: 5px 11px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, transform .12s; }
.sntk-search-gen:hover { background: #6AAF2C; transform: translateX(2px); }
.sntk-search-picker { flex-basis: 100%; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e8edf5; }
.sntk-pick-lbl { font-size: 11px; font-weight: 700; color: #6b7280; }
.sntk-search-picker select { padding: 4px 6px; font-size: 12px; border: 1px solid #e2e5ea; border-radius: 6px; font-family: inherit; }
.sntk-pick-add { background: #6AAF2C; color: #fff; border: none; border-radius: 6px; padding: 5px 12px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sntk-pick-add:disabled { opacity: .6; cursor: default; }
.sntk-pick-msg { font-size: 11px; color: #b91c1c; }
.sntk-pick-done { font-size: 12px; font-weight: 700; color: #3b6d11; }

/* My Plan (custom term plan) */
.sntk-search-topic { font-size: 13.5px; font-weight: 700; color: #15233f; line-height: 1.35; }
.sntk-search-cur { display: inline-block; margin-left: 8px; padding: 1px 7px; font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle; border-radius: 999px; background: #eef4e6; color: #4a7d18; border: 1px solid #dbe8c9; }
.sntk-search-cur[data-cur="nsw"] { background: #e8eefc; color: #2b4ba0; border-color: #cdd9f3; }
.sntk-search-meta { font-size: 11.5px; color: #6b7280; margin-top: 2px; }
.sntk-search-empty { padding: 13px 15px; font-size: 13px; color: #9ca3af; }
@media (max-width: 560px) { .sntk-search-field { flex-wrap: wrap; } .sntk-search-input { order: 3; flex-basis: 100%; } }
