:root {
    color-scheme: light;
    --font-app: "Segoe UI", Arial, sans-serif;
    --ink: #000;
    --paper: #fff;
    --line: #333;
    --muted: #555;
    --soft: #f7f7f7;
    --locked-paper: #ddd;
    --locked-ink: #333;
    --error: #111;
    --accent: #000;
    --accent-alt: #000;
    --danger: #000;
    --danger-contrast: #fff;
    --clock-night-paper: #000;
    --clock-night-ink: #fff;
    --icon-mail: #000;
    --icon-calendar: #000;
    --icon-reminders: #000;
    --icon-contacts: #000;
    --icon-weather: #000;
    --icon-calculator: #000;
    --icon-dashboard: #000;
    --icon-time: #000;
    --icon-feedback: #000;
    --icon-knowledge-base: #000;
    --icon-favorites: #000;
    --icon-settings: #000;
    --icon-news: #000;
    --icon-guitar-chords: #000;
    --icon-piano: #000;
    --icon-lifetime-weeks: #000;
    --icon-photos: #000;
    --lifetime-week-history-color: #1d4ed8;
    --seed-disc-one: var(--ink);
    --seed-disc-two: var(--ink);
    --seed-disc-three: var(--ink);
    --seed-disc-four: var(--ink);
    --game-player-one: var(--ink);
    --game-player-two: var(--ink);
    --game-player-one-soft: var(--soft);
    --game-player-two-soft: var(--soft);
    --word-tiles-notice-paper: #dedede;
    --word-tiles-submit-paper: #dedede;
    --task-important-star: var(--ink);
    --welcome-switch-indicator: var(--muted);
    --view-toolbar-button-gap: 0.55rem;
    --ai-action-paper: var(--ink);
    --ai-action-ink: var(--paper);
    --ai-action-border: var(--ink);
    --ai-action-focus: var(--ink);
    --ai-action-open-paper: var(--paper);
    --ai-action-open-ink: var(--ink);
}

/* Word Tiles keeps the complete board, rack, actions, and scores in one e-ink viewport. */
.page-shell.page-shell--word-tiles-play {
    width: min(100% - 0.7rem, 46rem);
    max-width: calc(100% - 0.7rem);
    min-width: 0;
    min-height: 0;
    padding: 4.85rem 0 0.35rem;
    overflow: visible;
}

.page-shell--notification.page-shell--word-tiles-play {
    padding-top: 8.1rem;
}

.word-tiles-play {
    display: block;
    width: 100%;
    min-width: 0;
}

.word-tiles-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1fr);
    gap: 0.2rem;
    width: min(100%, 34rem);
    margin: 0 auto 0.2rem;
}

.word-tiles-score,
.word-tiles-bag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.1rem;
    padding: 0.12rem 0.35rem;
    border: 2px solid var(--line);
    font-size: 0.78rem;
    line-height: 1;
}

.word-tiles-score {
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.word-tiles-player-label {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
}

.word-tiles-turn-indicator {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: currentColor;
}

.word-tiles-score.is-turn {
    border-width: 3px;
    color: var(--paper);
    background: var(--ink);
    font-weight: 700;
}

.word-tiles-bag {
    display: block;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.word-tiles-bag span,
.word-tiles-bag strong {
    display: block;
}

.word-tiles-board-form {
    position: relative;
    width: min(100%, 34rem);
    margin: 0 auto 0.2rem;
}

.word-tiles-board {
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0 auto;
    table-layout: fixed;
    border-spacing: 0;
    border-collapse: collapse;
}

.word-tiles-board td {
    width: 6.6667%;
    min-width: 0;
    max-width: 0;
    height: auto;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    overflow: hidden;
}

.word-tiles-square,
.word-tiles-board-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 1.8rem;
    height: clamp(1.05rem, min(5.8vw, calc((100vh - 16.5rem) / 15)), 2.1rem);
    min-height: 0;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: clamp(0.46rem, 1.7vw, 0.72rem);
    line-height: 0.85;
}

button.word-tiles-square {
    text-decoration: underline;
}

.word-tiles-board-tile {
    font-size: clamp(0.68rem, 2.4vw, 1rem);
    font-weight: 700;
}

.word-tiles-board-tile small,
.word-tiles-rack-tile small {
    position: absolute;
    right: 0.08rem;
    bottom: 0.02rem;
    font-size: 0.42em;
    line-height: 1;
}

.word-tiles-rack-tile small {
    right: 0.12rem;
    bottom: 0.08rem;
    font-size: 0.68em;
}

.word-tiles-board-tile.is-pending {
    outline: 2px double var(--ink);
    outline-offset: -3px;
}

.word-tiles-board-tile.is-last-played {
    outline: 3px solid var(--ink);
    outline-offset: -3px;
}

.word-tiles-board td.is-double-letter {
    background: var(--soft);
}

.word-tiles-board td.is-triple-letter {
    background: var(--paper);
    outline: 1px dotted var(--ink);
    outline-offset: -3px;
}

.word-tiles-board td.is-double-word {
    background: var(--soft);
    font-weight: 700;
}

.word-tiles-board td.is-triple-word {
    background: var(--paper);
    outline: 2px solid var(--ink);
    outline-offset: -4px;
}

.word-tiles-board td.is-center {
    background: var(--soft);
}

.word-tiles-blank-select {
    position: absolute;
    z-index: 1;
    top: 0.2rem;
    left: 0.2rem;
    width: auto;
    min-width: 4.5rem;
    min-height: 2rem;
    padding: 0.05rem;
    font-size: 0.7rem;
}

.word-tiles-rack-area {
    width: min(100%, 34rem);
    margin: 0 auto;
}

.word-tiles-rack {
    display: flex;
    justify-content: center;
    gap: 0.18rem;
    min-height: 3.05rem;
}

.word-tiles-rack-tile {
    position: relative;
    width: 2.94rem;
    min-width: 2.94rem;
    min-height: 2.94rem;
    padding: 0.1rem;
    border: 2px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    font-size: 1rem;
    font-weight: 700;
}

.word-tiles-rack-tile.is-selected {
    outline: 3px double var(--ink);
    outline-offset: -5px;
}

.word-tiles-rack-tile--back {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--line);
    outline: 3px double var(--paper);
    outline-offset: -5px;
    color: var(--paper);
    background: var(--ink);
}

.word-tiles-tile-back-logo {
    display: inline-block;
    font-size: 1.05rem;
    letter-spacing: -0.08em;
    line-height: 1;
}

.word-tiles-tile-back-logo em {
    font-size: 0.65em;
    font-style: normal;
    vertical-align: -0.14em;
}

.word-tiles-rack-tile[hidden] {
    display: none !important;
}

.word-tiles-play-toolbar .toolbar-action-form button.word-tiles-submit-action {
    color: var(--ink);
    background: var(--word-tiles-submit-paper);
    font-weight: 700;
}

.word-tiles-play-toolbar .word-tiles-pass-toolbar-action button.toolbar-action {
    width: auto;
    min-width: 0;
    gap: 0.3rem;
    padding-right: 0.45rem;
    padding-left: 0.45rem;
}

.word-tiles-toolbar-action-label {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.word-tiles-notice {
    display: grid;
    grid-template-columns: 1.3rem minmax(0, 1fr);
    align-items: center;
    gap: 0.3rem;
    width: min(100%, 34rem);
    min-height: 1.5rem;
    margin: 0 auto 0.2rem;
    padding: 0 0.1rem;
    border: 0;
    background: transparent;
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: left;
}

.word-tiles-notice.is-active {
    background: transparent;
}

.word-tiles-notice.is-error {
    font-weight: 700;
}

.word-tiles-notice.is-result {
    font-weight: 700;
}

.word-tiles-notice-icon {
    visibility: hidden;
    line-height: 0;
}

.word-tiles-notice.is-active .word-tiles-notice-icon {
    visibility: visible;
}

.word-tiles-notice-icon .toolbar-svg {
    width: 1.15rem;
    height: 1.15rem;
}

.word-tiles-notice-message,
.word-tiles-notice form {
    margin: 0;
}

.word-tiles-notice-message {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.word-tiles-notice-message span {
    margin-left: 0.25rem;
}

.word-tiles-notice.is-handoff .word-tiles-notice-message strong {
    font-size: 0.72rem;
}

.word-tiles-notice button {
    min-height: 2rem;
    padding: 0.1rem 0.35rem;
    border-width: 2px;
    color: var(--paper);
    background: var(--ink);
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.page-shell.page-shell--word-tiles-history,
.page-shell.page-shell--word-tiles-bag {
    width: min(100% - 1.5rem, 42rem);
    padding-bottom: 5rem;
}

.word-tiles-history-page {
    border: 2px solid var(--line);
}

.word-tiles-history-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 2px solid var(--line);
}

.word-tiles-history-summary h2 {
    margin: 0;
    font-size: 1.15rem;
}

.word-tiles-history-empty {
    margin: 0;
    padding: 1.5rem 0.75rem;
    text-align: center;
}

.word-tiles-history-words {
    margin: 0;
    padding: 0;
    list-style: none;
}

.word-tiles-history-words li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--line);
}

.word-tiles-history-number {
    font-weight: 700;
}

.word-tiles-history-word {
    min-width: 0;
    overflow-wrap: anywhere;
}

.word-tiles-history-words li:last-child {
    border-bottom: 0;
}

.word-tiles-bag-page {
    border: 2px solid var(--line);
}

.word-tiles-bag-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 2px solid var(--line);
}

.word-tiles-bag-summary h2 {
    margin: 0;
    font-size: 1.15rem;
}

.word-tiles-bag-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.word-tiles-bag-grid li {
    min-width: 0;
    min-height: 3.25rem;
    padding: 0.32rem 0.18rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.word-tiles-bag-grid li:nth-child(6n) {
    border-right: 0;
}

.word-tiles-bag-grid span,
.word-tiles-bag-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.word-tiles-bag-grid span {
    font-weight: 700;
}

.word-tiles-start-form {
    display: grid;
    gap: 0.45rem;
}

@media (min-width:900px) {
    .page-shell.page-shell--word-tiles-play {
        width: min(100% - 1rem, 58rem);
    }

    .word-tiles-scoreboard,
    .word-tiles-notice,
    .word-tiles-board-form,
    .word-tiles-rack-area {
        width: min(100%, 37.5rem);
    }

    .word-tiles-square,
    .word-tiles-board-tile {
        height: 2.4rem;
        height: clamp(1.4rem, calc((100vh - 16.5rem) / 15), 2.4rem);
    }

    .word-tiles-rack-tile {
        width: 3.6rem;
        min-width: 3.6rem;
        min-height: 3.36rem;
    }
}

@media (color) {
    html.palette-color .word-tiles-board td.is-double-letter { background:#d9edf7; }
    html.palette-color .word-tiles-board td.is-triple-letter { background:#b8dbea; }
    html.palette-color .word-tiles-board td.is-double-word,
    html.palette-color .word-tiles-board td.is-center { background:#f7d9c4; }
    html.palette-color .word-tiles-board td.is-triple-word { background:#efb89f; }
    html.palette-color .word-tiles-board-tile,
    html.palette-color .word-tiles-rack-tile {
        color: #34210f;
        background: #ead4a6;
        border-color: #76512f;
    }
    html.palette-color .word-tiles-board-tile.is-pending,
    html.palette-color .word-tiles-rack-tile.is-selected {
        outline-color: #34210f;
    }
    html.palette-color .word-tiles-rack-tile--back {
        color: #fff3dc;
        background: #76512f;
        border-color: #34210f;
        outline-color: #ead4a6;
    }
    html.palette-color .toolbar-app-word-tiles .kindle-toolbar__app-icon,
    html.palette-color .launcher-icon-word-tiles { color:#8a3f17; }
}

html.theme-dark {
    color-scheme: dark;
    --ink: #fff;
    --paper: #000;
    --line: #fff;
    --muted: #ddd;
    --soft: #111;
    --locked-paper: #333;
    --locked-ink: #fff;
    --error: #fff;
    --accent: #fff;
    --accent-alt: #fff;
    --danger: #fff;
    --danger-contrast: #000;
    --clock-night-paper: #000;
    --clock-night-ink: #fff;
    --icon-mail: #fff;
    --icon-calendar: #fff;
    --icon-reminders: #fff;
    --icon-contacts: #fff;
    --icon-weather: #fff;
    --icon-calculator: #fff;
    --icon-dashboard: #fff;
    --icon-time: #fff;
    --icon-feedback: #fff;
    --icon-knowledge-base: #fff;
    --icon-favorites: #fff;
    --icon-settings: #fff;
    --icon-news: #fff;
    --icon-guitar-chords: #fff;
    --icon-piano: #fff;
    --icon-lifetime-weeks: #fff;
    --icon-photos: #fff;
    --word-tiles-notice-paper: #222;
    --word-tiles-submit-paper: #333;
}

@media (color) {
    html.palette-color {
        --ai-action-paper: #1756b3;
        --ai-action-ink: #fff;
        --ai-action-border: #000;
        --ai-action-focus: #000;
        --ai-action-open-paper: #6b2fa0;
        --ai-action-open-ink: #fff;
    }

    html.theme-dark.palette-color {
        --ai-action-border: #fff;
        --ai-action-focus: #fff;
    }
}

* {
    box-sizing: border-box;
}

html {
    font-family: var(--font-app);
    font-size: 20px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
}

html.font-size-medium {
    font-size: 18px;
}

html.font-size-small {
    font-size: 16px;
}

html[lang^="ja"] {
    --font-app: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "MS Mincho", serif;
    line-height: 1.7;
    line-break: strict;
}

html[lang^="hi"] {
    --font-app: "Noto Serif Devanagari", "Kokila", "Mangal", serif;
    line-height: 1.75;
}

html[lang^="de"],
html[lang^="es"] {
    hyphens: auto;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
}

a {
    color: var(--ink);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
form {
    margin-top: 0;
}

h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
    line-height: 1.2;
}

h2 {
    margin-bottom: 0.7rem;
    font-size: 1.35rem;
    line-height: 1.25;
}

p,
li,
dd,
dt {
    max-width: 68ch;
}

button,
input,
select,
textarea,
.button-link {
    min-height: 52px;
    border: 2px solid var(--line);
    border-radius: 0;
    font: inherit;
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    color: var(--ink);
    background: var(--paper);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

/*
 * Touch presses use a small paper-button offset instead of the browser's
 * bright tap flash. JavaScript keeps is-pressed present for the short interval
 * between touch release and navigation; :active preserves the same feedback
 * when JavaScript is unavailable.
 */
button:active,
.button-link:active,
button.is-pressed,
.button-link.is-pressed {
    position: relative;
    top: 2px;
    left: 2px;
    border-style: inset;
}

/* Touch users do not need the post-tap focus ring; keyboard use restores it. */
html.input-touch button:focus,
html.input-touch .button-link:focus {
    outline: 0;
}

.button-link-with-icon {
    gap: 0.5rem;
}

.button-link-with-icon .toolbar-svg {
    width: 1.35rem;
    height: 1.35rem;
}

button {
    width: 100%;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.45rem 0.55rem;
    color: var(--ink);
    background: var(--paper);
}

textarea {
    min-height: 10rem;
    resize: vertical;
}

input[type="radio"],
input[type="checkbox"] {
    width: 1.3rem;
    min-height: 1.3rem;
    margin: 0.2rem 0 0;
    accent-color: var(--ink);
}

pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border: 1px solid var(--line);
    padding: 0.75rem;
    background: var(--soft);
}

.skip-link {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    padding: 0.5rem;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid var(--line);
    transform: translateY(-140%);
}

.skip-link:focus {
    transform: translateY(0);
}

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

.page-shell,
.site-footer {
    width: min(100% - 1.5rem, 42rem);
    max-width: 42rem;
    margin-left: 0.85rem;
    margin-right: 0.85rem;
    margin-inline: auto;
}

.page-shell {
    padding: 5.8rem 1rem 2rem;
}

.page-shell--page-controls {
    padding-bottom: 8rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1rem 0 1.5rem;
    color: var(--muted);
}

.home-page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 3.25rem);
    padding-bottom: 6.2rem;
    color: #000;
}

.home-landing {
    display: grid;
    gap: 0;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    background: #fff;
    text-align: left;
}

.home-hero-visual {
    position: relative;
    overflow: hidden;
}

.home-hero-copy {
    display: grid;
    gap: 0.45rem;
    align-content: start;
    width: min(100%, 34rem);
    padding: 0.75rem 1rem 0.9rem;
}

.home-landing h2 {
    margin-bottom: 0;
    font-size: 1.15rem;
    color: #000;
}

.home-landing .lede {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #000;
}

.home-action-row {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    width: min(11rem, 34%);
    margin: 0;
}

.home-page .button-link {
    color: #000;
    background: #fff;
    border-color: #000;
}

.home-page .home-primary-action {
    color: #fff;
    background: #000;
    font-weight: 700;
}

.home-hero-image {
    background: #fff;
}

.home-hero-image img {
    display: block;
    width: 100%;
    height: auto;
}

.home-data-note {
    width: min(100%, 32rem);
    margin-top: 1rem;
    border: 2px solid #777;
    padding: 0.9rem;
    color: #555;
    background: #fff;
    font-size: 0.5rem;
    text-align: left;
}

.home-data-note h2 {
    font-size: 0.55rem;
}

.home-data-note p:last-child {
    margin-bottom: 0;
}

.home-data-note a {
    color: #555;
}

.home-static-footer {
    margin-top: 0;
    color: #000;
    background: #fff;
    border-color: #000;
}

.home-static-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 0.55rem 1.5rem;
    margin: 0;
    width: 100%;
    text-align: center;
}

.home-static-links a {
    color: #000;
}

.home-static-links-table {
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
    width: 100%;
    text-align: center;
}

.home-static-links-table td {
    border: 0;
    padding: 0.18rem 0.35rem;
    text-align: center;
}

.home-static-links-table a {
    display: block;
    color: #000;
}

.legal-copyright {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.legal-copyright a {
    color: var(--muted);
}

.library-page {
    padding-bottom: 8.75rem;
}

.fixed-static-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 6;
    padding: 0.6rem 0 0.8rem;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.static-page-footer__inner {
    width: min(100% - 1.5rem, 42rem);
    max-width: 42rem;
    margin-inline: auto;
}

.page-scroll-anchor {
    display: block;
    height: 1px;
}

.page-scroll-controls {
    position: fixed;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 7;
    display: grid;
    gap: 0.45rem;
    width: min(9rem, calc(100vw - 1.5rem));
}

.page-scroll-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.45rem 0.65rem;
    border: 2px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
}

.page-scroll-controls--icon {
    display: flex;
    gap: 0.35rem;
    width: auto;
}

.page-scroll-controls--icon .page-scroll-button {
    width: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0.25rem;
}

.page-scroll-controls--icon .toolbar-svg {
    width: 1.75rem;
    height: 1.75rem;
}

.kindle-toolbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    border-bottom: 3px solid var(--line);
    color: var(--ink);
    background: var(--paper);
}

.kindle-toolbar__inner {
    display: grid;
    grid-template-columns: 3.25rem 1.9rem minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
    width: 100%;
    min-height: 4.65rem;
    padding: 0.55rem 0.5rem;
}

.kindle-toolbar__nav {
    min-width: 3.25rem;
}

.toolbar-nav-pair .kindle-toolbar__inner {
    grid-template-columns: 6.85rem 1.9rem minmax(0, 1fr) auto;
}

.toolbar-nav-pair .kindle-toolbar__nav {
    display: inline-flex;
    gap: 0.35rem;
    min-width: 6.85rem;
}

.toolbar-icon-button.toolbar-phone-library {
    display: none;
}

.toolbar-icon-button,
.kindle-toolbar__app-icon,
.toolbar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    color: inherit;
}

.toolbar-icon-button,
.toolbar-action {
    border: 0;
    background: transparent;
    text-decoration: none;
}

.toolbar-icon-static {
    border-color: transparent;
    background: transparent;
}

.kindle-toolbar__app-icon {
    border: 0;
    width: 1.9rem;
    min-width: 1.9rem;
    min-height: 1.9rem;
}

.kindle-toolbar__app-icon .toolbar-svg {
    width: 1.55rem;
    height: 1.55rem;
}

.kindle-toolbar__title {
    min-width: 0;
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kindle-toolbar__title--brand {
    font-family: "Inter", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.paperyx-brand-ink {
    display: inline-block;
    width: 2.33em;
    height: 1.12em;
    margin-left: 0.05em;
    color: inherit;
    fill: currentColor;
    vertical-align: -0.24em;
}

.kindle-toolbar__title-link {
    display: inline-block;
    min-height: 52px;
    color: inherit;
    line-height: 52px;
    text-decoration: none;
}

.kindle-toolbar__title-link:focus {
    outline-offset: -3px;
}

.kindle-toolbar__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
}

.kindle-toolbar__actions:empty {
    display: block;
    width: 0;
}

.app-notification {
    position: fixed;
    top: 4.65rem;
    right: 0;
    left: 0;
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 3.2rem;
    padding: 0.55rem 0.85rem;
    border-bottom: 2px solid var(--line);
    color: #fff;
    background: #000;
    font-weight: 700;
}

.app-notification__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    min-width: 1.6rem;
}

.app-notification__icon .toolbar-svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
}

