:root
{
    --ink: #292a2e;
    --purple: #7162bb;
    --line: #e4e3df;
}
*
{
    box-sizing: border-box;
}
body
{
    margin: 0;
    background: #f7f7f4;
    color: var(--ink);
    font: 12px/1.5 "Segoe UI", sans-serif;
}
button, input
{
    font: inherit;
}
button, a
{
    cursor: pointer;
}
button:focus-visible, input:focus-visible, a:focus-visible, svg:focus-visible
{
    outline: 3px solid #a798ec;
    outline-offset: 2px;
}
header
{
    display: flex;
    align-items: center;
    gap: 30px;
    background: #292a2e;
    color: white;
    padding: 18px 30px;
}
.brand
{
    color: #d3ff8b;
    font: italic bold 31px/1 Georgia, serif;
    text-decoration: none;
}
.brand span
{
    font: 700 23px "Segoe UI", sans-serif;
    letter-spacing: -1px;
    color: white;
}
.document-name
{
    font-size: 11px;
    padding-left: 25px;
    border-left: 1px solid #55565a;
}
.document-name small
{
    color: #a3a4aa;
}
.presence
{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.presence span
{
    background: #d8c6f0;
    color: #4a385e;
    padding: 7px;
    border-radius: 50%;
    font-size: 8px;
}
.presence small
{
    color: #c0c2c7;
    font-size: 10px;
}
header button
{
    background: #d3ff8b;
    color: #292a2e;
    padding: 9px 14px;
    border: 0;
    border-radius: 4px;
    font-size: 10px;
}
main
{
    padding: 30px;
    max-width: 1500px;
    margin: auto;
}
.intro
{
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 24px;
}
.eyebrow
{
    font: 9px monospace;
    letter-spacing: 1.5px;
    color: #7f7e82;
}
h1
{
    font-size: 31px;
    font-weight: 500;
    letter-spacing: -1px;
    margin: 12px 0 0;
}
.intro > p
{
    font-size: 11px;
    color: #8a898d;
    margin-bottom: 0;
}
.editor
{
    display: grid;
    grid-template-columns: 175px minmax(0, 1fr) 215px;
    border: 1px solid #dddcd7;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    min-height: 570px;
}
.layers, .properties
{
    padding: 18px 14px;
    background: #fff;
}
.layers
{
    border-right: 1px solid var(--line);
}
.properties
{
    border-left: 1px solid var(--line);
}
.panel-head
{
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    align-items: center;
    margin-bottom: 18px;
}
.panel-head span
{
    color: #929096;
    font-size: 8px;
}
.hint
{
    color: #95909b;
    font-size: 9px;
    line-height: 1.7;
}
.layer
{
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 6px;
    font-size: 10px;
    border-radius: 4px;
    margin-bottom: 4px;
}
.layer:has(input:checked)
{
    background: #eee9fb;
    color: #6951a5;
}
.layer input
{
    accent-color: var(--purple);
    margin: 0;
}
.layer span
{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.layers > button
{
    width: 100%;
    border: 1px dashed #c3bdd5;
    background: white;
    color: #716686;
    font-size: 10px;
    padding: 9px 3px;
    margin-top: 20px;
}
.shortcuts
{
    margin-top: 70px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    color: #89878f;
    font-size: 8px;
}
.shortcuts > span
{
    font: 7px monospace;
    letter-spacing: .5px;
}
.shortcuts p
{
    margin-top: 14px;
}
.shortcuts b
{
    display: block;
    color: #66616d;
    font-weight: normal;
}
.stage
{
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #eae9e5;
}
.toolbar
{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    background: white;
    border-bottom: 1px solid var(--line);
}
.toolbar button, .properties button
{
    background: white;
    border: 1px solid #e1dee6;
    color: #625e69;
    border-radius: 3px;
    padding: 7px;
    font-size: 9px;
}
.canvas-wrap
{
    flex: 1;
    display: grid;
    place-items: center;
    min-width: 0;
}
#canvas
{
    width: 100%;
    touch-action: none;
    user-select: none;
}
.board-kicker
{
    font: 10px monospace;
    letter-spacing: 2px;
    fill: #737167;
}
.board-title
{
    font: 53px Georgia, serif;
    fill: #34372d;
}
#shapes > *
{
    cursor: move;
}
.canvas-footer
{
    background: #f6f5f2;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    font: 8px monospace;
    color: #8c8792;
}
.properties label
{
    display: block;
    font-size: 9px;
    color: #837b8c;
    margin: 16px 0;
}
.properties input:not([type="color"])
{
    width: 100%;
    min-width: 0;
    padding: 8px;
    border: 1px solid #e0dce7;
    border-radius: 3px;
    margin-top: 5px;
    font-size: 10px;
    color: #48404e;
}
.two
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.two label
{
    margin: 0;
}
.color-label input
{
    display: block;
    width: 100%;
    height: 32px;
    border: 1px solid #ddd7e5;
    background: white;
    padding: 3px;
    margin-top: 5px;
}
.property-heading
{
    font: 8px monospace;
    color: #aaa1b1;
    letter-spacing: .6px;
    margin-top: 25px;
}
.align-grid
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}
.note
{
    margin-top: 35px;
    padding: 12px;
    background: #f4f1f8;
    font-size: 9px;
    color: #8b7c9a;
}
.note b
{
    color: #6a5a7b;
}
button:disabled, input:disabled
{
    opacity: .4;
    cursor: default;
}
footer
{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    color: #8e8a94;
    font: 8px/1.6 monospace;
    letter-spacing: .6px;
}
@media (max-width: 850px)
{
    .editor
    {
        grid-template-columns: 140px minmax(0, 1fr);
    }
    .properties
    {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line);
    }
}
@media (max-width: 600px)
{
    header
    {
        padding: 18px;
        gap: 10px;
    }
    .document-name, .presence small
    {
        display: none;
    }
    .presence
    {
        margin-left: auto;
    }
    main
    {
        padding: 22px 16px;
    }
    .intro
    {
        display: block;
    }
    h1
    {
        font-size: 29px;
        line-height: 1.15;
    }
    .intro > p
    {
        margin-top: 14px;
    }
    .editor
    {
        display: flex;
        flex-direction: column;
    }
    .layers
    {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    #layers
    {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .layer
    {
        max-width: 145px;
        font-size: 9px;
    }
    .shortcuts
    {
        display: none;
    }
    .layers .panel-head
    {
        margin-bottom: 5px;
    }
    .layers > button
    {
        margin-top: 8px;
    }
    .stage
    {
        min-height: 315px;
    }
    .canvas-footer
    {
        flex-wrap: wrap;
        font-size: 7px;
    }
    footer
    {
        flex-wrap: wrap;
    }
}
