*
{
    -webkit-tap-highlight-color : transparent;
    box-sizing : border-box;
    margin : 0;
    padding : 0;
}

::selection
{
    background : #d4a85a;
    color : #2c5f4a;
}

::-moz-selection
{
    background : #d4a85a;
    color : #2c5f4a;
}

:root
{
    --bg : #f5f1eb;
    --surface : #ffffff;
    --tint : #ede8e0;
    --text : #0f1928;
    --muted : #4a3f30;
    --border : #d5cbbc;
    --accent : #c9a84c;
    --accent-hover : #b8973d;
    --accent-text : #8a6a3e;
    --on-accent : #0f1928;
    --header-bg : #0f1928;
    --on-header : #f5f1eb;
    --danger : #b4161f;
    --success : #1a7f4b;
    --warning : #9a6700;
    --radius : 6px;
}

@media (prefers-color-scheme : dark)
{
    :root
    {
        --bg : #0f1928;
        --surface : #4a3f30;
        --tint : #3a3022;
        --text : #f5f1eb;
        --muted : #d5cbbc;
        --border : #6b5e4e;
        --accent : #c9a84c;
        --accent-hover : #b8973d;
        --accent-text : #c9a84c;
        --on-accent : #0f1928;
        --header-bg : #0f1928;
        --on-header : #f5f1eb;
        --danger : #ff7b72;
        --success : #3fb97a;
        --warning : #e3b341;
    }
}

[hidden]
{
    display : none !important;
}

html
{
    scroll-behavior : smooth;
    scroll-padding-top : 88px;
}

body
{
    background : var(--bg);
    color : var(--text);
    font-family : system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height : 1.5;
}

body.no-scroll
{
    overflow : hidden;
}

button
{
    font : inherit;
    color : inherit;
    cursor : pointer;
    background : none;
    border : 0;
}

.footer-links .heart
{
    font-size : 0.9rem;
}

.brand
{
    color : var(--on-header);
    font-size : 1.15rem;
    font-weight : 700;
    letter-spacing : -0.01em;
    text-decoration : none;
    white-space : nowrap;
    overflow : hidden;
    text-overflow : ellipsis;
    max-width : 60vw;
}

.site-header
{
    background : var(--header-bg);
    border-bottom : 1px solid rgba(255, 255, 255, 0.08);
    position : sticky;
    top : 0;
    z-index : 50;
}

.header-inner
{
    max-width : 1200px;
    margin : 0 auto;
    padding : 0 20px;
    height : 72px;
    display : flex;
    align-items : center;
    justify-content : space-between;
}

.nav
{
    display : flex;
    align-items : center;
    gap : 6px;
}

.nav a, .dropdown-toggle
{
    display : inline-flex;
    align-items : center;
    gap : 6px;
    padding : 6px 14px;
    border-radius : 4px;
    color : rgba(245, 241, 235, 0.82);
    text-decoration : none;
    font-size : 0.88rem;
    font-weight : 500;
    letter-spacing : 0.01em;
    transition : background 0.18s ease, color 0.18s ease;
}

.nav a:hover, .dropdown-toggle:hover
{
    color : #f5f1eb;
    background : rgba(255, 255, 255, 0.08);
}

.dropdown
{
    position : relative;
}

.dropdown-toggle .chevron
{
    width : 8px;
    height : 8px;
    border-right : 2px solid currentColor;
    border-bottom : 2px solid currentColor;
    transform : rotate(45deg) translateY(-2px);
    transition : transform 0.25s ease;
}

.dropdown.open .chevron
{
    transform : rotate(225deg) translateY(-2px);
}

