.dashboard-shell {
    min-height: 100vh;
    padding: clamp(0.45rem, 1.2vw, 1rem);
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, rgba(61, 39, 16, 0.34), transparent 58%),
        repeating-linear-gradient(90deg, rgba(255, 236, 180, 0.018) 0 1px, transparent 1px 12px);
}

.dashboard-paper {
    width: min(100%, 1280px);
    min-height: min(748px, calc(100vh - 0.9rem));
    max-height: calc(100vh - 0.9rem);
    padding: clamp(0.85rem, 1.55vw, 1.45rem);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(0.7rem, 1.25vw, 1.1rem);
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 8% 11%, rgba(103, 59, 20, 0.3), transparent 9rem),
        radial-gradient(ellipse at 96% 2%, rgba(57, 28, 8, 0.36), transparent 8rem),
        radial-gradient(circle at 14% 16%, rgba(255, 248, 215, 0.5), transparent 17rem),
        radial-gradient(circle at 84% 12%, rgba(104, 70, 25, 0.18), transparent 18rem),
        repeating-linear-gradient(102deg, rgba(72, 43, 13, 0.052) 0 2px, transparent 2px 7px),
        repeating-linear-gradient(8deg, rgba(255, 245, 202, 0.1) 0 1px, transparent 1px 9px),
        linear-gradient(135deg, #e2cf9d 0%, #c3a46f 100%);
    border: 1px solid rgba(49, 30, 12, 0.62);
    border-radius: 8px;
    box-shadow:
        0 26px 76px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(238, 213, 151, 0.18),
        inset 0 0 52px rgba(84, 46, 13, 0.38),
        inset 0 0 0 10px rgba(70, 41, 16, 0.1);
    overflow: hidden;
}

.dashboard-paper::before,
.dashboard-paper::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
}

.dashboard-paper::before {
    z-index: 0;
    border: 12px solid rgba(53, 29, 10, 0.26);
    clip-path: polygon(1% 5%, 5% 2%, 14% 3%, 22% 1%, 35% 3%, 48% 1%, 58% 2%, 74% 1%, 88% 3%, 98% 1%, 96% 13%, 99% 28%, 96% 47%, 99% 63%, 97% 78%, 99% 96%, 85% 98%, 71% 96%, 59% 99%, 45% 97%, 29% 99%, 16% 97%, 2% 99%, 4% 84%, 1% 70%, 3% 55%, 1% 38%, 3% 24%);
    filter: blur(0.5px);
}

.dashboard-paper::after {
    z-index: 0;
    background:
        radial-gradient(ellipse at 8% 8%, rgba(55, 27, 8, 0.34), transparent 11rem),
        radial-gradient(ellipse at 94% 93%, rgba(55, 27, 8, 0.32), transparent 11rem),
        linear-gradient(to right, rgba(48, 25, 7, 0.46), transparent 4%, transparent 96%, rgba(48, 25, 7, 0.46)),
        linear-gradient(to bottom, rgba(48, 25, 7, 0.46), transparent 5%, transparent 95%, rgba(48, 25, 7, 0.44));
    mix-blend-mode: multiply;
}

.paper-fastener {
    width: 1.72rem;
    height: 1.72rem;
    position: absolute;
    top: 0.75rem;
    z-index: 2;
    background:
        radial-gradient(circle at 34% 27%, #fff8dc 0 9%, #d5c5a7 18%, #8a7a63 42%, #372b21 76%),
        radial-gradient(circle at 63% 70%, rgba(0, 0, 0, 0.36), transparent 45%);
    border-radius: 50%;
    box-shadow:
        0 0.38rem 0.58rem rgba(27, 16, 7, 0.52),
        inset -0.1rem -0.1rem 0.16rem rgba(16, 10, 4, 0.45);
}

.paper-fastener--top-left {
    left: 1.05rem;
    transform: rotate(-18deg);
}

.paper-fastener--top-right {
    right: 1.25rem;
    transform: rotate(15deg);
}

.dashboard-header,
.dashboard-main,
.bottom-actions {
    position: relative;
    z-index: 1;
}

.dashboard-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1rem, 1.8vw, 1.55rem);
    align-items: start;
}

.date-strip,
.weather-card,
.section-card,
.action-button {
    border: 1px solid rgba(88, 58, 22, 0.24);
    box-shadow:
        0 0.68rem 1.25rem rgba(47, 30, 12, 0.3),
        0 0.1rem 0 rgba(255, 244, 204, 0.16),
        inset 0 0 1.15rem rgba(255, 248, 218, 0.24);
}

.date-strip {
    min-height: clamp(5.15rem, 7.65vw, 6.3rem);
    padding: clamp(0.9rem, 1.65vw, 1.25rem) clamp(1.15rem, 2.15vw, 1.8rem);
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 1.6vw, 1.25rem);
    background:
        linear-gradient(100deg, rgba(255, 251, 223, 0.7), transparent 72%),
        repeating-linear-gradient(0deg, rgba(82, 53, 20, 0.042) 0 1px, transparent 1px 6px),
        linear-gradient(180deg, #f0e3bb 0%, #e4d0a2 100%);
    border-radius: 7px;
    clip-path: polygon(0 10%, 3% 4%, 12% 6%, 22% 3%, 34% 5%, 44% 2%, 56% 5%, 68% 3%, 81% 6%, 98% 4%, 100% 90%, 96% 97%, 84% 94%, 69% 98%, 55% 95%, 43% 98%, 28% 95%, 16% 98%, 2% 94%);
    transform: rotate(-0.45deg);
    min-width: 0;
}

