@font-face {
  font-family:Inter;
  src:url(./inter-latin.woff2) format("woff2");
  font-style:normal;
  font-weight:300 800;
  font-display:swap;
}
@font-face {
  font-family:Inter;
  src:url(./inter-cyrillic.woff2) format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
  font-style:normal;
  font-weight:300 800;
  font-display:swap;
}
:root {
  --ink:#1a2339;
  --muted:#5e6b82;
  --line:#dee3ed;
  --outline:#cdd4e1;
  --ground:#f5f7fb;
  --primary:#354bdd;
  --soft:#e7ebff;
  --red:#a92239;
  --shadow:0 1px 5px #14204505;
  color-scheme:light;
}
* { box-sizing:border-box; }
body {
  margin:0;
  background:var(--ground);
  color:var(--ink);
  font:400 1rem/1.55 Inter,sans-serif;
  letter-spacing:-.012em;
  overflow-wrap:anywhere;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,p,ul,fieldset { margin:0; }
h1,h2,h3,strong { font-weight:650; line-height:1.22; }
h1 { font-size:2rem; letter-spacing:-.046em; }
h2 { font-size:1.32rem; letter-spacing:-.027em; }
h3 { font-size:1.04rem; }
strong { font-weight:580; }
small,.hint,.muted,.loading { color:var(--muted); }
small,.hint { font-size:.88rem; font-weight:400; letter-spacing:normal; }
.hint { margin-top:12px; }
code { color:#2542aa; font-size:.93rem; }
.pre, del, ins { white-space:pre-wrap; overflow-wrap:anywhere; }
del, ins { display:block; border-radius:8px; padding:6px 10px; text-decoration:none; }
ins { background:#dcf7ef; }
del { background:#fdecf2; }
.loading,.empty { padding:34px 20px; text-align:center; color:var(--muted); }
a { color:var(--primary); text-decoration:none; }
a:hover { text-decoration:underline; }
button,input,select,textarea { color:inherit; font:inherit; letter-spacing:inherit; }
button,.button {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 16px; min-height:42px; max-width:100%;
  color:var(--ink); background:white; border:1px solid var(--outline);
  border-radius:10px; cursor:pointer; text-align:center;
  font-weight:540; font-size:.94rem; line-height:1.32;
  transition:background .15s,box-shadow .15s;
}
button:hover,.button:hover { text-decoration:none; background:#f0f3fb; }
.primary { background:var(--primary); border-color:var(--primary); color:white; }
.primary:hover { background:#273fc8; color:white; }
.big { min-height:48px; font-size:1rem; }
.small { font-size:.875rem; padding:7px 12px; min-height:34px; }
.flat { border-color:transparent; background:transparent; }
.danger { color:var(--red); }
.chosen,.accent { color:#2c43bb; }
.chosen { background:var(--soft); }
button:disabled { opacity:.6; cursor:default; }
.icon { width:40px; height:40px; min-height:0; flex:none; padding:8px; }
.ic { stroke:currentColor; fill:none; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.7; flex:none; }
:focus-visible { outline:3px solid #83a9ff; outline-offset:2px; }
input,textarea,select {
  display:block; max-width:100%; min-width:0; background:white; border:1px solid var(--outline);
  border-radius:9px; padding:10px 12px; font-size:1rem; font-weight:430; line-height:1.45;
}
input:focus,select:focus,textarea:focus { border-color:var(--primary); outline:3px solid #354bdd1f; }
input:disabled,select:disabled,textarea:disabled { color:var(--muted); opacity:1; background-color:var(--ground); }
select {
  appearance:none; padding-inline-end:38px;
  background-image:linear-gradient(45deg,transparent 50%,#607092 50%),linear-gradient(135deg,#607092 50%,transparent 50%);
  background-position:calc(100% - 20px) center,calc(100% - 14px) center;
  background-size:6px 6px; background-repeat:no-repeat; cursor:pointer; text-overflow:ellipsis;
}
textarea { width:100%; resize:vertical; }
input[type=checkbox], input[type=radio] {
  flex:none; width:18px; height:18px; padding:0; margin:0; accent-color:var(--primary); cursor:pointer;
}
fieldset { padding:16px; min-width:0; border:1px solid var(--line); border-radius:10px; }
.field { display:flex; flex-direction:column; gap:6px; font-size:.93rem; font-weight:530; min-width:0; }
.mark,.member-choice { display:flex; align-items:center; gap:12px; cursor:pointer; }
.mark.top { align-items:flex-start; }
.mark.top input { margin-top:3px; }
summary { cursor:pointer; font-weight:540; }
details>summary~* { margin-top:12px; }
.stack { display:flex; flex-direction:column; gap:20px; }
.stack>* { min-width:0; }
.row,.actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.nowrap { flex-wrap:nowrap; }
.tight { gap:5px; }
.compact { gap:10px; }
.between { justify-content:space-between; }
.end,.actions { justify-content:flex-end; }
.actions { margin-top:8px; }
.align-bottom { align-self:end; }
.start { align-self:flex-start; }
.grow { flex:1 1 auto; min-width:0; }
input.grow { flex-basis:236px; }
.grid2,.screens { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.all { grid-column:1/-1; }
.pad,.panel,.block { padding:26px 30px; }
.panel,.block,.empty-projects {
  min-width:0; background:white; border-radius:16px; border:1px solid var(--line); box-shadow:var(--shadow);
}
.flush { padding:0; overflow:hidden; }
.folded { padding-block:16px; }
.block { padding:16px 22px; }
.scroll,.scroll-list { overflow:auto; max-height:48vh; }
.scroll-list { max-height:66vh; }
.badge {
  display:inline-flex; flex:none; align-items:center; line-height:1.35; text-align:center;
  font-weight:540; max-width:100%; font-size:.84rem; color:#4e5c73; background:#edf0f6;
  padding:5px 10px; border-radius:7px;
}
.ok,.approved { background:#def6ec; color:#15654d; }
.published,.review { background:#e8eaff; color:#3547bc; }
.badge.error { background:#ffebee; }
.warning,.exception { color:#805100; background:#fff1cf; }
.banner { padding:14px 17px; border-radius:10px; }
.banner.bad { color:var(--red); background:#fff0f3; }
.banner.warn { color:#724706; background:#fff5dc; }
.banner.note { color:#2344a3; background:#e6ecff; }
.error { color:var(--red); }
.error:empty,#save-message:empty,#notice:empty,.row:empty { display:none; }
#save-error:not(:empty),#job-status:not(:empty),#modal-error:not(:empty) { margin-bottom:20px; }
#notice {
  position:fixed; bottom:30px; left:50%; z-index:5; transform:translateX(-50%);
  width:max-content; max-width:92vw; background:var(--ink); color:white; padding:14px 20px;
  box-shadow:0 10px 30px #151c382a; border-radius:12px;
}
#notice[data-error] { background:#882434; }
.spinner { width:20px;height:20px;flex:none;border:2px solid #354bdd25;border-top-color:var(--primary);border-radius:50%;animation:spin 1s linear infinite; }
@keyframes spin { to {transform:rotate(360deg);} }
dialog { margin:auto; padding:26px; width:min(500px,94vw); border:0; border-radius:17px; color:var(--ink); }
dialog::backdrop { background:#14214980; }
dialog.large { width:min(740px,94vw); }
dialog.huge { width:min(1250px,96vw); }
.modal-head { display:flex; align-items:center; gap:16px; justify-content:space-between; margin-bottom:18px; }
.modal-head .icon { border-color:transparent; }
.entry {
  min-height:100vh; min-height:100dvh; display:grid; padding:24px; place-items:center;
  background:radial-gradient(ellipse at 70% 20%,#e7ebfd,transparent 50%), #f3f5fa;
}
.signin {
  display:grid; grid-template-columns:1fr 1fr; width:min(950px,100%); background:white;
  padding:10px; border-radius:26px; border:1px solid #dfe5f1;
  box-shadow:0 24px 70px -30px #56628542;
}
.signin-fields { display:grid; align-content:center; padding:50px clamp(28px,4vw,60px); gap:24px; }
.signin-fields .brand { margin-bottom:24px; }
.signin-fields .muted { font-size:.91rem; }
.art {
  align-self:stretch; display:grid; place-items:center; border-radius:18px;
  background:radial-gradient(ellipse at 25% 8%,#83e6ed,transparent 68%),
    radial-gradient(ellipse at 98% 95%,#995fe4,transparent 64%),#4564e7;
  overflow:hidden;
}
.brand { display:flex; align-items:center; gap:10px; font-size:1.22rem; font-weight:720; color:#111e38; letter-spacing:-.048em; white-space:nowrap; }
.brand:hover { text-decoration:none; }
.brand-team { font-weight:480; color:var(--muted); }
.sheets { display:grid; width:34px; aspect-ratio:1; position:relative; place-items:center; flex:none; }
.sheets i {
  position:absolute; display:block; width:74%; aspect-ratio:1; border-radius:18%;
  transform:translateY(21%) scaleY(.59) rotate(45deg);
  background:linear-gradient(140deg,#9c78fb,#5032af); box-shadow:inset 0 0 0 1px #ffffff65;
}
.sheets i:nth-child(2) { transform:scaleY(.59) rotate(45deg); background:linear-gradient(140deg,#5f92ff,#232db3); }
.sheets i:last-child { transform:translateY(-21%) scaleY(.59) rotate(45deg); background:linear-gradient(130deg,#76dfec,#435dee); }
.art .sheets { width:76%; }
.art .sheets i {
  border-radius:12%; background:linear-gradient(135deg,#ebe8ffdb 2%,#afa1ffcc 38%,#8064daed 65%,#d2baff);
  box-shadow:inset -2px -3px 5px #e9eeffa8,inset 9px 7px 17px #fff6,4px 5px 3px #b6aeff,45px 45px 60px #182e945e;
}
.art .sheets i:nth-child(2) { background:linear-gradient(140deg,#f0f7ff99,#4667dfeb 68%,#98b7ff); }
.art .sheets i:last-child { background:linear-gradient(145deg,#ffffffd4,#73e8ffe3 30%,#92affee6 68%,#d9d3ff); }
.tiny-art .sheets { width:76px; }
.container { width:min(1232px,94%); margin-inline:auto; }
.mast { background:white; border-bottom:1px solid var(--line); }
.mast>.container { gap:clamp(28px,4vw,60px); height:72px; }
.topnav { align-self:stretch; gap:28px; }
.topnav a { height:100%; display:flex;align-items:center;color:var(--muted); font-size:.94rem; font-weight:550; }
.topnav a.active { color:var(--primary);box-shadow:inset 0 -2px var(--primary); }
.account { margin-left:auto; position:relative; }
.account summary { list-style:none; gap:8px; }
.account summary::-webkit-details-marker { display:none; }
.profile-name { max-width:17ch; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.avatar { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:#e6ecff; color:#3049af; font-weight:600; }
.popover {
  position:absolute; right:0; background:white; z-index:3; box-shadow:0 8px 35px #142b491f;
  border:1px solid var(--line); border-radius:12px; width:240px; display:grid; gap:5px; padding:16px;
}
.popover button { justify-content:flex-start; }
.main { padding-block:44px 80px; }
.heading,.project-top { margin-bottom:30px; }
.toolbar { margin:0 0 20px; }
.search { position:relative; max-width:100%; width:420px; }
.search input { width:100%; padding-left:40px; }
.search svg { position:absolute; top:13px; left:12px;color:var(--muted); }
.columns { display:grid; grid-template-columns:1.8fr 1fr 1fr 1.2fr; padding:18px 26px; gap:20px; align-items:center; }
.list-head { font-size:.87rem; color:var(--muted); background:#fafbfe; }
.list-item,.member-row { border-top:1px solid var(--line); color:var(--ink); }
.list-item svg { color:var(--primary); }
.list-item:hover { text-decoration:none; background:#f9faff; }
.list-item>span { font-size:.94rem; color:var(--muted); }
.member-row,.page-row { padding:16px 26px; }
.member-row:first-child { border-top:none; }
.empty-projects { display:grid; gap:18px; justify-items:center; text-align:center; padding:70px 24px; }
.empty-projects p { max-width:440px; color:var(--muted); }
.workspace { display:grid; grid-template-columns:215px minmax(0,1fr); gap:30px; }
.mobile-nav { display:none; }
.sidenav { position:sticky; top:22px; align-self:start; display:flex; flex-direction:column; gap:5px; }
.nav-item {
  display:flex; align-items:center; gap:13px; padding:12px 17px; color:#47546d;
  font-size:.96rem; font-weight:530; border-radius:9px; white-space:nowrap;
}
.nav-item:hover { background:#eceffa; text-decoration:none; }
.nav-item.active { background:var(--soft); color:#2e41c1; }
.project-top h1 { font-size:1.85rem; }
#save-message { font-size:.89rem; }
.page-row,.audit-row,.history-row+.history-row,.media-row+.media-row { border-top:1px solid var(--line); }
.page-label { color:var(--ink); }
.page-label small { display:block; }
.page-row>small { flex:none; }
.audit-row { padding:18px 26px; }
.audit-row p { margin-top:4px; }
.history-row,.media-row { padding-block:13px; }
.thumbnail { width:78px; height:58px; object-fit:contain; background:var(--ground);border-radius:8px; }
.source-tile { align-self:start; }
.screens { grid-template-columns:repeat(auto-fill,minmax(min(185px,100%),1fr));gap:14px; }
.screen,.preview { display:block; text-align:left; padding:0; overflow:hidden; }
.screen span { display:block; padding:10px 13px; overflow-wrap:anywhere; }
.screen img,.preview img { width:100%; aspect-ratio:1.6; object-fit:cover; object-position:top; border-bottom:1px solid var(--line); }
.shot-frame { text-align:center;background:var(--ground); }
.shot-frame img { max-width:100%; }
.quote { border-left:3px solid var(--outline); padding-left:14px; }
@media(max-width:850px) {
  .workspace { display:block; }
  .sidenav { position:static; flex-direction:row;overflow:auto; margin-bottom:24px; padding-bottom:6px; }
  .nav-item { gap:8px; padding:10px 13px; }
  .art { display:none; }
  .signin { display:block; max-width:500px; }
  .columns { grid-template-columns:1fr auto; gap:8px; }
  .list-head { display:none; }
}
@media(max-width:640px) {
  .sidenav { display:none; }
  .mobile-nav { display:flex; align-items:center; gap:14px; margin-bottom:20px; font-weight:540; }
  .mobile-nav select { flex:1; }
  .entry { padding:0; background:white; }
  .signin { margin:auto; padding:0; border:none; box-shadow:none; }
  .signin-fields { padding:28px; }
  .container { width:92%; }
  .mast>.container { height:auto; gap:0; padding-top:13px; }
  .topnav { order:3; width:100%;height:48px; gap:24px; }
  .profile-name,.page-row>small,.list-item svg { display:none; }
  .main { padding-block:28px 50px; }
  .heading,.project-top { margin-bottom:22px; }
  h1,.project-top h1 { font-size:1.55rem; }
  h2 { font-size:1.18rem; }
  .pad,.panel,.block,dialog,.audit-row { padding:20px 18px; }
  .flush { padding:0; }
  .columns,.member-row,.page-row { padding:14px; }
  .columns>span { font-size:.8rem; }
  .columns>div:nth-child(2) { text-align:right; }
  .grid2 { grid-template-columns: minmax(0,1fr); gap:15px; }
  .screens { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .job-picker { width:100%; }
  .project-top .nowrap { flex-wrap:wrap; }
  .empty-projects { padding-block:38px; }
  .signin-fields { grid-template-columns:minmax(0,1fr); }
  .toolbar>* { width:100%; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { transition:none!important; animation:none!important; }
}
