* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; margin: 0; background: #f6f7f9; color: #17202a; }
a { color: #1f6fb2; text-decoration: none; }
.shell { display: flex; min-height: 100vh; }
.side { width: 230px; background: #10151d; color: #dbe4ee; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0; }
.side .brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.side .who { font-size: 12px; opacity: .75; margin-bottom: 14px; }
.side nav a { display: block; color: #dbe4ee; padding: 7px 10px; border-radius: 8px; font-size: 14px; }
.side nav a:hover { background: #1d2735; }
.side .cnt { float: right; opacity: .7; font-size: 12px; }
.side-h { margin: 14px 6px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.side .foot { margin-top: 18px; border-top: 1px solid #26303f; padding-top: 10px; }
.badge-red { background: #c0392b; color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; float: right; }
.main { flex: 1; padding: 18px; max-width: 1100px; }
.alert-banner { background: #fdecea; border: 1px solid #e57373; color: #7b1a12; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.alerts-box { border: 2px solid #c0392b; border-radius: 12px; padding: 12px; margin-bottom: 16px; background: #fff5f5; }
.alerts-h { font-weight: 700; color: #c0392b; margin-bottom: 8px; }
.alert-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid #f0c9c4; }
.alert-row-bg { background: #fdecea; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid #e3e7ec; }
.filters input[name="q"] { flex: 1; min-width: 180px; }
input, select, textarea { padding: 8px 10px; border: 1px solid #c9d2dc; border-radius: 8px; font-size: 14px; }
button, .btn { padding: 8px 12px; border: 1px solid #c9d2dc; background: #fff; border-radius: 8px; cursor: pointer; font-size: 14px; display: inline-block; }
button.primary { background: #1f6fb2; border-color: #1f6fb2; color: #fff; font-weight: 600; }
.card { background: #fff; border: 1px solid #e3e7ec; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.card.flagged { border-color: #e57373; background: #fff7f7; }
.flag-tag { color: #b71c1c; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.pname { font-weight: 700; font-size: 15px; }
.pmeta { color: #5b6b7c; font-size: 13px; margin: 2px 0; }
.pprice { font-size: 14px; margin-top: 4px; }
.offers { margin-top: 8px; display: grid; gap: 6px; }
.offer { display: flex; justify-content: space-between; align-items: center; background: #f2f5f8; border-radius: 8px; padding: 6px 10px; font-size: 14px; }
.offer.cheap { background: #e6f4ea; outline: 1px solid #57a773; font-weight: 600; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty input { width: 56px; text-align: center; }
.qty button { width: 30px; height: 30px; padding: 0; font-size: 16px; }
.nooffers { color: #8a97a5; font-size: 13px; margin-top: 6px; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid #e8edf2; text-align: left; font-size: 14px; }
.tbl tr.tot td { font-weight: 700; background: #f2f5f8; }
.notice-red { background: #fdecea; border: 1px solid #e57373; color: #7b1a12; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; }
.notice-ok { background: #e6f4ea; border: 1px solid #57a773; color: #14532d; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; }
.chip { background: #eef3f8; border-radius: 999px; padding: 2px 9px; font-size: 13px; }
.cnt { color: #5b6b7c; font-weight: 400; font-size: 13px; }
.tools { margin: 6px 0 12px; }
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: #fff; border: 1px solid #e3e7ec; border-radius: 16px; padding: 26px; width: min(92vw, 360px); display: grid; gap: 12px; }
.login-card h1 { margin: 0 0 6px; font-size: 22px; }
.login-card label { display: grid; gap: 5px; font-size: 14px; }
#loadMore { width: 100%; padding: 12px; font-weight: 600; }
@media (max-width: 760px) { .shell { flex-direction: column; } .side { width: 100%; height: auto; position: static; } .main { padding: 12px; } }
@media print { .no-print, .side { display: none !important; } .main { max-width: none; padding: 0; } body { background: #fff; } }
