/* ==================================================================
   Wyndham — Components
   ================================================================== */

/* ==================================================================
   Buttons
   ================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 38px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font-size: var(--size-base);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-snug);
    white-space: nowrap;
    transition: background var(--duration-fast) var(--ease),
                color var(--duration-fast) var(--ease),
                transform var(--duration-fast) var(--ease),
                opacity var(--duration-fast) var(--ease);
}

.btn svg { width: 17px; height: 17px; flex: 0 0 17px; stroke-width: 1.9; }

.btn:active { transform: scale(0.975); }

@media (hover: hover) {
    .btn:hover { background: var(--surface-3); }
}

.btn:disabled { opacity: 0.45; transform: none; }

.btn--primary { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) { .btn--primary:hover { background: var(--accent-hover); } }
.btn--primary:active { background: var(--accent-press); }

.btn--ghost { background: transparent; color: var(--text-2); }
@media (hover: hover) { .btn--ghost:hover { background: var(--surface-2); color: var(--text); } }

.btn--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (hover: hover) { .btn--outline:hover { background: var(--surface-2); } }

.btn--danger { background: var(--danger-soft); color: var(--danger); }
@media (hover: hover) { .btn--danger:hover { background: var(--danger); color: #fff; } }

.btn--block { width: 100%; }
.btn--large { min-height: 46px; padding: 0 var(--space-6); font-size: var(--size-md); }
.btn--small { min-height: 30px; padding: 0 var(--space-3); font-size: var(--size-sm); }

/* Square icon button, used throughout the header rows. */
.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    transition: background var(--duration-fast) var(--ease),
                color var(--duration-fast) var(--ease);
}

.icon-btn svg { width: 19px; height: 19px; stroke-width: 1.8; }

@media (hover: hover) { .icon-btn:hover { background: var(--surface-2); color: var(--text); } }
.icon-btn:active { background: var(--surface-3); }
.icon-btn.is-active { color: var(--accent); background: var(--accent-soft); }
.icon-btn--accent { color: var(--accent); }

/* ==================================================================
   Forms
   ================================================================== */

.field { margin-bottom: var(--space-5); }

.field__label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--size-sm);
    font-weight: var(--weight-medium);
    color: var(--text);
    letter-spacing: var(--tracking-snug);
}

.field__hint {
    margin-top: var(--space-2);
    font-size: var(--size-sm);
    color: var(--text-2);
    line-height: var(--leading-snug);
}

.input, .textarea, .select {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font-size: var(--size-base);
    box-shadow: inset 0 0 0 1px transparent;
    transition: background var(--duration-fast) var(--ease),
                box-shadow var(--duration-fast) var(--ease);
    /* 16px minimum on iOS or Safari zooms the page on focus. */
}

.input::placeholder, .textarea::placeholder { color: var(--text-3); }

.input:focus, .textarea:focus, .select:focus {
    background: var(--surface);
    box-shadow: inset 0 0 0 1.5px var(--accent);
    outline: none;
}

.select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: var(--space-8);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6862' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    background-size: 16px;
}

/* Error state: colour plus an inline message, never colour alone. */
.field.has-error .input,
.field.has-error .textarea,
.field.has-error .select {
    background: var(--danger-soft);
    box-shadow: inset 0 0 0 1.5px var(--danger);
}

.field__error {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: var(--size-sm);
    font-weight: var(--weight-medium);
    color: var(--danger);
    line-height: var(--leading-snug);
}

.field__error svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }

@media (max-width: 767px) {
    /* Prevent iOS zooming into a focused field. */
    .input, .textarea, .select { font-size: 16px; }
}

/* Checkbox and radio rows. */
.check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    cursor: pointer;
}

.check input {
    -webkit-appearance: none;
    appearance: none;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    margin-top: 1px;
    border-radius: var(--radius-xs);
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1.5px var(--line-strong);
    transition: var(--transition);
}

.check input[type="radio"] { border-radius: var(--radius-full); }