.dropdown-menu
{
    position : absolute;
    top : calc(100% + 6px);
    right : 0;
    min-width : 200px;
    background : var(--surface);
    border : 1px solid var(--border);
    border-radius : var(--radius);
    box-shadow : 0 16px 40px rgba(15, 25, 40, 0.15);
    padding : 6px;
    opacity : 0;
    visibility : hidden;
    transform : translateY(-8px);
    transition : opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.dropdown.open .dropdown-menu
{
    opacity : 1;
    visibility : visible;
    transform : translateY(0);
}

.dropdown-menu button, .dropdown-menu a
{
    display : flex;
    align-items : center;
    gap : 10px;
    width : 100%;
    text-align : left;
    padding : 9px 12px;
    border-radius : 8px;
    font-size : 0.9rem;
    color : var(--text);
    transition : background 0.15s ease, color 0.15s ease;
}

.dropdown-menu button:hover, .dropdown-menu button.active, .dropdown-menu a:hover
{
    background : var(--bg);
    color : var(--text);
}

.hamburger
{
    display : none;
    width : 42px;
    height : 42px;
    position : relative;
    background : rgba(255, 255, 255, 0.08);
    border : 1px solid rgba(255, 255, 255, 0.14);
    border-radius : 4px;
    z-index : 60;
}

.hamburger span
{
    position : absolute;
    left : 9px;
    width : 22px;
    height : 2px;
    background : #f5f1eb;
    border-radius : 2px;
    transition : transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.hamburger span:nth-child(1)
{
    top : 13px;
}

.hamburger span:nth-child(2)
{
    top : 19px;
}

.hamburger span:nth-child(3)
{
    top : 25px;
}

.hamburger.open span:nth-child(1)
{
    top : 19px;
    transform : rotate(45deg);
}

.hamburger.open span:nth-child(2)
{
    opacity : 0;
}

.hamburger.open span:nth-child(3)
{
    top : 19px;
    transform : rotate(-45deg);
}

.page
{
    max-width : 1200px;
    margin : 0 auto;
    padding : 28px 20px 60px;
}

.page-title
{
    font-size : 1.8rem;
    letter-spacing : -0.02em;
    margin-bottom : 4px;
}

.page-sub
{
    color : var(--muted);
    margin-bottom : 24px;
}

.card
{
    background : var(--surface);
    border : 1px solid var(--border);
    border-radius : 6px;
}

.btn
{
    padding : 8px 16px;
    border : 1px solid var(--border);
    border-radius : 4px;
    background : var(--surface);
    font-size : 0.875rem;
    font-weight : 700;
    letter-spacing : 0.04em;
    transition : background 0.2s ease, transform 0.15s ease;
}

.btn:hover
{
    background : var(--bg);
}

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

.btn.primary
{
    background : var(--accent);
    border-color : var(--accent);
    color : var(--on-accent);
}

.btn.primary:hover
{
    background : var(--accent-hover);
    border-color : var(--accent-hover);
}

.date-badge
{
    width : 52px;
    flex-shrink : 0;
    text-align : center;
    border : 1px solid var(--border);
    border-radius : 6px;
    padding : 6px 0;
    background : var(--surface);
}

.date-badge b
{
    display : block;
    font-size : 1.2rem;
    line-height : 1.1;
}

.date-badge small
{
    font-size : 0.7rem;
    text-transform : uppercase;
    letter-spacing : 0.06em;
    color : var(--muted);
}

.empty
{
    padding : 28px 16px;
    text-align : center;
    color : var(--muted);
    font-size : 0.9rem;
}

.guide
{
    padding : 28px;
    max-width : 860px;
}

.guide section, .guide-contents
{
    margin-bottom : 28px;
}

.guide h2
{
    font-size : 1.25rem;
    margin-bottom : 10px;
}

.guide h3
{
    font-size : 1.05rem;
    margin : 16px 0 6px;
}

.guide p, .guide li
{
    line-height : 1.65;
}

.guide p
{
    margin-bottom : 10px;
}

.guide ul, .guide ol
{
    margin : 0 0 10px 22px;
}

.guide li
{
    margin-bottom : 6px;
}

.guide a
{
    color : var(--accent-text);
    font-weight : 600;
    text-decoration : none;
    background-image : linear-gradient(currentColor, currentColor);
    background-size : 100% 1px;
    background-position : 0 100%;
    background-repeat : no-repeat;
    padding-bottom : 1px;
    transition : background-size 0.3s ease, color 0.2s ease;
}

.guide a:hover, .guide a:focus-visible
{
    background-size : 100% 3px;
}

.guide a:focus-visible
{
    outline : 2px solid var(--accent-text);
    outline-offset : 3px;
    border-radius : 3px;
}

.guide-contents
{
    background : var(--bg);
    border : 1px solid var(--border);
    border-radius : var(--radius);
    padding : 20px 22px;
}

.guide-contents ol
{
    list-style : none;
    counter-reset : guide;
    margin : 0;
    columns : 2;
    column-gap : 24px;
}

.guide-contents li
{
    counter-increment : guide;
    break-inside : avoid;
    margin-bottom : 4px;
}

.guide-contents a
{
    display : flex;
    align-items : center;
    gap : 12px;
    padding : 9px 12px;
    border-radius : 8px;
    color : var(--text);
    font-weight : 500;
    background-image : none;
    transition : background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.guide-contents a::before
{
    content : counter(guide);
    flex : 0 0 26px;
    width : 26px;
    height : 26px;
    display : grid;
    place-items : center;
    border-radius : 50%;
    background : var(--accent);
    color : var(--on-accent);
    font-size : 0.8rem;
    font-weight : 700;
    transition : transform 0.2s ease;
}

.guide-contents a:hover, .guide-contents a:focus-visible
{
    background : var(--surface);
    color : var(--accent-text);
    transform : translateX(4px);
}

.guide-contents a:hover::before, .guide-contents a:focus-visible::before
{
    transform : scale(1.1);
}

body .footer-links
{
    background : var(--header-bg);
    border-top : 1px solid rgba(255, 255, 255, 0.1);
}

body .footer-links a
{
    color : rgba(245, 241, 235, 0.65);
    background-image : linear-gradient(#c9a84c, #c9a84c);
    font-size : 0.875rem;
    transition : background-size 0.4s ease-in-out, color 0.15s ease;
}

body .footer-links a:hover, body .footer-links a:focus
{
    color : #f5f1eb;
}

@media (max-width : 760px)
{
    .hamburger
    {
        display : block;
    }

    .nav
    {
        position : fixed;
        top : 72px;
        left : 0;
        right : 0;
        bottom : 0;
        background : var(--header-bg);
        flex-direction : column;
        align-items : stretch;
        gap : 4px;
        padding : 16px;
        overflow-y : auto;
        transform : translateX(100%);
        visibility : hidden;
        transition : transform 0.35s ease, visibility 0.35s;
    }

    .nav.open
    {
        transform : translateX(0);
        visibility : visible;
    }

    .nav a, .dropdown-toggle
    {
        width : 100%;
        justify-content : space-between;
        padding : 14px;
        font-size : 1.05rem;
    }

    .dropdown-menu
    {
        position : static;
        min-width : 0;
        border : 0;
        box-shadow : none;
        background : rgba(255, 255, 255, 0.04);
        padding : 0 0 0 10px;
        opacity : 1;
        visibility : visible;
        transform : none;
        max-height : 0;
        overflow : hidden;
        transition : max-height 0.35s ease;
    }

    .dropdown.open .dropdown-menu
    {
        max-height : 600px;
    }

    .dropdown-menu a
    {
        color : rgba(245, 241, 235, 0.65);
    }

    .dropdown-menu a:hover
    {
        background : rgba(255, 255, 255, 0.05);
        color : #f5f1eb;
    }
}

@media (prefers-color-scheme : dark)
{
    .guide a { color : var(--accent-text); }
    .guide-contents a { color : var(--text); }
    .guide-contents a:hover, .guide-contents a:focus-visible { color : var(--accent-text); }
}

@media (max-width : 640px)
{
    .guide { padding : 20px 16px; }
    .guide-contents ol { columns : 1; }
}

.logo
{
    display : inline-flex;
    flex-direction : column;
    font-family : 'Inter','Helvetica Neue',Arial,sans-serif;
    font-size : 1.5rem;
    font-weight : 800;
    line-height : 1.05;
    color : #F5F1EB;
    letter-spacing : -0.01em;
    flex-shrink : 0;
    text-decoration : none;
}

.logo span
{
    color : #C9A84C;
    font-weight : 800;
}

.logo .logo-top
{
    color : #F5F1EB;
}

.logo .logo-sub
{
    font-size : 0.8rem;
    font-weight : 700;
    letter-spacing : 0.02em;
    margin-top : 2px;
}

.logo:hover
{
    text-decoration : none;
}

.auth-card .logo
{
    margin-bottom : 20px;
}

.auth-card .logo span
{
    color : var(--accent-text);
}

.auth-card .logo .logo-top
{
    color : var(--text);
}

.container
{
    width : 100%;
    max-width : 1100px;
    margin : 0 auto;
    padding : 0 1rem;
}

.section
{
    padding : 2.5rem 0;
}

.section--tinted
{
    background : var(--bg, #f5f1eb);
}

.page-hero
{
    padding : 2.5rem 0 1.5rem;
    background : var(--surface, #ffffff);
    border-bottom : 1px solid var(--border, #d5cbbc);
}

.page-hero h1
{
    margin : 0.25rem 0 0.5rem;
    font-size : 2rem;
    line-height : 1.2;
}

.overline
{
    display : block;
    font-size : 0.8rem;
    font-weight : 700;
    letter-spacing : 0.14em;
    color : var(--accent, #1b3a5c);
}

.lead
{
    margin : 0;
    font-size : 1.1rem;
    color : var(--muted, #6b5e4e);
}

.btn.btn--primary
{
    background : var(--accent, #1b3a5c);
    border-color : var(--accent, #1b3a5c);
    color : var(--on-accent, #ffffff);
    cursor : pointer;
}

.btn.btn--primary:hover
{
    background : var(--accent-hover, #142e4a);
    border-color : var(--accent-hover, #142e4a);
}

.btn.btn--outline-dark
{
    background : transparent;
    border-color : var(--accent, #1b3a5c);
    color : var(--accent, #1b3a5c);
    cursor : pointer;
}

.btn.btn--outline-dark:hover
{
    background : var(--accent, #1b3a5c);
    color : var(--on-accent, #ffffff);
}

a.btn
{
    display : inline-block;
    text-decoration : none;
}

.visually-hidden
{
    position : absolute;
    width : 1px;
    height : 1px;
    margin : -1px;
    padding : 0;
    overflow : hidden;
    clip : rect(0, 0, 0, 0);
    white-space : nowrap;
    border : 0;
}

.info-box
{
    padding : 1.25rem 1.5rem;
    border : 1px solid var(--border, #d5cbbc);
    border-radius : 6px;
}

.info-box--white
{
    background : var(--surface, #ffffff);
}

.info-box--spaced
{
    margin-top : 1.5rem;
}

.info-box h2,
.info-box h3
{
    margin : 0 0 0.5rem;
}

.info-box p
{
    margin : 0 0 0.75rem;
}

.info-box p:last-child
{
    margin-bottom : 0;
}

html.text-editor-no-scroll,
body.text-editor-no-scroll
{
    overflow : hidden;
}

.section.text-editor-section
{
    padding : 2.5rem 0 4rem;
}

.text-editor-app
{
    --text-editor-navy : #1B3A5C;
    --text-editor-navy-dark : #142E4A;
    --text-editor-ink : #0F1928;
    --text-editor-text : #2C2416;
    --text-editor-muted : #6B5E4E;
    --text-editor-gold : #C9A84C;
    --text-editor-paper : #ffffff;
    --text-editor-tint : #F5F1EB;
    --text-editor-line : #D5CBBC;
    --text-editor-speed : 0.25s;
    position : relative;
}

.text-editor-bar
{
    display : none;
    align-items : center;
    justify-content : space-between;
    gap : 1rem;
    margin-bottom : 0.75rem;
    padding : 0.5rem 0.75rem 0.5rem 1rem;
    background : var(--text-editor-paper);
    border : 1px solid var(--text-editor-line);
    border-radius : 6px;
}

.text-editor-bar__title
{
    font-size : 0.85rem;
    font-weight : 700;
    letter-spacing : 0.12em;
    text-transform : uppercase;
    color : var(--text-editor-navy);
}

.text-editor-hamburger
{
    position : relative;
    flex-shrink : 0;
    width : 44px;
    height : 44px;
    padding : 0;
    border : 1px solid var(--text-editor-line);
    border-radius : 4px;
    background : var(--text-editor-tint);
    cursor : pointer;
    transition : background var(--text-editor-speed) ease, border-color var(--text-editor-speed) ease;
}

.text-editor-hamburger:hover,
.text-editor-hamburger:focus-visible
{
    background : #EDE8E0;
    border-color : var(--text-editor-navy);
}

.text-editor-hamburger span
{
    position : absolute;
    left : 10px;
    width : 22px;
    height : 2px;
    border-radius : 2px;
    background : var(--text-editor-navy);
    transition : transform var(--text-editor-speed) ease, opacity var(--text-editor-speed) ease, top var(--text-editor-speed) ease;
}

.text-editor-hamburger span:nth-child(1)
{
    top : 14px;
}

.text-editor-hamburger span:nth-child(2)
{
    top : 21px;
}

.text-editor-hamburger span:nth-child(3)
{
    top : 28px;
}

.text-editor-hamburger.is-open span:nth-child(1)
{
    top : 21px;
    transform : rotate(45deg);
}

.text-editor-hamburger.is-open span:nth-child(2)
{
    opacity : 0;
}

.text-editor-hamburger.is-open span:nth-child(3)
{
    top : 21px;
    transform : rotate(-45deg);
}

.text-editor-backdrop
{
    position : fixed;
    top : 0;
    right : 0;
    bottom : 0;
    left : 0;
    z-index : 1500;
    background : rgba(15, 25, 40, 0.6);
    opacity : 0;
    visibility : hidden;
    transition : opacity var(--text-editor-speed) ease, visibility var(--text-editor-speed) ease;
}

.text-editor-backdrop.is-open
{
    opacity : 1;
    visibility : visible;
}

.text-editor-toolbar
{
    position : relative;
    z-index : 20;
    display : flex;
    flex-wrap : wrap;
    gap : 8px;
    margin-bottom : 0.75rem;
    padding : 8px 12px;
    background : var(--text-editor-paper);
    border : 1px solid var(--text-editor-line);
    border-radius : 6px;
}

.text-editor-toolbar__head
{
    display : none;
}

.text-editor-group
{
    position : relative;
    display : flex;
    flex-wrap : wrap;
    gap : 2px;
    padding-right : 8px;
    border-right : 1px solid var(--text-editor-line);
}

.text-editor-group:last-child
{
    border-right : 0;
}

.text-editor-toolbar button
{
    min-width : 36px;
    height : 36px;
    padding : 0 10px;
    border : 1px solid transparent;
    border-radius : 4px;
    background : transparent;
    color : var(--text-editor-text);
    font : inherit;
    font-size : 0.9rem;
    cursor : pointer;
    transition : background var(--text-editor-speed) ease, border-color var(--text-editor-speed) ease, color var(--text-editor-speed) ease;
}

.text-editor-toolbar button:hover,
.text-editor-toolbar button:focus-visible
{
    background : var(--text-editor-tint);
    border-color : var(--text-editor-line);
}

.text-editor-app button:focus-visible,
.text-editor-app input:focus-visible,
.text-editor-app .text-editor-surface:focus-visible,
.text-editor-app summary:focus-visible
{
    outline : 2px solid var(--text-editor-navy);
    outline-offset : 2px;
}

.text-editor-toolbar button:disabled
{
    opacity : 0.45;
    cursor : not-allowed;
}

.text-editor-toolbar button:disabled:hover
{
    background : transparent;
    border-color : transparent;
}

.text-editor-toolbar button.is-active
{
    background : var(--text-editor-navy);
    border-color : var(--text-editor-navy);
    color : #F5F1EB;
}

.text-editor-caret
{
    display : inline-block;
    width : 0;
    height : 0;
    margin-left : 4px;
    vertical-align : middle;
    border-left : 4px solid transparent;
    border-right : 4px solid transparent;
    border-top : 5px solid currentColor;
    transition : transform var(--text-editor-speed) ease;
}

.text-editor-dropdown.is-open .text-editor-caret
{
    transform : rotate(180deg);
}

.text-editor-dropdown-menu
{
    position : absolute;
    top : 100%;
    left : 0;
    z-index : 40;
    display : flex;
    flex-direction : column;
    min-width : 170px;
    margin : 4px 0 0;
    padding : 4px;
    background : var(--text-editor-paper);
    border : 1px solid var(--text-editor-line);
    border-radius : 6px;
    box-shadow : 0 12px 32px rgba(15, 25, 40, 0.15);
    opacity : 0;
    visibility : hidden;
    transform : translateY(-8px);
    transition : opacity var(--text-editor-speed) ease, transform var(--text-editor-speed) ease, visibility var(--text-editor-speed) ease;
}

.text-editor-dropdown.is-open .text-editor-dropdown-menu
{
    opacity : 1;
    visibility : visible;
    transform : translateY(0);
}

.text-editor-dropdown-menu--scroll
{
    max-height : 280px;
    overflow-y : auto;
    overscroll-behavior : contain;
}

.text-editor-dropdown-menu button
{
    width : 100%;
    text-align : left;
    white-space : nowrap;
}

.text-editor-dropdown-menu.text-editor-swatches
{
    display : grid;
    grid-template-columns : repeat(4, 40px);
    gap : 6px;
    min-width : 0;
    padding : 8px;
}

.text-editor-custom
{
    grid-column : 1 / -1;
    display : flex;
    align-items : center;
    justify-content : space-between;
    gap : 10px;
    padding-top : 6px;
    border-top : 1px solid var(--text-editor-line);
    font-size : 0.9rem;
    color : var(--text-editor-text);
}

.text-editor-custom input
{
    width : 56px;
    height : 32px;
    padding : 0;
    border : 1px solid var(--text-editor-line);
    border-radius : 4px;
    background : var(--text-editor-paper);
    cursor : pointer;
}

.text-editor-font-arial
{
    font-family : Arial, Helvetica, sans-serif;
}

.text-editor-font-calibri
{
    font-family : Calibri, Arial, sans-serif;
}

.text-editor-font-georgia
{
    font-family : Georgia, serif;
}

.text-editor-font-tahoma
{
    font-family : Tahoma, Geneva, sans-serif;
}

.text-editor-font-times
{
    font-family : 'Times New Roman', Times, serif;
}

.text-editor-font-trebuchet
{
    font-family : 'Trebuchet MS', Helvetica, sans-serif;
}

.text-editor-font-verdana
{
    font-family : Verdana, Geneva, sans-serif;
}

.text-editor-font-courier
{
    font-family : 'Courier New', Courier, monospace;
}

.text-editor-toolbar .text-editor-swatch
{
    width : 40px;
    height : 40px;
    padding : 0;
    border : 2px solid var(--text-editor-paper);
    border-radius : 50%;
    box-shadow : 0 0 0 1px var(--text-editor-line);
}

.text-editor-toolbar .text-editor-swatch:hover,
.text-editor-toolbar .text-editor-swatch:focus-visible
{
    transform : scale(1.12);
    box-shadow : 0 0 0 2px var(--text-editor-navy);
}

.text-editor-toolbar .text-editor-swatch[data-colour="#111111"],
.text-editor-toolbar .text-editor-swatch[data-colour="#111111"]:hover
{
    background-color : #111111;
}

.text-editor-toolbar .text-editor-swatch[data-colour="#595959"],
.text-editor-toolbar .text-editor-swatch[data-colour="#595959"]:hover
{
    background-color : #595959;
}

.text-editor-toolbar .text-editor-swatch[data-colour="#1B3A5C"],
.text-editor-toolbar .text-editor-swatch[data-colour="#1B3A5C"]:hover
{
    background-color : #1B3A5C;
}

.text-editor-toolbar .text-editor-swatch[data-colour="#b32d1f"],
.text-editor-toolbar .text-editor-swatch[data-colour="#b32d1f"]:hover
{
    background-color : #b32d1f;
}

.text-editor-toolbar .text-editor-swatch[data-colour="#b45309"],
.text-editor-toolbar .text-editor-swatch[data-colour="#b45309"]:hover
{
    background-color : #b45309;
}

.text-editor-toolbar .text-editor-swatch[data-colour="#1e7e34"],
.text-editor-toolbar .text-editor-swatch[data-colour="#1e7e34"]:hover
{
    background-color : #1e7e34;
}

.text-editor-toolbar .text-editor-swatch[data-colour="#1f6391"],
.text-editor-toolbar .text-editor-swatch[data-colour="#1f6391"]:hover
{
    background-color : #1f6391;
}

.text-editor-toolbar .text-editor-swatch[data-colour="#7b3f98"],
.text-editor-toolbar .text-editor-swatch[data-colour="#7b3f98"]:hover
{
    background-color : #7b3f98;
}

.text-editor-toolbar .text-editor-swatch[data-highlight="#fff59d"],
.text-editor-toolbar .text-editor-swatch[data-highlight="#fff59d"]:hover
{
    background-color : #fff59d;
}

.text-editor-toolbar .text-editor-swatch[data-highlight="#c8e6c9"],
.text-editor-toolbar .text-editor-swatch[data-highlight="#c8e6c9"]:hover
{
    background-color : #c8e6c9;
}

.text-editor-toolbar .text-editor-swatch[data-highlight="#bbdefb"],
.text-editor-toolbar .text-editor-swatch[data-highlight="#bbdefb"]:hover
{
    background-color : #bbdefb;
}

.text-editor-toolbar .text-editor-swatch[data-highlight="#f8bbd0"],
.text-editor-toolbar .text-editor-swatch[data-highlight="#f8bbd0"]:hover
{
    background-color : #f8bbd0;
}

.text-editor-toolbar .text-editor-swatch[data-highlight="#ffe0b2"],
.text-editor-toolbar .text-editor-swatch[data-highlight="#ffe0b2"]:hover
{
    background-color : #ffe0b2;
}

.text-editor-toolbar .text-editor-swatch[data-highlight="#e0e0e0"],
.text-editor-toolbar .text-editor-swatch[data-highlight="#e0e0e0"]:hover
{
    background-color : #e0e0e0;
}

.text-editor-toolbar .text-editor-swatch--none,
.text-editor-toolbar .text-editor-swatch--none:hover
{
    background-color : #ffffff;
    color : #111111;
    font-size : 1.3rem;
    line-height : 1;
}

.text-editor-app .text-editor-surface
{
    min-height : 60vh;
    padding : 2rem;
    background : var(--text-editor-paper);
    border : 1px solid var(--text-editor-line);
    border-radius : 6px;
    box-shadow : 0 2px 8px rgba(15, 25, 40, 0.06);
    color : #111111;
    font-family : Arial, Helvetica, sans-serif;
    font-size : 12pt;
    line-height : 1.4;
    overflow-wrap : anywhere;
    outline : none;
    transition : border-color var(--text-editor-speed) ease, box-shadow var(--text-editor-speed) ease;
}

.text-editor-app .text-editor-surface:focus
{
    border-color : var(--text-editor-navy);
    box-shadow : 0 0 0 3px rgba(27, 58, 92, 0.18);
}

.text-editor-app .text-editor-surface > :first-child
{
    margin-top : 0;
}

.text-editor-app .text-editor-surface p
{
    margin : 0 0 10pt;
}

.text-editor-app .text-editor-surface h1,
.text-editor-app .text-editor-surface h2,
.text-editor-app .text-editor-surface h3
{
    font-family : Arial, Helvetica, sans-serif;
    font-weight : 700;
    color : #111111;
}

.text-editor-app .text-editor-surface h1
{
    margin : 16pt 0 8pt;
    font-size : 24pt;
    line-height : 1.25;
}

.text-editor-app .text-editor-surface h2
{
    margin : 14pt 0 6pt;
    font-size : 18pt;
    line-height : 1.3;
}

.text-editor-app .text-editor-surface h3
{
    margin : 12pt 0 4pt;
    font-size : 14pt;
    line-height : 1.35;
}

.text-editor-app .text-editor-surface ul,
.text-editor-app .text-editor-surface ol
{
    margin : 0 0 10pt;
    padding : 0 0 0 40px;
}

.text-editor-app .text-editor-surface ul li,
.text-editor-app .text-editor-surface ol li
{
    margin : 0 0 3pt;
}

.text-editor-app .text-editor-surface blockquote
{
    margin : 0 0 10pt;
    padding : 0 0 0 12pt;
    border-left : 4px solid #cccccc;
    color : #444444;
}

.text-editor-app .text-editor-surface pre
{
    margin : 0 0 10pt;
    padding : 10pt;
    background : #f4f4f4;
    border : 1px solid #dddddd;
    color : #111111;
    font-family : Consolas, 'Courier New', monospace;
    font-size : 10.5pt;
    line-height : 1.4;
    overflow-x : auto;
}

.text-editor-app .text-editor-surface a
{
    color : #1f6391;
    text-decoration : underline;
}

.text-editor-app .text-editor-surface table
{
    width : 100%;
    margin : 0 0 10pt;
    border-collapse : collapse;
}

.text-editor-app .text-editor-surface th,
.text-editor-app .text-editor-surface td
{
    min-width : 2rem;
    padding : 6pt;
    border : 1px solid #cccccc;
    text-align : left;
    vertical-align : top;
}

.text-editor-app .text-editor-surface th
{
    background : #f4f4f4;
    font-weight : 700;
}

.text-editor-app .text-editor-surface img
{
    display : inline-block;
    max-width : 100%;
    height : auto;
}

.text-editor-app .text-editor-surface img:hover
{
    outline : 2px dashed var(--text-editor-navy);
    outline-offset : 2px;
}

::highlight(text-editor-find)
{
    background-color : #ffe08a;
    color : #111111;
}

.text-editor-panel
{
    margin-bottom : 0.75rem;
    padding : 1rem;
    background : var(--text-editor-paper);
    border : 1px solid var(--text-editor-line);
    border-radius : 6px;
}

.text-editor-panel[hidden],
.text-editor-tabpanel[hidden]
{
    display : none;
}

.text-editor-panel__row
{
    display : flex;
    flex-wrap : wrap;
    gap : 0.75rem;
}

.text-editor-panel__row--actions
{
    align-items : center;
    margin-top : 0.75rem;
}

.text-editor-panel__row--head
{
    align-items : center;
    justify-content : space-between;
}

.text-editor-panel__field
{
    flex : 1 1 220px;
    display : flex;
    flex-direction : column;
    gap : 0.3rem;
    font-weight : 600;
    font-size : 0.9rem;
}

.text-editor-panel__count
{
    margin-right : auto;
    font-size : 0.9rem;
    color : var(--text-editor-muted);
}

.text-editor-panel__buttons
{
    display : flex;
    gap : 0.5rem;
}

.text-editor-panel__title
{
    margin : 0;
    font-size : 1.2rem;
}

.text-editor-panel__summary
{
    margin : 0.75rem 0 0;
    font-weight : 600;
}

.text-editor-panel .btn
{
    padding : 0.5rem 1rem;
}

.text-editor-issues
{
    margin : 0.75rem 0 0;
    padding : 0;
    list-style : none;
    max-height : 320px;
    overflow-y : auto;
    overscroll-behavior : contain;
}

.text-editor-issue
{
    display : flex;
    flex-wrap : wrap;
    align-items : center;
    gap : 0.5rem;
    margin : 0;
    padding : 0.6rem 0;
    border-top : 1px solid var(--text-editor-line);
    font-size : 0.92rem;
}

.text-editor-issue span
{
    flex : 1 1 260px;
}

.text-editor-issue .btn
{
    padding : 0.35rem 0.9rem;
}

.text-editor-tabs
{
    display : flex;
    gap : 0.25rem;
    margin-bottom : 1rem;
    border-bottom : 1px solid var(--text-editor-line);
}

.text-editor-tab
{
    padding : 0.6rem 1rem;
    border : 0;
    border-bottom : 3px solid transparent;
    background : transparent;
    color : var(--text-editor-text);
    font : inherit;
    font-weight : 600;
    cursor : pointer;
    transition : border-color var(--text-editor-speed) ease, color var(--text-editor-speed) ease;
}

.text-editor-tab.is-active
{
    border-bottom-color : var(--text-editor-gold);
    color : var(--text-editor-navy);
}

.text-editor-hint
{
    margin : 0 0 0.75rem;
    font-size : 0.9rem;
    color : var(--text-editor-muted);
}

.text-editor-library
{
    margin : 0;
    padding : 0;
    list-style : none;
    max-height : 260px;
    overflow-y : auto;
    overscroll-behavior : contain;
    border : 1px solid var(--text-editor-line);
    border-radius : 4px;
}

.text-editor-library__item
{
    display : flex;
    flex-wrap : wrap;
    align-items : center;
    justify-content : space-between;
    gap : 0.5rem;
    margin : 0;
    padding : 0.5rem 0.75rem;
    border-bottom : 1px solid var(--text-editor-line);
}

.text-editor-library__item:last-child
{
    border-bottom : 0;
}

.text-editor-library__buttons
{
    display : flex;
    gap : 0.4rem;
}

.text-editor-library__buttons .btn
{
    padding : 0.35rem 0.9rem;
}

.text-editor-library__save
{
    margin-top : 1rem;
}

.text-editor-library__savefield
{
    display : flex;
    gap : 0.5rem;
}

.text-editor-field-label--spaced
{
    margin-top : 0.75rem;
}

.text-editor-field-input--file
{
    height : auto;
    padding : 8px 12px;
}

.text-editor-modal-box--wide
{
    max-width : 620px;
}

.text-editor-app .text-editor-surface hr
{
    margin : 12pt 0;
    border : 0;
    border-top : 1px solid #cccccc;
}

.text-editor-status
{
    display : flex;
    gap : 24px;
    margin-top : 0.75rem;
    font-size : 0.85rem;
    color : var(--text-editor-muted);
}

.text-editor-status span:last-child
{
    margin-left : auto;
}

.text-editor-modal
{
    position : fixed;
    top : 0;
    right : 0;
    bottom : 0;
    left : 0;
    z-index : 2000;
    display : flex;
    align-items : center;
    justify-content : center;
    padding : 16px;
    background : rgba(15, 25, 40, 0.6);
    opacity : 0;
    visibility : hidden;
    transition : opacity var(--text-editor-speed) ease, visibility var(--text-editor-speed) ease;
}

.text-editor-modal.is-open
{
    opacity : 1;
    visibility : visible;
}

.text-editor-modal-box
{
    width : 100%;
    max-width : 480px;
    max-height : calc(100vh - 32px);
    padding : 1.5rem;
    overflow-y : auto;
    overscroll-behavior : contain;
    background : var(--text-editor-paper);
    border-radius : 8px;
    box-shadow : 0 16px 48px rgba(15, 25, 40, 0.3);
    transform : translateY(16px);
    transition : transform var(--text-editor-speed) ease;
}

.text-editor-modal.is-open .text-editor-modal-box
{
    transform : translateY(0);
}

.text-editor-modal-box h2
{
    margin : 0 0 1rem;
    font-size : 1.35rem;
}

.text-editor-modal-box h3
{
    margin : 1rem 0 0.4rem;
    font-size : 1.05rem;
}

.text-editor-help-list
{
    margin : 0;
    padding-left : 1.25rem;
    font-size : 0.9rem;
}

.text-editor-help-list li
{
    margin-bottom : 0.4rem;
}

.text-editor-field-label
{
    display : block;
    margin-bottom : 0.4rem;
    font-weight : 600;
}

.text-editor-field-input
{
    width : 100%;
    height : 44px;
    padding : 0 12px;
    border : 1px solid var(--text-editor-line);
    border-radius : 4px;
    background : var(--text-editor-paper);
    color : var(--text-editor-text);
    font : inherit;
    transition : border-color var(--text-editor-speed) ease, box-shadow var(--text-editor-speed) ease;
}

.text-editor-field-input:focus
{
    border-color : var(--text-editor-navy);
    outline : none;
    box-shadow : 0 0 0 3px rgba(27, 58, 92, 0.18);
}

.text-editor-check
{
    display : flex;
    align-items : center;
    gap : 10px;
    margin-top : 0.75rem;
    cursor : pointer;
}

.text-editor-check input
{
    width : 18px;
    height : 18px;
    margin : 0;
    accent-color : var(--text-editor-navy);
}

.text-editor-modal-error
{
    min-height : 1.4em;
    margin : 0.6rem 0 0;
    color : #c0392b;
    font-size : 0.9rem;
}

.text-editor-modal-actions
{
    display : flex;
    justify-content : flex-end;
    gap : 0.5rem;
    margin-top : 1rem;
}

.text-editor-clip-buffer
{
    position : fixed;
    top : 0;
    left : -9999px;
    width : 800px;
    background : #ffffff;
    pointer-events : none;
}

@media (max-width : 820px)
{
    .text-editor-bar
    {
        display : flex;
    }

    .text-editor-toolbar
    {
        position : fixed;
        top : 0;
        bottom : 0;
        left : 0;
        z-index : 1510;
        width : 300px;
        max-width : 88vw;
        flex-direction : column;
        flex-wrap : nowrap;
        gap : 12px;
        margin : 0;
        padding : 1rem;
        overflow-y : auto;
        overscroll-behavior : contain;
        border-width : 0 1px 0 0;
        border-radius : 0;
        transform : translateX(-100%);
        visibility : hidden;
        transition : transform var(--text-editor-speed) ease, visibility var(--text-editor-speed) ease;
    }

    .text-editor-toolbar.is-open
    {
        transform : translateX(0);
        visibility : visible;
    }

    .text-editor-toolbar__head
    {
        display : flex;
        align-items : center;
        justify-content : space-between;
        padding-bottom : 0.75rem;
        border-bottom : 1px solid var(--text-editor-line);
    }

    .text-editor-toolbar__title
    {
        font-size : 0.85rem;
        font-weight : 700;
        letter-spacing : 0.12em;
        text-transform : uppercase;
        color : var(--text-editor-navy);
    }

    .text-editor-toolbar .text-editor-toolbar__close
    {
        min-width : 40px;
        height : 40px;
        padding : 0;
        font-size : 1.6rem;
        line-height : 1;
    }

    .text-editor-group
    {
        padding : 0 0 12px;
        border-right : 0;
        border-bottom : 1px solid var(--text-editor-line);
    }

    .text-editor-group:last-child
    {
        border-bottom : 0;
    }

    .text-editor-dropdown
    {
        flex-direction : column;
    }

    .text-editor-toolbar .text-editor-dropdown-toggle
    {
        display : flex;
        align-items : center;
        justify-content : space-between;
        width : 100%;
        text-align : left;
    }

    .text-editor-dropdown-menu
    {
        position : static;
        width : 100%;
        max-height : 0;
        margin : 0;
        padding : 0 4px;
        overflow : hidden;
        border-width : 0;
        box-shadow : none;
        transform : none;
        transition : max-height var(--text-editor-speed) ease, opacity var(--text-editor-speed) ease, visibility var(--text-editor-speed) ease, padding var(--text-editor-speed) ease;
    }

    .text-editor-dropdown.is-open .text-editor-dropdown-menu
    {
        max-height : 400px;
        padding : 4px;
    }

    .text-editor-app .text-editor-surface
    {
        padding : 1.25rem 1rem;
    }

    .text-editor-panel__row--head
    {
        align-items : flex-start;
    }

    .text-editor-status
    {
        gap : 12px;
        font-size : 0.8rem;
    }
}

@media (prefers-reduced-motion : reduce)
{
    .text-editor-app *,
    .text-editor-app *::before,
    .text-editor-app *::after
    {
        transition : none !important;
        animation : none !important;
    }
}

.text-editor-notice
{
    margin : 0.75rem 0 0;
    padding : 0.75rem 1rem;
    background : #fff8e5;
    border : 1px solid #C9A84C;
    border-left-width : 4px;
    border-radius : 4px;
    color : #2C2416;
    font-size : 0.9rem;
}

.text-editor-notice[hidden]
{
    display : none;
}

.text-editor-menu-label
{
    display : block;
    padding : 0.5rem 0.9rem 0.2rem;
    font-size : 0.75rem;
    font-weight : 700;
    letter-spacing : 0.04em;
    text-transform : uppercase;
    color : var(--text-editor-muted);
}

.text-editor-modal-box--preview
{
    max-width : 760px;
}

.text-editor-preview
{
    display : flex;
    justify-content : center;
    padding : 12px;
    background : #e9e9e9;
    border-radius : 4px;
}

.text-editor-preview iframe
{
    display : block;
    width : 100%;
    max-width : 640px;
    height : 55vh;
    border : 0;
    background : #ffffff;
    transition : max-width var(--text-editor-speed) ease;
}

.text-editor-preview.is-mobile iframe
{
    max-width : 375px;
}




.text-editor-dropdown-menu--wide
{
    min-width : 230px;
}

.text-editor-context
{
    position : fixed;
    z-index : 1900;
    display : flex;
    flex-direction : column;
    min-width : 180px;
    padding : 4px;
    background : var(--text-editor-paper);
    border : 1px solid var(--text-editor-line);
    border-radius : 6px;
    box-shadow : 0 12px 32px rgba(15, 25, 40, 0.2);
    opacity : 0;
    visibility : hidden;
    transform : translateY(-6px);
    transition : opacity var(--text-editor-speed) ease, transform var(--text-editor-speed) ease, visibility var(--text-editor-speed) ease;
}

.text-editor-context.is-open
{
    opacity : 1;
    visibility : visible;
    transform : translateY(0);
}

.text-editor-context button
{
    padding : 0.6rem 0.9rem;
    border : 0;
    border-radius : 4px;
    background : transparent;
    color : var(--text-editor-text);
    font : inherit;
    text-align : left;
    cursor : pointer;
    transition : background var(--text-editor-speed) ease;
}

.text-editor-context button:hover,
.text-editor-context button:focus-visible
{
    background : var(--text-editor-tint);
}

.text-editor-context .text-editor-context__danger
{
    color : #b32d1f;
}


::highlight(text-editor-misspelt)
{
    text-decoration : underline wavy #d03030;
    text-decoration-skip-ink : none;
}

.text-editor-spell-suggestions
{
    display : flex;
    flex-wrap : wrap;
    flex : 1 1 260px;
    gap : 0.4rem;
}

.text-editor-context--spelling
{
    z-index : 1900;
}

.text-editor-context--spelling .text-editor-context__suggestion
{
    font-weight : 600;
}

.text-editor-context__note
{
    padding : 0.6rem 0.9rem;
    color : var(--text-editor-muted, #5b6573);
}

body
{
    padding-bottom : 72px;
}

.demo-banner
{
    position : fixed;
    left : 0;
    right : 0;
    bottom : 0;
    z-index : 100;
    background : #0f1928;
    color : #F5F1EB;
    text-align : center;
    padding : 10px 16px;
    font-size : 0.9rem;
    border-top : 2px solid #C9A84C;
}

.demo-banner strong
{
    color : #C9A84C;
    text-transform : uppercase;
    letter-spacing : 0.06em;
    margin-right : 6px;
}

.demo-banner a
{
    color : #C9A84C;
    font-weight : 600;
    text-decoration : underline;
    margin-left : 6px;
}

.text-editor-app button:disabled,
.text-editor-app input:disabled,
.text-editor-app select:disabled
{
    opacity : 0.45;
    cursor : not-allowed;
}

.text-editor-app .text-editor-surface[inert]
{
    cursor : not-allowed;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
.btn:disabled
{
    opacity : 0.45;
    cursor : not-allowed;
}
