:root {
  /* 品牌橙取自 App 图标的色调（图标左上 #FFA047 / 右下 #F96C14），
     系统里所有橙色都从这里取值，改这里等于全站换色。 */
  --brand: #F2761B;
  --brand-dark: #CE5A08;
  --brand-soft: #FFF1E4;
  --brand-line: #FFD6B0;
  --ink: #2B211A;
  --muted: #8A7A6D;
  --line: #F0E3D8;
  --amber: #B45309;
  --amber-soft: #FFF7ED;
  --green: #0F8A6B;
  --green-soft: #E7F6F1;
  --red: #C2410C;
  --red-soft: #FFF1E9;
  --bg: #FFFDFB;
  --panel: #fff;
  --side-bg: #4A3226;
  --side-line: #6B4A36;
  --side-text: #EFE3D7;
  --r: 12px;
  --shadow: 0 1px 2px rgba(120, 60, 10, .05), 0 8px 22px rgba(120, 60, 10, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 "Microsoft YaHei", system-ui, -apple-system, "PingFang SC", sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p { margin: 0; }
small, .muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

button, input, select, textarea { font: inherit; }

button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 16px;
  border-radius: 9px;
  color: var(--ink);
  transition: background .15s, border-color .15s, color .15s;
}
button:hover { background: var(--brand-soft); border-color: var(--brand-line); }
button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
button.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
button.danger { color: var(--red); border-color: #F7D3C2; }
button.danger:hover { background: var(--red-soft); }
button.link { border: 0; background: none; color: var(--brand); padding: 4px 6px; }
button.link:hover { background: var(--brand-soft); }
button.link.danger { color: var(--red); }
button.link.danger:hover { background: var(--red-soft); }
/* Copy sits right under the tracking number - sales paste it to a customer. */
button.link.copybtn { font-size: 12px; padding: 2px 6px; }
/* Delivery block on the shipment form: what the warehouse retypes into the
   courier's app, so it is set apart from the rest of the form. */
.shipto { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  margin-bottom: 12px; background: var(--brand-soft); }
.shipto-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  margin: 5px 0; font-size: 13px; }
.shipto-row .muted { min-width: 46px; }
button:disabled { opacity: .5; cursor: wait; }

input, select, textarea {
  border: 1px solid #F0DFD0;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  width: 100%;
  min-width: 0;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #FFB877;
  outline-offset: 1px;
  border-color: var(--brand);
}
label { display: block; margin-bottom: 12px; }
label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 13px; }
input[type="checkbox"] { width: auto; }

.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

