:root {
  --bg: #f3f5f9; --card: #fff; --text: #1b2433; --muted: #6b7587; --line: #e3e7ef;
  --primary: #2f4bd6; --primary-d: #2339b0; --side: #141b2d; --side-t: #aab3c8; --side-a: #243055;
  --green: #16a34a; --yellow: #d4a106; --orange: #ea6c0a; --red: #dc2626; --purple: #7c3aed; --blue: #2563eb;
  --radius: 12px; --shadow: 0 1px 2px rgba(20,27,45,.06), 0 4px 14px rgba(20,27,45,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
body.no-scroll { overflow: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.pos { color: var(--green); } .neg { color: var(--red); }
.bold { font-weight: 600; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-t); padding: 14px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; padding: 6px 10px 16px; letter-spacing: .3px; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); display: grid; place-items: center; font-size: 16px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--side-t); margin-bottom: 2px; text-decoration: none; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: var(--side-a); color: #fff; }
.nav .ico { width: 20px; text-align: center; }
.nav .badge-n { margin-left: auto; background: var(--red); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .search { flex: 1; max-width: 420px; }
.top .search input { width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.menu-btn { display: none; }
.content { padding: 22px 24px 60px; max-width: 1500px; width: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin-right: auto; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; }

.icon-btn { position: relative; background: none; border: 0; font-size: 19px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.icon-btn:hover { background: var(--bg); }
.icon-btn .dot { position: absolute; top: 0; right: 0; background: var(--red); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 9px; background: none; border: 0; }
.user-chip:hover { background: var(--bg); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.dropdown { position: absolute; right: 16px; top: 52px; width: 380px; max-width: calc(100vw - 24px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(20,27,45,.18); z-index: 40; max-height: 70vh; overflow: auto; }
.dropdown .dd-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 600; position: sticky; top: 0; background: var(--card); }
.notif { padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; display: block; color: inherit; text-decoration: none; }
.notif:hover { background: var(--bg); text-decoration: none; }
.notif.unread { background: #eef2ff; }
.notif.l-danger { border-left: 3px solid var(--red); } .notif.l-warn { border-left: 3px solid var(--orange); }
.notif time { display: block; font-size: 11px; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin-right: auto; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: block; color: inherit; }
a.stat:hover { text-decoration: none; border-color: var(--primary); }
.stat .lbl { font-size: 12px; color: var(--muted); text-transform: none; }
.stat .val { font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: -.3px; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.warn .val { color: var(--red); }
.stat.good .val { color: var(--green); }
.stat.accent { border-left: 4px solid var(--primary); }
.stat.accent.red { border-left-color: var(--red); } .stat.accent.green { border-left-color: var(--green); }
.stat.accent.orange { border-left-color: var(--orange); } .stat.accent.purple { border-left-color: var(--purple); }

/* ---------- Buttons ---------- */
.btn { border: 1px solid var(--line); background: var(--card); padding: 7px 14px; border-radius: 9px; cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { background: var(--bg); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-d); }
.btn-ok { background: var(--green); color: #fff; border-color: var(--green); } .btn-ok:hover { background: #12873d; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); } .btn-danger:hover { background: #b91c1c; }
.btn-warn { background: #fff7e6; border-color: #f3cf8a; color: #8a5a00; }
.btn-sm { padding: 3px 9px; font-size: 12.5px; border-radius: 7px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--primary); }
.btn-link { background: none; border: 0; color: var(--primary); cursor: pointer; padding: 0; }
.btn-link.danger { color: var(--red); }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-gray { background: #eceff5; color: #4a5468; } .b-purple { background: #ede9fe; color: #5b21b6; }
.b-yellow { background: #fef6d6; color: #8a6700; } .b-blue { background: #dbeafe; color: #1e40af; }
.b-orange { background: #ffe8d1; color: #9a3d00; } .b-green { background: #dcfce7; color: #166534; }
.b-green-solid { background: #166534; color: #fff; } .b-red { background: #fee2e2; color: #991b1b; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfd; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr[data-href] { cursor: pointer; }
.tbl tbody tr[data-href]:hover td { background: #f6f8ff; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl tfoot td { font-weight: 700; background: #fafbfd; border-top: 2px solid var(--line); }
.tbl tr.row-over td { background: #fff3f3; }
.tbl tr.row-low td { background: #fff8ea; }
.empty { padding: 26px; text-align: center; color: var(--muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid .full, .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.field small { color: var(--muted); font-size: 11.5px; }
.req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea, .inp, .sel {
  width: 100%; padding: 8px 11px; border: 1px solid #cfd6e4; border-radius: 9px; background: #fff; min-width: 0;
}
.inp, .sel { width: auto; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus, .sel:focus { outline: 2px solid #c7d2fe; border-color: var(--primary); }
.field.check { flex-direction: row; align-items: center; gap: 8px; }
.field.check input { width: auto; }
.field.check span { font-size: 14px; color: var(--text); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.note { background: #f1f5ff; border: 1px solid #d6e0ff; border-radius: 9px; padding: 8px 12px; margin: 0; font-size: 13px; color: #34447f; }
.note.warn { background: #fff7e6; border-color: #f3cf8a; color: #7a5200; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 20px; padding: 4px 12px; cursor: pointer; font-size: 13px; }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.items-edit .it { display: grid; grid-template-columns: 2.4fr 1.1fr .8fr 1.4fr 28px; gap: 6px; margin-bottom: 6px; align-items: center; }
.items-edit .it.head { font-size: 11.5px; color: var(--muted); }
.items-edit input { width: 100%; padding: 7px 8px; border: 1px solid #cfd6e4; border-radius: 8px; min-width: 0; }
.items-edit .rm { border: 0; background: none; color: var(--red); font-size: 18px; cursor: pointer; }
.items-total { text-align: right; margin-top: 8px; font-weight: 600; }

/* ---------- Modal / toast ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(15,22,40,.5); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 14px; z-index: 100; overflow-y: auto; }
.modal { background: var(--card); border-radius: 14px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.modal-head .x { border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 18px 20px 20px; }
.confirm-text { margin: 0 0 16px; font-size: 15px; }
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { padding: 10px 16px; border-radius: 10px; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: 380px; }
.t-ok { background: #166534; } .t-err { background: #b91c1c; } .t-info { background: #1e3a8a; }

/* ---------- Deadline ---------- */
.dl { min-width: 150px; }
.dl-bar { height: 7px; background: #e8ecf4; border-radius: 4px; overflow: hidden; }
.dl-bar i { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.dl-text { font-size: 12px; display: block; margin-top: 3px; font-weight: 500; }
.dl-green i { background: var(--green); } .dl-green .dl-text { color: #166534; }
.dl-yellow i { background: #eab308; } .dl-yellow .dl-text { color: #8a6700; }
.dl-orange i { background: var(--orange); } .dl-orange .dl-text { color: #9a3d00; }
.dl-red i { background: var(--red); } .dl-red .dl-text { color: #991b1b; }
.dl-overdue i { background: #7f1d1d; } .dl-overdue .dl-text { color: #fff; background: var(--red); padding: 1px 7px; border-radius: 5px; display: inline-block; font-weight: 700; }
.dl-done i { background: var(--green); } .dl-done .dl-text { color: #166534; }
.dl-cancelled i { background: #94a3b8; }

/* ---------- Order flow ---------- */
.flow { display: flex; gap: 0; overflow-x: auto; margin: 4px 0 2px; }
.flow .step { flex: 1; min-width: 74px; font-size: 13px; text-align: center; padding: 11px 6px; background: #eef1f7; color: #7a8499; font-weight: 600; position: relative; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); margin-right: -6px; border: 0; cursor: default; }
.flow .step:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.flow .step.done { background: #cfe9d9; color: #166534; }
.flow .step.cur { background: var(--primary); color: #fff; font-size: 15px; }
.flow .step.clickable { cursor: pointer; }
.flow .step.clickable:hover { filter: brightness(.95); }
.flow.cancelled .step { opacity: .5; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.tz { white-space: pre-wrap; background: #f8f9fc; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.pre { white-space: pre-wrap; }
.dept-title { font-weight: 700; margin: 14px 0 6px; display: flex; align-items: center; gap: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 7px 0 7px 16px; border-left: 2px solid var(--line); position: relative; margin-left: 4px; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.timeline time { color: var(--muted); font-size: 12px; margin-right: 6px; }
.design-card { border: 1px solid var(--line); border-radius: 11px; padding: 12px; display: grid; grid-template-columns: 150px 1fr; gap: 14px; margin-bottom: 10px; background: #fff; }
.design-card .thumb { width: 150px; height: 110px; border-radius: 8px; background: #f0f2f7; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 12px; text-align: center; }
.design-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.design-card.latest { border-color: #b9c6ff; box-shadow: 0 0 0 2px #e8edff; }
.approvals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.pay-big { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.bars .bar-row { display: grid; grid-template-columns: 130px 1fr 80px; gap: 10px; align-items: center; margin: 6px 0; font-size: 13px; }
.bars .track { background: #eaeef6; border-radius: 6px; height: 14px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--primary); border-radius: 6px; }
.bars .fill.out { background: #f59e0b; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 10px; overflow-x: auto; }
.chart .col { flex: 1; min-width: 18px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart .pair { display: flex; align-items: flex-end; gap: 2px; height: calc(100% - 18px); width: 100%; justify-content: center; }
.chart .pair i { display: block; width: 45%; max-width: 16px; background: var(--primary); border-radius: 3px 3px 0 0; min-height: 1px; }
.chart .pair i.out { background: #f59e0b; }
.chart .lb { font-size: 10px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; background: var(--primary); }
.legend i.out { background: #f59e0b; }
.month-nav { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.month-nav button { border: 0; background: none; cursor: pointer; padding: 5px 10px; border-radius: 8px; font-size: 16px; }
.month-nav button:hover { background: var(--bg); }
.month-nav b { min-width: 130px; text-align: center; }
.sal-eq { display: grid; gap: 6px; max-width: 460px; }
.sal-eq .ln { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.sal-eq .ln.total { border-bottom: 2px solid var(--text); font-weight: 700; font-size: 16px; }
.sal-eq .ln.rest { font-weight: 800; font-size: 17px; border: 0; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, #141b2d, #2f4bd6); }
.login-card { background: #fff; border-radius: 16px; padding: 30px 28px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-card h1 { margin-bottom: 4px; } .login-card p { margin: 0 0 18px; color: var(--muted); }
.login-card .field { margin-bottom: 12px; }
.login-card .btn { width: 100%; justify-content: center; padding: 10px; margin-top: 4px; }
.err { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 8px; }

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); }
  .split, .approvals { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; width: 250px; left: -260px; transition: left .2s; }
  .side.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .menu-btn { display: inline-block; }
  .content { padding: 16px 12px 60px; } .top { padding: 8px 12px; }
  .g2, .g3, .g4, .form-grid { grid-template-columns: 1fr; }
  .design-card { grid-template-columns: 1fr; }
  .items-edit .it { grid-template-columns: 1fr 1fr; }
  .items-edit .it.head { display: none; }
  .user-chip .nm { display: none; }
}
@media print { .side, .top, .btn, .toolbar { display: none !important; } .shell { display: block; } }

/* ---------- Иконкалар ---------- */
.ic { width: 1.15em; height: 1.15em; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; }
.nav .ico { display: inline-grid; place-items: center; }
.nav .ico .ic { width: 18px; height: 18px; }
.brand .logo .ic { width: 18px; height: 18px; stroke: #fff; }
.icon-btn .ic { width: 20px; height: 20px; }
.btn .ic { width: 1.05em; height: 1.05em; }
.btn-link .ic, .btn-sm .ic { width: 1em; height: 1em; }
.page-head h1 .ic { width: 1.05em; height: 1.05em; margin-right: 4px; color: var(--primary); }
.card-head h2 .ic, .card-head h3 .ic, .page-head h2 .ic { color: var(--primary); margin-right: 3px; }
.flow .step .ic { display: none; }
.dl-text .ic { width: 1em; height: 1em; }
.empty .ic { width: 1.4em; height: 1.4em; }
.notif .ic { width: 15px; height: 15px; margin-right: 6px; }
.notif.l-danger .ic { color: var(--red); } .notif.l-warn .ic { color: var(--orange); } .notif.l-info .ic { color: var(--primary); }
.thumb .ic { width: 28px; height: 28px; display: block; margin: 0 auto 4px; }

/* ---------- Қўлланма ---------- */
.help { display: grid; grid-template-columns: 270px 1fr; gap: 16px; align-items: start; }
.help-toc { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 10px; }
.help-toc a { padding: 6px 10px; border-radius: 8px; color: var(--text); font-size: 13px; text-decoration: none; }
.help-toc a:hover { background: var(--bg); color: var(--primary); }
.help-body section.card { margin-top: 0; margin-bottom: 16px; scroll-margin-top: 72px; }
.help-body h2 { margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.help-body h3 { margin: 14px 0 6px; }
.help-body ul { margin: 6px 0; padding-left: 20px; } .help-body li { margin: 4px 0; }
.help-body p { margin: 8px 0; }
.help-body .note { margin: 10px 0; }
.h-roles { display: flex; gap: 6px; flex-wrap: wrap; margin: -2px 0 10px; }
.h-flow { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.h-flow span { background: #eef2ff; color: #34447f; padding: 5px 12px; border-radius: 20px; font-weight: 600; font-size: 13px; }
.h-flow span:not(:last-child)::after { content: '→'; margin-left: 10px; color: var(--muted); }
.h-step { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.h-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.h-formula { background: #f8f9fc; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 9px; padding: 12px 14px; line-height: 1.9; }
.h-legend { display: grid; gap: 6px; } .h-legend i { display: inline-block; width: 28px; height: 8px; border-radius: 4px; margin-right: 10px; vertical-align: middle; }
@media (max-width: 1000px) { .help { grid-template-columns: 1fr; } .help-toc { position: static; max-height: none; } }
@media print { .help { display: block; } .help-toc { display: none; } .card { box-shadow: none; break-inside: avoid; } }

/* ---------- Телефон: контент экрандан чиқиб кетмаслиги учун ---------- */
.split > *, .grid > *, .approvals > *, .help > *, .form-grid > * { min-width: 0; }
.card, .tbl-wrap, .content, .main { max-width: 100%; }
.tbl-wrap { -webkit-overflow-scrolling: touch; }
@media (max-width: 820px) {
  .flow { max-width: 100%; }
  .page-head { gap: 8px; }
  .page-head h1 { font-size: 20px; }
  .modal { max-width: 100%; }
  .modal-wrap { padding: 2vh 8px; }
  .dropdown { right: 8px; left: 8px; width: auto; }
  .btn { padding: 9px 14px; }
  .btn-sm { padding: 6px 11px; }
}
