.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;
}

.date-strip-button {
    width: 100%;
    appearance: none;
    border: 1px solid rgba(88, 58, 22, 0.24);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.date-strip-button:hover,
.date-strip-button:focus-visible {
    filter: brightness(1.035);
    outline: 3px solid rgba(247, 237, 207, 0.78);
    outline-offset: 3px;
}

.dashboard-time {
    font-size: clamp(2.8rem, 4.55vw, 4.25rem);
    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.38rem, 2.18vw, 2.18rem);
    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 .login-remember-option {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    color: var(--muted-ink);
    font-size: 1rem;
    font-style: italic;
    font-weight: 700;
}

.login-form .login-remember-option input {
    width: 1.22rem;
    height: 1.22rem;
    min-height: 0;
    padding: 0;
    flex: 0 0 auto;
    accent-color: #4b2f0e;
}

.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);
}

.data-backup-dialog {
    width: min(94vw, 47rem);
}

.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);
}

.data-backup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.85rem, 1.55vw, 1.2rem);
}

.data-backup-panel {
    min-height: 13rem;
    padding: clamp(0.85rem, 1.35vw, 1.15rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid rgba(82, 54, 23, 0.22);
    border-radius: 7px;
    background:
        linear-gradient(145deg, rgba(255, 250, 224, 0.55), transparent 58%),
        repeating-linear-gradient(94deg, rgba(82, 53, 20, 0.045) 0 2px, transparent 2px 8px),
        rgba(255, 248, 218, 0.35);
}

.data-backup-panel h3 {
    margin: 0;
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    font-style: italic;
}

.data-backup-panel p {
    margin: 0;
    color: rgba(43, 33, 24, 0.72);
    font-size: clamp(1rem, 1.25vw, 1.08rem);
    font-style: italic;
}

.data-backup-file-picker {
    min-height: 3.25rem;
    padding: 0.65rem 0.8rem;
    display: grid;
    align-items: center;
    border: 1px dashed rgba(82, 54, 23, 0.42);
    border-radius: 6px;
    background: rgba(255, 248, 218, 0.42);
    cursor: pointer;
    font-weight: 800;
    font-style: italic;
}

.data-backup-file-input {
    margin-top: 0.45rem;
    max-width: 100%;
    font: inherit;
}

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

.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;
    }

    .data-backup-grid {
        grid-template-columns: 1fr;
    }

    .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;
    }
}

/* Figma vintage refresh */
.dashboard-shell,
.calendar-shell {
    padding: clamp(0.35rem, 0.95vw, 0.85rem);
}

.dashboard-paper,
.calendar-paper {
    width: min(96vw, 1280px);
    height: min(800px, calc(100vh - 1rem));
    min-height: 0;
    max-height: calc(100vh - 1rem);
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 8% 8%, rgba(111, 64, 24, 0.22), transparent 9rem),
        radial-gradient(ellipse at 96% 2%, rgba(57, 28, 8, 0.28), transparent 8rem),
        radial-gradient(circle at 15% 15%, rgba(255, 248, 215, 0.42), transparent 17rem),
        radial-gradient(circle at 85% 16%, rgba(104, 70, 25, 0.16), transparent 18rem),
        repeating-linear-gradient(102deg, rgba(72, 43, 13, 0.04) 0 2px, transparent 2px 10px),
        linear-gradient(135deg, #ddca99 0%, #c8b27e 100%);
    box-shadow:
        0 1.5rem 4rem rgba(0, 0, 0, 0.72),
        inset 0 0 0 0.65rem rgba(70, 41, 16, 0.12),
        inset 0 0 3rem rgba(84, 46, 13, 0.28);
}

.dashboard-paper {
    padding: clamp(0.9rem, 1.45vw, 1.25rem) clamp(1rem, 1.6vw, 1.45rem) clamp(0.7rem, 1.05vw, 0.95rem);
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(0.55rem, 1vw, 0.9rem);
}

.date-strip,
.weather-card,
.section-card,
.postit-dialog,
.calendar-top-strip,
.calendar-day-card,
.calendar-back-button,
.action-button {
    border-color: rgba(91, 62, 26, 0.28);
    box-shadow:
        0 0.58rem 1.05rem rgba(47, 30, 12, 0.26),
        inset 0 0 1rem rgba(255, 248, 218, 0.18);
}

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

.date-strip {
    min-height: clamp(4.7rem, 6.5vw, 5.7rem);
    padding: clamp(0.75rem, 1.2vw, 1rem) clamp(1.1rem, 1.8vw, 1.55rem);
    flex-wrap: nowrap;
    overflow: hidden;
    background:
        linear-gradient(100deg, rgba(255, 251, 223, 0.72), transparent 72%),
        repeating-linear-gradient(0deg, rgba(82, 53, 20, 0.034) 0 1px, transparent 1px 9px),
        #efe0b8;
    clip-path: polygon(1% 8%, 10% 4%, 24% 5%, 38% 2%, 55% 5%, 70% 3%, 92% 5%, 99% 4%, 99% 92%, 92% 96%, 76% 94%, 58% 97%, 39% 94%, 23% 97%, 3% 94%);
    transform: rotate(-0.15deg);
}

.dashboard-time,
.dashboard-date,
.dashboard-separator,
.weather-card-title,
.section-ribbon h2,
.postit-card p,
.action-button span:last-child,
.calendar-page-header h1,
.calendar-day-ribbon h2 {
    font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    font-style: normal;
}

.dashboard-time {
    flex: 0 0 auto;
    font-size: clamp(2.6rem, 4.35vw, 4.15rem);
    font-weight: 800;
    line-height: 0.95;
}

.dashboard-separator,
.dashboard-date {
    font-size: clamp(1.15rem, 1.85vw, 1.95rem);
}