.app-notification__message {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.app-notification__action-form {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
}

.app-notification__action {
    min-width: 5.5rem;
    min-height: 2.75rem;
    padding: 0.25rem 0.65rem;
    border: 2px solid #fff;
    color: #fff;
    background: #000;
    font: inherit;
    font-weight: 700;
    text-align: center;
}

.view-docked-toolbar {
    position: fixed;
    top: 4.65rem;
    right: 0;
    left: 0;
    z-index: 8;
    border-bottom: 2px solid var(--line);
    color: var(--ink);
    background: var(--paper);
}

.view-docked-toolbar--after-notification {
    top: 7.85rem;
}

.view-docked-toolbar--after-notification-action {
    top: 8.5rem;
}

.view-docked-toolbar--bottom {
    top: auto;
    bottom: var(--ai-chat-keyboard-offset, 0);
    border-top: 2px solid var(--line);
    border-bottom: 0;
}

.page-shell--notification {
    padding-top: 9rem;
}

.page-shell--docked-toolbar {
    padding-top: 8.95rem;
}

.page-shell--notification.page-shell--docked-toolbar {
    padding-top: 12.1rem;
}

.page-shell--notification-action.page-shell--docked-toolbar {
    padding-top: 12.75rem;
}

.ai-chat-shell.page-shell--docked-toolbar {
    padding-top: 6.75rem;
    padding-bottom: 9.5rem;
}

.toolbar-title-centered .kindle-toolbar__inner {
    grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
}

.toolbar-title-centered .kindle-toolbar__app-icon {
    display: none;
}

.toolbar-title-centered .kindle-toolbar__title {
    text-align: center;
}

.toolbar-title-centered .kindle-toolbar__actions:empty {
    width: 3.25rem;
}

.toolbar-action {
    padding: 0.25rem;
    font: inherit;
    cursor: pointer;
}

.toolbar-action.is-active {
    background: var(--soft);
}

.font-size-choice-group .choice-row {
    align-items: stretch;
}

.font-size-choice-option > span {
    gap: 0.4rem;
}

.font-size-preview {
    display: block;
    line-height: 1.45;
}

.font-size-preview--large {
    font-size: 20px;
}

.font-size-preview--medium {
    font-size: 18px;
}

.font-size-preview--small {
    font-size: 16px;
}

.contacts-new-contact-action {
    order: 100;
    margin-left: auto;
}

.toolbar-text-action {
    width: auto;
    min-width: 5rem;
    padding: 0.35rem 0.65rem;
    font-weight: 700;
}

.toolbar-cloud-account,
.toolbar-google-account {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.8rem;
    min-height: 3.25rem;
    max-width: 11.25rem;
    padding: 0.25rem 0.35rem;
    border: 0;
    color: inherit;
    background: transparent;
    line-height: 1.05;
    text-decoration: none;
}

.toolbar-profile-actions .kindle-toolbar__inner {
    grid-template-columns: 3.25rem 1.9rem minmax(0, 1fr) auto;
}

.toolbar-profile-actions.toolbar-nav-pair .kindle-toolbar__inner {
    grid-template-columns: 6.85rem 1.9rem minmax(0, 1fr) auto;
}

.toolbar-library-title-left .kindle-toolbar__inner {
    grid-template-columns: auto minmax(0, 1fr);
    width: min(100% - 1.5rem, 42rem);
    max-width: 42rem;
    margin-inline: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

.toolbar-library-title-left .kindle-toolbar__nav,
.toolbar-library-title-left .kindle-toolbar__app-icon {
    display: none;
}

.toolbar-library-title-left .kindle-toolbar__title {
    text-align: left;
}

.toolbar-library-title-left .kindle-toolbar__actions {
    width: 100%;
    min-width: 0;
}

.library-trial-action {
    width: auto;
    min-width: 0;
    min-height: 52px;
    margin-right: auto;
    padding: 0.35rem 0.65rem;
    border: 2px solid var(--ink);
    color: var(--paper);
    background: var(--ink);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.toolbar-title-centered.toolbar-profile-actions .kindle-toolbar__inner {
    grid-template-columns: minmax(8rem, 11.25rem) minmax(0, 1fr) minmax(8rem, 11.25rem);
}

.toolbar-cloud-account__media,
.toolbar-google-account__media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
}

.toolbar-cloud-account__identity,
.toolbar-google-account__identity {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
    justify-items: end;
}

.toolbar-cloud-account__name,
.toolbar-google-account__name {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: currentColor;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toolbar-cloud-account__provider,
.toolbar-google-account__provider {
    max-width: 100%;
    overflow: hidden;
    color: currentColor;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.05;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toolbar-cloud-account__avatar,
.toolbar-cloud-account__fallback,
.toolbar-google-account__avatar,
.toolbar-google-account__fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    min-width: 2.35rem;
    height: 2.35rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: var(--paper);
    color: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    overflow: hidden;
}

.toolbar-cloud-account__avatar,
.toolbar-google-account__avatar {
    object-fit: cover;
}

html.palette-color .kindle-toolbar .toolbar-google-account,
html.palette-color .kindle-toolbar .toolbar-cloud-account {
    color: inherit;
    background: transparent;
    border-color: transparent;
}

html.palette-color .kindle-toolbar .toolbar-cloud-account__fallback,
html.palette-color .kindle-toolbar .toolbar-cloud-account__avatar,
html.palette-color .kindle-toolbar .toolbar-google-account__fallback,
html.palette-color .kindle-toolbar .toolbar-google-account__avatar {
    color: inherit;
    background: transparent;
    border-color: currentColor;
}

.toolbar-form {
    margin: 0;
    background: inherit;
}

.library-ai-toggle {
    flex: 0 0 auto;
}

.library-ai-toggle__button {
    width: auto;
    min-width: 4.5rem;
    padding-right: 0.55rem;
    padding-left: 0.55rem;
    border: 1px solid currentColor;
    white-space: nowrap;
}

.toolbar-actions-compact .kindle-toolbar__actions {
    gap: 0.18rem;
}

.toolbar-actions-compact .toolbar-action {
    width: 2.6rem;
    min-width: 2.6rem;
}

.toolbar-actions-compact .toolbar-action .toolbar-svg {
    width: 1.55rem;
    height: 1.55rem;
}

@media (max-width: 560px) {
    .toolbar-has-phone-library .kindle-toolbar__inner,
    .toolbar-has-phone-library.toolbar-title-centered .kindle-toolbar__inner,
    .toolbar-has-phone-library.toolbar-profile-actions .kindle-toolbar__inner,
    .toolbar-has-phone-library.toolbar-title-centered.toolbar-profile-actions .kindle-toolbar__inner {
        grid-template-columns: 3.25rem 1.9rem minmax(0, 1fr);
        grid-template-rows: minmax(2.3rem, auto) minmax(3.25rem, auto);
        gap: 0.18rem 0.35rem;
        align-items: center;
        min-height: 6.85rem;
        padding: 0.45rem 0.45rem 0.5rem;
    }

    .toolbar-has-phone-library .toolbar-phone-library {
        display: inline-flex;
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: stretch;
        height: 100%;
        min-height: 6rem;
    }

    .toolbar-has-phone-library .kindle-toolbar__nav {
        display: none;
    }

    .toolbar-has-phone-library .kindle-toolbar__app-icon {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: start;
    }

    .toolbar-has-phone-library .kindle-toolbar__title {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
        overflow: hidden;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .toolbar-has-phone-library .kindle-toolbar__actions {
        grid-column: 2 / 4;
        grid-row: 2;
        align-self: end;
        justify-content: flex-end;
        min-width: 0;
        overflow-x: auto;
    }

    .toolbar-has-phone-library .kindle-toolbar__actions:empty {
        display: block;
        width: 0;
    }

    .toolbar-has-phone-library .toolbar-form {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .toolbar-has-phone-library.toolbar-actions-compact .kindle-toolbar__actions {
        gap: 0.15rem;
    }

    body.toolbar-phone-layout .app-notification {
        top: 6.85rem;
    }

    body.toolbar-phone-layout .view-docked-toolbar {
        top: 6.85rem;
    }

    body.toolbar-phone-layout .view-docked-toolbar--after-notification {
        top: 10.05rem;
    }

    body.toolbar-phone-layout .view-docked-toolbar--after-notification-action {
        top: 10.7rem;
    }

    body.toolbar-phone-layout .page-shell {
        padding-top: 8.15rem;
    }

    body.toolbar-phone-layout .page-shell--notification {
        padding-top: 11.35rem;
    }

    body.toolbar-phone-layout .page-shell--docked-toolbar {
        padding-top: 11.65rem;
    }

    body.toolbar-phone-layout .page-shell--notification.page-shell--docked-toolbar {
        padding-top: 14.85rem;
    }

    body.toolbar-phone-layout .page-shell--notification-action.page-shell--docked-toolbar {
        padding-top: 15.5rem;
    }
}

.toolbar-svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
    stroke: none;
}

.launcher-icon .toolbar-svg {
    width: 2.7rem;
    height: 2.7rem;
}

.kindle-toolbar .kindle-toolbar__app-icon.launcher-icon {
    width: 1.9rem;
    min-width: 1.9rem;
    min-height: 1.9rem;
    font-size: 1rem;
}

.kindle-toolbar .kindle-toolbar__app-icon.launcher-icon .toolbar-svg {
    width: 1.45rem;
    height: 1.45rem;
}

.reading-section + .reading-section {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.lede {
    font-size: 1.15rem;
}

.plain-list {
    padding-left: 1.25rem;
}

.plain-list li + li {
    margin-top: 0.35rem;
}

.action-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.action-list form {
    margin: 0;
}

.action-list button {
    width: 100%;
}

.link-list {
    padding-left: 0;
    list-style: none;
}

.link-list li + li {
    margin-top: 0.6rem;
}

.link-list a {
    display: block;
    min-height: 52px;
    padding: 0.55rem 0.7rem;
    border: 2px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.settings-menu {
    display: grid;
    gap: 0.65rem;
    padding-left: 0;
    list-style: none;
}

.settings-menu a,
.account-summary {
    display: grid;
    gap: 0.15rem;
    min-height: 52px;
    padding: 0.6rem 0.7rem;
    border: 2px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.settings-action-sections {
    display: grid;
    gap: 1rem;
}

.settings-action-section-title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    line-height: 1.25;
}

.settings-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-action-button {
    width: 100%;
    background: var(--paper);
    font: inherit;
    text-align: left;
}

.settings-action-grid > li {
    display: flex;
}

.settings-action-grid a {
    grid-template-rows: 3.5rem auto;
    align-content: center;
    justify-items: center;
    width: 100%;
    min-height: 7rem;
    padding: 0.7rem 0.55rem;
    text-align: center;
}

.settings-action-grid strong {
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.settings-action-grid span {
    line-height: 1.25;
}

.settings-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    min-height: 3.25rem;
    color: var(--ink);
}

.settings-action-icon .toolbar-svg {
    width: 2.75rem;
    height: 2.75rem;
}

.guitar-chords-page,
.piano-chord-page,
.lifetime-week-page {
    display: grid;
    gap: 1rem;
}

.chord-summary h1,
.piano-chord-summary h1 {
    margin-bottom: 0.2rem;
}

.chord-summary p,
.piano-chord-summary p {
    margin: 0.25rem 0;
}

.chord-builder-form {
    display: grid;
    gap: 0.65rem;
}

.chord-button-group {
    margin: 0;
}

.chord-button-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.chord-action-strip {
    width: 100%;
}

.chord-action-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0.16rem 0;
}

.chord-action-table td {
    padding: 0;
    vertical-align: stretch;
}

.chord-root-keystrip {
    gap: 0.3rem;
}

.chord-root-keystrip .chord-choice {
    padding-right: 0.18rem;
    padding-left: 0.18rem;
}

.chord-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    padding: 0.25rem 0.12rem;
    border: 2px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.chord-choice--accidental {
    min-height: 3rem;
}

.chord-choice__stack {
    display: grid;
    gap: 0.05rem;
    line-height: 1;
}

.chord-choice.is-selected {
    border-width: 4px;
    color: #fff;
    background: #000;
    border-color: #000;
    text-decoration: none;
}

html.palette-color .chord-choice.is-selected {
    color: #fff;
    background: #0f2f5f;
    border-color: #071a35;
}

html.palette-color .chord-position-cell.is-selected {
    color: #fff;
    background: #0f4f32;
    border-color: #061d13;
}

html.palette-color .chord-position-cell.is-muted {
    color: #fff;
    background: #475569;
    border-color: #1f2937;
}

.piano-keyboard-section {
    display: grid;
    gap: 0.65rem;
}

.piano-keyboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1.6rem, 1fr));
    gap: 0.12rem;
    padding: 0.35rem;
    border: 2px solid var(--line);
    background: var(--paper);
}

.piano-key {
    min-height: 4.25rem;
    border: 2px solid var(--line);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.2rem 0.1rem;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.piano-key--white {
    background: var(--paper);
    color: var(--ink);
}

.piano-key--black {
    min-height: 3.35rem;
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.piano-key.is-c {
    border-bottom-width: 4px;
}

.piano-key.is-selected {
    border-width: 4px;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.piano-key--white.is-selected {
    background: var(--soft);
}

.piano-key--black.is-selected {
    outline: 3px solid var(--line);
    outline-offset: 2px;
}

.piano-tone-detail-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.4rem;
}

.piano-tone-detail-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--line);
}

.piano-tone-detail-list span {
    margin-left: 0.45rem;
}

.lifetime-week-summary p {
    margin: 0 0 0.85rem;
    color: var(--ink);
}

.lifetime-week-planning,
.lifetime-week-plan-heading,
.lifetime-week-goals,
.lifetime-week-journal {
    padding: 1rem;
    border: 2px solid var(--line);
    background: var(--paper);
}

.lifetime-week-planning h1,
.lifetime-week-plan-heading h1,
.lifetime-week-goals h2,
.lifetime-week-journal h2 {
    margin-top: 0;
}

.lifetime-week-jump-form,
.lifetime-week-plan-page,
.lifetime-week-navigation,
.lifetime-week-goal-actions,
.lifetime-week-journal-heading,
.lifetime-week-edit-form,
.lifetime-week-goal-editor,
.lifetime-week-goal-editor-row,
.lifetime-week-goal-flags {
    display: grid;
    gap: var(--view-toolbar-button-gap);
}

.lifetime-week-edit-form {
    margin: 0;
}

.lifetime-week-jump-form {
    margin-top: 1rem;
}

.lifetime-week-jump-form > div {
    display: grid;
    gap: 0.25rem;
}

.lifetime-week-navigation {
    grid-template-columns: 1fr;
}

.lifetime-week-navigation .button-link {
    width: 100%;
}

.lifetime-week-goal-list {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.lifetime-week-goal-list > li {
    padding: 0.85rem 0;
    border-top: 2px solid var(--line);
}

.lifetime-week-goal-list > li:last-child {
    border-bottom: 2px solid var(--line);
}

.lifetime-week-goal-list p {
    margin: 0 0 0.65rem;
}

.lifetime-week-goal-list .goal-status {
    display: inline-block;
    margin-right: 0.45rem;
    padding: 0.1rem 0.35rem;
    border: 2px solid var(--line);
    font-weight: 700;
}

.lifetime-week-goal-list .is-completed .goal-text {
    text-decoration: line-through;
}

.lifetime-week-goal-actions {
    grid-template-columns: 1fr;
}

.lifetime-week-goal-actions form,
.lifetime-week-copy-form {
    margin: 0;
}

.lifetime-week-goal-actions button,
.lifetime-week-goal-actions .button-link,
.lifetime-week-copy-form button {
    width: 100%;
}

.lifetime-week-goal-editor-row {
    padding: 1rem 0;
    border-top: 2px solid var(--line);
}

.lifetime-week-goal-editor-row:last-child {
    border-bottom: 2px solid var(--line);
}

.lifetime-week-goal-flags {
    grid-template-columns: 1fr;
}

.lifetime-week-goal-flags label {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
    min-height: 3.25rem;
    margin: 0;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--line);
}

.lifetime-week-new-goals {
    margin-top: 1rem;
}

.lifetime-week-add-goal-form {
    margin-top: 1rem;
}

.lifetime-week-copy-form {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.lifetime-week-copy-form .field-hint {
    margin-bottom: 0;
}

.lifetime-week-journal-heading {
    grid-template-columns: 1fr;
    margin-bottom: 0.75rem;
}

.lifetime-week-journal-heading h2 {
    margin-bottom: 0;
}

.lifetime-week-journal-text {
    margin-bottom: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (min-width: 900px) {
    .lifetime-week-jump-form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(12rem, 1fr);
        align-items: end;
    }

    .lifetime-week-navigation,
    .lifetime-week-goal-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lifetime-week-goal-flags {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lifetime-week-journal-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

.board-game-computer-choice,
.board-game-mode,
.board-game-computer-note {
    border: 2px solid var(--line);
    padding: 0.8rem;
    margin: 1rem 0;
    background: var(--soft);
}

.board-game-side-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--view-toolbar-button-gap);
}

.board-game-side-actions button {
    flex: 1 1 12rem;
}

.board-game-computer-retry button {
    width: 100%;
}

.ai-assist-action button {
    width: 100%;
}

.ai-action-menu {
    position: fixed;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 40;
    color: var(--ink);
}

.ai-action-menu__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 3px solid var(--ai-action-border);
    color: var(--ai-action-ink);
    background: var(--ai-action-paper);
    cursor: pointer;
}

.ai-action-menu__toggle .toolbar-svg {
    width: 1.65rem;
    height: 1.65rem;
}

.ai-action-menu__state:focus + .ai-action-menu__toggle {
    outline: 3px solid var(--ai-action-focus);
    outline-offset: 2px;
}

.ai-action-menu__state:checked + .ai-action-menu__toggle {
    color: var(--ai-action-open-ink);
    background: var(--ai-action-open-paper);
}

.ai-action-menu__panel {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.5rem);
    width: max-content;
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 5.25rem);
    overflow-y: auto;
    border: 3px solid var(--line);
    background: var(--paper);
}

.ai-action-menu__state:checked ~ .ai-action-menu__panel {
    display: block;
}

.ai-action-menu__body {
    padding: 0.9rem;
}

.ai-action-menu__loading {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.5rem);
    width: max-content;
    max-width: calc(100vw - 1.5rem);
    background: var(--paper);
}

.ai-action-menu.ai-action-submitting .ai-action-menu__panel {
    display: none;
}

.ai-action-menu.ai-action-submitting .ai-action-menu__loading {
    display: block;
}

.ai-action-menu__body .ai-assist-action,
.ai-action-menu__body .board-game-computer-retry,
.ai-action-menu__body .board-game-side-actions {
    margin: 0 0 var(--view-toolbar-button-gap);
}

.ai-action-menu__body .ai-assist-action button,
.ai-action-menu__body .board-game-computer-retry button {
    width: auto;
    white-space: nowrap;
}

.ai-action-menu__body > :last-child,
.ai-action-menu__body form:last-child {
    margin-bottom: 0;
}

.ai-assist-action-list {
    margin: 0 0 1.25rem;
}

.ai-assist-action-list .ai-assist-action {
    margin: 0 0 var(--view-toolbar-button-gap);
}

.preserve-lines {
    white-space: pre-wrap;
}

.ai-assist-result {
    border: 2px solid var(--line);
    padding: 1rem;
    margin: 1rem 0;
    background: var(--soft);
}

/* Keep the AI composer at the bottom after the shared toolbar media rules. */
.view-docked-toolbar.view-docked-toolbar--bottom {
    top: auto;
    bottom: var(--ai-chat-keyboard-offset, 0px);
}

.lifetime-week-chart {
    width: 100%;
    max-width: 38rem;
    border-collapse: separate;
    border-spacing: 0.055rem 0.075rem;
    table-layout: fixed;
    font-size: 0.58rem;
    line-height: 1;
}

.lifetime-week-chart th,
.lifetime-week-chart td {
    width: 1.45%;
    min-width: 0;
    padding: 0;
    text-align: center;
    vertical-align: middle;
}

.lifetime-week-chart th:first-child {
    width: 2.45rem;
    padding-right: 0.2rem;
    color: var(--ink);
    font-weight: 700;
    text-align: right;
}

.lifetime-week-month-row th {
    height: 0.95rem;
    border-bottom: 2px solid var(--line);
    font-size: 0.52rem;
    font-weight: 700;
}

.lifetime-week-month-row th.is-month-marker {
    border-left: 2px solid var(--line);
}

.lifetime-week-chart tbody th {
    height: 0.28rem;
    border-right: 1px solid var(--line);
}

.lifetime-week-chart tbody tr.is-decade th {
    border-right-width: 3px;
}

.lifetime-week-chart tbody tr.is-decade td {
    border-top: 1px solid var(--line);
}

.lifetime-week-dot {
    display: block;
    width: 0.18rem;
    height: 0.18rem;
    margin: 0 auto;
    border: 1px solid #777;
    border-radius: 50%;
    background: var(--paper);
}

.lifetime-week-chart td.is-past .lifetime-week-dot {
    width: calc(0.18rem + 1px);
    height: calc(0.18rem + 1px);
    border-color: var(--ink);
    background: var(--ink);
}

html.theme-dark .lifetime-week-dot {
    border-color: #aaa;
    background: var(--paper);
}

html.theme-dark .lifetime-week-chart td.is-past .lifetime-week-dot {
    border-color: var(--ink);
    background: var(--ink);
}

.chord-tone-list {
    line-height: 1.4;
}

.chord-fretboard-section {
    overflow-x: visible;
}

.chord-fretboard {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.chord-fretboard caption {
    text-align: left;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.chord-fretboard th,
.chord-fretboard td {
    border: 2px solid var(--line);
    padding: 0.24rem;
    text-align: center;
    vertical-align: middle;
}

.chord-fretboard th {
    background: var(--soft);
}

.chord-position-cell {
    height: 3rem;
}

.chord-position-cell.is-selected {
    border-width: 4px;
    color: #fff;
    background: #333;
    border-color: var(--line);
}

.chord-position-cell.is-muted {
    color: #fff;
    background: #333;
    border-color: var(--line);
    border-width: 2px;
}

.chord-position-cell strong,
.chord-position-cell span {
    display: block;
}

.chord-fretboard--rotated th:first-child {
    width: 3.4rem;
}

.chord-fret-shift-form {
    margin: 0;
}

.chord-fret-shift-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.15rem 0.2rem;
    border: 2px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
}

.chord-fret-shift-button__icon {
    display: inline-flex;
    align-items: center;
}

.chord-fret-shift-button .toolbar-svg {
    width: 1.25rem;
    height: 1.25rem;
}

.tuning-select-list {
    display: grid;
    gap: 0.65rem;
}

.tuning-select-list label {
    display: grid;
    grid-template-columns: minmax(6rem, 1fr) minmax(8rem, 2fr);
    gap: 0.65rem;
    align-items: center;
}

.tuning-text-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(3.5rem, 1fr));
    gap: 0.55rem;
}

.tuning-text-list label {
    display: grid;
    gap: 0.25rem;
    align-items: start;
}

.tuning-text-list label > span:first-child {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.25;
}

.tuning-text-list input {
    min-height: 3rem;
    padding: 0.25rem 0.35rem;
    text-align: center;
    text-transform: uppercase;
}

.account-summary {
    grid-template-columns: 4.4rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
}

.account-summary__media {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.1rem;
    min-width: 4.1rem;
    min-height: 3.4rem;
}

.account-summary__provider {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    min-width: 1.7rem;
    min-height: 1.7rem;
    border: 2px solid var(--line);
    background: var(--paper);
}

.account-summary__provider .toolbar-svg {
    width: 1.1rem;
    height: 1.1rem;
}

.account-summary .account-summary__alert {
    position: absolute;
    top: -0.1rem;
    right: -0.1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    min-width: 1.7rem;
    height: 1.7rem;
    color: var(--danger);
    background: var(--paper);
}

.account-summary__alert svg {
    width: 1.55rem;
    height: 1.55rem;
    fill: currentColor;
}

.account-summary__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    min-width: 3.25rem;
    height: 3.25rem;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--soft);
    color: var(--ink);
    font: inherit;
    font-size: 1.3rem;
    font-weight: 700;
    object-fit: cover;
    overflow: hidden;
}

.account-summary__avatar-fallback {
    text-transform: uppercase;
}

.account-summary__body {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.account-summary__body > span,
.account-summary__body > strong {
    overflow-wrap: anywhere;
}

.account-summary__provider-label {
    font-size: 0.9rem;
}

.settings-menu span,
.account-summary span {
    color: var(--muted);
}

.settings-menu .settings-action-icon {
    color: var(--ink);
}

.account-summary__body strong,
.account-summary__provider,
.account-summary__avatar,
.account-summary__avatar-fallback {
    color: var(--ink);
}

.settings-signout-form {
    margin-top: 0.8rem;
}

.settings-panel {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
}

.accounts-paperyx-panel {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.paperyx-account-summary {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

.paperyx-account-summary .account-summary__media {
    width: 3.25rem;
    min-height: 3.25rem;
}

.account-summary__status strong,
.account-summary .account-summary__refresh,
.account-refresh-timing {
    color: var(--ink);
}

.account-refresh-expiration {
    display: block;
    margin-top: 0.2rem;
}

.settings-disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0.35rem 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
}

.settings-disclosure summary::-webkit-details-marker {
    display: none;
}

.settings-disclosure summary::after {
    content: "+";
    flex: 0 0 auto;
    margin-left: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.settings-disclosure[open] summary::after {
    content: "-";
}

.settings-disclosure-body {
    padding-top: 0.5rem;
}

.setup-intro {
    margin: 1rem 0;
}

.page-shell--welcome {
    padding-bottom: 7.4rem;
}

.setup-welcome {
    max-width: 42rem;
    margin: 0 auto;
}

.setup-welcome-step {
    margin-bottom: 0.65rem;
    color: var(--ink);
    font-weight: 700;
}

.setup-welcome-screen > h2 {
    font-size: 1.65rem;
}

.setup-welcome-icon-list,
.setup-welcome-path-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.setup-welcome-icon-row,
.setup-welcome-path-choice,
.setup-welcome-final-choice {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    column-gap: 0.8rem;
    align-items: center;
}

.setup-welcome-icon-row + .setup-welcome-icon-row,
.setup-welcome-path-choice + .setup-welcome-path-choice,
.setup-welcome-final-choice + .setup-welcome-final-choice {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.setup-welcome-copy-icon,
.setup-welcome-path-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    color: var(--ink);
}

.setup-welcome-copy-icon .toolbar-svg,
.setup-welcome-path-icon .toolbar-svg {
    width: 2.75rem;
    height: 2.75rem;
}

.setup-welcome-path-choice {
    align-items: start;
}

.setup-welcome-path-choice h3,
.setup-welcome-final-choice h3 {
    margin-bottom: 0.35rem;
}

.setup-welcome-path-choice p,
.setup-welcome-final-choice p {
    margin-bottom: 0.45rem;
}

.setup-welcome-path-choice p:last-child,
.setup-welcome-final-choice .plain-form:last-child {
    margin-bottom: 0;
}

.setup-welcome-provider-list {
    display: table;
    width: 100%;
    margin: 0.9rem 0;
    table-layout: fixed;
}

.setup-welcome-provider {
    display: table-cell;
    padding: 0 0.3rem;
    text-align: center;
    vertical-align: top;
}

.setup-welcome-provider-icon {
    display: block;
    margin-bottom: 0.25rem;
}

.setup-welcome-provider-icon .toolbar-svg {
    width: 2.35rem;
    height: 2.35rem;
}

.setup-welcome-switcher {
    display: table;
    width: 100%;
    margin: 1.25rem 0 0.75rem;
    table-layout: fixed;
}

.setup-welcome-switch-state,
.setup-welcome-switch-indicator {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.setup-welcome-switch-state {
    width: 38%;
}

.setup-welcome-switch-state strong,
.setup-welcome-switch-icon {
    display: block;
}

.setup-welcome-switch-icon {
    margin-bottom: 0.35rem;
}

.setup-welcome-switch-icon .toolbar-svg {
    width: 4.25rem;
    height: 4.25rem;
}

.setup-welcome-switch-indicator {
    width: 24%;
    color: var(--welcome-switch-indicator);
}

.setup-welcome-switch-indicator .toolbar-svg {
    width: 2.25rem;
    height: 2.25rem;
}

@media (color) {
    html.palette-color .setup-welcome-switch-indicator {
        --welcome-switch-indicator: #315f7d;
    }

    html.theme-dark.palette-color .setup-welcome-switch-indicator {
        --welcome-switch-indicator: #9ec5e5;
    }
}

.setup-welcome-switch-note {
    margin-bottom: 0;
    text-align: center;
    font-weight: 700;
}

.setup-welcome-final-choice {
    align-items: start;
}

.setup-welcome-final-choice .plain-form {
    margin-top: 0.55rem;
}

.setup-welcome-recommendation {
    margin-bottom: 0.35rem;
}

.setup-welcome-primary {
    border-color: var(--ink);
    color: var(--paper);
    background: var(--ink);
    font-weight: 700;
}

.setup-welcome-primary .toolbar-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.setup-continuation-wizard {
    max-width: 52rem;
}

.setup-wizard-screen,
.setup-wizard-heading {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
}

.setup-wizard-heading {
    margin-bottom: 1rem;
}

.setup-wizard-screen h2,
.setup-wizard-heading h2 {
    margin-bottom: 0.55rem;
}

.setup-wizard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    color: var(--ink);
}

.setup-wizard-icon .toolbar-svg {
    width: 3.5rem;
    height: 3.5rem;
}

.setup-location-results {
    margin-top: 1rem;
}

.setup-location-skip {
    margin-top: 1rem;
}

.setup-location-skip button {
    width: 100%;
}

.setup-provider-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-onboarding-exit {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    text-align: center;
}

.setup-onboarding-exit p {
    margin-bottom: 0.4rem;
}

.setup-onboarding-exit-link {
    display: inline-block;
    min-height: 52px;
    padding: 0.65rem 0.8rem;
    box-sizing: border-box;
}

@media (max-width: 620px) {
    .setup-provider-grid {
        grid-template-columns: 1fr;
    }
}

.setup-welcome-page-control {
    z-index: 9;
}

.setup-process-list {
    padding-left: 1.45rem;
}

.setup-process-list li + li {
    margin-top: 0.55rem;
}

.setup-process-list li::marker {
    font-weight: 700;
}

.setup-process-list p {
    margin-bottom: 0;
}

.setup-cloud-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.setup-cloud-table td {
    vertical-align: top;
}

.setup-cloud-table td + td {
    padding-left: 1.25rem;
}

.setup-cloud-table__instructions {
    width: 42%;
}

.setup-cloud-table__code {
    width: 58%;
}

.setup-cloud-status-list,
.setup-cloud-detail-list {
    margin-top: 0.9rem;
}

.setup-cloud-detail-list dd {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.qr-panel.setup-cloud-qr {
    width: 320px;
    height: 320px;
    max-width: 100%;
    margin: 0 0 0.9rem auto;
    padding: 0;
    border: 0;
}

.setup-cloud-bottom-action {
    margin-top: 1.25rem;
}

.setup-cloud-bottom-action .button-link {
    width: 100%;
}

.timezone-result-list {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.timezone-result-list li {
    border-top: 2px solid var(--line);
    background: var(--paper);
}

.timezone-result-list li:last-child {
    border-bottom: 2px solid var(--line);
}

.timezone-result-form {
    margin: 0;
}

.timezone-result-button {
    display: grid;
    gap: 0.15rem;
    width: 100%;
    min-height: 5rem;
    padding: 0.8rem;
    border: 0;
    color: var(--ink);
    background: transparent;
    text-align: left;
}

.timezone-result-button span {
    display: block;
    color: var(--muted);
}

.settings-task-page h1 {
    margin-bottom: 0.8rem;
}

.settings-task-form {
    margin-bottom: 1rem;
}

.lifetime-birthdate-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    padding: 0;
    border: 0;
}

.lifetime-birthdate-fields legend {
    grid-column: 1 / -1;
    margin-bottom: 0.1rem;
    font-weight: 700;
}

.lifetime-birthdate-fields label {
    margin: 0;
}

.lifetime-week-color-field {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.lifetime-week-color-field .favorite-color-option {
    display: grid;
    gap: 0.2rem;
    color: var(--ink);
    font-size: 0.72rem;
    text-align: center;
}

.lifetime-week-color-name {
    overflow-wrap: anywhere;
}

.compact-choice-group {
    margin-bottom: 0.75rem;
    padding: 0.65rem;
}

.compact-choice-group .choice-option {
    padding: 0.45rem 0;
}

.inline-action-grid {
    display: grid;
    gap: 0.6rem;
}

.inline-action-grid .plain-form,
.account-action-form {
    margin-bottom: 0;
}

.license-summary {
    margin-bottom: 0.75rem;
    padding: 0.85rem;
}

.license-summary h2 {
    margin-bottom: 0.35rem;
}

.license-summary p {
    margin-bottom: 0;
}

.license-action-grid {
    margin-bottom: 0.8rem;
}

.license-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0.8rem 0 0;
}

.license-meta-grid div {
    min-width: 0;
    padding: 0.5rem;
    border-top: 2px solid var(--line);
}

.license-meta-grid dt {
    margin-bottom: 0.1rem;
    font-weight: 700;
    line-height: 1.25;
}

.license-meta-grid dd {
    margin: 0;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.account-inline-action {
    gap: 0.55rem;
}

.account-refresh-actions .account-inline-action,
.account-refresh-actions .button-link {
    border-color: var(--line);
}

.account-inline-action .toolbar-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.form-bottom-action {
    margin-top: 1rem;
}

.form-bottom-action .button-link {
    width: 100%;
}

.photo-folder-use-action {
    max-width: 68ch;
    margin-bottom: 1rem;
}

.photo-folder-image-count {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.photo-folder-use-action-bottom {
    margin-top: 1rem;
}

.photo-folder-use-action .button-link {
    width: 100%;
    min-height: 64px;
    border-width: 3px;
    border-color: var(--ink);
    color: var(--paper);
    background: var(--ink);
    font-weight: 700;
}

.provider-connect-button {
    gap: 0.55rem;
}

.provider-connect-button .toolbar-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.account-connect-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.account-connect-grid .plain-form,
.account-connect-grid .account-action-form {
    margin-bottom: 0;
}

.account-connect-option {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-content: center;
    justify-items: center;
    width: 100%;
    min-height: 5.9rem;
    padding: 0.55rem 0.45rem;
    text-align: center;
}

.account-connect-option__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
}

.account-connect-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    min-width: 1.9rem;
    min-height: 1.9rem;
    color: var(--ink);
}

.account-connect-option__icon .toolbar-svg {
    width: 1.65rem;
    height: 1.65rem;
}

.account-connect-option__header strong {
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-align: left;
}

.account-connect-option__note {
    color: var(--muted-ink);
    font-size: 0.72rem;
    line-height: 1.3;
}

.provider-app-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.provider-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    min-width: 1.65rem;
    height: 1.65rem;
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--paper);
}

.provider-app-icon .toolbar-svg {
    width: 1rem;
    height: 1rem;
}

.account-list {
    padding-left: 0;
    list-style: none;
}

.account-card-list {
    display: grid;
    gap: 0.75rem;
}

.account-item {
    padding: 0.45rem 0;
}

.account-card-list .account-item {
    padding: 0;
}

.account-card {
    border: 2px solid var(--line);
}

.account-card--current {
    border-width: 3px;
}

.account-card .account-summary {
    border: 0;
}

.account-current-indicator strong {
    color: var(--ink);
}

.account-card-actions {
    display: block;
    padding: 0.55rem 0.65rem;
    border-top: 2px solid var(--line);
}

.account-card-actions p {
    margin: 0;
}

.account-card-actions button {
    min-height: 52px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.account-item h3 {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
}

.connected-app-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.connected-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    min-width: 2.35rem;
    height: 2.35rem;
    border: 2px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}

.connected-app-icon .toolbar-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.connected-app-icon-label {
    display: none;
}

.connected-app-icons-empty {
    color: var(--muted);
}

.account-provider-group + .account-provider-group {
    margin-top: 1.25rem;
}

.account-provider-group h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
}

.account-picker-item {
    padding: 0.75rem 0;
}

.account-picker-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.account-picker-actions p {
    margin: 0;
}

.account-action-list {
    padding-left: 0;
    list-style: none;
}

.account-action-list li + li {
    margin-top: 0.55rem;
}

.account-action-list p {
    margin-bottom: 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--line);
}

