:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #e6ebf3;
  --text: #1c2430;
  --muted: #667085;
  --accent: #4f46e5;
  --accent-2: #eef2ff;
  --green: #16a34a;
  --green-soft: #ecfdf5;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --orange: #d97706;
  --orange-soft: #fffbeb;
  --shadow: 0 12px 30px rgba(25, 41, 62, 0.08);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-family: Arial, Helvetica, sans-serif; background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 200px); color: var(--text); }
button, textarea { font: inherit; }
.page { width: min(980px, calc(100% - 24px)); margin: 0 auto; padding: 42px 0 32px; }
.topbar { text-align: center; margin-bottom: 24px; }
.chip { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--accent-2); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
h1 { margin: 14px 0 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 1.15rem; }
.notes-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.note { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 72px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #fafbff; transition: transform .15s ease, box-shadow .15s ease; }
.note:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(26, 42, 67, .05); }
.note.present { background: var(--green-soft); border-color: #bbf7d0; }
.note.absent { background: var(--red-soft); border-color: #fecaca; }
.note.late { background: var(--orange-soft); border-color: #fde68a; }
.person-name { font-size: .95rem; font-weight: 700; line-height: 1.35; word-break: break-word; }
.note-actions { display: flex; gap: 5px; flex-shrink: 0; }
.action-btn, .primary-btn, .secondary-btn { border: none; border-radius: 10px; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.action-btn { width: 34px; height: 34px; padding: 0; font-size: 1rem; font-weight: 800; color: #4b5563; background: #edf2f7; }
.action-btn:hover, .primary-btn:hover, .secondary-btn:hover { transform: translateY(-1px); }
.action-btn.present.active { background: var(--green); color: white; }
.action-btn.absent.active { background: var(--red); color: white; }
.action-btn.late.active { background: var(--orange); color: white; }
.primary-btn, .secondary-btn { padding: 10px 14px; font-weight: 700; }
.primary-btn { background: var(--accent); color: white; }
.secondary-btn { background: #eef2f7; color: var(--text); }
.output-panel textarea { width: 100%; min-height: 180px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; padding: 14px 16px; color: var(--text); font-size: .98rem; line-height: 1.55; }
.meta { margin-bottom: 10px; color: var(--muted); font-size: .9rem; }
.copy-status { min-height: 20px; margin-top: 8px; color: var(--green); font-size: .82rem; font-weight: 700; }
.site-footer { display: flex; justify-content: center; padding: 12px 0 4px; }
.profile-link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .78); color: var(--text); text-decoration: none; box-shadow: 0 8px 20px rgba(25, 41, 62, .06); transition: transform .15s ease, box-shadow .15s ease; }
.profile-link:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(25, 41, 62, .1); }
.profile-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid white; }
.profile-name { font-size: .9rem; font-weight: 700; }
@media (max-width: 760px) { .notes-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .page { padding-top: 26px; } .panel { padding: 14px; } .panel-head { align-items: flex-start; flex-wrap: wrap; } .notes-list { grid-template-columns: 1fr; } .note { padding: 12px; } }
