@font-face {
    font-family: "Inclusive Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/ui/fonts/inclusive-sans-latin-3021e84f6f1e82de664194d16cb7a24d.woff2") format("woff2");
    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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inclusive Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/ui/fonts/inclusive-sans-latin-ext-63c6ec17053cbb1e14bc13f2492f89a8.woff2") format("woff2");
    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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inclusive Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/ui/fonts/inclusive-sans-vietnamese-2990d3dd46a2a656032791371c0376d2.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

#autofill-loading {
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 150ms ease-in, opacity 150ms ease-in, margin-bottom 150ms ease-in;
}

#autofill-loading.htmx-request {
    max-height: 200px;
    margin-bottom: 1.5rem;
    opacity: 1;
}

body:has(#autofill-loading.htmx-request) #autofill-outlet .autofill-placeholder {
    display: none;
}

body:has(#autofill-loading.htmx-request) #autofill-outlet .autofill-error {
    display: none;
}

body:has(#autofill-loading.htmx-request) #autofill-outlet .autofill-proposal {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 150ms ease-in;
}

#ip-box-review-loading {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 150ms ease-in, opacity 150ms ease-in, margin-top 150ms ease-in;
}

#ip-box-review-loading.htmx-request {
    max-height: 200px;
    margin-top: 0.75rem;
    padding-bottom: 1rem;
    opacity: 1;
}

body:has(#ip-box-review-loading.htmx-request) #ip-box-review .ip-box-review-result {
    display: none;
}

.ai-spinner {
    display: none;
}

button.htmx-request .ai-spinner {
    display: inline-block;
}

button.htmx-request .ai-icon {
    display: none;
}

.ai-field:has(button.htmx-request) :is(textarea, input[type="text"]) {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 150ms ease-in;
}

.tooltip-wrap {
    width: 10rem;
}

.admin-json {
    max-height: 24rem;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.auth-art {
    background:
        radial-gradient(circle at 20% 15%, color-mix(in oklab, var(--color-primary) 22%, transparent), transparent 55%),
        radial-gradient(circle at 85% 85%, color-mix(in oklab, var(--color-secondary) 22%, transparent), transparent 55%),
        var(--color-base-200);
}

.legal h2 {
    margin-top: 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    scroll-margin-top: 5rem;
}

.legal h3 {
    margin-top: 1.5rem;
    font-weight: 600;
    scroll-margin-top: 5rem;
}

.legal p,
.legal ul,
.legal ol,
.legal .table-wrap {
    margin-top: 0.75rem;
    line-height: 1.7;
}

.legal ul {
    list-style: disc;
    padding-inline-start: 1.5rem;
}

.bullets {
    list-style: disc;
    padding-inline-start: 1.5rem;
}

.legal ol {
    list-style: decimal;
    padding-inline-start: 1.5rem;
}

.legal li + li {
    margin-top: 0.375rem;
}

.legal a:not(.btn) {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal td,
.legal th {
    vertical-align: top;
}

.fieldset > .fieldset-legend,
.fieldset > div > .fieldset-legend {
    width: max-content;
    max-width: 100%;
}

.git-log-command {
    overflow-wrap: anywhere;
    line-height: 1.6;
}

body:has(#list-view.hidden) #task-search {
    display: none;
}

.textarea[readonly] {
    cursor: not-allowed;
    border-color: var(--color-base-200);
    background-color: var(--color-base-200);
    color: color-mix(in oklab, var(--color-base-content) 40%, transparent);
    box-shadow: none;
}

.textarea[readonly]::placeholder {
    color: var(--color-base-content);
    opacity: 0.5;
}

.post > :first-child {
    margin-top: 0;
}

.post h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    scroll-margin-top: 5rem;
}

.post h3 {
    margin-top: 1.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    scroll-margin-top: 5rem;
}

.post p,
.post ul,
.post ol,
.post pre,
.post blockquote,
.post table,
.post img {
    margin-top: 1rem;
    line-height: 1.75;
}

.post ul {
    list-style: disc;
    padding-inline-start: 1.5rem;
}

.post ol {
    list-style: decimal;
    padding-inline-start: 1.5rem;
}

.post li + li {
    margin-top: 0.375rem;
}

.post a {
    color: var(--color-primary);
    text-decoration: underline;
}

.post img {
    max-width: 100%;
    border-radius: var(--radius-box);
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.08);
}