.dashboard-time {
    font-size: clamp(3rem, 5vw, 4.65rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0.05rem 0.08rem 0 rgba(126, 86, 34, 0.16);
}

.dashboard-separator,
.dashboard-date {
    font-size: clamp(1.5rem, 2.45vw, 2.48rem);
    line-height: 1.05;
}

.dashboard-date {
    font-style: italic;
    white-space: nowrap;
    min-width: 0;
}

.dashboard-weather {
    display: flex;
    gap: clamp(0.75rem, 1.2vw, 1rem);
}

.weather-card {
    width: clamp(11.55rem, 15.65vw, 13.7rem);
    min-height: clamp(7.18rem, 9.7vw, 8.32rem);
    padding: 1.04rem 1rem 0.94rem;
    position: relative;
    display: block;
    background:
        radial-gradient(ellipse at 93% 9%, rgba(85, 47, 13, 0.14), transparent 4.5rem),
        linear-gradient(140deg, rgba(255, 249, 218, 0.5), transparent 68%),
        repeating-linear-gradient(95deg, rgba(87, 54, 18, 0.048) 0 2px, transparent 2px 7px),
        #dfc894;
    border-radius: 7px;
    text-align: center;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    clip-path: polygon(2% 5%, 14% 2%, 29% 4%, 44% 2%, 59% 5%, 76% 2%, 98% 5%, 96% 30%, 99% 50%, 96% 75%, 98% 96%, 77% 98%, 58% 96%, 41% 99%, 24% 96%, 3% 98%, 5% 75%, 2% 52%, 5% 28%);
    appearance: none;
    transition: filter 140ms ease, transform 140ms ease;
}

.weather-card:nth-child(2) {
    transform: rotate(0.4deg);
}

.weather-card:hover,
.weather-card:focus-visible {
    filter: brightness(1.045);
    outline: 3px solid rgba(247, 237, 207, 0.78);
    outline-offset: 3px;
}

.weather-card-title {
    display: block;
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 2vw, 1.55rem);
    font-style: italic;
    font-weight: 500;
    text-shadow: 0.03rem 0.06rem 0 rgba(126, 86, 34, 0.14);
}

.weather-card-body {
    display: grid;
    grid-template-columns: 3.65rem minmax(0, 1fr);
    gap: 0.35rem;
    align-items: center;
}

.weather-card-reading {
    display: block;
}

.weather-card strong {
    display: block;
    font-size: clamp(2.25rem, 3.4vw, 2.7rem);
    line-height: 1;
}

.weather-card-condition {
    display: block;
    font-size: clamp(0.88rem, 1.2vw, 1rem);
    font-style: italic;
    line-height: 1.08;
}

.weather-symbol {
    width: 4rem;
    height: 3.4rem;
    position: relative;
    display: block;
}

.weather-symbol::before,
.weather-symbol::after {
    content: "";
    position: absolute;
}

.weather-symbol--sun::before,
.weather-symbol--partly::before {
    width: 2.3rem;
    height: 2.3rem;
    left: 0.72rem;
    top: 0.43rem;
    background: #c98d22;
    border-radius: 50%;
    box-shadow:
        0 0 0 0.33rem rgba(201, 141, 34, 0.18),
        0 0 0 0.73rem rgba(201, 141, 34, 0.12);
}

.weather-symbol--partly::after {
    width: 3rem;
    height: 1.35rem;
    left: 0.68rem;
    top: 1.75rem;
    background: #9da096;
    border-radius: 2rem;
    box-shadow: 1rem -0.55rem 0 0.15rem #b5b8ae, 1.8rem 0 0 #888b82;
}

.weather-symbol--rain::before,
.weather-symbol--snow::before,
.weather-symbol--fog::before,
.weather-symbol--storm::before,
.weather-symbol--unavailable::before {
    width: 3.15rem;
    height: 1.45rem;
    left: 0.42rem;
    top: 1.05rem;
    background: #9da096;
    border-radius: 2rem;
    box-shadow: 0.8rem -0.52rem 0 0.16rem #b5b8ae, 1.65rem 0.04rem 0 #85897f;
}

.weather-symbol--rain::after {
    width: 0.28rem;
    height: 0.78rem;
    left: 1.1rem;
    top: 2.55rem;
    background: #315a7c;
    border-radius: 1rem;
    box-shadow: 0.78rem -0.08rem 0 #315a7c, 1.56rem 0 0 #315a7c;
    transform: rotate(12deg);
}

.weather-symbol--snow::after {
    content: "*";
    left: 1.05rem;
    top: 2.28rem;
    color: #eef7f7;
    font-size: 1.55rem;
    line-height: 1;
    text-shadow: 0.95rem 0.12rem 0 #eef7f7, 1.78rem -0.04rem 0 #eef7f7;
}

.weather-symbol--fog::after {
    width: 3.05rem;
    height: 0.18rem;
    left: 0.54rem;
    top: 2.72rem;
    background: rgba(108, 112, 105, 0.82);
    border-radius: 1rem;
    box-shadow: 0 0.42rem 0 rgba(108, 112, 105, 0.62);
}

.weather-symbol--storm::after {
    width: 0.95rem;
    height: 1.55rem;
    left: 1.68rem;
    top: 2.16rem;
    background: #c98d22;
    clip-path: polygon(42% 0, 100% 0, 58% 43%, 100% 43%, 24% 100%, 43% 54%, 0 54%);
    filter: drop-shadow(0.06rem 0.08rem 0 rgba(72, 43, 13, 0.28));
}

.weather-symbol--unavailable::after {
    content: "?";
    left: 1.55rem;
    top: 1.2rem;
    color: #f7edcf;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0.05rem 0.08rem 0 rgba(42, 26, 10, 0.35);
}

.paper-pin {
    width: 1rem;
    height: 1rem;
    position: absolute;
    left: 1.2rem;
    top: 0.85rem;
    z-index: 2;
    background: radial-gradient(circle at 32% 28%, #fff6dc 0 12%, #9d8e75 30%, #3d3328 72%);
    border-radius: 50%;
    box-shadow: 0 0.18rem 0.36rem rgba(25, 17, 8, 0.48);
}

.paper-pin--top {
    left: 50%;
    top: -0.42rem;
    transform: translateX(-50%);
}

.dashboard-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(0.85rem, 1.75vw, 1.65rem);
    min-height: 0;
}

.appointments-column {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(0.65rem, 1.15vw, 1rem);
}

.section-card {
    position: relative;
    min-height: 0;
    isolation: isolate;
    padding: clamp(3.45rem, 4.55vw, 3.95rem) clamp(0.78rem, 1.3vw, 1.1rem) clamp(0.68rem, 1vw, 0.95rem);
    background:
        radial-gradient(ellipse at 86% 12%, rgba(96, 56, 18, 0.11), transparent 8rem),
        linear-gradient(145deg, rgba(255, 250, 224, 0.62), transparent 38%),
        repeating-linear-gradient(90deg, rgba(72, 43, 13, 0.03) 0 2px, transparent 2px 8px),
        rgba(239, 224, 184, 0.88);
    border-radius: 7px;
    clip-path: polygon(1% 4%, 8% 2%, 22% 3%, 36% 1%, 51% 3%, 66% 2%, 82% 4%, 98% 2%, 99% 25%, 98% 48%, 100% 72%, 98% 97%, 84% 96%, 69% 99%, 53% 97%, 39% 99%, 24% 97%, 3% 98%, 2% 74%, 1% 52%, 3% 29%);
}