.account-access-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.account-access-table td {
    width: 50%;
    min-height: 52px;
    padding: 0.65rem 0.7rem;
    border: 2px solid var(--line);
    vertical-align: top;
}

.account-access-table strong,
.account-access-table span {
    display: block;
}

.account-access-table span {
    margin-top: 0.25rem;
}

.account-access-form {
    margin-top: 0.45rem;
    margin-bottom: 0;
}

.account-access-form button {
    width: 100%;
    min-height: 52px;
}

.account-metadata-list,
.account-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    margin-bottom: 1.5rem;
}

.account-metadata-list div {
    min-width: 0;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
}

.account-metadata-list div:nth-child(-n + 2) {
    padding-top: 0;
    border-top: 0;
}

.account-detail-grid {
    gap: 0;
    border: 2px solid var(--line);
}

.account-detail-grid div {
    min-width: 0;
    padding: 0.65rem 0.7rem;
    border-top: 2px solid var(--line);
}

.account-detail-grid div:nth-child(odd) {
    border-right: 2px solid var(--line);
}

.account-detail-grid div:nth-child(-n + 2) {
    border-top: 0;
}

.account-detail-grid .account-detail-grid__wide {
    grid-column: 1 / -1;
    border-right: 0;
}

.account-metadata-list dt,
.account-detail-grid dt {
    font-weight: 700;
}

.account-metadata-list dd,
.account-detail-grid dd {
    margin: 0.25rem 0 0;
    overflow-wrap: anywhere;
}

.account-detail-select-form {
    margin-bottom: 1rem;
}

.account-detail-actions {
    margin-top: 0.8rem;
}

.account-detail-actions .inline-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-detail-actions .button-link {
    border-color: var(--line);
}

.account-detail-actions .danger-action {
    border-color: var(--danger);
}

.compact-detail-list dd {
    margin-bottom: 0.45rem;
}

.qr-panel {
    width: min(100%, 17rem);
    aspect-ratio: 1 / 1;
    margin: 1rem auto;
    padding: 0.7rem;
    border: 2px solid var(--line);
    background: #fff;
}

.qr-panel svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: visible;
}

.ordered-flow li {
    margin-bottom: 0.25rem;
}

.search-form,
.plain-form {
    margin-bottom: 1.5rem;
}

.search-form {
    display: grid;
    gap: 0.6rem;
}

.knowledge-base-search-form {
    margin-bottom: 1rem;
}

.knowledge-base-list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.knowledge-base-list li {
    margin: 0;
    border: 2px solid var(--line);
}

.knowledge-base-list a {
    display: grid;
    gap: 0.25rem;
    min-height: 52px;
    padding: 0.8rem;
    color: var(--ink);
    text-decoration: none;
}

.knowledge-base-list a > span,
.knowledge-base-list a > strong {
    display: block;
    overflow-wrap: anywhere;
}

.knowledge-base-category {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.knowledge-base-article > header {
    margin-bottom: 1rem;
}

.knowledge-base-article > header h2 {
    margin-bottom: 0.55rem;
}

.knowledge-base-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--view-toolbar-button-gap);
    margin-top: 0.8rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-icon-row .form-field {
    margin-bottom: 0;
}

.form-icon-row {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 1rem;
}

.form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.form-icon .toolbar-svg {
    width: 1.6rem;
    height: 1.6rem;
}

.signup-form {
    margin-bottom: 0;
}

.signup-form .signup-field-row {
    align-items: center;
    margin-bottom: 0.65rem;
}

.signup-field-row .form-icon,
.signup-field-row input {
    min-height: 58px;
}

.signup-terms-field {
    margin: 0.1rem 0 0.7rem 3.1rem;
}

.signup-terms-field label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    margin: 0;
}

.signup-submit {
    width: calc(100% - 3.1rem);
    margin-left: 3.1rem;
}

.compact-form {
    margin-bottom: 0;
}

.compact-form .compact-field-row {
    align-items: center;
    margin-bottom: 0.65rem;
}

.compact-field-row .form-icon,
.compact-field-row input {
    min-height: 58px;
}

.compact-form-offset {
    width: calc(100% - 3.1rem);
    margin-left: 3.1rem;
}

.compact-form .compact-choice {
    margin-top: 0.1rem;
    margin-bottom: 0.7rem;
}

.form-field label,
.search-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.form-help {
    margin-bottom: 0.45rem;
    color: var(--muted);
}

.email-code-input {
    text-align: center;
    letter-spacing: 0.08em;
}

fieldset {
    min-width: 0;
    margin: 0 0 1.25rem;
    padding: 0.85rem;
    border: 2px solid var(--line);
}

legend {
    padding: 0 0.35rem;
    font-weight: 700;
}

.choice-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    min-height: 52px;
    padding: 0.65rem 0;
    border-top: 1px solid var(--line);
}

.choice-option:first-of-type {
    border-top: 0;
}

.choice-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-row .choice-option {
    border-top: 0;
}

.choice-row .choice-option + .choice-option {
    padding-left: 0.65rem;
    border-left: 1px solid var(--line);
}

.mail-page-size-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-option strong,
.choice-option span span {
    display: block;
}

.choice-option span span {
    color: var(--muted);
}

.field-validation,
.validation-summary {
    display: block;
    margin-top: 0.35rem;
    font-weight: 700;
}

html.palette-color .field-validation,
html.palette-color .validation-summary {
    color: var(--danger);
}

.validation-summary:not(:empty),
.notice-error {
    border-width: 3px;
}

.notice {
    margin: 1rem 0;
    padding: 1rem;
    border: 2px solid var(--line);
}

.notice-warning {
    border-width: 3px;
}

.warning-label {
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.danger-action {
    border-width: 3px;
    border-color: var(--danger);
    color: var(--danger);
    background: var(--paper);
    font-weight: 700;
}

.settings-action-grid a.danger-action {
    border-width: 3px;
    border-color: var(--danger);
    color: var(--danger);
}

.loading-view {
    max-width: 40rem;
}

.loading-view .notice {
    border-width: 3px;
}

.loading-status-message {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
}

.loading-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.loading-status-icon .toolbar-svg {
    width: 1.15rem;
    height: 1.15rem;
}

.result-count,
.metadata {
    color: var(--muted);
}

.news-page {
    display: grid;
    gap: 1.1rem;
}

.news-article-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--view-toolbar-button-gap);
}

.news-article-actions .button-link,
.news-article-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: auto;
    min-width: 7rem;
    padding: 0.55rem 0.8rem;
}

.news-article-actions .toolbar-svg {
    width: 1.15rem;
    height: 1.15rem;
}

.news-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 0.5rem;
}

.news-title-row h2,
.news-title-row h3 {
    margin-bottom: 0;
}

.news-title-actions {
    flex-wrap: nowrap;
    justify-content: end;
    gap: 0.35rem;
}

.news-title-actions form {
    margin: 0;
}

.news-title-actions .news-icon-button {
    width: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    padding: 0.25rem;
    border: 2px solid var(--line);
}

.news-title-actions .news-icon-button .toolbar-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.news-hero,
.news-list-item,
.news-source-item {
    padding: 1rem;
    border: 2px solid var(--line);
    background: var(--paper);
}

.news-hero {
    border-width: 3px;
}

.news-list-anchor {
    scroll-margin-top: 9rem;
}

.news-hero h2,
.news-list-item h2,
.news-list-item h3,
.news-source-item h3 {
    margin-bottom: 0.5rem;
}

.news-title-row h2,
.news-title-row h3 {
    margin-bottom: 0;
}

.news-list,
.news-source-list,
.news-topic-menu {
    padding-left: 0;
    list-style: none;
}

.news-list,
.news-source-list {
    display: grid;
    gap: 1rem;
}

.news-topic-menu {
    border-top: 2px solid var(--line);
}

.news-topic-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6.6rem;
    gap: var(--view-toolbar-button-gap);
    align-items: center;
    border-bottom: 2px solid var(--line);
}

.news-topic-row > a:first-child {
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    min-height: 4rem;
    padding: 0.85rem 0;
    color: var(--ink);
    text-decoration: none;
}

.news-topic-source-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 6.2rem;
    min-width: 6.2rem;
    min-height: 3.1rem;
    padding: 0 0.35rem;
    border: 2px solid var(--line);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.news-topic-source-action .toolbar-svg {
    width: 1.4rem;
    height: 1.4rem;
}

.news-topic-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
}

.news-topic-icon .toolbar-svg {
    width: 1.75rem;
    height: 1.75rem;
}

.news-topic-text {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.news-topic-text span {
    color: var(--muted);
}

.news-topic-source-list {
    display: grid;
    gap: 0;
    padding-left: 0;
    border-top: 2px solid var(--line);
    list-style: none;
}

.news-topic-source-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    min-height: 3.75rem;
    padding: 0.45rem 0;
    border-bottom: 2px solid var(--line);
}

.news-topic-source-check {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
    min-width: 0;
}

.news-topic-source-row input[type="checkbox"] {
    width: 2rem;
    height: 2rem;
}

.news-topic-source-main {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.news-topic-source-main span {
    color: var(--muted);
    font-size: 0.9rem;
}

.news-topic-source-feed-link {
    min-height: 2.8rem;
    padding: 0.4rem 0.6rem;
    border: 2px solid var(--line);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.news-topic-source-failed .news-topic-source-row {
    border-width: 3px;
}

.news-source-error-list {
    display: grid;
    gap: 0.6rem;
    padding-left: 0;
    list-style: none;
}

.news-source-error-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--line);
}

.news-source-error-row > span {
    display: grid;
    gap: 0.1rem;
}

.news-source-error-row .button-link {
    width: auto;
    min-width: 7rem;
    min-height: 2.8rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

.news-list-pager {
    display: flex;
    flex-wrap: wrap;
    gap: var(--view-toolbar-button-gap);
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--line);
}

.news-list-pager span {
    font-weight: 700;
}

.news-card-image,
.news-reader-image {
    display: block;
    width: 100%;
    border: 2px solid var(--line);
    background: var(--soft);
    object-fit: cover;
}

.news-card-image {
    max-height: 14rem;
    margin-bottom: 0.75rem;
}

.news-reader-image {
    max-height: 14rem;
}

.news-reader-image-frame {
    display: grid;
    gap: 0.6rem;
    margin: 0;
}

.news-reader-image-link {
    display: block;
    color: var(--ink);
    text-decoration: none;
}

.news-reader-image-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: auto;
    min-width: 10rem;
}

.news-reader-image-preview .toolbar-svg {
    width: 1.15rem;
    height: 1.15rem;
}

.news-saved-label {
    font-weight: 700;
}

.news-reader {
    max-width: 42rem;
    padding-bottom: 7.2rem;
}

.news-reader-sheet {
    display: grid;
    gap: 1rem;
}

.news-reader-header {
    border-bottom: 2px solid var(--line);
}

.news-reader-header h2 {
    margin-bottom: 0.45rem;
    font-size: 1.65rem;
}

.news-reader-title-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 2.8rem;
    margin-bottom: 0.55rem;
    padding: 0.25rem 0.6rem;
    border: 2px solid var(--line);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.news-reader-note,
.news-reader-fallback {
    padding: 0.75rem;
    border: 2px solid var(--line);
}

.news-reader-note {
    font-weight: 700;
}

.news-reader-fallback h2 {
    margin-bottom: 0.35rem;
    font-size: 1.25rem;
}

.news-reader-fallback p {
    margin-bottom: 0.75rem;
}

.news-reader-fallback-actions {
    display: grid;
    gap: var(--view-toolbar-button-gap);
}

.news-reader-body {
    min-height: 20rem;
}

.news-reader-body p {
    max-width: 34rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.library-list {
    padding-left: 0;
    list-style: none;
}

.library-item {
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.library-list li:last-child .library-item {
    border-bottom: 1px solid var(--line);
}

.launcher-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.6rem;
    padding-left: 0;
    list-style: none;
}

.launcher-grid > li {
    display: flex;
}

.launcher-grid[hidden],
.launcher-page-button[hidden],
.launcher-page-status[hidden] {
    display: none !important;
}

.launcher-pager {
    position: fixed;
    right: 0.85rem;
    bottom: 5.35rem;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: calc(100vw - 1.7rem);
    padding: 0.28rem;
    border: 2px solid var(--line);
    background: var(--paper);
}

.launcher-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    min-width: 2.8rem;
    min-height: 2.8rem;
    padding: 0.25rem;
    border: 2px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    text-decoration: none;
}

.launcher-page-button .toolbar-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.launcher-page-dots {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0 0.3rem;
    list-style: none;
}

.launcher-page-dots > li {
    padding: 0 0.18rem;
}

.launcher-page-dot {
    display: block;
    width: 0.62rem;
    height: 0.62rem;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--paper);
}

.launcher-page-dot.is-current {
    background: var(--ink);
}

.news-reader-page-control {
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100vw;
    max-width: none;
    padding: 0.35rem 1.35rem 0.85rem 0.75rem;
    border-width: 2px 0 0;
    box-sizing: border-box;
}

.news-reader-page-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.news-reader-page-table td {
    padding: 0;
    vertical-align: middle;
}

.news-reader-page-table__previous {
    width: 4.2rem;
    text-align: left;
}

.news-reader-page-table__dots {
    text-align: center;
}

.news-reader-page-table__next {
    width: 4.2rem;
    text-align: right;
}

.news-reader-page-button {
    width: 3rem;
    min-width: 3rem;
    min-height: 3rem;
}

.news-reader-page-dots {
    display: inline-table;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0.42rem 0;
}

.news-reader-page-dots td {
    padding: 0;
}

.photo-slideshow-page-shell {
    padding: 4.65rem 0 0;
}

.photo-slideshow-viewer {
    min-height: calc(100vh - 4.6rem);
    padding: 0.65rem 0.75rem 5.4rem;
    box-sizing: border-box;
}

.photo-slideshow-frame {
    margin: 0;
    text-align: center;
}

.photo-slideshow-frame img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 10.5rem);
    margin: 0 auto;
    border: 2px solid var(--line);
    object-fit: contain;
    background: var(--paper);
}

.photo-slideshow-frame figcaption {
    margin-top: 0.35rem;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
    font-weight: 700;
}

.photo-slideshow-page-shell--full-screen {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.photo-slideshow-viewer--full-screen {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
}

.photo-slideshow-full-screen-exit {
    display: table;
    width: 100%;
    height: 100vh;
    table-layout: fixed;
    color: var(--ink);
    background: var(--paper);
    text-decoration: none;
}

.photo-slideshow-full-screen-stage {
    display: table-cell;
    width: 100%;
    height: 100vh;
    text-align: center;
    vertical-align: middle;
}

.photo-slideshow-full-screen-exit img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100vh;
    margin: 0 auto;
    border: 0;
    vertical-align: middle;
    background: var(--paper);
}

.photo-slideshow-page-status {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 0 0.55rem !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
    font-weight: 700;
}

.photo-slideshow-page-dots + .photo-slideshow-page-status {
    margin-left: 0.7rem !important;
}

.photo-slideshow-interval-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
    body.toolbar-phone-layout .photo-slideshow-page-shell {
        padding-top: 6.85rem;
    }

    body.toolbar-phone-layout .photo-slideshow-page-shell--full-screen {
        padding-top: 0;
    }

    .photo-slideshow-frame img {
        max-height: calc(100vh - 12.7rem);
    }
}

@media (min-width: 900px) {
    .photo-slideshow-frame img {
        max-height: calc(100vh - 10rem);
    }

    .photo-slideshow-interval-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Maps */
.maps-search-page,
.maps-saved-page,
.maps-save-page,
.maps-edit-page,
.maps-remove-page {
    max-width: 52rem;
    margin-right: auto;
    margin-left: auto;
}

.page-shell.maps-page-shell {
    width: 100%;
    max-width: none;
    height: 100vh;
    margin: 0;
    padding: 4.65rem 0 0;
    overflow: hidden;
    box-sizing: border-box;
}

.page-shell--notification.maps-page-shell {
    padding-top: 7.85rem;
}

.page-shell.maps-page-shell--full-screen,
body.toolbar-phone-layout .page-shell.maps-page-shell--full-screen {
    padding: 0;
}

.maps-page {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #000;
    background: #fff;
}

.maps-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--view-toolbar-button-gap);
    align-items: end;
    margin-bottom: 1rem;
}

.maps-search-form label {
    grid-column: 1 / -1;
}

.map-location-summary h2 {
    margin: 0 0 0.15rem;
    font-size: 1rem;
}

.map-location-summary .metadata {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.3;
}

.map-overlay-panel {
    border: 2px solid var(--ink);
    color: var(--ink);
    background: var(--paper);
}

.map-location-summary {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 4;
    max-width: 62%;
    padding: 0.45rem 0.6rem;
}

.map-beta-label {
    margin: 0.25rem 0 0;
    font-size: 0.7rem;
    line-height: 1.3;
}

.map-error-overlay {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 5;
    max-width: 46%;
    padding: 0.45rem;
}

.map-viewport-frame {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    border: 0;
    overflow: hidden;
    background: #fff;
}

.map-viewport {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    margin-top: -640px;
    margin-left: -512px;
    overflow: hidden;
    color: #000;
    background: #fff;
}

.map-viewport--interactive {
    touch-action: none;
}

.map-tile {
    position: absolute;
    width: 256px;
    height: 256px;
    max-width: none;
    margin: 0;
    border: 0;
}

.palette-monochrome .map-tile {
    filter: grayscale(100%) contrast(112%);
}

.map-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 4px solid #fff;
    border-radius: 50%;
    color: #000;
    background: #fff;
    font-size: 1.4rem;
    line-height: 1.45rem;
    text-align: center;
}

.map-attribution {
    position: absolute;
    bottom: 0.45rem;
    left: 0.45rem;
    z-index: 4;
    max-width: calc(100% - 11rem);
    margin: 0;
    padding: 0.25rem 0.4rem;
    font-size: 0.65rem;
    line-height: 1.25;
}

.map-controls-overlay {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    z-index: 5;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.map-control-deck,
.map-direction-pad {
    width: auto;
    margin: 0;
    border: 0;
    border-collapse: separate;
    background: transparent;
}

.map-control-deck {
    border-spacing: 0;
}

.map-direction-pad {
    border-spacing: 0.18rem;
}

.map-control-deck td,
.map-direction-pad td {
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    vertical-align: middle;
}

.map-direction-pad button,
.map-zoom-controls button,
.map-full-screen-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0.65rem;
    border: 2px solid var(--ink);
    border-radius: 50%;
    color: var(--ink);
    background: var(--paper);
}

.map-zoom-controls {
    padding-bottom: 0.35rem !important;
    text-align: right !important;
}

.map-zoom-controls button {
    display: flex;
    margin: 0.28rem 0 0.28rem auto;
}

.map-control-svg {
    display: block;
    width: 1.55rem;
    height: 1.55rem;
}

.map-direction-center {
    display: block;
    width: 52px;
    height: 52px;
    color: var(--ink);
    font-size: 1.15rem;
    line-height: 52px;
    text-align: center;
}

.map-full-screen-back {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 6;
    text-decoration: none;
}

.map-full-screen-back .toolbar-svg {
    width: 1.7rem;
    height: 1.7rem;
}

.map-full-screen-attribution {
    position: absolute;
    bottom: 0.25rem;
    left: 0.35rem;
    z-index: 4;
    margin: 0;
    padding: 0.12rem 0.25rem;
    color: #000;
    background: #fff;
    font-size: 0.58rem;
    line-height: 1.2;
}

.map-full-screen-attribution a {
    color: #000;
}

.maps-primary-actions {
    position: absolute;
    bottom: 2.65rem;
    left: 0.45rem;
    z-index: 4;
    width: min(12rem, calc(100% - 11rem));
    padding: 0.3rem;
}

.maps-primary-actions > * {
    width: 100%;
    min-height: 52px;
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
    line-height: 1.2;
}

@media (max-width: 560px) {
    body.toolbar-phone-layout .page-shell.maps-page-shell {
        padding-top: 6.85rem;
    }

    body.toolbar-phone-layout .page-shell--notification.maps-page-shell {
        padding-top: 10.05rem;
    }

    body.toolbar-phone-layout .page-shell.maps-page-shell--full-screen {
        padding: 0;
    }

    .map-location-summary {
        max-width: 72%;
    }

    .maps-primary-actions {
        bottom: 8rem;
    }
}

.map-save-form {
    max-width: 36rem;
    margin: 0 auto;
}

.map-save-form input[type="text"] {
    width: 100%;
    min-height: 60px;
    font-size: 1.08rem;
}

.map-save-form input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.map-save-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    margin-top: 1rem;
    border: 3px solid var(--ink);
    color: var(--paper);
    background: var(--ink);
    font-weight: 700;
}

.map-save-primary .toolbar-svg {
    width: 1.55rem;
    height: 1.55rem;
    margin-right: 0.45rem;
}

.map-search-results,
.map-saved-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.map-search-results li,
.map-saved-list > li {
    margin-bottom: 0.75rem;
    border: 2px solid var(--line);
    background: var(--paper);
}

.map-search-results a,
.map-saved-location-main {
    display: block;
    padding: 0.85rem;
}

.map-search-results .metadata,
.map-saved-location-main .metadata {
    display: block;
    margin-top: 0.25rem;
}

.map-saved-location-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--view-toolbar-button-gap);
    padding: 0 0.85rem 0.85rem;
}

.map-saved-location-actions form,
.map-saved-location-actions button,
.map-saved-location-actions .button-link {
    width: 100%;
}

