[hidden] {
    display: none !important
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 12px;
    transform: translateY(-150%);
    background: #397565;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 10
}

.skip-link:focus {
    transform: translateY(0)
}

.seo-content {
    border-top: 1px solid #e1e7da;
    margin-top: 38px;
    padding: 30px 0 5px;
    color: #53664e;
    font-size: 15px;
    line-height: 1.9
}

.seo-content h2 {
    font-size: 22px;
    color: #344642;
    margin: 22px 0 12px
}

.seo-content>h2:first-child {
    margin-top: 0
}

.seo-content p {
    max-width: 950px
}

.topic-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 17px 0 25px
}

.topic-links a {
    display: block;
    text-decoration: none;
    color: #397565;
    background: #fffefa;
    border: 1px solid #dce6d4;
    border-radius: 12px;
    padding: 13px 16px;
    font-weight: 700
}

.topic-links a:hover {
    border-color: #71946a
}

.topic-links span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #8b9980
}

.seo-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px
}

.text-link {
    color: #397565;
    font-size: 15px;
    font-weight: 700;
    text-underline-offset: 4px
}

.seo-content details {
    border-bottom: 1px solid #e1e7da;
    padding: 13px 0
}

.seo-content summary {
    cursor: pointer;
    font-weight: 700;
    color: #42613d
}

.seo-content details p {
    margin: 10px 0 2px
}

.noscript-note {
    margin: 25px auto;
    max-width: 850px;
    padding: 20px;
    background: #fff8e7;
    border-radius: 12px;
    font-size: 16px
}

.topic-page {
    padding-top: 25px
}

.breadcrumbs {
    font-size: 14px;
    color: #88967d;
    margin: 8px 0 22px
}

.breadcrumbs a {
    color: #397565
}

.topic-page h1 {
    font-size: 34px
}

.topic-intro {
    max-width: 900px;
    font-size: 16px;
    line-height: 1.9;
    color: #78866d
}

.topic-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 27px 0
}

.topic-gallery article {
    background: white;
    border: 1px solid #dfe7d7;
    border-radius: 16px;
    overflow: hidden
}

.topic-gallery a {
    display: block;
    text-decoration: none;
    color: #344642;
    padding: 15px
}

.topic-thumbnail {
    background: #fcfbf6;
    border-radius: 10px;
    aspect-ratio: 510/440
}

.topic-thumbnail svg {
    width: 100%;
    height: auto;
    display: block
}

.topic-gallery h2 {
    font-size: 17px;
    margin: 13px 0 6px
}

.topic-gallery a>span {
    font-size: 13px;
    color: #6d8b5c
}

@media(max-width:850px) {
    .topic-gallery {
        grid-template-columns: repeat(3, 1fr)
    }

    .topic-links {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:600px) {
    .seo-content {
        font-size: 14px;
        margin-top: 24px;
        padding-top: 22px
    }

    .seo-content h2 {
        font-size: 20px
    }

    .seo-columns {
        grid-template-columns: 1fr;
        gap: 0
    }

    .topic-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }

    .topic-gallery a {
        padding: 10px
    }

    .topic-gallery h2 {
        font-size: 14px
    }

    .topic-links {
        gap: 8px
    }

    .topic-links a {
        padding: 10px;
        font-size: 13px
    }

    .topic-page h1 {
        font-size: 27px
    }

    .topic-intro {
        font-size: 14px
    }
}

.mode-switch {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: -8px auto 24px;
    background: #eaf0e6;
    border: 1px solid #e2e9dc;
    padding: 5px;
    width: max-content;
    border-radius: 13px
}

.mode-switch button {
    border: 0;
    background: transparent;
    padding: 10px 22px;
    border-radius: 9px;
    color: #819278;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px
}

.mode-switch button.active {
    background: white;
    color: #397565;
    box-shadow: 0 2px 7px #34502f0c
}

.mode-switch button>span {
    font-size: 19px
}

.free-info {
    padding: 24px 20px
}

