/* 쪽지 작업 설정 — 다중 프로필 */

.note-settings-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
@media (max-width: 900px) {
    .note-settings-layout { grid-template-columns: 1fr; }
}

.note-profile-sidebar {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}
.note-profile-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.note-settings-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}
.note-settings-desc {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    font-size: 0.92rem;
}
.note-settings-desc--compact {
    margin-bottom: 12px;
    font-size: 0.82rem;
}
.note-profile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 520px;
    overflow: auto;
}
.note-profile-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
}
.note-profile-item.is-active {
    border-color: rgba(237, 137, 54, 0.7);
    background: rgba(237, 137, 54, 0.12);
}
.note-profile-item.is-disabled .note-profile-item__name {
    opacity: 0.55;
}
.note-profile-item__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    padding: 8px 10px;
    cursor: pointer;
    width: 100%;
}
.note-profile-item__name {
    display: block;
    font-weight: 650;
    font-size: 0.9rem;
}
.note-profile-item__meta {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}
.note-profile-item__badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ae6b4;
    padding-right: 8px;
}
.note-profile-item.is-disabled .note-profile-item__badge {
    color: rgba(255, 255, 255, 0.35);
}

.note-settings-card {
    max-width: none;
    padding: 18px 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}
.note-editor-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
}
.note-field--name { min-width: 0; }
.note-field--enabled { padding-bottom: 8px; }

.note-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    margin-bottom: 16px;
}
@media (max-width: 720px) {
    .note-settings-grid { grid-template-columns: 1fr; }
    .note-editor-head { grid-template-columns: 1fr; }
}
.note-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.note-field--check {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-top: 22px;
}
.note-field__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
}
.note-field__row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.note-select,
.note-input,
.note-textarea,
.note-message-row__input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: #111;
    color: #fff;
    padding: 10px 12px;
    font: inherit;
}
.note-messages-block { margin-bottom: 14px; }
.note-messages-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.note-messages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.note-message-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 8px;
    align-items: start;
}
.note-message-row__idx {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    margin-top: 8px;
}
.note-message-row__input {
    min-height: 72px;
    resize: vertical;
    line-height: 1.45;
}
.note-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.note-quota-inline {
    font-size: 0.88rem;
    color: #9ae6b4;
}
.note-settings-status {
    margin: 12px 0 0;
    min-height: 1.2em;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}
.btn-sm {
    padding: 6px 10px;
    font-size: 0.82rem;
}

/* 대시보드 쪽지 현황 카드 */
.dashboard-readiness-row--note .dashboard-readiness-card-hit {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: left;
}
.note-card-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    line-height: 1.4;
}
.note-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.note-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 10px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.note-stat--quota {
    background: rgba(72, 187, 120, 0.08);
    border-color: rgba(72, 187, 120, 0.22);
}
.note-stat__label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.62);
}
.note-stat__value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
.note-stat__value--fail { color: #fc8181; }
.note-stat__sep {
    margin: 0 2px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
}
.note-stat__hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
}
.note-stat--quota .note-stat__value { color: #9ae6b4; }
@media (max-width: 900px) {
    .note-stat-grid { grid-template-columns: 1fr; }
}

/* 카페·게시판 선택 요약 + 검색 팝업 */
.note-field--span2 {
    grid-column: 1 / -1;
}
.note-target-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}
.note-target-summary__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.note-target-summary__cafe,
.note-target-summary__menu {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.note-target-summary__actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

#note-cafe-board-modal .modal-container.alert-modal.note-cafe-board-modal {
    box-sizing: border-box;
    width: min(1080px, 96vw);
    max-width: min(1080px, 96vw);
    max-height: min(88vh, 860px);
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.note-cafe-board-modal__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}
.note-picker-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    min-height: 0;
}
@media (max-width: 720px) {
    .note-picker-steps { grid-template-columns: 1fr; }
}
.note-picker-pane {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}
.note-picker-pane__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
}
.note-picker-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}
.note-picker-search {
    width: 100%;
}
.note-picker-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 280px;
    max-height: 52vh;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
}
.note-picker-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
}
.note-picker-item:last-child {
    border-bottom: 0;
}
.note-picker-item:hover,
.note-picker-item.is-selected {
    background: rgba(255, 140, 66, 0.16);
}
.note-picker-item__title {
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.note-picker-item__meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}
.note-picker-empty {
    padding: 28px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
}
.note-picker-status {
    min-height: 1.2em;
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}
.note-interval-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.note-interval-row .note-input {
    width: 96px;
    max-width: 30%;
}
.note-interval-sep,
.note-interval-unit {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
}
.note-optional-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 178, 122, 0.95);
    background: rgba(255, 140, 66, 0.14);
    border: 1px solid rgba(255, 140, 66, 0.28);
    vertical-align: middle;
}
.note-field__hint {
    margin: 4px 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
}
.note-twocaptcha-block {
    margin-top: 4px;
    margin-bottom: 14px;
}
