/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    background-color: #F4F1E8;
    color: #23262B;
    -webkit-font-smoothing: antialiased;
    text-align: left;
} 

.v-text-t {
    vertical-align: text-top;
}

/* IE9 Helper Classes for Layout */
.fl {
    float: left;
}

.fr {
    float: right;
}

.ib {
    display: inline-block;
    vertical-align: middle;
    zoom: 1;
}

.top .wrapper {
    width: 1400px;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    outline: none;
}

.fixed-serarch {
    display: none;
}


/* Colors mapped from vars */
/* Brand: #2D4A7C, Live: #C8743B, Res: #3A6E94, Task: #4F8C5E, Comm: #4A8C9B */

.app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

/* Hero Section - Replaced Flex with Float/Inline-block */
.hero {
    overflow: hidden;
    margin-bottom: 24px;
}

.hero-left {
    float: left;
    max-width: 620px;
    width: 60%;
}

.hero-right {
    float: right;
    width: 38%;
    text-align: right;
}

.eyebrow {
    display: inline-block;
    font-size: 12.5px;
    color: #2D4A7C;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.eline {
    display: inline-block;
    width: 26px;
    height: 2px;
    background: #2D4A7C;
    vertical-align: middle;
    margin-right: 9px;
}

.htitle {
    font-weight: 700;
    font-size: 30px;
    line-height: 1.18;
    color: #23262B;
}

.sep {
    color: #2D4A7C;
    margin: 0 4px;
}

.hsub {
    font-size: 14px;
    color: #5C636B;
    margin-top: 9px;
}

.stats {
    display: inline-block;
    text-align: left;
}

.stat {
    display: inline-block;
    background: #FFFFFF;
    border: 1px solid #E6DFCC;
    border-radius: 10px;
    padding: 14px 20px 13px;
    min-width: 116px;
    margin-left: 12px;
    vertical-align: top;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 22px rgba(0, 0, 0, 0.06);
}

.snum {
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    color: #23262B;
}

.snum.brand {
    color: #2D4A7C;
}

.slabel {
    font-size: 12px;
    color: #8B929A;
    margin-top: 7px;
    letter-spacing: 0.5px;
}

.sunit {
    font-size: 14px;
    font-weight: 500;
    color: #5C636B;
    margin-left: 2px;
}

.sbar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    opacity: 0.5;
}

/* Nav row */
.navrow {
    overflow: hidden;
    margin: 24px 0 14px;
}

.monthnav-wrap {
    float: left;
}

.legend-wrap {
    float: right;
}

.monthnav {
    display: inline-block;
    background: #FFFFFF;
    border: 1px solid #E6DFCC;
    border-radius: 999px;
    /* IE9 ignores radius > half size usually, but ok */
    padding: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 22px rgba(0, 0, 0, 0.06);
}

.monthnav button {
    width: 34px;
    height: 34px;
    display: inline-block;
    text-align: center;
    line-height: 34px;
    color: #5C636B;
    border-radius: 50%;
}

.monthnav button:hover {
    background: #E7EDF6;
    color: #243D68;
}

.mlabel {
    font-weight: 600;
    font-size: 14px;
    min-width: 90px;
    text-align: center;
    display: inline-block;
    line-height: 34px;
}

.todaybtn {
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    color: #5C636B;
    display: inline-block;
    line-height: 34px;
    vertical-align: top;
}

.todaybtn:hover {
    background: #E7EDF6;
    color: #243D68;
}

.legend {
    display: inline-block;
}

.lcap {
    font-size: 11.5px;
    letter-spacing: 2px;
    color: #8B929A;
    font-weight: 600;
    margin-right: 16px;
    vertical-align: middle;
}

.litem {
    display: inline-block;
    font-size: 12.5px;
    color: #5C636B;
    cursor: pointer;
    margin-right: 16px;
}

.litem.off {
    opacity: 0.4;
    filter: alpha(opacity=40);
}

.ldot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 7px;
    vertical-align: middle;
    border: 1px solid transparent;
}

/* Calendar Card */
.calcard {
    background: #FFFFFF;
    border: 1px solid #E6DFCC;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 22px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.weekhead {
    overflow: hidden;
    background: #FBF8F1;
    border-bottom: 1px solid #E6DFCC;
}

.wh-cell {
    float: left;
    width: 14.2857%;
    padding: 12px 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 2px;
    color: #8B929A;
    font-weight: 600;
}

.wh-cell.we {
    color: #C8743B;
}

.weeks {
    width: 100%;
}

.week {
    border-bottom: 1px solid #E6DFCC;
    position: relative;
    overflow: hidden;
}

.week:last-child {
    border-bottom: none;
}