/* ---------- login screen ---------- */
/* Two columns on a desktop: brand panel on the left, the form on the right.
   The panel collapses into the card on a phone so nothing important is lost. */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background:
    radial-gradient(1100px 520px at 12% -10%, #FFE9D3 0%, rgba(255, 233, 211, 0) 60%),
    linear-gradient(160deg, #FFF7EF 0%, #FFFDFB 55%, #FFEFE0 100%);
}
.login-shell {
  width: 100%;
  max-width: 940px;
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(140, 66, 12, .16);
}

.login-aside {
  flex: 1 1 0;
  padding: 46px 44px 34px;
  color: #fff;
  /* 与侧边栏同一套深棕，登录页和工作台看起来是一个系统。 */
  background: linear-gradient(165deg, #54392A 0%, #453024 55%, #3C2A20 100%);
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.login-mark { display: flex; align-items: center; gap: 13px; }
.login-mark img { border-radius: 12px; display: block; }
.login-mark b { display: block; font-size: 20px; letter-spacing: 3px; }
.login-mark span { display: block; font-size: 10.5px; letter-spacing: 3px; color: rgba(255, 255, 255, .58); }
.login-aside-body { flex: 1; }
.login-aside h2 {
  font-size: 27px;
  letter-spacing: 3px;
  margin-bottom: 14px;
  font-weight: 700;
}
.login-aside p { font-size: 13.5px; line-height: 1.85; color: rgba(255, 255, 255, .72); margin-bottom: 22px; }
.login-aside ul {
  list-style: none; margin: 0; padding: 0;
  /* 三条共用一个网格：主题词一列、正文一列，列边距得整整齐齐。 */
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 14px; row-gap: 12px;
  align-items: baseline;
}
.login-aside li { display: contents; font-size: 13px; color: rgba(255, 255, 255, .82); }
.login-aside li .lb { color: #FFB05A; letter-spacing: 2px; white-space: nowrap; }
.login-aside li .lv { display: flex; flex-wrap: wrap; column-gap: .85em; row-gap: 2px; }
.login-aside-foot {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, .5);
}

.login-card {
  flex: 0 0 404px;
  padding: 46px 42px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-card-brand { display: none; }
.login-card-head { margin-bottom: 26px; }
.login-card-head h1 { font-size: 24px; letter-spacing: 1px; margin-bottom: 8px; }
.login-card-head p { font-size: 13px; color: var(--muted); }

.login-form .field { display: block; margin-bottom: 17px; }
.login-form .field > span {
  display: block;
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: 7px;
}
.login-form input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FFFDFB;
  color: var(--ink);
  font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s;
}
.login-form input:hover { border-color: #E4D2C2; }
.login-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.pwd-wrap { position: relative; display: block; }
.pwd-toggle {
  position: absolute; top: 50%; right: 7px;
  transform: translateY(-50%);
  padding: 5px 9px;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 8px;
}
.pwd-toggle:hover { background: var(--brand-soft); color: var(--brand); }
.pwd-toggle.on { color: var(--brand); }
.login-submit {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: 2px;
  border-radius: 10px;
}
.login-foot { margin-top: 16px; text-align: center; font-size: 12px; color: var(--muted); }
.login-card .error { margin-bottom: 12px; }

@media (max-width: 880px) {
  .login-shell { flex-direction: column; max-width: 460px; }
  .login-aside { display: none; }
  .login-card { flex: 1 1 auto; padding: 30px 26px 26px; }
  .login-card-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .login-card-brand img { border-radius: 10px; display: block; }
  .login-card-brand b { display: block; font-size: 18px; letter-spacing: 3px; color: var(--ink); }
  .login-card-brand span { display: block; font-size: 10px; letter-spacing: 3px; color: var(--muted); }
}

/* ---------- sidebar ---------- */
.sidebar {
  /* 深棕皮革色：与右侧米白内容区拉开层次，又和品牌橙同一暖色系。 */
  background: linear-gradient(180deg, #54392A 0%, #453024 60%, #3C2A20 100%);
  border-right: 1px solid var(--side-line);
  color: var(--side-text);
  padding: 24px 16px;
  position: fixed;
  width: 232px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 30;
}
.side-brand-cn {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFB05A;
  letter-spacing: 9px;
  text-indent: 9px;
  margin: 0 10px;
}
.side-brand-py {
  margin: 3px 10px 0;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, .5);
  letter-spacing: 5px;
  text-indent: 5px;
}
/* Slogan sits below its own rule so the two halves read as separate lines. */
.side-slogan {
  margin: 14px 10px 20px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, .45);
}
.navbutton {
  display: flex; align-items: center; gap: 8px; text-align: left; width: 100%;
  background: none; border: 0; color: var(--side-text);
  padding: 11px 14px; margin: 3px 0; border-radius: 9px;
}
.navbutton:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.navbutton.active { background: var(--brand); color: #fff; font-weight: 600; }
.navbutton i { display: inline-block; width: 26px; font-style: normal; color: #FFB877; flex: none; }
/* Push the todo counter to the far edge so it never crowds the menu label. */
.navbutton .notice-badge { margin-left: auto; flex: none; }
.navbutton.active .notice-badge { background: #fff; color: var(--brand); }
.navbutton.active i { color: #FFE4CC; }
.sidebar footer { margin-top: auto; font-size: 12px; padding: 14px; border-top: 1px solid rgba(255, 255, 255, .13); color: rgba(255, 255, 255, .55); }
.dot { display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; margin-right: 7px; }

/* ---------- main ---------- */
.main { grid-column: 2; padding: 0 30px 50px; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.topbar .who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar button { padding: 6px 12px; font-size: 13px; }
.topbar .iconbtn span { margin-left: 3px; }
.menubtn { display: none; }

.heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.heading h1 { font-size: 22px; }
.heading p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.split { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 14px; margin-bottom: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.card small { display: block; font-size: 12px; letter-spacing: .5px; }
.card .value { font-size: 25px; font-weight: 700; margin: 6px 0 2px; color: var(--ink); }
/* 多单位合计（如「500 张 + 86 台」）字多，缩一档才不会换行挤爆卡片。 */
.card .value.multi { font-size: 17px; line-height: 1.45; }
.card.accent { background: var(--brand-soft); border-color: var(--brand-line); }
.card.accent .value { color: var(--brand); }
.card.warn .value { color: var(--amber); }
.card.soft-red .value { color: var(--red); }
/* 库存合计卡片可以点：点一下表格只看这一类，再点一下取消。 */
.card.clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.card.clickable:hover { border-color: var(--brand-line); }
.card.picked { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }

.grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-title h2 { font-size: 15px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar input, .toolbar select { width: auto; flex: 1 1 190px; }
.toolbar button { white-space: nowrap; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; letter-spacing: .5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:hover { background: #FFF8F1; }
/* Client addresses can be long; keep them wrapping instead of stretching the row. */
td.addr { max-width: 300px; word-break: break-word; }
.rowclick { cursor: pointer; }
.empty { text-align: center; color: var(--muted); padding: 30px 12px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); white-space: nowrap; }
.badge.warn { background: var(--amber-soft); color: var(--amber); border-color: #F6DCB7; }
.badge.red { background: var(--red-soft); color: var(--red); border-color: #F7D3C2; }
.badge.ok { background: var(--green-soft); color: var(--green); border-color: #BFE7DA; }
.badge.grey { background: #FAF4EE; color: var(--muted); border-color: var(--line); }
.badge.soft { background: #F4F1EC; color: #6C6259; border-color: var(--line); }

/* 库存表手动排序：左侧把手按住可拖，右侧 ↑ ↓ 给手机和一步微调用。 */
td.grip { cursor: grab; color: #C9C0B6; font-size: 15px; width: 26px; padding-left: 4px; padding-right: 0; user-select: none; }
td.grip:active { cursor: grabbing; }
td.move { white-space: nowrap; }
td.move .link + .link { margin-left: 8px; }
tbody tr.dragging { opacity: .45; background: var(--brand-soft); }
tbody tr.drop-hint { box-shadow: inset 0 2px 0 var(--brand); }
tbody tr.draggable-off td.grip { display: none; }

.error { color: var(--red); font-size: 13px; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 8px; }

.notice-badge {
  display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brand); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}

/* 顶部提示条：提醒还有多少入库单没填采购价，并给出一键筛选入口。 */
.notice {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; font-size: 13px;
  background: var(--amber-soft); border: 1px solid #F6DCB7; color: #6B4310;
}
.notice b { color: #6B4310; }
/* 行内可点的“待补价”角标：行为像链接，视觉上仍是角标。 */
a.badge { text-decoration: none; cursor: pointer; font-weight: 400; }

/* ---------- modal ---------- */
dialog {
  border: 0; padding: 0; border-radius: 14px; max-width: 720px; width: 92vw;
  box-shadow: 0 20px 60px rgba(120, 60, 10, .22); color: var(--ink);
}
dialog::backdrop { background: rgba(74, 40, 15, .38); }
dialog.narrow { max-width: 470px; }
/* Order forms carry a product picker and three columns per line; a little more
   room keeps long model names readable on any screen. */
dialog.wide { max-width: 900px; }
.modalhead { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modalhead h2 { font-size: 16px; }
.modalhead button { border: 0; background: none; font-size: 22px; line-height: 1; padding: 4px 10px; color: var(--muted); }
.modalbody { padding: 20px; max-height: 70vh; overflow-y: auto; }
.actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.formgrid label.full { grid-column: 1 / -1; }
/* Carrier and tracking number both need room: half-width made the dropdown and
   a scanned tracking number cramped, so each gets a row of its own. */
.shipgrid { grid-template-columns: 1fr; }

.line-item { display: grid; grid-template-columns: minmax(0, 1fr) 76px 96px 32px; gap: 8px; margin-bottom: 6px; align-items: start; }
/* A native <select> popup is only as wide as the select itself on macOS
   Safari (Windows Chrome widens it to fit), so a long product name was cut in
   half there. This picker is a plain list instead: it wraps, it never truncates,
   and it can be searched - which matters once the catalogue grows. */
.picker { position: relative; }
.picker-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(120, 60, 10, .18);
  max-height: 232px; overflow-y: auto;
}
.pick-opt {
  display: block; width: 100%; text-align: left;
  border: 0; border-radius: 0; padding: 9px 12px; line-height: 1.5; background: #fff;
}
.pick-opt + .pick-opt { border-top: 1px solid var(--line); }
/* .toolbar button 是 nowrap 的（工具栏按钮不该换行），但下拉里的选项该换行：
   型号名、客户全称长起来一行放不下，nowrap 会把它裁成半句。 */
.picker-list .pick-opt { white-space: normal; overflow: visible; word-break: break-word; }
.pick-opt:hover, .pick-opt.on { background: var(--brand-soft); }
.pick-opt small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pick-empty { padding: 10px 12px; color: var(--muted); font-size: 13px; }
/* Full name/stock of whatever the dropdown truncated. */
.picked-hint { margin: -2px 0 8px; font-size: 12px; line-height: 1.5; color: var(--muted); word-break: break-word; }
/* Model + code + quantity on the order row itself; long names wrap instead of
   pushing the money and status columns off the row. */
td.goods { max-width: 320px; line-height: 1.5; }
td.goods div { margin-bottom: 2px; }
td.goods small { margin-left: 4px; }
.serials { margin: 6px 0 12px; }
.serials textarea { font-family: Consolas, "Courier New", monospace; font-size: 13px; min-height: 76px; }
.serial-import {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 8px 0; padding: 8px 10px;
  border: 1px dashed var(--brand-line); border-radius: 10px; background: var(--brand-soft);
}
.serial-import input[type="file"] { padding: 4px; background: #fff; font-size: 12px; max-width: 100%; }
.serial-import small { flex: 1 1 200px; line-height: 1.5; }
.serial-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 150px; overflow-y: auto; }
.serial-chip { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 8px; font-size: 12px; cursor: pointer; font-family: Consolas, monospace; }
.serial-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
/* Picking hundreds of units one click at a time is unusable, so the shipment
   form takes a pasted batch instead and only lists what you searched for. */
.serial-paste {
  width: 100%; margin-top: 8px; resize: vertical;
  font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.6;
}
.filebtn {
  position: relative; display: inline-flex; align-items: center;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 13px; cursor: pointer;
}
.filebtn:hover { border-color: var(--brand-line); }
.filebtn input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%;
}
.error.warn { color: var(--amber); }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 24px;
  box-shadow: 0 8px 26px rgba(74, 40, 15, .3); z-index: 100; font-size: 14px;
}

/* ---------- print ---------- */
.print-only { display: none; }
/* A plain div built from the open document, never shown on screen. Printing a
   top-layer <dialog> together with the workbench behind it is what used to
   turn one document into several pages. */
#printSheet { display: none; }
@page { size: A4; margin: 14mm; }
@media print {
  .sidebar, .topbar, .heading .split, .toolbar, .actions, .toast, .menubtn { display: none !important; }
  .app, .main { display: block; padding: 0; }
  body { background: #fff; }
  .panel { border: 0; box-shadow: none; }
  .print-only { display: block; }

  /* With a document open, the workbench and the dialog itself are not part of
     the printout - only the sheet is. Printing from a list page keeps the old
     behaviour (the list, minus navigation and buttons). */
  body.printing-document #root,
  body.printing-document #modal { display: none !important; }
  #printSheet { display: block !important; color: #000; font-size: 13px; line-height: 1.6; }
  #printSheet .hint, #printSheet .muted { color: #444; }
  #printSheet .shipto { background: #f6f2ee; border: 1px solid #ddd; }
  #printSheet .badge { border: 1px solid #bbb; color: #000; }
  #printSheet table { width: 100%; border-collapse: collapse; }
  #printSheet th, #printSheet td { border-bottom: 1px solid #ddd; padding: 6px 4px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .22s ease;
    width: 250px;
    box-shadow: 6px 0 24px rgba(120, 60, 10, .16);
  }
  .sidebar.open { transform: translateX(0); }
  .main { grid-column: 1; padding: 0 14px 40px; }
  .menubtn { display: inline-block; }
  /* 手机端顶栏：第一行 ☰ + 右侧按钮，面包屑独自落到第二行。
     语音/刷新收成图标（含义靠 title 和常识），退出保留文字。 */
  .topbar { flex-wrap: wrap; row-gap: 4px; padding: 12px 0; margin-bottom: 16px; }
  .topbar .who { order: 3; width: 100%; }
  .topbar .split { margin-left: auto; }
  .topbar .iconbtn span { display: none; }
  .topbar .iconbtn { font-size: 16px; line-height: 1; padding: 7px 11px; }
  .heading h1 { font-size: 19px; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
  .card { padding: 12px 14px; }
  .card .value { font-size: 21px; }
  /* 明细行窄屏布局：商品独占一行，数量与单价并排，避免与上方
     「商品 / 数量 / 单价」提示错位 */
  .line-item { grid-template-columns: 1fr 1fr 40px; }
  .line-item .product { grid-column: 1 / -1; }
  .line-item button { justify-self: end; }
  th, td { padding: 9px 8px; }
  .toolbar input, .toolbar select { flex: 1 1 100%; }
  .formgrid { grid-template-columns: 1fr; }
  dialog { width: 96vw; max-height: 92vh; }
  .modalbody { max-height: 62vh; }
  table { font-size: 13px; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card .value { font-size: 18px; }
  .brand { font-size: 22px; }
  .login-screen { padding: 16px 12px; }
  .login-card { padding: 26px 20px 22px; }
  .login-card-head { margin-bottom: 20px; }
}