.launcher-link {
    display: grid;
    grid-template-rows: 3.1rem auto;
    gap: 0.15rem;
    align-items: center;
    justify-items: center;
    width: 100%;
    height: 100%;
    min-height: 6rem;
    padding: 0.3rem 0.35rem;
    border: 2px solid var(--line);
    box-sizing: border-box;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    min-height: 3.1rem;
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1;
}

.launcher-icon-time {
    width: 100%;
}

.launcher-icon-large {
    width: 5rem;
    min-height: 5rem;
    font-size: 1.8rem;
}

.launcher-name {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.launcher-paper-pet-status {
    display: block;
    margin-top: 0.08rem;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.05;
}

.launcher-icon-paper-pet {
    width: 100%;
}

.launcher-lock-icon {
    display: inline-flex;
    width: 0.95rem;
    min-height: 0.95rem;
}

.launcher-lock-icon .toolbar-svg {
    width: 0.95rem;
    height: 0.95rem;
}

.launcher-link-locked {
    color: var(--locked-ink);
    background: var(--locked-paper);
    border-color: var(--locked-ink);
}

.launcher-link-action {
    border-width: 3px;
}

.launcher-weather-current,
.launcher-calendar-current,
.launcher-clock-current {
    display: grid;
    align-content: center;
    justify-items: center;
    width: 100%;
    min-width: 0;
    min-height: 3.1rem;
    line-height: 1.08;
    text-align: center;
}

.launcher-weather-current {
    gap: 0.15rem;
}

.launcher-calendar-current {
    gap: 0;
}

.launcher-clock-current {
    gap: 0;
}

.launcher-clock-kobo {
    display: none;
}

.launcher-clock-digital {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-width: 4.3rem;
    padding: 0;
    line-height: 1;
}

.lcd-digit {
    position: relative;
    display: inline-block;
    width: 0.72rem;
    height: 1.42rem;
}

.lcd-digit .segment {
    position: absolute;
    display: block;
    background: transparent;
}

.lcd-digit .segment-top,
.lcd-digit .segment-middle,
.lcd-digit .segment-bottom {
    left: 0.18rem;
    width: 0.42rem;
    height: 0.14rem;
    transform: skewX(-12deg);
}

.lcd-digit .segment-top {
    top: 0;
}

.lcd-digit .segment-middle {
    top: 0.63rem;
}

.lcd-digit .segment-bottom {
    bottom: 0;
}

.lcd-digit .segment-upper-left,
.lcd-digit .segment-upper-right,
.lcd-digit .segment-lower-left,
.lcd-digit .segment-lower-right {
    width: 0.14rem;
    height: 0.5rem;
    transform: skewY(-12deg);
}

.lcd-digit .segment-upper-left,
.lcd-digit .segment-upper-right {
    top: 0.12rem;
}

.lcd-digit .segment-lower-left,
.lcd-digit .segment-lower-right {
    bottom: 0.12rem;
}

.lcd-digit .segment-upper-left,
.lcd-digit .segment-lower-left {
    left: 0;
}

.lcd-digit .segment-upper-right,
.lcd-digit .segment-lower-right {
    right: 0;
}

.lcd-digit-0 .segment-top,
.lcd-digit-0 .segment-upper-right,
.lcd-digit-0 .segment-lower-right,
.lcd-digit-0 .segment-bottom,
.lcd-digit-0 .segment-lower-left,
.lcd-digit-0 .segment-upper-left,
.lcd-digit-1 .segment-upper-right,
.lcd-digit-1 .segment-lower-right,
.lcd-digit-2 .segment-top,
.lcd-digit-2 .segment-upper-right,
.lcd-digit-2 .segment-middle,
.lcd-digit-2 .segment-lower-left,
.lcd-digit-2 .segment-bottom,
.lcd-digit-3 .segment-top,
.lcd-digit-3 .segment-upper-right,
.lcd-digit-3 .segment-middle,
.lcd-digit-3 .segment-lower-right,
.lcd-digit-3 .segment-bottom,
.lcd-digit-4 .segment-upper-left,
.lcd-digit-4 .segment-upper-right,
.lcd-digit-4 .segment-middle,
.lcd-digit-4 .segment-lower-right,
.lcd-digit-5 .segment-top,
.lcd-digit-5 .segment-upper-left,
.lcd-digit-5 .segment-middle,
.lcd-digit-5 .segment-lower-right,
.lcd-digit-5 .segment-bottom,
.lcd-digit-6 .segment-top,
.lcd-digit-6 .segment-upper-left,
.lcd-digit-6 .segment-middle,
.lcd-digit-6 .segment-lower-left,
.lcd-digit-6 .segment-lower-right,
.lcd-digit-6 .segment-bottom,
.lcd-digit-7 .segment-top,
.lcd-digit-7 .segment-upper-right,
.lcd-digit-7 .segment-lower-right,
.lcd-digit-8 .segment-top,
.lcd-digit-8 .segment-upper-right,
.lcd-digit-8 .segment-lower-right,
.lcd-digit-8 .segment-bottom,
.lcd-digit-8 .segment-lower-left,
.lcd-digit-8 .segment-upper-left,
.lcd-digit-8 .segment-middle,
.lcd-digit-9 .segment-top,
.lcd-digit-9 .segment-upper-right,
.lcd-digit-9 .segment-lower-right,
.lcd-digit-9 .segment-bottom,
.lcd-digit-9 .segment-upper-left,
.lcd-digit-9 .segment-middle {
    background: currentColor;
}

.lcd-colon {
    display: inline-grid;
    gap: 0.32rem;
    align-content: center;
    height: 1.42rem;
    padding: 0 0.02rem;
}

.lcd-colon span {
    display: block;
    width: 0.13rem;
    height: 0.13rem;
    background: currentColor;
}

.world-clock-time-digital {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    width: 7.35rem;
    min-width: 7.35rem;
    padding: 0.32rem 0.42rem;
    color: #111827;
    background: #d8d9d2;
    border: 2px solid currentColor;
    line-height: 1;
}

.world-clock-lcd-digits {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.14rem;
    width: 4.55rem;
}

.world-clock-time-digital.is-night {
    color: var(--clock-night-ink);
    background: var(--clock-night-paper);
    border-color: var(--clock-night-ink);
}

.world-clock-time-digital.is-night .world-clock-lcd-digits {
    color: var(--clock-night-ink);
}

.world-clock-lcd-digits .lcd-digit {
    width: 0.92rem;
    height: 1.82rem;
}

.world-clock-lcd-digits .lcd-digit .segment-top,
.world-clock-lcd-digits .lcd-digit .segment-middle,
.world-clock-lcd-digits .lcd-digit .segment-bottom {
    left: 0.22rem;
    width: 0.55rem;
    height: 0.17rem;
}

.world-clock-lcd-digits .lcd-digit .segment-middle {
    top: 0.82rem;
}

.world-clock-lcd-digits .lcd-digit .segment-upper-left,
.world-clock-lcd-digits .lcd-digit .segment-upper-right,
.world-clock-lcd-digits .lcd-digit .segment-lower-left,
.world-clock-lcd-digits .lcd-digit .segment-lower-right {
    width: 0.17rem;
    height: 0.66rem;
}

.world-clock-lcd-digits .lcd-digit .segment-upper-left,
.world-clock-lcd-digits .lcd-digit .segment-upper-right {
    top: 0.14rem;
}

.world-clock-lcd-digits .lcd-digit .segment-lower-left,
.world-clock-lcd-digits .lcd-digit .segment-lower-right {
    bottom: 0.14rem;
}

.world-clock-lcd-digits .lcd-colon {
    gap: 0.44rem;
    height: 1.82rem;
    padding: 0 0.03rem;
}

.world-clock-lcd-digits .lcd-colon span {
    width: 0.16rem;
    height: 0.16rem;
}

.world-clock-meridiem {
    display: inline-block;
    min-width: 1.05rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    text-align: left;
}

.launcher-clock-face,
.world-clock-face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.launcher-clock-face svg,
.world-clock-face svg {
    width: 3.25rem;
    height: 3.25rem;
    overflow: visible;
}

.world-clock-face svg {
    width: 4.2rem;
    height: 4.2rem;
}

.world-clock-face.is-night {
    color: var(--clock-night-ink);
}

.launcher-clock-face circle,
.world-clock-face circle {
    fill: var(--paper);
    stroke: currentColor;
    stroke-width: 5;
}

.world-clock-face.is-night circle {
    fill: var(--clock-night-paper);
    stroke: currentColor;
}

.world-clock-face.is-night .world-clock-face-outline {
    stroke: var(--ink);
}

.world-clock-hour-mark {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 3;
}

.launcher-clock-face .world-clock-hour-hand,
.launcher-clock-face .world-clock-minute-hand,
.launcher-clock-face .world-clock-face-outline,
.launcher-clock-face .world-clock-hour-mark {
    stroke: var(--ink);
}

.launcher-clock-face .world-clock-center {
    fill: var(--ink);
}

.world-clock-hour-hand,
.world-clock-minute-hand {
    stroke: currentColor;
    stroke-linecap: round;
}

.world-clock-hour-hand {
    stroke-width: 6;
}

.world-clock-minute-hand {
    stroke-width: 4;
}

.world-clock-center {
    fill: currentColor;
    stroke: none;
}

.favorites-page {
    display: grid;
    gap: 1rem;
}

.favorites-first-run {
    display: grid;
    gap: 1rem;
}

.favorites-launcher-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    padding-left: 0;
    list-style: none;
}

.favorite-launcher-tile {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    border: 2px solid var(--line);
    background: var(--paper);
}

.favorite-launcher-link {
    display: grid;
    grid-template-rows: 4.25rem auto;
    gap: 0.45rem;
    align-items: center;
    justify-items: center;
    min-height: 7.25rem;
    padding: 0.65rem 0.45rem;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.favorite-launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    min-height: 4rem;
}

.favorite-launcher-icon .toolbar-svg {
    width: 3.2rem;
    height: 3.2rem;
}

.favorite-site-icon {
    display: block;
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
}

.favorite-launcher-icon .favorite-site-icon {
    width: 3.2rem;
    height: 3.2rem;
}

.favorite-launcher-name {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.favorite-link-list,
.favorite-icon-results {
    display: grid;
    gap: 0.75rem;
    padding-left: 0;
    list-style: none;
}

.favorite-link-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: stretch;
    padding: 0.7rem;
    border: 2px solid var(--line);
}

.favorite-icon-results li {
    display: grid;
    gap: 0.55rem;
    padding: 0.7rem;
    border: 2px solid var(--line);
}

.favorite-list-open,
.favorite-icon-choice {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
}

.favorite-list-open strong,
.favorite-icon-choice strong,
.favorite-list-open span span,
.favorite-icon-choice span span {
    display: block;
    overflow-wrap: anywhere;
}

.favorite-list-icon,
.favorite-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    min-height: 3rem;
    border: 2px solid var(--line);
    color: var(--ink);
}

.favorite-list-icon .toolbar-svg,
.favorite-action-icon .toolbar-svg {
    width: 2rem;
    height: 2rem;
    color: currentColor;
}

.favorite-list-action {
    width: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0.35rem;
    align-self: stretch;
}

.favorite-list-action .toolbar-svg {
    width: 1.75rem;
    height: 1.75rem;
}

.sort-action-placeholder {
    display: block;
    min-width: 3.25rem;
    min-height: 3.25rem;
}

.favorite-list-actions {
    display: grid;
    grid-template-columns: repeat(3, 3.25rem);
    gap: 0.4rem;
    justify-content: end;
    align-items: stretch;
}

.favorite-list-reorder-form {
    margin: 0;
    display: flex;
}

.favorite-action-header {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.favorite-action-header h2,
.favorite-action-header p {
    margin: 0;
    overflow-wrap: anywhere;
}

.favorites-action-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.favorites-action-menu a {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
    min-height: 3.8rem;
    padding: 0.55rem;
}

.favorites-action-menu .toolbar-svg {
    width: 1.6rem;
    height: 1.6rem;
}

.favorites-action-menu strong {
    overflow-wrap: anywhere;
}

.favorite-delete-form {
    display: grid;
    gap: 0.7rem;
}

.favorite-delete-form .button-link {
    width: 100%;
}

.favorite-folder-node {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem 0 0.75rem 0.75rem;
    border-left: 2px solid var(--line);
}

.favorite-folder-node h3 {
    margin: 0;
}

.favorite-folder-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.favorite-folder-heading h2,
.favorite-folder-heading h3 {
    margin: 0;
}

.favorite-folder-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    text-align: right;
}

.favorite-tree-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    border: 2px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    text-decoration: none;
}

.favorite-tree-action-button .toolbar-svg {
    width: 1.75rem;
    height: 1.75rem;
}

.favorite-color-field {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.favorite-color-field legend {
    font-weight: 700;
}

.favorite-color-option {
    display: block;
    min-height: 3.25rem;
}

.favorite-color-option input {
    min-height: auto;
}

.favorite-color-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.25rem;
    border: 2px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
    line-height: 1;
}

.favorite-color-option input:checked + .favorite-color-swatch::after {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    min-height: 1.7rem;
    border: 2px solid currentColor;
    background: var(--paper);
    color: var(--ink);
}

.favorite-icon-picker-action {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    justify-items: start;
    width: 100%;
    text-align: left;
}

.favorite-icon-picker-action span span,
.favorite-icon-picker-action strong {
    display: block;
    overflow-wrap: anywhere;
}

.favorite-icon-picker-action .favorite-list-icon {
    background: var(--paper);
    color: var(--ink);
}

.favorite-icon-picker-action .favorite-list-icon .toolbar-svg {
    color: currentColor;
}

.favorites-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.favorites-search-form .form-field {
    margin: 0;
}

.favorites-search-form button {
    width: auto;
    min-width: 6.5rem;
}

html.palette-color .favorite-launcher-tile {
    background: var(--favorite-color);
    color: #fff;
}

html.palette-color .favorite-launcher-link {
    color: #fff;
}

html.palette-color .favorite-list-icon,
html.palette-color .favorite-action-icon,
html.palette-color .favorite-color-swatch {
    background: var(--favorite-color);
    color: #fff;
}

html.palette-color .favorite-icon-results .favorite-list-icon {
    background: var(--paper);
    color: var(--ink);
}

html.palette-color .favorite-icon-picker-action .favorite-list-icon {
    background: var(--paper);
    color: var(--ink);
}

html.palette-color .launcher-icon-favorites {
    color: var(--icon-favorites);
}

.launcher-weather-condition {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.launcher-weather-condition .toolbar-svg {
    width: 2.45rem;
    height: 2.45rem;
}

.launcher-weather-temp {
    font-size: 1.05rem;
    font-weight: 700;
}

.launcher-calendar-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    min-width: 2.7rem;
}

.launcher-calendar-mark .toolbar-svg {
    width: 2.7rem;
    height: 2.7rem;
}

.launcher-calendar-date {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.58rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.app-heading {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) 3.25rem;
    gap: 0.75rem;
    align-items: center;
    min-height: 6.5rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem;
    border: 2px solid var(--line);
    background: var(--soft);
    color: var(--ink);
}

.app-heading h1 {
    margin-bottom: 0;
    text-align: center;
}

.library-grid-button {
    display: grid;
    grid-template-columns: repeat(3, 0.38rem);
    grid-template-rows: repeat(3, 0.38rem);
    gap: 0.18rem;
    align-content: center;
    justify-content: center;
    justify-self: end;
    width: 3.25rem;
    min-height: 3.25rem;
    border: 2px solid currentColor;
    color: inherit;
    background: transparent;
    text-decoration: none;
}

.library-grid-button span[aria-hidden="true"] {
    display: block;
    width: 0.38rem;
    height: 0.38rem;
    background: currentColor;
}

.detail-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.detail-list dt {
    font-weight: 700;
}

.detail-list dd {
    margin: 0 0 0.9rem;
}

.file-detail-sheet {
    display: grid;
    gap: 1rem;
}

.file-detail-header {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
}

.file-detail-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-height: 2.75rem;
    border: 2px solid var(--line);
}

.file-detail-type-icon .toolbar-svg {
    width: 1.65rem;
    height: 1.65rem;
}

.file-detail-title {
    margin-bottom: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.file-detail-actions {
    display: grid;
    gap: 0.6rem;
}

.file-detail-panel {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.file-detail-panel h2 {
    margin-bottom: 0.55rem;
}

.file-detail-notice {
    margin-bottom: 0;
}

.file-detail-list {
    margin-bottom: 0;
}

.pdf-preview {
    display: grid;
    gap: 1rem;
}

.image-preview {
    display: grid;
    gap: 1rem;
}

.image-preview-frame {
    margin: 0;
    padding: 0.5rem;
    border: 2px solid var(--line);
    background: var(--paper);
}

.image-preview-frame img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.pdf-preview-page {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.pdf-preview-page pre {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.simple-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.simple-list li {
    margin: 0 0 18px;
    padding: 16px;
    border: 2px solid var(--border);
    background: var(--paper);
}

.view-title {
    text-align: center;
}

.calendar-view {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 7.8rem);
    min-height: 18rem;
    overflow: hidden;
}

.calendar-day-heading {
    flex: 0 0 auto;
    margin-bottom: 1.2rem;
}

.calendar-nav {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
    gap: 0.7rem;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav p {
    margin-bottom: 0;
    text-align: center;
    font-weight: 700;
}

.calendar-month-view {
    display: grid;
    gap: 0;
}

.calendar-month-view .calendar-day-heading,
.calendar-month-view .calendar-nav {
    margin-bottom: 0.35rem;
}

.calendar-month-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 2px solid var(--line);
    background: var(--paper);
}

.calendar-month-table th,
.calendar-month-table td {
    border: 1px solid var(--line);
}

.calendar-month-table th {
    padding: 0.35rem 0.15rem;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.calendar-month-table td {
    height: 4.8rem;
    padding: 0;
    vertical-align: top;
}

.calendar-month-cell {
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: center;
    align-items: start;
    gap: 0.25rem;
    min-height: 4.8rem;
    padding: 0.35rem 0.1rem;
    color: var(--ink);
    text-decoration: none;
}

.calendar-month-date {
    font-weight: 700;
    line-height: 1.1;
}

.calendar-month-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    border: 2px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--paper);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.calendar-month-outside .calendar-month-cell {
    background: var(--locked-paper);
}

.calendar-month-outside .calendar-month-date {
    color: var(--muted);
}

.calendar-month-today .calendar-month-cell {
    outline: 4px solid var(--line);
    outline-offset: -4px;
}

.calendar-date-form {
    display: grid;
    gap: 0.35rem;
}

.calendar-date-strip {
    margin-bottom: 1rem;
}

.calendar-date-form input[type="date"] {
    min-height: 3.25rem;
    text-align: center;
}

.calendar-date-time-stack {
    display: grid;
    gap: 0.5rem;
}

.calendar-duration-timezone {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    justify-content: space-between;
}

.calendar-form-action,
.calendar-all-day-action {
    width: 100%;
    justify-content: flex-start;
    gap: 0.55rem;
    text-align: left;
}

.calendar-form-action .toolbar-svg,
.calendar-all-day-action .toolbar-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.attendee-list {
    margin-top: 1rem;
}

.attendee-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.25rem;
    gap: 0.35rem;
    align-items: stretch;
}

.attendee-search-results {
    margin-top: 0.65rem;
}

.attendee-search-result {
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    text-align: left;
    background: var(--paper);
}

.attendee-search-result span {
    overflow-wrap: anywhere;
}

.attendee-row-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.25rem;
    gap: 0.65rem;
    align-items: center;
    padding: 0.55rem 0;
    border-top: 1px solid var(--line);
}

.attendee-list li:last-child .attendee-row-form {
    border-bottom: 1px solid var(--line);
}

.attendee-row-form span {
    overflow-wrap: anywhere;
}

.attendee-remove-action {
    width: 3.25rem;
    min-width: 3.25rem;
}

.calendar-event-list-shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--line);
}

.calendar-event-list {
    height: 100%;
    margin: 0;
    padding-bottom: 4.8rem;
    overflow-y: auto;
}

.calendar-event-link {
    display: grid;
    grid-template-columns: minmax(5.4rem, 6.7rem) minmax(0, 1fr) 2rem;
    gap: 0.65rem;
    align-items: start;
    padding: 0.7rem 0;
    color: var(--ink);
    text-decoration: none;
}

.calendar-event-list li:not(.calendar-scroll-anchor) + li .calendar-event-link {
    border-top: 1px solid var(--line);
}

.calendar-event-list li:last-child .calendar-event-link {
    border-bottom: 1px solid var(--line);
}

.calendar-event-list li:nth-last-child(2) .calendar-event-link {
    border-bottom: 1px solid var(--line);
}

.calendar-scroll-anchor {
    display: block;
    height: 1px;
}

.calendar-event-time,
.calendar-event-main {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.calendar-event-time {
    font-size: 0.82rem;
    line-height: 1.2;
}

.calendar-event-time strong,
.calendar-event-main strong {
    color: var(--ink);
}

.calendar-event-time span,
.calendar-event-main span {
    color: var(--muted);
}

.calendar-event-main {
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.calendar-event-main strong {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
}

.calendar-event-meeting-icon {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
}

.calendar-event-meeting-icon .toolbar-svg {
    width: 1rem;
    height: 1rem;
}

.calendar-event-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 1.8rem;
    min-height: 1.8rem;
    color: var(--ink);
}

.calendar-event-status .toolbar-svg {
    width: 1.25rem;
    height: 1.25rem;
}

.calendar-attendee-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem;
}

.calendar-attendee-status {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
}

.calendar-attendee-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    min-width: 1.2rem;
    color: var(--ink);
}

.calendar-attendee-status-icon .toolbar-svg {
    width: 0.95rem;
    height: 0.95rem;
}

.calendar-meeting-source {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.calendar-meeting-source .toolbar-svg,
.calendar-rsvp-check .toolbar-svg {
    width: 0.95rem;
    height: 0.95rem;
}

.calendar-meeting-context div {
    display: grid;
    gap: 0.2rem;
}

.calendar-rsvp-panel {
    margin-top: 1rem;
}

.calendar-rsvp-panel p {
    margin-top: 0;
}

.calendar-rsvp-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
}

.calendar-rsvp-actions form {
    margin: 0;
}

.calendar-rsvp-actions button {
    gap: 0.25rem;
    min-height: 52px;
    padding: 0.45rem 0.35rem;
}

.calendar-scroll-controls {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    z-index: 2;
    display: flex;
    gap: 0.35rem;
}

.calendar-scroll-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0.25rem;
    border: 2px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    text-decoration: none;
}

.calendar-scroll-button .toolbar-svg {
    width: 1.75rem;
    height: 1.75rem;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    border: 2px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1;
    text-decoration: none;
}

.action-row,
.pagination {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.secondary {
    background: var(--soft);
}

.login-confirm-button,
.login-action-row button,
.login-action-row .button-link {
    border-color: var(--line);
}

.login-library-continue-button {
    width: 100%;
    border-color: var(--line);
    background: var(--paper);
}

.button-link-disabled {
    color: var(--muted);
    border-color: #777;
    background: var(--soft);
}

.mock-list {
    padding-left: 0;
    list-style: none;
}

.mock-item {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
}

a.mock-item {
    text-decoration: none;
}

.mock-list li:last-child .mock-item,
.mock-list > .mock-item:last-child {
    border-bottom: 1px solid var(--line);
}

.recent-file-group {
    margin-top: 1.25rem;
}

.recent-file-group-title {
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
}

.recent-file-row {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    min-height: 3.25rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

button.recent-file-row {
    width: 100%;
    font: inherit;
    text-align: left;
    background: var(--paper);
    border-right: 0;
    border-left: 0;
    border-bottom: 0;
    appearance: none;
}

.file-browser-row {
    grid-template-columns: 2rem minmax(0, 1fr);
}

.recent-files-list li:last-child .recent-file-row {
    border-bottom: 1px solid var(--line);
}

.recent-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    color: var(--ink);
}

.recent-file-icon .toolbar-svg {
    width: 1.45rem;
    height: 1.45rem;
}

.recent-file-name {
    overflow: hidden;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.recent-file-date {
    color: var(--muted);
    white-space: nowrap;
}

.reminder-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    border-top: 1px solid var(--line);
}

.reminder-list-row:last-child {
    border-bottom: 1px solid var(--line);
}

.reminder-list-row .mock-item {
    border-top: 0;
}

.reminder-list-row:last-child .mock-item {
    border-bottom: 0;
}

.reminder-list-edit-action,
.reminder-status-action,
.reminder-date-action {
    gap: 0.55rem;
}

.reminder-list-edit-action .toolbar-svg,
.reminder-status-action .toolbar-svg,
.reminder-date-action .toolbar-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.reminder-status-action {
    width: 100%;
    margin-bottom: 1rem;
    justify-content: flex-start;
}

.task-edit-form {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.task-edit-form .form-icon-row {
    margin-bottom: 0;
}

.task-edit-title-row {
    align-items: center;
}

.task-edit-title-row .form-icon {
    min-height: 58px;
}

.task-edit-title-row input {
    min-height: 58px;
}

.task-edit-toggle-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-left: 3.1rem;
}

.task-edit-toggle-row .reminder-status-action {
    min-height: 3.35rem;
    margin-bottom: 0;
    padding: 0.45rem 0.65rem;
}

.task-edit-meta-row {
    display: grid;
    gap: 0.5rem;
}

.task-edit-meta-item {
    align-items: center;
}

.task-edit-meta-item .form-icon,
.task-edit-meta-item .reminder-date-action {
    min-height: 3.25rem;
}

.task-edit-readonly-meta {
    display: grid;
    gap: 0.15rem;
    min-height: 3.25rem;
    align-content: center;
}

.task-edit-notes-row {
    margin-top: 0.25rem;
}

.task-edit-notes-row textarea {
    min-height: 8.5rem;
}

.task-edit-delete-row {
    margin-top: 0.75rem;
}

.task-edit-delete-row .button-link {
    width: 100%;
}

.task-detail-action-form {
    margin-bottom: 0.6rem;
}

.task-detail-action-form .reminder-status-action {
    margin-bottom: 0;
}

.task-detail-action-form-last {
    margin-bottom: 1.1rem;
}

.calendar-all-day-toggle input[type="checkbox"] {
    flex: 0 0 auto;
}

.reminder-date-action {
    min-height: 52px;
    justify-content: flex-start;
}

.task-toolbar {
    display: grid;
    grid-template-columns: minmax(4rem, 1fr) max-content max-content max-content;
    gap: var(--view-toolbar-button-gap);
    align-items: center;
    min-height: 4.25rem;
    padding: 0.55rem 1rem;
    background: var(--paper);
}

.task-toolbar-count {
    display: inline-flex;
    gap: 0.35rem;
    align-items: baseline;
    margin: 0;
    white-space: nowrap;
}

.task-toolbar-count strong {
    font-size: 1.2rem;
}

.task-toolbar-action {
    gap: 0.45rem;
    width: auto;
    justify-self: end;
    white-space: nowrap;
    min-height: 3.15rem;
    padding-right: 0.6rem;
    padding-left: 0.6rem;
}

.task-toolbar-action .toolbar-svg {
    width: 1.25rem;
    height: 1.25rem;
}

.task-list {
    padding-left: 0;
    list-style: none;
}

.task-row {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
    gap: 0.45rem;
    align-items: start;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
}

.task-list li:last-child .task-row {
    border-bottom: 1px solid var(--line);
}

.task-row-selection {
    cursor: pointer;
}

.task-row-action {
    margin-bottom: 0;
}

.task-selection-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
}