.free-paper {
    display: grid;
    place-items: center;
    width: 80px;
    height: 92px;
    background: #fcfaf1;
    border: 2px solid #dce5d4;
    border-radius: 9px;
    color: #8fa578;
    font-size: 44px;
    margin: 5px auto 22px;
    transform: rotate(-6deg)
}

.free-info h2 {
    text-align: center
}

.free-info p {
    font-size: 13px;
    line-height: 1.9;
    color: #8b9781;
    text-align: center;
    margin: 12px 0 20px
}

.free-prompt {
    background: #f5f8ef;
    border-radius: 9px;
    padding: 11px 8px;
    font-size: 12px;
    color: #7c9070;
    margin: 9px 0;
    display: flex;
    gap: 8px;
    align-items: center
}

.free-prompt>span {
    font-size: 21px;
    color: #c6ad69
}

.free-info .free-save-note {
    border-top: 1px solid #e9eee1;
    padding-top: 17px;
    margin-bottom: 0;
    font-size: 12px
}

.action-button #reset-label {
    font-size: 13px;
    line-height: 1.4
}

@media(max-width:850px) {
    .free-info {
        grid-column: 1/-1;
        padding: 16px
    }

    .free-paper,
    .free-prompt,
    .free-info .free-save-note {
        display: none
    }

    .free-info p {
        margin: 5px 0 0
    }

    .free-info p br {
        display: none
    }
}

@media(max-width:600px) {
    .mode-switch {
        margin-top: -5px;
        margin-bottom: 17px
    }

    .mode-switch button {
        padding: 9px 18px;
        font-size: 13px
    }

    .free-info {
        padding: 13px
    }
}

.theme-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #82917d;
    margin: 13px 0 6px
}

.theme-filter {
    width: 100%;
    font: inherit;
    font-size: 13px;
    color: #436d58;
    background: #f8faf5;
    border: 1px solid #dae3d5;
    border-radius: 9px;
    padding: 10px 6px;
    cursor: pointer
}

.theme-filter:focus-visible {
    outline: 3px solid #529bda;
    outline-offset: 2px
}

.library-results {
    font-size: 12px;
    color: #8d9986;
    margin: 10px 0
}

.library .picture-list {
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c7d4c0 transparent;
    padding: 2px 5px 2px 2px
}

.library-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    color: #84917b;
    font-size: 13px
}

.library-pagination button {
    border: 1px solid #e1e7da;
    border-radius: 8px;
    background: #f7faf3;
    color: #52754d;
    font-size: 24px;
    width: 35px;
    height: 32px
}

.library .muted {
    margin-bottom: 6px
}

@media(max-width:850px) {
    .library .picture-list {
        grid-template-columns: repeat(3, 1fr);
        max-height: none;
        overflow: visible
    }

    .library .theme-filter {
        max-width: 320px
    }

    .library-pagination {
        justify-content: center;
        gap: 20px
    }
}

@media(max-width:600px) {
    .library .thumbnail {
        height: 65px
    }

    .library .picture-name {
        font-size: 12px
    }

    .library .picture-list {
        max-height: 210px;
        overflow-y: auto
    }

    .library .theme-filter {
        max-width: none
    }
}

.region-hint {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #83917f;
    padding: 8px 4px 0;
    pointer-events: none
}

@media(max-width:600px) {
    body .canvas-wrap {
        aspect-ratio: auto;
        padding: 12px 0
    }
}

.drawing canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 510/440;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    background: white;
    border-radius: 8px
}

.brush-size {
    margin-top: 20px
}

.brush-size label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #788675
}

.brush-size output {
    color: #397565;
    background: #eff5ec;
    border-radius: 5px;
    padding: 1px 6px
}

.brush-size input {
    width: 100%;
    accent-color: #397565;
    margin: 13px 0 6px;
    cursor: pointer;
    min-height: 24px
}

.brush-sample {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbf7;
    border: 1px dashed #e1e7da;
    border-radius: 10px
}

.brush-sample span {
    display: block;
    border-radius: 50%;
    border: 1px solid #a1aaa177
}

.canvas-wrap {
    touch-action: pan-y
}

