/* Entelyn Orbit — giao diện "bàn duyệt".
   Mực xanh để ký, dấu đỏ để đóng, giấy trắng để đọc. */
@import url("fonts.css");

:root {
  --paper: #f3f5f7;
  --sheet: #ffffff;
  --ink: #14233b;
  --ink-2: #47566b;
  --ink-3: #7b8798;
  --line: #d9dfe6;
  --line-soft: #e8ecf0;
  --pen: #1f4fd8;        /* mực xanh: hành động */
  --pen-soft: #e9effd;
  --seal: #c8102e;       /* dấu đỏ: đã duyệt, khẩn */
  --seal-soft: #fdecef;
  --ok: #0f7b5f;
  --ok-soft: #e4f4ee;
  --wait: #9a5b00;
  --wait-soft: #fbf1dd;
  --r-sheet: 4px;
  --r-ctl: 8px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rail: 232px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.55 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 18px; line-height: 1.35; font-weight: 600; }
h3 { font-size: 15px; line-height: 1.4; font-weight: 600; }
a { color: var(--pen); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; border-radius: 2px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.right { text-align: right; }
.hide { display: none !important; }

/* ---------- Khung ----------
   Hai cột: cột điều hướng (.rail) kéo dài hết chiều cao bố cục để nền tối luôn liền;
   khối bên trong (.rail-in) dính theo màn hình, menu dài thì cuộn riêng, phần tài khoản luôn ở đáy. */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.rail { background: var(--ink); color: #dfe6f0; }
.rail-in {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; padding: 20px 14px; gap: 4px;
}
.rail :focus-visible { outline-color: #fff; outline-offset: -2px; }
.brand { flex: none; font-weight: 700; font-size: 17px; color: #fff; padding: 4px 10px 18px; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.brand small { display: block; font-weight: 400; font-size: 12px; color: #9fb0c8; margin-top: 2px; }
.rail-close { display: none; }
.nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }
.nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: var(--r-ctl); color: #c7d2e3; font-weight: 500;
}
.nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: var(--ink); }
.nav .count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--seal); color: #fff;
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}
.nav .sub { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.nav .sub a { font-weight: 400; padding: 8px 12px; font-size: 14px; }
.rail-foot { flex: none; font-size: 13px; color: #9fb0c8; padding: 12px 10px 0; }
.rail-foot form { display: inline; }
.rail-foot button { background: none; border: 0; color: #c7d2e3; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.rail-backdrop { display: none; }

.page { min-width: 0; }
.main { padding: 28px 36px 80px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar .sub { color: var(--ink-2); margin-top: 4px; }
.col { max-width: 780px; }
.wide { max-width: 1120px; }

.bizpick select {
  font: inherit; font-weight: 500; color: var(--ink); background: var(--sheet); border: 1px solid var(--line);
  border-radius: var(--r-ctl); padding: 8px 34px 8px 12px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}

.tabbar { display: none; }
@media (max-width: 860px) {
  :root { --tabbar-h: calc(54px + env(safe-area-inset-bottom)); }
  .shell { display: block; }
  /* Điện thoại: cột điều hướng thành ngăn kéo, không chiếm chỗ bên trái. */
  .rail {
    position: fixed; inset: 0 auto 0 0; width: min(var(--rail), 86vw); z-index: 50;
    transform: translateX(-100%); visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s;
  }
  .rail-in { position: static; height: 100%; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .rail-close {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; margin: -4px -4px 0 0;
    background: none; border: 0; border-radius: var(--r-ctl); color: #c7d2e3; cursor: pointer;
  }
  .rail-close:hover { background: rgba(255,255,255,.07); color: #fff; }
  .rail-backdrop {
    display: block; position: fixed; inset: 0; z-index: 45; background: rgba(20,35,59,.5);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
  }
  body.drawer-open { overflow: hidden; }
  body.drawer-open .rail { transform: none; visibility: visible; transition: transform .2s ease; }
  body.drawer-open .rail-backdrop { opacity: 1; visibility: visible; transition: opacity .2s ease; }
  .main { padding: 18px 16px calc(var(--tabbar-h) + 28px); }
  h1 { font-size: 22px; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; inset: auto 0 0 0; z-index: 30;
    background: var(--ink); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a, .tabbar button {
    color: #b9c6da; text-align: center; padding: 9px 2px; font: inherit; font-size: 13px; font-weight: 500; line-height: 24px;
    border-radius: var(--r-ctl); position: relative; background: none; border: 0; cursor: pointer;
  }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a[aria-current="page"] { background: #fff; color: var(--ink); }
  .tabbar :focus-visible { outline-color: #fff; outline-offset: -2px; }
  .tabbar .count { position: absolute; top: 2px; right: 14%; min-width: 18px; height: 18px; border-radius: 9px; background: var(--seal); color: #fff; font-size: 11px; line-height: 18px; padding: 0 4px; }
  /* Chưa có JavaScript thì chưa mở được ngăn kéo: hiện các liên kết phụ ở cuối trang thay cho nút Menu. */
  .tabbar [data-drawer-open] { display: none; }
  html.js .tabbar [data-drawer-open] { display: block; }
  .mobile-menu { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
  html.js .mobile-menu { display: none; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .rail, .rail-backdrop, body.drawer-open .rail, body.drawer-open .rail-backdrop { transition: none; }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* ---------- Phiếu (tờ giấy trên bàn) ---------- */
.sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-sheet); padding: 18px 20px; }
.sheet + .sheet { margin-top: 12px; }
.sheet.flush { padding: 0; overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.section { margin-top: 30px; }
.section > h2 { margin-bottom: 12px; }
h2 .n { color: var(--ink-3); font-weight: 400; margin-left: 6px; }

/* Phiếu trình: mép trái cho biết loại việc */
.slip { display: block; background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--pen); border-radius: var(--r-sheet); padding: 14px 18px; color: inherit; }
a.slip:hover { text-decoration: none; border-color: var(--pen); }
.slip + .slip { margin-top: 8px; }
.slip.urgent { border-left-color: var(--seal); }
.slip.wait { border-left-color: var(--wait); }
.slip.ok { border-left-color: var(--ok); }
.slip .kind { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.slip .title { font-weight: 600; margin-top: 2px; }
.slip .sum { color: var(--ink-2); font-size: 14px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.tag { display: inline-block; font-size: 12.5px; font-weight: 500; padding: 1px 8px; border-radius: 10px; background: var(--line-soft); color: var(--ink-2); white-space: nowrap; }
.tag.pen { background: var(--pen-soft); color: var(--pen); }
.tag.seal { background: var(--seal-soft); color: var(--seal); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.wait { background: var(--wait-soft); color: var(--wait); }

/* Dấu đỏ "Đã duyệt" */
.stamp {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  width: 92px; height: 92px; border-radius: 50%; border: 3px double var(--seal); color: var(--seal);
  font-weight: 700; font-size: 13px; line-height: 1.2; transform: rotate(-12deg); padding: 8px; opacity: .92;
}
.stamp.sm { width: 64px; height: 64px; font-size: 10.5px; border-width: 3px; }
@keyframes stamp-in { 0% { transform: rotate(-12deg) scale(2.2); opacity: 0; } 60% { transform: rotate(-12deg) scale(.94); opacity: 1; } 100% { transform: rotate(-12deg) scale(1); opacity: .92; } }
.stamp.fresh { animation: stamp-in .42s cubic-bezier(.2,.9,.3,1.2) both; }
@media (prefers-reduced-motion: reduce) { .stamp.fresh { animation: none; } }

/* ---------- Nút và ô nhập ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 14.5px/1 var(--font);
  padding: 11px 16px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--sheet); color: var(--ink);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); text-decoration: none; }
.btn.primary { background: var(--pen); border-color: var(--pen); color: #fff; }
.btn.primary:hover { background: #1942b8; }
.btn.danger { color: var(--seal); border-color: #eab8c1; }
.btn.danger:hover { background: var(--seal-soft); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--pen); padding-left: 6px; padding-right: 6px; }
.btn.sm { padding: 7px 11px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 5px; }
.field { margin-bottom: 14px; }
.field .hint { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--line);
  border-radius: var(--r-ctl); padding: 9px 12px;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pen); outline-offset: 0; border-color: var(--pen); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }
.inline-form { display: inline; }

/* ---------- Dải quyết định dính đáy ----------
   Dải nằm trong luồng trang (sticky), nên khi cuộn hết thì nó về đúng chỗ sau nội dung và không che gì.
   Mặc định chỉ gồm một hàng nút; ô nhận xét mở ra khi cần, để phần xem trước không bị phủ khi đang cuộn. */
.decide {
  position: sticky; bottom: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-sheet);
  padding: 12px 18px; margin-top: 18px; box-shadow: 0 -8px 24px rgba(20,35,59,.08); z-index: 10;
  max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain;
}
.decide.static { position: static; box-shadow: none; max-height: none; overflow: visible; padding: 18px 20px; }
@media (max-width: 860px) {
  .decide { bottom: var(--tabbar-h); max-height: calc(100dvh - var(--tabbar-h) - 72px); }
}
/* Màn hình quá thấp (điện thoại xoay ngang, cửa sổ nhỏ): dải không dính nữa để nhường chỗ cho nội dung. */
@media (max-height: 520px) { .decide { position: static; max-height: none; box-shadow: none; } }
.decide textarea { min-height: 60px; }
.decide .check + .actions, .decide p + .actions, .decide .field + .actions { margin-top: 10px; }
.decide .decide-note { margin-bottom: 10px; }
.decide .decide-note .split { align-items: center; margin-bottom: 4px; }
.decide .decide-note label { margin: 0; }
.decide.compact .decide-note { display: none; }
.decide .decide-fold { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; text-decoration: underline; }
/* Cuộn bằng bàn phím hoặc liên kết neo: phần tử đang chọn không nằm dưới dải dính. */
html:has(.decide:not(.static)) { scroll-padding-bottom: 140px; }

/* ---------- Bảng, danh sách ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 13px; font-weight: 500; color: var(--ink-2); background: #fafbfc; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.table-wrap { overflow-x: auto; }
.table-wrap th:first-child, .table-wrap td:first-child { min-width: 150px; }
.kv { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 6px 16px; }
.kv dt { color: var(--ink-2); font-size: 14px; }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 0 0; } .kv dd { margin-bottom: 10px; } }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
ul.plain li:last-child { border-bottom: 0; }
ul.tight { margin: 6px 0 0; padding-left: 18px; }
ul.tight li { margin: 2px 0; }

/* Dòng việc hệ thống đã làm */
.log li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; font-size: 14px; }
.log time { color: var(--ink-3); font-size: 13px; }

/* ---------- "Vì sao đề xuất?" ---------- */
details.why { border: 1px dashed var(--line); border-radius: var(--r-sheet); background: #fbfcfd; margin-top: 12px; }
details.why > summary { cursor: pointer; padding: 10px 14px; font-weight: 500; color: var(--pen); list-style: none; }
details.why > summary::-webkit-details-marker { display: none; }
details.why > summary::before { content: "+ "; font-weight: 700; }
details.why[open] > summary::before { content: "– "; }
details.why .why-body { padding: 2px 14px 14px; font-size: 14px; }
details.why h4 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 12px 0 4px; }

/* ---------- Kiểm tra tự động ---------- */
.checks li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 14px; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); transform: translateY(-1px); }
.dot.warn { background: #d99100; }
.dot.fail { background: var(--seal); }

/* ---------- Xem trước theo nền tảng ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { font: 500 14px var(--font); padding: 9px 14px; border: 0; background: none; color: var(--ink-2); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--pen); }
.tabs a { font-weight: 500; font-size: 14px; padding: 9px 14px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--pen); }
.preview { max-width: 430px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.preview .pv-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.preview .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.preview .pv-body { padding: 0 14px 12px; font-size: 14.5px; }
.preview .pv-body .hashtags { color: var(--pen); margin-top: 8px; }
.preview .pv-media { background: #0d1524; }
.preview .pv-media img, .preview .pv-media video { width: 100%; max-height: min(520px, 62vh); object-fit: contain; }
.preview .pv-media.multi { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 3px; overflow-x: auto; scroll-snap-type: x mandatory; }
.preview .pv-media.multi > * { scroll-snap-align: start; }
.preview .pv-note { padding: 8px 14px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line-soft); }
.preview.article { max-width: 640px; }
.preview.article .pv-body { padding: 18px 22px; font-size: 15.5px; line-height: 1.65; }
.preview.article h2 { margin: 18px 0 6px; }
.preview.article p { margin: 0 0 12px; }
.review-grid { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1000px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- Kho Media ---------- */
.grid-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.asset { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--r-sheet); background: var(--sheet); overflow: hidden; color: inherit; }
.asset > a { color: inherit; text-decoration: none; display: block; }
.asset .thumb { aspect-ratio: 1; background: #e6eaef center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 13px; }
.asset .cap { padding: 7px 9px; font-size: 12.5px; line-height: 1.4; }
.asset .cap b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset .badge { position: absolute; top: 6px; left: 6px; }
.asset input[type=checkbox] { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; }
.drop {
  border: 2px dashed #b9c4d2; border-radius: var(--r-sheet); padding: 26px 18px; text-align: center; background: var(--sheet); color: var(--ink-2);
}
.drop.over { border-color: var(--pen); background: var(--pen-soft); }
.upl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.bar { grid-column: 1 / -1; height: 4px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--pen); transition: width .2s; }

/* ---------- Kết quả ---------- */
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-sheet); background: var(--sheet); overflow: hidden; }
@media (max-width: 640px) { .funnel { grid-template-columns: repeat(2, 1fr); } }
.funnel > div { padding: 14px 16px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.funnel .v { font-size: 22px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.funnel > div.wide { grid-column: span 2; }
.funnel .l { font-size: 13px; color: var(--ink-2); }
.funnel .s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--wait); background: var(--wait-soft); border-radius: var(--r-sheet); padding: 12px 16px; font-size: 14.5px; }
.notice.seal { border-left-color: var(--seal); background: var(--seal-soft); }
.notice.ok { border-left-color: var(--ok); background: var(--ok-soft); }
.notice.pen { border-left-color: var(--pen); background: var(--pen-soft); }
.notice + .notice { margin-top: 8px; }

/* ---------- Trạng thái làm việc, thông báo ---------- */
.working { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.working::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pen); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .working::before { animation: none; } }
.flash { padding: 11px 16px; border-radius: var(--r-sheet); margin-bottom: 14px; border: 1px solid var(--line); background: var(--sheet); }
.flash.ok { border-color: #9fd3c1; background: var(--ok-soft); }
.flash.error { border-color: #eab8c1; background: var(--seal-soft); }
.demo-banner { background: var(--wait-soft); border-bottom: 1px solid #ecd3a0; color: #6b4000; padding: 8px 16px; font-size: 13.5px; text-align: center; }
.empty { padding: 26px 20px; text-align: center; color: var(--ink-2); background: var(--sheet); border: 1px dashed var(--line); border-radius: var(--r-sheet); }
.split { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; }
.statline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.statline b { color: var(--ink); font-weight: 600; }

/* ---------- Đăng nhập, trang công khai ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .sheet { width: 100%; max-width: 400px; padding: 28px; }
.public { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; }
.public .sheet { padding: 22px 24px; }
@media print {
  .rail, .rail-backdrop, .tabbar, .decide, .no-print, .demo-banner { display: none !important; }
  .shell { display: block; }
  .main { margin: 0; padding: 0; }
  body { background: #fff; }
  .sheet, .slip { break-inside: avoid; }
}
