







.schedule-page {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f6f7fa;
    overflow: hidden;
}

.schedule-head {
    padding: 20px 18px 14px;
    background: #fff;
    border-bottom: 1px solid #e6e8ef;
}

.schedule-head-title {
    font-size: 20px;
    font-weight: 700;
    color: #2e3238;
    letter-spacing: 0.04em;
}

.schedule-head-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #878c99;
}

.schedule-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-empty,
.schedule-loading {
    padding: 36px 18px;
    text-align: center;
    font-size: 13px;
    color: #878c99;
}



.schedule-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.schedule-row-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.schedule-row-avatar img,
.schedule-row-avatar .chat-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schedule-row-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #2e3238;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-row-state {
    font-size: 12px;
    color: #b3b8c2;
}

.schedule-row-state.is-done {
    color: #5c6bc0;
}

.schedule-row-arrow {
    color: #c6cad4;
    font-size: 16px;
}



.schedule-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
}

.schedule-panel-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.schedule-panel-avatar img,
.schedule-panel-avatar .chat-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schedule-panel-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.schedule-panel-name {
    font-size: 16px;
    font-weight: 700;
    color: #2e3238;
}

.schedule-panel-sub {
    font-size: 12px;
    color: #878c99;
}



.schedule-list {
    padding: 6px 2px;
}

.schedule-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px 8px 2px;
    border-radius: 12px;
    border-left: 3px solid transparent;
    cursor: pointer;   
}

.schedule-item.is-now {
    border-left-color: #5c6bc0;
    background: #eef0fb;
}

.schedule-time {
    width: 46px;
    flex-shrink: 0;
    padding-top: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #5c6bc0;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.schedule-rail {
    position: relative;
    width: 12px;
    align-self: stretch;
    flex-shrink: 0;
}

.schedule-rail::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1.5px;
    margin-left: -0.75px;
    background: #dfe3ef;
}

.schedule-item:first-child .schedule-rail::before { top: 10px; }
.schedule-item:last-child .schedule-rail::before { bottom: auto; height: 10px; }

.schedule-dot {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #b9c0e8;
}

.schedule-item.is-now .schedule-dot {
    background: #5c6bc0;
    border-color: #5c6bc0;
}

.schedule-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schedule-text {
    font-size: 14px;
    color: #2e3238;
    line-height: 1.45;
}

.schedule-item.is-now .schedule-text {
    font-weight: 600;
}

.schedule-place {
    font-size: 12px;
    color: #878c99;
}

.schedule-now-tag {
    align-self: flex-start;
    margin-top: 3px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #5c6bc0;
    color: #fff;
    font-size: 11px;
    flex-shrink: 0;
}

.schedule-more {
    align-self: flex-start;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #b3b8c2;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}

.schedule-more:hover {
    background: #f0f2f8;
    color: #5c6bc0;
}


.schedule-menu {
    position: absolute;
    right: 8px;
    top: 34px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    min-width: 92px;
    padding: 4px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(46, 50, 56, 0.16);
}


.schedule-menu--up {
    top: auto;
    bottom: 34px;
}

.schedule-menu-item {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #2e3238;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.schedule-menu-item:hover {
    background: #f4f5fa;
}

.schedule-menu-danger {
    color: #c62828;
}



.schedule-edit {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dfe3ef;
}

.schedule-edit-inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.schedule-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #d8dbe4;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    color: #2e3238;
    background: #fbfbfd;
}

.schedule-input:focus {
    outline: none;
    border-color: #5c6bc0;
    background: #fff;
}

.schedule-edit-btns {
    display: flex;
    gap: 8px;
}

.schedule-input-note {
    min-height: 62px;
    line-height: 1.6;
    resize: vertical;
}



.schedule-detail-mask {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.45);
}

.schedule-detail-card {
    width: 300px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
}

.schedule-detail-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.schedule-detail-time {
    font-size: 13px;
    font-weight: 700;
    color: #5c6bc0;
    font-variant-numeric: tabular-nums;
}

.schedule-detail-text {
    font-size: 15px;
    font-weight: 600;
    color: #2e3238;
}

.schedule-detail-place {
    margin-top: 4px;
    font-size: 12px;
    color: #878c99;
}

.schedule-detail-note {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f6f7fa;
    border-left: 3px solid #c9cde6;
    font-size: 13px;
    line-height: 1.75;
    color: #3a3f47;
    white-space: pre-wrap;
}

.schedule-detail-none {
    color: #a7acb8;
}

.schedule-detail-close {
    width: 100%;
    margin-top: 14px;
    padding: 9px;
    border: none;
    border-radius: 12px;
    background: #f0f1f6;
    color: #555c66;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}



.schedule-btn {
    flex: 1;
    padding: 9px;
    border: none;
    border-radius: 12px;
    background: #f0f1f6;
    color: #555c66;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.schedule-btn-primary {
    background: #5c6bc0;
    color: #fff;
}

.schedule-btn-primary:disabled {
    background: #c9cde6;
    cursor: default;
}

.schedule-add {
    width: 100%;
    padding: 10px;
    border: 1px dashed #c9cde6;
    border-radius: 12px;
    background: transparent;
    color: #5c6bc0;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.schedule-gen {
    width: 100%;
}

.schedule-hint {
    text-align: center;
    font-size: 12px;
    color: #878c99;
}



.schedule-blank {
    padding: 30px 14px;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.schedule-blank-line {
    font-size: 14px;
    color: #555c66;
}

.schedule-blank-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #878c99;
    line-height: 1.6;
}



.schedule-toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%) translateY(8px);
    max-width: 78%;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(46, 50, 56, 0.92);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10000;
    pointer-events: none;
}

.schedule-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