.canvas-spark {
    pointer-events: none
}

@media(max-width:600px) {
    .brush-size {
        margin-top: 13px;
        display: grid;
        grid-template-columns: 1fr 60px;
        column-gap: 15px
    }

    .brush-size label,
    .brush-size input {
        grid-column: 1
    }

    .brush-sample {
        grid-column: 2;
        grid-row: 1/3;
        height: 64px
    }
}

:root {
    font-family: 'Nunito', ui-rounded, 'Segoe UI', sans-serif;
    color: #344642;
    background: #f6f8f5;
    font-synthesis: none;
    --green: #397565;
    --muted: #89948d;
    --coral: #f78168
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent
}

button {
    font: inherit;
    cursor: pointer
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[data-region]:focus-visible {
    outline: 3px solid #529bda;
    outline-offset: 4px
}

button {
    transition: background .18s, transform .18s
}

button:hover:not(:disabled) {
    transform: translateY(-2px)
}

button:disabled {
    cursor: default;
    opacity: .35
}

.header {
    height: 90px;
    border-bottom: 1px solid #e5eae3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: #fffefa
}

.brand {
    text-decoration: none;
    color: #356855;
    font-weight: 900;
    font-size: 31px;
    letter-spacing: -1.5px;
    display: flex;
    align-items: center;
    gap: 9px
}

.brand-icon {
    color: var(--coral);
    font-size: 43px;
    line-height: 1
}

.brand-dot {
    color: var(--coral);
    margin-left: -8px
}

.header-note {
    font-size: 15px;
    color: #849088;
    font-weight: 700
}

.header-note span {
    color: #e7b959;
    margin-left: 10px;
    font-size: 24px
}

.made-for {
    font-size: 14px;
    color: #7b8b80;
    display: flex;
    gap: 9px;
    align-items: center
}

.tiny-heart {
    font-size: 23px;
    color: #df9b8b
}

main {
    max-width: 1480px;
    margin: auto;
    padding: 0 5%
}

.intro {
    position: relative;
    text-align: center;
    padding: 38px 0 30px
}

.eyebrow {
    font-weight: 800;
    color: #759282;
    font-size: 12px;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px
}

.eyebrow span {
    width: 6px;
    height: 6px;
    background: #83ac89;
    border-radius: 50%
}

h1 {
    font-size: 36px;
    letter-spacing: -1px;
    margin: 10px 0 8px;
    font-weight: 900
}

h1>span {
    color: var(--coral)
}

.intro p {
    font-size: 15px;
    color: #879189;
    margin: 0
}

.intro-doodle {
    position: absolute;
    right: 24%;
    top: 50px;
    font-size: 36px;
    color: #d6ba79;
    transform: rotate(15deg)
}

.workspace {
    display: grid;
    grid-template-columns: 222px minmax(320px, 1fr) 248px;
    gap: 20px;
    align-items: start
}

.panel {
    background: #fff;
    border: 1px solid #e5eae2;
    border-radius: 19px;
    box-shadow: 0 4px 15px #3b594205
}

.library,
.palette {
    padding: 22px 20px
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px
}

h2 {
    font-size: 19px;
    margin: 0;
    font-weight: 800;
    letter-spacing: -.3px
}

.count {
    background: #f1f4ef;
    border-radius: 7px;
    font-size: 12px;
    color: #879086;
    padding: 4px 7px
}

.muted {
    font-size: 13px;
    color: var(--muted);
    margin: 6px 0 19px
}

.picture-list {
    display: grid;
    gap: 10px
}

.picture-card {
    border: 1px solid #e8ece6;
    background: #fff;
    border-radius: 12px;
    text-align: left;
    padding: 9px;
    position: relative;
    width: 100%
}

.picture-card.selected {
    border: 2px solid #6f9e83;
    padding: 8px;
    background: #f3f8f1
}

.thumbnail {
    background: #faf9f3;
    border-radius: 7px;
    height: 87px;
    display: flex;
    justify-content: center;
    overflow: hidden
}

.thumbnail svg {
    height: 100%;
    width: 100%;
    max-width: 155px;
    pointer-events: none
}

.picture-name {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin: 8px 1px 1px
}

.picture-subtitle {
    font-size: 11px;
    color: #98a095;
    margin-left: 1px
}

.selected-check {
    position: absolute;
    right: 8px;
    top: 8px;
    border-radius: 50%;
    background: #648a70;
    color: white;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    font-size: 13px
}

.library-note {
    display: flex;
    gap: 9px;
    align-items: center;
    padding-top: 20px;
    color: #95a189
}

.library-note>span {
    font-size: 24px;
    color: #cab679
}

.library-note p {
    font-size: 12px;
    line-height: 1.7;
    margin: 0
}

.studio {
    overflow: hidden
}

.studio-header {
    padding: 22px 25px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.small-label {
    font-size: 11px;
    letter-spacing: 1.3px;
    font-weight: 800;
    color: #97a195;
    display: block
}

.studio-header h2 {
    font-size: 22px;
    margin-top: 5px
}

.difficulty {
    font-size: 12px;
    color: #81a179;
    background: #f0f6ea;
    padding: 6px 10px;
    border-radius: 20px;
    display: flex;
    gap: 5px;
    align-items: center
}

.difficulty>span {
    height: 5px;
    width: 5px;
    background: #8ca67c;
    border-radius: 50%
}

.canvas-wrap {
    margin: 0 20px;
    background: #fcfbf6;
    border: 1px solid #f0eee3;
    border-radius: 13px;
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.34;
    overflow: hidden;
    background-image: radial-gradient(#d9d7c733 .8px, transparent .8px);
    background-size: 15px 15px
}

.drawing {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1
}

.drawing svg {
    width: 100%;
    display: block;
    max-height: 445px
}

.drawing [data-region] {
    cursor: crosshair;
    transition: fill .12s
}

.drawing [data-region]:hover {
    filter: brightness(.97)
}

.drawing.erasing [data-region] {
    cursor: cell
}

.canvas-spark {
    position: absolute;
    color: #dfd5a9;
    font-size: 27px
}

.spark-one {
    top: 28px;
    right: 32px
}

.spark-two {
    bottom: 29px;
    left: 27px;
    font-size: 19px
}

.studio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 23px;
    font-size: 11px;
    color: #96a092;
    gap: 8px
}

.hint {
    display: flex;
    gap: 7px;
    align-items: center
}

.hint>span {
    font-size: 19px;
    color: #b0ba9e
}

.action-bar {
    border-top: 1px solid #eef0ea;
    padding: 16px 21px;
    display: flex;
    justify-content: space-between;
    gap: 10px
}

.edit-actions {
    display: flex;
    gap: 7px
}

.action-button {
    background: white;
    border: 1px solid #e4e9e1;
    border-radius: 9px;
    padding: 9px 12px;
    color: #788675;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px
}

.action-button>span {
    font-size: 22px;
    line-height: 1
}

.download-button {
    border: 0;
    background: var(--green);
    border-radius: 9px;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px
}

.download-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.download-button>span {
    margin-left: 8px;
    opacity: .65
}

.palette .section-heading>span {
    font-size: 24px;
    color: #d4b45e
}

.colors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 10px;
    margin: 22px 0
}

.color {
    aspect-ratio: 1;
    border: 0;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    position: relative;
    justify-self: center;
    box-shadow: inset 0 -2px 0 #00000008
}

.color.active {
    outline: 2px solid var(--swatch);
    outline-offset: 4px
}

.color.active:after {
    content: '✓';
    font-size: 19px;
    color: white;
    text-shadow: 0 1px 3px #0003;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center
}

.selected-color {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: #f8f9f4;
    border-radius: 10px
}

.selected-color>span {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: var(--coral)
}

.selected-color .small-label {
    font-size: 10px;
    letter-spacing: .8px
}

.selected-color strong {
    font-size: 13px;
    display: block;
    margin-top: 3px
}

.custom-color {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-top: 13px;
    position: relative;
    cursor: pointer;
    min-height: 38px
}

.custom-color>span:last-child {
    margin-left: auto;
    color: #99a190;
    font-size: 21px
}

.custom-color input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    left: 0
}