.dashboard-date {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.dashboard-weather {
    gap: clamp(0.9rem, 1.35vw, 1.15rem);
}

.weather-card {
    width: clamp(10rem, 13.8vw, 12.6rem);
    min-height: clamp(6.7rem, 8.7vw, 7.55rem);
    padding: 0.82rem 0.85rem 0.7rem;
    background:
        linear-gradient(140deg, rgba(255, 249, 218, 0.54), transparent 68%),
        repeating-linear-gradient(95deg, rgba(87, 54, 18, 0.04) 0 2px, transparent 2px 8px),
        #efe0b8;
    border-radius: 7px;
    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%);
}

.weather-card-title {
    margin-bottom: 0.2rem;
    font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.weather-card strong {
    font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    font-size: clamp(2.45rem, 3.5vw, 3rem);
    font-weight: 800;
}

.weather-card-condition {
    font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    font-size: clamp(0.92rem, 1.12vw, 1.08rem);
    font-style: normal;
}

.dashboard-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: clamp(0.9rem, 1.6vw, 1.35rem);
}

.appointments-column {
    gap: clamp(0.62rem, 1vw, 0.85rem);
}

.section-card {
    padding: clamp(3.1rem, 4.2vw, 3.55rem) clamp(0.82rem, 1.25vw, 1rem) clamp(0.7rem, 1vw, 0.85rem);
    background:
        linear-gradient(145deg, rgba(255, 250, 224, 0.58), transparent 38%),
        repeating-linear-gradient(90deg, rgba(72, 43, 13, 0.026) 0 2px, transparent 2px 9px),
        rgba(239, 224, 184, 0.9);
    border-radius: 8px;
}

.section-ribbon {
    min-width: clamp(12.5rem, 17vw, 15.7rem);
    height: clamp(3.1rem, 4.15vw, 3.75rem);
    padding-left: 4.05rem;
    top: 0.12rem;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 72%),
        repeating-linear-gradient(95deg, rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 7px),
        #48515a;
}

.section-ribbon--wide {
    min-width: clamp(17rem, 24vw, 20.6rem);
}

.section-ribbon h2 {
    font-size: clamp(1.45rem, 2.25vw, 1.95rem);
    letter-spacing: 0.08rem;
}

.section-ribbon--wide h2 {
    font-size: clamp(1.35rem, 1.95vw, 1.75rem);
}

.appointment-list {
    border-style: solid;
    background:
        repeating-linear-gradient(to bottom, transparent 0 2.72rem, rgba(71, 43, 15, 0.08) 2.72rem 2.78rem),
        rgba(255, 248, 218, 0.2);
}

.appointment-row {
    min-height: clamp(2.45rem, 3.3vw, 2.85rem);
    grid-template-columns: 3.05rem 5.7rem minmax(0, 1fr);
}

.appointment-accent-bar {
    display: none;
}

.appointment-clock {
    width: 1.7rem;
    height: 1.7rem;
    margin-left: 0.58rem;
}

.appointment-time,
.appointment-title {
    font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    font-size: clamp(1.32rem, 1.85vw, 1.74rem);
    font-weight: 800;
}

.appointment-title {
    padding-left: clamp(1rem, 1.55vw, 1.35rem);
}

.postit-board {
    padding-top: clamp(3.4rem, 4.85vw, 4rem);
}

.postit-list {
    gap: clamp(0.7rem, 1.18vw, 0.96rem);
}

.postit-card {
    min-height: clamp(4.2rem, 5.82vw, 4.82rem);
    padding-left: clamp(4.1rem, 5vw, 4.5rem);
    border-radius: 6px;
    box-shadow:
        0 0.52rem 0.85rem rgba(42, 26, 10, 0.22),
        inset 0 0 0.8rem rgba(255, 255, 255, 0.15);
}

.postit-card p {
    font-size: clamp(1.48rem, 2.15vw, 2.08rem);
}

.bottom-actions {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.08fr) minmax(0, 0.96fr);
    gap: clamp(0.95rem, 2.2vw, 2.05rem);
    align-items: end;
}

.action-button {
    min-height: clamp(4.3rem, 5.65vw, 5rem);
    padding: 0.55rem clamp(0.8rem, 1.35vw, 1.1rem);
    gap: clamp(0.65rem, 1.1vw, 0.95rem);
    border-radius: 8px;
}

.action-button span:last-child {
    font-size: clamp(1.65rem, 2.6vw, 2.65rem);
    font-weight: 800;
}

.action-icon {
    width: clamp(2.55rem, 3.65vw, 3.12rem);
    height: clamp(2.55rem, 3.65vw, 3.12rem);
}

.action-icon--postit::before {
    font-size: clamp(2.05rem, 3.1vw, 2.58rem);
}

.postit-dialog-backdrop {
    backdrop-filter: blur(1.5px);
}

.postit-dialog {
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 12% 8%, rgba(255, 248, 215, 0.38), transparent 12rem),
        repeating-linear-gradient(102deg, rgba(72, 43, 13, 0.04) 0 2px, transparent 2px 9px),
        #d6c293;
}

.postit-dialog-header {
    min-height: 3.8rem;
    margin: -0.25rem -0.25rem clamp(0.95rem, 1.55vw, 1.25rem);
    padding: 0.4rem 0.5rem 0.4rem 1rem;
    background: #48515a;
    border-radius: 5px;
    box-shadow: 0 0.35rem 0.72rem rgba(28, 23, 18, 0.24);
}

.postit-dialog-header h2 {
    padding: 0;
    background: transparent;
    box-shadow: none;
    clip-path: none;
    font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    font-size: clamp(1.9rem, 2.8vw, 2.5rem);
}

.postit-dialog-close {
    width: 2.6rem;
    height: 2.6rem;
    color: #f7edcf;
    background: rgba(31, 26, 18, 0.22);
    border: 0;
}