.check input:checked {
    background: var(--accent);
    box-shadow: inset 0 0 0 1.5px var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 13px;
    background-position: center;
    background-repeat: no-repeat;
}

.check__text { font-size: var(--size-base); line-height: var(--leading-snug); }
.check__text small { display: block; color: var(--text-2); margin-top: 2px; }

/* Toggle switch. */
.switch {
    position: relative;
    width: 47px;
    height: 28px;
    flex: 0 0 47px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: var(--radius-full);
    background: var(--line-strong);
    cursor: pointer;
    transition: background var(--duration-base) var(--ease);
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-base) var(--ease);
}

.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(19px); }

/* ==================================================================
   Cards, rows and panels
   ================================================================== */

.card {
    padding: var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

@media (min-width: 768px) {
    /* Inside the content card, nested cards use the recessed tone so
       they do not read as a card on a card. */
    .view .card { background: var(--surface-2); border-color: transparent; }
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}

@media (min-width: 768px) {
    .view .panel { background: var(--surface-2); border-color: transparent; }
}

.panel__title {
    padding: var(--space-4) var(--space-5) var(--space-2);
    font-size: var(--size-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--text-3);
}

.row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-4) var(--space-5);
    text-align: left;
    transition: background var(--duration-fast) var(--ease);
}

.row + .row { box-shadow: inset 0 1px 0 var(--line); }

button.row, a.row { cursor: pointer; }

@media (hover: hover) {
    button.row:hover, a.row:hover { background: var(--surface-3); }
}

.row__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: var(--radius-xs);
    background: var(--surface-3);
    color: var(--text-2);
}

.row__icon svg { width: 17px; height: 17px; }

.row__main { flex: 1; min-width: 0; }

.row__title {
    font-size: var(--size-base);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-snug);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row__meta {
    margin-top: 1px;
    font-size: var(--size-sm);
    color: var(--text-2);
    overflow: hidden;
    text-overflow: ellipsis;
}

.row__value {
    font-size: var(--size-sm);
    color: var(--text-2);
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

.row__chevron { color: var(--text-3); flex: 0 0 auto; }
.row__chevron svg { width: 17px; height: 17px; }

/* Section heading between panels. */
.section-title {
    padding: var(--space-7) 0 var(--space-3);
    font-size: var(--size-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--text-3);
}

.section-title:first-child { padding-top: var(--space-2); }

/* ==================================================================
   Book grid and covers
   ================================================================== */

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: var(--space-5) var(--space-4);
}

@media (min-width: 640px)  { .book-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: var(--space-6) var(--space-5); } }
@media (min-width: 1100px) { .book-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

.book-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-align: left;
    transition: transform var(--duration-base) var(--ease);
}

.book-card:active { transform: scale(0.97); }

.book-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    box-shadow: var(--shadow-cover);
    overflow: hidden;
    transition: box-shadow var(--duration-base) var(--ease),
                transform var(--duration-base) var(--ease);
}

@media (hover: hover) {
    .book-card:hover .book-cover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Drawn placeholder while the image loads or when there is none. */
.book-cover__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-3);
    background: linear-gradient(155deg, var(--surface-3), var(--surface-2));
    color: var(--text-2);
}

