:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202821;background:#ffffff;font-synthesis:none;--green:#253f32;--orange:#c05b34;--muted:#6d746d;--line:#e1e3d9}*{box-sizing:border-box}body{margin:0;font-size:15px}button,input,select,textarea{font:inherit}button,a,input,select,summary{outline-offset:4px}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button{border:1px solid var(--line);border-radius:9px;padding:11px 16px;background:white;color:#263d30;font-weight:600}button:hover{background:#edf1e8}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#395945}.text-btn{background:transparent;border-color:transparent;padding-left:0}.topbar{height:94px;display:flex;align-items:center;justify-content:space-between;padding:0 48px;border-bottom:1px solid var(--line);background:#fcfcf7}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;font-size:20px;font-weight:700;letter-spacing:-.5px}.brand-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--green);color:#f8e4a7;font-size:31px;font-family:Georgia,serif;line-height:1}.brand small{display:block;font-size:9px;color:#7c827a;letter-spacing:2px;margin-top:5px}.settings-btn{background:transparent}.layout{display:grid;grid-template-columns:245px minmax(0,1fr);max-width:1536px;margin:auto;min-height:calc(100vh - 94px)}.sidebar{padding:35px 22px;border-right:1px solid var(--line)}.season-label{font-size:10px;letter-spacing:1.5px;color:#707b6e;margin:0 12px 25px;font-weight:700}.dot{display:inline-block;border-radius:50%;background:#668464;width:7px;height:7px;margin-right:6px}nav{display:grid;gap:7px}nav a{text-decoration:none;display:flex;align-items:center;gap:12px;padding:15px;border-radius:9px;font-size:14px;color:#70766d}nav a.active{background:#e4e9da;color:#263e2b;font-weight:650}nav a span{font-size:21px;width:20px}nav b{margin-left:auto;font-size:11px;background:#cad7b9;padding:3px 7px;border-radius:4px}.sidebar-note{margin:62px 10px 25px;padding:20px 0;color:#3c4e38}.note-icon{display:block;font-size:35px;color:#b6643f;margin-bottom:15px}.sidebar-note strong{font-family:Georgia,serif;font-size:23px;font-weight:400;line-height:1.25}.sidebar-note p{font-size:12px;line-height:1.8;color:var(--muted)}.pill{display:inline-block;font-size:10px;font-weight:600;padding:7px 9px;border:1px solid #d6dbcd;border-radius:5px}.local-note{margin:35px 12px;font-size:11px;line-height:1.8;color:#586b50}.local-note span{color:#92958b}main{padding:38px 45px 65px;min-width:0;max-width:1300px;width:100%}.eyebrow{font-size:10px;font-weight:700;color:#7e8778;letter-spacing:1.5px;text-transform:uppercase}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:28px}h1{font-family:Georgia,"Times New Roman",serif;font-size:43px;line-height:1.12;letter-spacing:-1.5px;font-weight:400;margin:10px 0 12px}h2{font-size:21px;letter-spacing:-.5px}h3{font-size:17px;line-height:1.35;margin:10px 0}p{line-height:1.6}.subtitle{color:var(--muted);font-size:14px;margin:0}.date-stamp{font-size:11px;color:#7d8478;margin-top:32px;white-space:nowrap}.hero{background:#e6ebdb;border-radius:15px;padding:28px 30px;display:flex;position:relative;overflow:hidden;align-items:center;justify-content:space-between;gap:20px;border:1px solid #dbe3cc;margin-bottom:24px}.hero h2{font-family:Georgia,serif;font-size:29px;font-weight:400;max-width:410px;margin:12px 0}.hero p{font-size:13px;max-width:460px;color:#68755e;margin:8px 0 20px}.hero-art{position:relative;width:150px;height:150px;flex-shrink:0;margin-right:25px;border:1px solid #bfcdab;border-radius:50%;display:grid;place-items:center;transform:rotate(-12deg)}.hero-art:before{content:"";position:absolute;inset:18px;border:1px solid #bfcdab;border-radius:50%}.hero-art:after{content:"✦";position:absolute;right:-10px;top:0;font-size:34px;color:#ba673c}.hero-art span{font-family:Georgia,serif;font-size:69px;color:#3f5838;background:#ecedd8;width:88px;height:104px;text-align:center;border-radius:6px;box-shadow:6px 7px 0 #ccd7b6;transform:rotate(12deg)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 26px}.stat{padding:18px 20px;border:1px solid var(--line);border-radius:11px;background:#fbfcf7;display:flex;align-items:center;gap:16px}.stat strong{font-size:29px;font-weight:500;letter-spacing:-1px}.stat span{font-size:11px;color:var(--muted);line-height:1.6}.section-head{display:flex;justify-content:space-between;align-items:center;margin:20px 0 14px;gap:15px}.section-head h2{margin:0;font-size:18px}.section-head small{color:var(--muted);font-size:11px}.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.chip{border-radius:6px;font-size:12px;padding:8px 13px;background:transparent}.chip.active{background:var(--green);color:white;border-color:var(--green)}.action-card{display:grid;grid-template-columns:57px minmax(0,1fr) auto;gap:20px;align-items:start;padding:23px;background:#fff;border:1px solid var(--line);border-radius:11px;margin-bottom:10px}.action-card.urgent{border-left:3px solid #bd663f}.date-tile{width:52px;padding:9px 4px;background:#f1f2ea;border-radius:8px;text-align:center;color:#59634e}.date-tile b{display:block;font-size:24px;font-weight:500}.date-tile span{font-size:10px}.action-top{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.olymp-name{font-size:11px;color:#818877}.badge{font-size:9px;padding:4px 7px;border-radius:4px;font-weight:600;display:inline-block;line-height:1.45}.confirmed{background:#e9f0e0;color:#4a693e}.draft{background:#fff0d7;color:#8f681e}.conflict{background:#fbe7df;color:#a25339}.unpublished{background:#f0f0eb;color:#777d73}.kind{font-size:10px;font-weight:650;color:#607156}.action-detail p{font-size:12px;color:#6e7768;margin:7px 0}.action-detail .deadline{color:#2f4231;font-size:13px}.actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.actions button,.actions a{font-size:11px;padding:9px 11px}.source{font-size:10px;color:#7d8675;display:inline-block;margin-top:9px;text-underline-offset:3px}.check-btn{border-radius:50%;width:28px;height:28px;padding:0;color:#7b8c6d;margin-top:8px}.notice{background:#f3ecde;border:1px solid #e9dfc9;border-radius:9px;padding:13px 17px;font-size:11px;line-height:1.7;color:#837254;margin:20px 0}.notice a{text-underline-offset:3px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.olympiad-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:22px;display:flex;flex-direction:column}.olympiad-card.selected{border-color:#b8c9a5}.card-head{display:flex;justify-content:space-between;align-items:center}.monogram{width:38px;height:38px;border-radius:10px;background:#e8ecdf;color:#49623c;display:grid;place-items:center;font-family:Georgia,serif;font-size:18px}.olympiad-card p{font-size:12px;color:var(--muted);margin:0 0 12px}.olympiad-card h3{min-height:44px;margin:16px 0 8px}.olympiad-card .actions{margin-top:auto;padding-top:16px}.olympiad-card select{width:100%;margin:12px 0 0}.search{width:100%;margin-bottom:20px;border:1px solid var(--line);border-radius:9px;padding:13px 15px;background:#fafbf6}.empty{border:1px dashed #c9d1be;border-radius:12px;text-align:center;padding:30px;color:#69755f;background:#f9faf4}.empty h2{color:#354830}.empty p{font-size:13px}.calendar-tools{display:flex;justify-content:space-between;gap:10px;margin:20px 0}.calendar-tools div{display:flex;gap:8px}.event-row{display:flex;gap:16px;align-items:center;padding:16px;background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:8px}.event-row input{width:18px;height:18px;accent-color:var(--green)}.event-row h3{font-size:14px;margin:4px 0}.event-row p{font-size:11px;color:var(--muted);margin:0}.legend{display:flex;flex-wrap:wrap;gap:15px;font-size:11px;color:#687160;margin:17px 0}.legend i{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:5px}.registration-bg{background:#aac198}.selection-bg{background:#e3b75f}.final-bg{background:#c78268}.organization-bg{background:#a5b8c6}.gantt-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:white}.gantt{min-width:750px}.gantt-header,.gantt-row{display:grid;grid-template-columns:205px 1fr;border-bottom:1px solid #eef0e6;min-height:59px;align-items:center}.gantt-header{background:#f5f6ee;min-height:40px;font-size:10px;font-weight:600;color:#717c64}.gantt-header>span{padding:12px}.months{display:grid;grid-template-columns:repeat(8,1fr);text-align:center}.gantt-label{font-size:10px;line-height:1.5;padding:12px}.gantt-label b{font-weight:600}.gantt-label small{display:block;color:#7c8373}.gantt-track{height:34px;position:relative;background:repeating-linear-gradient(to right,transparent 0%,transparent calc(12.5% - 1px),#edf0e5 calc(12.5% - 1px),#edf0e5 12.5%)}.bar{position:absolute;top:8px;height:17px;border-radius:4px;min-width:5px}.bar.draft-bar{background-image:repeating-linear-gradient(45deg,transparent 0,transparent 4px,#ffffff77 4px,#ffffff77 7px);border:1px dashed #8d805c}.gantt-foot{font-size:11px;color:#737b69;margin-top:10px}dialog{width:650px;max-width:calc(100vw - 28px);border:1px solid var(--line);border-radius:17px;padding:30px;background:#fcfcf7;color:#263c2c;max-height:90vh}dialog::backdrop{background:#1d2a245e;backdrop-filter:blur(3px)}dialog h2{font-family:Georgia,serif;font-size:29px;font-weight:400;margin:10px 35px 18px 0}dialog h3{margin-top:25px}dialog p{font-size:13px;color:#68755f}.close{position:absolute;right:15px;top:15px;padding:0;width:31px;height:31px;font-size:22px}select,input[type=number],input[type=password],input[type=text]{border:1px solid #ccd3c2;border-radius:7px;background:white;padding:10px;max-width:100%}label.field{display:block;font-size:12px;margin:18px 0}label.field input,label.field select{display:block;margin:8px 0;width:100%}.detail-list{margin:0}.detail-list dt{font-size:11px;font-weight:700;margin-top:19px;color:#49603e}.detail-list dd{font-size:12px;line-height:1.7;margin:5px 0;white-space:pre-line;overflow-wrap:anywhere}.settings-list{padding-left:18px;font-size:12px;color:#68735f;line-height:1.8}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#263f31;color:white;padding:14px 22px;border-radius:9px;max-width:90vw;font-size:12px;z-index:10;box-shadow:0 4px 25px #14231822}#sync-banner{position:fixed;bottom:0;left:0;right:0;background:#8f512f;color:white;padding:12px 20px;text-align:center;font-size:12px;z-index:5}.admin{max-width:1000px;margin:auto;padding:35px}.admin textarea{width:100%;height:55vh;font-family:monospace;font-size:12px;margin:15px 0}.done-list summary{font-size:12px;color:#79836d;cursor:pointer;margin:22px 0}.done-row{display:flex;gap:15px;align-items:center;justify-content:space-between;font-size:12px;padding:10px;border-bottom:1px solid var(--line)}.offline{font-size:11px;color:#985d35}footer{margin:27px 0 0;font-size:10px;line-height:1.7;color:#89907e}footer a{text-underline-offset:3px}@media(min-width:1450px){main{padding:45px 65px}.sidebar{padding-top:42px}}@media(max-width:1100px){.layout{grid-template-columns:205px 1fr}main{padding:30px 25px}.topbar{padding:0 25px}.sidebar{padding-left:13px;padding-right:13px}.hero-art{margin-right:0;width:125px;height:125px}.action-card{gap:14px;padding:19px}.catalog-grid{gap:10px}.stat{padding:16px 12px;gap:10px}.date-stamp{display:none}}@media(max-width:760px){.topbar{height:74px;padding:0 18px}.brand{font-size:17px}.brand-icon{width:36px;height:36px}.brand small{font-size:8px}.settings-btn{padding:8px 11px}.settings-btn span{display:none}.layout{display:block}.sidebar{position:fixed;bottom:0;left:0;right:0;z-index:4;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#fcfcf7;border-top:1px solid var(--line);border-right:0}.sidebar .season-label,.sidebar-note,.local-note{display:none}nav{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}nav a{display:flex;flex-direction:column;gap:3px;font-size:10px;padding:8px 3px}nav a span{width:auto;font-size:20px}nav b{display:none}main{padding:25px 17px 110px}h1{font-size:36px;margin:10px 0}.subtitle{font-size:12px;max-width:290px}.page-heading{margin-bottom:22px}.hero{padding:22px;min-height:190px}.hero h2{font-size:25px;max-width:260px}.hero p{max-width:250px;font-size:12px}.hero-art{width:85px;height:85px;margin-right:-45px;opacity:.65}.hero-art span{font-size:44px;width:53px;height:68px}.hero-art:before{inset:10px}.stats{gap:7px;margin-bottom:22px}.stat{padding:13px 10px;display:block}.stat strong{font-size:25px}.stat span{display:block;font-size:9px;margin-top:5px}.action-card{grid-template-columns:43px minmax(0,1fr) 25px;gap:10px;padding:17px 12px}.date-tile{width:42px}.date-tile b{font-size:22px}.action-card h3{font-size:15px}.action-top{gap:5px}.badge{font-size:8px}.action-detail p{font-size:11px}.action-detail .deadline{font-size:12px}.actions{gap:6px}.actions button,.actions a{font-size:10px;padding:8px}.catalog-grid{grid-template-columns:1fr}.olympiad-card h3{min-height:0}.section-head small{max-width:135px;text-align:right}.section-head h2{font-size:16px}.calendar-tools{flex-direction:column}.calendar-tools button{font-size:12px}.event-row{padding:13px 10px;gap:10px}dialog{padding:24px 19px}.notice{padding:12px 13px;font-size:10px}#toast{bottom:94px;width:max-content}#sync-banner{bottom:80px;font-size:10px}.gantt-foot{font-size:10px}.page-heading>.primary{font-size:11px;padding:10px}.olympiad-card{padding:19px}}