.postit-textarea,
.postit-date-input,
.appointment-input,
.appointment-notes {
    border: 0;
    background: #f4e8c8;
    border-radius: 5px;
    box-shadow: inset 0 0 0.5rem rgba(107, 72, 27, 0.08);
}

.postit-color-options {
    grid-template-columns: repeat(6, minmax(2.4rem, 1fr));
}

.postit-color-option {
    min-height: 2.75rem;
    justify-content: center;
    padding: 0.42rem;
}

.postit-color-option span:not(.postit-color-swatch) {
    display: none;
}

.postit-color-swatch {
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 5px;
}

.postit-dialog-button {
    min-height: 3.1rem;
    min-width: 6.5rem;
    border-radius: 6px;
    font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    font-size: clamp(1.35rem, 1.95vw, 1.75rem);
    font-style: normal;
}

.calendar-paper {
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(0.65rem, 1.15vw, 0.95rem);
    padding: clamp(0.9rem, 1.4vw, 1.2rem);
}

.calendar-page-header {
    display: block;
}

.calendar-top-strip {
    min-height: clamp(4.6rem, 6.4vw, 5.45rem);
    padding: clamp(0.55rem, 1vw, 0.78rem) clamp(0.8rem, 1.35vw, 1.1rem);
    display: grid;
    grid-template-columns: minmax(14rem, 0.9fr) minmax(14rem, 1fr) auto;
    align-items: center;
    gap: clamp(0.75rem, 1.25vw, 1rem);
    background:
        linear-gradient(100deg, rgba(255, 251, 223, 0.68), transparent 72%),
        #efe0b8;
    border-radius: 8px;
}

.calendar-page-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.calendar-title-icon {
    width: 2.4rem;
    height: 2.4rem;
    position: relative;
    flex: 0 0 auto;
    display: inline-block;
    color: #4b2f0e;
    background: currentColor;
    border-radius: 5px;
}

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

.calendar-title-icon::before {
    top: 0.68rem;
    height: 0.24rem;
    background: #f7edcf;
    box-shadow: 0 0.55rem 0 #f7edcf, 0 1.1rem 0 #f7edcf;
}

.calendar-title-icon::after {
    top: 0.3rem;
    height: 0.35rem;
    border-left: 0.18rem solid #f7edcf;
    border-right: 0.18rem solid #f7edcf;
}

.calendar-page-header h1 {
    display: block;
    padding: 0;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    outline: 0;
    color: #1f1a12;
    box-shadow: none !important;
    clip-path: none !important;
    letter-spacing: 0;
    line-height: 1;
    font-size: clamp(2rem, 3vw, 2.75rem);
}

.calendar-page-header p {
    margin: 0.15rem 0 0;
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    font-weight: 800;
}

.calendar-week-range {
    min-width: 0;
    color: #4b2f0e;
    font-size: clamp(0.92rem, 1.1vw, 1.05rem);
    font-weight: 800;
    text-align: center;
}

.calendar-week-controls {
    min-height: 0;
    padding: 0;
    gap: 0.65rem;
}

.calendar-week-controls::before {
    display: none;
}

.calendar-week-button {
    width: clamp(5.5rem, 7.6vw, 6.75rem);
    height: clamp(2.7rem, 3.5vw, 3.1rem);
    color: #4b2f0e;
    background: #efe0b8;
    border: 1px solid rgba(78, 48, 19, 0.22);
    border-radius: 6px;
    box-shadow: 0 0.4rem 0.75rem rgba(47, 30, 12, 0.18);
}

.calendar-week-button--next {
    background: #ead8aa;
}

.week-calendar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(0.45rem, 0.75vw, 0.72rem);
}

.calendar-day-card {
    padding: clamp(3.35rem, 4.3vw, 3.9rem) 0.55rem 0.58rem;
    border-radius: 7px;
}

.calendar-day-ribbon {
    min-height: 2.8rem;
    left: 0.5rem;
    right: 0.5rem;
    top: 0.5rem;
}

.calendar-day-ribbon h2 {
    font-size: clamp(1.1rem, 1.35vw, 1.35rem);
}

.calendar-day-ribbon span {
    font-size: clamp(0.72rem, 0.85vw, 0.82rem);
}

.calendar-appointment-list {
    gap: 0.5rem;
}

.calendar-appointment-row {
    min-height: clamp(3.1rem, 4vw, 3.75rem);
    background: #f4e8c8;
    border-style: solid;
}

.calendar-appointment-row span:last-child {
    font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    font-size: clamp(1.02rem, 1.25vw, 1.28rem);
    font-style: normal;
}

.calendar-footer-actions {
    position: relative;
    z-index: 1;
}

.calendar-back-button {
    min-height: clamp(3.35rem, 4.4vw, 3.95rem);
    padding-inline: 1.35rem;
    color: #f7edcf;
    background: #48515a;
    font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    font-size: clamp(1.35rem, 1.9vw, 1.72rem);
    font-style: normal;
}

.action-icon--postit::before {
    content: "";
    position: absolute;
    inset: 0.58rem 0.66rem 0.52rem 0.62rem;
    background:
        linear-gradient(135deg, transparent 0 77%, rgba(74, 52, 113, 0.35) 78%),
        #f7edcf;
    border-radius: 2px;
    box-shadow:
        inset 0 -0.16rem 0 rgba(74, 52, 113, 0.12),
        inset 0 0 0 1px rgba(31, 26, 18, 0.18);
}

