@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/Space_Grotesk/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}

:root {
    color-scheme: light;
    --font-display: 'Space Grotesk', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --accent: #663399;
    --accent-rgb: 102, 51, 153;
    --accent-strong: #552b80;
    --accent-soft: #efe8f8;
    --accent-glow: rgba(var(--accent-rgb), 0.18);
    --bg: #f6f1fb;
    --bg-elevated: rgba(255, 255, 255, 0.8);
    --bg-strong: #ffffff;
    --bg-muted: rgba(255, 255, 255, 0.62);
    --text: #1d1630;
    --text-muted: #645a79;
    --text-faint: #8f87a4;
    --line: rgba(96, 67, 126, 0.14);
    --line-strong: rgba(96, 67, 126, 0.22);
    --success: #1f9d6a;
    --danger: #c54d72;
    --shadow-lg: 0 30px 80px rgba(54, 35, 80, 0.14);
    --shadow-md: 0 18px 45px rgba(54, 35, 80, 0.1);
    --shadow-sm: 0 8px 20px rgba(54, 35, 80, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --content-width: min(1380px, calc(100vw - 44px));
    --page-padding: clamp(20px, 3vw, 36px);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #140f1d;
    --bg-elevated: rgba(33, 24, 49, 0.88);
    --bg-strong: #1c1529;
    --bg-muted: rgba(39, 28, 60, 0.72);
    --text: #f4efff;
    --text-muted: #beb1d9;
    --text-faint: #9182b7;
    --line: rgba(226, 217, 255, 0.12);
    --line-strong: rgba(226, 217, 255, 0.24);
    --accent-soft: rgba(var(--accent-rgb), 0.18);
    --accent-glow: rgba(var(--accent-rgb), 0.28);
    --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.46);
    --shadow-md: 0 22px 55px rgba(0, 0, 0, 0.34);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.26);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.2), transparent 38%),
        radial-gradient(circle at 85% 18%, rgba(92, 185, 255, 0.12), transparent 30%),
        linear-gradient(180deg, #fbf9fe 0%, #f3eef9 48%, #efe8f8 100%);
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

body::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.06) 1px, transparent 1px),
        linear-gradient(rgba(var(--accent-rgb), 0.05) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
    mask-image: radial-gradient(circle at center, black 22%, transparent 78%);
    opacity: 0.5;
}

body::after {
    inset: auto;
    width: 44vw;
    height: 44vw;
    right: -10vw;
    top: -14vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 68%);
    filter: blur(8px);
    z-index: -1;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    width: 100%;
    position: relative;
}

.surface-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px) saturate(135%);
}

.ghost-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.08) 1px, transparent 1px),
        linear-gradient(rgba(var(--accent-rgb), 0.08) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, transparent, black 16%, black 84%, transparent);
    opacity: 0.28;
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, var(--accent));
    box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.1);
}

.brand-mark,
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-mark {
    width: 52px;
    height: 52px;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 232, 252, 0.88));
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 26px rgba(var(--accent-rgb), 0.14);
    color: var(--accent);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    color: var(--text-faint);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.button,
.ghost-button,
.theme-pill,
.icon-button,
.auth-link,
.toolbar-button,
.rename-pane button,
#table-insert-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
    position: relative;
}

.toolbar-button-wrap {
    position: relative;
    display: inline-flex;
}

.toolbar-glyph-underline {
    text-decoration: underline;
}

.is-hidden {
    display: none !important;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 11, 28, 0.52);
    backdrop-filter: blur(10px);
}

