/* Журнал временного дрейфа. Слой ограничен этой страницей. */
.drift-page .drift-hero{padding-block:clamp(2.5rem,6vw,5rem) 2rem;min-height:0}
.drift-page .drift-hero h1{font-size:clamp(2rem,4.8vw,3.9rem);line-height:1.12;max-width:24ch;text-wrap:balance}
.drift-page .drift-hero .lede{max-width:64ch;line-height:1.7}
.drift-page .drift-work{padding-top:1.5rem}
.drift-page .drift-workspace{max-width:1140px;width:100%;margin-inline:auto;min-width:0}
.drift-runtime{display:block;border:0;padding:0;margin:0;min-width:0}
.drift-steps{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.5rem}
.drift-steps a{display:inline-flex;min-height:44px;align-items:center;padding:.6rem .85rem;border-bottom:2px solid var(--line);text-decoration:none;font-weight:700}
.drift-page .drift-panel{padding:clamp(1rem,3vw,2rem);border:1px solid var(--line);border-radius:4px;background:var(--panel);margin-bottom:1.5rem;min-width:0;scroll-margin-top:110px}
.drift-page .drift-panel header{margin-bottom:1.25rem}
.drift-page .drift-panel h2{font-size:clamp(1.5rem,2.6vw,2rem);line-height:1.25;margin:.3rem 0 .75rem;letter-spacing:-.01em}
.drift-page .drift-panel h3{font-size:1.18rem;line-height:1.4;margin:.4rem 0 .7rem;overflow-wrap:anywhere}
.drift-page .drift-panel p{max-width:72ch}
.drift-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.3rem}
.drift-grid>.field:last-child:nth-child(odd){grid-column:1/-1}
.drift-page .field{display:flex;flex-direction:column;gap:.5rem;min-width:0;margin-bottom:1.2rem}
.drift-page .field label,.drift-page .field>span{font:inherit;font-weight:700;line-height:1.45;text-transform:none;letter-spacing:normal}
.drift-page .drift-required{color:var(--muted);font-size:.88em;font-weight:400;white-space:normal}
.drift-page input:not([type=checkbox]),.drift-page textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:48px;font:inherit;font-size:1rem;line-height:1.6;padding:.75rem .9rem;color:var(--ink);background:var(--bg);border:1px solid var(--muted);border-radius:3px}
.drift-page textarea{resize:vertical;min-height:6rem}
.drift-page input[type=datetime-local]{min-width:0;display:block}
.drift-page input[type=file]{padding:.65rem;line-height:1.8}
.drift-page input[type=file]::file-selector-button{font:inherit;padding:.45rem .65rem;margin-right:.6rem;border:1px solid currentColor;border-radius:3px}
.drift-page .check-line{display:flex;align-items:start;gap:.7rem;padding:.75rem 0;line-height:1.6;cursor:pointer}
.drift-page input[type=checkbox]{width:22px;height:22px;margin:.18rem 0 0;flex:none}
.drift-page .drift-help{font-size:.94rem;line-height:1.7;color:var(--muted);margin:.3rem 0 .8rem;overflow-wrap:anywhere}
.drift-page .actions{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;margin:1rem 0 .5rem}
.drift-page .button{min-height:44px;line-height:1.45;padding:.7rem 1rem;white-space:normal;max-width:100%}
.drift-page button:disabled{opacity:.5;cursor:wait}
.drift-page :is(a,button,input,textarea,summary):focus-visible{outline:3px solid var(--amber);outline-offset:3px}
.drift-page [aria-invalid=true]{border:2px solid var(--red)}
.drift-page .drift-fieldset{border:1px solid var(--line);padding:1.25rem;margin-bottom:1.5rem;min-width:0;border-radius:3px}
.drift-page .drift-fieldset legend{font-size:1.05rem;font-weight:700;padding:0 .45rem}
.drift-privacy,.drift-startup{padding:1rem 1.25rem;background:var(--bg-soft);border:1px solid var(--line);line-height:1.7;margin:0 0 1.2rem;max-width:none}
.drift-startup p{margin:0}
.drift-page .drift-feedback:not(:empty){padding:1rem 1.15rem;border-left:3px solid var(--amber);background:var(--bg-soft);line-height:1.7;margin:1rem 0;overflow-wrap:anywhere;max-width:none}
.drift-feedback ul{padding-left:1.2rem;margin:.5rem 0 0}
.drift-feedback a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline}
.drift-feedback h3{margin:0 0 .5rem}
.drift-page .metric-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:1rem 0;min-width:0}
.drift-page .metric-board article{padding:1rem;border:1px solid var(--line);min-width:0}
.drift-page .metric-board strong{font-size:1.45rem;line-height:1.35;overflow-wrap:anywhere}
.drift-page .metric-board span,.drift-page .metric-board small{display:block;line-height:1.6}
.drift-page .metric-board small{font-size:.85rem;margin-top:.3rem;color:var(--muted)}
.drift-page .snapshot-list{display:grid;gap:1.2rem;margin-block:1.4rem}
.drift-page .snapshot-card{padding:1.4rem;border:1px solid var(--line);border-radius:4px;min-width:0;background:var(--bg)}
.drift-page .snapshot-card header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 .6rem}
.drift-page .snapshot-card h3{max-width:64ch}
.drift-page .snapshot-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem 1.4rem}
.drift-page .snapshot-card dl>div{display:block;border-bottom:1px solid var(--line);padding:.5rem 0;min-width:0}
.drift-page .snapshot-card dt{font-size:.87rem;color:var(--muted);margin-bottom:.2rem}
.drift-page .snapshot-card dd{margin:0;overflow-wrap:anywhere;font-size:1rem;line-height:1.65}
.drift-page .snapshot-card pre{font:inherit;font-size:1rem;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;background:var(--bg-soft);padding:1rem;max-width:100%;overflow:auto;max-height:32rem}
.drift-page .snapshot-card .drift-hash{font-size:.85rem;color:var(--muted);overflow-wrap:anywhere;line-height:1.7}
.drift-page .snapshot-card li{line-height:1.7;overflow-wrap:anywhere;margin:.3rem 0}
.drift-page .snapshot-card h4{font-size:1.08rem;margin:1rem 0 .5rem;text-transform:none;letter-spacing:normal}
.drift-page summary{padding:.75rem 0;line-height:1.5;min-height:44px;cursor:pointer;overflow-wrap:anywhere}
.drift-page details{min-width:0}
.drift-page .drift-local,.drift-technical{margin-top:1.25rem;padding:.5rem 0;border-top:1px solid var(--line)}
.drift-technical{padding:1rem 1.3rem;border:1px solid var(--line);line-height:1.75}
.drift-transfer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem}
.drift-transfer>div{min-width:0}
.drift-undo{padding:1rem;border:1px solid var(--line);margin-top:1rem}
.drift-dialog{padding:0;width:min(620px,calc(100vw - 2rem));max-width:none;max-height:calc(100dvh - 2rem);overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:5px;background:var(--bg);color:var(--ink);box-shadow:0 12px 80px #0008}
.drift-dialog::backdrop{background:#000a}
.drift-dialog-inner{padding:clamp(1rem,4vw,2rem)}
.drift-dialog h2{font-size:1.55rem;line-height:1.3;margin:0 0 1rem;max-width:28ch;overflow-wrap:anywhere}
.drift-dialog p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;margin-bottom:1rem}
.drift-page [hidden]{display:none!important}
@media(max-width:700px){
 .drift-grid,.drift-transfer{grid-template-columns:minmax(0,1fr);gap:.7rem}
 .drift-page .drift-workspace{padding-inline:1rem}
 .drift-page .drift-panel{padding:1rem}
 .drift-page .drift-fieldset{padding:.85rem}
 .drift-page .snapshot-card{padding:1rem}
 .drift-page .snapshot-card dl{grid-template-columns:minmax(0,1fr)}
 .drift-page .metric-board{grid-template-columns:repeat(2,minmax(0,1fr))}
 .drift-page .metric-board article{padding:.8rem}
 .drift-steps a{flex:1 1 43%;padding:.55rem .3rem;font-size:.94rem}
 .drift-page .actions .button{flex:1 1 auto}
 .drift-page .drift-help{font-size:.92rem}
}
@media print{.drift-page .site-header,.drift-page .site-footer,.drift-page .drift-steps,.drift-page .actions,.drift-page .drift-startup,.drift-dialog,.drift-page #drift-parameters,.drift-page #drift-entry,.drift-page #drift-files,.drift-page .drift-undo{display:none!important}.drift-page .drift-panel{border:0;box-shadow:none;background:white;color:black}.drift-page .snapshot-card{break-inside:auto;background:white;color:black}.drift-page .snapshot-card pre{max-height:none;overflow:visible;background:white;color:black}.drift-page .drift-hero{padding:0}.drift-page .metric-board{grid-template-columns:repeat(3,1fr)}}
