@font-face {
    font-family: Inter;
    src: url(inter-ext.woff2) format("woff2");
    font-weight: 400 750;
    font-display: swap;
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF, U+AB30-AB6F;
}
@font-face {
    font-family: Inter;
    src: url(inter.woff2) format("woff2");
    font-weight: 400 750;
    font-display: swap;
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
    color-scheme: dark;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    --base: #0d1019;
    --side: #11141f;
    --surface: #141824;
    --surface-hi: #1c2131;
    --surface-low: #111521;
    --border: #252b3d;
    --grid: #24293a;
    --ink: #f2f1fa;
    --muted: #9b9fb5;
    --faint: #777e99;
    --accent: #a996ff;
    --accent-strong: #a892ff;
    --accent-bg: #27213f;
    --purple-text: #cfc2ff;
    --danger: #ff9eae;
    --hour: 48px;
    --radius: 16px;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
[hidden] {
    display: none !important;
}
body {
    margin: 0;
    background: var(--base);
    color: var(--ink);
    min-height: 100vh;
}
button,
input,
select,
textarea {
    font: inherit;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: wait;
    opacity: 0.58;
}
a {
    color: var(--purple-text);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
h1,
h2,
h3,
p {
    margin: 0;
}
svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}
.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -1px;
    color: var(--ink);
    line-height: 1;
}
.brand:hover {
    text-decoration: none;
}
.brand-icon {
    display: inline-grid;
    place-items: center;
    background: linear-gradient(150deg, #bdadff, #9275f9);
    color: #181130;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    box-shadow: 0 4px 14px #8c74fc30;
    flex: none;
}
.brand-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.1;
}
.brand-icon img {
    border-radius: 11px;
}
.brand-period {
    color: var(--accent);
}
.primary,
.plain-btn,
.icon-btn,
.search-button,
.account,
.segments button,
.nav-count,
.day-add,
.slot,
.cal-item,
.category-toggle,
.day-heading,
.close-silent {
    border: 0;
    color: inherit;
    background: none;
}
.primary,
.plain-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 9px;
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 650;
}
.primary {
    background: var(--accent-strong);
    color: #17102c;
    box-shadow: 0 4px 15px #a68bff23;
    min-height: 41px;
    padding: 0 15px;
}
.primary:hover {
    background: #bfacff;
    text-decoration: none;
}
.plain-btn {
    border: 1px solid var(--border);
    background: #181c2a;
}
.plain-btn:hover {
    background: #24293d;
}
.plain-btn.danger {
    color: var(--danger);
}
.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--muted);
    border-radius: 8px;
    padding: 0;
    flex: none;
}
.icon-btn:hover {
    color: var(--ink);
    background: var(--surface-hi);
}
.icon-btn svg {
    width: 17px;
    height: 17px;
}