.task-selection-checkbox {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    min-height: 2rem;
    margin: 0;
}

.task-icon-button {
    width: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    border-color: transparent;
    padding: 0;
    background: transparent;
}

.task-icon-button .toolbar-svg {
    width: 1.45rem;
    height: 1.45rem;
}

.task-important-button.is-not-important {
    color: var(--muted);
}

.task-important-button.is-important {
    color: var(--task-important-star);
}

.task-row-main {
    display: grid;
    gap: 0.35rem;
    min-height: 3.25rem;
    align-content: center;
    color: var(--ink);
    text-decoration: none;
}

.task-row-main strong {
    overflow-wrap: anywhere;
}

.task-delete-preview-list {
    margin-top: 1rem;
}

.task-delete-preview-row {
    grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
}

.task-due-date {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    color: var(--muted);
}

.task-due-date .toolbar-svg {
    width: 1.15rem;
    height: 1.15rem;
}

.toolbar-labeled-action {
    gap: 0.45rem;
}

.review-field-list {
    display: grid;
    gap: 1rem;
}

.review-title-value {
    display: grid;
    gap: 0.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}

.review-field-list .form-icon-row {
    margin-bottom: 0;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}

.review-field-list .form-icon-row > div {
    display: grid;
    gap: 0.15rem;
}

.date-select-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.time-select-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.calendar-time-fields-disabled label {
    color: var(--muted);
}

.calendar-time-editor {
    padding-top: 0.35rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
}

.calendar-time-editor + .calendar-time-editor {
    margin-top: 1.1rem;
}

.calendar-stepper-grid {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.calendar-date-stepper-grid,
.calendar-clock-stepper-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calendar-stepper {
    display: grid;
    gap: 0.35rem;
    align-content: start;
}

.calendar-stepper-label {
    font-weight: 700;
}

.calendar-stepper-input {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3.25rem;
    border: 1px solid var(--line);
    box-sizing: border-box;
    background: var(--soft);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-align: center;
}

.calendar-stepper-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3.25rem;
    padding: 0.35rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    white-space: nowrap;
}

.calendar-stepper-button .toolbar-svg {
    width: 1.65rem;
    height: 1.65rem;
}

.calendar-stepper-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.calendar-time-fields-disabled select,
.calendar-time-fields-disabled button,
.calendar-time-fields-disabled input,
select:disabled {
    color: var(--muted);
    border-color: var(--muted);
    background: var(--soft);
}

@media (max-width: 560px) {
    .calendar-date-stepper-grid {
        grid-template-columns: 1fr;
    }

    .calendar-clock-stepper-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.contacts-search-form {
    margin-bottom: 1.4rem;
}

.files-search-form {
    margin-bottom: 0.7rem;
}

.files-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.25rem;
    gap: 0.35rem;
    align-items: stretch;
}

.file-type-shortcuts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 0 0 1.5rem;
}

.file-type-shortcuts form {
    margin: 0;
}

.file-type-button {
    width: 100%;
    gap: 0.25rem;
    padding: 0.35rem 0.25rem;
    font-size: 0.9rem;
    line-height: 1.15;
}

.file-type-button .toolbar-svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

.contacts-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.25rem;
    gap: 0.35rem;
    align-items: stretch;
}

.contacts-search-row--with-clear {
    grid-template-columns: minmax(0, 1fr) 3.25rem 3.25rem;
}

.contacts-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    min-height: 52px;
    padding: 0.35rem;
    border: 2px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    text-decoration: none;
}

.contacts-icon-button .toolbar-svg {
    width: 1.3rem;
    height: 1.3rem;
}

.contacts-letter-anchor {
    padding-top: 0.35rem;
}

.contacts-letter-anchor h3 {
    margin: 0;
    padding: 0.45rem 0 0.25rem;
    border-top: 2px solid var(--line);
    font-size: 1.05rem;
}

.contacts-load-more {
    width: 100%;
    margin-top: 1rem;
}

.mail-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.mail-search-form {
    margin-bottom: 1.5rem;
}

.mail-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.85rem 2.85rem;
    gap: 0.35rem;
    align-items: stretch;
}

.mail-search-row input {
    width: 100%;
    min-width: 0;
}

.mail-search-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 52px;
    padding: 0.25rem;
    border: 2px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    text-decoration: none;
}

.mail-search-icon-button .toolbar-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.mail-list-toolbar {
    display: flex;
    align-items: stretch;
    gap: var(--view-toolbar-button-gap);
    min-height: 3.35rem;
    padding: 0.35rem 0.85rem;
    overflow: hidden;
}

.mail-selection-toolbar {
    display: grid;
    grid-template-columns: minmax(5.4rem, 1fr) repeat(7, minmax(2.6rem, 2.8rem));
    gap: var(--view-toolbar-button-gap);
    padding-right: 1.25rem;
}

.mail-selection-toolbar.task-selection-toolbar {
    grid-template-columns: minmax(5.4rem, 1fr) minmax(2.6rem, 2.8rem) repeat(2, minmax(5.8rem, 1fr));
}

.mail-list-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin-right: auto;
    min-width: 0;
    padding: 0 0.25rem 0 0.15rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.mail-selection-toolbar .mail-list-count {
    margin-right: 0;
}

.mail-list-count-compact {
    display: none;
}

.mail-selection-count {
    font-size: 0.78rem;
}

.mail-list-tool-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    min-height: 2.65rem;
    padding: 0.2rem 0.35rem;
    border: 2px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
}

.mail-selection-icon-button {
    min-width: 2.6rem;
    padding-inline: 0.2rem;
}

.mail-list-tool-button .toolbar-svg {
    width: 1.05rem;
    height: 1.05rem;
}

.mail-list-tool-button--active {
    color: var(--paper);
    background: var(--ink);
}

.mail-list-tool-label {
    min-width: 0;
    overflow: hidden;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-selection-label-button {
    justify-content: center;
    gap: 0.35rem;
    padding-inline: 0.45rem;
    font-size: 0.74rem;
}

@media (max-width: 760px) {
    .mail-list-toolbar {
        padding-right: 0.6rem;
        padding-left: 0.6rem;
    }

    .mail-list-count {
        font-size: 0.82rem;
    }

    .mail-list-count-full {
        display: none;
    }

    .mail-list-count-compact {
        display: inline;
    }

    .mail-list-tool-button {
        padding-right: 0.25rem;
        padding-left: 0.25rem;
    }
}

.mail-message-list {
    padding-left: 0;
    padding-bottom: 4.8rem;
    list-style: none;
}

.mail-message-row {
    border-top: 1px solid var(--line);
}

.mail-message-row:last-child {
    border-bottom: 1px solid var(--line);
}

.mail-message-group {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr);
    gap: 0.35rem;
    align-items: center;
    padding: 0.65rem 0 0.25rem;
    border-top: 2px solid var(--line);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.mail-message-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mail-message-group-icon .toolbar-svg {
    width: 0.9rem;
    height: 0.9rem;
}

.mail-message-link {
    display: grid;
    grid-template-columns: 1.45rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: start;
    padding: 0.7rem 0;
    color: var(--ink);
    text-decoration: none;
}

.mail-message-select-label {
    cursor: pointer;
}

.mail-message-status,
.mail-message-selection {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    min-height: 1.2rem;
    margin-top: 0.05rem;
}

.mail-message-status {
    color: var(--ink);
}

.mail-message-status .toolbar-svg,
.mail-message-selection .toolbar-svg {
    width: 1rem;
    height: 1rem;
}

.mail-message-selection {
    visibility: hidden;
}

.mail-message-selection--active {
    visibility: visible;
}

.mail-message-selection-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    min-height: 1.45rem;
}

.mail-message-checkbox {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    accent-color: var(--ink);
}

.mail-message-main {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.mail-read-status-line {
    display: inline-grid;
    grid-template-columns: 1.2rem auto;
    gap: 0.25rem;
    align-items: center;
    width: max-content;
    max-width: 100%;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.mail-list-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: baseline;
    min-width: 0;
}

.mail-list-sender,
.mail-list-date,
.mail-list-subject-text,
.mail-preview {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
}

.mail-list-subject-line {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    max-width: 100%;
}

.mail-list-subject-line--flagged {
    display: flex;
}

.mail-list-calendar-icon,
.mail-list-flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 0.95rem;
    min-height: 0.95rem;
    color: var(--ink);
}

.mail-list-calendar-icon .toolbar-svg,
.mail-list-flag-icon .toolbar-svg {
    width: 0.85rem;
    height: 0.85rem;
}

.mail-list-sender {
    color: var(--ink);
    font-weight: 700;
}

.mail-list-date,
.mail-preview {
    color: var(--muted);
}

.mail-list-date {
    justify-self: end;
    max-width: 8.5rem;
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: right;
}

.mail-list-subject-text {
    font-size: 1rem;
    line-height: 1.15;
}

.mail-preview {
    font-size: 0.88rem;
    line-height: 1.25;
}

.mail-scroll-controls {
    position: fixed;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 7;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.mail-scroll-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 2.8rem;
    min-height: 2.8rem;
    padding: 0.25rem 0.45rem;
    border: 2px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.mail-scroll-button .toolbar-svg {
    width: 1.15rem;
    height: 1.15rem;
}

.mail-more-action {
    min-width: 7.5rem;
    padding-inline: 0.7rem;
}

.mail-scroll-enhanced:not(.mail-list-at-bottom) .mail-more-action {
    display: none;
}

.mail-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    min-height: 1.15rem;
    color: currentColor;
}

.mail-status-icon .toolbar-svg {
    width: 1.05rem;
    height: 1.05rem;
}

.mail-read-status {
    display: inline-grid;
    grid-template-columns: 1.35rem auto;
    gap: 0.35rem;
    align-items: center;
}

.mail-flag-status {
    display: inline-grid;
    grid-template-columns: 1.35rem auto;
    gap: 0.35rem;
    align-items: center;
    color: var(--ink);
    font-weight: 700;
}

.mail-detail-status-form {
    margin: 0;
}

.mail-read-status-button {
    min-height: 2.75rem;
    padding: 0.25rem 0.45rem;
    border: 2px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.mail-read-status .mail-status-icon {
    margin-top: 0;
}

.mail-selection-panel {
    display: grid;
    justify-items: stretch;
    gap: 0.8rem;
    max-width: 40rem;
    margin: 0.4rem 0 0;
    text-align: left;
}

.mail-selection-panel h2 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.2;
}

.mail-selection-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
}

.mail-selection-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mail-selection-title-icon .toolbar-svg {
    width: 1.05rem;
    height: 1.05rem;
}

.mail-selection-actions,
.mail-folder-choice-list {
    display: grid;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.35rem;
}

.mail-folder-choice-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
}

.mail-folder-count {
    color: var(--ink);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.mail-selection-action {
    display: flex;
    justify-content: flex-start;
    gap: 0.65rem;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 0.65rem 0.7rem;
    border: 2px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}

.mail-selection-action .toolbar-svg {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
}

.mail-selection-action span {
    min-width: 0;
    line-height: 1.2;
}

.mail-selection-action small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 400;
}

.mail-selection-divider {
    display: block;
    width: 100%;
    height: 2px;
    margin: 0.55rem 0;
    background: var(--line);
}

.mail-jump-panel {
    display: grid;
    justify-items: stretch;
    gap: 0.8rem;
    max-width: 40rem;
    margin: 0.4rem 0 0;
    text-align: left;
}

.mail-jump-panel h2 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.2;
}

.mail-jump-options {
    display: grid;
    gap: 0.45rem;
}

.mail-jump-custom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: end;
}

.mail-jump-custom input,
.mail-jump-custom button {
    min-height: 2.65rem;
}

.mail-jump-cancel {
    margin-top: 0.35rem;
}

.mail-message-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.mail-detail-preview {
    display: grid;
    gap: 1.05rem;
}

.mail-detail-subject-card {
    padding: 0;
}

.mail-detail-subject-card h2 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.15;
}

.mail-detail-message-card {
    display: grid;
    gap: 1.05rem;
    padding: 0;
}

.mail-detail-header {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
}

.mail-detail-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    min-width: 2.7rem;
    min-height: 2.7rem;
    border: 2px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--soft);
    font-weight: 700;
}

.mail-detail-addresses {
    min-width: 0;
}

.mail-detail-from,
.mail-detail-to,
.mail-detail-date {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-detail-from {
    font-weight: 700;
}

.mail-detail-to,
.mail-detail-date {
    color: var(--muted);
    font-size: 0.9rem;
}

.mail-detail-date {
    grid-column: 2;
}

.mail-detail-status-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

.mail-detail-status-actions {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.8rem;
    min-width: 0;
}

.mail-detail-message-navigation {
    display: flex;
    flex: 0 0 auto;
    gap: var(--view-toolbar-button-gap);
    margin-left: auto;
    white-space: nowrap;
}

.mail-detail-message-navigation-button {
    min-width: 5.4rem;
    min-height: 2.75rem;
    padding: 0.25rem 0.45rem;
    text-align: center;
}

.mail-detail-message-navigation-button.is-disabled {
    border-style: dashed;
    cursor: default;
}

.mail-meeting-request {
    padding: 0.8rem;
}

.mail-meeting-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.mail-meeting-title-icon,
.mail-meeting-response-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.mail-meeting-title-icon .toolbar-svg {
    width: 1.15rem;
    height: 1.15rem;
}

.mail-meeting-facts {
    display: grid;
    gap: 0.3rem;
    margin: 0 0 0.75rem;
}

.mail-meeting-facts div {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.45rem;
}

.mail-meeting-facts dt,
.mail-meeting-facts dd {
    margin: 0;
}

.mail-meeting-facts dt {
    font-weight: 700;
}

.mail-meeting-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
}

.mail-meeting-actions-single {
    grid-template-columns: 1fr;
}

.mail-meeting-actions form {
    margin: 0;
}

.mail-meeting-actions button {
    gap: 0.25rem;
    min-height: 52px;
    padding: 0.45rem 0.35rem;
}

.mail-meeting-response-check .toolbar-svg {
    width: 0.9rem;
    height: 0.9rem;
}

.mail-message-type {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: right;
}

.mail-message-meta {
    width: 100%;
    margin: 0 0 1.2rem;
    border-collapse: collapse;
}

.mail-message-meta th,
.mail-message-meta td {
    padding: 0.3rem 0.45rem 0.3rem 0;
    border: 1px solid var(--paper);
    text-align: left;
    vertical-align: top;
}

.mail-message-meta th {
    width: 8rem;
    font-weight: 700;
}

.mail-read-form {
    margin-top: 0.6rem;
}

.mail-html-frame {
    display: block;
    width: 100%;
    min-height: 42rem;
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
}

.mail-html-body {
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: anywhere;
}

.mail-html-body p,
.mail-html-body div,
.mail-html-body blockquote,
.mail-html-body ul,
.mail-html-body ol,
.mail-html-body table,
.mail-html-body pre {
    max-width: 100%;
}

.mail-html-body blockquote {
    margin: 1rem 0;
    padding-left: 0.8rem;
    border-left: 2px solid var(--line);
}

.mail-html-body table {
    width: 100%;
    border-collapse: collapse;
}

.mail-html-body th,
.mail-html-body td {
    padding: 0.35rem;
    border: 1px solid var(--line);
    vertical-align: top;
}

.mail-html-body img,
.mail-html-body video,
.mail-html-body iframe {
    max-width: 100%;
}

.mail-html-body img,
.mail-html-body video {
    height: auto;
}

.calculator-shell {
    display: block;
    margin-bottom: 1.5rem;
}

.calculator-form {
    width: 100%;
}

.calculator-display {
    display: block;
    min-height: 4.5rem;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.75rem;
    border: 2px solid var(--line);
    font-size: 2.2rem;
    line-height: 1.2;
    text-align: right;
    overflow-wrap: anywhere;
    background: var(--paper);
}

.calculator-expression {
    display: block;
    min-height: 2.3rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.55rem;
    border: 2px solid var(--line);
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    background: var(--paper);
}

.calculator-display-row,
.calculator-entry-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.4rem;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 0.75rem;
}

.calculator-display-row .calculator-display,
.calculator-entry-row .calculator-expression {
    margin-bottom: 0;
}

.calculator-backspace,
.calculator-erase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    min-height: 52px;
    padding: 0.25rem;
}

.calculator-backspace .fa-backspace,
.calculator-erase .bi-eraser {
    display: block;
    line-height: 0;
}

.calculator-backspace svg,
.calculator-erase svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.calculator-grid-scientific {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.4rem;
}

.calculator-grid button {
    min-width: 0;
    min-height: 68px;
    padding: 0.45rem 0.2rem;
    font-size: 1.55rem;
}

.calculator-grid-scientific button {
    min-height: 52px;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    font-size: 1rem;
}

.calculator-zero {
    grid-column: span 2;
}

.calculator-ledger {
    border: 2px solid var(--line);
    padding: 0.8rem;
}

.calculator-history {
    max-width: 34rem;
}

.calculator-history-heading,
.calculator-history-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.calculator-history-heading {
    margin-bottom: 0.6rem;
}

.calculator-history-heading form {
    margin: 0;
}

.calculator-history-heading button {
    min-height: 52px;
    padding: 0.35rem 0.55rem;
}

.calculator-history-pager {
    margin-top: 0.8rem;
}

.calculator-ledger h2 {
    margin-bottom: 0.6rem;
}

.calculator-ledger ol {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.calculator-ledger button {
    display: grid;
    gap: 0.15rem;
    justify-items: end;
    width: 100%;
    min-height: 64px;
    padding: 0.45rem 0.55rem;
    text-align: right;
}

.calculator-ledger button span,
.calculator-ledger button strong {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.calculator-ledger button span {
    font-size: 0.9rem;
    color: var(--muted);
}

.calculator-ledger button strong {
    font-size: 1.15rem;
}

.weather-layout {
    display: grid;
    gap: 1rem;
}

.toolbar-action-form {
    display: contents;
}

.toolbar-action-form button.toolbar-action {
    appearance: none;
    font: inherit;
    color: inherit;
    background: transparent;
}

.weather-search-view,
.weather-locations-view,
.world-clock-search-view,
.world-clock-edit-view,
.world-clock-view {
    display: grid;
    gap: 1rem;
}

.weather-search-form {
    display: grid;
    gap: 0.35rem;
}

.weather-search-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem;
    align-items: stretch;
}

.timezone-search-control {
    grid-template-columns: minmax(0, 1fr) auto;
}

.weather-search-control button,
.weather-search-icon-button,
.weather-search-add-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0.35rem;
    color: var(--ink);
    background: var(--soft);
    border: 2px solid var(--line);
}

.weather-search-control .toolbar-svg,
.weather-search-add-form .toolbar-svg {
    width: 2rem;
    height: 2rem;
}

.weather-search-results,
.weather-location-list {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.weather-search-result-row,
.weather-location-row {
    display: grid;
    border-top: 2px solid var(--line);
    background: var(--paper);
}

.weather-search-result-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.weather-search-results li:last-child,
.weather-location-list li:last-child {
    border-bottom: 2px solid var(--line);
}

.weather-search-result-card {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    color: var(--ink);
    text-decoration: none;
}

.world-clock-search-result-card {
    gap: 0.1rem;
}

.world-clock-search-result-card strong,
.world-clock-search-result-card span {
    overflow-wrap: anywhere;
}

.weather-search-add-form {
    margin: 0;
    padding-right: 0.5rem;
}

.weather-location-card,
.weather-location-card__link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
    padding: 0.75rem;
    color: var(--ink);
    text-decoration: none;
}

.weather-location-row,
.weather-location-row-default {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
}

.weather-location-row-sort {
    grid-template-columns: minmax(0, 1fr);
}

.weather-location-card__link {
    position: relative;
    border: 0;
}

.weather-location-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    min-height: 3rem;
}

.weather-location-card__icon-stack {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.15rem;
    min-width: 3.25rem;
}

.weather-location-card__icon .toolbar-svg {
    width: 2.5rem;
    height: 2.5rem;
}

.weather-location-card__temp {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.weather-location-card__body {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.weather-location-card__body strong,
.weather-location-card__body span {
    overflow-wrap: anywhere;
}

.weather-location-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid var(--line);
    background: var(--soft);
}

.weather-location-row-default .weather-location-card__body {
    padding-right: 5rem;
}

.weather-location-management-link,
.weather-location-management-help {
    margin: 0 0 1rem;
}

.weather-location-management-link .button-link {
    width: 100%;
}

.weather-location-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(5.5rem, auto));
    gap: 0.35rem;
    align-items: center;
    padding: 0.5rem 0;
}

.weather-location-actions form {
    margin: 0;
}

.weather-location-actions button,
.weather-location-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-width: 5.5rem;
    min-height: 3.25rem;
    padding: 0.35rem;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
}

.weather-location-actions .toolbar-svg {
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 auto;
}

.world-clock-list {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.world-clock-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    border-top: 2px solid var(--line);
    background: var(--paper);
}

.world-clock-edit-list .world-clock-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.world-clock-list li:last-child {
    border-bottom: 2px solid var(--line);
}

.world-clock-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
    padding: 0.75rem;
}

.world-clock-time {
    min-width: 5.5rem;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.world-clock-time-kobo {
    display: none;
}

.world-clock-time-compact {
    min-width: 4.6rem;
    font-size: 1.1rem;
}

.world-clock-city {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.world-clock-city strong,
.world-clock-city span {
    overflow-wrap: anywhere;
}

.app-sorter-section {
    display: grid;
    gap: 1.2rem;
}

.app-sorter-section:not(.is-editing) .app-sorter-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.app-sorter-section:not(.is-editing) .app-sorter-actions,
.app-sorter-section:not(.is-editing) .app-sorter-management-only {
    display: none;
}

.app-sorter-list {
    display: grid;
    gap: 0;
    padding-left: 0;
    margin: 0;
    list-style: none;
    border-top: 2px solid var(--line);
}

.app-sorter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0;
    border-bottom: 2px solid var(--line);
}

.app-sorter-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.65rem 0;
}

.app-sorter-launch {
    color: var(--ink);
    text-decoration: none;
}

.app-sorter-launch:focus,
.app-sorter-launch:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.app-sorter-summary strong,
.app-sorter-summary span {
    display: block;
    min-width: 0;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.app-sorter-summary strong {
    font-size: 0.95rem;
}

.app-sorter-summary .app-access-label {
    display: inline-block;
    width: auto;
    margin-top: 0.18rem;
    padding: 0.08rem 0.35rem;
    border: 1px solid var(--line);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Paper Pet is request-driven and keeps all care actions touch-friendly without JavaScript. */
.paper-pet-page,
.paper-pet-form-page,
.paper-pet-review-page,
.paper-pet-reset-page,
.paper-pet-instructions {
    width: min(100%, 38rem);
    margin-right: auto;
    margin-left: auto;
}

.paper-pet-heading {
    text-align: center;
}

.paper-pet-heading h1,
.paper-pet-heading p {
    margin-bottom: 0.3rem;
}

.paper-pet-hero {
    width: min(62vw, 14rem);
    margin: 0.4rem auto 0.8rem;
}

.paper-pet-portrait {
    display: block;
    width: 100%;
    height: auto;
    color: var(--ink);
}

.paper-pet-portrait--compact {
    width: 3.1rem;
    height: 3.1rem;
    margin: 0 auto;
}

.paper-pet-egg,
.paper-pet-body,
.paper-pet-ear,
.paper-pet-tail,
.paper-pet-tuft {
    fill: var(--paper);
    stroke: var(--ink);
    stroke-width: 5;
    stroke-linejoin: round;
}

.paper-pet-egg-mark,
.paper-pet-eye,
.paper-pet-mouth {
    fill: none;
    stroke: var(--ink);
    stroke-width: 6;
    stroke-linecap: round;
}

circle.paper-pet-eye {
    fill: var(--ink);
    stroke: none;
}

.paper-pet-belly {
    fill: var(--soft);
    stroke: var(--ink);
    stroke-width: 3;
}

.paper-pet-cheek,
.paper-pet-egg-spot {
    fill: var(--ink);
}

.paper-pet-primary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto minmax(5.5rem, auto) minmax(5.5rem, auto);
    gap: 0.55rem;
}

.paper-pet-tile {
    min-width: 0;
    padding: 0.55rem;
    border: 0;
    background: var(--paper);
}

.paper-pet-summary-tile {
    grid-column: 1;
    grid-row: 1 / span 2;
    text-align: center;
}

.paper-pet-summary-tile .paper-pet-heading h1 {
    margin-bottom: 0.1rem;
    font-size: 1.15rem;
    line-height: 1.1;
}

.paper-pet-summary-tile .paper-pet-heading p {
    margin-bottom: 0.15rem;
    font-size: 0.78rem;
    line-height: 1.2;
}

.paper-pet-summary-tile .paper-pet-hero {
    width: min(18vw, 5.2rem);
    margin: 0 auto;
}

.paper-pet-need {
    display: block;
}

.paper-pet-status-tile {
    grid-column: 2;
    grid-row: 1;
}

.paper-pet-status-tile .paper-pet-need + .paper-pet-need {
    margin-top: 0.38rem;
}

.paper-pet-need h2,
.paper-pet-care-tile h2,
.paper-pet-notification-tile h2 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.15;
}