.action-icon--postit::after {
    content: "";
    position: absolute;
    right: 0.66rem;
    bottom: 0.52rem;
    width: 0.62rem;
    height: 0.62rem;
    background: #dfcfaa;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* Appointment dialog: closer to the Figma card. */
.appointment-dialog {
    width: min(94vw, 49rem);
    max-height: min(88vh, 43rem);
    overflow: hidden;
    padding: clamp(0.9rem, 1.35vw, 1.15rem);
    border-radius: 14px;
    clip-path: none;
}

.appointment-dialog .paper-pin {
    top: 0.75rem;
}

.appointment-dialog .postit-dialog-header {
    min-height: clamp(3.05rem, 4.1vw, 3.45rem);
    margin: 0 0 clamp(0.62rem, 0.95vw, 0.78rem);
    padding: 0.35rem 0.58rem 0.35rem clamp(0.85rem, 1.4vw, 1.1rem);
    border-radius: 4px;
}

.appointment-dialog .postit-dialog-header h2 {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    line-height: 1;
}

.appointment-dialog .postit-dialog-form {
    gap: clamp(0.52rem, 0.82vw, 0.72rem);
    padding-inline: clamp(0.65rem, 1.2vw, 1.05rem);
}

.appointment-dialog-grid {
    grid-template-columns:
        minmax(11rem, 1fr)
        minmax(8.25rem, 0.72fr)
        minmax(12rem, 1.25fr);
    align-items: end;
}

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

.appointment-all-day-option {
    width: max-content;
    min-height: 2.25rem;
    align-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-style: normal;
}

.appointment-all-day-option input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #48515a;
}

.appointment-dialog .appointment-input,
.appointment-dialog .appointment-notes {
    background: #f4e8c8;
    border: 1px solid rgba(82, 54, 23, 0.12);
    box-shadow: inset 0 0 0.45rem rgba(107, 72, 27, 0.06);
    font-family: Georgia, "Times New Roman", serif;
    font-style: normal;
}

.appointment-dialog .appointment-input {
    min-height: clamp(2.65rem, 3.45vw, 3rem);
    padding-inline: clamp(0.85rem, 1.25vw, 1.1rem);
}

.appointment-dialog .appointment-notes {
    min-height: clamp(3.3rem, 5.1vw, 4rem);
}

.appointment-dialog .postit-color-field {
    gap: 0.65rem;
}

.appointment-dialog .postit-color-options {
    display: flex;
    align-items: center;
    gap: clamp(0.65rem, 1vw, 0.95rem);
}

.appointment-dialog .postit-color-option {
    width: clamp(2.25rem, 3.4vw, 2.85rem);
    height: clamp(2.25rem, 3.4vw, 2.85rem);
    min-height: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

.appointment-dialog .postit-color-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.appointment-dialog .postit-color-swatch {
    width: clamp(1.8rem, 2.6vw, 2.22rem);
    height: clamp(1.8rem, 2.6vw, 2.22rem);
    border-radius: 50%;
    border: 0;
    box-shadow: inset 0 0 0.35rem rgba(255, 255, 255, 0.18);
}

.appointment-dialog .postit-color-option:has(input:checked) {
    border: 0.22rem solid rgba(31, 26, 18, 0.58);
    box-shadow: 0 0 0 0.12rem rgba(247, 237, 207, 0.46);
}

.appointment-dialog .postit-color-swatch--yellow {
    background: #ee8f10;
}

.appointment-dialog .postit-color-swatch--blue {
    background: #225fdc;
}

.appointment-dialog .postit-color-swatch--pink {
    background: #c70d49;
}

.appointment-dialog .postit-color-swatch--green {
    background: #158b4b;
}

.appointment-dialog .postit-color-swatch--purple {
    background: #8727df;
}

.appointment-dialog .postit-color-swatch--beige {
    background: #a84d12;
}

.appointment-dialog .postit-field-footer {
    margin-top: -0.25rem;
}

.appointment-dialog .postit-dialog-button {
    min-height: 2.62rem;
    min-width: 5.8rem;
    padding-block: 0.42rem;
    font-size: clamp(1.18rem, 1.65vw, 1.48rem);
    line-height: 1;
}

.appointment-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 1.35vw, 1.1rem);
    margin-top: -0.12rem;
}

.appointment-dialog-footer .appointment-all-day-option {
    flex: 0 0 auto;
}

.appointment-dialog-actions {
    flex: 1 1 auto;
    margin: 0;
    justify-content: flex-end;
}

.appointment-dialog-footer--edit .appointment-dialog-actions {
    gap: clamp(0.6rem, 1vw, 0.85rem);
}

/* Post-it dialog: straight compact card matching the Figma mockup. */
.postit-note-dialog {
    width: min(94vw, 35rem);
    max-height: min(91vh, 32rem);
    overflow: hidden;
    padding: clamp(0.85rem, 1.35vw, 1.1rem) clamp(1.2rem, 1.85vw, 1.5rem) clamp(1.15rem, 1.8vw, 1.45rem);
    border-radius: 14px;
    clip-path: none;
}

.postit-note-dialog .paper-pin {
    top: 0.68rem;
}

.postit-note-dialog .postit-dialog-header {
    min-height: clamp(3.5rem, 5vw, 3.85rem);
    margin: 0 0 clamp(0.85rem, 1.35vw, 1.05rem);
    padding: 0.38rem 0.6rem 0.38rem clamp(0.95rem, 1.55vw, 1.25rem);
    border-radius: 4px;
}

.postit-note-dialog .postit-dialog-header h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.18rem);
    line-height: 1;
}

.postit-note-dialog .postit-dialog-close {
    width: 2.35rem;
    height: 2.35rem;
}

.postit-note-dialog .postit-dialog-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(0.72rem, 1.1vw, 0.95rem) clamp(1rem, 1.8vw, 1.35rem);
    padding-inline: clamp(0.35rem, 0.75vw, 0.6rem);
}

.postit-note-dialog .postit-form-field:not(.postit-form-field--compact),
.postit-note-dialog .postit-color-field,
.postit-note-dialog .postit-dialog-message {
    grid-column: 1 / -1;
}

.postit-note-dialog .postit-form-field label,
.postit-note-dialog .postit-color-field legend {
    font-size: clamp(0.95rem, 1.25vw, 1.1rem);
    font-style: normal;
}

