.spw-page { color: var(--ink, #25272e); padding-bottom: 30px; }
.spw-page.hidden { display: none; }
.spw-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; background: linear-gradient(115deg, #fff7f0, #fff 72%); border: 1px solid #f1dfd5; border-left: 5px solid var(--orange, #ff592d); border-radius: 14px; }
.spw-hero .eyebrow { margin: 0 0 8px; color: #b55432; font-size: 10px; letter-spacing: .18em; }
.spw-hero h2 { margin: 0; font-size: 27px; letter-spacing: -.03em; line-height: 1.3; }
.spw-hero h2:focus { outline: none; }
.spw-hero p:last-child { margin: 8px 0 0; color: #747b86; font-size: 13px; }
.spw-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.spw-page button { min-height: 36px; border-radius: 8px; font-size: 12px; }
.spw-page button:focus-visible, .spw-page input:focus-visible, .spw-page select:focus-visible, .spw-page summary:focus-visible, .spw-page textarea:focus-visible { outline: 2px solid #ed623c; outline-offset: 3px; }
.spw-hero-actions button { padding: 10px 16px; border: 1px solid #e5dcd5; background: #fff; color: #7a6c62; cursor: pointer; }
.spw-hero-actions button.primary-action { border-color: var(--orange, #ff592d); background: var(--orange, #ff592d); color: #fff; font-weight: 700; box-shadow: 0 4px 12px #e56a3020; }
.spw-hero-actions button:hover { border-color: #d3b49e; }
.spw-hero-actions button.primary-action:hover { background: #ed5029; border-color: #ed5029; }
.spw-page button:disabled { cursor: default; opacity: .45; }
.spw-import { margin-top: 18px; padding: 20px 22px; border: 1px solid #f0dfd4; border-radius: 14px; background: linear-gradient(115deg, #fffaf5, #fff 68%); box-shadow: 0 6px 20px #8d5a3808; }
.spw-import-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.spw-import-eyebrow { margin: 0 0 6px; color: #be684d; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.spw-import-heading h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.spw-import-heading h3 + p { margin: 6px 0 0; color: #7b818a; font-size: 12px; line-height: 1.6; }
.spw-import-toggle { flex-shrink: 0; padding: 9px 13px; border: 1px solid #e6d4c8; color: #9b5035; background: #fff; cursor: pointer; }
.spw-import-toggle span { margin-left: 5px; }
.spw-import-entries { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 17px; }
.spw-import-entry, .spw-import-drop { display: flex; align-items: center; min-width: 0; gap: 13px; padding: 15px 16px; border: 1px solid #ebe2dd; border-radius: 10px; background: #fff; text-align: left; }
.spw-import-entry { width: 100%; cursor: pointer; }
.spw-import-entry:hover { border-color: #f4af95; background: #fffaf7; }
.spw-import-drop { border-style: dashed; border-color: #e9bfae; background: #fffaf7; transition: border-color .15s, background .15s; }
.spw-import-drop.is-dragover { border-color: #ed5932; background: #fff0e7; box-shadow: 0 0 0 3px #ff592d18; }
.spw-import-icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #ffede4; color: #e25d36; font-size: 19px; font-weight: 800; }
.spw-import-entry > span:nth-child(2), .spw-import-drop > span:nth-child(2) { display: grid; min-width: 0; gap: 5px; }
.spw-import-entry b, .spw-import-drop b { color: #33353c; font-size: 13px; }
.spw-import-entry small, .spw-import-drop small { color: #8b8d94; font-size: 11px; line-height: 1.5; }
.spw-import-arrow { margin-left: auto; color: #d97a5a; font-size: 18px; }
.spw-import-drop button { flex-shrink: 0; margin-left: auto; padding: 8px 13px; border: 1px solid #edd2c4; background: #fff; color: #b35a3a; cursor: pointer; white-space: nowrap; }
.spw-import-status { margin: 0; color: #6a8173; font-size: 12px; }
.spw-import-status:not(:empty) { margin-top: 10px; }
.spw-import-status.is-error { color: #bc4e32; }
.spw-import-workspace[hidden] { display: none; }
.spw-import-workspace { margin-top: 18px; border-top: 1px solid #f1e8e2; padding-top: 17px; }
.spw-import-guide { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 12px; }
.spw-import-guide b { color: #ad4c2f; font-size: 13px; }
.spw-import-guide span { color: #84858b; font-size: 12px; line-height: 1.6; }
.spw-import-workspace .smart-picker { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.spw-import-workspace .smart-picker-head .eyebrow, .spw-import-workspace .smart-picker-head h3, .spw-import-workspace .smart-picker-head p:not(.eyebrow), .spw-import-workspace #toggleSmartPickerBtn, .spw-import-workspace .smart-import { display: none; }
.spw-import-workspace .smart-picker-head { justify-content: flex-end; margin: 0 0 9px; }
.spw-import-workspace .smart-picker textarea { min-height: 150px; background: #fff; font-size: 13px; font-weight: 500; line-height: 1.7; }
.spw-import-workspace .smart-actions { align-items: end; }
.spw-import-workspace .smart-actions input { flex: 1 1 200px; max-width: 260px; }
.spw-import-workspace .smart-actions #smartPreviewBtn { border-color: #ed5b31; background: #ff5a2f; color: #fff; }
.spw-import-workspace .smart-actions #smartSelectBtn { background: #292c34; border-color: #292c34; }
.spw-import-workspace .smart-preview { gap: 9px; }
.spw-import-workspace .smart-result { grid-template-columns: minmax(180px, .9fr) minmax(260px, 1.4fr) 125px; align-items: start; padding: 15px 74px 15px 15px; gap: 9px 16px; }
.spw-import-workspace .smart-result > b { overflow-wrap: anywhere; line-height: 1.65; }
.spw-import-workspace .smart-result small, .spw-import-workspace .smart-confirm { grid-column: 2 / -1; }
.smart-candidate-detail { display: grid; gap: 3px; padding: 5px 2px 0; overflow-wrap: anywhere; line-height: 1.5; }
.smart-candidate-field .smart-candidate-detail strong { color: #3e4950; font-size: 12px; font-weight: 700; }
.smart-candidate-field .smart-candidate-detail span { color: #7d838d; font-size: 12px; font-weight: 500; }
.smart-manual-search { grid-column: 2 / -1; min-width: 0; color: #7f695d; font-size: 12px; }
.smart-result.unmatched .smart-manual-search { grid-column: 1 / -1; }
.smart-manual-search summary { width: fit-content; padding: 4px 0; color: #bf5a35; font-weight: 700; cursor: pointer; }
.smart-manual-search label { display: grid; gap: 5px; margin-top: 8px; }
.smart-manual-search label > span { color: #797f89; font-size: 11px; font-weight: 700; }
.smart-manual-search input { box-sizing: border-box; width: 100%; min-height: 38px; border: 1px solid #e4d5cd; border-radius: 7px; padding: 8px 10px; background: #fff; color: #333842; font: inherit; }
.smart-manual-search [data-smart-search-list] { margin-top: 7px; color: #8c929c; font-size: 11px; line-height: 1.5; }
.smart-manual-search [data-smart-search-list] > button { display: grid; width: 100%; gap: 3px; margin: 6px 0 0; padding: 9px 10px; border: 1px solid #e8e2de; border-radius: 7px; background: #fff; text-align: left; cursor: pointer; }
.smart-manual-search [data-smart-search-list] > button:hover { border-color: #ec9779; }
.smart-manual-search [data-smart-search-list] > button b { color: #333842; font-size: 12px; }
.smart-manual-search [data-smart-search-list] > button span { color: #838992; font-size: 11px; font-weight: 500; }
.smart-manual-search [data-smart-search-list] > button small { color: #bd613f; font-size: 11px; }
.spw-overview { display: flex; align-items: center; gap: 0; padding: 20px 0; }
.spw-overview > div { display: flex; align-items: baseline; gap: 8px; padding: 0 24px; border-right: 1px solid #dfe3e9; }
.spw-overview > div:first-child { padding-left: 4px; }
.spw-overview strong { font-size: 24px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.spw-overview span { color: #737985; font-size: 12px; white-space: nowrap; }
.spw-overview p { max-width: 350px; margin: 0 0 0 auto; padding-left: 24px; color: #848a95; font-size: 11px; line-height: 1.8; }
.spw-toolbar { display: grid; grid-template-columns: minmax(190px, 2fr) minmax(150px, 1.2fr) minmax(108px, .8fr) minmax(108px, .8fr) auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid #e4e7ed; border-radius: 12px; background: #fff; }
.spw-toolbar label { display: grid; min-width: 0; gap: 7px; }
.spw-toolbar label > span { color: #7b828e; font-size: 11px; font-weight: 700; }
.spw-toolbar input, .spw-toolbar select { min-width: 0; width: 100%; height: 38px; padding: 0 10px; border: 1px solid #dfe3eb; border-radius: 7px; background: #fcfcfd; color: #353943; font-size: 12px; }
.spw-toolbar > button { height: 38px; padding: 0 14px; border: 1px solid #e2e5eb; color: #696f7b; background: #fff; white-space: nowrap; cursor: pointer; }
.spw-result-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 1px; }
.spw-result-line > span { color: #7c8390; font-size: 12px; }
.spw-result-line > div { display: flex; flex-wrap: wrap; gap: 8px; }
.spw-result-line button { padding: 7px 12px; border: 1px solid #dfe3ea; background: #fff; font-weight: 700; }
.spw-result-line button[data-spw-action="compare"] { color: #c54d2b; border-color: #efcfbf; background: #fff8f3; }
.spw-result-line [data-spw-compare-count] { margin-left: 6px; color: #c78a72; font-size: 10px; }
.spw-grid.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 315px), 1fr)); gap: 16px; align-items: start; }
.spw-grid .spw-program-card { display: flex; flex-direction: column; border: 1px solid #e6e8ee; border-radius: 11px; box-shadow: 0 6px 20px #282c3a06; }
.spw-grid .spw-program-card.selected { border-color: #ead5cb; box-shadow: 0 5px 18px #ad704006; }
.spw-grid .program-card::before { width: 3px; background: linear-gradient(#f47a55, #ba8171); opacity: .75; }
.spw-grid .select-row { grid-template-columns: minmax(0, 1fr) 112px; padding: 12px 14px; gap: 8px; background: #fcfcfd; }
.spw-grid .select-project { min-height: 31px; gap: 6px; font-size: 10px; }
.spw-grid .project-choice-actions { gap: 7px; }
.spw-grid .select-project input { width: 15px; height: 15px; }
.spw-grid .compare-toggle { font-size: 10px; padding: 5px 8px; min-height: 30px; }
.spw-grid .position-control { gap: 4px; }
.spw-grid .position-control > span { font-size: 10px; }
.spw-grid .position-control select { height: 31px; font-size: 11px; padding: 0 6px; }
.spw-grid .card-head { padding: 16px 15px 0; gap: 10px; grid-template-columns: 43px minmax(0, 1fr); }
.spw-grid .school-logo { width: 43px; height: 43px; }
.spw-grid .school-line { gap: 4px; font-size: 10px; line-height: 1.7; }
.spw-grid .program-card h2 { font-size: 17px; line-height: 1.45; margin-top: 7px; }
.spw-grid .en-name { font-size: 12px; }
.spw-grid .meta-grid { margin-top: 13px; padding-left: 15px; padding-right: 15px; gap: 8px; }
.spw-grid .meta { min-height: 83px; padding: 10px; border-color: #edf0f4; }
.spw-grid .meta b { font-size: 10px; }
.spw-grid .meta span { font-size: 11px; line-height: 1.65; }
.spw-grid .excerpt { min-height: 45px; max-height: 64px; margin: 12px 15px; font-size: 12px; line-height: 1.7; flex-grow: 1; }
.spw-grid .card-actions { padding: 12px 15px; margin-top: auto; gap: 7px; flex-wrap: wrap; background: #fffdfb; }
.spw-grid .card-actions button { font-size: 11px; min-height: 32px; height: 32px; padding: 0 10px; }
.spw-grid .card-actions .source-link { font-size: 10px; margin-left: auto; }
.spw-grid .card-actions .spw-remove { color: #8b6a60; border: 1px solid #eadbd4; background: transparent; }
.spw-notes { margin: 0 15px 12px; border: 1px solid #ede6e0; border-radius: 7px; background: #fffcf8; }
.spw-notes summary { display: flex; cursor: pointer; align-items: center; gap: 7px; padding: 9px 10px; list-style: none; font-size: 11px; font-weight: 700; color: #775e4f; }
.spw-notes summary::-webkit-details-marker { display: none; }
.spw-notes summary small { margin-left: auto; color: #a79487; font-size: 10px; font-weight: 500; }
.spw-notes summary i { font-style: normal; font-size: 12px; transition: transform .15s; }
.spw-notes[open] summary i { transform: rotate(180deg); }
.spw-notes-fields { display: grid; gap: 10px; padding: 0 10px 11px; }
.spw-notes-fields label { display: grid; gap: 5px; font-size: 11px; }
.spw-notes-fields textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 52px; padding: 7px 8px; resize: vertical; border: 1px solid #e7dfd6; border-radius: 5px; background: #fff; color: #49433f; font: inherit; line-height: 1.65; }
.spw-notes-fields > small { color: #a08a7a; font-size: 10px; line-height: 1.6; }
.spw-empty { grid-column: 1 / -1; text-align: center; padding: 65px 20px; border: 1px dashed #e4d6ca; border-radius: 12px; background: #fffdf9; }
.spw-empty > span { display: block; color: #d3ae97; font-size: 32px; }
.spw-empty h3 { margin: 16px 0 8px; font-size: 18px; }
.spw-empty p { color: #8d8a87; font-size: 12px; }
.spw-empty button { margin-top: 8px; background: #fff; border: 1px solid #e9d5c8; padding: 8px 18px; }
.spw-unresolved { margin: 0 0 16px; padding: 13px 16px; border: 1px solid #efdcb9; border-radius: 9px; background: #fffbef; font-size: 12px; color: #8f6b33; }
.spw-unresolved[hidden] { display: none; }
.spw-unresolved summary { cursor: pointer; font-weight: 700; }
.spw-unresolved p { color: #a18458; font-size: 11px; }
.spw-unresolved details > div { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 9px 0; border-top: 1px solid #eee3c9; }
.spw-unresolved details > div span { min-width: 0; overflow-wrap: anywhere; }
.spw-unresolved button { flex-shrink: 0; padding: 5px 10px; background: #fff; border: 1px solid #e8d8b8; font-size: 11px; }
.spw-more { display: flex; justify-content: center; padding: 22px; }
.spw-more button { padding: 10px 30px; border: 1px solid #e3d9d1; background: #fff; color: #9b6548; }
.spw-nav-btn { display: flex; justify-content: space-between; align-items: center; }
.spw-nav-btn small { display: inline-flex; justify-content: center; align-items: center; min-width: 22px; height: 20px; border-radius: 6px; padding: 0 5px; background: #f7ede7; color: #c66943; font-size: 10px; }
.spw-tool { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; margin: 0 0 18px; border: 1px solid #e9ded5; border-radius: 12px; background: linear-gradient(110deg, #fffaf3, #fff); }
.spw-tool-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: #f4e9da; color: #b47d45; font-size: 26px; }
.spw-tool small { display: block; color: #b68b5f; font-size: 9px; letter-spacing: .14em; font-weight: 800; }
.spw-tool b { display: block; margin-top: 5px; font-size: 16px; }
.spw-tool p { margin: 6px 0 0; color: #a09285; font-size: 11px; line-height: 1.6; }
.spw-tool button { border: 1px solid #e6c9b0; border-radius: 8px; background: #fff; color: #a86939; padding: 11px 16px; font-weight: 700; font-size: 12px; white-space: nowrap; }
@media (max-width: 1100px) {
  .spw-overview p { display: none; }
  .spw-toolbar { grid-template-columns: minmax(150px, 1.6fr) minmax(120px, 1fr) minmax(100px, .8fr); }
  .spw-toolbar > button { align-self: end; }
}
@media (max-width: 680px) {
  .spw-hero { padding: 20px; align-items: flex-start; flex-direction: column; gap: 18px; }
  .spw-hero h2 { font-size: 24px; }
  .spw-hero-actions { width: 100%; }
  .spw-hero-actions button { flex: 1; padding: 9px; }
  .spw-overview { justify-content: space-between; padding: 18px 0; }
  .spw-overview > div { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 13px; }
  .spw-overview > div:last-of-type { border-right: 0; }
  .spw-overview strong { font-size: 22px; }
  .spw-overview span { font-size: 10px; }
  .spw-toolbar { grid-template-columns: 1fr 1fr; padding: 13px; gap: 12px; }
  .spw-toolbar .spw-search { grid-column: 1 / -1; }
  .spw-grid.cards { grid-template-columns: minmax(0, 1fr); }
  .spw-result-line > div { width: 100%; }
  .spw-result-line button { flex: 1; padding: 7px 9px; font-size: 11px; }
  .spw-tool { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 15px; }
  .spw-tool-icon { width: 40px; height: 40px; }
  .spw-tool button { grid-column: 1 / -1; width: 100%; }
  .spw-import { padding: 17px 15px; }
  .spw-import-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .spw-import-entries { grid-template-columns: minmax(0, 1fr); }
  .spw-import-entry, .spw-import-drop { padding: 12px; }
  .spw-import-workspace .smart-result { grid-template-columns: minmax(0, 1fr); padding: 14px 68px 14px 14px; }
  .spw-import-workspace .smart-result small, .spw-import-workspace .smart-confirm, .spw-import-workspace .smart-manual-search { grid-column: 1; }
  .spw-import-workspace .smart-actions input { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .spw-notes summary i { transition: none; } }
