@font-face{font-family:Onest;src:url(/onest.woff2);font-weight:100 900}
@font-face{font-family:Onest;src:url(/onest-cyr.woff2);font-weight:100 900;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
:root{font-family:Onest,system-ui,sans-serif;color:#18254a;background:#f3f7ff;--blue:#354be5;--line:#e3e9f5;--muted:#556482;}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
button,input,select{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.5}
a{color:var(--blue);text-decoration:none}
p,h1,h2{margin:0}
p,small{color:var(--muted)}
:focus-visible{outline:3px solid #725cf2;outline-offset:2px}
.wrap{max-width:1312px;margin-inline:auto;padding-inline:35px}
header{border-bottom:1px solid var(--line);background:#fff}
.top{min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:11px;font-size:19px;font-weight:850;color:#18254a;line-height:1.1}
.brand small{display:block;font-size:11px;font-weight:550;margin-top:4px}
.logo{display:grid;place-items:center;background:var(--blue);color:white;border-radius:12px;width:40px;height:40px;font-size:25px}
.primary,.secondary,.ghost{border:1px solid transparent;border-radius:10px;padding:10px 15px;font-size:13px;font-weight:720;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:38px;line-height:1.2}
.primary{background:var(--blue);color:#fff}
.secondary{background:white;color:#344365;border-color:#dfe6f4}
.ghost{background:transparent;color:#495a7a}
.primary:hover{background:#293cc9}.secondary:hover,.ghost:hover{border-color:#aebce7}
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:292px;margin-block:29px 24px;padding:33px 38px;border:1px solid #dce5ff;border-radius:23px;background:linear-gradient(113deg,#f1efff 2%,#e7eeff 50%,#d8e9ff 100%);display:flex;align-items:center}
.hero-copy{max-width:650px}
.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:850;color:#3f4cc5;margin-bottom:13px}
h1{font-size:clamp(35px,5vw,67px);letter-spacing:-.075em;line-height:1.02;font-weight:850;overflow-wrap:anywhere}
.hero p{font-size:16px;max-width:426px;margin:13px 0 22px;line-height:1.6;color:#405278}
.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.hero-date{position:absolute;right:22px;bottom:17px;background:#f7faffd9;border:1px solid #fff;padding:7px 12px;border-radius:30px;color:#334472;font-size:12px;font-weight:740}
.orb{position:absolute;z-index:-1;right:5%;top:50%;translate:0 -50%;width:34%;height:92%;color:#f7faff;pointer-events:none}
.orb:before{content:"";position:absolute;width:53%;aspect-ratio:1;right:22%;top:6%;border-radius:50%;background:radial-gradient(circle at 31% 25%,#fafcff 0%,#a8c4ff 25%,#708df8 52%,#424de1 88%);box-shadow:0 21px 42px #4d56d95c}
.orb i{position:absolute;left:5%;top:26%;width:88%;height:40%;border:1px solid #faffff;border-radius:50%;rotate:-25deg}
.orb i:nth-of-type(2){rotate:-35deg}.orb i:nth-of-type(3){rotate:13deg;border-style:dashed}
.orb span{position:absolute;font-size:50px;left:12%;top:17%;text-shadow:0 3px 10px #6889f1}
.orb span:nth-child(2){left:79%;top:9%;font-size:25px}.orb span:nth-child(3){left:74%;top:64%;font-size:29px}
.dashboard{display:grid;grid-template-columns:minmax(0,1fr) 311px;gap:19px;align-items:start}
.dashboard>div{min-width:0}
.card{border:1px solid var(--line);border-radius:18px;background:white;box-shadow:0 3px 10px #294e8b08;overflow:hidden}
.section-head{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:19px 20px}
h2{font-size:23px;letter-spacing:-.045em;line-height:1.13}
.section-head p{font-size:13px;margin-top:6px}
.compact{gap:4px;justify-content:flex-end}
.compact button{padding:7px 9px}
.stats{padding:0 17px 17px}.stats .section-head{padding-inline:0}
.stats-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e9eeff;color:var(--blue);font-weight:800}
.score,.stats-empty,.hint{border:1px solid var(--line);border-radius:11px;padding:12px;margin-bottom:8px}
.score.best{background:#eef1ff;border-color:#dee5ff}
.score-title{display:flex;justify-content:space-between;gap:8px}
.score-title div small{display:block;margin-top:2px;overflow-wrap:anywhere}
.score-title strong{color:#3545b6;white-space:nowrap}
.score .bar{height:5px;background:#dfe6f9;border-radius:99px;overflow:hidden;margin:9px 0 6px}
.bar i{display:block;height:100%;background:#5868ec;border-radius:99px}
.stats-empty p,.hint p{font-size:12px;line-height:1.5;margin-top:6px}.hint{background:#f5f8fe;margin:12px 0 0}.hint b{font-size:13px}
.editor,.admin{padding:19px;margin-top:16px}.editor .section-head,.admin .section-head{padding:0 0 15px}
.editor label,.admin label,dialog label,.event-switch{display:grid;gap:6px;font-size:13px;font-weight:700}
input,select{border:1px solid #d5deef;border-radius:9px;min-height:40px;background:white;padding:7px 10px;color:#18254a;min-width:0;width:100%}
form#trip-form,.admin form{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:13px 0}
details{border-top:1px solid var(--line);padding:12px 0;font-size:13px}
details p{margin:9px 0}summary{cursor:pointer;font-weight:730}
.tripline{display:flex;justify-content:space-between;align-items:center;gap:8px}
.check{display:flex!important;align-items:center}.check input{width:auto;min-height:auto}
.pending{color:#79550d;background:#fff2d6;padding:6px 8px;border-radius:8px;font-size:12px}
.event-switch{max-width:300px;margin-bottom:16px}
.confirmed{border:1px solid #bce9d9;background:#e5f7ef;border-radius:12px;margin-bottom:15px;padding:13px}
.admin h1{font-size:36px}.admin h2{margin-top:19px}
footer{display:flex;justify-content:space-between;gap:12px;padding-block:24px;color:var(--muted);font-size:12px}
dialog{border:1px solid var(--line);border-radius:18px;max-width:min(420px,calc(100% - 28px));padding:22px;color:inherit}
dialog::backdrop{background:#18254a80}
dialog form{display:grid;gap:12px}dialog p{font-size:13px;line-height:1.5}
.dialog-head{display:flex;justify-content:space-between;align-items:center}.error{color:#aa2942}
#toast{position:fixed;bottom:18px;left:50%;translate:-50% 0;width:max-content;max-width:90vw;border-radius:10px;background:#18254a;color:white;padding:12px 16px;z-index:4;display:none;font-size:14px}
#toast.shown{display:block}
@media(max-width:960px){.wrap{padding-inline:23px}.dashboard{grid-template-columns:minmax(0,1fr) 255px}.orb{opacity:.75}}
@media(max-width:720px){.wrap{padding-inline:14px}.top{min-height:62px}.hero{margin-top:16px;padding:24px 19px 55px;min-height:235px}.hero-copy{max-width:100%}.hero h1{font-size:clamp(36px,9vw,60px)}.hero p{font-size:14px}.orb{right:-12%;top:34%;width:61%;height:72%;opacity:.34}.hero-date{right:auto;left:19px;bottom:13px}.dashboard{grid-template-columns:minmax(0,1fr)}.section-head{padding:15px 13px}.section-head h2{font-size:20px}}
.tile-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;padding:0 19px}
.weekday{text-align:center;font-size:12px;color:var(--muted);padding:4px 0}
.date-tile{min-width:0;min-height:70px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;background:#f6f8fd;color:#18254a;border:1px solid var(--line);border-radius:10px;padding:7px;font-size:13px}
.date-tile:hover{border-color:#8e9afa}
.date-tile.in-range{border-color:#5868ec;background:#e5eaff}
.date-tile.own-free{border-bottom:3px solid #52aa90}
.date-tile.own-busy{border-bottom:3px solid #b96c8d}
.tile-count{background:#d9f3eb;color:#145947;padding:2px 4px;border-radius:5px;font-size:10px}
.own-status{font-size:10px}
.calendar-guide{margin:13px 19px;font-size:13px}
#range-form{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-bottom:12px}
#range-form label{flex:0 1 145px}
.ranges{display:flex;flex-wrap:wrap;list-style:none;gap:6px;padding:0;margin:0 0 14px}
.ranges li{display:flex;align-items:center;gap:4px;background:#e7f7f1;border-radius:8px;font-size:12px;padding-left:8px}
.ranges .busy{background:#f4e7ed}
.ranges button{min-height:30px;padding:4px 8px}
@media(max-width:540px){.tile-calendar{padding-inline:10px;gap:4px}.date-tile{min-height:60px;padding:4px;font-size:11px}.own-status span,.tile-count span{display:none}.calendar-guide{margin-inline:10px}#range-form label{flex:1 1 110px}}
