.studies-page .hero.compact h1 { font-size: 28px; }
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: none;
}
.button-link.secondary {
    background: #e2e8f0;
    color: #0f172a;
}
.toolbar-card { margin-bottom: 20px; }
.toolbar-row, .room-filter-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: end;
}
.room-filter-row { grid-template-columns: 1fr 1fr auto; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.chip {
    border-radius: 999px;
    padding: 0 16px;
    background: white;
    color: #111827;
    border: 1px solid #111827;
}
.chip.active {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}
.studies-layout {
    display: grid;
    grid-template-columns: minmax(340px, 480px) minmax(420px, 1fr);
    gap: 20px;
    align-items: start;
}
.left-column, .right-column { display: grid; gap: 20px; }
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.small { height: 36px; padding: 0 12px; font-size: 13px; }
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    resize: vertical;
}
textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.study-list, .room-list, .reservation-list { display: grid; gap: 14px; }
.study-card, .room-card, .reservation-card {
    border: 1px solid #111827;
    border-radius: 22px;
    padding: 18px 20px;
    background: white;
}
.study-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.study-card-header, .room-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}
.study-card h3, .room-card h3 { margin: 0 0 10px; font-size: 18px; }
.meta-row, .keyword-row, .detail-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pill, .keyword-pill, .tiny-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 600;
}
.keyword-pill { background: #eef2ff; color: #3730a3; }
.meta-pill.warn { background: #fff7ed; color: #c2410c; }
.meta-pill.full { background: #f3f4f6; color: #374151; }
.study-actions, .poll-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.empty-box {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
    padding: 20px;
}
.detail-grid {
    display: grid;
    gap: 16px;
}
.detail-box {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}
.member-list, .pending-list { display: grid; gap: 10px; }
.member-item, .pending-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e5e7eb;
}
.compact-form { margin-bottom: 14px; }
.poll-info { margin-bottom: 10px; }
.poll-grid {
    display: grid;
    grid-template-columns: 70px repeat(3, minmax(0, 1fr));
    gap: 6px;
    user-select: none;
}
.poll-head, .poll-time, .poll-cell {
    min-height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.poll-head, .poll-time { background: #e5e7eb; font-weight: 700; }
.poll-cell {
    border: 1px solid #cbd5e1;
    cursor: pointer;
    background: #f8fafc;
}
.poll-cell.mine { outline: 2px solid #2563eb; }
.poll-cell[data-level="1"] { background: #dbeafe; }
.poll-cell[data-level="2"] { background: #93c5fd; }
.poll-cell[data-level="3"] { background: #60a5fa; color: white; }
.poll-cell[data-level="4"] { background: #1d4ed8; color: white; }
.room-filter-row label { gap: 6px; }
.muted { color: var(--muted); }
.small-response { min-height: 180px; }
@media (max-width: 1100px) {
    .studies-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .toolbar-row, .room-filter-row { grid-template-columns: 1fr; }
    .poll-grid { grid-template-columns: 60px repeat(3, minmax(0, 1fr)); }
}