.confirm-modal__panel {
    position: relative;
    width: min(440px, calc(100vw - 32px));
    padding: 28px;
    border-radius: 24px;
    background: var(--bg-strong);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.confirm-modal__eyebrow {
    margin: 0 0 10px;
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.confirm-modal__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    line-height: 1.1;
}

.confirm-modal__message {
    margin: 14px 0 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
}

.confirm-modal__button {
    min-width: 100px;
}

.confirm-modal .button.danger {
    background: linear-gradient(135deg, #cf5875, #b43f62);
    box-shadow: 0 18px 32px rgba(197, 77, 114, 0.24);
}

@media (max-width: 640px) {
    .confirm-modal__panel {
        padding: 22px;
        border-radius: 20px;
    }

    .confirm-modal__actions {
        flex-direction: column-reverse;
    }

    .confirm-modal__button {
        width: 100%;
    }
}

.button,
.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 18px 32px rgba(var(--accent-rgb), 0.24);
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.button:hover,
.ghost-button:hover,
.theme-pill:hover,
.icon-button:hover,
.toolbar-button:hover,
.rename-pane button:hover,
#table-insert-btn:hover,
.auth-submit:hover,
.auth-link:hover {
    transform: translateY(-1px);
}

.button:focus-visible,
.ghost-button:focus-visible,
.theme-pill:focus-visible,
.icon-button:focus-visible,
.toolbar-button:focus-visible,
.auth-submit:focus-visible,
.auth-link:focus-visible,
.rename-pane button:focus-visible,
#table-insert-btn:focus-visible,
.auth-input:focus-visible,
.rename-pane input:focus-visible,
.rich-text-note:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), 0.24);
    outline-offset: 2px;
}

body.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.error-card {
    width: min(100%, 32rem);
    max-width: 32rem;
    padding: clamp(28px, 4vw, 42px);
    border-radius: var(--radius-xl);
    position: relative;
    margin: auto;
}

.error-card::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: calc(var(--radius-xl) - 10px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 34%),
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.26));
    pointer-events: none;
}

.error-content {
    position: relative;
    z-index: 1;
}

.error-eyebrow {
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 232, 252, 0.88));
    border-color: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.error-eyebrow::before {
    content: none;
}

.error-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.9rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.error-copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.error-copy a {
    color: var(--accent-strong);
    font-weight: 600;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
}

.error-copy a:hover,
.error-copy a:focus-visible {
    color: var(--accent);
}

.error-actions {
    display: flex;
    margin-top: 24px;
}

.error-home-button {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
}

.error-home-button img {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) invert(1);
}

.error-home-button:hover,
.error-home-button:focus-visible {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(var(--accent-rgb), 0.28);
    filter: saturate(1.04);
}

.marketing-page {
    padding: 16px 0 110px;
}

.marketing-shell {
    width: var(--content-width);
    margin: 0 auto;
    position: relative;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-radius: 26px;
    margin-bottom: 20px;
    position: sticky;
    top: 14px;
    z-index: 20;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-pill {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.66);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transform-origin: center;
}

.theme-pill svg,
.theme-pill img {
    width: 17px;
    height: 17px;
    display: block;
}

.theme-pill img {
    filter: brightness(0);
}

.theme-pill[data-theme-mode="dark"] {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.2);
    color: var(--accent-strong);
}

.theme-pill[data-theme-mode="dark"] img {
    filter: brightness(0) invert(1);
}

.theme-pill:active {
    animation: theme-pill-press 140ms ease-out;
}

@keyframes theme-pill-press {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(0.965);
    }

    100% {
        transform: scale(1);
    }
}

.landing-main {
    display: grid;
    gap: 22px;
    padding-top: 6px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(18px, 2.5vw, 28px);
    align-items: stretch;
}

.hero-panel,
.feature-showcase,
.feature-card,
.auth-card,
.notes-app {
    border-radius: var(--radius-xl);
}

.hero-panel {
    padding: clamp(30px, 4vw, 54px);
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.hero-panel::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -14%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 72%);
    pointer-events: none;
}

.hero-panel h1,
.notes-heading h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4.2vw, 4.8rem);
    line-height: 0.96;
    margin: 18px 0 18px;
    letter-spacing: -0.04em;
}

