.notices-page {
    --notice-line: #e5eaf0;
    max-width: 960px;
    margin: 0 auto;
    color: #263449;
    overflow-wrap: anywhere;
}

.notice-page-heading,
.notice-actions,
.notice-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.notice-page-heading {
    justify-content: space-between;
    margin-bottom: 22px;
}

.notice-page-heading h1 {
    margin: 0;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.3;
}

.notice-list,
.notice-detail,
.notice-empty {
    margin: 0;
    border: 1px solid var(--notice-line);
    border-radius: 12px;
    background: #fff;
}

.notice-list {
    padding: 0;
    list-style: none;
}

.notice-list li + li {
    border-top: 1px solid var(--notice-line);
}

.notice-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 24px;
    min-height: 68px;
    padding: 14px 46px 14px 22px;
}

.notice-list li:first-child .notice-row {
    border-radius: 11px 11px 0 0;
}

.notice-list li:last-child .notice-row {
    border-radius: 0 0 11px 11px;
}

.notice-list li:only-child .notice-row {
    border-radius: 11px;
}

.notice-row::after {
    position: absolute;
    top: calc(50% - 4px);
    right: 22px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #65748a;
    border-right: 2px solid #65748a;
    content: "";
    transform: rotate(45deg);
}

.notice-row-title {
    min-width: 0;
    font-weight: 600;
}

.notice-pinned .notice-row,
.notice-detail-heading {
    background: #f7f9fc;
}

.notice-row:hover,
.notice-row:focus-visible,
.notice-button:hover,
.notice-button:focus-visible {
    background: #edf4fd;
    color: var(--user-primary);
}

.notice-row:focus-visible,
.notice-button:focus-visible {
    z-index: 1;
    outline: 2px solid var(--user-primary);
    outline-offset: -2px;
}

.notice-important {
    display: inline-block;
    margin-right: 5px;
    padding: 2px 8px;
    border-radius: 5px;
    background: #e5efff;
    color: #214d8d;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.notices-page time {
    color: #64748b;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.notice-detail-heading {
    padding: 24px 28px;
    border-bottom: 1px solid var(--notice-line);
    border-radius: 11px 11px 0 0;
}

.notice-detail-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.4;
}

.notice-detail-heading .notice-important {
    margin: 0 0 8px;
}

.notice-body {
    margin: 0;
    padding: 24px 28px;
    line-height: 1.75;
    white-space: pre-wrap;
}

.notice-empty {
    padding: 32px 16px;
    color: #64748b;
    text-align: center;
}

.notice-button {
    display: inline-flex;
    min-height: 44px;
    padding: 7px 14px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: var(--user-primary);
    font-size: 14px;
    font-weight: 600;
}

.notice-actions,
.notice-pagination {
    margin-top: 16px;
}

.notice-pagination {
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .notice-page-heading { margin-bottom: 16px; }
    .notice-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        padding: 12px 38px 12px 14px;
    }
    .notice-row::after { right: 16px; }
    .notice-detail-heading,
    .notice-body { padding: 16px; }
}