.app {
    min-height: 100vh;
    display: grid;
    grid-template: "top top" 66px "side body" 1fr / 224px minmax(0, 1fr);
}
.topbar {
    grid-area: top;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    background: #10131e;
    position: sticky;
    top: 0;
    z-index: 4;
}
.top-left,
.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.search-button {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    background: #171b28;
    border: 1px solid var(--border);
    height: 36px;
    min-width: 218px;
    padding: 0 9px 0 11px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
}
.search-button:hover {
    border-color: #484468;
}
.search-button span {
    margin-right: auto;
}
kbd {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 21px;
    border-radius: 4px;
    border: 1px solid #35394d;
    font:
        11px Inter,
        system-ui;
    color: var(--faint);
}
.top-separator {
    height: 22px;
    width: 1px;
    background: var(--border);
}
.account {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.account:hover {
    color: var(--ink);
}
.account > svg {
    height: 14px;
    width: 14px;
}
.avatar {
    display: grid;
    place-items: center;
    background: #30284a;
    border: 1px solid #4c3e72;
    color: #ddd0ff;
    border-radius: 50%;
    height: 32px;
    width: 32px;
    font-size: 12px;
    font-weight: 700;
}
.mobile-toggle {
    display: none;
}

.sidebar {
    grid-area: side;
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
    padding: 25px 16px 17px;
    border-right: 1px solid var(--border);
    background: var(--side);
}
.main-nav {
    display: grid;
    gap: 5px;
}
.main-nav button {
    background: none;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    border-radius: 9px;
    height: 42px;
    padding: 0 11px;
    color: var(--muted);
    font-weight: 550;
}
.main-nav button:hover {
    background: var(--surface-hi);
    color: var(--ink);
}
.main-nav button.selected {
    background: var(--accent-bg);
    color: var(--purple-text);
    border-color: #3d315e;
    font-weight: 650;
}
.nav-count {
    font-size: 11px;
    margin-left: auto;
    color: inherit;
    background: #ffffff0f;
    padding: 2px 5px;
    border-radius: 5px;
}
.mini-calendar {
    border-block: 1px solid var(--border);
    padding: 14px 0 15px;
}
.mini-top,
.sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}
.mini-top {
    padding: 0 6px 9px;
}
.mini-top strong {
    font-size: 12px;
    text-transform: capitalize;
    font-weight: 680;
}
.mini-top > div {
    display: flex;
}
.mini-top .icon-btn,
.sidebar-heading .icon-btn {
    width: 24px;
    height: 24px;
}
.mini-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px 1px;
    text-align: center;
}
.mini-grid span,
.mini-grid button {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    min-width: 0;
    border-radius: 6px;
    font-size: 10.5px;
    padding: 0;
}
.mini-grid span {
    color: var(--faint);
    font-size: 9px;
    font-weight: 650;
    text-transform: uppercase;
}
.mini-grid button {
    background: none;
    border: 1px solid transparent;
    color: var(--muted);
}
.mini-grid button.is-out {
    color: #656b83;
}
.mini-grid button:hover {
    background: var(--surface-hi);
    color: var(--ink);
}
.mini-grid button.current {
    border-color: #665790;
    color: var(--purple-text);
}
.mini-grid button.picked {
    background: var(--accent-strong);
    color: #191132;
    font-weight: 750;
    border-color: transparent;
}
.categories {
    padding: 0 4px;
}
.sidebar-heading {
    margin-bottom: 7px;
}
.sidebar-heading h2 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--faint);
    padding-left: 4px;
}
.category-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 4px;
    border-radius: 6px;
    text-align: left;
    font-size: 11.5px;
    line-height: 17px;
    color: #bdc0d3;
    min-height: 28px;
}
.category-toggle:hover {
    background: var(--surface-hi);
    color: var(--ink);
}
.category-toggle[aria-pressed="false"] {
    opacity: 0.5;
}
.category-mark {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--category, #9da2b9);
    flex: none;
}
.category-toggle[aria-pressed="false"] .category-mark {
    background: transparent;
    border: 1px solid var(--category, #9da2b9);
}
.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 15px 4px 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--faint);
    font-size: 10px;
}
.sidebar-footer svg {
    width: 15px;
    height: 15px;
}

.workspace {
    grid-area: body;
    padding: 30px 28px 36px;
    min-width: 0;
    background:
        radial-gradient(ellipse at 35% 0%, #13162a40, transparent 580px),
        var(--base);
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 23px;
}
.page-header h1,
.auth h1 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 730;
    letter-spacing: -0.047em;
    line-height: 1.1;
}
.page-header p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px;
}
.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 270px);
    gap: 16px;
    align-items: start;
}
.calendar-card,
.day-panel,
.secondary-card,
.setting-card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 7px 26px #06070e36;
}
.calendar-card {
    overflow: hidden;
}
.calendar-toolbar {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
}
.cal-month,
.cal-nav,
.arrows {
    display: flex;
    align-items: center;
}
.cal-month {
    gap: 12px;
    min-width: 0;
}
.cal-month h2 {
    font-size: 17px;
    letter-spacing: -0.035em;
    font-weight: 720;
    text-transform: capitalize;
    text-wrap: balance;
}
.cal-nav {
    gap: 5px;
}
.cal-nav .plain-btn {
    padding: 0 9px;
    min-height: 29px;
    font-size: 11px;
}
.arrows .icon-btn {
    width: 25px;
    height: 28px;
}
.segments {
    display: flex;
    border: 1px solid var(--border);
    padding: 3px;
    gap: 2px;
    border-radius: 8px;
    background: #10131f;
    flex: none;
}
.segments button {
    min-height: 27px;
    padding: 0 8px;
    border-radius: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}