.section-card::after {
    content: "";
    position: absolute;
    inset: 0.55rem;
    z-index: 0;
    border: 1px solid rgba(72, 43, 13, 0.11);
    border-radius: 6px;
    pointer-events: none;
}

.section-ribbon {
    min-width: clamp(13rem, 19vw, 16.5rem);
    height: clamp(3.65rem, 5.05vw, 4.12rem);
    padding: 0.26rem 1.1rem 0.16rem 4.15rem;
    position: absolute;
    z-index: 2;
    left: 0.9rem;
    top: -0.08rem;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at 5% 55%, rgba(247, 237, 207, 0.18), transparent 2.5rem),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 72%),
        repeating-linear-gradient(95deg, rgba(0, 0, 0, 0.09) 0 2px, transparent 2px 7px),
        var(--ribbon-bg);
    color: var(--ribbon-ink);
    border-radius: 5px 2px 5px 2px;
    clip-path: polygon(0 8%, 8% 0, 93% 6%, 100% 0, 96% 47%, 100% 92%, 78% 97%, 63% 92%, 43% 100%, 21% 93%, 0 100%);
    box-shadow: 0 0.35rem 0.75rem rgba(28, 23, 18, 0.3);
}

.section-ribbon h2 {
    margin: 0;
    font-size: clamp(1.32rem, 2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0.16rem;
    line-height: 1.08;
    text-shadow:
        0 0.08rem 0 rgba(34, 24, 16, 0.42),
        0 0 0.35rem rgba(247, 237, 207, 0.16);
    white-space: nowrap;
}

.section-ribbon--wide {
    min-width: clamp(18rem, 27vw, 22rem);
    height: clamp(3.85rem, 5.35vw, 4.35rem);
    padding: 0.28rem 1.55rem 0.18rem 4.45rem;
    top: -0.08rem;
}

.section-ribbon--wide h2 {
    font-size: clamp(1.18rem, 1.65vw, 1.48rem);
    letter-spacing: 0.08rem;
    line-height: 1.08;
    text-shadow:
        0 0.08rem 0 rgba(34, 24, 16, 0.42),
        0 0 0.35rem rgba(247, 237, 207, 0.18);
    white-space: nowrap;
}

.section-ribbon--wide .section-icon {
    left: 0.68rem;
}

.section-icon {
    width: 2.65rem;
    height: 2.65rem;
    position: absolute;
    left: 0.78rem;
    display: grid;
    place-items: center;
    background: #efe0b8;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(80, 58, 28, 0.12), 0 0.16rem 0.3rem rgba(27, 17, 7, 0.28);
}

.section-icon::before {
    content: "";
    width: 1.3rem;
    height: 1.2rem;
    border: 0.18rem solid #392c1a;
    border-top-width: 0.35rem;
    border-radius: 0.18rem;
}

.section-icon--note::before {
    height: 1.45rem;
    border-top-width: 0.18rem;
    background: repeating-linear-gradient(to bottom, transparent 0 0.28rem, rgba(57, 44, 26, 0.4) 0.28rem 0.38rem);
}

.appointment-list {
    position: relative;
    z-index: 1;
    border: 1px dashed rgba(60, 45, 25, 0.22);
    background:
        repeating-linear-gradient(to bottom, transparent 0 3.25rem, rgba(71, 43, 15, 0.055) 3.25rem 3.32rem),
        rgba(255, 248, 218, 0.18);
    box-shadow: inset 0 0 1.2rem rgba(90, 56, 19, 0.08);
}

.appointment-row {
    width: 100%;
    min-height: clamp(2.82rem, 4vw, 3.35rem);
    padding: 0;
    display: grid;
    grid-template-columns: 0.34rem 3rem 5.55rem minmax(0, 1fr);
    align-items: center;
    color: var(--appointment-accent, var(--appointment-default-color));
    background: transparent;
    border: 0;
    border-bottom: 1px dashed var(--line-soft);
    cursor: pointer;
    font: inherit;
    text-align: left;
    appearance: none;
    transition: background-color 140ms ease, filter 140ms ease;
}

.appointment-row:last-child {
    border-bottom: 0;
}

.appointment-row:hover,
.appointment-row:focus-visible {
    background: rgba(255, 248, 218, 0.28);
    filter: brightness(1.03);
    outline: 3px solid rgba(247, 237, 207, 0.62);
    outline-offset: -3px;
}

.appointment-accent-bar {
    align-self: stretch;
    background: currentColor;
    opacity: 0.62;
}

.appointment-clock {
    width: 1.7rem;
    height: 1.7rem;
    margin-left: 0.55rem;
    position: relative;
    display: inline-block;
    border: 0.18rem solid currentColor;
    border-radius: 50%;
}

.appointment-clock::before,
.appointment-clock::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.15rem;
    background: currentColor;
    transform-origin: bottom center;
}

.appointment-clock::before {
    height: 0.6rem;
    transform: translate(-50%, -100%) rotate(0deg);
}

.appointment-clock::after {
    height: 0.5rem;
    transform: translate(-50%, -100%) rotate(120deg);
}

.appointment-time,
.appointment-title {
    font-size: clamp(1.25rem, 1.78vw, 1.72rem);
    font-weight: 800;
    text-shadow: 0.03rem 0.04rem 0 rgba(255, 248, 218, 0.32);
}

.appointment-time {
    padding-right: 0.8rem;
    border-right: 1px dashed rgba(60, 45, 25, 0.36);
    font-variant-numeric: tabular-nums;
}

.appointment-title {
    min-width: 0;
    padding-left: clamp(1rem, 1.6vw, 1.45rem);
    font-style: italic;
    overflow-wrap: break-word;
}

.dashboard-empty-message {
    margin: 0;
    padding: clamp(0.95rem, 1.45vw, 1.25rem);
    color: rgba(43, 33, 24, 0.72);
    font-size: clamp(1.12rem, 1.55vw, 1.42rem);
    font-style: italic;
    line-height: 1.2;
}