.hero-panel p {
    max-width: 58ch;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.metric-card {
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.feature-showcase {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.feature-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 34%);
    pointer-events: none;
}

.showcase-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(var(--accent-rgb), 0.14);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
    min-height: 220px;
    isolation: isolate;
}

.showcase-card.is-large {
    grid-column: span 7;
    min-height: 100%;
}

.showcase-stack {
    grid-column: span 5;
    display: grid;
    gap: 16px;
}

.showcase-stack .showcase-card {
    min-height: 188px;
}

.showcase-card img,
.feature-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.035);
    filter: grayscale(0.28) saturate(0.56) hue-rotate(6deg) contrast(1.02) brightness(0.86);
    transition: transform 900ms ease, filter 260ms ease;
}

.showcase-card::after,
.feature-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17, 12, 25, 0.05), rgba(17, 12, 25, 0.62)),
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(255, 255, 255, 0.06));
    pointer-events: none;
}

.showcase-card:hover img,
.feature-card:hover .feature-media img {
    transform: scale(1.08);
    filter: grayscale(0.15) saturate(0.7) hue-rotate(4deg) contrast(1.04) brightness(0.92);
}

.showcase-copy {
    position: absolute;
    inset: auto 18px 18px 18px;
    z-index: 1;
    display: grid;
    gap: 8px;
    color: #ffffff;
}

.showcase-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(22, 15, 31, 0.3);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.showcase-copy strong {
    font-family: var(--font-display);
    font-size: 1.06rem;
    letter-spacing: -0.02em;
}

.showcase-copy span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 18px;
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 18px;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: auto -20px -30px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 70%);
    opacity: 0.66;
}

.feature-media {
    position: relative;
    height: 210px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(var(--accent-rgb), 0.14);
    background: rgba(31, 22, 42, 0.88);
}

.feature-copy {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 233, 252, 0.8));
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    margin-bottom: 18px;
    color: var(--accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.feature-card h2,
.auth-card h1,
.notes-surface h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.feature-card p,
.auth-helper,
.auth-links a,
.notes-heading p {
    color: var(--text-muted);
    line-height: 1.65;
}

.site-footer {
    width: var(--content-width);
    margin: 22px auto 0;
    display: flex;
    justify-content: flex-end;
    color: var(--text-faint);
    font-size: 0.92rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    background: rebeccapurple;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(102, 51, 153, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.94);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    z-index: 45;
}

.back-to-top img {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) invert(1);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 20px);
    width: min(760px, calc(100vw - 24px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    z-index: 40;
}

.cookie-banner.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.cookie-banner p {
    margin: 0;
    color: var(--text-muted);
}

.auth-page {
    padding: clamp(28px, 5vw, 60px) 16px;
    display: grid;
    place-items: center;
}

.auth-shell {
    width: min(520px, 100%);
    position: relative;
}

.auth-ambient {
    position: absolute;
    inset: -20px;
    z-index: -1;
    filter: blur(6px);
}

.auth-ambient::before,
.auth-ambient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.auth-ambient::before {
    width: 220px;
    height: 220px;
    left: -40px;
    top: -10px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2), transparent 72%);
}

.auth-ambient::after {
    width: 180px;
    height: 180px;
    right: -20px;
    bottom: -16px;
    background: radial-gradient(circle, rgba(104, 208, 255, 0.18), transparent 72%);
}

.auth-card {
    padding: 34px clamp(22px, 5vw, 38px);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 32%);
    pointer-events: none;
}

.auth-brand {
    justify-content: center;
    width: 100%;
    margin-bottom: 18px;
}

.auth-card h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-helper {
    text-align: center;
    margin: 0 0 24px;
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.flash-banner {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    line-height: 1.5;
}

.flash-banner.is-info,
.flash-banner.is-success,
.flash-banner.is-danger {
    backdrop-filter: blur(10px);
}

.flash-banner.is-info {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.18);
    color: var(--accent-strong);
}

