* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Arial,
        "Microsoft YaHei",
        sans-serif;
    background: #f5f5f5;
    color: #222;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: 90%;
    max-width: 680px;
    margin: 30px auto;
}

h1 {
    margin-bottom: 30px;
    text-align: center;
}

h2 {
    margin-top: 0;
    font-size: 20px;
}

.card {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow:
        0 2px 10px
        rgba(0, 0, 0, 0.06);
}

a {
    color: #222;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.schedule-item {
    display: grid;
    grid-template-columns:
        60px
        minmax(0, 1fr)
        auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.schedule-item:last-child {
    border-bottom: 0;
}

.schedule-time {
    font-weight: bold;
}

.schedule-content {
    overflow-wrap: anywhere;
}

.schedule-status {
    font-size: 13px;
    color: #666;
}

.error-message {
    color: #b42318;
}

@media (max-width: 480px) {
    .container {
        width: 94%;
        margin-top: 18px;
    }

    .card {
        padding: 16px;
    }

    .schedule-item {
        grid-template-columns: 52px 1fr;
    }

    .schedule-status {
        grid-column: 2;
    }
}

textarea {

    width:100%;

    padding:12px;

    border-radius:8px;

    border:1px solid #ddd;

    resize:vertical;

}



.form-group {

    margin-bottom:15px;

}



.reminder-item {


    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    padding:15px 0;

    border-bottom:
    1px solid #eee;

}



.reminder-content {

    flex:1;

    word-break:break-word;

}



.reminder-actions {


    display:flex;

    align-items:center;

    gap:10px;

}



@media(max-width:480px){


.reminder-item{

    flex-direction:column;

    align-items:flex-start;

}


}

.setting-item {

    margin-bottom:15px;

}

body.auth-pending main {
    visibility: hidden;
}


.data-management-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.data-management-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.data-management-divider {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.data-management-file-name {
    overflow-wrap: anywhere;
}



input[type="number"],
input[type="time"] {

    padding:8px;

    border:

    1px solid #ddd;

    border-radius:6px;

    margin-left:8px;

}



input[type="checkbox"],
input[type="radio"] {

    margin-right:6px;

}



button {

    background:#222;

    color:white;

}



button:hover {

    opacity:0.85;

}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 4px 0 8px;
    text-align: left;
}

.eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
}

.page-description {
    margin: 0;
    color: #666;
    line-height: 1.7;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.card-label {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.muted-text {
    margin-bottom: 0;
    color: #666;
    line-height: 1.6;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-badge-enabled {
    background: #e8f7ee;
    color: #18794e;
}

.status-badge-disabled {
    background: #f1f1f1;
    color: #666;
}

.status-badge-error {
    background: #feeceb;
    color: #b42318;
}

.next-reminder-card {
    position: relative;
    overflow: hidden;
}

.next-reminder-time {
    margin: 12px 0 4px;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.next-reminder-countdown {
    margin: 0;
    color: #666;
}

.next-reminder-content {
    margin: 16px 0 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #222;
    text-decoration: none;
}

.secondary-button:hover {
    text-decoration: none;
    background: #f7f7f7;
}

.secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.pwa-install-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.pwa-install-card h2 {
    margin-bottom: 8px;
}

.pwa-install-card[hidden] {
    display: none;
}

.page-header-actions,
.page-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.page-navigation {
    margin-bottom: 20px;
}

.current-user-email {
    max-width: 220px;
    overflow-wrap: anywhere;
    color: #666;
    font-size: 14px;
}

.auth-container {
    max-width: 460px;
}

.auth-card h1 {
    margin: 8px 0;
    text-align: left;
}

.auth-form {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.auth-form input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.auth-form button {
    margin-top: 10px;
}

.auth-footer {
    margin: 20px 0 0;
    color: #666;
}

.schedule-status-pending {
    color: #8a6116;
}

.schedule-status-sent {
    color: #18794e;
}

.schedule-status-skipped {
    color: #777;
}

.empty-state {
    padding: 20px 0 4px;
    text-align: center;
    color: #666;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

.action-link:hover {
    text-decoration: none;
    background: #fafafa;
}

.action-link span {
    font-size: 14px;
    color: #666;
}

@media (max-width: 600px) {
    .page-header {
        flex-direction: column;
    }

    .page-header-actions {
        width: 100%;
    }

    .page-header-actions .secondary-button {
        flex: 1;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .pwa-install-card {
        flex-direction: column;
        align-items: stretch;
    }

    .pwa-install-card .secondary-button {
        width: 100%;
    }

    .next-reminder-time {
        font-size: 36px;
    }
}

.global-message {

    position: fixed;

    top: 20px;

    left: 50%;

    transform:
    translateX(-50%)
    translateY(-20px);

    padding:14px 24px;

    border-radius:10px;

    background:white;

    font-size:16px;

    font-weight:600;

    opacity:0 !important;

    pointer-events:none;

    transition:
    all 0.25s ease;

    box-shadow:
    0 8px 30px
    rgba(0,0,0,0.15);

    z-index:99999;

}



.global-message.show {

    opacity:1 !important; 

    transform:
    translateX(-50%)
    translateY(0) !important;

}



.global-message.success {

    color:#18794e;

}



.global-message.error {

    color:#b42318;

}

.modal {

    position:fixed;

    inset:0;

    display:none;

    z-index:10000;

}


.modal.show {

    display:block;

}



.modal-mask {

    position:absolute;

    inset:0;

    background:
    rgba(0,0,0,0.35);

}



.modal-box {

    position:absolute;

    top:50%;

    left:50%;


    transform:
    translate(-50%,-50%);


    width:90%;

    max-width:400px;


    padding:24px;


    background:white;

    border-radius:14px;


    box-shadow:
    0 10px 40px
    rgba(0,0,0,0.15);

}



.modal-actions {

    display:flex;

    justify-content:flex-end;

    gap:12px;

    margin-top:20px;

}



.danger-button {

    background:#b42318;

    color:white;

}

.schedule-status-failed {
    color: #b42318;
}

.notification-history-list {
    margin-top: 8px;
}

.notification-history-item {
    display: grid;
    grid-template-columns:
        92px
        minmax(0, 1fr)
        auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.notification-history-item:last-child {
    border-bottom: 0;
}

.notification-history-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-history-time strong {
    font-size: 16px;
}

.notification-history-time span {
    font-size: 12px;
    color: #777;
}

.notification-history-content {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.notification-status {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.notification-status-pending {
    background: #fff4d6;
    color: #8a6116;
}

.notification-status-sent {
    background: #e8f7ee;
    color: #18794e;
}

.notification-status-failed {
    background: #feeceb;
    color: #b42318;
}

.notification-status-unknown {
    background: #f1f1f1;
    color: #666;
}

@media (max-width: 480px) {
    .notification-history-item {
        grid-template-columns:
            72px
            minmax(0, 1fr);
    }

    .notification-status {
        grid-column: 2;
        justify-self: start;
    }
}






.notification-settings-card {
    overflow: hidden;
}

.notification-settings-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.notification-setting-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    min-height: 180px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fafafa;
}

.notification-setting-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.notification-setting-heading h3 {
    margin: 2px 0 8px;
    font-size: 17px;
}

.notification-setting-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e5e5e5;
    font-size: 18px;
}

.notification-setting-description {
    margin: 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.notification-setting-button {
    align-self: flex-start;
    min-width: 132px;
}

@media (max-width: 600px) {
    .notification-settings-grid {
        grid-template-columns: 1fr;
    }

    .notification-setting-item {
        min-height: auto;
    }

    .notification-setting-button {
        width: 100%;
    }
}