/* Institution identity: restrained tints retain text/status contrast. */
.brand-hse,dialog[data-brand="hse"]{--institution:#0f2954}
.brand-elo,dialog[data-brand="elo"]{--institution:#0d3996}
.brand-rsuh,dialog[data-brand="rsuh"]{--institution:#16428e}
.brand-msu,dialog[data-brand="msu"]{--institution:#14005c}
.brand-pvg,dialog[data-brand="pvg"]{--institution:#14005c}
.brand-spbu,dialog[data-brand="spbu"]{--institution:#9f1b2c}
.brand-herzen,dialog[data-brand="herzen"]{--institution:#003e78}
.brand-kfu,dialog[data-brand="kfu"]{--institution:#00549e}
.brand-v-olymp,dialog[data-brand="v-olymp"]{--institution:#0d062b}
.brand-rea,dialog[data-brand="rea"]{--institution:#0039a3}
.brand-ranepa,dialog[data-brand="ranepa"]{--institution:#c8102e}
.brand-fa,dialog[data-brand="fa"]{--institution:#233e76}
.brand-csu,dialog[data-brand="csu"]{--institution:#e72b2d}

.olympiad-card{background:color-mix(in srgb,var(--institution) 8%,white);border-color:color-mix(in srgb,var(--institution) 22%,white);border-top:4px solid var(--institution)}
.olympiad-card.selected{border-color:var(--institution);box-shadow:0 0 0 1px color-mix(in srgb,var(--institution) 14%,transparent)}
.olympiad-card h3{color:var(--institution)}
.olympiad-card .card-head{align-items:center;gap:12px;margin-bottom:2px}
.institution-logo{display:inline-flex;align-items:center;justify-content:center;width:150px;height:82px;flex-shrink:0;background:#fff;border-radius:10px;padding:10px;border:1px solid #e5e7ec;overflow:hidden}
.institution-logo img{display:block;width:100%;height:100%;object-fit:contain}
.institution-logo-dark{background:var(--institution);border-color:transparent}
.olympiad-card .chip.active{background:var(--institution);border-color:var(--institution)}
.olympiad-card .kind{color:var(--institution)}
.action-card{background:color-mix(in srgb,var(--institution) 5%,white);border-left:3px solid var(--institution)}
.action-card.urgent{border-left-color:var(--institution)}
.action-top .institution-logo{width:76px;height:45px;padding:5px;flex-shrink:0}
.action-top .olymp-name{color:#525d6b;flex:1;min-width:120px}
.action-card .date-tile{background:color-mix(in srgb,var(--institution) 10%,white);color:var(--institution)}
dialog[data-brand]{background:color-mix(in srgb,var(--institution) 6%,white);border-top:5px solid var(--institution)}
dialog[data-brand]>.close{color:var(--institution)}
dialog[data-brand] #dialog-content>.institution-logo{display:flex;margin-bottom:22px;width:178px;height:94px}
dialog[data-brand] h2{color:var(--institution)}
@media(max-width:760px){.institution-logo{width:140px;height:78px}.olympiad-card .card-head>.chip{font-size:10px;padding:9px;max-width:145px}.action-top{gap:7px}.action-top .institution-logo{width:66px;height:40px}.action-top .badge{margin-bottom:3px}}

/* Personal plan: white foundation and soft functional panels. */
.topbar,.sidebar{background:#ffffff}
.hero{background:#f0f6fb;border-color:#dfe8f0}
.hero-art,.hero-art:before{border-color:#c8d9e6}
.hero-art span{background:#ffffff;color:#36546c;box-shadow:6px 7px 0 #dce8f1}
.stat:nth-child(3n+1){background:#eef7f2;border-color:#ddebe3}
.stat:nth-child(3n+2){background:#fff5ed;border-color:#f0e3d9}
.stat:nth-child(3n+3){background:#f3f0fa;border-color:#e5dfef}
.action-card{background:#f7f9fc}
.date-tile{background:#eaf0f7;color:#40556d}
.search{background:#ffffff}
.empty{background:#f5f3fa;border-color:#ded8e9}
.notice{background:#fff7e8;border-color:#eee3ca}
nav a.active{background:#edf2f8;color:#304253}
.gantt-header{background:#f1f5fa}
