:root { --felt: #0b6146; --felt-d: #084a36; --felt-dd: #063526; --felt-l: #d1fae5; --felt-ll: #ecfdf5; --bg: #f4f5f4; --ink: #18181b; --mut: #71717a; --line: #e4e4e7; --amber: #92400e; --amber-l: #fef3c7; --red: #dc2626; --red-l: #fee2e2; --blue: #075985; --blue-l: #e0f2fe; --r: 16px }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif }
button, input, select, textarea { font: inherit; color: inherit }
a { color: var(--felt); text-decoration: none }
h1 { font-size: 24px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.02em }
.boot { display: grid; place-items: center; height: 100dvh; font-size: 48px; color: var(--felt) }
.wrap { max-width: 540px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 110px }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink) }
.logo i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--felt); color: #fff; font-style: normal }
.bell { position: relative; padding: 8px; border-radius: 99px; color: var(--ink) }
.bell b { position: absolute; top: 2px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center }
.stack > * + * { margin-top: 14px }
.sub { color: var(--mut); font-size: 13px; margin: 0 }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: 0 1px 2px #0000000a }
.card > h2, .card-h h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); margin: 0 0 10px; font-weight: 800 }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px } .card-h h2 { margin: 0 }
.card.mine { border-color: var(--felt); box-shadow: 0 0 0 1px var(--felt) }
.badge { display: inline-flex; align-items: center; border-radius: 99px; padding: 2px 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; background: #f4f4f5; color: #52525b; white-space: nowrap }
.b-green { background: var(--felt-l); color: var(--felt-d) } .b-amber { background: var(--amber-l); color: var(--amber) } .b-red { background: var(--red-l); color: var(--red) } .b-blue { background: var(--blue-l); color: var(--blue) } .b-dark { background: #18181b; color: #fff }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--felt); color: #fff; transition: transform .08s }
.btn:active { transform: scale(.98) } .btn:disabled { opacity: .5; cursor: default }
.btn.sec { background: #fff; color: #27272a; border-color: #d4d4d8 } .btn.danger { background: var(--red) } .btn.ghost { background: none; color: #3f3f46 } .btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px } .btn.big { min-height: 56px; font-size: 16px } .btn.full { width: 100% }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center } .between { justify-content: space-between } .grow { flex: 1 }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px }
.stat { background: #fafafa; border-radius: 12px; padding: 10px 12px } .stat small { display: block; color: var(--mut); font-size: 12px } .stat b { display: block; font-size: 18px; font-variant-numeric: tabular-nums } .stat em { font-style: normal; color: var(--mut); font-size: 12px }
.list { list-style: none; margin: 0; padding: 0 } .list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #f1f1f2 } .list li:first-child { border: 0 }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #e4e4e7b3; font-size: 13px; font-weight: 700 }
.tabs a { text-align: center; padding: 8px 6px; border-radius: 9px; color: #3f3f46 } .tabs a.on { background: #fff; box-shadow: 0 1px 2px #0002 }
.day-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px }
.day-btn { height: 78px; border-radius: 16px; border: 2px solid var(--line); background: #fafafa; font-size: 20px; font-weight: 800; color: #3f3f46; cursor: pointer }
.day-btn.on { background: var(--felt); border-color: var(--felt); color: #fff; box-shadow: 0 4px 10px #0b614640 }
.day-btn:disabled { opacity: .55 }
.center { text-align: center } .ok { color: var(--felt); font-weight: 700 } .warn { color: #b45309; font-weight: 700 } .err { color: var(--red); font-weight: 700 }
.note { border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600 } .n-amber { background: var(--amber-l); color: var(--amber) } .n-blue { background: var(--blue-l); color: var(--blue) } .n-red { background: var(--red-l); color: var(--red) }
.push { display: block; border-radius: var(--r); padding: 14px 16px; background: var(--felt); color: #fff } .push p { margin: 2px 0 0; color: var(--felt-l); font-size: 14px }
.big-num { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums }
.empty { border: 1px dashed #d4d4d8; border-radius: var(--r); padding: 28px; text-align: center; color: var(--mut); background: #ffffff99 }
.skel { height: 110px; border-radius: var(--r); background: linear-gradient(90deg, #e4e4e7 0%, #f4f4f5 50%, #e4e4e7 100%); background-size: 200% 100%; animation: sh 1.2s infinite } @keyframes sh { to { background-position: -200% 0 } }
input.in, select.in, textarea.in { width: 100%; min-height: 44px; border: 1px solid #d4d4d8; border-radius: 12px; padding: 0 12px; background: #fff; font-size: 16px; outline: none }
textarea.in { padding: 10px 12px } .in:focus { border-color: var(--felt); box-shadow: 0 0 0 3px var(--felt-l) }
label.f { display: block } label.f > span { display: block; font-size: 13px; font-weight: 600; color: #3f3f46; margin-bottom: 4px } label.f > em { display: block; font-style: normal; font-size: 12px; color: var(--mut); margin-top: 3px }
label.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600 } label.chk input { width: 20px; height: 20px; accent-color: var(--felt) }
.form { display: grid; gap: 12px } .form3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) }
nav.bottom { position: fixed; inset: auto 0 0 0; z-index: 40; background: #fffffff2; backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom) }
nav.bottom .in5 { max-width: 540px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr) }
nav.bottom a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0; font-size: 11px; font-weight: 700; color: var(--mut) } nav.bottom a.on { color: var(--felt) }
nav.bottom svg { width: 24px; height: 24px }
.admin-top { position: sticky; top: 0; z-index: 30; background: #fffffff2; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line) }
.admin-top > div { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between }
.admin { max-width: 1280px; margin: 0 auto; padding: 20px 16px 110px; display: flex; gap: 24px }
.side { width: 210px; flex-shrink: 0; display: none; flex-direction: column; gap: 4px } .side a { padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #3f3f46 } .side a.on { background: var(--felt); color: #fff }
.admin main { flex: 1; min-width: 0 }
nav.scroll { position: fixed; inset: auto 0 0 0; z-index: 40; background: #fffffff2; border-top: 1px solid var(--line); overflow-x: auto; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); display: flex; gap: 4px }
nav.scroll a { white-space: nowrap; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #52525b } nav.scroll a.on { background: var(--felt); color: #fff }
@media (min-width: 1024px) { .side { display: flex } nav.scroll { display: none } .admin { padding-bottom: 40px } }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px }
.cols { display: grid; gap: 14px } @media (min-width: 720px) { .cols { grid-template-columns: repeat(2, 1fr) } .cols3 { grid-template-columns: repeat(2, 1fr) } } @media (min-width: 1200px) { .cols3 { grid-template-columns: repeat(3, 1fr) } }
.stats { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) }
.tbl { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r) }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums } th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--mut); padding: 10px; background: #fafafa } td { padding: 8px 10px; border-top: 1px solid #f1f1f2 } .r { text-align: right }
.cell-btn { width: 36px; height: 36px; border-radius: 9px; border: 0; background: #f4f4f5; color: #d4d4d8; font-weight: 800; cursor: pointer } .cell-btn.on { background: var(--felt); color: #fff }
.dayc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px } .dayc.drop { border: 2px dashed var(--felt) }
.dayc header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px } .dayc h3 { margin: 0; font-size: 16px; font-weight: 800 }
.count { border: 0; border-radius: 9px; padding: 4px 9px; font-weight: 800; cursor: pointer; background: var(--felt-ll); color: var(--felt) } .count.short { background: var(--red-l); color: var(--red) }
.chip { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fafafa; cursor: pointer; margin-bottom: 6px }
.chip.floor { background: #fffbeb; border-color: #fcd34d } .chip.out { opacity: .5; text-decoration: line-through } .chip b { display: block } .chip small { font-size: 11px; color: var(--mut) }
.alerts { display: grid; gap: 6px } @media (min-width: 720px) { .alerts { grid-template-columns: 1fr 1fr } }
.al { border-radius: 10px; padding: 8px 12px; font-size: 13px } .al.red { background: var(--red-l); color: var(--red) } .al.amber { background: var(--amber-l); color: var(--amber) } .al.blue { background: var(--blue-l); color: var(--blue) }
details summary { cursor: pointer; list-style: none } details summary::-webkit-details-marker { display: none }
.pick { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; margin-bottom: 6px }
.modal-bg { position: fixed; inset: 0; z-index: 60; background: #00000073; display: flex; align-items: flex-end; justify-content: center }
.modal { width: 100%; max-height: 92dvh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 20px; box-shadow: 0 -10px 30px #0003 }
.modal-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px } .modal-h h3 { margin: 0; font-size: 18px } .x { border: 0; background: none; font-size: 28px; line-height: 1; color: #a1a1aa; cursor: pointer; padding: 0 4px }
@media (min-width: 640px) { .modal-bg { align-items: center; padding: 16px } .modal { max-width: 460px; border-radius: 24px } .modal.wide { max-width: 680px } }
#toast { position: fixed; left: 16px; right: 16px; bottom: 96px; z-index: 80; max-width: 440px; margin: 0 auto; padding: 12px 16px; border-radius: 12px; color: #fff; font-weight: 700; font-size: 14px; background: #18181b; box-shadow: 0 8px 20px #0004; display: none } #toast.err { background: var(--red) } #toast.on { display: block }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: var(--felt-dd) } .login .card { width: 100%; max-width: 380px; border-radius: 24px; padding: 24px }
.print h1 { text-align: center; font-size: 18px; margin-bottom: 14px } .print table { border: 1px solid #a1a1aa } .print td, .print th { border: 1px solid #a1a1aa; text-align: center; padding: 6px; background: #fff; color: #18181b; font-size: 13px; text-transform: none }
.print .lft { text-align: left; font-weight: 700 }
@media print { nav, .side, .admin-top, .no-print, #toast { display: none !important } body { background: #fff } .admin { padding: 0 } .card, .tbl { border: 0; box-shadow: none } }
