:root {
    --background: #09090b;
    --foreground: #fafafa;
    --card: #18181b;
    --muted: #71717a;
    --border: #27272a;
    --checkbox-active: #ffafcc;
    --radius: 7px;
    --fs-sm: 0.82rem;
    --fs-base: 0.99rem;
}
* {
    box-sizing: border-box;
}
body {
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
    background: var(--background);
    color: var(--foreground);
    padding: 1rem;
    line-height: 1.5;
    min-height: 100dvh;
}
/* header */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}
h1 {
    margin: 0;
    font-size: 1.14rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.select-wrap {
    position: relative;
}
.select-trigger {
    appearance: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--foreground);
    font-size: var(--fs-sm);
    padding: 0.32rem 1.4rem 0.32rem 0.7rem;
    cursor: pointer;
    outline: none;
    min-width: 160px;
    height: 2.2rem;
}
.select-wrap::after {
    content: "+";
    pointer-events: none;
    color: var(--muted);
    font-size: var(--fs-sm);
    position: absolute;
    right: 0.56rem;
    top: 50%;
    transform: translateY(-50%);
}
/* textarea */
#snippetBox {
    width: 100%;
    min-height: 400px;
    height: 60vh;
    resize: vertical;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-family: inherit;
    font-size: var(--fs-base);
    padding: 0.8rem;
    outline: none;
}
/* footer */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.4rem;
    gap: 0.8rem;
}
.counts {
    font-size: var(--fs-sm);
    color: var(--muted);
}
.btn-copy {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-size: var(--fs-sm);
    padding: 0.32rem 0.9rem;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    height: 2.2rem;
}
.btn-copy:hover,
.btn-copy:focus {
    border-color: var(--muted);
}
.copied-badge {
    position: absolute;
    right: -4.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--fs-sm);
    color: var(--muted);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.btn-copy.show-confirm .copied-badge {
    opacity: 1;
}

:root {
    --background: #09090b;
    --foreground: #fafafa;
    --card: #18181b;
    --muted: #71717a;
    --border: #27272a;
    --checkbox-active: #ffafcc;
    --radius: 7px;
    --fs-sm: 0.82rem;
    --fs-base: 0.99rem;
}
* {
    box-sizing: border-box;
}
body {
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
    background: var(--background);
    color: var(--foreground);
    padding: 1rem;
    line-height: 1.5;
    min-height: 100dvh;
}
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
    gap: 0.8rem;
}

h1 {
    font-size: 1.14rem;
    margin: 0;
    letter-spacing: 0.01em;
    font-weight: 600;
}
.controls {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}
.select-wrap {
    position: relative;
}
.select-trigger {
    appearance: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--foreground);
    font-size: var(--fs-sm);
    padding: 0.23rem 1.4rem 0.23rem 0.7rem;
    cursor: pointer;
    outline: none;
    min-width: 84px;
}
.select-wrap::after {
    content: "";
    pointer-events: none;
    position: absolute;
    right: 0.56rem;
    top: 54%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-chevron-down-icon lucide-chevron-down'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}
#summary {
    display: flex;
    gap: 1.13rem;
    padding-bottom: 0.55rem;
    font-size: var(--fs-sm);
    color: var(--muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.08rem;
}
.cal-grids {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    justify-content: flex-start;
}
.month {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.38rem 0.38rem 0.7rem;
    min-width: 320px;
    width: 100%;
    max-width: 100%;
    flex: 1 1 360px;
    margin-bottom: 0.6rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
@media (max-width: 450px) {
    .month {
        min-width: 100vw;
        max-width: 100vw;
    }
}
.month-title {
    font-size: var(--fs-base);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--muted);
    margin-bottom: 0.19rem;
}
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.23rem;
}
.weekday,
.day {
    text-align: center;
    font-size: var(--fs-sm);
    padding: 0.19rem 0.07rem;
}
.weekday {
    color: var(--muted);
    font-weight: bold;
}
.day {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 1.5px);
    min-height: 44px;
    background: var(--card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.day-number {
    font-size: var(--fs-sm);
    margin-top: 0.04rem;
}
.day.today .day-number {
    color: black;
    background: #ff5d8f;
    font-weight: bold;
    border-radius: 0.5em;
    padding: 0.05em 0.5em;
    display: inline-block;
}

.day.disabled {
    background: var(--background);
    color: var(--muted);
    border-style: dashed;
    cursor: not-allowed;
}
/* Checkbox */
.day input[type="checkbox"] {
    appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    border: 1.2px solid var(--border);
    border-radius: 0.22rem;
    background: var(--card);
    margin-bottom: 0.17rem;
    display: grid;
    place-content: center;
    cursor: pointer;
    outline: none;
    transition: border-color 0.12s;
}
.day input[type="checkbox"]:hover,
.day input[type="checkbox"]:focus {
    border-color: var(--checkbox-active);
}
.day input[type="checkbox"]::after {
    content: "";
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 0.13rem;
    background-color: var(--checkbox-active);
    transform: scale(0);
    transition: transform 110ms;
    display: block;
}
.day input[type="checkbox"]:checked::after {
    transform: scale(1);
}

/* ─── fixed 40 px header with two links ───────────────────────────── */
.site-hdr {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    z-index: 100;
    padding: 0 1rem;
}
.site-nav {
    display: flex;
    gap: 1rem;
    font-size: var(--fs-base);
    font-weight: 500;
}
.nav-link {
    color: var(--foreground);
    text-decoration: none;
}
.nav-link:hover,
.nav-link:focus {
    color: var(--muted);
}

body {
    padding-top: 40px;
} /* prevent content from hiding under header */