.dgrid-row {
    overflow: hidden;
    width: 100%;
    min-height: 134px;
}

.cell {
    float: left;
    width: 14.2857%;
    border-right: 1px solid #E6DFCC;
    padding: 8px 9px 8px;
    min-height: 134px;
    background: #FFFFFF;
    position: relative;
    cursor: pointer;
}

.cell:nth-child(7n) {
    border-right: none;
}

.cell.muted {
    background: #FBFAF4;
}

.cell.muted .dnum {
    color: #8B929A;
    opacity: 0.5;
    filter: alpha(opacity=50);
}

.cell.muted .barwrap {
    opacity: 0.45;
    filter: alpha(opacity=45);
}

.cell.today {
    background: #EEF2F9;
}

/* Simplified gradient */
.cell.today .dnum {
    background: #2D4A7C;
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    text-align: center;
    line-height: 26px;
    box-shadow: 0 3px 8px rgba(45, 74, 124, 0.3);
}

.cell.schoolstart {
    background: #F6EFE3;
}

.cell.schoolstart .dnum {
    color: #7A5230;
}

.schoolpill {
    position: absolute;
    top: 9px;
    right: 8px;
    font-size: 8px;
    font-weight: 600;
    color: #fff;
    background: #7A5230;
    border-radius: 999px;
    padding: 1px 7px;
    letter-spacing: 1px;
}

.dnum {
    font-weight: 600;
    font-size: 15px;
    color: #23262B;
    line-height: 1;
    width: 26px;
}

.dlunar {
    font-size: 9.5px;
    color: #8B929A;
    margin-top: 3px;
    letter-spacing: 0.3px;
}

/* Bars */
.barwrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
}

.bar {
    pointer-events: auto;
    position: absolute;
    height: 24px;
    line-height: 20px;
    display: inline-block;
    /* Fix for IE */
    padding: 0 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    /* Transition removed for IE9 perf/simplicity or kept basic */
}

.bar:hover {
    box-shadow: 0px 0px 4px 0px rgba(190, 214, 255, 1);
}

.bar:hover .bdot {
    transform: scale(1.2);
}

/* IE doesn't support brightness well, maybe just border change */

.bdot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
}

.btxt {
    vertical-align: middle;
}

.bar.cont {
    text-align: center;
    padding: 0;
    opacity: 0.92;
}

.bar.cont .bdot {
    margin: 0;
}

/* Drawer */
.scrim {
    position: fixed;
    inset: 0;
    /* IE9 doesn't support inset */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(35, 38, 43, 0.34);
    opacity: 0;
    display: none;
    /* Toggled via JS */
    z-index: 40;
}

.scrim.open {
    opacity: 1;
    display: block;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 420px;
    background: #FFFFFF;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
    z-index: 50;
    display: none;
}

.drawer.open {
    display: block;
}

.drawer-head {
    padding: 22px 24px 16px;
    border-bottom: 1px solid #E6DFCC;
    background: #FBF8F1;
    position: relative;
}

.d-date {
    font-size: 24px;
    font-weight: 700;
}

.d-sub {
    font-size: 12.5px;
    color: #8B929A;
    margin-top: 5px;
}

.drawer-body {
    padding: 16px 24px 28px;
    overflow-y: auto;
    height: calc(100% - 100px);
}

.dpaper {
    display: block;
    width: 100%;
    text-align: left;
    background: #FFFFFF;
    border: 1px solid #E6DFCC;
    border-radius: 10px;
    padding: 13px 15px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.dpaper:hover {
    border-color: #D8CFB6;
}

.dpaper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--lc, #ccc);
    /* Fallback handled in style attr */
}

.ph {
    overflow: hidden;
    margin-bottom: 8px;
}

.subtag {
    font-size: 10.5px;
    font-weight: 600;
    color: #fff;
    border-radius: 5px;
    padding: 2px 8px;
    display: inline-block;
}

.ptitle {
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 7px;
    line-height: 1.35;
}

.pmeta {
    font-size: 11.5px;
    color: #8B929A;
}

.popen {
    margin-top: 9px;
    font-size: 12px;
    color: #2D4A7C;
    font-weight: 600;
    display: inline-block;
}

.drawer-close {
    position: absolute;
    top: 15px;
    right: 17px;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    color: #8B929A;
}

.drawer-close:hover {
    background: #E7EDF6;
    color: #243D68;
    border-radius: 50%;
}

.nodata {
    padding: 44px 20px;
    text-align: center;
    color: #8B929A;
}

.nodata p {
    font-size: 13px;
    margin-top: 10px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: none;
    text-align: center;
    /* Centering trick for IE */
}

.modal.open {
    display: block;
}

.modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(35, 38, 43, 0.5);
}

/* IE9 Centering Wrapper */
.modal-center-helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    width: 0;
}

.modal-card {
    position: relative;
    width: 720px;
    max-width: 90%;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    max-height: 88vh;
}

.mband {
    height: 6px;
    width: 100%;
}

.mhead {
    padding: 22px 28px 18px;
    background: #FBF8F1;
    border-bottom: 1px solid #E6DFCC;
    position: relative;
}

.m-cat {
    font-size: 12px;
    color: #8B929A;
    margin-bottom: 9px;
}

.stag {
    color: #fff;
    border-radius: 5px;
    padding: 2px 9px;
    font-weight: 600;
    font-size: 11px;
    display: inline-block;
    margin-right: 8px;
}

.m-title {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

.m-meta {
    margin-top: 11px;
    font-size: 12.5px;
    color: #5C636B;
    overflow: hidden;
}

.m-meta span {
    display: inline-block;
    margin-right: 16px;
}

.m-meta b {
    color: #23262B;
    font-weight: 600;
}

.m-sep {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #D8CFB6;
    vertical-align: middle;
    margin-right: 16px;
}

.mbody {
    padding: 18px 28px 20px;
    overflow-y: auto;
    max-height: 60vh;
}

.msec {
    margin-top: 4px;
}

.msec+.msec {
    margin-top: 22px;
}

.msec-t {
    font-size: 11.5px;
    letter-spacing: 2px;
    color: #8B929A;
    font-weight: 600;
    margin-bottom: 11px;
    overflow: hidden;
}

.msec-t::after {
    content: "";
    display: block;
    float: left;
    width: 90%;
    height: 1px;
    background: #E6DFCC;
    margin-top: 0.6em;
}

.mdesc {
    font-size: 13.5px;
    color: #5C636B;
    line-height: 1.75;
}

.rlist-item {
    overflow: hidden;
    padding: 11px 0;
    border-bottom: 1px dashed #E6DFCC;
    cursor: pointer;
}

.rlist-item:last-child {
    border-bottom: none;
}

.ri-ico {
    float: left;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    text-align: center;
    line-height: 34px;
    margin-right: 12px;
}

.ri-main {
    float: left;
    width: calc(100% - 100px);
}

.ri-name {
    font-size: 13.5px;
    color: #23262B;
    font-weight: 500;
    line-height: 1.3;
}

.ri-type {
    font-size: 11px;
    color: #8B929A;
    margin-top: 2px;
}

.ri-go {
    float: right;
    font-size: 12px;
    color: #2D4A7C;
    font-weight: 600;
    line-height: 34px;
}

.mfoot {
    padding: 15px 28px;
    border-top: 1px solid #E6DFCC;
    background: #FBF8F1;
    overflow: hidden;
}

.mfoot .spacer {
    float: left;
    width: 20px;
}

.btn-action {
    float: left;
}

.btn-secondary {
    float: right;
}

.mclose {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    color: #8B929A;
    cursor: pointer;
    z-index: 2;
}

.mclose:hover {
    background: #E7EDF6;
    color: #243D68;
    border-radius: 50%;
}

.btn {
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    display: inline-block;
    vertical-align: middle;
    line-height: 38px;
    margin-right: 10px;
}

.btn-ghost {
    background: #FFFFFF;
    border: 1px solid #E6DFCC;
    color: #5C636B;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-ghost:hover {
    border-color: #D8CFB6;
    color: #23262B;
}

.btn-solid {
    background: #2D4A7C;
    color: #fff;
}

.btn-solid:hover {
    background: #243D68;
}

.btn-accent {
    color: #fff;
}

/* BG set inline */
.btn-accent:hover {
    filter: alpha(opacity=90);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    margin-left: -100px;
    /* Approximate centering */
    background: #23262B;
    color: #fff;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 13px;
    display: none;
    z-index: 80;
}

.toast.show {
    display: block;
}

@media (max-width: 920px) {
    .hero-left {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }

    .hero-right {
        width: 100%;
        float: none;
        text-align: left;
    }

    .stat {
        margin-left: 0;
        margin-right: 12px;
        margin-bottom: 12px;
    }
}

@media (max-width: 680px) {
    .app {
        padding: 16px;
    }

    .htitle {
        font-size: 23px;
    }

    .cell {
        min-height: 88px;
        padding: 6px;
    }

    .dnum {
        font-size: 13px;
    }

    .bar {
        font-size: 10px;
        height: 18px;
        padding: 0 6px;
    }

    .wh-cell {
        font-size: 10px;
        padding: 9px 0;
    }

    .drawer {
        width: 100%;
    }

    .modal-card {
        width: 95%;
    }
}