:root{font-family:Tahoma,"Leelawadee UI",system-ui,sans-serif;color:#203247;background:#f2f5fa;font-size:15px;--navy:#142c49;--blue:#2859d9}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus,textarea:focus,select:focus{outline:3px solid #789bff;outline-offset:3px}a{color:#2859d9;text-decoration:none}a:hover{text-decoration:underline}aside{width:230px;position:fixed;inset:0 auto 0 0;background:var(--navy);color:white;display:flex;flex-direction:column;padding:30px 20px;z-index:2}.brand{display:flex;align-items:center;gap:12px;color:white;font-size:21px;font-weight:bold}.brand>span{background:#3c69ec;border-radius:14px;padding:7px 12px;font-size:30px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#a4b7d2;margin-top:7px}.nav-label{color:#8198b6;margin:45px 10px 15px;font-size:12px}nav{display:grid;gap:10px}nav button{border:0;background:transparent;color:#b9c8db;text-align:left;padding:15px;border-radius:12px}nav button.active,nav button:hover{background:#254365;color:white}.sidebar-note{margin-top:auto;font-size:12px;color:#9eb3cd;line-height:1.9}.sidebar-note a{color:#baceef}.workspace{margin-left:230px}header{min-height:77px;background:white;display:flex;justify-content:space-between;align-items:center;padding:16px 35px;border-bottom:1px solid #e4eaf1;gap:10px}header>div{display:flex;gap:10px;align-items:center}.tag{background:#e9f1fd;color:#40628e;border-radius:7px;padding:6px 9px;font-size:11px}main{max-width:1500px;margin:auto;padding:34px}.page-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}h1{font-size:30px;margin:0 0 9px;letter-spacing:-.6px}h2{font-size:21px;margin:0 0 12px}h3{font-size:17px;margin:0 0 8px;line-height:1.6}p{line-height:1.85;margin:8px 0}.muted,small{color:#73839a}.btn{border:1px solid #dae3ef;background:white;color:#3c5271;border-radius:9px;padding:10px 14px;line-height:1.5}.btn:hover{background:#f0f4fc}.btn.primary{background:var(--blue);color:white;border-color:var(--blue)}.actions{display:flex;gap:9px;flex-wrap:wrap}.notice{border:1px solid #dbe5f3;background:#edf3ff;border-radius:12px;padding:15px 18px;margin:18px 0;font-size:13px;line-height:1.9}.notice.warn{background:#fff7df;border-color:#ead597;color:#70531c}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:23px 0}.stat,.panel{background:white;border:1px solid #e0e7f1;border-radius:15px;padding:23px}.stat strong{font-size:32px;display:block;margin:9px 0}.stat span{font-size:12px;color:#6c809a}.section-title{display:flex;align-items:center;justify-content:space-between;margin:28px 0 15px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.card{background:white;border:1px solid #dde6f0;border-top:5px solid #97aac3;border-radius:15px;padding:23px;min-width:0}.card.possible{border-top-color:#21976a;background:linear-gradient(#f4fff9,white 32%)}.card.moderate{border-top-color:#2563eb;background:linear-gradient(#f0f7ff,white 32%)}.card.watch{border-top-color:#d9971c;background:linear-gradient(#fff9e7,white 32%)}.card.unlikely{border-top-color:#94a3b8;background:linear-gradient(#f8fafc,#ffffff 32%);border-color:#cbd5e1}.card.unlikely .card-head h3{color:#475569}.card.unlikely .logo{filter:grayscale(0.75);opacity:0.85}.card.unlikely .metrics strong{color:#64748b}.card.unlikely .summary{background:#f8fafc;color:#64748b;border:1px solid #e2e8f0}.card.unlikely .progress>i{background:#94a3b8}.unlikely .pill{background:#f1f5f9;color:#64748b;border:1px solid #cbd5e1}.low-priority{margin-top:45px;border-top:2px dashed #cbd5e1;padding-top:5px}.low-priority .section-title h2{color:#64748b}.card-head{display:flex;gap:12px;align-items:center}.logo{width:48px;height:48px;min-width:48px;min-height:48px;max-width:48px;max-height:48px;object-fit:contain;background:#ffffff;padding:5px;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 1px 3px rgba(20,44,73,0.04);box-sizing:border-box;flex-shrink:0}.initial{display:grid;place-items:center;background:#edf2fa;border:1px solid #cbd5e1;border-radius:10px;width:48px;height:48px;min-width:48px;max-width:48px;font-weight:bold;flex-shrink:0}.card-head>div{flex:1}.agency{font-size:12px;color:#72839b;line-height:1.7}.pill{display:inline-block;padding:5px 9px;border-radius:7px;font-size:11px;background:#edf2f9;color:#637a96;margin:12px 0}.possible .pill{background:#e1f5ea;color:#23724d}.moderate .pill{background:#dbeafe;color:#1e40af}.watch .pill{background:#fff1ca;color:#946113}.unlikely .pill{background:#f1f5f9;color:#64748b;border:1px solid #cbd5e1}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0 20px}.metrics strong{display:block;font-size:27px;margin-top:7px}.metrics small{font-size:11px}.progress{height:7px;border-radius:5px;background:#e5ecf6;overflow:hidden}.progress>i{height:100%;display:block;background:#4168dc}.progress-label{font-size:11px;color:#72839b;margin:8px 0 18px}.summary{font-size:12px;line-height:1.9;color:#566c87;background:#f6f8fc;border-radius:9px;padding:13px;margin:12px 0}.card-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:20px;padding-top:14px;border-top:1px solid #edf1f7;font-size:12px}.card-foot .btn{font-size:12px}.news-row{padding:17px 0;border-bottom:1px solid #edf0f6;line-height:1.8;overflow-wrap:anywhere}.news-row:last-child{border:0}.news-meta{font-size:11px;color:#75869e}.source-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.ok{color:#19825b}.bad{color:#b25137}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:grid;gap:8px;font-size:13px}input,select,textarea{padding:11px;border:1px solid #cdd8e6;border-radius:8px;background:white;width:100%;color:#253e5c}textarea{min-height:100px;resize:vertical}.full{grid-column:1/-1}dialog{border:1px solid #d6dfeb;border-radius:17px;width:min(750px,94vw);padding:25px;max-height:90vh}dialog::backdrop{background:#10213c99}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}dialog .panel{padding:17px;margin:15px 0}.error{color:#b43140;margin:10px 0;font-size:13px}.forecast-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0}.forecast-grid>div{background:#f1f5fb;border-radius:9px;padding:14px}.forecast-grid strong{display:block;font-size:26px;margin:8px 0}table{border-collapse:collapse;width:100%;font-size:12px}th,td{text-align:left;border-bottom:1px solid #e6ecf5;padding:11px 5px;line-height:1.8}footer{text-align:center;padding:25px;color:#8a9bb0;font-size:11px}#toast{position:fixed;bottom:25px;right:25px;max-width:90vw;background:#162d49;color:white;padding:15px 22px;border-radius:11px;z-index:5}.empty{padding:30px;text-align:center;color:#74869d}.document-list .actions{margin-top:10px}.storage-warning{color:#aa4a24;font-weight:bold}.mobile-only{display:none}@media(min-width:1400px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1000px){aside{width:195px;padding:24px 15px}.workspace{margin-left:195px}.cards{grid-template-columns:1fr}main{padding:25px}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){aside{position:static;width:100%;padding:18px}.brand{font-size:19px}.brand>span{font-size:24px}.nav-label,.sidebar-note{display:none}nav{grid-template-columns:repeat(4,1fr);gap:4px;margin-top:15px}nav button{padding:11px 4px;text-align:center;font-size:11px}.workspace{margin:0}header{padding:12px 16px;min-height:65px;font-size:12px}header .tag{display:none}main{padding:20px 15px}h1{font-size:25px}.page-title{align-items:flex-start}.page-title>.actions{flex-direction:column}.stat{padding:17px}.stat strong{font-size:26px}.card{padding:18px}.source-status{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}dialog{padding:18px}.forecast-grid{gap:5px}.forecast-grid>div{padding:10px}.forecast-grid strong{font-size:21px}.metrics strong{font-size:25px}}

.cloud-sync{display:flex;justify-content:space-between;align-items:center;gap:20px}.cloud-sync p{margin:4px 0;font-size:12px}.cloud-sync>.btn{flex-shrink:0}.date-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.date-grid b{display:block;margin:7px 0}.date-grid a{font-size:11px}.low-priority{margin-top:45px;border-top:2px dashed #cbd5e1;padding-top:5px}.sync-frame{display:none}@media(max-width:650px){.cloud-sync{align-items:flex-start;flex-direction:column}.date-grid{grid-template-columns:1fr}}

.exam-stage{margin-top:32px;padding-top:8px;border-top:1px solid #dce5ef}.exam-stage[data-stage="completed"] .card{border-top-color:#5685b7}.exam-stage[data-stage="upcoming"] .card{border-top-color:#9a7bc0}.exam-stage[data-stage="application"] .card{border-top-color:#499d9a}.source-review{border-left:3px solid #b9cadf;padding:3px 10px;margin-top:14px;font-size:12px;line-height:1.8;color:#526982}.source-review small{color:#78889d}.source-review p{margin:4px 0}.section-title{flex-wrap:wrap}

/* Openings View Styles */
.filter-bar{background:white;border:1px solid #dde6f0;border-radius:15px;padding:20px;margin-bottom:24px;display:flex;flex-direction:column;gap:15px}
.filter-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.search-input{flex:1;min-width:240px;padding:12px 16px;border:1px solid #cdd8e6;border-radius:10px;font-size:14px}
.filter-select{padding:11px 14px;border:1px solid #cdd8e6;border-radius:10px;background:white;color:#203247;font-size:13px}
.filter-chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{border:1px solid #d5e0ee;background:#f3f7fd;color:#355377;padding:7px 14px;border-radius:20px;font-size:12px;font-weight:500;cursor:pointer;transition:all .15s}
.chip:hover{background:#e2ecf9}
.chip.active{background:#2859d9;color:white;border-color:#2859d9}
.badge-group{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.badge{display:inline-flex;align-items:center;padding:4px 9px;border-radius:6px;font-size:11px;font-weight:500}
.badge-ocsc{background:#eaf2fe;color:#1c4ea0}
.badge-nocsc{background:#edf7ed;color:#1e6b24}
.badge-edu{background:#f4edf9;color:#5e2a86}
.badge-edu-master{background:#ede9fe;color:#5b21b6;border:1px solid #ddd6fe}
.badge-edu-bachelor{background:#dbeafe;color:#1d4ed8;border:1px solid #bfdbfe}
.badge-edu-diploma{background:#fef3c7;color:#92400e;border:1px solid #fcd34d}
.badge-edu-vocational{background:#fce7f3;color:#9d174d;border:1px solid #f9a8d4}
.badge-family{background:#fdf2e9;color:#874205}
.badge-open{background:#e1f5ea;color:#1d6b46;font-weight:bold}
.badge-upcoming{background:#fef7e0;color:#8a5e00;font-weight:bold}
.badge-closed{background:#f3f4f6;color:#5f6b7c}
.opening-dates{background:#f7f9fd;border-radius:10px;padding:12px 14px;margin:12px 0;font-size:12px;line-height:1.8}
.opening-dates strong{color:#142c49}
.card.tracked{border-top-color:#2859d9}
.btn.tracked{background:#e8f0fe;color:#1a4bb3;border-color:#bcd0f7;cursor:default}
.fresh-pill{background:#dcf3e7;color:#13623f;padding:5px 12px;border-radius:20px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;gap:6px}
.fresh-pill::before{content:'';width:7px;height:7px;background:#1da463;border-radius:50%;display:inline-block}
.clamp-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;line-height:1.6}
.countdown-tube{height:7px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-top:7px;width:100%;box-shadow:inset 0 1px 2px rgba(15,23,42,0.08)}
.countdown-fill{display:block;height:100%;border-radius:999px;transition:width 0.4s ease,background 0.4s ease}

.card.closed{background:#f8fafc;border-color:#e2e8f0;border-top-color:#94a3b8;color:#64748b}
.card.closed .card-head h3{color:#475569}
.card.closed .agency{color:#94a3b8}
.card.closed .opening-dates{background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0}
.card.closed .opening-dates strong{color:#475569}
.card.closed .logo{filter:grayscale(0.6);opacity:0.85}
.card.closed .badge-closed{background:#e2e8f0;color:#475569}