.dashboard-feedback {
    margin: 0;
    padding: 0.65rem 1.05rem;
    position: absolute;
    left: 50%;
    bottom: clamp(5.15rem, 7vw, 6.4rem);
    z-index: 4;
    color: #2d2113;
    background:
        linear-gradient(135deg, rgba(255, 249, 220, 0.68), transparent 72%),
        var(--paper-light);
    border: 1px solid rgba(83, 55, 23, 0.3);
    border-radius: 6px;
    box-shadow: 0 0.45rem 1rem rgba(35, 21, 8, 0.26);
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    font-style: italic;
    transform: translateX(-50%) rotate(-0.2deg);
}

.postit-board {
    min-height: 100%;
    padding-top: clamp(3.75rem, 5.15vw, 4.35rem);
}

.postit-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(0.62rem, 1.08vw, 0.88rem);
}

.postit-card {
    width: 100%;
    min-height: clamp(4.35rem, 6.25vw, 5.15rem);
    padding: clamp(0.82rem, 1.2vw, 1rem) clamp(1.2rem, 1.65vw, 1.5rem) clamp(0.82rem, 1.2vw, 1rem) clamp(4rem, 5.15vw, 4.65rem);
    position: relative;
    display: flex;
    align-items: center;
    color: var(--ink);
    border: 1px solid rgba(92, 62, 23, 0.18);
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    text-align: left;
    box-shadow:
        0 0.58rem 0.95rem rgba(42, 26, 10, 0.25),
        0 0.08rem 0 rgba(255, 244, 204, 0.17),
        inset 0 0 1rem rgba(255, 255, 255, 0.18);
    transform: rotate(var(--postit-tilt));
    clip-path: polygon(0 7%, 4% 2%, 18% 4%, 35% 2%, 52% 3%, 70% 2%, 97% 5%, 100% 35%, 98% 70%, 100% 95%, 81% 98%, 62% 96%, 44% 99%, 26% 96%, 4% 98%, 2% 68%);
    transition: filter 140ms ease, transform 140ms ease;
    appearance: none;
}

.postit-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 86% 20%, rgba(98, 58, 20, 0.1), transparent 5rem),
        repeating-linear-gradient(96deg, rgba(83, 53, 18, 0.04) 0 2px, transparent 2px 8px);
    pointer-events: none;
    mix-blend-mode: multiply;
}

.postit-card:hover,
.postit-card:focus-visible {
    filter: brightness(1.035);
    transform: rotate(var(--postit-tilt)) translateY(-0.08rem);
    outline: 3px solid rgba(247, 237, 207, 0.72);
    outline-offset: 3px;
}

.postit-card:nth-child(2n) {
    margin-right: clamp(0.15rem, 0.65vw, 0.55rem);
}

.postit-card:nth-child(2n + 1) {
    margin-left: clamp(0.12rem, 0.55vw, 0.45rem);
}

.postit-card p {
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: clamp(1.32rem, 1.95vw, 1.95rem);
    line-height: 1.08;
    font-style: italic;
    text-shadow: 0.03rem 0.06rem 0 rgba(255, 248, 218, 0.38);
}

.paper-curl {
    width: 2.15rem;
    height: 1.45rem;
    position: absolute;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.43), rgba(76, 48, 19, 0.2));
    border-radius: 100% 0 0 0;
    box-shadow: -0.18rem -0.18rem 0.35rem rgba(53, 32, 10, 0.15);
}

.postit-card--yellow {
    background: var(--postit-yellow);
}

.postit-card--blue {
    background: var(--postit-blue);
}

.postit-card--pink {
    background: var(--postit-pink);
}

.postit-card--green {
    background: var(--postit-green);
}

.postit-card--purple {
    background: var(--postit-purple);
}

.postit-card--beige {
    background: var(--postit-beige);
}

.bottom-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr);
    gap: clamp(0.75rem, 1.55vw, 1.35rem);
}

.action-button {
    min-height: clamp(4.85rem, 6.7vw, 5.85rem);
    padding: clamp(0.7rem, 1.25vw, 1rem) clamp(0.85rem, 1.6vw, 1.25rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 1.2vw, 1rem);
    border-radius: 7px;
    border: 1px solid rgba(78, 48, 19, 0.32);
    cursor: default;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    clip-path: polygon(1% 8%, 6% 2%, 21% 4%, 37% 1%, 56% 4%, 76% 2%, 98% 5%, 96% 34%, 99% 63%, 97% 95%, 78% 98%, 62% 96%, 45% 99%, 24% 96%, 2% 98%, 4% 68%);
    transition: transform 140ms ease, filter 140ms ease;
}

.action-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 46%),
        repeating-linear-gradient(93deg, rgba(78, 48, 17, 0.05) 0 2px, transparent 2px 8px);
    pointer-events: none;
    mix-blend-mode: multiply;
}

.action-button--enabled {
    cursor: pointer;
}

.action-button--enabled:hover,
.action-button--enabled:focus-visible {
    filter: brightness(1.04);
    transform: translateY(-0.08rem) rotate(-0.15deg);
    outline: 3px solid rgba(247, 237, 207, 0.82);
    outline-offset: 3px;
}

.action-button span:last-child {
    position: relative;
    z-index: 1;
    font-size: clamp(1.42rem, 2.35vw, 2.42rem);
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0.04rem 0.07rem 0 rgba(255, 248, 218, 0.32);
}

.action-button--postit {
    background: #d8bfc2;
    color: #4a3471;
}

.action-button--appointment {
    background: #c5d0cd;
    color: #173d5a;
}

.action-button--calendar {
    background: #ead8aa;
    color: #4b2f0e;
}

