:root { --bg: #f3f6fb; --card: #fff; --ink: #192536; --muted: #637083; --main: #2175d9; --line: #dce4ef; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { max-width: 720px; margin: auto; padding: 16px 14px 92px; }
h1 { font-size: 23px; margin: 8px 0 4px; } h2 { font-size: 17px; margin: 0 0 12px; } p { margin: 6px 0; }
.sub, .hint { color: var(--muted); font-size: 13px; } .loading { padding: 30px; text-align: center; color: var(--muted); }
.boot { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 28px; color: var(--muted); }.boot h1 { color: var(--ink); margin-top: 12px; }.boot-kicker { color: var(--main); font-size: 12px; font-weight: 700; letter-spacing: .1em; }.spinner { width: 34px; height: 34px; border: 3px solid #d8e6f8; border-top-color: var(--main); border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 16px 0; padding: 0; }
.tabs button { min-height: 42px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; padding: 7px 4px; font-size: 13px; }
.tabs button.active { background: var(--main); border-color: var(--main); color: white; }
.card { background: var(--card); border-radius: 15px; padding: 15px; margin: 12px 0; box-shadow: 0 2px 10px #1c3e6410; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; } .grid.three { grid-template-columns: repeat(3, 1fr); }
.metric { padding: 10px; background: #f7f9fc; border-radius: 10px; } .metric b { display: block; margin-top: 5px; font-size: 19px; }
.today-card { margin: 12px 0; padding: 17px; border-radius: 15px; background: linear-gradient(135deg, #1568ca, #338ae8); color: #fff; box-shadow: 0 7px 16px #1b64b42e; }.today-card.empty { background: linear-gradient(135deg, #aa6520, #da922e); }.today-kicker { font-size: 12px; opacity: .82; letter-spacing: .05em; }.today-card h2 { margin: 7px 0 2px; color: #fff; font-size: 21px; }.today-card p { font-size: 13px; opacity: .9; }.today-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 14px; }.today-stats div { padding: 9px; border-radius: 9px; background: #ffffff21; }.today-stats span { display: block; font-size: 11px; opacity: .8; }.today-stats b { display: block; margin-top: 2px; font-size: 16px; }.today-card button { margin-top: 14px; width: 100%; border: 0; border-radius: 10px; background: #fff; color: #165ba8; padding: 11px; font-weight: 700; }.today-card.empty button { color: #9b5a19; }
.order-inline { margin-top: 18px; padding: 14px; border: 1px solid #dce8f7; border-radius: 12px; background: #f6faff; }.order-inline h3 { margin: 0; font-size: 16px; }.order-inline .hint { margin-bottom: 11px; }
label { display: block; margin: 11px 0 4px; font-size: 13px; color: var(--muted); }
input, select { width: 100%; border: 1px solid var(--line); background: white; border-radius: 9px; padding: 11px; font: inherit; color: var(--ink); }
button { cursor: pointer; font: inherit; } button.primary { width: 100%; border: 0; background: var(--main); color: #fff; padding: 12px; border-radius: 10px; margin-top: 14px; font-weight: 600; }
button.danger { color: #cf3b39; border: 1px solid #f2c6c5; background: #fff8f8; border-radius: 8px; padding: 7px 10px; } button.small { width: auto; margin: 0; padding: 7px 10px; font-size: 13px; }
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }.more-grid button { min-height: 66px; text-align: left; border: 1px solid var(--line); border-radius: 11px; padding: 11px; color: var(--ink); background: #fff; font-weight: 650; }.more-grid button span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #edf0f4; } .row:last-child { border: 0; }
.notice { position: fixed; z-index: 3; left: 16px; right: 16px; bottom: 16px; padding: 12px 14px; background: #25354c; color: white; border-radius: 11px; box-shadow: 0 4px 18px #0004; }
.notice.error { background: #b93b3b; } .hide { display: none; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