.segments button:hover {
    color: var(--ink);
}
.segments button.active {
    background: #28263f;
    color: var(--purple-text);
    box-shadow: inset 0 0 0 1px #454063;
}
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid var(--grid);
}
.weekday {
    height: 32px;
    display: grid;
    place-items: center;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 10px;
    font-weight: 650;
    color: var(--faint);
    background: #161a29;
}
.day-cell {
    min-width: 0;
    min-height: clamp(87px, 10.7vh, 106px);
    padding: 4px 5px;
    border-top: 1px solid var(--grid);
    border-right: 1px solid var(--grid);
    color: var(--muted);
    cursor: pointer;
    background: #141825;
    transition: background 0.15s;
}
.day-cell:nth-child(7n) {
    border-right: 0;
}
.day-cell.weekend {
    background: #131624;
}
.day-cell:hover,
.day-cell.drag-target {
    background: #20243a;
}
.day-cell.picked {
    background: #1b1b31;
    box-shadow: inset 0 0 0 1px #544779;
}
.day-cell.is-out {
    background: #111520;
}
.day-cell.is-out:not(.picked) {
    opacity: 0.7;
}
.day-cell-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1px;
    gap: 1px;
    min-height: 22px;
    margin-bottom: 3px;
}
.day-heading {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    padding: 0;
    color: #d7d8e6;
    font-size: 11px;
    font-weight: 650;
    flex: none;
}
.day-heading:hover {
    color: var(--ink);
    background: #ffffff10;
}
.is-out .day-heading {
    color: var(--faint);
}
.current .day-heading {
    color: #151028;
    background: var(--accent-strong);
    font-weight: 750;
}
.cell-add {
    width: 22px;
    height: 22px;
    opacity: 0;
}
.cell-add svg {
    width: 14px;
    height: 14px;
}
.day-cell:hover .cell-add,
.day-cell:focus-within .cell-add {
    opacity: 1;
}
.cell-items {
    display: grid;
    gap: 2px;
}
.cal-item {
    --category: #a996ff;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    width: 100%;
    text-align: left;
    border-radius: 4px;
    background: color-mix(in srgb, var(--category) 14%, #1a1e31);
    color: color-mix(in srgb, var(--category) 62%, white);
    border-left: 2px solid var(--category);
    padding: 2px 4px;
    font-size: 9.5px;
    line-height: 1.25;
    height: 17px;
    overflow: hidden;
}
.cal-item:hover {
    background: color-mix(in srgb, var(--category) 29%, #1a1e31);
}
.cal-item.task {
    border-left-style: dashed;
}
.cal-item:active {
    cursor: grabbing;
}
.cal-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 570;
}
.cal-item time {
    flex: none;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}
.cal-item.inactive,
.time-event.inactive {
    opacity: 0.58;
    text-decoration: line-through;
}
.cal-more {
    font-size: 9px;
    line-height: 10px;
    color: #a9a5c1;
    padding: 1px 3px;
    border: none;
    background: none;
    border-radius: 5px;
    text-align: left;
    justify-self: start;
}
.cal-more:hover {
    background: #ffffff12;
    color: white;
}

.day-panel {
    overflow: hidden;
}
.day-panel-header {
    padding: 18px 16px 15px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(ellipse at top right, #32254d55, transparent 80%),
        var(--surface);
}
.eyebrow {
    color: #b1a4e6;
    font-size: 9px;
    font-weight: 730;
    letter-spacing: 0.13em;
    display: flex;
    align-items: center;
    gap: 7px;
}
.eyebrow span,
.preview-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px #ae9cff80;
    flex: none;
}
.day-panel h2 {
    font-size: 21px;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin-top: 8px;
    text-transform: capitalize;
}
.day-date {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}
.academic {
    display: inline-block;
    margin-top: 9px;
    padding: 4px 6px;
    border: 1px solid #443b62;
    border-radius: 5px;
    background: #211b34;
    color: #c8baf8;
    font-size: 10px;
    line-height: 1.4;
}
.day-panel-body {
    padding: 10px 10px 5px;
}
.day-entry {
    position: relative;
    background: #181c2a;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    border: 1px solid #282d42;
    border-left: 2px solid var(--category, #a996ff);
    border-radius: 7px;
    margin-bottom: 6px;
}
.day-entry:hover {
    background: #1e2435;
}
.day-entry.inactive {
    opacity: 0.6;
}
.day-entry.inactive .entry-title {
    text-decoration: line-through;
}
.entry-open {
    display: grid;
    gap: 5px;
    background: none;
    border: 0;
    color: var(--ink);
    padding: 8px 8px 9px 10px;
    text-align: left;
    min-width: 0;
    line-height: 1.35;
}
.entry-title {
    font-size: 11.5px;
    font-weight: 620;
}
.entry-meta {
    font-size: 10px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.entry-time {
    color: color-mix(in srgb, var(--category, #a996ff) 70%, white);
    font-variant-numeric: tabular-nums;
}
.entry-meta svg {
    width: 12px;
    height: 12px;
}
.entry-meta span {
    overflow-wrap: anywhere;
}
.entry-check {
    margin: 8px 7px 0 0;
    width: 16px;
    height: 16px;
}
.empty {
    padding: 21px 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}
.empty svg {
    display: block;
    margin: 0 auto 7px;
    color: var(--faint);
}
.day-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px dashed #3b3653;
    border-radius: 7px;
    color: var(--purple-text);
    width: calc(100% - 20px);
    margin: 6px 10px 12px;
    min-height: 33px;
    font-size: 11px;
    font-weight: 650;
}
.day-add:hover {
    background: var(--accent-bg);
}
.day-add svg {
    width: 14px;
    height: 14px;
}

.time-scroll {
    overflow: auto;
    max-height: calc(100vh - 240px);
    min-height: 360px;
    scrollbar-color: #404563 #131823;
}
.time-frame {
    display: grid;
    grid-template-columns: 45px repeat(var(--cols, 7), minmax(74px, 1fr));
    min-width: var(--time-min, 565px);
}
.time-frame.single {
    min-width: 0;
}
.time-label,
.time-day,
.all-time,
.all-column {
    border-right: 1px solid var(--grid);
    border-top: 1px solid var(--grid);
}
.time-day,
.time-label {
    display: grid;
    place-items: center;
    background: #191e2f;
    color: var(--muted);
    min-height: 43px;
}
.time-day {
    border-left: none;
    border-bottom: 0;
    padding: 3px;
    background: #191e2f;
}
.time-day small,
.time-label,
.all-time {
    font-size: 10px;
}
.time-day strong {
    font-size: 15px;
}
.time-day.current strong {
    color: var(--purple-text);
}
.time-day.picked {
    background: #272142;
    color: var(--purple-text);
}
.all-time,
.all-column {
    padding: 4px 3px;
    min-height: 32px;
    display: grid;
    align-content: start;
    gap: 3px;
}
.all-time {
    place-items: center;
    color: var(--faint);
}
.hour-scale,
.time-column {
    height: calc(24 * var(--hour));
    position: relative;
    border-right: 1px solid var(--grid);
    border-top: 1px solid var(--grid);
}
.hour-scale time {
    display: block;
    height: var(--hour);
    text-align: center;
    color: var(--faint);
    font-size: 9px;
}
.time-column {
    background: repeating-linear-gradient(
        to bottom,
        #151a28 0px,
        #151a28 calc(var(--hour) - 1px),
        var(--grid) calc(var(--hour) - 1px),
        var(--grid) var(--hour)
    );
}
.slot {
    position: relative;
    display: block;
    height: var(--hour);
    width: 100%;
    padding: 0;
}
.slot:hover,
.slot.drag-target {
    background: #ab95ff1d;
}
.time-event {
    position: absolute;
    z-index: 1;
    top: calc(var(--offset) * var(--hour) / 60);
    height: max(20px, calc(var(--duration) * var(--hour) / 60 - 2px));
    left: calc(var(--lane) * 100% / var(--lanes) + 2px);
    width: calc(100% / var(--lanes) - 4px);
    text-align: left;
    overflow: hidden;
    border-radius: 5px;
    border: 0;
    border-left: 2px solid var(--category);
    padding: 3px 4px;
    background: color-mix(in srgb, var(--category) 26%, #1b1f32);
    color: color-mix(in srgb, var(--category) 60%, white);
    font-size: 10px;
    line-height: 1.3;
}
.time-event:hover {
    background: color-mix(in srgb, var(--category) 43%, #1b1f32);
    z-index: 2;
}
.time-event strong,
.time-event time {
    display: block;
    font-size: 9px;
}
.time-event strong {
    font-size: 10px;
}
.list-view {
    padding: 0 15px 14px;
    min-height: 250px;
}
.agenda-group h3,
.task-group h2 {
    font-size: 12px;
    text-transform: capitalize;
    margin: 16px 0 7px;
    color: var(--muted);
    font-weight: 650;
}
.list-view .entry-title,
.secondary-card .entry-title {
    font-size: 13px;
}
.secondary-card,
.setting-card {
    max-width: 900px;
    padding: 16px;
}
.task-group:first-child h2 {
    margin-top: 0;
}
.task-group + .task-group {
    margin-top: 15px;
    border-top: 1px solid var(--border);
}
.settings-content {
    display: grid;
    gap: 12px;
}
.setting-card h2 {
    font-size: 16px;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.setting-card p,
.setting-card li {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}
.setting-card [role="alert"] {
    color: var(--danger);
    margin-top: 6px;
}
.setting-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.setting-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}
.setting-categories li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 31px;
}
.setting-categories .plain-btn {
    margin-left: auto;
    min-height: 25px;
    padding: 0 8px;
    font-size: 11px;
}
.setting-card code {
    font-size: 11px;
    color: #cfc2ff;
    overflow-wrap: anywhere;
}

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(290px, 375px) minmax(0, 510px);
    align-content: center;
    justify-content: center;
    align-items: stretch;
    gap: 35px;
    padding: 30px;
    background:
        radial-gradient(ellipse at 72% 46%, #201a36, transparent 52%),
        var(--base);
}
.auth-card {
    align-self: center;
    padding: 10px 2px;
}
.auth-card .brand {
    margin-bottom: 37px;
}
.auth-kicker {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #b9abed;
    margin-bottom: 12px;
}
.auth-kicker svg {
    width: 13px;
    height: 13px;
}
.auth h1 {
    font-size: clamp(30px, 4vw, 44px);
}
.subtext {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}
.auth .subtext {
    margin: 10px 0 24px;
    max-width: 320px;
}
.auth-card form {
    display: grid;
    gap: 13px;
    max-width: 335px;
}
.auth-card .primary {
    margin-top: 4px;
    justify-content: space-between;
}
.auth-preview {
    position: relative;
    border: 1px solid #34294c;
    border-radius: 22px;
    background: radial-gradient(
        ellipse at 92% 12%,
        #4b347a,
        #20192f 53%,
        #151522 90%
    );
    overflow: hidden;
    min-height: 434px;
    display: grid;
    place-items: center;
    isolation: isolate;
}
.preview-haze {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.35;
    background-image:
        linear-gradient(#a18dd328 1px, transparent 1px),
        linear-gradient(90deg, #a18dd328 1px, transparent 1px);
    background-size: 29px 29px;
    mask-image: radial-gradient(ellipse at 55% 50%, #000 25%, transparent 80%);
}
.preview-surface {
    width: min(80%, 362px);
    border: 1px solid #5a497d;
    background: #19172aee;
    border-radius: 19px;
    padding: 20px;
    box-shadow: 0 24px 55px #0f091ab5;
    transform: rotate(-4deg);
}
.preview-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}
.preview-header .brand-icon {
    background: #362854;
    color: #d4c5ff;
}
.preview-header small,
.preview-header strong {
    display: block;
}
.preview-header small {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.13em;
    color: #baa9ea;
    margin-bottom: 5px;
}
.preview-header strong {
    font-size: 20px;
    letter-spacing: -0.06em;
}
.preview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    text-align: center;
}
.preview-grid span {
    font-size: 9px;
    color: #9891ac;
}
.preview-grid b,
.preview-grid em {
    display: grid;
    place-items: center;
    min-height: 34px;
    background: #242038;
    border: 1px solid #342c4c;
    border-radius: 5px;
    font-size: 11px;
    color: #d2cce0;
    font-style: normal;
}
.preview-grid b.preview-current {
    background: #8670d9;
    color: #130e26;
}
.preview-grid em:nth-child(3n) {
    background: #3d3066;
}
.preview-grid em:nth-child(4n) {
    background: #254051;
}
.preview-slot {
    border: 1px solid #403453;
    background: #281f3d;
    padding: 9px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #d6c9f8;
    font-size: 11px;
}
.preview-slot svg {
    margin-left: auto;
    width: 16px;
    height: 16px;
}

.dialog {
    color: var(--ink);
    width: min(590px, calc(100% - 24px));
    padding: 0;
    border: 1px solid #3b3d58;
    background: #181b2b;
    border-radius: 15px;
    max-height: calc(100dvh - 26px);
    box-shadow: 0 25px 100px #070812c7;
    scrollbar-color: #51556c transparent;
}
.dialog::backdrop {
    background: #090a12ba;
    backdrop-filter: blur(4px);
}
.dialog.small-dialog {
    width: min(430px, calc(100% - 24px));
}
.dialog-head,
.dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 17px;
    border-bottom: 1px solid var(--border);
}
.dialog-head h2 {
    font-size: 16px;
    font-weight: 700;
}
.dialog-body {
    padding: 15px 17px;
    display: grid;
    gap: 11px;
}
.dialog-footer {
    justify-content: flex-end;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    border-bottom: 0;
}
.detail-footer {
    justify-content: flex-start;
}
.dialog-body details {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.dialog-body summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    font-size: 12px;
    color: var(--purple-text);
    list-style: none;
}
.dialog-body summary::-webkit-details-marker {
    display: none;
}
.dialog-body summary svg {
    height: 15px;
    width: 15px;
}
.more-fields {
    padding: 0 10px 10px;
    display: grid;
    gap: 10px;
}
label {
    display: grid;
    gap: 5px;
    font-size: 12px;
    color: #d3d5e5;
    font-weight: 570;
    min-width: 0;
}
label small {
    font-size: 10px;
    color: var(--muted);
    font-weight: 400;
}
label input:not([type="checkbox"]),
label select,
label textarea {
    width: 100%;
    color: var(--ink);
    border: 1px solid #373c53;
    background: #121624;
    border-radius: 7px;
    padding: 7px 9px;
    min-height: 37px;
    font-size: 13px;
    min-width: 0;
}
input::placeholder,
textarea::placeholder {
    color: #8288a2;
}
label textarea {
    resize: vertical;
}
label input[type="color"] {
    padding: 4px;
}
label input[type="file"] {
    padding: 6px;
    font-size: 11px;
}
input[type="checkbox"] {
    accent-color: var(--accent);
}
.two {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}
.check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.check-row label {
    display: flex;
    align-items: center;
    gap: 5px;
}
.form-error {
    border: 1px solid #663747;
    background: #321f30;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--danger);
}
.detail-title {
    font-size: 23px;
    letter-spacing: -0.04em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.detail-title.inactive {
    text-decoration: line-through;
    color: var(--muted);
}
.detail-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
}
.detail-row {
    display: flex;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    min-width: 0;
    color: #d5d6e5;
}
.detail-row svg {
    color: var(--muted);
    width: 16px;
    height: 16px;
    margin-top: 2px;
}
.detail-row span {
    white-space: pre-wrap;
}
.detail-row a {
    width: fit-content;
}
.toast {
    position: fixed;
    z-index: 12;
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(500px, calc(100% - 26px));
    border: 1px solid #554773;
    border-radius: 9px;
    padding: 11px 15px;
    background: #29213d;
    color: #f2eaff;
    box-shadow: 0 8px 30px #0006;
    font-size: 12px;
}
.toast.bad {
    background: #3b2432;
    border-color: #77485c;
}
.drawer-shade {
    display: none;
}

@media (max-width: 1280px) {
    .calendar-layout {
        grid-template-columns: minmax(0, 1fr) 232px;
    }
    .calendar-toolbar {
        padding-inline: 11px;
    }
    .cal-month {
        gap: 8px;
    }
    .segments button {
        padding-inline: 6px;
    }
    .workspace {
        padding-inline: 22px;
    }
    .app {
        grid-template-columns: 199px minmax(0, 1fr);
    }
    .sidebar {
        padding-inline: 12px;
    }
}
@media (max-width: 1130px) {
    .calendar-layout {
        grid-template-columns: minmax(0, 1fr) 205px;
        gap: 10px;
    }
    .workspace {
        padding-inline: 15px;
    }
    .app {
        grid-template-columns: 178px minmax(0, 1fr);
    }
    .calendar-toolbar {
        flex-wrap: wrap;
        min-height: 62px;
    }
    .day-panel-header {
        padding-inline: 12px;
    }
    .day-cell {
        padding-inline: 3px;
    }
}
@media (max-width: 990px) {
    .app {
        grid-template-columns: 178px minmax(0, 1fr);
    }
    .calendar-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .day-panel-body {
        padding: 10px;
    }
    .day-panel {
        max-width: none;
    }
    .day-panel-body .empty {
        padding: 10px;
    }
    .day-entries {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    .workspace {
        padding: 24px 15px 26px;
    }
}
@media (max-width: 740px) {
    .app {
        grid-template: "top" 57px "body" 1fr / minmax(0, 1fr);
    }
    .topbar {
        padding-inline: 12px;
    }
    .top-left,
    .top-actions {
        gap: 6px;
    }
    .brand {
        font-size: 20px;
    }
    .brand-icon {
        width: 31px;
        height: 31px;
        border-radius: 9px;
    }
    .brand-icon svg {
        width: 21px;
        height: 21px;
    }
    .mobile-toggle {
        display: grid;
    }
    .search-button {
        min-width: 0;
        width: 34px;
        height: 34px;
        justify-content: center;
        padding: 0;
    }
    .search-button span,
    .search-button kbd,
    .top-separator,
    .account > svg,
    #account-name {
        display: none;
    }
    .sidebar {
        position: fixed;
        z-index: 7;
        inset: 57px auto 0 0;
        width: 213px;
        overflow: auto;
        display: none;
        padding-top: 13px;
    }
    .sidebar.is-open {
        display: flex;
    }
    .drawer-shade {
        position: fixed;
        display: block;
        background: #070912b0;
        z-index: 6;
        inset: 57px 0 0;
    }
    .workspace {
        padding: 16px 10px 23px;
    }
    .page-header {
        margin-bottom: 13px;
    }
    .page-header h1 {
        font-size: 26px;
    }
    .page-header p {
        font-size: 11px;
        margin-top: 5px;
    }
    .page-header .primary {
        min-height: 35px;
        font-size: 11px;
        padding: 0 8px;
    }
    .page-header .primary svg {
        height: 15px;
        width: 15px;
    }
    .calendar-card,
    .day-panel,
    .secondary-card,
    .setting-card {
        border-radius: 12px;
    }
    .calendar-toolbar {
        padding: 9px;
        gap: 7px;
    }
    .cal-month h2 {
        font-size: 15px;
    }
    .cal-nav {
        gap: 2px;
    }
    .arrows .icon-btn {
        width: 22px;
    }
    .segments button {
        font-size: 10px;
        padding-inline: 6px;
    }
    .weekday {
        height: 23px;
        font-size: 9px;
    }
    .day-cell {
        min-height: 61px;
        padding: 2px;
    }
    .day-cell-top {
        margin-bottom: 2px;
        min-height: 20px;
    }
    .day-heading {
        width: 20px;
        height: 20px;
        font-size: 10px;
        border-radius: 5px;
    }
    .cell-add {
        display: none;
    }
    .cell-items {
        gap: 2px;
    }
    .cal-item {
        font-size: 0;
        height: 5px;
        min-height: 5px;
        padding: 0 1px;
        border-left: 0;
        background: var(--category);
        border-radius: 3px;
    }
    .cal-item time {
        display: none;
    }
    .cal-item.inactive {
        opacity: 0.3;
    }
    .cal-more {
        font-size: 8px;
        line-height: 9px;
        padding: 0 2px;
    }
    .day-panel-header {
        padding: 12px;
    }
    .day-panel h2 {
        font-size: 18px;
    }
    .time-scroll {
        max-height: 62vh;
        min-height: 290px;
    }
    .auth {
        grid-template-columns: minmax(0, 390px);
        padding: 22px;
        gap: 14px;
    }
    .auth-card {
        padding: 0;
    }
    .auth-card .brand {
        margin-bottom: 23px;
    }
    .auth-preview {
        min-height: 200px;
    }
    .preview-surface {
        padding: 12px;
        width: min(73%, 265px);
        border-radius: 12px;
    }
    .preview-header {
        margin-bottom: 9px;
    }
    .preview-header strong {
        font-size: 15px;
    }
    .preview-grid b,
    .preview-grid em {
        min-height: 19px;
    }
    .preview-slot {
        margin-top: 7px;
        padding: 5px;
    }
}
@media (max-width: 370px) {
    .two {
        grid-template-columns: 1fr;
    }
    .calendar-toolbar {
        padding: 6px;
    }
    .cal-month {
        gap: 3px;
    }
    .day-cell {
        min-height: 53px;
    }
    .dialog-body {
        padding: 12px;
    }
    .detail-footer .plain-btn {
        font-size: 11px;
        padding-inline: 7px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