.flash-banner.is-success {
    background: rgba(31, 157, 106, 0.12);
    border-color: rgba(31, 157, 106, 0.16);
    color: var(--success);
}

.flash-banner.is-danger {
    background: rgba(197, 77, 114, 0.11);
    border-color: rgba(197, 77, 114, 0.18);
    color: var(--danger);
}

.auth-form,
.auth-form .actions,
.auth-links,
.auth-fieldset {
    display: grid;
    gap: 14px;
}

.auth-fieldset {
    gap: 12px;
}

.auth-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-input,
.rename-pane input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.auth-input[readonly] {
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--text-muted);
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--text-muted);
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.auth-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.auth-links.auth-links-single {
    grid-template-columns: 1fr;
}

.auth-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    padding: 4px 0;
}

.auth-link.is-right {
    justify-self: end;
}

.processing-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(21, 14, 31, 0.42);
    backdrop-filter: blur(8px);
    z-index: 90;
}

.processing-overlay.is-visible {
    display: flex;
}

.overlay-panel {
    display: grid;
    place-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-radius: 28px;
    background: rgba(25, 18, 36, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    min-width: min(340px, calc(100vw - 28px));
}

.overlay-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), rgba(var(--accent-rgb), 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #5aa2ff;
}

.overlay-icon svg {
    width: 82px;
    height: 82px;
}

.overlay-graphic,
.overlay-panel img {
    width: 82px;
    height: 82px;
    display: block;
    object-fit: contain;
    opacity: 0.9;
    filter: brightness(1.05) contrast(0.98);
}

.overlay-panel strong {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
}

.ellipsis {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ellipsis span {
    animation: dot-bounce 1100ms infinite ease-in-out;
    display: inline-block;
}

.ellipsis span:nth-child(2) {
    animation-delay: 120ms;
}

.ellipsis span:nth-child(3) {
    animation-delay: 240ms;
}

@keyframes dot-bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.44;
    }

    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.blur-wrapper.is-processing {
    filter: blur(3px) saturate(0.86) brightness(0.96);
    pointer-events: none;
    user-select: none;
}

.notes-page {
    padding: clamp(20px, 4vw, 38px) 0 34px;
    overflow-y: auto;
}

.notes-page.notes-scrollable {
    overflow-y: auto;
}

.notes-shell {
    width: min(1260px, calc(100vw - 28px));
    margin: 0 auto;
    transition: filter 180ms ease, opacity 180ms ease;
}

.notes-page.is-modal-open {
    overflow: hidden;
}

.notes-page.is-modal-open .page-shell {
    filter: blur(10px);
    opacity: 0.82;
    pointer-events: none;
    user-select: none;
}

.notes-app {
    padding: clamp(18px, 3vw, 28px);
    position: relative;
    overflow: hidden;
}

.notes-app::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 36%);
    pointer-events: none;
}

.notes-heading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 22px;
    transition: margin 180ms ease, opacity 180ms ease, transform 180ms ease, max-height 180ms ease;
    max-height: 420px;
    overflow: hidden;
}

.notes-heading-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.notes-heading h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 14px 0 10px;
}

.notes-heading p {
    max-width: 58ch;
    margin: 0;
}

.notes-heading-body {
    display: block;
}

.notes-heading-body>p:first-child {
    max-width: 58ch;
}

.notes-heading p.notes-heading-quote {
    width: 100%;
    max-width: none;
    margin-left: 0;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rebeccapurple;
    font-style: italic;
}

.notes-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent-strong);
    font-size: 0.88rem;
    font-weight: 800;
}

.notes-status-chip::before {
    content: '';
    width: 9px;
    height: 9px;
    min-width: 9px;
    min-height: 9px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, var(--accent));
}

.notes-surface {
    position: relative;
    z-index: 1;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.4));
    border: 1px solid rgba(var(--accent-rgb), 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
    padding: 26px 18px 18px;
}

.notes-app.is-heading-collapsed .notes-heading {
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
}