.rainbow-dot {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: conic-gradient(#f28280, #f5ce67, #80c5a2, #8db9eb, #b599cf, #f28280);
    display: grid;
    place-items: center;
    color: white;
    font-size: 22px;
    line-height: 1.3;
}

.tool-divider {
    height: 1px;
    background: #edf0e9;
    margin: 18px 0
}

.tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 10px
}

.tool {
    border: 1px solid #e5e9e1;
    background: #fff;
    border-radius: 10px;
    padding: 11px 5px;
    color: #8b9587;
    font-size: 12px;
    display: grid;
    justify-items: center;
    gap: 7px
}

.tool svg {
    height: 22px;
    width: 22px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linejoin: round;
    stroke-linecap: round
}

.tool.active {
    background: #eff5ec;
    border-color: #8aa47a;
    color: #68805e
}

.tip {
    margin-top: 25px;
    background: #fff8e7;
    border-radius: 12px;
    padding: 15px 12px;
    color: #b29759;
    position: relative
}

.tip>span {
    font-size: 26px;
    position: absolute;
    right: 10px;
    top: 9px;
    color: #ddbc5e
}

.tip strong {
    font-size: 13px
}

.tip p {
    font-size: 12px;
    line-height: 1.8;
    margin: 7px 0 0;
    color: #ad9c73
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 26px 3px;
    font-size: 12px;
    color: #a1aa9a
}