.paper-pet-status-tile .paper-pet-need h2 {
    margin-bottom: 0.18rem;
    font-size: 0.78rem;
}

.paper-pet-meter {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.22rem;
}

.paper-pet-meter-segment {
    display: block;
    min-height: 1rem;
    border: 2px solid var(--line);
    background: var(--paper);
}

.paper-pet-meter-segment.is-filled {
    background: var(--ink);
}

.paper-pet-status-tile .paper-pet-meter-segment {
    min-height: 0.58rem;
}

.paper-pet-notification-tile {
    grid-column: 1;
    grid-row: 3;
}

.paper-pet-notification-tile .app-notification {
    position: static;
    min-height: 0;
    padding: 0.5rem;
    border: 0;
    color: var(--ink);
    background: var(--soft);
}

.paper-pet-notification-tile .metadata {
    margin: 0;
}

.paper-pet-care-tile {
    grid-column: 2;
    grid-row: 2 / span 2;
    min-height: 12.5rem;
}

.paper-pet-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
}

.paper-pet-actions form,
.paper-pet-actions button {
    width: 100%;
    margin: 0;
}

.paper-pet-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 4rem;
    padding: 0.4rem;
    border: 2px solid var(--line);
}

.paper-pet-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.paper-pet-action-icon .toolbar-svg {
    width: 1.35rem;
    height: 1.35rem;
    margin: 0;
}

.paper-pet-care-meta {
    margin: 0.4rem 0 0;
    font-size: 0.72rem;
    line-height: 1.25;
}

.paper-pet-review-page .review-list > div {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
}

.paper-pet-review-page .review-list dt,
.paper-pet-review-page .review-list dd {
    margin: 0;
}

.paper-pet-review-page .review-list dt {
    font-weight: 700;
}

.ai-chat-page,
.ai-chat-history {
    max-width: 52rem;
    margin: 0 auto;
}

html:not(.device-kobo) body:not(.toolbar-phone-layout) .page-shell.ai-chat-history-shell {
    padding-top: 6.75rem;
}

.ai-chat-scroll-controls.page-scroll-controls--icon {
    right: max(0.75rem, calc((100vw - 52rem) / 2 + 0.75rem));
    bottom: var(--ai-chat-scroll-controls-bottom, 5.55rem);
    z-index: 9;
    flex-direction: column;
}

.ai-chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--view-toolbar-button-gap);
    width: min(100% - 1.5rem, 52rem);
    margin: 0 auto;
    padding: 0.7rem 0;
}

.ai-chat-composer textarea {
    min-height: 3.25rem;
    height: 3.25rem;
    max-height: 8rem;
    margin: 0;
    padding: 0.65rem 0.8rem 0.65rem 1rem;
    overflow-y: auto;
    resize: vertical;
}

.ai-chat-composer textarea:focus {
    border-color: transparent;
    outline-offset: -2px;
}

.ai-chat-composer button {
    min-width: 6rem;
}

.ai-chat-quota {
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--line);
    font-size: 0.9em;
    font-weight: 700;
}

.ai-chat-messages {
    padding-bottom: 1rem;
}

.ai-chat-message {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 2px solid var(--line);
    background: var(--soft);
    scroll-margin-top: 6.75rem;
}

.ai-chat-message--assistant {
    margin-right: 1.4rem;
}

.ai-chat-message--user {
    margin-left: 1.4rem;
    background: var(--paper);
}

.ai-chat-message h2 {
    margin: 0 0 0.35rem;
    font-size: 0.92em;
}

.ai-chat-markdown {
    overflow-wrap: anywhere;
}

.ai-chat-markdown > :first-child {
    margin-top: 0;
}

.ai-chat-markdown > :last-child {
    margin-bottom: 0;
}

.ai-chat-markdown p {
    margin: 0;
}

.ai-chat-markdown p + p,
.ai-chat-markdown ul + p,
.ai-chat-markdown ol + p,
.ai-chat-markdown pre + p {
    margin-top: 0.75rem;
}

.ai-chat-markdown h3,
.ai-chat-markdown h4,
.ai-chat-markdown h5 {
    margin: 0.8rem 0 0.3rem;
    line-height: 1.25;
}

.ai-chat-markdown h3 {
    font-size: 1.15em;
}

.ai-chat-markdown h4 {
    font-size: 1.05em;
}

.ai-chat-markdown h5 {
    font-size: 1em;
}

.ai-chat-markdown ul,
.ai-chat-markdown ol {
    margin: 0.35rem 0 0.75rem;
    padding-left: 1.6rem;
}

.ai-chat-markdown li {
    margin: 0.2rem 0;
}

.ai-chat-markdown code {
    padding: 0.08rem 0.2rem;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: "Courier New", monospace;
    font-size: 0.88em;
}

.ai-chat-markdown pre {
    margin: 0.65rem 0;
    padding: 0.65rem;
    border: 1px solid var(--line);
    background: var(--paper);
    overflow-x: auto;
    white-space: pre-wrap;
}

.ai-chat-markdown pre code {
    padding: 0;
    border: 0;
    background: transparent;
}

.ai-chat-message--waiting {
    border-style: dashed;
    font-style: italic;
}

.ai-chat-status:not(:empty) {
    padding: 0.8rem;
    border: 3px solid var(--line);
    font-weight: 700;
}

.ai-chat-bottom-anchor {
    height: 1px;
}

.ai-chat-history-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ai-chat-history-list li {
    margin-bottom: 0.8rem;
}

.ai-chat-history-list a,
.ai-chat-history-list span {
    display: block;
}

.ai-chat-history-list a {
    padding: 0.9rem;
    border: 2px solid var(--line);
}

.ai-chat-history-title,
.ai-chat-history-preview {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-chat-history-preview {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.88em;
}

.app-sorter-summary .settings-action-icon {
    flex: 0 0 auto;
    width: 3rem;
    min-height: 3rem;
}

.app-sorter-inline-status:not(:empty) {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.55rem 0.8rem;
    border-top: 2px solid var(--line);
    font-weight: 700;
}

.weather-settings-location-page .weather-search-results {
    margin-top: 1rem;
}

.weather-settings-location-page .weather-search-result-row {
    grid-template-columns: minmax(0, 1fr);
}

.weather-settings-location-select {
    margin: 0;
}

.weather-settings-location-select .weather-search-result-card {
    width: 100%;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    text-align: left;
}

.app-sorter-summary .settings-action-icon .toolbar-svg {
    width: 2.5rem;
    height: 2.5rem;
}

.app-sorter-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(3.25rem, auto));
    gap: 0.35rem;
    align-items: center;
    justify-self: end;
    padding: 0.5rem 0;
}

.app-sorter-actions form {
    margin: 0;
}

.app-sorter-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0.35rem;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
}

.app-sorter-actions button:disabled {
    visibility: hidden;
}

.app-sorter-actions .toolbar-svg {
    width: 2rem;
    height: 2rem;
}

.app-sorter-hidden .app-sorter-actions {
    grid-template-columns: minmax(0, 1fr);
}

.app-sorter-bottom-action,
.app-sorter-bottom-action .button-link {
    width: 100%;
}

.dashboard-page {
    display: grid;
    gap: 0.45rem;
}

.dashboard-page[class*="dashboard-layout-"] {
    gap: 0;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(12, minmax(0, 1fr));
}

.dashboard-viewport-shell {
    height: 100vh;
    padding-bottom: 0.45rem;
    overflow: hidden;
}

.dashboard-viewport-shell .dashboard-page {
    height: 100%;
    min-height: 0;
}

.page-shell.dashboard-viewport-shell--full-screen,
body.toolbar-phone-layout .page-shell.dashboard-viewport-shell--full-screen {
    width: 100%;
    max-width: none;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.dashboard-page--full-screen {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
}

.dashboard-full-screen-back {
    position: fixed;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0.7rem;
    border: 2px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--paper);
    box-sizing: border-box;
    text-decoration: none;
}

.dashboard-full-screen-back .toolbar-svg {
    width: 1.8rem;
    height: 1.8rem;
}

.dashboard-pane {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 0.45rem 0.65rem;
    overflow: hidden;
    border: 0;
}

.dashboard-pane-separator-left::before,
.dashboard-pane-separator-top::after {
    position: absolute;
    z-index: 1;
    content: "";
    pointer-events: none;
}

.dashboard-pane-separator-left::before {
    top: 0.4rem;
    bottom: 0.4rem;
    left: 0;
    width: 1px;
    background: var(--line);
}

.dashboard-pane-separator-top::after {
    top: 0;
    right: 0.4rem;
    left: 0.4rem;
    height: 1px;
    background: var(--line);
}

.dashboard-pane-width-full.dashboard-pane-separator-top::after {
    right: 0;
    left: 0;
}

.dashboard-pane-separator-bottom-full {
    border-bottom: 1px solid var(--line);
}

.toolbar-actions-compact .toolbar-action.dashboard-refresh-toolbar-action {
    gap: 0.3rem;
    width: auto;
    min-width: 4.5rem;
    padding-right: 0.4rem;
    padding-left: 0.4rem;
}

.dashboard-refresh-toolbar-label {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.dashboard-pane-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-align: center;
}

.dashboard-pane-empty p {
    margin: 0;
}

.dashboard-section {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.45rem;
    align-content: stretch;
}

.dashboard-section-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    border: 0;
    padding-bottom: 0;
}

.dashboard-section-title-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    min-height: 2.5rem;
    color: var(--ink);
    text-decoration: none;
    border: 0;
}

.dashboard-section-title-link span {
    text-decoration: none;
}

.dashboard-pane-width-one-third .dashboard-section-title-content,
.dashboard-pane-width-one-half .dashboard-section-title-content {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-section-title-text {
    min-width: 0;
    font-weight: inherit;
}

.dashboard-section-title-content.has-past-due-indicator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
}

.dashboard-section-title-content.has-past-due-indicator .dashboard-section-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-task-past-due-indicator {
    display: inline-block;
    padding: 0.15rem 0.3rem;
    border: 1px solid var(--line);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.dashboard-section-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    min-height: 2rem;
}

.dashboard-section-title-icon .toolbar-svg {
    width: 1.65rem;
    height: 1.65rem;
}

.dashboard-text-list {
    display: grid;
    gap: 0;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.dashboard-widget-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.dashboard-widget-visual {
    display: grid;
    place-content: center;
    min-width: 0;
    min-height: 0;
    padding: 0.35rem;
    overflow: hidden;
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: ui-monospace, "Courier New", monospace;
    font-size: 0.8rem;
    line-height: 1.05;
    text-align: center;
    text-decoration: none;
    white-space: pre;
}

.dashboard-widget-visual span {
    display: block;
}

.dashboard-section-photo-slideshow {
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    padding: 0;
}

.dashboard-photo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
}

.dashboard-photo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dashboard-pane-width-full .dashboard-widget-detail.has-visual {
    grid-template-columns: minmax(10rem, 0.8fr) minmax(0, 1.2fr);
}

.dashboard-quantity-summary {
    display: grid;
    gap: 0.2rem;
    place-content: center;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0.45rem;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.dashboard-quantity-summary strong {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
}

.dashboard-quantity-summary span {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.dashboard-quantity-summary .dashboard-task-past-due-indicator {
    display: inline-block;
    justify-self: center;
    margin: 0.3rem 0 0;
    overflow-wrap: normal;
}

.dashboard-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    min-height: 2.85rem;
    padding: 0.25rem 0;
    color: var(--ink);
    text-decoration: none;
}

.dashboard-link-icon {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    width: 1.65rem;
    min-height: 1.65rem;
    padding-top: 0.1rem;
    color: var(--ink);
}

.dashboard-link-icon .toolbar-svg {
    width: 1.25rem;
    height: 1.25rem;
}

.dashboard-world-clock-link {
    min-height: 4.75rem;
}

.dashboard-world-clock-link.dashboard-clock-style-circle {
    grid-template-columns: 4.2rem minmax(0, 1fr);
}

.dashboard-world-clock-link.dashboard-clock-style-digital {
    grid-template-columns: 7.8rem minmax(0, 1fr);
}

.dashboard-world-clock-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.dashboard-world-clock-display .world-clock-face svg {
    width: 3.6rem;
    height: 3.6rem;
}

.dashboard-world-clock-summary {
    display: grid;
    gap: 0.4rem;
    place-content: center;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0.35rem;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.dashboard-world-clock-summary strong {
    display: block;
    overflow: hidden;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-current-time-link {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.35rem;
    place-items: center;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0.25rem;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.dashboard-current-time-clock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
}

.dashboard-current-time-digital {
    display: inline-block;
    padding: 0.3rem 0.5rem;
    color: #111827;
    background: #d8d9d2;
    border: 2px solid currentColor;
    font-size: 2.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}

.dashboard-current-time-link.is-night .dashboard-current-time-digital {
    color: var(--clock-night-ink);
    background: var(--clock-night-paper);
}

.dashboard-current-time-link .dashboard-world-clock-display .world-clock-face svg {
    width: 5rem;
    height: 5rem;
}

.dashboard-current-time-date {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.dashboard-pane-width-full .dashboard-current-time-link,
.dashboard-pane-height-one-quarter .dashboard-current-time-link {
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
}

.dashboard-pane-width-full .dashboard-current-time-date {
    font-size: 1.45rem;
}

.dashboard-pane-height-one-quarter .dashboard-current-time-digital {
    padding: 0.2rem 0.35rem;
    font-size: 1.55rem;
}

.dashboard-pane-height-one-quarter .dashboard-current-time-link .dashboard-world-clock-display .world-clock-face svg {
    width: 2.8rem;
    height: 2.8rem;
}

.dashboard-pane-height-one-quarter .dashboard-current-time-date {
    font-size: 0.82rem;
}

.dashboard-pane-height-one-third .dashboard-current-time-digital {
    font-size: 2rem;
}

.dashboard-pane-height-one-third .dashboard-current-time-link .dashboard-world-clock-display .world-clock-face svg {
    width: 3.8rem;
    height: 3.8rem;
}

.dashboard-pane-height-two-thirds .dashboard-current-time-digital,
.dashboard-pane-height-full .dashboard-current-time-digital {
    font-size: 3.4rem;
}

.dashboard-pane-height-two-thirds .dashboard-current-time-link .dashboard-world-clock-display .world-clock-face svg,
.dashboard-pane-height-full .dashboard-current-time-link .dashboard-world-clock-display .world-clock-face svg {
    width: 6.5rem;
    height: 6.5rem;
}

.dashboard-pane-width-one-third .dashboard-current-time-digital {
    font-size: 2.2rem;
}

.dashboard-pane-width-one-third .dashboard-current-time-link .dashboard-world-clock-display .world-clock-face svg {
    width: 5rem;
    height: 5rem;
}

.dashboard-pane-width-one-third.dashboard-pane-height-one-quarter .dashboard-current-time-digital {
    font-size: 1.35rem;
}

.dashboard-pane-width-one-third.dashboard-pane-height-one-quarter .dashboard-current-time-link .dashboard-world-clock-display .world-clock-face svg {
    width: 2.6rem;
    height: 2.6rem;
}

.dashboard-link-body,
.dashboard-link-metadata,
.dashboard-link-text,
.dashboard-link-preview {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
}

.dashboard-settings-page,
.dashboard-designer-page,
.dashboard-layout-picker-page,
.dashboard-widget-picker-page,
.dashboard-picker-page {
    display: grid;
    gap: 1.5rem;
}

.dashboard-selector-table {
    width: 100%;
    margin: 0;
    table-layout: fixed;
    border-collapse: collapse;
    border-bottom: 1px solid var(--line);
}

.dashboard-selector-row {
    border-top: 1px solid var(--line);
}

.dashboard-selector-table td {
    padding: 0;
    vertical-align: middle;
    border: 0;
}

.dashboard-selector-action-column {
    width: 8rem;
}

.dashboard-selector-action-cell {
    padding-left: var(--view-toolbar-button-gap) !important;
}

.dashboard-selector-open-form,
.dashboard-selector-action-form {
    min-width: 0;
    margin: 0;
}

.dashboard-selector-open {
    display: table;
    width: 100%;
    table-layout: fixed;
    padding: 0.75rem 0;
    font: inherit;
    color: var(--ink);
    text-align: left;
    background: var(--paper);
    border: 0;
    appearance: none;
}

.dashboard-selector-open strong,
.dashboard-selector-open span {
    display: block;
    overflow-wrap: anywhere;
}

.dashboard-selector-layout {
    display: table-cell !important;
    width: 4rem;
    padding-right: 0.75rem;
    vertical-align: middle;
}

.dashboard-selector-layout .dashboard-layout-icon {
    display: grid;
    width: 3rem;
    height: 100%;
    min-height: 4.25rem;
    padding: 0.1rem;
    gap: 0.05rem;
    border-width: 1px;
}

.dashboard-selector-layout .dashboard-layout-icon-pane {
    border-width: 1px;
}

.dashboard-selector-copy {
    display: table-cell !important;
    min-width: 0;
    vertical-align: middle;
}

.dashboard-selector-copy strong,
.dashboard-selector-copy .metadata {
    display: block;
}

.dashboard-selector-copy .metadata {
    margin-top: 0.25rem;
}

.dashboard-selector-action {
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
    border-color: var(--line);
}

.dashboard-selector-action.is-current {
    padding: calc(0.55rem - 2px) calc(0.9rem - 2px);
    color: #fff;
    font-weight: 700;
    background: #000;
    border: 4px double var(--line);
}

.dashboard-selector-action .toolbar-svg,
.dashboard-selector-new-action .toolbar-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.dashboard-selector-new-row {
    border-top: 1px solid var(--line);
}

.dashboard-selector-new-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    min-height: 52px;
    padding: 0.75rem;
    text-decoration: none;
}

.dashboard-refresh-option-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.dashboard-refresh-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    min-height: 52px;
    padding: 0.55rem 0;
    border-top: 1px solid var(--line);
}

.dashboard-refresh-option-list li:first-child .dashboard-refresh-option {
    border-top: 0;
}

.dashboard-refresh-option input {
    margin: 0;
}

.dashboard-delete-panel {
    margin-top: 1.5rem;
}

.dashboard-layout-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.dashboard-layout-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.dashboard-layout-picker-form,
.dashboard-widget-option-form {
    margin: 0;
}

.dashboard-layout-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 9rem;
    padding: 0.85rem;
    background: var(--paper);
    border: 2px solid var(--line);
}

.dashboard-layout-icon-button.is-current,
.dashboard-widget-picker-option.is-current {
    border: 4px double var(--line);
}

.dashboard-layout-icon {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(12, minmax(0, 1fr));
    gap: 0.12rem;
    width: 6rem;
    height: 7.5rem;
    padding: 0.2rem;
    background: var(--paper);
    border: 2px solid var(--line);
}

.dashboard-layout-choice .dashboard-layout-icon {
    width: 3rem;
    height: 3.75rem;
}

.dashboard-layout-icon-pane {
    min-width: 0;
    min-height: 0;
    background: var(--soft);
    border: 1px solid var(--line);
}

.dashboard-designer-canvas {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(12, minmax(0, 1fr));
    gap: 0.35rem;
    height: min(62vh, 38rem);
    min-height: 28rem;
    padding: 0.35rem;
    border: 2px solid var(--line);
}

.dashboard-designer-canvas-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    min-height: 0;
    padding: 0.45rem;
    overflow: hidden;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    background: var(--soft);
    border: 2px solid var(--line);
}

.dashboard-designer-canvas-pane strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-designer-pane-icon,
.dashboard-widget-picker-option > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-designer-pane-icon .toolbar-svg,
.dashboard-widget-picker-option .toolbar-svg {
    width: 1.75rem;
    height: 1.75rem;
}

.dashboard-widget-options {
    display: grid;
    gap: 0.65rem;
}

.dashboard-widget-picker-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    min-height: 4rem;
    padding: 0.65rem 0.8rem;
    color: var(--ink);
    text-align: left;
    background: var(--paper);
    border: 2px solid var(--line);
}

.dashboard-widget-empty-option {
    margin-top: 0.5rem;
}

@media (min-width: 900px) {
    .dashboard-layout-picker-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.dashboard-link-text {
    font-weight: 700;
}

.dashboard-task-important-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    color: var(--task-important-star);
    vertical-align: -0.12rem;
}

.dashboard-task-important-indicator .toolbar-svg {
    width: 0.95rem;
    height: 0.95rem;
}

.dashboard-link-metadata,
.dashboard-link-preview {
    color: var(--muted);
}

.dashboard-link-metadata {
    font-size: 0.85rem;
    line-height: 1.2;
}

.dashboard-link-preview {
    font-size: 0.85rem;
    line-height: 1.25;
}

.dashboard-pane-width-one-half .dashboard-link-metadata,
.dashboard-pane-width-one-half .dashboard-link-preview {
    display: none;
}

.dashboard-pane-width-one-half.dashboard-section-world-clock-favorites .dashboard-link-metadata {
    display: block;
}

.dashboard-pane-width-one-half.dashboard-section-world-clock-favorites .dashboard-link-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: baseline;
}

.dashboard-pane-width-one-half.dashboard-section-world-clock-favorites .dashboard-link-text {
    grid-column: 1;
    grid-row: 1;
}

.dashboard-pane-width-one-half.dashboard-section-world-clock-favorites .dashboard-link-metadata {
    grid-column: 2;
    grid-row: 1;
    max-width: 12rem;
}

.dashboard-weather {
    display: block;
    min-width: 0;
    overflow: hidden;
}

.dashboard-weather-row {
    display: grid;
    grid-template-columns: minmax(6.75rem, 0.9fr) minmax(0, 1.9fr);
    gap: 0;
    align-items: stretch;
    min-width: 0;
}

.dashboard-weather-compact,
.dashboard-weather-compact .dashboard-weather-row {
    height: 100%;
}

.dashboard-weather-compact .dashboard-weather-row {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-weather-compact .dashboard-weather-current {
    justify-content: center;
    padding: 0.45rem;
}

.dashboard-weather-compact-days {
    display: grid;
    gap: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.dashboard-weather-compact-days li {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
    padding: 0.4rem 0.2rem;
    text-align: center;
    border-top: 1px solid var(--line);
}

.dashboard-weather-compact-days strong,
.dashboard-weather-compact-days span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-weather-current {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
    min-height: 3.25rem;
    padding: 0.45rem 0.4rem 0.45rem 0;
    color: var(--ink);
    text-decoration: none;
}

.dashboard-weather-current-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    min-height: 2.35rem;
}

.dashboard-weather-current-icon .toolbar-svg {
    width: 2rem;
    height: 2rem;
}

.dashboard-weather-current-body {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
}

.dashboard-weather-current-body strong,
.dashboard-weather-current-body span {
    display: block;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.dashboard-weather-days {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.dashboard-weather-days td {
    padding: 0.35rem 0.2rem;
    text-align: center;
    vertical-align: middle;
}

.dashboard-weather-days td > span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.18;
    font-size: 0.78rem;
}

.dashboard-weather-day-date {
    font-weight: 700;
}

.dashboard-weather-days .weather-forecast-icon {
    width: 100%;
    min-height: 1.65rem;
}

.dashboard-weather-days .weather-forecast-icon .toolbar-svg {
    width: 1.55rem;
    height: 1.55rem;
}

html.palette-color .weather-location-delete-button {
    color: #b91c1c;
}

.weather-current {
    padding: 0;
}

.weather-current-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0;
}

.weather-current-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 12rem);
    gap: 0.8rem;
    align-items: start;
    margin-bottom: 0.75rem;
}

.weather-condition-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    min-height: 4rem;
}

.weather-condition-icon .toolbar-svg {
    width: 3.4rem;
    height: 3.4rem;
}

.weather-temp {
    margin-bottom: 0;
    font-size: 3rem;
    line-height: 1;
}

.weather-current-condition {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.weather-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0;
}

.weather-detail-list div {
    min-width: 0;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
}

.weather-detail-list dt {
    font-weight: 700;
}

.weather-detail-list dd {
    margin: 0.25rem 0 0;
    overflow-wrap: anywhere;
}

.weather-day-chart {
    margin: 0;
    min-width: 0;
    justify-self: end;
    width: 100%;
    max-width: 12rem;
}

.weather-day-chart figcaption {
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.weather-day-chart svg {
    display: block;
    width: 100%;
    min-height: 0;
    max-height: 5rem;
    border: 1px solid var(--line);
}

.weather-chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.2rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

.weather-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.weather-legend-line {
    width: 1.4rem;
    border-top: 3px solid var(--line);
}

.weather-legend-wind {
    border-top-style: dashed;
}

.weather-chart-axis,
.weather-chart-now,
.weather-chart-temp,
.weather-chart-wind {
    fill: none;
    stroke: var(--line);
    stroke-width: 4;
}

.weather-chart-now {
    stroke-width: 3;
}

.weather-chart-wind {
    stroke-dasharray: 8 6;
}

html.palette-color .weather-chart-temp {
    stroke: var(--accent);
}

html.palette-color .weather-legend-temp {
    border-top-color: var(--accent);
}

html.palette-color .weather-chart-wind {
    stroke: var(--accent-alt);
}

html.palette-color .weather-legend-wind {
    border-top-color: var(--accent-alt);
}

.weather-hourly {
    margin-top: 1rem;
}

.weather-hourly h3 {
    margin-bottom: 0.4rem;
}

.weather-hourly-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.82rem;
}

.weather-hourly-kobo {
    display: none;
}

.weather-hourly-table th,
.weather-hourly-table td {
    padding: 0.3rem 0.2rem;
    border-top: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.weather-hourly-table th[scope="row"] {
    width: 4.8rem;
    text-align: left;
}

.weather-row-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.weather-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    min-height: 1.6rem;
}

.weather-row-icon .toolbar-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.weather-row-unit {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.weather-hourly-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    min-height: 2rem;
}

.weather-hourly-icon .toolbar-svg {
    width: 1.75rem;
    height: 1.75rem;
}

.weather-forecast {
    min-width: 0;
}

.weather-forecast h2 {
    margin-bottom: 0.8rem;
}

.weather-forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.weather-forecast-grid .mock-item {
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid var(--line);
}

.weather-forecast-grid li:last-child .mock-item,
.weather-forecast-grid > .mock-item:last-child {
    border-bottom: 1px solid var(--line);
}

.weather-forecast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    min-height: 2.25rem;
}

.weather-forecast-icon .toolbar-svg {
    width: 2rem;
    height: 2rem;
}