.postit-note-dialog .postit-textarea,
.postit-note-dialog .postit-date-input {
    background: #f4e8c8;
    border: 1px solid rgba(82, 54, 23, 0.12);
    box-shadow: inset 0 0 0.45rem rgba(107, 72, 27, 0.06);
    font-family: Georgia, "Times New Roman", serif;
    font-style: normal;
}

.postit-note-dialog .postit-textarea {
    min-height: clamp(4.9rem, 8.8vw, 5.65rem);
    padding: 0.78rem 0.9rem;
    resize: none;
}

.postit-note-dialog .postit-date-input {
    width: min(100%, 13.7rem);
    min-height: 3.2rem;
    padding-inline: 0.85rem;
}

.postit-note-dialog .postit-field-footer {
    margin-top: -0.08rem;
}

.postit-note-dialog .postit-color-field {
    gap: 0.62rem;
}

.postit-note-dialog .postit-color-options {
    display: flex;
    align-items: center;
    gap: clamp(0.72rem, 1.15vw, 1rem);
}

.postit-note-dialog .postit-color-option {
    width: clamp(2.25rem, 3.4vw, 2.42rem);
    height: clamp(2.25rem, 3.4vw, 2.42rem);
    min-height: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    box-shadow: none;
}

.postit-note-dialog .postit-color-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.postit-note-dialog .postit-color-swatch {
    width: clamp(2.05rem, 3.1vw, 2.28rem);
    height: clamp(2.05rem, 3.1vw, 2.28rem);
    border-radius: 5px;
    border: 1px solid rgba(82, 54, 23, 0.2);
    box-shadow:
        inset 0 0 0.35rem rgba(255, 255, 255, 0.18),
        0 0.1rem 0.2rem rgba(47, 30, 12, 0.12);
}

.postit-note-dialog .postit-color-option:has(input:checked) {
    outline: 2px solid rgba(31, 26, 18, 0.42);
    outline-offset: 2px;
}

.postit-note-dialog .postit-form-field--compact {
    min-width: min(100%, 13.7rem);
}

.postit-note-dialog .postit-form-field--compact label::after {
    content: " opzionale";
}

.postit-note-dialog .postit-dialog-actions {
    margin: 0;
    align-self: end;
    justify-content: end;
}

.postit-note-dialog--edit {
    width: min(94vw, 42rem);
    max-height: min(91vh, 38rem);
}

.postit-note-dialog--edit .postit-dialog-actions--split {
    grid-column: 1 / -1;
}

/* Weather and backup dialogs: straight compact cards like the Figma dialogs. */
.weather-dialog,
.data-backup-dialog {
    overflow: hidden;
    border-radius: 14px;
    clip-path: none;
}

.weather-dialog {
    width: min(94vw, 37rem);
    max-height: min(91vh, 28rem);
    padding: clamp(0.9rem, 1.45vw, 1.15rem) clamp(1rem, 1.65vw, 1.35rem) clamp(1.05rem, 1.65vw, 1.3rem);
}

.data-backup-dialog {
    width: min(94vw, 45rem);
    max-height: min(91vh, 34rem);
    padding: clamp(0.95rem, 1.5vw, 1.2rem) clamp(1.05rem, 1.75vw, 1.4rem) clamp(1.1rem, 1.7vw, 1.35rem);
}

.weather-dialog .paper-pin,
.data-backup-dialog .paper-pin {
    top: 0.68rem;
}

.weather-dialog .postit-dialog-header,
.data-backup-dialog .postit-dialog-header {
    min-height: clamp(3.65rem, 5.1vw, 4.05rem);
    margin: 0 0 clamp(0.9rem, 1.45vw, 1.15rem);
    padding: 0.38rem 0.6rem 0.38rem clamp(0.95rem, 1.55vw, 1.25rem);
    border-radius: 4px;
}

.weather-dialog .postit-dialog-header h2,
.data-backup-dialog .postit-dialog-header h2 {
    font-size: clamp(1.85rem, 2.8vw, 2.38rem);
    line-height: 1;
}

.weather-dialog .postit-dialog-close,
.data-backup-dialog .postit-dialog-close {
    width: 2.35rem;
    height: 2.35rem;
}

.weather-dialog .postit-dialog-form,
.data-backup-dialog .data-backup-grid,
.data-backup-dialog > .postit-dialog-message,
.data-backup-dialog > .postit-dialog-actions {
    margin-inline: clamp(0.2rem, 0.65vw, 0.45rem);
}

.weather-dialog .postit-dialog-form {
    gap: clamp(0.95rem, 1.45vw, 1.2rem);
}

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

.weather-dialog .appointment-input {
    min-height: clamp(3.15rem, 4.7vw, 3.45rem);
    background: #f4e8c8;
    border: 1px solid rgba(82, 54, 23, 0.12);
    box-shadow: inset 0 0 0.45rem rgba(107, 72, 27, 0.06);
    font-family: Georgia, "Times New Roman", serif;
    font-style: normal;
}

.weather-dialog .postit-dialog-actions {
    margin-top: clamp(0.2rem, 0.6vw, 0.35rem);
}

.data-backup-dialog .data-backup-grid {
    gap: clamp(0.85rem, 1.35vw, 1.05rem);
}

.data-backup-dialog .data-backup-panel {
    min-height: clamp(11.5rem, 18vw, 13rem);
    padding: clamp(0.82rem, 1.25vw, 1rem);
    border-radius: 7px;
    background:
        linear-gradient(145deg, rgba(255, 250, 224, 0.48), transparent 58%),
        repeating-linear-gradient(94deg, rgba(82, 53, 20, 0.035) 0 2px, transparent 2px 8px),
        rgba(255, 248, 218, 0.32);
}