.action-icon {
    width: clamp(2.85rem, 4.2vw, 3.4rem);
    height: clamp(2.85rem, 4.2vw, 3.4rem);
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: inherit;
    background: currentColor;
    border-radius: 6px;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.action-icon--postit {
    color: #4a3471;
    background: currentColor;
}

.action-icon--postit::before {
    content: "+";
    color: #f7edcf;
    font-size: clamp(2.25rem, 3.4vw, 2.8rem);
    line-height: 1;
}

.action-icon--calendar {
    background: currentColor;
}

.action-icon--calendar::before,
.action-icon--calendar::after {
    content: "";
    position: absolute;
    left: 0.62rem;
    right: 0.62rem;
}

.action-icon--calendar::before {
    top: 0.72rem;
    height: 0.32rem;
    background: #f7edcf;
    box-shadow: 0 0.7rem 0 #f7edcf, 0 1.4rem 0 #f7edcf;
}

.action-icon--calendar::after {
    top: 0.35rem;
    height: 0.42rem;
    border-left: 0.24rem solid #f7edcf;
    border-right: 0.24rem solid #f7edcf;
}

.login-shell {
    min-height: 100vh;
    padding: clamp(0.65rem, 1.6vw, 1.25rem);
    display: grid;
    place-items: center;
    overflow: auto;
    background:
        radial-gradient(ellipse at center, rgba(61, 39, 16, 0.34), transparent 58%),
        repeating-linear-gradient(90deg, rgba(255, 236, 180, 0.018) 0 1px, transparent 1px 12px);
}

.login-paper {
    width: min(100%, 44rem);
    min-height: 25rem;
    padding: clamp(1.4rem, 4vw, 2.4rem);
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse at 8% 11%, rgba(103, 59, 20, 0.3), transparent 9rem),
        radial-gradient(ellipse at 96% 2%, rgba(57, 28, 8, 0.36), transparent 8rem),
        repeating-linear-gradient(0deg, rgba(84, 50, 16, 0.035) 0 1px, transparent 1px 7px),
        repeating-linear-gradient(90deg, rgba(79, 44, 12, 0.03) 0 1px, transparent 1px 10px),
        linear-gradient(135deg, #e2cf9d 0%, #c3a46f 100%);
    border: 1px solid rgba(49, 30, 12, 0.62);
    border-radius: 8px;
    box-shadow:
        0 26px 76px rgba(0, 0, 0, 0.72),
        inset 0 0 52px rgba(84, 46, 13, 0.38),
        inset 0 0 0 10px rgba(70, 41, 16, 0.1);
    overflow: hidden;
}

.login-card {
    width: min(100%, 31rem);
    padding: clamp(1.2rem, 3vw, 1.8rem);
    position: relative;
    z-index: 1;
    background:
        linear-gradient(145deg, rgba(255, 250, 224, 0.66), transparent 38%),
        repeating-linear-gradient(90deg, rgba(72, 43, 13, 0.03) 0 2px, transparent 2px 8px),
        rgba(239, 224, 184, 0.9);
    border: 1px solid rgba(88, 58, 22, 0.24);
    border-radius: 7px;
    box-shadow:
        0 0.68rem 1.25rem rgba(47, 30, 12, 0.3),
        inset 0 0 1.15rem rgba(255, 248, 218, 0.24);
}

.login-card h1 {
    width: fit-content;
    margin: 0 0 0.85rem;
    padding: 0.42rem 1.25rem;
    color: var(--ribbon-ink);
    background: var(--ribbon-bg);
    border-radius: 5px;
    font-size: clamp(1.9rem, 4vw, 2.65rem);
    font-style: italic;
    letter-spacing: 0.04rem;
    box-shadow: 0 0.35rem 0.75rem rgba(28, 23, 18, 0.3);
    clip-path: polygon(0 0, 100% 0, 96% 51%, 100% 94%, 78% 98%, 60% 93%, 38% 100%, 17% 94%, 0 99%);
}

.login-card p {
    margin: 0 0 1rem;
    color: var(--muted-ink);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    font-style: italic;
    line-height: 1.25;
}

.login-message {
    padding: 0.68rem 0.8rem;
    color: #6f1d1b;
    background: rgba(223, 168, 160, 0.36);
    border: 1px solid rgba(111, 29, 27, 0.2);
    border-radius: 6px;
}

.login-form {
    display: grid;
    gap: 0.75rem;
}

.login-form label {
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 800;
}

.login-form input {
    min-height: 3.15rem;
    padding: 0.65rem 0.78rem;
    color: var(--ink);
    background: rgba(255, 248, 218, 0.72);
    border: 1px solid rgba(88, 58, 22, 0.32);
    border-radius: 6px;
    box-shadow: inset 0 0 0.7rem rgba(99, 63, 21, 0.08);
    font: inherit;
    font-size: 1.1rem;
}

.login-form input:focus {
    border-color: rgba(72, 81, 90, 0.72);
    outline: 3px solid rgba(72, 81, 90, 0.18);
}

.login-form button {
    min-height: 3.25rem;
    padding: 0.68rem 1rem;
    color: #f7edcf;
    background: #4b2f0e;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow:
        0 0.55rem 1rem rgba(47, 30, 12, 0.24),
        inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.login-form button:hover,
.login-form button:focus-visible {
    filter: brightness(1.08);
    outline: 3px solid rgba(247, 237, 207, 0.82);
    outline-offset: 2px;
}

.postit-dialog-backdrop {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 2vw, 2rem);
    background:
        radial-gradient(ellipse at center, rgba(29, 18, 7, 0.25), rgba(18, 11, 5, 0.58)),
        rgba(18, 11, 5, 0.38);
    backdrop-filter: blur(2px);
}

.postit-dialog {
    width: min(94vw, 44rem);
    max-height: min(92vh, 42rem);
    overflow: auto;
    padding: clamp(1.2rem, 2.3vw, 1.9rem);
    position: relative;
    color: var(--ink);
    background:
        radial-gradient(ellipse at 8% 5%, rgba(102, 57, 17, 0.22), transparent 6rem),
        radial-gradient(ellipse at 98% 12%, rgba(78, 42, 12, 0.2), transparent 7rem),
        linear-gradient(145deg, rgba(255, 250, 224, 0.68), transparent 48%),
        repeating-linear-gradient(96deg, rgba(78, 48, 17, 0.052) 0 2px, transparent 2px 8px),
        #e3cc98;
    border: 1px solid rgba(72, 43, 13, 0.42);
    border-radius: 8px;
    box-shadow:
        0 1.4rem 3.2rem rgba(0, 0, 0, 0.54),
        0 0 0 1px rgba(247, 237, 207, 0.18),
        inset 0 0 2rem rgba(255, 248, 218, 0.26),
        inset 0 0 0 0.6rem rgba(79, 47, 15, 0.045);
    clip-path: polygon(1% 3%, 9% 1%, 22% 3%, 37% 1%, 52% 3%, 70% 1%, 98% 4%, 96% 25%, 99% 50%, 97% 77%, 99% 98%, 79% 96%, 60% 99%, 42% 97%, 23% 99%, 2% 96%, 4% 72%, 1% 49%, 3% 25%);
}

.appointment-dialog {
    width: min(97vw, 62rem);
    max-height: min(96vh, 49rem);
    padding: clamp(1.05rem, 1.75vw, 1.75rem);
}

.weather-dialog {
    width: min(94vw, 38rem);
}

.postit-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(0.9rem, 1.8vw, 1.35rem);
}