.book-cover__fallback strong {
    font-size: var(--size-sm);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-cover__fallback span {
    margin-top: var(--space-1);
    font-size: var(--size-2xs);
    color: var(--text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Progress ribbon along the bottom of a cover. */
.book-cover__progress {
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.16);
}

.book-cover__progress i {
    display: block;
    height: 100%;
    background: var(--accent);
    transition: width var(--duration-slow) var(--ease);
}

.book-cover__badge {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--material);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.book-cover__badge svg { width: 13px; height: 13px; fill: currentColor; }

.book-cover__format {
    position: absolute;
    bottom: var(--space-2);
    left: var(--space-2);
    padding: 2px var(--space-2);
    border-radius: var(--radius-xs);
    background: var(--material);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 9.5px;
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--text-2);
}

.book-card__title {
    font-size: var(--size-sm);
    font-weight: var(--weight-medium);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card__author {
    margin-top: 2px;
    font-size: var(--size-xs);
    color: var(--text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* List presentation of the same data. */
.book-list { display: flex; flex-direction: column; }

.book-list__item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-2);
    border-radius: var(--radius-md);
    text-align: left;
    transition: background var(--duration-fast) var(--ease);
}

.book-list__item + .book-list__item { box-shadow: inset 0 1px 0 var(--line); }

@media (hover: hover) { .book-list__item:hover { background: var(--surface-2); box-shadow: none; } }

.book-list__cover {
    width: 44px;
    flex: 0 0 44px;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-xs);
    overflow: hidden;
    background: var(--surface-2);
    box-shadow: var(--shadow-sm);
}

.book-list__cover img { width: 100%; height: 100%; object-fit: cover; }

/* ==================================================================
   Star rating
   ================================================================== */

.stars { display: inline-flex; gap: 2px; }

.stars button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--line-strong);
    transition: color var(--duration-fast) var(--ease),
                transform var(--duration-fast) var(--ease);
}

.stars button svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.stars button.is-on { color: var(--star); }
.stars button:active { transform: scale(1.18); }

.stars--small button { width: 17px; height: 17px; }
.stars--small button svg { width: 13px; height: 13px; }

/* ==================================================================
   Segmented control
   ================================================================== */

.segmented {
    display: inline-flex;
    padding: 3px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    gap: 2px;
}

.segmented button {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-xs);
    font-size: var(--size-sm);
    font-weight: var(--weight-medium);
    color: var(--text-2);
    white-space: nowrap;
    transition: var(--transition);
}

.segmented button.is-active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .view .segmented { background: var(--surface-3); }
}

/* ==================================================================
   Chips
   ================================================================== */

.chips {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: var(--size-sm);
    font-weight: var(--weight-medium);
    white-space: nowrap;
    transition: var(--transition);
}

.chip.is-active { background: var(--accent); color: var(--on-accent); }
.chip svg { width: 14px; height: 14px; }

/* ==================================================================
   Status pill
   ================================================================== */

.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 3px var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--size-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-snug);
    background: var(--surface-2);
    color: var(--text-2);
}

.pill--reading  { background: var(--accent-soft);   color: var(--accent); }
.pill--finished { background: var(--positive-soft); color: var(--positive); }
.pill--unread   { background: var(--surface-2);     color: var(--text-2); }
.pill--abandoned{ background: var(--warning-soft);  color: var(--warning); }

/* ==================================================================
   Empty and first-run states
   ================================================================== */

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-10) var(--space-5);
    text-align: center;
    min-height: 40vh;
}

.empty__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    color: var(--text-3);
}

.empty__icon svg { width: 28px; height: 28px; stroke-width: 1.5; }

.empty__title {
    font-size: var(--size-md);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-snug);
}

.empty__text {
    max-width: 42ch;
    font-size: var(--size-base);
    color: var(--text-2);
    line-height: var(--leading-normal);
}

/* ==================================================================
   Toasts — brief, non-blocking confirmations
   ================================================================== */

.toasts {
    position: fixed;
    z-index: 300;
    left: 50%;
    top: calc(var(--space-4) + var(--safe-top));
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: min(440px, calc(100vw - var(--space-8)));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--material-line);
    border-radius: var(--radius-md);
    background: var(--material);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: var(--shadow-lg);
    font-size: var(--size-sm);
    font-weight: var(--weight-medium);
    color: var(--text);
    pointer-events: auto;
    animation: toast-in var(--duration-slow) var(--ease-out);
}

.toast.is-leaving { animation: toast-out var(--duration-base) var(--ease) forwards; }

.toast__icon { flex: 0 0 auto; display: grid; place-items: center; }
.toast__icon svg { width: 17px; height: 17px; }
.toast--success .toast__icon { color: var(--positive); }
.toast--error   .toast__icon { color: var(--danger); }
.toast--info    .toast__icon { color: var(--accent); }
.toast__text { flex: 1; line-height: var(--leading-snug); }