.notes-heading-toggle {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 3;
    min-width: 42px;
    padding: 0;
}

.notes-heading-toggle:hover {
    transform: translate(-50%, -50%) translateY(-1px);
}

.notes-heading-toggle:focus-visible {
    transform: translate(-50%, -50%);
}

.notes-heading-toggle img {
    width: 18px;
    height: 18px;
    display: block;
}

[data-theme="dark"] .notes-heading-toggle img {
    filter: brightness(0) invert(1);
}

.notes-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-group.is-actions {
    margin-left: auto;
}

.toolbar-button,
.icon-button,
#table-insert-btn,
.rename-pane button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.toolbar-button svg,
.icon-button svg {
    width: 18px;
    height: 18px;
}

.toolbar-button.active-format {
    color: var(--accent-strong);
    border-color: rgba(var(--accent-rgb), 0.28);
    background: rgba(var(--accent-rgb), 0.12);
    box-shadow: 0 12px 26px rgba(var(--accent-rgb), 0.14);
}

.toolbar-button .fmt-indicator {
    width: 8px;
    height: 8px;
    position: absolute;
    top: 8px;
    right: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
    opacity: 0;
    transition: opacity 180ms ease;
}

.toolbar-button.active-format .fmt-indicator {
    opacity: 1;
}

.icon-button.danger {
    color: var(--danger);
}

.icon-button.danger svg path,
.icon-button.danger svg line,
.icon-button.danger svg rect,
.icon-button.danger svg polyline {
    stroke: currentColor;
}

.tabs-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.tabs {
    display: inline-flex;
    align-items: stretch;
    gap: 10px;
    min-width: min-content;
}

.tab {
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
    gap: 10px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.56);
    color: var(--text-muted);
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 3pc rgba(58, 40, 85, 0.04);
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
    user-select: none;
}

.tab:hover {
    transform: translateY(-1px);
}

.tab.active {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(255, 255, 255, 0.88));
    color: var(--accent-strong);
    border-color: rgba(var(--accent-rgb), 0.16);
    box-shadow: 0 0 3pc rgba(var(--accent-rgb), 0.11);
}

.tab.dragging {
    opacity: 0.45;
}

.tab .rename {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: var(--text-faint);
    transition: background-color 180ms ease, color 180ms ease;
}

.tab .rename img {
    width: 12px;
    height: 12px;
    display: block;
}

[data-theme="dark"] .tab .rename img {
    filter: brightness(0) invert(1);
}

.tab .rename:hover {
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent-strong);
}

.tab .rename.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.editor-stage {
    position: relative;
    margin-top: 18px;
}

.tab-content {
    display: flex;
}

.rich-text-note {
    width: 100%;
    max-width: 100%;
    min-height: 320px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 255, 0.96));
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 20px 36px rgba(58, 40, 85, 0.09);
    outline: none;
    overflow: auto;
    resize: vertical;
    line-height: 1.7;
}

.rich-text-note:empty::before {
    content: attr(data-placeholder);
    color: var(--text-faint);
}

.rich-text-note p:first-child {
    margin-top: 0;
}

.rich-text-note table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 12px 0;
    overflow: hidden;
    border-radius: 14px;
}

.rich-text-note table.fixed-table.cols-1 col {
    width: 100%;
}

.rich-text-note table.fixed-table.cols-2 col {
    width: 50%;
}

.rich-text-note table.fixed-table.cols-3 col {
    width: 33.3333%;
}

.rich-text-note table.fixed-table.cols-4 col {
    width: 25%;
}

.rich-text-note table.fixed-table.cols-5 col {
    width: 20%;
}

.rich-text-note table.fixed-table.cols-6 col {
    width: 16.6667%;
}

.rich-text-note table.fixed-table.cols-7 col {
    width: 14.2857%;
}

.rich-text-note table.fixed-table.cols-8 col {
    width: 12.5%;
}