.postit-dialog-header h2 {
    margin: 0;
    padding: 0.45rem 1rem;
    color: var(--ribbon-ink);
    background: var(--ribbon-bg);
    border-radius: 5px;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-style: italic;
    letter-spacing: 0.06rem;
    clip-path: polygon(0 8%, 7% 0, 94% 5%, 100% 1%, 96% 51%, 100% 94%, 78% 98%, 60% 93%, 38% 100%, 17% 94%, 0 99%);
    box-shadow: 0 0.35rem 0.72rem rgba(28, 23, 18, 0.24);
}

.postit-dialog-close {
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(71, 43, 17, 0.28);
    border-radius: 50%;
    color: var(--ink);
    background: var(--paper-light);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    box-shadow: 0 0.25rem 0.55rem rgba(42, 26, 10, 0.22);
}

.postit-dialog-form {
    display: grid;
    gap: clamp(0.9rem, 1.5vw, 1.2rem);
}

.postit-form-field,
.postit-color-field {
    margin: 0;
    min-width: 0;
    display: grid;
    gap: 0.45rem;
}

.postit-form-field label,
.postit-color-field legend {
    color: #372817;
    font-size: clamp(1.05rem, 1.45vw, 1.25rem);
    font-weight: 800;
    font-style: italic;
}

.postit-textarea,
.postit-date-input,
.appointment-input,
.appointment-notes {
    width: 100%;
    border: 1px dashed rgba(60, 45, 25, 0.34);
    border-radius: 6px;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 253, 237, 0.52), rgba(255, 248, 218, 0.58)),
        rgba(255, 248, 218, 0.58);
    box-shadow: inset 0 0 0.9rem rgba(107, 72, 27, 0.11);
    font: inherit;
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

.postit-textarea:focus,
.postit-date-input:focus,
.appointment-input:focus,
.appointment-notes:focus {
    border-color: rgba(72, 81, 90, 0.62);
    background-color: rgba(255, 250, 226, 0.75);
}

.appointment-input {
    min-width: 0;
    max-width: 100%;
    min-height: 3.15rem;
    padding: 0.55rem 0.75rem;
}

.appointment-form-field--date .appointment-input {
    font-size: clamp(1.05rem, 1.35vw, 1.28rem);
    padding-inline: 0.6rem;
}

.appointment-form-field--time .appointment-input {
    font-size: clamp(1.08rem, 1.4vw, 1.32rem);
    padding-inline: 0.65rem;
}

.postit-textarea {
    min-height: 8.5rem;
    resize: vertical;
    padding: 0.85rem 0.95rem;
}

.appointment-notes {
    min-height: 6.8rem;
    resize: vertical;
    padding: 0.75rem 0.9rem;
}

.postit-date-input {
    max-width: 16rem;
    min-height: 3.1rem;
    padding: 0.55rem 0.75rem;
}

.postit-field-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(43, 33, 24, 0.68);
    font-size: 0.95rem;
    font-style: italic;
}

.postit-color-field {
    padding: 0;
    border: 0;
}

.appointment-dialog-grid {
    display: grid;
    grid-template-columns:
        minmax(9.25rem, 0.85fr)
        minmax(8rem, 0.75fr)
        minmax(8rem, 0.75fr)
        minmax(10rem, 1fr);
    gap: clamp(0.75rem, 1.3vw, 1rem);
}

.weather-location-grid {
    display: grid;
    gap: clamp(0.75rem, 1.3vw, 1rem);
}

.appointment-form-field--wide {
    grid-column: 1 / -1;
}

.appointment-all-day-option {
    min-height: 3.15rem;
    align-self: end;
    padding: 0.55rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(82, 54, 23, 0.22);
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(255, 252, 231, 0.45), transparent),
        rgba(255, 248, 218, 0.36);
    cursor: pointer;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    font-style: italic;
}

.appointment-all-day-option input {
    accent-color: #173d5a;
}

.postit-color-option:has(input:checked) {
    border-color: rgba(72, 81, 90, 0.58);
    box-shadow:
        0 0 0 0.12rem rgba(72, 81, 90, 0.13),
        inset 0 0 0.85rem rgba(255, 248, 218, 0.24);
}

.postit-color-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.postit-color-option {
    min-height: 3.2rem;
    padding: 0.55rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(82, 54, 23, 0.22);
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(255, 252, 231, 0.45), transparent),
        rgba(255, 248, 218, 0.36);
    cursor: pointer;
    font-size: clamp(0.95rem, 1.25vw, 1.08rem);
}

.postit-color-option input {
    accent-color: #4a3471;
}

.postit-color-swatch {
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 auto;
    border: 1px solid rgba(53, 34, 13, 0.24);
    border-radius: 50%;
    box-shadow: inset 0 0 0.4rem rgba(255, 255, 255, 0.25);
}

.postit-color-swatch--yellow {
    background: var(--postit-yellow);
}

.postit-color-swatch--blue {
    background: var(--postit-blue);
}

.postit-color-swatch--pink {
    background: var(--postit-pink);
}

.postit-color-swatch--green {
    background: var(--postit-green);
}

.postit-color-swatch--purple {
    background: var(--postit-purple);
}

.postit-color-swatch--beige {
    background: var(--postit-beige);
}

.postit-dialog-message {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    font-style: italic;
}

.postit-dialog-message--error {
    color: #5f1717;
    background: rgba(223, 168, 160, 0.42);
    border: 1px solid rgba(125, 31, 31, 0.22);
}

.postit-dialog-message--info {
    color: #3a2a15;
    background: rgba(234, 216, 170, 0.48);
    border: 1px solid rgba(82, 54, 23, 0.2);
}

.postit-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.postit-dialog-actions--split {
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.postit-dialog-danger-zone,
.postit-dialog-main-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.postit-dialog-button {
    min-height: 3.35rem;
    min-width: 8.5rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(72, 43, 13, 0.28);
    border-radius: 6px;
    cursor: pointer;
    color: var(--ink);
    font-size: clamp(1.05rem, 1.45vw, 1.22rem);
    font-weight: 800;
    font-style: italic;
    box-shadow:
        0 0.4rem 0.8rem rgba(42, 26, 10, 0.24),
        inset 0 0 0.7rem rgba(255, 248, 218, 0.18);
}

.postit-dialog-button--secondary {
    background: #d7be8a;
}

.postit-dialog-button--primary {
    background: #b8c99f;
}

.postit-dialog-button--archive {
    background: #ead8aa;
}

.postit-dialog-button--danger {
    color: #5f1717;
    background: #dfa8a0;
}

.postit-dialog-button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.35);
    opacity: 0.62;
}