.post code {
    font-size: 0.9em;
    background: var(--color-base-200);
    padding: 0.1em 0.35em;
    border-radius: 0.25rem;
}

.post pre {
    background: var(--color-base-200);
    padding: 1rem;
    border-radius: var(--radius-box);
    overflow-x: auto;
}

.post pre code {
    background: none;
    padding: 0;
}

.post blockquote {
    border-inline-start: 3px solid var(--color-base-300);
    padding-inline-start: 1rem;
    color: color-mix(in oklab, var(--color-base-content) 75%, transparent);
}

.post table {
    width: 100%;
    border-collapse: collapse;
}

.post th,
.post td {
    border-bottom: 1px solid var(--color-base-200);
    padding: 0.5rem;
    text-align: start;
}

#calendar {
    --fc-border-color: var(--color-base-200);
    --fc-page-bg-color: var(--color-base-100);
    --fc-neutral-bg-color: var(--color-base-200);
    --fc-list-event-hover-bg-color: var(--color-base-200);
    --fc-today-bg-color: color-mix(in oklab, var(--color-primary) 7%, transparent);
    --fc-now-indicator-color: var(--color-error);
    --fc-event-bg-color: color-mix(in oklab, var(--color-success) 18%, var(--color-base-100));
    --fc-event-border-color: var(--color-success);
    --fc-event-text-color: var(--color-base-content);
    --fc-button-text-color: var(--color-base-content);
    --fc-button-bg-color: var(--color-base-100);
    --fc-button-border-color: var(--color-base-300);
    --fc-button-hover-bg-color: var(--color-base-200);
    --fc-button-hover-border-color: var(--color-base-300);
    --fc-button-active-bg-color: var(--color-primary);
    --fc-button-active-border-color: var(--color-primary);
}

#calendar .fc-event.task-ip-box {
    --fc-event-bg-color: color-mix(in oklab, var(--color-error) 15%, var(--color-base-100));
    --fc-event-border-color: var(--color-error);
    --fc-event-text-color: var(--color-base-content);
}

#calendar .fc-toolbar-title {
    font-size: 1rem;
    font-weight: 500;
}

#calendar .fc-button {
    font-size: 0.8125rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-field);
    box-shadow: none;
}

#calendar .fc-button-group > .fc-button {
    border-radius: 0;
}

#calendar .fc-button-group > .fc-button:first-child {
    border-start-start-radius: var(--radius-field);
    border-end-start-radius: var(--radius-field);
}

#calendar .fc-button-group > .fc-button:last-child {
    border-start-end-radius: var(--radius-field);
    border-end-end-radius: var(--radius-field);
}

#calendar .fc-button-primary:not(:disabled).fc-button-active {
    color: var(--color-primary-content);
}

#calendar .fc-button:focus {
    box-shadow: none;
}

#calendar .fc-col-header-cell-cushion,
#calendar .fc-daygrid-day-number,
#calendar .fc-list-day-cushion a {
    color: var(--color-base-content);
    font-size: 0.8125rem;
    font-weight: 500;
}

#calendar .fc-day-today .fc-daygrid-day-number {
    color: var(--color-primary);
    font-weight: 700;
}

#calendar .fc-daygrid-event,
#calendar .fc-timegrid-event {
    border-radius: 0.375rem;
    padding: 1px 4px;
    font-size: 0.75rem;
}

#calendar .fc-list-event {
    cursor: pointer;
}

@media (max-width: 639px) {
    #calendar .fc-header-toolbar {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    #calendar .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
        order: -1;
        width: 100%;
    }
}

#calendar .fc-daygrid-block-event .fc-event-time {
    flex-shrink: 0;
}

#calendar .fc-list-table td {
    font-size: 0.875rem;
}

.modal-box {
    max-height: calc(100dvh - 2rem);
}