.toast__action {
    flex: 0 0 auto;
    padding: var(--space-1) var(--space-2);
    color: var(--accent);
    font-weight: var(--weight-semibold);
    font-size: var(--size-sm);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

@media (min-width: 768px) {
    .toasts { top: auto; bottom: calc(var(--space-5) + var(--safe-bottom)); left: auto; right: var(--space-5); transform: none; }
    @keyframes toast-in {
        from { opacity: 0; transform: translateY(14px) scale(0.97); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }
}

/* ==================================================================
   Sheet — a bottom panel on mobile, a side panel on desktop.
   Used in place of modal dialogs so the app stays in context.
   ================================================================== */

.sheet-scrim {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--scrim);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-base) var(--ease),
                visibility var(--duration-base) var(--ease);
}

.sheet-scrim.is-open { opacity: 1; visibility: visible; }

.sheet {
    position: fixed;
    z-index: 110;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 88dvh;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: translateY(101%);
    transition: transform var(--duration-slow) var(--ease);
    padding-bottom: var(--safe-bottom);
}

.sheet.is-open { transform: translateY(0); }

.sheet__grab {
    width: 38px;
    height: 4px;
    margin: var(--space-3) auto var(--space-1);
    border-radius: var(--radius-full);
    background: var(--line-strong);
    flex: 0 0 auto;
}

.sheet__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5) var(--space-3);
    flex: 0 0 auto;
}

.sheet__title {
    flex: 1;
    font-size: var(--size-md);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-snug);
}

.sheet__body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 var(--space-5) var(--space-6);
}

.sheet__footer {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--line);
    flex: 0 0 auto;
}

.sheet__footer .btn { flex: 1; }

@media (min-width: 768px) {
    .sheet {
        top: var(--space-5);
        bottom: var(--space-5);
        left: auto;
        right: var(--space-5);
        width: min(440px, calc(100vw - var(--space-8)));
        max-height: none;
        border-radius: var(--radius-xl);
        border: 1px solid var(--line);
        transform: translateX(calc(100% + var(--space-6)));
    }

    .sheet.is-open { transform: translateX(0); }
    .sheet__grab { display: none; }
    .sheet__header { padding-top: var(--space-5); }
}

/* ==================================================================
   Progress bar and meters
   ================================================================== */

.meter {
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--surface-3);
    overflow: hidden;
}

.meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width var(--duration-slow) var(--ease);
}

.meter--tall { height: 9px; }

/* ==================================================================
   Skeletons — shown while a list loads
   ================================================================== */

.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.4s ease-in-out infinite;
    border-radius: var(--radius-xs);
}

@keyframes skeleton {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.skeleton--cover { aspect-ratio: 2 / 3; border-radius: var(--radius-sm); }
.skeleton--line  { height: 11px; margin-top: var(--space-2); }
.skeleton--line.is-short { width: 62%; }

/* ==================================================================
   Inline confirmation — replaces a browser confirm() dialog
   ================================================================== */

.confirm {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: var(--size-sm);
    line-height: var(--leading-snug);
}

.confirm__text { flex: 1; }
.confirm .btn { flex: 0 0 auto; }

/* ==================================================================
   Utilities
   ================================================================== */

.stack        { display: flex; flex-direction: column; }
.stack-2 > * + * { margin-top: var(--space-2); }
.stack-3 > * + * { margin-top: var(--space-3); }
.stack-4 > * + * { margin-top: var(--space-4); }
.stack-5 > * + * { margin-top: var(--space-5); }
.stack-6 > * + * { margin-top: var(--space-6); }

.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.spacer  { flex: 1; }

.text-2   { color: var(--text-2); }
.text-3   { color: var(--text-3); }
.text-sm  { font-size: var(--size-sm); }
.text-xs  { font-size: var(--size-xs); }
.text-lg  { font-size: var(--size-lg); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.nums     { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