.postit-dialog-button:not(:disabled):hover,
.postit-dialog-button:not(:disabled):focus-visible,
.postit-dialog-close:hover,
.postit-dialog-close:focus-visible {
    filter: brightness(1.04);
    outline: 3px solid rgba(247, 237, 207, 0.78);
    outline-offset: 3px;
}

.calendar-shell {
    min-height: 100vh;
    padding: clamp(0.5rem, 1.2vw, 1rem);
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, rgba(61, 39, 16, 0.34), transparent 58%),
        repeating-linear-gradient(90deg, rgba(255, 236, 180, 0.018) 0 1px, transparent 1px 12px);
}

.calendar-paper {
    width: min(100%, 1280px);
    min-height: min(748px, calc(100vh - 1rem));
    max-height: calc(100vh - 1rem);
    padding: clamp(0.9rem, 1.6vw, 1.45rem);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(0.85rem, 1.45vw, 1.25rem);
    background:
        radial-gradient(ellipse at 8% 11%, rgba(103, 59, 20, 0.3), transparent 9rem),
        radial-gradient(ellipse at 96% 2%, rgba(57, 28, 8, 0.36), transparent 8rem),
        radial-gradient(circle at 14% 12%, rgba(255, 248, 215, 0.5), transparent 18rem),
        radial-gradient(circle at 86% 18%, rgba(104, 70, 25, 0.18), transparent 17rem),
        repeating-linear-gradient(102deg, rgba(72, 43, 13, 0.052) 0 2px, transparent 2px 7px),
        repeating-linear-gradient(8deg, rgba(255, 245, 202, 0.1) 0 1px, transparent 1px 9px),
        linear-gradient(135deg, #e2cf9d 0%, #c3a46f 100%);
    border: 1px solid rgba(49, 30, 12, 0.62);
    border-radius: 8px;
    box-shadow:
        0 26px 76px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(238, 213, 151, 0.18),
        inset 0 0 52px rgba(84, 46, 13, 0.38),
        inset 0 0 0 10px rgba(70, 41, 16, 0.1);
    overflow: hidden;
}

.calendar-paper::before,
.calendar-paper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.calendar-paper::before {
    z-index: 0;
    border: 12px solid rgba(53, 29, 10, 0.26);
    clip-path: polygon(1% 5%, 5% 2%, 14% 3%, 22% 1%, 35% 3%, 48% 1%, 58% 2%, 74% 1%, 88% 3%, 98% 1%, 96% 13%, 99% 28%, 96% 47%, 99% 63%, 97% 78%, 99% 96%, 85% 98%, 71% 96%, 59% 99%, 45% 97%, 29% 99%, 16% 97%, 2% 99%, 4% 84%, 1% 70%, 3% 55%, 1% 38%, 3% 24%);
    filter: blur(0.5px);
}

.calendar-paper::after {
    z-index: 0;
    background:
        radial-gradient(ellipse at 8% 8%, rgba(55, 27, 8, 0.34), transparent 11rem),
        radial-gradient(ellipse at 94% 93%, rgba(55, 27, 8, 0.32), transparent 11rem),
        linear-gradient(to right, rgba(48, 25, 7, 0.46), transparent 4%, transparent 96%, rgba(48, 25, 7, 0.46)),
        linear-gradient(to bottom, rgba(48, 25, 7, 0.46), transparent 5%, transparent 95%, rgba(48, 25, 7, 0.44));
    mix-blend-mode: multiply;
}

.calendar-page-header,
.week-calendar {
    position: relative;
    z-index: 1;
}

.calendar-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.calendar-page-heading {
    min-width: 0;
}

.calendar-page-header h1 {
    margin: 0;
    padding: 0.45rem 1.3rem;
    display: inline-block;
    color: var(--ribbon-ink);
    background: var(--ribbon-bg);
    border-radius: 5px;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-style: italic;
    letter-spacing: 0.08rem;
    box-shadow: 0 0.35rem 0.75rem rgba(28, 23, 18, 0.3);
    clip-path: polygon(0 0, 100% 0, 96% 51%, 100% 94%, 78% 98%, 60% 93%, 38% 100%, 17% 94%, 0 99%, 2% 51%);
}

.calendar-page-header p {
    margin: 0.45rem 0 0;
    color: var(--muted-ink);
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    font-style: italic;
}

.calendar-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.65rem, 1.1vw, 1rem);
    flex-wrap: wrap;
}

.calendar-week-controls {
    min-height: 4rem;
    padding: 0.58rem 1.35rem;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #4b2f0e;
}

.calendar-week-controls::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(135deg, rgba(255, 246, 207, 0.42), transparent 58%),
        #ead8aa;
    box-shadow:
        0 0.55rem 1.1rem rgba(47, 30, 12, 0.22),
        inset 0 0 1rem rgba(255, 248, 218, 0.2);
    clip-path: polygon(0.8% 8%, 2.2% 2%, 21% 4%, 37% 1%, 56% 4%, 76% 2%, 99.2% 5%, 98% 34%, 99.4% 63%, 98.4% 95%, 78% 98%, 62% 96%, 45% 99%, 24% 96%, 0.8% 98%, 1.8% 68%);
}

.calendar-week-button,
.calendar-week-range {
    position: relative;
    z-index: 1;
}

