* { box-sizing: border-box; } :root { --bg: #eef2f7; --bg2: #e2e8f0; --card: #ffffff; --text: #0f172a; --muted: #64748b; --border: #e2e8f0; --input-border: #cbd5e1; --btn-bg: #e8edf3; --grid: #cbd5e1; --shadow: 0 4px 16px rgba(15, 23, 42, .08); } body.dark { --bg: #0b1120; --bg2: #0f172a; --card: #16203a; --text: #e2e8f0; --muted: #94a3b8; --border: #2b3a55; --input-border: #3b4c6b; --btn-bg: #243350; --grid: #2b3a55; --shadow: 0 4px 16px rgba(0, 0, 0, .4); } body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: linear-gradient(180deg, var(--bg), var(--bg2)); background-attachment: fixed; color: var(--text); transition: background .3s, color .3s; min-height: 100vh; } header { background: linear-gradient(135deg, #4f46e5, #7c3aed 60%, #db2777); color: #fff; padding: 16px clamp(14px, 4vw, 28px); display: flex; justify-content: space-between; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; box-shadow: 0 4px 18px rgba(79, 70, 229, .35); } .brand { display: flex; align-items: center; gap: 10px; } .logo { font-size: 1.6rem; } h1 { font-size: clamp(1.1rem, 3.5vw, 1.4rem); margin: 0; letter-spacing: .5px; } h2 { font-size: 1.05rem; margin: 0 0 12px; } main { width: min(920px, 100% - 2 * clamp(12px, 3vw, 24px)); margin: 0 auto; padding: clamp(12px, 3vw, 24px) 0 40px; display: grid; gap: clamp(12px, 2.5vw, 20px); } .card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: clamp(14px, 3vw, 22px); box-shadow: var(--shadow); } .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row.space { justify-content: space-between; margin-bottom: 14px; } .row.space h2 { margin: 0; } input, select { padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 10px; font-size: 1rem; background: var(--card); color: var(--text); transition: border-color .15s, box-shadow .15s; } input:focus, select:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .15); } input { flex: 1 1 150px; min-width: 0; } .btn { border: none; border-radius: 10px; padding: 10px 15px; font-size: 1rem; cursor: pointer; background: var(--btn-bg); color: var(--text); transition: transform .1s, filter .15s; white-space: nowrap; } .btn:hover { filter: brightness(.93); } .btn:active { transform: scale(.97); } .btn.small { padding: 7px 11px; font-size: .88rem; } .btn.primary { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(79, 70, 229, .35); } .btn.danger { background: #fee2e2; color: #b91c1c; } body.dark .btn.danger { background: #7f1d1d; color: #fecaca; } .btn.install { background: #fff; color: #4f46e5; font-weight: 700; } .btn.icon-btn { background: rgba(255,255,255,.22); color: #fff; font-size: 1.15rem; padding: 8px 12px; } .header-actions { display: flex; gap: 8px; align-items: center; } .hidden { display: none; } .muted { color: var(--muted); } .small-text { font-size: .88rem; } .file-btn { position: relative; overflow: hidden; } #fatal { background: #fee2e2; color: #b91c1c; padding: 10px 14px; font-size: .85rem; display: none; } .person-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; } .person-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: linear-gradient(90deg, transparent, transparent); transition: border-color .15s; } .person-list li:hover { border-color: #7c3aed; } .person-list li.off .dot { opacity: .3; } .person-list li.off .pname { text-decoration: line-through; opacity: .55; } .dot { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(255,255,255,.35) inset; } .pname { font-weight: 600; flex: 1 1 90px; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .pdate { color: var(--muted); font-size: .9rem; margin-right: auto; } .chart-wrap { width: 100%; } canvas { width: 100%; display: block; height: clamp(240px, 45vw, 360px); } .legend { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 12px; font-size: .9rem; } .legend .item { display: flex; align-items: center; gap: 6px; } .legend .swatch { width: 22px; height: 4px; border-radius: 2px; } .legend .swatch.dash { background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px); } .legend .swatch.dotpat { background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 6px); } .legend .sep { flex-basis: 100%; height: 0; } .today-panel { display: grid; gap: 10px; } .today-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--card); } .today-card .dot { width: 15px; height: 15px; } .today-values { display: flex; gap: 4px 14px; font-size: .95rem; flex-wrap: wrap; } .today-values b { font-size: 1rem; } .bar { height: 8px; border-radius: 4px; flex: 2 2 130px; min-width: 110px; background: linear-gradient(to right, #dc2626 0 33%, #f59e0b 33% 66%, #16a34a 66%); position: relative; } .bar .cursor { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 1px rgba(128,128,128,.4); } .crit-list { display: grid; gap: 8px; margin-top: 8px; } .crit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; } .crit-row.today { border-color: #f59e0b; background: rgba(245, 158, 11, .08); } .crit-date { font-weight: 700; min-width: 130px; } .badge { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; } .toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 11px 20px; border-radius: 999px; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.3); } body.dark .toast { background: #e2e8f0; color: #0f172a; } .toast.show { opacity: 1; } .foot { text-align: center; } @media (max-width: 560px) { .header-actions .btn.install { padding: 8px 10px; font-size: .85rem; } .crit-date { min-width: 100%; } .pname { flex-basis: 100%; } }