.footer-flower {
    color: #c1ae82;
    font-size: 19px;
    margin-left: 8px
}

.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    background: #344e43;
    color: #fff;
    border-radius: 12px;
    padding: 13px 22px;
    font-size: 15px;
    pointer-events: none;
    transition: .2s;
    z-index: 5
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, 0)
}

dialog {
    border: 1px solid #dce4d7;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    color: #344642;
    max-width: 90vw;
    box-shadow: 0 10px 70px #20302530
}

dialog::backdrop {
    background: #25392c55;
    backdrop-filter: blur(3px)
}

.dialog-icon {
    font-size: 35px;
    color: #6f9276
}

dialog h2 {
    font-size: 24px;
    margin: 8px 0
}

dialog p {
    font-size: 15px;
    color: #869080;
    line-height: 1.8
}

dialog>div {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px
}

@media(min-width:1500px) {
    main {
        padding: 0 40px
    }

    .canvas-wrap {
        min-height: 440px
    }

    .thumbnail {
        height: 104px
    }
}

@media(max-width:1100px) {
    main {
        padding: 0 3%
    }

    .workspace {
        grid-template-columns: 175px minmax(300px, 1fr) 205px;
        gap: 12px
    }

    .library,
    .palette {
        padding: 18px 14px
    }

    .color {
        width: 30px;
        height: 30px
    }

    .colors {
        gap: 13px 7px
    }

    .canvas-wrap {
        margin: 0 12px;
        min-height: 365px
    }

    .studio-header {
        padding: 20px 16px
    }

    .studio-header h2 {
        font-size: 19px
    }

    .intro-doodle {
        right: 15%
    }

    .header-note {
        display: none
    }
}

@media(max-width:850px) {
    .workspace {
        grid-template-columns: 1fr 205px
    }

    .library {
        grid-column: 1/-1
    }

    .picture-list {
        grid-template-columns: repeat(4, 1fr)
    }

    .library .muted {
        margin-bottom: 13px
    }

    .library-note {
        display: none
    }

    .thumbnail {
        height: 70px
    }

    .canvas-wrap {
        min-height: 340px
    }

    .intro {
        padding-top: 28px
    }

    .intro-doodle {
        display: none
    }

    .studio-footer {
        flex-wrap: wrap
    }

    .picture-subtitle {
        display: none
    }
}