.calendar-week-button {
    width: 2.45rem;
    height: 2.45rem;
    border: 0;
    display: grid;
    place-items: center;
    color: #f7edcf;
    background: #4b2f0e;
    font: inherit;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.calendar-week-button:hover,
.calendar-week-button:focus-visible {
    filter: brightness(1.08);
    outline: 3px solid rgba(247, 237, 207, 0.82);
    outline-offset: 2px;
}

.calendar-week-range {
    min-width: clamp(14rem, 20vw, 18rem);
    color: #4b2f0e;
    font-size: clamp(0.9rem, 1.18vw, 1.08rem);
    font-style: italic;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.calendar-back-button {
    min-height: 3.65rem;
    padding: 0.75rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(78, 48, 19, 0.28);
    border-radius: 7px;
    color: #4b2f0e;
    background: #ead8aa;
    cursor: pointer;
    font: inherit;
    font-size: clamp(1.05rem, 1.45vw, 1.25rem);
    font-weight: 800;
    font-style: italic;
    text-decoration: none;
    box-shadow:
        0 0.55rem 1.1rem rgba(47, 30, 12, 0.24),
        inset 0 0 1.15rem rgba(255, 248, 218, 0.22);
    clip-path: polygon(1% 8%, 6% 2%, 21% 4%, 37% 1%, 56% 4%, 76% 2%, 98% 5%, 96% 34%, 99% 63%, 97% 95%, 78% 98%, 62% 96%, 45% 99%, 24% 96%, 2% 98%, 4% 68%);
}

.calendar-back-button:hover,
.calendar-back-button:focus-visible {
    filter: brightness(1.04);
    outline: 3px solid rgba(247, 237, 207, 0.82);
    outline-offset: 3px;
}

.week-calendar {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(8rem, 1fr));
    gap: clamp(0.58rem, 0.92vw, 0.88rem);
}

.calendar-day-card {
    min-height: 0;
    padding: clamp(4.05rem, 5.1vw, 4.65rem) 0.6rem 0.65rem;
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background:
        radial-gradient(ellipse at 82% 12%, rgba(96, 56, 18, 0.12), transparent 7rem),
        linear-gradient(145deg, rgba(255, 250, 224, 0.58), transparent 42%),
        repeating-linear-gradient(90deg, rgba(72, 43, 13, 0.03) 0 2px, transparent 2px 8px),
        rgba(239, 224, 184, 0.87);
    border: 1px solid rgba(88, 58, 22, 0.24);
    border-radius: 7px;
    box-shadow:
        0 0.55rem 1.1rem rgba(47, 30, 12, 0.22),
        inset 0 0 1.15rem rgba(255, 248, 218, 0.2);
    clip-path: polygon(0 0, 100% 0, 99% 29%, 100% 52%, 98.5% 77%, 99.5% 96%, 77% 98%, 58% 96%, 41% 99%, 22% 96%, 1% 98%, 1.2% 74%, 0.4% 49%, 1% 26%);
}

.calendar-day-ribbon {
    min-height: 3.35rem;
    padding: 0.5rem 0.55rem;
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    top: 0.55rem;
    display: grid;
    align-content: center;
    background:
        radial-gradient(ellipse at 5% 55%, rgba(247, 237, 207, 0.18), transparent 2.5rem),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 72%),
        repeating-linear-gradient(95deg, rgba(0, 0, 0, 0.09) 0 2px, transparent 2px 7px),
        var(--ribbon-bg);
    color: var(--ribbon-ink);
    border-radius: 5px 2px 5px 2px;
    box-shadow: 0 0.32rem 0.65rem rgba(28, 23, 18, 0.26);
    clip-path: polygon(0 0, 100% 0, 96% 51%, 100% 94%, 78% 98%, 60% 93%, 38% 100%, 17% 94%, 0 99%);
}

.calendar-day-ribbon h2 {
    margin: 0;
    font-size: clamp(1.05rem, 1.32vw, 1.22rem);
    line-height: 1;
    letter-spacing: 0.04rem;
    white-space: nowrap;
}

.calendar-day-ribbon span {
    margin-top: 0.2rem;
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    font-style: italic;
    opacity: 0.9;
}

.calendar-appointment-list {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 0.45rem;
    overflow: auto;
}

.calendar-appointment-row {
    width: 100%;
    min-height: 3.18rem;
    padding: 0;
    display: grid;
    grid-template-columns: 0.24rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    color: var(--appointment-accent, var(--appointment-default-color));
    background:
        linear-gradient(135deg, rgba(255, 250, 224, 0.26), transparent),
        rgba(255, 248, 218, 0.2);
    border: 1px dashed rgba(60, 45, 25, 0.18);
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
    text-align: left;
    appearance: none;
    transition: background-color 140ms ease, filter 140ms ease;
}

.calendar-appointment-row:hover,
.calendar-appointment-row:focus-visible {
    background:
        linear-gradient(135deg, rgba(255, 250, 224, 0.38), transparent),
        rgba(255, 248, 218, 0.34);
    filter: brightness(1.03);
    outline: 3px solid rgba(247, 237, 207, 0.72);
    outline-offset: 2px;
}

.calendar-appointment-accent {
    grid-row: 1 / -1;
    align-self: stretch;
    background: currentColor;
    opacity: 0.64;
}

.calendar-appointment-row time,
.calendar-appointment-row span:last-child {
    font-size: clamp(0.9rem, 1vw, 1.02rem);
    font-weight: 800;
}

.calendar-appointment-row time {
    padding: 0.28rem 0.45rem 0;
    font-variant-numeric: tabular-nums;
}

.calendar-appointment-row span:last-child {
    min-width: 0;
    padding: 0 0.45rem 0.32rem;
    font-style: italic;
    line-height: 1.05;
    overflow-wrap: break-word;
    word-break: normal;
}

.calendar-empty-message {
    margin: 0;
    padding: 0.75rem 0.55rem;
    color: rgba(43, 33, 24, 0.7);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-style: italic;
}

@media (max-width: 1100px) {
    .dashboard-header {
        grid-template-columns: 1fr;
    }

    .dashboard-weather {
        justify-content: end;
    }

    .calendar-shell {
        overflow: auto;
    }

    .calendar-paper {
        min-height: auto;
        max-height: none;
    }

    .calendar-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-header-actions {
        justify-content: flex-start;
    }

    .week-calendar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .dashboard-shell {
        overflow: auto;
    }

    .dashboard-paper {
        min-height: auto;
        max-height: none;
    }

    .dashboard-main,
    .bottom-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-weather {
        justify-content: stretch;
    }

    .weather-card {
        flex: 1;
        width: auto;
    }

    .date-strip {
        flex-wrap: wrap;
    }

    .postit-color-options {
        grid-template-columns: 1fr 1fr;
    }

    .appointment-dialog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .postit-dialog-actions {
        flex-direction: column-reverse;
    }

    .postit-dialog-actions--split,
    .postit-dialog-danger-zone,
    .postit-dialog-main-actions {
        width: 100%;
    }

    .postit-dialog-button {
        width: 100%;
    }

    .calendar-shell {
        overflow: auto;
    }

    .calendar-paper {
        min-height: auto;
        max-height: none;
    }

    .calendar-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .week-calendar {
        grid-template-columns: 1fr;
    }
}