.data-backup-dialog .data-backup-panel h3 {
    font-size: clamp(1.18rem, 1.7vw, 1.42rem);
}

.data-backup-dialog .data-backup-panel p,
.data-backup-dialog .data-backup-file-name {
    font-size: clamp(0.96rem, 1.18vw, 1.05rem);
}

.data-backup-dialog .data-backup-file-picker {
    min-height: 4.1rem;
    align-content: center;
    border-style: dashed;
    background: rgba(255, 248, 218, 0.3);
}

.data-backup-dialog .postit-dialog-actions {
    margin-top: clamp(0.65rem, 1.2vw, 0.9rem);
}

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

    .dashboard-weather {
        display: none;
    }

    .date-strip {
        min-height: clamp(3.8rem, 6.2vw, 4.55rem);
        padding-inline: clamp(0.8rem, 2vw, 1.25rem);
    }

    .dashboard-time {
        font-size: clamp(2.25rem, 5.4vw, 3.2rem);
    }

    .dashboard-separator,
    .dashboard-date {
        font-size: clamp(1.05rem, 2.9vw, 1.5rem);
    }

    .calendar-top-strip {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .calendar-week-range {
        text-align: left;
    }

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

@media (max-width: 900px) {
    .dashboard-paper,
    .calendar-paper {
        height: auto;
        min-height: calc(100vh - 1rem);
        max-height: none;
    }

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

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

    .appointment-dialog {
        overflow: auto;
    }

    .appointment-dialog .postit-color-options {
        flex-wrap: wrap;
    }

    .appointment-dialog-footer {
        align-items: stretch;
        flex-direction: column;
    }

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

    .postit-note-dialog {
        overflow: auto;
    }

    .weather-dialog,
    .data-backup-dialog {
        overflow: auto;
    }

    .postit-note-dialog .postit-dialog-form {
        grid-template-columns: 1fr;
    }

    .postit-note-dialog .postit-dialog-actions {
        justify-content: stretch;
    }
}

@media (min-width: 900px) and (max-width: 1100px) and (max-height: 620px) and (orientation: landscape) {
    .dashboard-shell,
    .calendar-shell {
        min-height: 100dvh;
        padding: 0.25rem;
        overflow: hidden;
    }

    .dashboard-paper,
    .calendar-paper {
        width: calc(100vw - 0.5rem);
        height: calc(100dvh - 0.5rem);
        max-height: calc(100dvh - 0.5rem);
        padding: 0.46rem 0.56rem 0.42rem;
        gap: 0.38rem;
        border-radius: 12px;
    }

    .paper-fastener {
        width: 1.05rem;
        height: 1.05rem;
        top: 0.38rem;
    }

    .paper-fastener--top-left {
        left: 0.62rem;
    }

    .paper-fastener--top-right {
        right: 0.72rem;
    }

    .dashboard-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.48rem;
        align-items: stretch;
    }

    .date-strip {
        min-height: 3.35rem;
        padding: 0.28rem 0.72rem;
        gap: 0.42rem;
    }

    .dashboard-time {
        font-size: clamp(2.15rem, 4.4vw, 2.72rem);
    }

    .dashboard-separator,
    .dashboard-date {
        font-size: clamp(1.04rem, 2.1vw, 1.28rem);
    }

    .dashboard-date {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-weather {
        display: flex;
        gap: 0.42rem;
    }

    .weather-card {
        width: 6.95rem;
        min-height: 3.35rem;
        padding: 0.32rem 0.38rem 0.28rem;
    }

    .weather-card-title {
        margin-bottom: 0.05rem;
        font-size: 0.86rem;
    }

    .weather-card-body {
        grid-template-columns: 1.72rem minmax(0, 1fr);
        gap: 0.18rem;
    }

    .weather-symbol {
        width: 1.9rem;
        height: 1.65rem;
        transform: scale(0.52);
        transform-origin: left center;
    }

    .weather-card strong {
        font-size: 1.45rem;
    }

    .weather-card-condition {
        font-size: 0.64rem;
        line-height: 1;
    }

    .dashboard-main {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: 0.48rem;
    }

    .appointments-column {
        gap: 0.42rem;
    }

    .section-card {
        padding: 2.35rem 0.48rem 0.42rem;
        border-radius: 6px;
    }

    .section-card::after {
        inset: 0.34rem;
    }

    .section-ribbon,
    .section-ribbon--wide {
        min-width: 9.4rem;
        height: 2.35rem;
        left: 0.48rem;
        padding: 0.12rem 0.7rem 0.08rem 2.78rem;
    }

    .section-ribbon--wide {
        min-width: 12.6rem;
    }

    .section-ribbon h2,
    .section-ribbon--wide h2 {
        font-size: 1.08rem;
        letter-spacing: 0.08rem;
    }

    .section-ribbon--wide h2 {
        font-size: 0.98rem;
        letter-spacing: 0.04rem;
    }

    .section-icon {
        width: 1.78rem;
        height: 1.78rem;
        left: 0.5rem;
    }

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

    .section-icon::before {
        width: 0.94rem;
        height: 0.86rem;
        border-width: 0.13rem;
        border-top-width: 0.24rem;
    }

    .appointment-list {
        overflow: auto;
    }

    .appointment-row {
        min-height: 2.18rem;
        grid-template-columns: 0.24rem 2.08rem 4.85rem minmax(0, 1fr);
    }

    .appointment-clock {
        width: 1.22rem;
        height: 1.22rem;
        margin-left: 0.42rem;
        border-width: 0.14rem;
    }

    .appointment-clock::before {
        height: 0.45rem;
    }

    .appointment-clock::after {
        height: 0.38rem;
    }

    .appointment-time,
    .appointment-title {
        font-size: 1.08rem;
    }

    .appointment-title {
        padding-left: 0.58rem;
        line-height: 1.05;
    }

    .dashboard-empty-message {
        padding: 0.58rem 0.65rem;
        font-size: 0.98rem;
    }

    .postit-board {
        min-height: 0;
        padding: 2.38rem 0.42rem 0.36rem;
    }

    .postit-list {
        gap: 0.34rem;
        max-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .postit-card {
        min-height: 2.86rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0.46rem 0.72rem 0.42rem 2.76rem;
    }

    .postit-card p {
        font-size: 1.16rem;
        line-height: 1.04;
    }

    .paper-pin {
        width: 0.72rem;
        height: 0.72rem;
        left: 0.8rem;
        top: 0.56rem;
    }

    .paper-curl {
        width: 1.45rem;
        height: 1rem;
    }

    .bottom-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr);
        gap: 0.55rem;
    }

    .action-button {
        min-height: 3.2rem;
        padding: 0.34rem 0.62rem;
        gap: 0.48rem;
    }

    .action-button span:last-child {
        font-size: 1.42rem;
    }

    .action-icon {
        width: 2.22rem;
        height: 2.22rem;
    }

    .action-icon--postit::before {
        font-size: 1.9rem;
    }

    .action-icon--calendar::before {
        top: 0.48rem;
        left: 0.45rem;
        right: 0.45rem;
        height: 0.2rem;
        box-shadow: 0 0.5rem 0 #f7edcf, 0 1rem 0 #f7edcf;
    }

    .action-icon--calendar::after {
        top: 0.28rem;
        height: 0.28rem;
        border-left-width: 0.16rem;
        border-right-width: 0.16rem;
    }

    .dashboard-feedback {
        bottom: 3.85rem;
        padding: 0.42rem 0.72rem;
        font-size: 0.95rem;
    }

    .calendar-paper {
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 0.35rem;
    }

    .calendar-top-strip {
        min-height: 3.25rem;
        padding: 0.32rem 0.52rem;
        grid-template-columns: minmax(10rem, 0.82fr) minmax(15rem, 1fr) auto;
        gap: 0.5rem;
        align-items: center;
    }

    .calendar-page-heading {
        gap: 0.48rem;
    }

    .calendar-title-icon {
        width: 1.88rem;
        height: 1.88rem;
    }

    .calendar-title-icon::before,
    .calendar-title-icon::after {
        left: 0.45rem;
        right: 0.45rem;
    }

    .calendar-title-icon::before {
        top: 0.45rem;
        height: 0.2rem;
        box-shadow: 0 0.46rem 0 #f7edcf, 0 0.92rem 0 #f7edcf;
    }

    .calendar-title-icon::after {
        top: 0.25rem;
        height: 0.26rem;
        border-left-width: 0.13rem;
        border-right-width: 0.13rem;
    }

    .calendar-page-header h1 {
        font-size: 1.7rem;
    }

    .calendar-page-header p {
        margin-top: 0.02rem;
        font-size: 0.7rem;
    }

    .calendar-week-range {
        font-size: 0.84rem;
        text-align: center;
        line-height: 1.05;
    }

    .calendar-week-controls {
        gap: 0.36rem;
        padding-left: 0.62rem;
    }

    .calendar-week-controls::before {
        width: 0.22rem;
    }

    .calendar-week-button {
        width: 2.18rem;
        height: 2.18rem;
        min-height: 0;
    }

    .calendar-week-button span {
        font-size: 1.55rem;
    }

    .week-calendar {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.34rem;
        min-height: 0;
    }

    .calendar-day-card {
        min-height: 0;
        padding: 2.28rem 0.32rem 0.34rem;
        border-radius: 6px;
    }

    .calendar-day-ribbon {
        min-height: 2.02rem;
        left: 0.28rem;
        right: 0.28rem;
        top: 0.32rem;
        padding: 0.28rem 0.3rem;
    }

    .calendar-day-ribbon h2 {
        font-size: 0.84rem;
        letter-spacing: 0;
    }

    .calendar-day-ribbon span {
        margin-top: 0.08rem;
        font-size: 0.62rem;
    }

    .calendar-appointment-list {
        gap: 0.3rem;
        overflow: auto;
    }

    .calendar-appointment-row {
        min-height: 2.35rem;
        grid-template-columns: 0.18rem minmax(0, 1fr);
    }

    .calendar-appointment-row time,
    .calendar-appointment-row span:last-child {
        font-size: 0.78rem;
    }

    .calendar-appointment-row time {
        padding: 0.18rem 0.28rem 0;
    }

    .calendar-appointment-row span:last-child {
        padding: 0 0.28rem 0.24rem;
        line-height: 1.02;
    }

    .calendar-empty-message {
        padding: 0.42rem 0.2rem;
        font-size: 0.72rem;
        line-height: 1.05;
    }

    .calendar-footer-actions {
        justify-content: end;
    }

    .calendar-back-button {
        min-height: 2.35rem;
        min-width: 6.3rem;
        padding: 0.36rem 0.85rem;
        font-size: 1.05rem;
    }

    .postit-dialog-backdrop {
        padding: 0.34rem;
    }

    .postit-dialog,
    .appointment-dialog,
    .postit-note-dialog,
    .weather-dialog,
    .data-backup-dialog {
        max-height: calc(100dvh - 0.68rem);
        overflow: auto;
        border-radius: 10px;
    }

    .appointment-dialog {
        width: min(97vw, 47rem);
        padding: 0.58rem 0.72rem 0.68rem;
    }

    .appointment-dialog .paper-pin,
    .postit-note-dialog .paper-pin,
    .weather-dialog .paper-pin,
    .data-backup-dialog .paper-pin {
        top: 0.38rem;
    }

    .appointment-dialog .postit-dialog-header,
    .postit-note-dialog .postit-dialog-header,
    .weather-dialog .postit-dialog-header,
    .data-backup-dialog .postit-dialog-header {
        min-height: 2.5rem;
        margin-bottom: 0.42rem;
        padding: 0.22rem 0.42rem 0.22rem 0.72rem;
    }

    .appointment-dialog .postit-dialog-header h2,
    .postit-note-dialog .postit-dialog-header h2,
    .weather-dialog .postit-dialog-header h2,
    .data-backup-dialog .postit-dialog-header h2 {
        font-size: 1.45rem;
    }

    .postit-dialog-close,
    .appointment-dialog .postit-dialog-close,
    .postit-note-dialog .postit-dialog-close,
    .weather-dialog .postit-dialog-close,
    .data-backup-dialog .postit-dialog-close {
        width: 1.9rem;
        height: 1.9rem;
        font-size: 1.45rem;
    }

    .postit-dialog-form,
    .appointment-dialog .postit-dialog-form,
    .postit-note-dialog .postit-dialog-form,
    .weather-dialog .postit-dialog-form {
        gap: 0.48rem;
    }

    .appointment-dialog-grid {
        grid-template-columns: minmax(8.5rem, 1fr) minmax(7.1rem, 0.74fr) minmax(7.1rem, 0.74fr) minmax(7.6rem, 0.85fr);
        gap: 0.45rem;
    }

    .postit-form-field label,
    .postit-color-field legend,
    .postit-note-dialog .postit-form-field label,
    .postit-note-dialog .postit-color-field legend {
        font-size: 0.86rem;
    }

    .appointment-input,
    .appointment-dialog .appointment-input,
    .weather-dialog .appointment-input {
        min-height: 2.45rem;
        padding: 0.34rem 0.5rem;
        font-size: 0.96rem;
    }

    .appointment-form-field--date .appointment-input,
    .appointment-form-field--time .appointment-input {
        font-size: 0.88rem;
        padding-inline: 0.42rem;
    }

    .appointment-dialog .appointment-notes {
        min-height: 4.1rem;
        padding: 0.45rem 0.55rem;
        font-size: 0.94rem;
    }

    .postit-note-dialog {
        width: min(94vw, 33rem);
        padding: 0.56rem 0.72rem 0.72rem;
    }

    .postit-note-dialog .postit-dialog-form {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.42rem 0.74rem;
    }

    .postit-note-dialog .postit-textarea {
        min-height: 4.25rem;
        padding: 0.5rem 0.58rem;
        font-size: 1rem;
    }

    .postit-note-dialog .postit-date-input {
        min-height: 2.45rem;
        width: 12.2rem;
        padding-inline: 0.58rem;
        font-size: 0.92rem;
    }

    .postit-note-dialog .postit-color-options {
        gap: 0.46rem;
    }

    .postit-note-dialog .postit-color-option {
        width: 1.85rem;
        height: 1.85rem;
    }

    .postit-note-dialog .postit-color-swatch {
        width: 1.62rem;
        height: 1.62rem;
    }

    .appointment-dialog .postit-color-options {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.36rem;
    }

    .appointment-dialog .postit-color-option {
        min-height: 2.35rem;
        padding: 0.3rem;
        justify-content: center;
    }

    .appointment-dialog .postit-color-option span:not(.postit-color-swatch) {
        display: none;
    }

    .appointment-dialog .postit-color-swatch {
        width: 1.52rem;
        height: 1.52rem;
    }

    .appointment-dialog-footer {
        gap: 0.48rem;
    }

    .appointment-all-day-option,
    .appointment-dialog-footer .appointment-all-day-option {
        min-height: 2.45rem;
        padding: 0.36rem 0.5rem;
        font-size: 0.86rem;
    }

    .postit-dialog-actions,
    .appointment-dialog-actions,
    .appointment-dialog-footer--edit .appointment-dialog-actions,
    .postit-dialog-danger-zone,
    .postit-dialog-main-actions {
        gap: 0.45rem;
    }

    .postit-dialog-button,
    .appointment-dialog .postit-dialog-button {
        min-height: 2.45rem;
        min-width: 5.9rem;
        padding: 0.38rem 0.62rem;
        font-size: 0.94rem;
    }

    .weather-dialog {
        width: min(94vw, 35rem);
        padding: 0.6rem 0.72rem 0.72rem;
    }

    .weather-dialog .weather-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.62rem;
    }

    .data-backup-dialog {
        width: min(94vw, 42rem);
        padding: 0.6rem 0.72rem 0.72rem;
    }

    .data-backup-dialog .data-backup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.58rem;
    }

    .data-backup-dialog .data-backup-panel {
        min-height: 8.8rem;
        padding: 0.58rem;
        gap: 0.42rem;
    }

    .data-backup-dialog .data-backup-panel h3 {
        font-size: 1rem;
    }

    .data-backup-dialog .data-backup-panel p,
    .data-backup-dialog .data-backup-file-name {
        font-size: 0.78rem;
        line-height: 1.08;
    }

    .data-backup-dialog .data-backup-file-picker {
        min-height: 2.72rem;
        padding: 0.42rem 0.5rem;
    }

    .postit-dialog-message {
        padding: 0.36rem 0.5rem;
        font-size: 0.84rem;
    }

    .login-shell {
        min-height: 100dvh;
        padding: 0.3rem;
    }

    .login-paper {
        width: min(100%, 42rem);
        min-height: calc(100dvh - 0.6rem);
        padding: 0.7rem;
    }

    .login-card {
        width: min(100%, 28rem);
        padding: 0.9rem;
    }

    .login-card h1 {
        margin-bottom: 0.45rem;
        padding: 0.28rem 0.86rem;
        font-size: 1.65rem;
    }

    .login-card p,
    .login-form label,
    .login-form .login-remember-option {
        font-size: 0.9rem;
    }

    .login-form {
        gap: 0.48rem;
    }

    .login-form input,
    .login-form button {
        min-height: 2.58rem;
        font-size: 0.98rem;
    }
}
