.nav-burger, .rail-burger { display: none; }
@media (max-width: 980px) {
nav.nav { flex-wrap: wrap; row-gap: 0; }
.nav-burger { display: inline-grid; place-items: center; flex: none; order: 6; width: 42px; height: 42px; margin-left: 6px; border-radius: 11px; border: 1px solid var(--line-2); background: none; color: var(--ink); cursor: pointer; }
.nav-burger svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
nav.nav .links { order: 10; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 8px 0 4px; }
nav.nav.open .links { display: flex; animation: rise .18s cubic-bezier(.2, .8, .2, 1); }
nav.nav.open .links a { padding: 13px 12px; border-radius: 10px; font-size: 16px; }
nav.nav.open .links a:hover, nav.nav.open .links a.active { background: var(--surface-2); }
nav.nav .logo { margin-right: auto; }
}
@media (max-width: 560px) {
nav.nav > .btn { display: none; }
nav.nav.open > .btn { display: inline-flex; order: 11; flex-basis: 100%; justify-content: center; margin: 4px 0 8px; padding: 13px 16px; }
nav.nav .logo { font-size: 17px; }
.site-bar { font-size: 13px; padding: 8px 12px; }
}
@media (max-width: 900px) {
.shell { display: block; }
.rail { position: sticky !important; top: 0; z-index: 70; height: auto !important; max-height: none; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px !important; border-right: 0; border-bottom: 1px solid var(--line); background: var(--bg); backdrop-filter: none; }
.rail > .logo { margin-right: auto; padding: 0; }
.rail .rail-lang { position: static; order: 2; }
.rail-burger { display: inline-flex; align-items: center; gap: 8px; order: 3; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: none; color: var(--ink); font: 600 13.5px var(--font); cursor: pointer; }
.rail-burger svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.rail:not(.open) > *:not(.logo):not(.rail-burger):not(.rail-lang) { display: none !important; }
.rail.open { position: fixed !important; inset: 0; z-index: 90; align-content: flex-start; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 28px !important; }
.rail.open > *:not(.logo):not(.rail-burger):not(.rail-lang) { order: 5; flex-basis: 100%; width: 100%; }
.rail.open nav { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 3px; width: 100%; }
.rail.open nav button { width: 100% !important; padding: 13px 12px !important; font-size: 15px; }
.rail.open nav button em { display: inline !important; }
.rail.open .rail-sec:not([hidden]) { display: block !important; width: 100%; }
.rail.open .rail-title { display: block !important; margin: 12px 0 6px; }
.rail.open .menu-search { margin: 4px 0 10px; }
.rail.open .menu-search input { font-size: 16px; padding: 11px 0; }
.rail.open .menu-results button { padding: 12px; }
.rail.open .rail-link, .rail.open .rail-guilds > * { padding-top: 11px; padding-bottom: 11px; }
body.menu-open { overflow: hidden; }
.board { padding: 18px 14px 40px !important; min-width: 0; }
.head { flex-wrap: wrap; gap: 12px; }
.head .tools { flex-wrap: wrap; width: 100%; }
.head h1 { font-size: 22px; }
.split, .split.three, .desk, .d-grid { grid-template-columns: minmax(0, 1fr) !important; }
.panel { min-width: 0; padding-left: 16px; padding-right: 16px; }
.stack, .stack > *, .fields, .field, .field > * { min-width: 0; }
.actions-row, .row-actions, label.inline, .tools { flex-wrap: wrap; }
.actions-row > input:not(.search):not([type="checkbox"]):not([type="file"]) { max-width: none; flex: 1 1 100%; }
.actions-row .pick, .tools .pick, label .pick, .d-add .pick { flex: 1 1 160px; min-width: 0; width: auto; }
.field { flex-direction: column; align-items: stretch !important; gap: 10px; }
.field .ctl { width: 100%; max-width: none; justify-content: flex-start; }
.field .ctl.row-actions > input { flex: 1 1 100%; min-width: 0; }
.row { flex-wrap: wrap; row-gap: 8px; }
.row .txt { flex: 1 1 60%; min-width: 0; }
.btn.small { padding: 9px 13px; }
.guilds { grid-template-columns: minmax(0, 1fr) !important; }
.preview { position: static !important; width: 100% !important; max-height: none !important; margin-top: 16px; }
.drawer { width: 100% !important; max-width: none !important; }
.savebar, #savebar { left: 10px !important; right: 10px !important; width: auto !important; flex-wrap: wrap; }
.ask { max-width: none; }
.chat { height: calc(100vh - 210px) !important; min-height: 320px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.attempts, .log, .rows { min-width: 0; }
pre, code { white-space: pre-wrap; overflow-wrap: anywhere; }
}
@media (max-width: 620px) {
.tiles, .tiles.four, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
.tile { padding: 12px; }
.panel { padding-left: 13px; padding-right: 13px; border-radius: 12px; }
.board { padding: 14px 10px 36px !important; }
.row .btn.small { flex: 1 1 auto; justify-content: center; }
.wz-opt, .mbc-btn { padding-top: 13px; padding-bottom: 13px; }
}
@media (min-width: 621px) and (max-width: 900px) {
.guilds { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.tiles, .tiles.four { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) and (pointer: coarse) {
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
}
@media (max-width: 900px) {
input, select, textarea { max-width: 100%; }
img, video, iframe { max-width: 100%; }
}
@media (max-width: 900px) {
footer { padding: 44px 0 36px; }
footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 24px; }
footer .cols > div:first-child { grid-column: 1 / -1; }
footer .fine { flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-links { gap: 10px 18px; }
}
@media (max-width: 420px) {
footer .cols { grid-template-columns: minmax(0, 1fr) !important; }
}