@media(max-width:600px) {
    .header {
        height: 72px;
        padding: 0 5%
    }

    .brand {
        font-size: 27px
    }

    .made-for {
        font-size: 0
    }

    .tiny-heart {
        font-size: 27px
    }

    .intro {
        padding: 25px 6px 23px
    }

    h1 {
        font-size: 27px
    }

    .intro p {
        font-size: 13px;
        line-height: 1.7
    }

    .eyebrow {
        font-size: 10px
    }

    .workspace {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .library {
        padding: 15px 12px
    }

    .picture-list {
        gap: 6px
    }

    .picture-card {
        padding: 5px
    }

    .picture-card.selected {
        padding: 4px
    }

    .picture-name {
        font-size: 11px;
        line-height: 1.5
    }

    .thumbnail {
        height: 56px
    }

    .selected-check {
        height: 15px;
        width: 15px;
        font-size: 11px;
        right: 4px;
        top: 4px
    }

    .library h2,
    .palette h2 {
        font-size: 17px
    }

    .studio {
        grid-row: 3
    }

    .palette {
        grid-row: 2;
        padding: 16px
    }

    .palette .muted,
    .palette .tip,
    .tool-divider,
    .palette>.small-label {
        display: none
    }

    .colors {
        grid-template-columns: repeat(8, 1fr);
        gap: 13px 7px;
        margin: 17px 0 15px
    }

    .color {
        width: 29px;
        height: 29px
    }

    .selected-color {
        display: inline-flex;
        padding: 8px;
        vertical-align: middle;
        width: 47%
    }

    .custom-color {
        display: inline-flex;
        margin: 0 0 0 3%;
        width: 47%;
        vertical-align: middle
    }

    .tools {
        grid-template-columns: 1fr 1fr;
        margin-top: 13px
    }

    .tool {
        display: flex;
        justify-content: center;
        padding: 9px;
        font-size: 13px
    }

    .canvas-wrap {
        aspect-ratio: 1.2;
        min-height: 290px
    }

    .studio-header {
        padding: 16px
    }

    .studio-header h2 {
        font-size: 20px
    }

    .studio-footer {
        padding: 12px 15px;
        font-size: 11px
    }

    .action-bar {
        padding: 13px 12px
    }

    .action-button {
        padding: 9px;
        font-size: 12px
    }

    .download-button {
        padding: 10px 13px
    }

    footer {
        font-size: 11px;
        justify-content: center;
        text-align: center;
        line-height: 1.8
    }

    footer>span:last-child {
        display: none
    }

    .toast {
        font-size: 13px;
        width: max-content;
        max-width: 90vw
    }
}

/* Keep captions readable and action buttons comfortable with larger text. */
.hint #stroke-instructions {
    font-size: inherit;
    color: inherit;
    line-height: 1.6
}

.studio-header {
    gap: 12px
}

.studio-header>div {
    min-width: 0
}

.difficulty {
    flex-shrink: 0
}

.count {
    white-space: nowrap
}

.studio-footer {
    flex-wrap: wrap
}

.picture-name {
    line-height: 1.5
}

@media(max-width:600px) {
    .action-bar {
        flex-wrap: wrap
    }

    .download-button>span {
        display: none
    }

    .custom-color>span:nth-child(2) {
        line-height: 1.5
    }

    .mode-switch button {
        white-space: nowrap
    }
}
.picture-difficulty{position:absolute;top:12px;left:12px;font-size:9px;font-weight:800;color:#8c743b;background:#fff6db;border:1px solid #ecdfb9;border-radius:5px;padding:2px 5px;pointer-events:none}.difficulty-filter-label{margin-top:9px}.difficulty-filter{padding:8px 6px}
@media(max-width:600px){.picture-difficulty{position:static;display:inline-block;font-size:8px;margin-top:5px;padding:1px 3px}}

body .canvas-wrap.portrait{aspect-ratio:auto;padding:16px 0}.drawing.portrait{max-width:390px}.thumbnail svg:has(image){max-width:100px}
@media(max-width:600px){.drawing.portrait{max-width:100%}}

.topic-thumbnail:has(img){aspect-ratio:510/765}.topic-thumbnail img{width:100%;height:auto;display:block;object-fit:contain}