.rich-text-note table.fixed-table.cols-9 col {
    width: 11.1111%;
}

.rich-text-note table.fixed-table.cols-10 col {
    width: 10%;
}

.rich-text-note th,
.rich-text-note td {
    border: 1px solid rgba(var(--accent-rgb), 0.14);
    padding: 10px 12px;
    text-align: left;
    word-break: break-word;
}

.rich-text-note tr:nth-child(odd) td {
    background: rgba(var(--accent-rgb), 0.035);
}

.bottom-status {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 32px;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.92rem;
    padding-right: 180px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-indicator.is-welcome {
    color: var(--accent-strong);
    font-weight: 800;
}

.status-indicator.is-saved {
    color: var(--success);
    font-weight: 700;
}

.powered-by {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 0.85rem;
}

.powered-by a {
    text-decoration: none;
}

.table-picker,
.rename-pane {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    z-index: 50;
}

.table-picker {
    top: calc(100% + 10px);
    right: 0;
    width: 252px;
    padding: 16px;
}

.table-picker-header {
    margin-bottom: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-muted);
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.table-grid div {
    aspect-ratio: 1;
    border-radius: 7px;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    background: rgba(var(--accent-rgb), 0.04);
}

.table-grid div.preview {
    background: rgba(var(--accent-rgb), 0.16);
}

.table-grid div.active {
    background: var(--accent);
    border-color: var(--accent);
}

.table-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

#table-insert-btn:disabled {
    opacity: 0.48;
    cursor: default;
    transform: none;
}

.rename-pane {
    position: fixed;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    width: auto;
    min-width: 0;
}

.rename-pane input {
    flex: 1 1 100%;
    min-width: 0;
}

.rename-pane button,
#table-insert-btn {
    min-height: 40px;
    border-color: rgba(var(--accent-rgb), 0.16);
}

.rename-pane .cancel-btn {
    color: var(--text-muted);
}

.rename-pane .rename-error {
    display: none;
    color: var(--danger);
    font-size: 0.82rem;
}

.rename-pane .rename-error.is-visible {
    display: inline;
}

[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.28), transparent 40%),
        radial-gradient(circle at 85% 18%, rgba(92, 185, 255, 0.16), transparent 30%),
        linear-gradient(180deg, #120d19 0%, #171123 48%, #0d0914 100%);
}

[data-theme="dark"] body::before {
    background:
        linear-gradient(rgba(11, 8, 16, 0.48), rgba(11, 8, 16, 0.48)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    opacity: 0.72;
}

[data-theme="dark"] body::after {
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 68%);
    filter: blur(12px);
}

[data-theme="dark"] .eyebrow {
    background: rgba(31, 23, 45, 0.86);
    border-color: rgba(var(--accent-rgb), 0.24);
    color: #dfd4f6;
}