html.palette-color .mock-item strong,
html.palette-color .mail-list-subject-text,
html.palette-color .weather-temp {
    color: var(--accent);
}

html.palette-color .calculator-grid .calculator-operator {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

html.palette-color .calculator-grid .calculator-equals {
    background: var(--accent-alt);
    border-color: var(--accent-alt);
}

@media (min-width: 900px) {
    html {
        font-size: 22px;
    }

    html.font-size-medium {
        font-size: 20px;
    }

    html.font-size-small {
        font-size: 18px;
    }

    .weather-location-row-sort {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .page-shell,
    .site-footer {
        width: min(100% - 3rem, 58rem);
        max-width: 58rem;
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }

    .static-page-footer__inner {
        width: min(100% - 3rem, 58rem);
        max-width: 58rem;
    }

    .page-shell {
        padding-top: 6.25rem;
    }

    .page-shell--notification {
        padding-top: 9.7rem;
    }

    .page-shell--docked-toolbar {
        padding-top: 9.8rem;
    }

    .page-shell--notification.page-shell--docked-toolbar {
        padding-top: 13.2rem;
    }

    .page-shell--notification-action.page-shell--docked-toolbar {
        padding-top: 13.85rem;
    }

    .kindle-toolbar__inner {
        grid-template-columns: 3.25rem 2.05rem minmax(0, 1fr) auto;
        min-height: 4.95rem;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .toolbar-library-title-left .kindle-toolbar__inner {
        width: min(100% - 3rem, 58rem);
        max-width: 58rem;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .kindle-toolbar__title {
        font-size: 1.45rem;
    }

    .kindle-toolbar__app-icon {
        width: 2.05rem;
        min-width: 2.05rem;
        min-height: 2.05rem;
    }

    .kindle-toolbar__app-icon .toolbar-svg {
        width: 1.7rem;
        height: 1.7rem;
    }

    .app-notification {
        top: 4.95rem;
        min-height: 3.35rem;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .view-docked-toolbar {
        top: 4.95rem;
    }

    .task-toolbar {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .view-docked-toolbar--after-notification {
        top: 8.3rem;
    }

    .view-docked-toolbar--after-notification-action {
        top: 8.95rem;
    }

    .mail-list-toolbar {
        min-height: 3.65rem;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .mail-detail-header {
        grid-template-columns: 3rem minmax(0, 1fr) auto;
    }

    .mail-detail-date {
        grid-column: 3;
        justify-self: end;
        max-width: 14rem;
    }

    .kindle-toolbar .kindle-toolbar__app-icon.launcher-icon {
        width: 2.05rem;
        min-width: 2.05rem;
        min-height: 2.05rem;
    }

    .kindle-toolbar .kindle-toolbar__app-icon.launcher-icon .toolbar-svg {
        width: 1.6rem;
        height: 1.6rem;
    }

    .search-form {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .search-form label {
        grid-column: 1 / -1;
    }

    .search-form button {
        width: auto;
        min-width: 8rem;
    }

    .action-row,
    .pagination {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .chord-button-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .inline-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .license-meta-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .launcher-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .launcher-link {
        min-height: 6.2rem;
    }

    .favorites-launcher-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .favorite-launcher-tile {
        min-height: 8rem;
    }

    .favorites-search-form {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .favorites-search-form .form-field {
        margin: 0;
    }

    .launcher-name {
        font-size: 1.05rem;
    }

    button {
        width: auto;
    }

    .detail-list {
        grid-template-columns: 12rem minmax(0, 1fr);
        column-gap: 1.2rem;
    }

    .detail-list dd {
        margin-bottom: 0.65rem;
    }

    .weather-current-top {
        grid-template-columns: minmax(0, 20rem) minmax(11rem, 14rem);
        gap: 1.2rem;
    }

    .weather-forecast-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.page-shell--board-game { width: min(100% - 1rem, 34rem); padding: 5.15rem 0 0; }
.board-game-player-bar { display:grid; grid-template-columns:1fr 1fr; gap:var(--view-toolbar-button-gap); max-width:32rem; margin:0 auto .5rem; }
.board-game-player { display:flex; align-items:center; justify-content:space-between; min-height:3.25rem; padding:.3rem .45rem; border:2px solid var(--line); }
.board-game-player--right { flex-direction:row-reverse; text-align:right; }
.board-game-player.is-turn { border-width:3px; }
.board-game-result { max-width:32rem; margin:.25rem auto; text-align:center; }
.board-game-board { width:100%; max-width:32rem; margin:0 auto; table-layout:fixed; border:0; border-spacing:0; border-collapse:separate; }
.board-game-board td { width:12.5%; padding:0; border-left:2px solid var(--line); border-bottom:2px solid var(--line); }
.board-game-board tr:first-child td { border-top:2px solid var(--line); }
.board-game-board td:last-child { border-right:2px solid var(--line); }
.board-game-square { position:relative; display:flex; align-items:center; justify-content:center; min-width:3.25rem; min-height:3.25rem; padding:.1rem; border:0; color:var(--ink); background:var(--paper); }
.board-game-board td.is-dark .board-game-square { background:var(--soft); }
.board-game-square.is-selected { outline:4px double var(--ink); outline-offset:-5px; }
.board-game-square.is-legal { text-decoration:underline; }
.board-game-form.is-enhanced .board-game-legal-marker,
[data-board-game-form="true"].is-enhanced .board-game-legal-marker { display:none; }
.board-game-square.is-js-legal::after { position:absolute; right:.15rem; bottom:.05rem; content:"+"; font-weight:700; font-size:1rem; text-decoration:underline; }
.board-game-legal-marker { position:absolute; right:.15rem; bottom:.05rem; font-weight:700; font-size:1rem; }
.chess-piece { font-family:Georgia,"Times New Roman",serif; font-size:2.25rem; line-height:1; }
.chess-piece--top-player { transform:rotate(180deg); }
.checkers-piece { display:flex; align-items:center; justify-content:center; width:2rem; height:2rem; border:3px solid var(--ink); border-radius:50%; font-weight:700; }
.checkers-piece-kobo-symbol { display:none; }
.checkers-piece.is-one { background:var(--ink); color:var(--paper); }
.checkers-piece.is-two { background:var(--paper); color:var(--ink); }

.page-shell--seed-sowing-play {
    width: min(100% - 0.75rem, 28rem);
    height: 100vh;
    min-height: 28rem;
    padding: 5.15rem 0 0;
    overflow: hidden;
}

.page-shell--notification.page-shell--seed-sowing-play {
    padding-top: 8.5rem;
}

.seed-sowing-play {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: calc(100vh - 5.5rem);
    overflow: hidden;
}

.page-shell--notification.page-shell--seed-sowing-play .seed-sowing-play {
    height: calc(100vh - 8.85rem);
}

.seed-sowing-scoreboard {
    width: 100%;
    max-width: 24rem;
    margin-bottom: 0;
}

.seed-sowing-scoreboard .board-game-player {
    position: relative;
    min-width: 0;
    min-height: 3rem;
    font-size: 0.85rem;
    line-height: 1.05;
}

.seed-sowing-turn {
    position: absolute;
    top: -0.55rem;
    right: 0.25rem;
    padding: 0 0.25rem;
    border: 2px solid var(--ink);
    color: var(--paper);
    background: var(--ink);
    font-size: 0.7rem;
    line-height: 1.2;
}

.board-game-player--right .seed-sowing-turn {
    right: auto;
    left: 0.25rem;
}

.seed-sowing-result {
    margin: 0 auto;
    line-height: 1.1;
}

.seed-sowing-form {
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    margin: 0;
}

.seed-sowing-board {
    width: 100%;
    height: 100%;
    max-width: 24rem;
    margin: 0 auto;
    table-layout: fixed;
    border: 3px solid var(--line);
    border-spacing: 0;
    border-collapse: separate;
    background: var(--paper);
}

.seed-sowing-board tbody {
    height: 100%;
}

.seed-sowing-board tbody > tr {
    height: 12.5%;
}

.seed-sowing-board td {
    padding: 0;
    border-right: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
}

.seed-sowing-board tr:last-child td {
    border-bottom: 0;
}

.seed-sowing-board td:last-child {
    border-right: 0;
}

.seed-sowing-pit,
.seed-sowing-store {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    color: var(--ink);
    background: var(--paper);
}

.seed-sowing-pit {
    height: 100%;
    min-height: 3.25rem;
    padding: 0.15rem;
    border: 0;
    line-height: 1;
}

button.seed-sowing-pit {
    background: var(--soft);
    text-decoration: underline;
}

.seed-sowing-pit-number {
    position: absolute;
    top: 0.12rem;
    left: 0.2rem;
    font-size: 0.65rem;
    font-weight: 400;
    line-height: 1;
}

.seed-sowing-seed-display {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0.25rem 0.3rem 0.25rem 0.45rem;
}

.seed-sowing-seeds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.12rem;
    align-content: center;
    justify-content: center;
    min-width: 0;
}

.seed-sowing-seed {
    display: block;
    width: 0.62rem;
    height: 0.62rem;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--ink);
}

.seed-sowing-seed-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    min-height: 1.65rem;
    padding-left: 0.3rem;
    border-left: 2px solid var(--line);
    font-size: 1rem;
    line-height: 1;
}

button.seed-sowing-pit .seed-sowing-seed-count {
    text-decoration: underline;
}

.seed-sowing-store {
    gap: 0.65rem;
    min-height: 3rem;
    padding: 0.2rem;
    font-size: clamp(1.3rem, 5vw, 2rem);
    line-height: 1;
}

.seed-sowing-store-label {
    font-size: 0.65rem;
    line-height: 1.05;
    text-align: center;
}

.page-shell--four-in-a-row-play {
    width: min(100% - 0.75rem, 34rem);
    height: 100vh;
    min-height: 28rem;
    padding: 5.15rem 0 0;
    overflow: hidden;
}

.page-shell--notification.page-shell--four-in-a-row-play {
    padding-top: 8.5rem;
}

.four-row-play {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    height: calc(100vh - 5.5rem);
    overflow: hidden;
}

.four-row-player-bar,
.four-row-board {
    width: 100%;
    max-width: 32rem;
}

.four-row-player-bar {
    margin-bottom: 0;
}

.four-row-player {
    position: relative;
    min-width: 0;
    min-height: 3rem;
    font-size: 0.85rem;
    line-height: 1.05;
}

.four-row-player-name {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.four-row-player-name .four-row-piece {
    width: 1.35rem;
    min-width: 1.35rem;
    height: 1.35rem;
    border-width: 2px;
}

.four-row-turn {
    position: absolute;
    top: -0.55rem;
    right: 0.25rem;
    padding: 0 0.25rem;
    border: 2px solid var(--ink);
    color: var(--paper);
    background: var(--ink);
    font-size: 0.7rem;
    line-height: 1.2;
}

.board-game-player--right .four-row-turn {
    right: auto;
    left: 0.25rem;
}

.four-row-result {
    margin: 0 auto;
    line-height: 1.1;
}

.four-row-form {
    width: 100%;
    margin: 0;
}

.four-row-board {
    margin: 0 auto;
    table-layout: fixed;
    border: 3px solid var(--line);
    border-spacing: 0;
    border-collapse: separate;
    background: var(--paper);
}

.four-row-board th,
.four-row-board td {
    width: calc(100% / 7);
    padding: 0;
    border-right: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    text-align: center;
}

.four-row-board th:last-child,
.four-row-board td:last-child {
    border-right: 0;
}

.four-row-board tbody tr:last-child td {
    border-bottom: 0;
}

.four-row-board-row {
    height: 3.5rem;
}

.four-row-column-button,
.four-row-column-label,
.four-row-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.four-row-column-button,
.four-row-column-label {
    min-height: 2.9rem;
    padding: 0.1rem;
    color: var(--ink);
    background: var(--soft);
    font-weight: 700;
    line-height: 1;
}

.four-row-column-button {
    border: 0;
    text-decoration: underline;
}

.four-row-cell {
    position: relative;
    height: 3.5rem;
    min-height: 3.5rem;
    background: var(--paper);
}

.four-row-cell.is-winning {
    outline: 4px double var(--ink);
    outline-offset: -5px;
}

.four-row-piece {
    display: inline-block;
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    border: 3px solid var(--ink);
    border-radius: 50%;
}

.four-row-piece--one {
    background: var(--ink);
    outline: 2px solid var(--paper);
    outline-offset: -6px;
}

.four-row-piece--two {
    background: var(--paper);
}

.page-shell--dots-and-boxes-play {
    width: min(100% - 0.75rem, 36rem);
    height: 100vh;
    min-height: 28rem;
    padding: 5.15rem 0 0;
    overflow: hidden;
}

.page-shell--notification.page-shell--dots-and-boxes-play {
    padding-top: 8.5rem;
}

.dots-boxes-play {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    height: calc(100vh - 5.5rem);
    overflow: hidden;
}

.dots-boxes-player-bar,
.dots-boxes-board {
    width: 100%;
    max-width: 36rem;
}

.dots-boxes-player-bar {
    margin-bottom: 0;
}

.dots-boxes-player {
    position: relative;
    min-width: 0;
    min-height: 3rem;
    font-size: 0.85rem;
    line-height: 1.05;
}

.dots-boxes-turn {
    position: absolute;
    top: -0.55rem;
    right: 0.25rem;
    padding: 0 0.25rem;
    border: 2px solid var(--ink);
    color: var(--paper);
    background: var(--ink);
    font-size: 0.7rem;
    line-height: 1.2;
}

.board-game-player--right .dots-boxes-turn {
    right: auto;
    left: 0.25rem;
}

.dots-boxes-result {
    margin: 0 auto;
    line-height: 1.1;
}

.dots-boxes-form {
    width: 100%;
    margin: 0;
}

.dots-boxes-board {
    margin: 0 auto;
    table-layout: fixed;
    border: 3px solid var(--line);
    border-spacing: 0;
    border-collapse: separate;
    background: var(--paper);
}

.dots-boxes-board .dots-boxes-dot-column {
    width: 52px;
}

.dots-boxes-board td {
    padding: 0;
    border: 0;
    text-align: center;
}

.dots-boxes-dot-cell,
.dots-boxes-horizontal-cell,
.dots-boxes-vertical-cell,
.dots-boxes-box-cell {
    position: relative;
}

.dots-boxes-dot-cell {
    height: 52px;
}

.dots-boxes-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 0.7rem;
    height: 0.7rem;
    border: 2px solid var(--paper);
    border-radius: 50%;
    background: var(--ink);
    transform: translate(-50%, -50%);
}

.dots-boxes-edge,
.dots-boxes-edge-button,
.dots-boxes-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.dots-boxes-edge,
.dots-boxes-edge-button--horizontal,
.dots-boxes-edge-button--vertical,
.dots-boxes-box {
    height: 52px;
    min-height: 52px;
}

.dots-boxes-edge {
    position: relative;
    color: var(--ink);
}

.dots-boxes-edge::before {
    position: absolute;
    display: block;
    background: currentColor;
    content: "";
}

.dots-boxes-edge--horizontal::before {
    width: calc(100% + 0.7rem);
    height: 0.3rem;
}

.dots-boxes-edge--vertical::before {
    width: 0.3rem;
    height: calc(100% + 0.7rem);
}

html.palette-monochrome .dots-boxes-edge.is-player-two::before {
    background: transparent;
}

html.palette-monochrome .dots-boxes-edge--horizontal.is-player-two::before {
    height: 0.5rem;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

html.palette-monochrome .dots-boxes-edge--vertical.is-player-two::before {
    width: 0.5rem;
    border-right: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.dots-boxes-edge-button {
    position: relative;
    padding: 0.1rem;
    border: 0;
    color: var(--ink);
    background: var(--paper);
    font-weight: 700;
    font-size: 0.7rem;
    line-height: 1;
}

.dots-boxes-edge-button::before {
    position: absolute;
    display: block;
    content: "";
}

.dots-boxes-edge-button--horizontal::before {
    width: calc(100% - 0.5rem);
    border-top: 2px dashed currentColor;
}

.dots-boxes-edge-button--vertical::before {
    height: calc(100% - 0.5rem);
    border-left: 2px dashed currentColor;
}

.dots-boxes-edge-button span {
    position: relative;
    z-index: 1;
    padding: 0.1rem 0.15rem;
    background: var(--paper);
    text-decoration: underline;
}

.dots-boxes-box {
    color: var(--ink);
    background: var(--paper);
    font-size: 1.5rem;
    line-height: 1;
}

.dots-boxes-box.is-player-one {
    color: var(--paper);
    background: var(--ink);
}

.dots-boxes-box.is-player-two {
    outline: 4px double var(--ink);
    outline-offset: -6px;
}

.page-shell--sudoku-play {
    width: min(100% - 0.75rem, 36rem);
    padding-top: 5.15rem;
}

.page-shell--notification.page-shell--sudoku-play {
    padding-top: 8.5rem;
}

.sudoku-play {
    width: 100%;
    max-width: 36rem;
    margin-right: auto;
    margin-left: auto;
}

.sudoku-game-area {
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.sudoku-board-form {
    display: inline-block;
    width: 100%;
    max-width: 31rem;
    margin-right: auto;
    margin-left: auto;
    vertical-align: top;
}

.sudoku-game-area .sudoku-board-form {
    width: 75%;
    margin-right: 1%;
    margin-left: 0;
}

.sudoku-result {
    margin-bottom: 0.35rem;
    text-align: center;
}

.sudoku-number-prompt {
    margin: 0.35rem 0 0;
    text-align: center;
}

.sudoku-number-prompt--waiting {
    display: none;
}

.sudoku-board {
    width: 100%;
    margin: 0 auto;
    border: 3px solid var(--line);
    border-spacing: 0;
    border-collapse: separate;
    table-layout: fixed;
    background: var(--paper);
}

.sudoku-board td {
    width: calc(100% / 9);
    padding: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.sudoku-board td:last-child {
    border-right: 0;
}

.sudoku-board tr:last-child td {
    border-bottom: 0;
}

.sudoku-board td.sudoku-box-right {
    border-right-width: 3px;
}

.sudoku-board td.sudoku-box-bottom {
    border-bottom-width: 3px;
}

.sudoku-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 52px;
    min-height: 52px;
    padding: 0;
    color: var(--ink);
    background: var(--paper);
    font-size: 1.25rem;
    line-height: 1;
}

button.sudoku-cell--editable {
    border: 0;
    background: var(--soft);
    font-weight: 700;
    text-decoration: underline;
}

.sudoku-cell--given {
    font-weight: 700;
}

.sudoku-cell--editable.is-selected {
    outline: 4px double var(--ink);
    outline-offset: -6px;
    background: var(--paper);
}

.sudoku-number-form {
    display: inline-block;
    width: 22%;
    max-width: none;
    margin: 0;
    padding: 0.25rem;
    border: 0;
    background: var(--soft);
    vertical-align: top;
    white-space: normal;
}

.sudoku-number-pad {
    width: 100%;
    margin: 0;
    border-spacing: 0.15rem;
    border-collapse: separate;
    table-layout: fixed;
}

.sudoku-number-pad td {
    width: 50%;
    padding: 0;
}

.sudoku-number-pad button {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 3.25rem;
    padding: 0.5rem 0.2rem;
    border: 2px solid var(--line);
    background: var(--paper);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    text-decoration: underline;
}

.sudoku-clear-button {
    font-size: 0.78rem !important;
    line-height: 1.05;
}

@media (min-width: 900px) {
    .page-shell--seed-sowing-play {
        width: min(100% - 3rem, 58rem);
        padding-top: 5.35rem;
    }

    .seed-sowing-scoreboard,
    .seed-sowing-board {
        max-width: 28rem;
    }

    .page-shell--four-in-a-row-play {
        width: min(100% - 3rem, 58rem);
        padding-top: 5.35rem;
    }

    .four-row-player-bar,
    .four-row-board {
        max-width: 38rem;
    }

    .page-shell--dots-and-boxes-play {
        width: min(100% - 3rem, 58rem);
        padding-top: 5.35rem;
    }

    .dots-boxes-player-bar,
    .dots-boxes-board {
        max-width: 36rem;
    }

    .page-shell--sudoku-play {
        width: min(100% - 3rem, 58rem);
        padding-top: 5.35rem;
    }

    .sudoku-play {
        max-width: 42rem;
    }

    .sudoku-board-form {
        max-width: 34rem;
    }
}

@media (color) {
    html.palette-color .paper-pet-egg {
        fill: #8fd9d0;
        stroke: #315a75;
    }

    html.palette-color .paper-pet-egg-mark {
        stroke: #7a3f8c;
    }

    html.palette-color .paper-pet-egg-spot-one {
        fill: #f29c52;
    }

    html.palette-color .paper-pet-egg-spot-two {
        fill: #8b5fbf;
    }

    html.palette-color .paper-pet-body,
    html.palette-color .paper-pet-tail {
        fill: #9c74d8;
        stroke: #3f2b63;
    }

    html.palette-color .paper-pet-ear,
    html.palette-color .paper-pet-tuft {
        fill: #f29c52;
        stroke: #3f2b63;
    }

    html.palette-color .paper-pet-belly {
        fill: #f4dc72;
        stroke: #3f2b63;
    }

    html.palette-color .paper-pet-eye,
    html.palette-color .paper-pet-mouth {
        stroke: #241a32;
    }

    html.palette-color circle.paper-pet-eye {
        fill: #241a32;
    }

    html.palette-color .paper-pet-cheek {
        fill: #ef7f9b;
    }

    html.palette-color .paper-pet-need--fullness .paper-pet-meter-segment.is-filled {
        background: #e07b39;
    }

    html.palette-color .paper-pet-need--happiness .paper-pet-meter-segment.is-filled {
        background: #a85fc4;
    }

    html.palette-color .paper-pet-need--cleanliness .paper-pet-meter-segment.is-filled {
        background: #3f9e9a;
    }

    html.palette-color .paper-pet-need--energy .paper-pet-meter-segment.is-filled {
        background: #5578c9;
    }

    html.palette-color .toolbar-app-paper-pet .kindle-toolbar__app-icon,
    html.palette-color .launcher-icon-paper-pet {
        color: #7a3f8c;
    }

    html.palette-color.theme-light .ai-chat-message--assistant {
        background: #e8f4ff;
        border-color: #3157a4;
    }

    html.palette-color.theme-light .ai-chat-message--assistant > h2 {
        color: #234788;
    }

    html.palette-color.theme-light .ai-chat-message--user {
        background: #f5edff;
        border-color: #6d28d9;
    }

    html.palette-color.theme-light .ai-chat-message--user > h2 {
        color: #5b21b6;
    }

    html.palette-color.theme-dark .ai-chat-message--assistant {
        background: #102a43;
        border-color: #7dd3fc;
    }

    html.palette-color.theme-dark .ai-chat-message--user {
        background: #2e1a47;
        border-color: #d8b4fe;
    }

    html.palette-color .ai-chat-composer button {
        color: #fff;
        background: #3157a4;
        border-color: #172554;
    }

    html.palette-color .ai-chat-history-list > li > a:first-child {
        border-color: #3157a4;
    }

    html.palette-color .launcher-icon-ai-chat {
        color: #3157a4;
    }
    html.palette-color.theme-light {
        --paper: #fffefa;
        --line: #101010;
        --muted: #333;
        --soft: #f2f2f2;
        --accent: #0057d9;
        --accent-alt: #c2410c;
        --danger: #b00020;
        --danger-contrast: #fff;
        --brand-header: #111827;
        --brand-header-ink: #f9fafb;
        --brand-header-line: #111827;
        --icon-mail: #0057d9;
        --icon-calendar: #c2410c;
        --icon-reminders: #b00020;
        --icon-contacts: #334155;
        --icon-files: #0f766e;
        --icon-weather: #00798c;
        --icon-calculator: #1f7a1f;
        --icon-dashboard: #0f766e;
        --icon-time: #334155;
        --icon-feedback: #6d28d9;
        --icon-knowledge-base: #1f6f4a;
        --icon-favorites: #7c3aed;
        --icon-settings: #5b21b6;
        --icon-news: #0f766e;
        --icon-guitar-chords: #123f2b;
        --icon-piano: #0f2f5f;
        --icon-lifetime-weeks: #334155;
        --icon-photos: #be185d;
        --lifetime-week-history-color: #1d4ed8;
        --seed-disc-one: #0057d9;
        --seed-disc-two: #c2410c;
        --seed-disc-three: #0f766e;
        --seed-disc-four: #6d28d9;
        --weather-icon-clear: #b45309;
        --weather-icon-cloudy: #475569;
        --weather-icon-rain: #0057d9;
        --weather-icon-generic: #00798c;
        --task-important-star: #b45309;
        --game-player-one: var(--accent);
        --game-player-two: var(--accent-alt);
        --game-player-one-soft: #e8f1ff;
        --game-player-two-soft: #fff0e8;
        --word-tiles-notice-paper: #dcebd8;
        --word-tiles-submit-paper: #cfe6c8;
    }

    html.palette-color.theme-dark {
        --paper: #050809;
        --line: #e8f4f1;
        --muted: #cbd8d5;
        --soft: #101716;
        --accent: #2f80ff;
        --accent-alt: #f97316;
        --danger: #ff3b4f;
        --danger-contrast: #000;
        --brand-header: #111827;
        --brand-header-ink: #f9fafb;
        --brand-header-line: #f9fafb;
        --icon-mail: #4d94ff;
        --icon-calendar: #ff8a1f;
        --icon-reminders: #ff3b4f;
        --icon-contacts: #dbe4ef;
        --icon-files: #2dd4bf;
        --icon-weather: #00b7c7;
        --icon-calculator: #38a838;
        --icon-dashboard: #2dd4bf;
        --icon-time: #dbe4ef;
        --icon-feedback: #a78bfa;
        --icon-knowledge-base: #7dd8a8;
        --icon-favorites: #c4b5fd;
        --icon-settings: #8b5cf6;
        --icon-news: #2dd4bf;
        --icon-guitar-chords: #7dd8a8;
        --icon-piano: #93c5fd;
        --icon-lifetime-weeks: #dbe4ef;
        --icon-photos: #f9a8d4;
        --lifetime-week-history-color: #1d4ed8;
        --seed-disc-one: #2f80ff;
        --seed-disc-two: #f97316;
        --seed-disc-three: #2dd4bf;
        --seed-disc-four: #a78bfa;
        --weather-icon-clear: #fbbf24;
        --weather-icon-cloudy: #dbe4ef;
        --weather-icon-rain: #5aa2ff;
        --weather-icon-generic: #00b7c7;
        --task-important-star: #fbbf24;
        --game-player-one: var(--accent);
        --game-player-two: var(--accent-alt);
        --game-player-one-soft: #0d2440;
        --game-player-two-soft: #3a1c0e;
        --word-tiles-notice-paper: #17301c;
        --word-tiles-submit-paper: #17301c;
    }

    html.palette-color .seed-sowing-player--one {
        border-color: var(--game-player-one);
    }

    html.palette-color .seed-sowing-player--two {
        border-color: var(--game-player-two);
    }

    html.palette-color .seed-sowing-player--one .seed-sowing-turn {
        color: var(--paper);
        background: var(--game-player-one);
        border-color: var(--game-player-one);
    }

    html.palette-color .seed-sowing-player--two .seed-sowing-turn {
        color: var(--paper);
        background: var(--game-player-two);
        border-color: var(--game-player-two);
    }

    html.palette-color .seed-sowing-seed--1 {
        background: var(--seed-disc-one);
        border-color: var(--seed-disc-one);
    }

    html.palette-color .seed-sowing-seed--2 {
        background: var(--seed-disc-two);
        border-color: var(--seed-disc-two);
    }

    html.palette-color .seed-sowing-seed--3 {
        background: var(--seed-disc-three);
        border-color: var(--seed-disc-three);
    }

    html.palette-color .seed-sowing-seed--4 {
        background: var(--seed-disc-four);
        border-color: var(--seed-disc-four);
    }

    html.palette-color .seed-sowing-pit-cell--one .seed-sowing-pit,
    html.palette-color .seed-sowing-store--one {
        color: var(--game-player-one);
        background: var(--game-player-one-soft);
    }

    html.palette-color .seed-sowing-pit-cell--two .seed-sowing-pit,
    html.palette-color .seed-sowing-store--two {
        color: var(--game-player-two);
        background: var(--game-player-two-soft);
    }

    html.palette-color .toolbar-app-seed-sowing .kindle-toolbar__app-icon {
        color: var(--game-player-one);
    }

    html.palette-color .lifetime-week-chart td.is-past .lifetime-week-dot {
        border-color: var(--lifetime-week-history-color);
        background: var(--lifetime-week-history-color);
    }

    html.palette-color .chess-player--white,
    html.palette-color .checkers-player--one {
        border-color: var(--game-player-one);
    }

    html.palette-color .chess-player--black,
    html.palette-color .checkers-player--two {
        border-color: var(--game-player-two);
    }

    html.palette-color .chess-piece--white {
        color: var(--game-player-one);
    }

    html.palette-color .chess-piece--black {
        color: var(--game-player-two);
    }

    html.palette-color .checkers-piece.is-one {
        color: var(--paper);
        background: var(--game-player-one);
        border-color: var(--game-player-one);
    }

    html.palette-color .checkers-piece.is-two {
        color: var(--game-player-two);
        background: var(--paper);
        border-color: var(--game-player-two);
    }

    html.palette-color .toolbar-app-chess .kindle-toolbar__app-icon,
    html.palette-color .toolbar-app-checkers .kindle-toolbar__app-icon {
        color: var(--game-player-one);
    }

    html.palette-color .disk-flip-player-status--one {
        border-color: var(--game-player-one);
    }

    html.palette-color .disk-flip-player-status--two {
        border-color: var(--game-player-two);
    }

    html.palette-color .disk-flip-player-status--one .disk-flip-turn-indicator {
        color: var(--paper);
        background: var(--game-player-one);
        border-color: var(--game-player-one);
    }

    html.palette-color .disk-flip-player-status--two .disk-flip-turn-indicator {
        color: var(--paper);
        background: var(--game-player-two);
        border-color: var(--game-player-two);
    }

    html.palette-color .disk-flip-piece--one {
        background: var(--game-player-one);
        border-color: var(--game-player-one);
    }

    html.palette-color .disk-flip-piece--two {
        background: var(--paper);
        border-color: var(--game-player-two);
    }

    html.palette-color .disk-flip-form.is-player-one-turn .disk-flip-move {
        color: var(--game-player-one);
        background: var(--game-player-one-soft);
    }

    html.palette-color .disk-flip-form.is-player-two-turn .disk-flip-move {
        color: var(--game-player-two);
        background: var(--game-player-two-soft);
    }

    html.palette-color .toolbar-app-disk-flip .kindle-toolbar__app-icon {
        color: var(--game-player-one);
    }

    html.palette-color .four-row-player--one {
        border-color: var(--game-player-one);
    }

    html.palette-color .four-row-player--two {
        border-color: var(--game-player-two);
    }

    html.palette-color .four-row-player--one .four-row-turn {
        color: var(--paper);
        background: var(--game-player-one);
        border-color: var(--game-player-one);
    }

    html.palette-color .four-row-player--two .four-row-turn {
        color: var(--paper);
        background: var(--game-player-two);
        border-color: var(--game-player-two);
    }

    html.palette-color .four-row-piece--one {
        background: var(--game-player-one);
        border-color: var(--game-player-one);
    }

    html.palette-color .four-row-piece--two {
        background: var(--paper);
        border-color: var(--game-player-two);
    }

    html.palette-color .four-row-form.is-player-one-turn .four-row-column-button {
        color: var(--game-player-one);
        background: var(--game-player-one-soft);
    }

    html.palette-color .four-row-form.is-player-two-turn .four-row-column-button {
        color: var(--game-player-two);
        background: var(--game-player-two-soft);
    }

    html.palette-color .toolbar-app-four-in-a-row .kindle-toolbar__app-icon {
        color: var(--game-player-one);
    }

    html.palette-color .dots-boxes-player--one {
        border-color: var(--game-player-one);
    }

    html.palette-color .dots-boxes-player--two {
        border-color: var(--game-player-two);
    }

    html.palette-color .dots-boxes-player--one .dots-boxes-turn {
        color: var(--paper);
        background: var(--game-player-one);
        border-color: var(--game-player-one);
    }

    html.palette-color .dots-boxes-player--two .dots-boxes-turn {
        color: var(--paper);
        background: var(--game-player-two);
        border-color: var(--game-player-two);
    }

    html.palette-color .dots-boxes-edge.is-player-one {
        color: var(--game-player-one);
    }

    html.palette-color .dots-boxes-edge.is-player-two {
        color: var(--game-player-two);
    }

    html.palette-color .dots-boxes-form.is-player-one-turn .dots-boxes-edge-button {
        color: var(--game-player-one);
        background: var(--paper);
    }

    html.palette-color .dots-boxes-form.is-player-two-turn .dots-boxes-edge-button {
        color: var(--game-player-two);
        background: var(--paper);
    }

    html.palette-color .dots-boxes-box.is-player-one {
        color: var(--game-player-one);
        background: var(--game-player-one-soft);
    }

    html.palette-color .dots-boxes-box.is-player-two {
        color: var(--game-player-two);
        background: var(--game-player-two-soft);
        outline-color: var(--game-player-two);
    }

    html.palette-color .toolbar-app-dots-and-boxes .kindle-toolbar__app-icon {
        color: var(--game-player-one);
    }

    html.palette-color .sudoku-cell--editable,
    html.palette-color .sudoku-number-pad button {
        color: var(--game-player-one);
        background: var(--game-player-one-soft);
        border-color: var(--game-player-one);
    }

    html.palette-color .sudoku-cell--editable.is-selected {
        color: var(--game-player-two);
        background: var(--game-player-two-soft);
        outline-color: var(--game-player-two);
    }

    html.palette-color .sudoku-board td.sudoku-box-right,
    html.palette-color .sudoku-board td.sudoku-box-bottom {
        border-color: var(--game-player-one);
    }

    html.palette-color .toolbar-app-sudoku .kindle-toolbar__app-icon,
    html.palette-color .launcher-icon-sudoku {
        color: var(--game-player-one);
    }

    html.palette-color .weather-icon-weather-clear {
        color: var(--weather-icon-clear);
    }

    html.palette-color .weather-icon-weather-cloudy {
        color: var(--weather-icon-cloudy);
    }

    html.palette-color .weather-icon-weather-rain {
        color: var(--weather-icon-rain);
    }

    html.palette-color .weather-icon-weather {
        color: var(--weather-icon-generic);
    }

    html.palette-color .launcher-icon-mail {
        color: var(--icon-mail);
    }

    html.palette-color .launcher-icon-calendar {
        color: var(--icon-calendar);
    }

    html.palette-color .launcher-icon-reminders {
        color: var(--icon-reminders);
    }

    html.palette-color .launcher-icon-contacts {
        color: var(--icon-contacts);
    }

    html.palette-color .launcher-icon-folder {
        color: var(--icon-files);
    }

    html.palette-color .launcher-icon-weather {
        color: var(--icon-weather);
    }

    html.palette-color .launcher-icon-calculator {
        color: var(--icon-calculator);
    }

    html.palette-color .launcher-icon-dashboard {
        color: var(--icon-dashboard);
    }

    html.palette-color .launcher-icon-time {
        color: var(--icon-time);
    }

    html.palette-color .launcher-icon-feedback {
        color: var(--icon-feedback);
    }

    html.palette-color .launcher-icon-knowledge-base {
        color: var(--icon-knowledge-base);
    }

    html.palette-color .launcher-icon-settings {
        color: var(--icon-settings);
    }

    html.palette-color .launcher-icon-news {
        color: var(--icon-news);
    }

    html.palette-color .launcher-icon-guitar-chords {
        color: var(--icon-guitar-chords);
    }

    html.palette-color .launcher-icon-piano {
        color: var(--icon-piano);
    }

    html.palette-color .launcher-icon-lifetime-weeks {
        color: var(--icon-lifetime-weeks);
    }

    html.palette-color .launcher-icon-photos {
        color: var(--icon-photos);
    }

    html.palette-color .launcher-link .launcher-icon,
    html.palette-color .app-heading .launcher-icon {
        color: currentColor;
    }

    html.palette-color .kindle-toolbar .launcher-icon {
        color: currentColor;
    }

    html.palette-color .kindle-toolbar {
        color: var(--ink);
    }

    html.palette-color .kindle-toolbar .toolbar-icon-button,
    html.palette-color .kindle-toolbar .toolbar-action {
        color: inherit;
        background: transparent;
        border-color: currentColor;
    }

    html.palette-color .kindle-toolbar .toolbar-action.library-trial-action {
        color: #fff;
        background: var(--accent);
        border-color: var(--accent);
    }

    html.palette-color .app-notification-info {
        color: #fff;
        background: var(--accent);
        border-bottom-color: var(--accent);
    }

    html.palette-color .app-notification-success {
        color: #fff;
        background: #1f7a1f;
        border-bottom-color: #1f7a1f;
    }

    html.palette-color .app-notification-error {
        color: var(--danger-contrast);
        background: var(--danger);
        border-bottom-color: var(--danger);
    }

    html.palette-color .mail-list-tool-button--active {
        color: #fff;
        background: var(--accent);
        border-color: var(--accent);
    }

    html.palette-color .mail-selection-action {
        color: var(--ink);
        border-color: var(--line);
    }

    html.palette-color .notice-warning {
        border-color: var(--danger);
    }

    html.palette-color .notice-warning h2,
    html.palette-color .warning-label {
        color: var(--danger);
    }

    html.palette-color .news-source-errors {
        border-color: var(--danger);
    }

    html.palette-color .danger-action {
        color: var(--danger-contrast);
        background: var(--danger);
        border-color: var(--danger);
    }

    html.palette-color .settings-action-grid a.danger-action .settings-action-icon {
        color: var(--danger-contrast);
    }

    html.palette-color.theme-light .launcher-tile-mail,
    html.palette-color.theme-light .app-heading-mail,
    html.palette-color.theme-light .toolbar-app-mail {
        color: #fff;
        background: #0057d9;
        border-color: #002b6b;
    }

    html.palette-color.theme-light .launcher-tile-calendar,
    html.palette-color.theme-light .app-heading-calendar,
    html.palette-color.theme-light .toolbar-app-calendar {
        color: #fff;
        background: #c2410c;
        border-color: #5f1d04;
    }

    html.palette-color.theme-light .launcher-tile-reminders,
    html.palette-color.theme-light .app-heading-reminders,
    html.palette-color.theme-light .toolbar-app-reminders {
        color: #fff;
        background: #b00020;
        border-color: #53000f;
    }

    html.palette-color.theme-light .launcher-tile-contacts,
    html.palette-color.theme-light .app-heading-contacts,
    html.palette-color.theme-light .toolbar-app-contacts {
        color: #fff;
        background: #334155;
        border-color: #111827;
    }

    html.palette-color.theme-light .launcher-tile-folder,
    html.palette-color.theme-light .app-heading-folder,
    html.palette-color.theme-light .toolbar-app-files {
        color: #fff;
        background: #0f766e;
        border-color: #134e4a;
    }

    html.palette-color.theme-light .launcher-tile-weather,
    html.palette-color.theme-light .app-heading-weather,
    html.palette-color.theme-light .toolbar-app-weather {
        color: #fff;
        background: #00798c;
        border-color: #003b45;
    }

    html.palette-color.theme-light .launcher-tile-calculator,
    html.palette-color.theme-light .app-heading-calculator,
    html.palette-color.theme-light .toolbar-app-calculator {
        color: #fff;
        background: #1f7a1f;
        border-color: #0b3d0b;
    }

    html.palette-color.theme-light .launcher-tile-dashboard,
    html.palette-color.theme-light .app-heading-dashboard,
    html.palette-color.theme-light .toolbar-app-dashboard {
        color: #fff;
        background: #0f766e;
        border-color: #134e4a;
    }

    html.palette-color.theme-light .launcher-tile-time,
    html.palette-color.theme-light .app-heading-time,
    html.palette-color.theme-light .toolbar-app-time {
        color: #fff;
        background: #334155;
        border-color: #111827;
    }

    html.palette-color.theme-light .launcher-tile-feedback,
    html.palette-color.theme-light .app-heading-feedback,
    html.palette-color.theme-light .toolbar-app-feedback {
        color: #fff;
        background: #6d28d9;
        border-color: #37106f;
    }

    html.palette-color.theme-light .launcher-tile-favorites,
    html.palette-color.theme-light .app-heading-favorites,
    html.palette-color.theme-light .toolbar-app-favorites {
        color: #fff;
        background: #7c3aed;
        border-color: #3b0764;
    }

    html.palette-color.theme-light .launcher-tile-news,
    html.palette-color.theme-light .app-heading-news,
    html.palette-color.theme-light .toolbar-app-news {
        color: #fff;
        background: #0f766e;
        border-color: #134e4a;
    }

    html.palette-color.theme-light .launcher-tile-guitar-chords,
    html.palette-color.theme-light .app-heading-guitar-chords,
    html.palette-color.theme-light .toolbar-app-guitar-chords {
        color: #fff;
        background: #123f2b;
        border-color: #061d13;
    }

    html.palette-color.theme-light .launcher-tile-piano,
    html.palette-color.theme-light .app-heading-piano,
    html.palette-color.theme-light .toolbar-app-piano {
        color: #fff;
        background: #0f2f5f;
        border-color: #071a35;
    }

    html.palette-color.theme-light .launcher-tile-lifetime-weeks,
    html.palette-color.theme-light .app-heading-lifetime-weeks,
    html.palette-color.theme-light .toolbar-app-lifetime-weeks {
        color: #fff;
        background: #334155;
        border-color: #0f172a;
    }

    html.palette-color.theme-light .launcher-tile-photos,
    html.palette-color.theme-light .app-heading-photos,
    html.palette-color.theme-light .toolbar-app-photo-slideshow {
        color: #fff;
        background: #be185d;
        border-color: #500724;
    }

    html.palette-color.theme-light .launcher-tile-settings,
    html.palette-color.theme-light .app-heading-settings,
    html.palette-color.theme-light .toolbar-app-settings,
    html.palette-color.theme-light .toolbar-app-home,
    html.palette-color.theme-light .toolbar-app-library {
        color: #fff;
        background: #5b21b6;
        border-color: #2e1065;
    }

    html.palette-color.theme-light .launcher-tile-ai-chat,
    html.palette-color.theme-light .app-heading-ai-chat,
    html.palette-color.theme-light .toolbar-app-ai-chat {
        color: #fff;
        background: #3157a4;
        border-color: #172554;
    }

    html.palette-color.theme-dark .launcher-tile-mail,
    html.palette-color.theme-dark .app-heading-mail,
    html.palette-color.theme-dark .toolbar-app-mail {
        color: #fff;
        background: #0046c7;
        border-color: #78a7ff;
    }

    html.palette-color.theme-dark .launcher-tile-calendar,
    html.palette-color.theme-dark .app-heading-calendar,
    html.palette-color.theme-dark .toolbar-app-calendar {
        color: #fff;
        background: #b7350b;
        border-color: #ff9b54;
    }

    html.palette-color.theme-dark .launcher-tile-reminders,
    html.palette-color.theme-dark .app-heading-reminders,
    html.palette-color.theme-dark .toolbar-app-reminders {
        color: #fff;
        background: #ad001f;
        border-color: #ff9aaa;
    }

    html.palette-color.theme-dark .launcher-tile-contacts,
    html.palette-color.theme-dark .app-heading-contacts,
    html.palette-color.theme-dark .toolbar-app-contacts {
        color: #fff;
        background: #273449;
        border-color: #dbe4ef;
    }

    html.palette-color.theme-dark .launcher-tile-folder,
    html.palette-color.theme-dark .app-heading-folder,
    html.palette-color.theme-dark .toolbar-app-files {
        color: #fff;
        background: #0f766e;
        border-color: #99f6e4;
    }

    html.palette-color.theme-dark .launcher-tile-weather,
    html.palette-color.theme-dark .app-heading-weather,
    html.palette-color.theme-dark .toolbar-app-weather {
        color: #fff;
        background: #00768a;
        border-color: #71ecff;
    }

    html.palette-color.theme-dark .launcher-tile-calculator,
    html.palette-color.theme-dark .app-heading-calculator,
    html.palette-color.theme-dark .toolbar-app-calculator {
        color: #fff;
        background: #1d741d;
        border-color: #9df29d;
    }

    html.palette-color.theme-dark .launcher-tile-dashboard,
    html.palette-color.theme-dark .app-heading-dashboard,
    html.palette-color.theme-dark .toolbar-app-dashboard {
        color: #fff;
        background: #0f766e;
        border-color: #99f6e4;
    }

    html.palette-color.theme-dark .launcher-tile-time,
    html.palette-color.theme-dark .app-heading-time,
    html.palette-color.theme-dark .toolbar-app-time {
        color: #fff;
        background: #273449;
        border-color: #dbe4ef;
    }

    html.palette-color.theme-dark .launcher-tile-feedback,
    html.palette-color.theme-dark .app-heading-feedback,
    html.palette-color.theme-dark .toolbar-app-feedback {
        color: #fff;
        background: #5b21b6;
        border-color: #ddd6fe;
    }

    html.palette-color.theme-dark .launcher-tile-favorites,
    html.palette-color.theme-dark .app-heading-favorites,
    html.palette-color.theme-dark .toolbar-app-favorites {
        color: #fff;
        background: #5b21b6;
        border-color: #ddd6fe;
    }

    html.palette-color.theme-dark .launcher-tile-news,
    html.palette-color.theme-dark .app-heading-news,
    html.palette-color.theme-dark .toolbar-app-news {
        color: #fff;
        background: #0f766e;
        border-color: #99f6e4;
    }

    html.palette-color.theme-dark .launcher-tile-guitar-chords,
    html.palette-color.theme-dark .app-heading-guitar-chords,
    html.palette-color.theme-dark .toolbar-app-guitar-chords {
        color: #fff;
        background: #0f4f32;
        border-color: #7dd8a8;
    }

    html.palette-color.theme-dark .launcher-tile-piano,
    html.palette-color.theme-dark .app-heading-piano,
    html.palette-color.theme-dark .toolbar-app-piano {
        color: #fff;
        background: #123a73;
        border-color: #93c5fd;
    }

    html.palette-color.theme-dark .launcher-tile-lifetime-weeks,
    html.palette-color.theme-dark .app-heading-lifetime-weeks,
    html.palette-color.theme-dark .toolbar-app-lifetime-weeks {
        color: #fff;
        background: #334155;
        border-color: #dbe4ef;
    }

    html.palette-color.theme-dark .launcher-tile-photos,
    html.palette-color.theme-dark .app-heading-photos,
    html.palette-color.theme-dark .toolbar-app-photo-slideshow {
        color: #fff;
        background: #9d174d;
        border-color: #f9a8d4;
    }

    html.palette-color.theme-dark .launcher-tile-settings,
    html.palette-color.theme-dark .app-heading-settings,
    html.palette-color.theme-dark .toolbar-app-settings,
    html.palette-color.theme-dark .toolbar-app-home,
    html.palette-color.theme-dark .toolbar-app-library {
        color: #fff;
        background: #5b21b6;
        border-color: #c4b5fd;
    }

    html.palette-color.theme-dark .launcher-tile-ai-chat,
    html.palette-color.theme-dark .app-heading-ai-chat,
    html.palette-color.theme-dark .toolbar-app-ai-chat {
        color: #fff;
        background: #263c78;
        border-color: #bfdbfe;
    }

    html.palette-color.theme-light .launcher-link.launcher-link-locked,
    html.palette-color.theme-dark .launcher-link.launcher-link-locked {
        color: var(--locked-ink);
        background: var(--locked-paper);
        border-color: var(--locked-ink);
    }

    html.palette-color .kindle-toolbar.toolbar-app-home,
    html.palette-color .kindle-toolbar.toolbar-app-library,
    html.palette-color .kindle-toolbar.toolbar-app-settings {
        color: var(--brand-header-ink);
        background: var(--brand-header);
        border-color: var(--brand-header-line);
    }
}

button,
.button-link,
.toolbar-icon-button,
.toolbar-action,
.icon-button,
.contacts-icon-button,
.mail-search-icon-button,
.weather-search-icon-button,
.mail-list-tool-button,
.mail-selection-action,
.mail-scroll-button,
.calendar-scroll-button,
.calendar-stepper-button,
.timezone-result-button {
    border-color: transparent;
}

.weather-search-icon-button.world-clock-search-clear,
.weather-search-icon-button.weather-search-clear {
    border-color: var(--line);
}

.button-link.button-link--required-border,
.dashboard-layout-icon-button,
.dashboard-widget-picker-option,
.dashboard-selector-action,
.page-scroll-button,
.mail-scroll-button,
.calendar-scroll-button,
.calculator-history-page-button,
.mail-message-action,
.task-empty-action,
.calendar-detail-date-time,
.calendar-form-action,
.calendar-all-day-action,
.calendar-attendee-action,
.calendar-stepper-button,
.calendar-rsvp-actions button,
.mail-meeting-actions button,
.contacts-icon-button,
.attendee-search-result,
.attendee-remove-action,
.contact-delete-action,
.file-detail-share-action,
.file-detail-provider-action,
.calculator-grid button,
.account-connect-option {
    border-color: var(--line);
}

.calendar-detail-date-time {
    padding: 0.45rem 0.55rem;
    border: 2px solid var(--line);
}

.calculator-backspace,
.calculator-erase {
    border-color: transparent;
}

.disk-flip-menu-page {
    max-width: 42rem;
    margin-right: auto;
    margin-left: auto;
}

.disk-flip-heading,
.disk-flip-turn,
.disk-flip-result {
    text-align: center;
}

.page-shell--disk-flip-play {
    width: min(100% - 1rem, 42rem);
    padding: 5.15rem 0 0;
}

.page-shell--notification.page-shell--disk-flip-play {
    padding-top: 8.5rem;
}

.disk-flip-player-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--view-toolbar-button-gap);
    width: 100%;
    max-width: 32rem;
    margin: 0 auto 0.55rem;
}

.disk-flip-player-status {
    position: relative;
    display: grid;
    gap: 0.1rem;
    min-height: 3.25rem;
    padding: 0.3rem 0.45rem;
    border: 2px solid var(--line);
    line-height: 1.1;
}

.disk-flip-player-status--right {
    justify-items: end;
    text-align: right;
}

.disk-flip-player-status.is-turn {
    border-width: 3px;
}

.disk-flip-player-name {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
}

.disk-flip-player-name .disk-flip-piece {
    width: 1.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
    border-width: 2px;
}

.disk-flip-turn-indicator {
    position: absolute;
    top: -0.65rem;
    right: 0.3rem;
    padding: 0.05rem 0.3rem;
    border: 2px solid var(--ink);
    color: var(--paper);
    background: var(--ink);
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.1;
}

.disk-flip-player-status--right .disk-flip-turn-indicator {
    right: auto;
    left: 0.3rem;
}

.disk-flip-board-stage {
    position: relative;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
}

.disk-flip-board {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    table-layout: fixed;
    border: 0;
    border-spacing: 0;
    border-collapse: separate;
    background: var(--paper);
}

.disk-flip-pass-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.disk-flip-pass-message {
    width: min(100%, 22rem);
    padding: 1rem;
    border: 4px solid var(--ink);
    color: var(--ink);
    background: var(--paper);
    text-align: center;
}

.disk-flip-pass-message h2 {
    margin-top: 0;
}

.disk-flip-pass-message button {
    border-color: var(--line);
}

.disk-flip-board td {
    width: 12.5%;
    padding: 0;
    border: 0;
    border-right: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
}

.disk-flip-board tr:first-child td {
    border-top: 2px solid var(--line);
}

.disk-flip-board td:first-child {
    border-left: 2px solid var(--line);
}

.disk-flip-square,
.disk-flip-move {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: 0.2rem;
}

.disk-flip-move {
    border: 0;
    color: var(--ink);
    background: var(--soft);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    text-decoration: underline;
}

.disk-flip-piece {
    display: inline-block;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    border: 3px solid var(--ink);
    border-radius: 50%;
}

.disk-flip-piece--one {
    background: var(--ink);
    outline: 2px solid var(--paper);
    outline-offset: -5px;
}

.disk-flip-piece--two {
    background: var(--paper);
}

.disk-flip-menu-actions {
    display: grid;
    gap: var(--view-toolbar-button-gap);
    margin-top: 1.25rem;
}

.disk-flip-menu-actions button {
    border-color: var(--line);
}

@media (min-width: 900px) {
    .disk-flip-menu-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-shell--disk-flip-play {
        width: min(100% - 3rem, 58rem);
        padding-top: 5.35rem;
    }
}