[data-theme="dark"] .brand-mark {
    background: linear-gradient(135deg, rgba(36, 27, 51, 0.96), rgba(21, 16, 31, 0.92));
    border-color: rgba(var(--accent-rgb), 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 26px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .ghost-button {
    background: rgba(29, 22, 42, 0.84);
}

[data-theme="dark"] .error-eyebrow {
    background: rgba(31, 23, 45, 0.86);
    border-color: rgba(var(--accent-rgb), 0.24);
    color: #dfd4f6;
}

[data-theme="dark"] .theme-pill {
    background: rgba(28, 21, 40, 0.84);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .theme-pill[data-theme-mode="dark"] {
    background: rgba(var(--accent-rgb), 0.24);
    border-color: rgba(var(--accent-rgb), 0.34);
    color: #f4efff;
}

[data-theme="dark"] .notes-heading p.notes-heading-quote {
    color: var(--danger);
}

[data-theme="dark"] .metric-card {
    background: rgba(25, 18, 36, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .feature-showcase::before,
[data-theme="dark"] .auth-card::before,
[data-theme="dark"] .notes-app::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 36%);
}

[data-theme="dark"] .showcase-card {
    background: rgba(22, 16, 32, 0.88);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .feature-media {
    background: rgba(16, 12, 24, 0.94);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .feature-icon {
    background: linear-gradient(135deg, rgba(35, 26, 50, 0.96), rgba(21, 16, 30, 0.9));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cookie-banner {
    background: rgba(20, 15, 30, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .auth-input,
[data-theme="dark"] .rename-pane input {
    background: rgba(21, 16, 31, 0.9);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .notes-surface {
    background: linear-gradient(180deg, rgba(28, 21, 40, 0.94), rgba(18, 14, 28, 0.9));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .toolbar-button,
[data-theme="dark"] .icon-button,
[data-theme="dark"] #table-insert-btn,
[data-theme="dark"] .rename-pane button {
    background: rgba(24, 18, 35, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .toolbar-button.active-format {
    background: rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 12px 26px rgba(var(--accent-rgb), 0.18);
}

[data-theme="dark"] .tab {
    background: rgba(26, 20, 38, 0.84);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 3pc rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .tab.active {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(39, 28, 58, 0.96));
    color: #f4efff;
    border-color: rgba(var(--accent-rgb), 0.28);
    box-shadow: 0 0 3pc rgba(var(--accent-rgb), 0.2);
}

[data-theme="dark"] .rich-text-note {
    background: linear-gradient(180deg, rgba(20, 16, 29, 0.98), rgba(16, 12, 24, 0.98));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 36px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .rich-text-note th,
[data-theme="dark"] .rich-text-note td {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .rich-text-note tr:nth-child(odd) td {
    background: rgba(var(--accent-rgb), 0.12);
}

[data-theme="dark"] .table-picker,
[data-theme="dark"] .rename-pane {
    background: rgba(20, 15, 30, 0.94);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .table-grid div {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .table-grid div.preview {
    background: rgba(var(--accent-rgb), 0.26);
}

.notes-json {
    display: none;
}

.fade-in-up {
    animation: fade-up 680ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.fade-in-up:nth-child(2) {
    animation-delay: 90ms;
}

.fade-in-up:nth-child(3) {
    animation-delay: 180ms;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {

    .hero-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-showcase {
        grid-template-columns: 1fr;
    }

    .showcase-card.is-large,
    .showcase-stack {
        grid-column: auto;
    }
}

@media (max-width: 760px) {

    .site-header,
    .notes-toolbar,
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions,
    .toolbar-group,
    .toolbar-group.is-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .hero-metrics,
    .auth-links,
    .auth-links.auth-links-single {
        grid-template-columns: 1fr;
    }

    .auth-link.is-right {
        justify-self: start;
    }

    .bottom-status {
        padding-right: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .powered-by {
        position: static;
        transform: none;
    }

    .notes-heading-main {
        flex-direction: column;
    }

    .notes-heading p.notes-heading-quote {
        max-width: none;
        text-align: left;
    }

    .site-header {
        position: static;
        top: auto;
    }

    body.is-mobile-header-dismissed .site-header {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@media (max-width: 560px) {
    body.error-page {
        padding: 16px;
    }

    .error-card {
        width: 100%;
    }

    body::after {
        width: 72vw;
        height: 72vw;
        right: -20vw;
        top: -24vw;
    }

    .hero-panel,
    .feature-showcase,
    .feature-card,
    .auth-card,
    .notes-app {
        border-radius: 24px;
    }

    .notes-surface,
    .auth-card,
    .hero-panel,
    .feature-showcase {
        padding: 18px;
    }

    .showcase-card,
    .feature-media {
        min-height: 190px;
        height: 190px;
    }

    .toolbar-button,
    .icon-button {
        min-width: 40px;
        min-height: 40px;
        padding: 0 12px;
    }

    .rename-pane {
        width: auto;
        min-width: 0;
        flex-wrap: wrap;
    }
}