/*
 * filambda.com on top of the shared Filambda theme (assets/css/filambda.css,
 * --fl-* tokens, light and dark). Class prefix .fw-
 */

.fw-body { background: var(--fl-bg); color: var(--fl-text); min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.fw-skip { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: var(--fl-surface); padding: 0.5rem 1rem; border-radius: var(--fl-radius); }
.fw-header { background: color-mix(in srgb, var(--fl-surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--fl-border); position: sticky; top: 0; z-index: 1030; }
.fw-header-in { display: flex; align-items: center; gap: 1rem; max-width: 1440px; margin: 0 auto; padding: 0.6rem 1.25rem; }
.fw-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--fl-text); }
.fw-mark img { width: 34px; height: 34px; }
.fw-wordmark { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.fw-user { padding: 0.15rem; border-radius: 50%; }
.fw-avatar { border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; }
.fw-avatar-text { background: var(--fl-accent); color: #fff; font-weight: 650; font-size: 0.85rem; }
.fw-app-icon { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 22%; overflow: hidden; }
.fw-app-icon img { width: 100%; height: 100%; display: block; }
.fw-app-icon-tile { background: var(--fl-ink); color: #fff; }
[data-bs-theme="dark"] .fw-app-icon-tile { background: #fff; color: var(--fl-ink); }

.fw-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.fw-main-wide { max-width: 1440px; padding-top: 0; }
.fw-flash { margin: 1rem 0; }
.fw-muted { color: var(--fl-text-muted); }
.fw-footer { border-top: 1px solid var(--fl-border); background: var(--fl-surface); }
.fw-footer-in { max-width: 1440px; margin: 0 auto; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--fl-text-muted); }
.fw-footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.fw-footer .fw-mark img { width: 22px; height: 22px; }
.fw-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.fw-footer a { color: var(--fl-text-muted); }
.fw-empty { text-align: center; padding: 3rem 1rem; color: var(--fl-text-muted); }
.fw-empty-icon { width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 1.2rem; display: grid; place-items: center; font-size: 1.8rem; background: var(--fl-accent-soft); color: var(--fl-accent-text); }
.fw-empty h2 { color: var(--fl-text); }
.fw-toasts { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 1100; display: flex; flex-direction: column; gap: 0.5rem; width: max-content; max-width: calc(100vw - 2rem); }
.fw-toast { display: flex; align-items: center; gap: 0.9rem; background: #0E1525; color: #fff; padding: 0.6rem 0.75rem 0.6rem 1rem; border-radius: var(--fl-radius); box-shadow: var(--fl-shadow-lg); font-size: 0.9rem; }
[data-bs-theme="dark"] .fw-toast { background: #2A3245; }
.fw-toast.is-error { background: var(--fl-danger); }
.fw-toast-action { border: 0; background: transparent; color: #8EA8FF; font-weight: 650; padding: 0.15rem 0.35rem; border-radius: 6px; }
.fw-toast-action:hover { background: rgba(255, 255, 255, 0.12); }

@media (max-width: 575.98px) {
    .fw-header-in { padding: 0.5rem 0.9rem; gap: 0.5rem; }
    .fw-wordmark { display: none; }
    .fw-header .fl-lang-select { max-width: 6.5rem; }
    .fw-main { padding: 1.1rem 0.9rem 2.5rem; }
    .fw-main-wide { padding-top: 0; }
    .fw-hide-xs { display: none; }
}

/* ---------------- Header: the picture and one thing in the middle ---------------- */

.fw-hero { position: relative; margin: 0 calc(50% - 50vw); min-height: clamp(240px, 38vh, 420px); padding: 2.5rem 1.25rem 4.25rem; display: grid; place-items: center; color: var(--fl-text);
    background: radial-gradient(1200px 400px at 50% -10%, color-mix(in srgb, var(--fl-accent) 16%, transparent), transparent 70%); border-bottom: 1px solid var(--fl-border); }
.fw-hero.has-photo { color: #fff; border-bottom: 0; background-color: #0E1525; background-image:
    radial-gradient(ellipse at center, rgba(10, 16, 30, 0.42) 0%, rgba(10, 16, 30, 0.62) 100%), var(--fw-hero);
    background-size: cover; background-position: center; transition: background-image 0.6s ease; }
@media (max-width: 767.98px) { .fw-hero.has-photo { background-image: radial-gradient(ellipse at center, rgba(10, 16, 30, 0.45), rgba(10, 16, 30, 0.7)), var(--fw-hero-small); } }
.fw-hero.is-none { min-height: clamp(200px, 30vh, 340px); }
.fw-hero-center { width: 100%; max-width: 1100px; text-align: center; }
.fw-hero-line { font-size: clamp(2rem, 5.4vw, 4rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.08; margin: 0 auto; max-width: 18ch; text-wrap: balance; }
.has-photo .fw-hero-line { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
/* Long lines (often in French or German) a little smaller, so they keep to two or three rows. */
.fw-hero-line.is-long { font-size: clamp(1.7rem, 4.3vw, 3.2rem); max-width: 22ch; }
/* The tip under the line: one sentence about the project of the day, a link to it. */
.fw-hero-tip { display: inline-flex; align-items: center; gap: 0.5rem; max-width: min(100%, 640px); margin: 1.1rem auto 0; padding: 0.35rem 0.8rem 0.35rem 0.4rem; border-radius: 999px; font-size: 0.9rem; line-height: 1.35; text-align: left; text-decoration: none; color: var(--fl-text); background: color-mix(in srgb, var(--fl-surface) 72%, transparent); border: 1px solid color-mix(in srgb, var(--fl-border) 70%, transparent); backdrop-filter: blur(10px); transition: background-color 0.15s ease, transform 0.15s ease; }
.has-photo .fw-hero-tip { color: #fff; background: rgba(15, 18, 25, 0.42); border-color: rgba(255, 255, 255, 0.18); }
a.fw-hero-tip:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--fl-surface) 88%, transparent); color: var(--fl-text); }
.has-photo a.fw-hero-tip:hover { background: rgba(15, 18, 25, 0.6); color: #fff; }
.fw-hero-tip .fw-app-icon { flex: 0 0 auto; border-radius: 6px; overflow: hidden; }
.fw-hero-tip-icon { flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--fl-accent); color: #fff; font-size: 0.75rem; }
.fw-hero-tip-go { flex: 0 0 auto; font-size: 1.2rem; margin-left: -0.15rem; opacity: 0.8; }
.fw-hero-widget { position: relative; width: min(560px, 100%); margin: 0 auto; text-align: left; }
.fw-hero-widget .fw-w { position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); max-height: none; }
.fw-hero-widget .fw-w-body { overflow: visible; }
.fw-hero-widget .fw-w-grip { display: none; }
.fw-hero-widget .fw-w-head { cursor: default; }
.fw-hero-credit { position: absolute; right: 1.25rem; bottom: 3.35rem; max-width: min(520px, 60%); font-size: 0.7rem; color: rgba(255, 255, 255, 0.72); text-decoration: none; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.fw-hero:not(.has-photo) .fw-hero-credit { display: none; }
.fw-hero-credit:hover { color: #fff; text-decoration: underline; }
.fw-hero-edit { position: absolute; top: 1rem; right: 1.25rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); color: #fff; backdrop-filter: blur(8px); text-decoration: none; opacity: 0.75; transition: opacity 0.15s, background 0.15s; }
.fw-hero:not(.has-photo) .fw-hero-edit { background: var(--fl-surface-2); color: var(--fl-text-muted); }
.fw-hero-edit:hover, .fw-hero-edit:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.28); color: #fff; }
/* The board starts over the bottom edge of the picture, as on the old page. */
.fw-sheet { position: relative; z-index: 2; margin-top: -2.75rem; background: var(--fl-bg); border-radius: 22px 22px 0 0; padding: 0.9rem 0.75rem 0; box-shadow: 0 -12px 30px rgba(10, 16, 30, 0.12); }
/* The apps under the visitor's board. */
.fw-apps-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.6rem; margin-top: 2rem; }
.fw-hero-app { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem; border-radius: var(--fl-radius-lg); background: var(--fl-surface); border: 1px solid var(--fl-border); text-decoration: none; color: var(--fl-text); box-shadow: var(--fl-shadow-sm); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.fw-hero-app:hover, .fw-hero-app:focus-visible { transform: translateY(-2px); box-shadow: var(--fl-shadow); }
.fw-hero-app > span:last-child { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.fw-hero-app strong { font-size: 0.92rem; }
.fw-hero-app small { color: var(--fl-text-muted); font-size: 0.78rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575.98px) {
    .fw-hero { padding: 2rem 0.9rem 3.75rem; min-height: 220px; }
    .fw-hero-credit { right: 0.9rem; bottom: 3rem; max-width: 80%; }
    .fw-hero-edit { top: 0.6rem; right: 0.9rem; }
    .fw-hero-tip { font-size: 0.8rem; margin-top: 0.8rem; }
    .fw-sheet { margin-left: -0.5rem; margin-right: -0.5rem; padding: 0.75rem 0.5rem 0; border-radius: 18px 18px 0 0; }
}

.fw-about { margin: 2rem 0 0; }
.fw-about-in { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem; border-radius: var(--fl-radius-xl); background: var(--fl-surface); border: 1px solid var(--fl-border); }
.fw-about h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.fw-about p { color: var(--fl-text-muted); margin: 0; }
.fw-about-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.fw-about-points li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--fl-text-muted); }
.fw-about-points .bi { font-size: 1.2rem; color: var(--fl-accent-text); }
@media (max-width: 767.98px) { .fw-about-in { grid-template-columns: 1fr; padding: 1.25rem; } }

/* App catalogue page */
.fw-page-title { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.4rem; }
.fw-apps-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.fw-app-card { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; border-radius: var(--fl-radius-lg); background: var(--fl-surface); border: 1px solid var(--fl-border); color: var(--fl-text); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.fw-app-card:hover { transform: translateY(-2px); box-shadow: var(--fl-shadow); }
.fw-app-card h2 { font-size: 1.05rem; font-weight: 650; margin: 0; }
.fw-app-card p { color: var(--fl-text-muted); margin: 0; font-size: 0.92rem; flex: 1; }
.fw-app-card .fw-app-open { color: var(--fl-accent-text); font-weight: 600; font-size: 0.9rem; }

/* ---------------- Board ---------------- */

.fw-board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0.4rem 0 0.75rem; }
.fw-board-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; position: relative; z-index: 20; padding: 0.4rem 0; background: color-mix(in srgb, var(--fl-bg) 90%, transparent); backdrop-filter: blur(8px); }
.fw-board-tabs { display: flex; align-items: center; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.fw-board-tabs::-webkit-scrollbar { display: none; }
.fw-tab { border: 0; background: transparent; color: var(--fl-text-muted); font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 999px; white-space: nowrap; }
.fw-tab:hover { background: var(--fl-surface-2); color: var(--fl-text); }
.fw-tab.is-active { background: var(--fl-surface); color: var(--fl-text); box-shadow: var(--fl-shadow-sm); border: 1px solid var(--fl-border); }
.fw-tab-more { padding: 0.4rem 0.55rem; }
.fw-tab-add { color: var(--fl-accent-text); border: 1px dashed color-mix(in srgb, var(--fl-accent) 45%, transparent); }
.fw-tab-add:hover { background: var(--fl-accent-soft); color: var(--fl-accent-text); }
@media (max-width: 575.98px) { .fw-tab-add span { display: none; } }
.fw-board-actions { display: flex; gap: 0.5rem; flex: 0 0 auto; }
/* The buttons (and a lone tab) show only while the mouse is over the board,
   a keyboard focus is in it, Customize is on or a menu of the bar is open.
   Touch screens cannot hover, so there they always show. */
@media (hover: hover) {
    .fw-board-actions, .fw-tab-add, .fw-tab-more, .fw-board-tabs.is-single .fw-tab { opacity: 0; visibility: hidden; transition: opacity 0.18s ease, visibility 0s linear 0.18s; }
    .fw-board-bar { transition: background-color 0.18s ease; }
    .fw-board:not(:hover):not(.is-editing):not(:has(:focus-visible)):not(:has(.fw-board-bar [aria-expanded="true"])) .fw-board-bar { background: transparent; backdrop-filter: none; }
    :is(.fw-board:hover, .fw-board.is-editing, .fw-board:has(:focus-visible), .fw-board:has(.fw-board-bar [aria-expanded="true"])) :is(.fw-board-actions, .fw-tab-add, .fw-tab-more, .fw-board-tabs.is-single .fw-tab) { opacity: 1; visibility: visible; transition-delay: 0s; }
}
.fw-local-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.fw-local-actions { display: inline-flex; gap: 0.4rem; margin-left: auto; }
.fw-board-empty { display: none; }
.fw-board.is-empty .fw-board-empty { display: block; }
.fw-grid-wrap { margin: 0 -7px; }
.fw-board .grid-stack { min-height: 120px; }
.fw-board:not(.is-ready) .grid-stack { visibility: hidden; }

/* Customize mode: column guides and visible handles. */
.fw-board.is-editing .grid-stack { background-image: linear-gradient(to right, color-mix(in srgb, var(--fl-accent) 8%, transparent) 0 calc(100% - 14px), transparent calc(100% - 14px)); background-size: calc(100% / 12) 100%; background-position: 7px 0; border-radius: var(--fl-radius-lg); }
.fw-board.is-narrow.is-editing .grid-stack { background-image: none; }
.fw-board.is-editing .fw-w { outline: 2px dashed color-mix(in srgb, var(--fl-accent) 45%, transparent); outline-offset: -2px; }
.fw-board.is-editing .fw-w-head { cursor: grab; }

/* A widget */
.fw-w { inset: 0; display: flex; flex-direction: column; background: var(--fl-surface); border: 1px solid var(--fl-border); border-radius: var(--fl-radius-lg); box-shadow: var(--fl-shadow-sm); overflow: hidden !important; }
.grid-stack-item.ui-draggable-dragging .fw-w, .grid-stack-item.ui-resizable-resizing .fw-w { box-shadow: var(--fl-shadow-lg); }
.grid-stack-item.is-new .fw-w { animation: fw-new 1.4s ease; }
@keyframes fw-new { 0%, 40% { box-shadow: 0 0 0 3px var(--fl-accent); } 100% { box-shadow: var(--fl-shadow-sm); } }
.fw-w-head { display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.4rem 0.35rem 0.7rem; min-height: 2.4rem; cursor: grab; user-select: none; touch-action: none; }
.fw-board.is-narrow:not(.is-editing) .fw-w-head { cursor: default; touch-action: auto; }
.fw-w-head:active { cursor: grabbing; }
.fw-w-grip { color: var(--fl-text-subtle); margin-left: -0.35rem; opacity: 0; transition: opacity 0.15s; font-size: 0.9rem; }
.fw-w:hover .fw-w-grip, .fw-board.is-editing .fw-w-grip { opacity: 1; }
.fw-board.is-narrow:not(.is-editing) .fw-w-grip { display: none; }
.fw-w-icon { color: var(--fl-accent-text); font-size: 0.95rem; }
.fw-w-title { font-size: 0.86rem; font-weight: 650; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fw-w-badge { font-size: 0.72rem; font-weight: 650; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--fl-accent-soft); color: var(--fl-accent-text); }
.fw-w-tools { margin-left: auto; display: inline-flex; gap: 0.1rem; }
.fw-w-menu { flex: 0 0 auto; }
.fw-w-tools:empty + .fw-w-menu { margin-left: auto; }
.fw-w-btn { border: 0; background: transparent; color: var(--fl-text-muted); width: 1.9rem; height: 1.9rem; border-radius: 8px; display: inline-grid; place-items: center; padding: 0; }
.fw-w-btn:hover, .fw-w-btn[aria-expanded="true"] { background: var(--fl-surface-2); color: var(--fl-text); }
.fw-w-body { flex: 1; min-height: 0; overflow: auto; padding: 0.15rem 0.85rem 0.85rem; overscroll-behavior: auto; scrollbar-width: thin; }
/* Fitted widgets grow with their content: nothing to scroll. */
.fw-w.is-fit .fw-w-body { overflow: hidden; }
.fw-w-content { display: flow-root; container-type: inline-size; container-name: w; }
.fw-w.is-fill .fw-w-content { height: 100%; }
.fw-w-headless .fw-w-head { position: absolute; top: 0.3rem; right: 0.3rem; z-index: 3; padding: 0.1rem; min-height: 0; background: var(--w-bg, var(--fl-surface)); border-radius: 10px; opacity: 0; transition: opacity 0.15s; box-shadow: var(--fl-shadow-sm); }
.fw-w-headless .fw-w-head .fw-w-icon, .fw-w-headless .fw-w-head .fw-w-title, .fw-w-headless .fw-w-head .fw-w-badge { display: none; }
.fw-w-headless .fw-w-grip { opacity: 1; margin: 0 0 0 0.3rem; }
.fw-w-headless:hover .fw-w-head, .fw-w-headless:focus-within .fw-w-head, .fw-board.is-editing .fw-w-headless .fw-w-head, .fw-w-headless .fw-w-head:has([aria-expanded="true"]) { opacity: 1; }
.fw-w-headless .fw-w-body { padding: 0.85rem; }
.fw-w-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.5rem; color: var(--fl-text-muted); font-size: 0.9rem; padding: 0.5rem; }
.fw-w-empty .bi { font-size: 1.6rem; opacity: 0.6; }
.fw-w-empty p { margin: 0; max-width: 22rem; }
.fw-w-loading { min-height: 4rem; display: grid; place-items: center; color: var(--fl-text-subtle); }
.fw-w-note { font-size: 0.75rem; color: var(--fl-text-subtle); margin-top: 0.5rem; }
.fw-w-note a { color: inherit; }

/* gridstack on the theme */
.grid-stack-placeholder > .placeholder-content { background: var(--fl-accent-soft) !important; border: 2px dashed var(--fl-accent) !important; border-radius: var(--fl-radius-lg); }
.grid-stack-item > .ui-resizable-se { width: 18px; height: 18px; right: 4px; bottom: 4px; background: none; transform: none; }
.grid-stack-item > .ui-resizable-se::after { content: ''; position: absolute; right: 3px; bottom: 3px; width: 9px; height: 9px; border-right: 2px solid var(--fl-text-subtle); border-bottom: 2px solid var(--fl-text-subtle); border-radius: 0 0 3px 0; }

/* Gallery */
.fw-gallery { --bs-offcanvas-width: 380px; background: var(--fl-surface); border-left: 1px solid var(--fl-border); }
.fw-gallery-group { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fl-text-subtle); font-weight: 700; margin: 1rem 0 0.5rem; }
.fw-gallery-group:first-child { margin-top: 0; }
.fw-gallery-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.65rem; border: 1px solid var(--fl-border); border-radius: var(--fl-radius); margin-bottom: 0.45rem; background: var(--fl-surface); cursor: grab; }
.fw-gallery-item:hover { border-color: var(--fl-border-strong); box-shadow: var(--fl-shadow-sm); }
.fw-gallery-icon { width: 2.3rem; height: 2.3rem; border-radius: 10px; display: grid; place-items: center; background: var(--fl-accent-soft); color: var(--fl-accent-text); font-size: 1.1rem; flex: 0 0 auto; }
.fw-gallery-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fw-gallery-text strong { font-size: 0.88rem; }
.fw-gallery-text small { color: var(--fl-text-muted); font-size: 0.76rem; line-height: 1.3; }
.fw-gallery-lock { color: var(--fl-text-subtle) !important; margin-top: 0.15rem; }
.fw-gallery-item.is-locked .fw-gallery-icon { background: var(--fl-surface-2); color: var(--fl-text-subtle); }
/* A gallery card being dragged onto the board. */
.grid-stack .fw-gallery-item, body > .fw-gallery-item { max-width: 320px; box-shadow: var(--fl-shadow-lg); }
.fw-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.25rem 0.75rem; }

@media (max-width: 575.98px) {
    .fw-board { padding-top: 1rem; }
    .fw-gallery { --bs-offcanvas-width: 100vw; }
}

/* Settings */
.fw-narrow { max-width: 760px; margin: 0 auto; }
.fw-card { background: var(--fl-surface); border: 1px solid var(--fl-border); border-radius: var(--fl-radius-lg); padding: 1.15rem 1.25rem; margin-top: 1rem; }
.fw-card-title { font-size: 0.95rem; font-weight: 650; margin: 0 0 0.85rem; display: flex; align-items: center; gap: 0.45rem; }
.fw-card-title .bi { color: var(--fl-accent-text); }
.fw-board-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--fl-border); }
.fw-board-row:first-of-type { border-top: 0; }
.fw-board-row-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }

/* ---------------- Widgets ---------------- */

.fw-chips { display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 0.6rem; }
.fw-chips::-webkit-scrollbar { display: none; }
.fw-chips button { border: 1px solid var(--fl-border); background: var(--fl-surface); color: var(--fl-text-muted); border-radius: 999px; font-size: 0.76rem; font-weight: 600; padding: 0.2rem 0.65rem; white-space: nowrap; }
.fw-chips button:hover { color: var(--fl-text); border-color: var(--fl-border-strong); }
.fw-chips button.is-on { background: var(--fl-accent-soft); color: var(--fl-accent-text); border-color: transparent; }

/* Clock */
.fw-clock { display: flex; flex-direction: column; gap: 0.6rem; }
.fw-clock-main { display: flex; flex-direction: column; }
.fw-clock-time { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fw-clock-date { color: var(--fl-text-muted); font-size: 0.85rem; }
.fw-clock-zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.35rem 0.75rem; }
.fw-clock-zones li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; border-top: 1px solid var(--fl-border); padding-top: 0.3rem; font-size: 0.82rem; }
.fw-clock-zones span { color: var(--fl-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-clock-zones strong { font-variant-numeric: tabular-nums; }
.fw-clock-zones small { grid-column: 1 / -1; color: var(--fl-text-subtle); font-size: 0.7rem; }

/* Search */
.fw-search { display: flex; align-items: center; gap: 0.5rem; background: var(--fl-surface-2); border: 1px solid var(--fl-border); border-radius: 999px; padding: 0.15rem 0.35rem 0.15rem 0.95rem; }
.fw-search:focus-within { border-color: var(--fl-accent); box-shadow: 0 0 0 3px var(--fl-focus); }
.fw-search .bi { color: var(--fl-text-subtle); }
.fw-search .form-control { border: 0; background: transparent; box-shadow: none !important; padding-left: 0; font-size: 1rem; }
.fw-search-engine { border: 0; background: transparent; color: var(--fl-text-muted); font-size: 0.8rem; font-weight: 600; padding: 0.3rem; border-radius: 999px; max-width: 8rem; }
.fw-search-engine:hover { background: var(--fl-surface); }
.fw-w-search.fw-w-headless .fw-w-body { padding-right: 3.2rem; }

/* Notes */
.fw-notes { display: flex; flex-direction: column; padding-bottom: 0.5rem !important; }
.fw-notes-text { flex: 1; width: 100%; border: 0; resize: none; background: color-mix(in srgb, #F5B400 9%, transparent); border-radius: var(--fl-radius); padding: 0.6rem 0.7rem; color: var(--fl-text); font-size: 0.92rem; line-height: 1.5; outline: none; }
.fw-notes-text:focus { box-shadow: 0 0 0 2px color-mix(in srgb, #F5B400 45%, transparent); }
.fw-notes-state { font-size: 0.7rem; color: var(--fl-text-subtle); height: 1rem; text-align: right; margin-top: 0.2rem; }

/* Checklist */
.fw-check-list { list-style: none; margin: 0; padding: 0; }
.fw-check-list li { display: flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0; border-bottom: 1px solid var(--fl-border); }
.fw-check-list label { display: flex; align-items: flex-start; gap: 0.5rem; flex: 1; padding: 0.25rem 0; cursor: pointer; min-width: 0; font-size: 0.9rem; }
.fw-check-list label span { overflow-wrap: anywhere; }
.fw-check-list .form-check-input { margin-top: 0.2rem; flex: 0 0 auto; }
.fw-check-list li.is-done label span { text-decoration: line-through; color: var(--fl-text-subtle); }
.fw-check-del { opacity: 0; width: 1.6rem; height: 1.6rem; }
.fw-check-list li:hover .fw-check-del, .fw-check-del:focus { opacity: 1; }
@media (hover: none) { .fw-check-del { opacity: 0.6; } }
.fw-check-empty { color: var(--fl-text-muted); font-size: 0.85rem; margin: 0.5rem 0; }
.fw-check-add { margin-top: 0.5rem; }

/* Countdown */
.fw-count { display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 0.25rem 0; }
.fw-count-big { font-size: 2.6rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1; color: var(--fl-accent-text); font-variant-numeric: tabular-nums; }
.fw-count-text { margin-top: 0.3rem; font-size: 0.9rem; color: var(--fl-text-muted); }
.fw-count-text strong { color: var(--fl-text); }
.fw-count-date { font-size: 0.75rem; color: var(--fl-text-subtle); margin-top: 0.15rem; }

/* Timer */
.fw-timer { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.fw-timer-modes { display: inline-flex; background: var(--fl-surface-2); border-radius: 999px; padding: 0.15rem; }
.fw-timer-modes button, .fw-timer-presets button { border: 0; background: transparent; color: var(--fl-text-muted); font-size: 0.76rem; font-weight: 600; padding: 0.2rem 0.7rem; border-radius: 999px; }
.fw-timer-modes button.is-on { background: var(--fl-surface); color: var(--fl-text); box-shadow: var(--fl-shadow-sm); }
.fw-timer-face { --p: 0; width: 7.4rem; height: 7.4rem; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(closest-side, var(--fl-surface) 86%, transparent 87%), conic-gradient(var(--fl-accent) calc(var(--p) * 360deg), var(--fl-surface-3) 0); }
.fw-timer-left { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fw-timer-face small { font-size: 0.7rem; color: var(--fl-text-muted); text-align: center; max-width: 6rem; line-height: 1.2; }
.fw-timer-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.15rem; }
.fw-timer-presets button.is-on { background: var(--fl-accent-soft); color: var(--fl-accent-text); }
.fw-timer-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: center; }

/* Weather */
.fw-wx-now { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.fw-wx-now > .fw-wx-i { font-size: 2.6rem; }
.fw-wx-temp { font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.fw-wx-what { color: var(--fl-text-muted); font-size: 0.82rem; }
.fw-wx-place { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; min-width: 0; }
.fw-wx-where { border: 0; background: transparent; padding: 0; font-weight: 650; color: var(--fl-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-wx-where:hover { color: var(--fl-accent-text); }
.fw-wx-place small { color: var(--fl-text-subtle); font-size: 0.72rem; }
.fw-wx-i { color: #F5A524; }
.fw-wx-clouds, .fw-wx-cloud, .fw-wx-cloud-fog2 { color: var(--fl-text-subtle); }
.fw-wx-cloud-rain, .fw-wx-cloud-rain-heavy, .fw-wx-cloud-drizzle, .fw-wx-cloud-sleet { color: #3B82F6; }
.fw-wx-cloud-snow, .fw-wx-snow2 { color: #7DD3FC; }
.fw-wx-moon, .fw-wx-moon-stars, .fw-wx-cloud-moon { color: #8B9DC3; }
.fw-wx-cloud-lightning-rain { color: #A855F7; }
.fw-wx-hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(2.6rem, 1fr); gap: 0.25rem; margin: 0.75rem 0 0.25rem; overflow-x: auto; scrollbar-width: none; }
.fw-wx-hours > div { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; font-size: 0.78rem; padding: 0.3rem 0; border-radius: 10px; background: var(--fl-surface-2); }
.fw-wx-hours small { color: var(--fl-text-subtle); font-size: 0.68rem; }
.fw-wx-hours .fw-wx-i { font-size: 1.05rem; }
/* Blue, pulled towards the widget's own text colour so it reads on light and dark widgets. */
.fw-wx-rain { color: color-mix(in srgb, #3B82F6 70%, currentColor); font-size: 0.68rem; font-weight: 600; }
.fw-wx-days { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.fw-wx-days li { display: grid; grid-template-columns: 1fr 1.6rem 2.4rem auto; align-items: center; gap: 0.5rem; padding: 0.2rem 0; border-top: 1px solid var(--fl-border); font-size: 0.84rem; }
.fw-wx-range { text-align: right; color: var(--fl-text-subtle); font-variant-numeric: tabular-nums; }
.fw-wx-range strong { color: var(--fl-text); }
.fw-wx-search { display: flex; flex-direction: column; gap: 0.35rem; }
.fw-wx-results { list-style: none; padding: 0; margin: 0; }
.fw-wx-results button { border: 0; background: transparent; width: 100%; text-align: left; padding: 0.35rem 0.4rem; border-radius: 8px; color: var(--fl-text); }
.fw-wx-results button:hover { background: var(--fl-surface-2); }
.fw-wx-results small { color: var(--fl-text-muted); }

/* News */
.fw-news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.fw-news-list.is-two { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.fw-news-item a { display: flex; gap: 0.7rem; padding: 0.45rem 0.35rem; margin: 0 -0.35rem; border-radius: 10px; color: var(--fl-text); text-decoration: none; }
.fw-news-item a:hover { background: var(--fl-surface-2); }
.fw-news-item img { width: 5.5rem; height: 4rem; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--fl-surface-2); }
.fw-news-item span { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.fw-news-item strong { font-size: 0.88rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fw-news-sum { color: var(--fl-text-muted); font-size: 0.78rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fw-news-meta { color: var(--fl-text-subtle); font-size: 0.72rem; }
.fw-news-item:not(.has-pic) a { padding-top: 0.35rem; padding-bottom: 0.35rem; }

/* Quick links */
.fw-links { position: relative; }
.fw-links-group + .fw-links-group { margin-top: 0.6rem; }
.fw-links-group h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fl-text-subtle); font-weight: 700; margin: 0.15rem 0 0.4rem; }
.fw-links-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile, 84px), 1fr)); gap: 0.35rem; }
.fw-links-s { --tile: 66px; --icon: 30px; }
.fw-links-m { --tile: 84px; --icon: 40px; }
.fw-links-l { --tile: 104px; --icon: 52px; }
.fw-link { position: relative; border-radius: 12px; }
.fw-link > a, .fw-link-add > button { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; width: 100%; padding: 0.55rem 0.25rem 0.45rem; border-radius: 12px; color: var(--fl-text); text-decoration: none; border: 0; background: transparent; }
.fw-link > a:hover, .fw-link-add > button:hover, .fw-link > a:focus-visible { background: var(--fl-surface-2); }
.fw-link-icon { width: var(--icon, 40px); height: var(--icon, 40px); border-radius: 11px; display: grid; place-items: center; overflow: hidden; background: var(--fl-surface); box-shadow: 0 0 0 1px var(--fl-border), var(--fl-shadow-sm); }
.fw-link-icon img { width: 70%; height: 70%; object-fit: contain; }
.fw-link-icon img[src^="/assets/apps/"] { width: 100%; height: 100%; }
.fw-link-name { font-size: 0.74rem; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-link-add .fw-link-icon { background: transparent; box-shadow: none; border: 1.5px dashed var(--fl-border-strong); color: var(--fl-text-subtle); }
.fw-link-add .fw-link-name { color: var(--fl-text-subtle); }
.fw-link-edit { position: absolute; top: 2px; right: 2px; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 0; background: var(--fl-surface); box-shadow: var(--fl-shadow-sm); color: var(--fl-text-muted); font-size: 0.7rem; display: none; place-items: center; padding: 0; }
.fw-link:hover .fw-link-edit, .fw-board.is-editing .fw-link-edit { display: grid; }
@media (hover: none) { .fw-board:not(.is-editing) .fw-link-edit { display: none !important; } }
.fw-fnews .fw-news-item img { object-fit: contain; background: var(--fl-surface-2); padding: 0.2rem; }
.fw-board.is-narrow:not(.is-editing) .grid-stack-item > .ui-resizable-handle { display: none !important; }
@media (hover: none) { .fw-w-search.fw-w-headless .fw-w-body { padding-right: 0.85rem; } }
.fw-board.is-narrow .fw-links-m { --tile: 70px; --icon: 38px; }
.fw-clock { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 1.25rem; }
.fw-clock-zones { flex: 1 1 13rem; }

/* Rows of app widgets (tasks, plans, mail, sites) */
.fw-rows { list-style: none; margin: 0; padding: 0; }
.fw-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.42rem 0.4rem; margin: 0 -0.4rem; border-radius: 10px; color: var(--fl-text); text-decoration: none; }
.fw-row:hover { background: var(--fl-surface-2); }
.fw-row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fw-row-main strong { font-size: 0.87rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-row-main small { color: var(--fl-text-muted); font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; flex: 0 0 auto; font-size: 0.74rem; color: var(--fl-text-muted); }
.fw-rows-tight .fw-row { padding-top: 0.28rem; padding-bottom: 0.28rem; }
.fw-big strong { font-size: 1.15rem; font-weight: 700; color: var(--fl-text); line-height: 1; }
.fw-task-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.fw-task.is-overdue .fw-due { color: var(--fl-danger); font-weight: 600; }
.fw-status { font-size: 0.68rem; font-weight: 650; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--fl-surface-2); color: var(--fl-text-muted); white-space: nowrap; }
.fw-status-in_progress { background: var(--fl-info-soft); color: var(--fl-info); }
.fw-status-overdue { background: var(--fl-danger-soft); color: var(--fl-danger); }
.fw-status-ok { background: var(--fl-success-soft); color: var(--fl-success); }
.fw-status-own { background: var(--fl-accent-soft); color: var(--fl-accent-text); }
.fw-cal { width: 2.4rem; height: 2.5rem; border-radius: 9px; background: var(--fl-surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: 0 0 auto; }
.fw-cal small { font-size: 0.6rem; text-transform: uppercase; color: var(--fl-danger); font-weight: 700; }
.fw-cal strong { font-size: 1.05rem; }
.fw-cal.is-open { color: var(--fl-text-subtle); font-size: 1.1rem; }
.fw-people { white-space: nowrap; }
.fw-subhead { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; color: var(--fl-text-subtle); margin: 0.35rem 0 0.15rem; }
.fw-subhead-attn { color: var(--fl-warning); }
.fw-mbox + .fw-mbox { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--fl-border); }
.fw-mbox-head { display: flex; align-items: center; gap: 0.45rem; color: var(--fl-text); text-decoration: none; font-size: 0.86rem; margin-bottom: 0.15rem; }
.fw-mbox-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.fw-mbox-head .bi { color: var(--fl-accent-text); }
.fw-unread { font-size: 0.72rem; font-weight: 650; color: var(--fl-text-subtle); white-space: nowrap; }
.fw-unread.is-on { color: var(--fl-accent-text); }
.fw-live { color: var(--fl-success); font-weight: 600; }
.fw-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.fw-week-day { background: var(--fl-surface-2); border-radius: 10px; padding: 0.35rem; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; min-height: 4.5rem; }
.fw-week-day.is-today { background: var(--fl-accent-soft); box-shadow: inset 0 0 0 1.5px var(--fl-accent); }
.fw-week-day.is-past { opacity: 0.6; }
.fw-week-head { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 0.1rem; }
.fw-week-head small { color: var(--fl-text-muted); font-size: 0.7rem; text-transform: capitalize; }
.fw-week-head strong { font-size: 0.95rem; }
.fw-week-item { display: block; font-size: 0.72rem; line-height: 1.25; padding: 0.2rem 0.35rem; border-radius: 6px; background: var(--fl-surface); color: var(--fl-text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--fl-accent); }
.fw-week-item.is-task { border-left-color: #F5B400; }
.fw-week-item.is-late { border-left-color: var(--fl-danger); }
.fw-week-item small { color: var(--fl-text-muted); }
.fw-timer-face { flex: 0 0 auto; width: 6.4rem; height: 6.4rem; }
.fw-cal.is-open .bi { color: var(--fl-text-muted); }

/* Exchange rates */
.fw-rates-list { list-style: none; margin: 0; padding: 0; }
.fw-rates-list li { display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid var(--fl-border); font-size: 0.86rem; }
.fw-rates-code { font-weight: 700; font-size: 0.78rem; color: var(--fl-accent-text); }
.fw-rates-name { color: var(--fl-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; }
.fw-rates-list strong { font-variant-numeric: tabular-nums; }
.fw-rates-calc { display: grid; grid-template-columns: minmax(4rem, 1fr) 5rem auto minmax(5rem, 1.3fr); align-items: center; gap: 0.35rem; margin-top: 0.6rem; }
.fw-rates-calc output { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.fw-rates-eq { color: var(--fl-text-subtle); }

/* Picture of the day */
.fw-potd { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 0.6rem !important; }
.fw-potd-pic { flex: 1; min-height: 0; border-radius: var(--fl-radius); overflow: hidden; background: var(--fl-surface-2); display: block; }
.fw-potd-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.fw-potd-pic:hover img { transform: scale(1.03); }
.fw-potd-text { display: flex; flex-direction: column; min-width: 0; }
.fw-potd-text strong { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-potd-text small { font-size: 0.72rem; color: var(--fl-text-subtle); }
.fw-potd-text a { color: inherit; }

/* "+ N more" under a list */
.fw-more { display: inline-block; margin-top: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--fl-accent-text); text-decoration: none; }
.fw-more:hover { text-decoration: underline; }

/* New board: how to start */
.fw-starts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.5rem; margin-bottom: 0.75rem; }
.fw-start { position: relative; cursor: pointer; margin: 0; }
.fw-start input { position: absolute; opacity: 0; pointer-events: none; }
.fw-start > span { display: grid; grid-template-columns: auto 1fr; column-gap: 0.6rem; align-items: center; height: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--fl-border); border-radius: var(--fl-radius); background: var(--fl-surface); }
.fw-start .bi { grid-row: span 2; font-size: 1.25rem; color: var(--fl-accent-text); width: 2.2rem; height: 2.2rem; border-radius: 10px; display: grid; place-items: center; background: var(--fl-accent-soft); }
.fw-start strong { font-size: 0.88rem; }
.fw-start small { color: var(--fl-text-muted); font-size: 0.75rem; line-height: 1.3; }
.fw-start:hover > span { border-color: var(--fl-border-strong); }
.fw-start input:checked + span { border-color: var(--fl-accent); box-shadow: 0 0 0 1px var(--fl-accent); background: var(--fl-accent-soft); }
.fw-start input:focus-visible + span { outline: 2px solid var(--fl-accent); outline-offset: 2px; }

/* ---------------- Widgets adapt to their own width ---------------- */

@container w (max-width: 360px) {
    .fw-wx-now { gap: 0.5rem; }
    .fw-wx-place { margin-left: 0; width: 100%; align-items: flex-start; text-align: left; }
    .fw-wx-now > .fw-wx-i { font-size: 2.1rem; }
    .fw-wx-temp { font-size: 1.7rem; }
    .fw-row-side .fw-status { display: none; }
    .fw-row { gap: 0.45rem; }
    .fw-cal { width: 2.1rem; height: 2.2rem; }
    .fw-rates-calc { grid-template-columns: 1fr 1fr; }
    .fw-rates-eq { display: none; }
    .fw-rates-calc output { grid-column: 1 / -1; text-align: left; font-size: 1.1rem; }
    .fw-rates-name { display: none; }
    .fw-rates-list li { grid-template-columns: 2.6rem 1fr; }
    .fw-rates-list strong { text-align: right; }
    .fw-clock-time { font-size: 2rem; }
    .fw-timer-face { width: 5.6rem; height: 5.6rem; }
    .fw-timer-left { font-size: 1.35rem; }
    .fw-search-engine { max-width: 5.5rem; }
    .fw-news-item img { width: 4.4rem; height: 3.3rem; }
}
@container w (max-width: 250px) {
    .fw-row-side { display: none; }
    .fw-wx-days li { grid-template-columns: 1fr 1.4rem auto; }
    .fw-wx-days .fw-wx-rain { display: none; }
    .fw-search-engine { display: none; }
    .fw-timer-presets button { padding: 0.2rem 0.45rem; }
}
@container w (min-width: 520px) {
    .fw-clock-time { font-size: 2.8rem; }
    .fw-count-big { font-size: 3.2rem; }
}
/* The week: seven columns only when there is room, a list otherwise. */
@container w (max-width: 620px) {
    .fw-week { grid-template-columns: 1fr; gap: 0.25rem; }
    .fw-week-day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; padding: 0.35rem 0.5rem; }
    .fw-week-head { margin: 0; min-width: 4.2rem; }
    .fw-week-item { flex: 1 1 10rem; }
    .fw-week-day.is-empty { opacity: 0.55; }
}

/* Header picture choice */
.fw-hero-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.6rem; }
.fw-hero-choice { position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 0.3rem; margin: 0; }
.fw-hero-choice input { position: absolute; opacity: 0; pointer-events: none; }
.fw-hero-thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--fl-surface-2); border: 2px solid transparent; font-size: 1.4rem; color: var(--fl-text-muted); }
.fw-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fw-hero-thumb-daily { background: linear-gradient(135deg, var(--fl-accent-soft), var(--fl-surface-2)); color: var(--fl-accent-text); }
.fw-hero-choice small { font-size: 0.75rem; color: var(--fl-text-muted); text-align: center; }
.fw-hero-choice input:checked + .fw-hero-thumb { border-color: var(--fl-accent); box-shadow: 0 0 0 2px var(--fl-accent-soft); }
.fw-hero-choice input:focus-visible + .fw-hero-thumb { outline: 2px solid var(--fl-accent); outline-offset: 2px; }

/* Header settings */
.fw-choice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.fw-choice-row .form-check { margin: 0; }
.fw-header-widget { width: auto; min-width: 11rem; }
.fw-hero-thumb-icon { background: linear-gradient(135deg, var(--fl-accent-soft), var(--fl-surface-2)); color: var(--fl-accent-text); }
.fw-header-extra { margin-bottom: 1rem; }
.fw-place { display: flex; gap: 0.5rem; }
.fw-place-results { list-style: none; padding: 0; margin: 0.25rem 0 0; }
.fw-place-results button { border: 0; background: transparent; width: 100%; text-align: left; padding: 0.35rem 0.5rem; border-radius: 8px; color: var(--fl-text); }
.fw-place-results button:hover { background: var(--fl-surface-2); }
.fw-place-results small { color: var(--fl-text-muted); }
.fw-own-preview { display: block; margin-top: 0.5rem; max-width: 280px; border-radius: 10px; }
.fw-hero-widget .fw-w { color: var(--fl-text); }
/* The header hidden: the board starts right under the top bar. */
.fw-sheet.no-hero { margin-top: 0; box-shadow: none; border-radius: 0; background: transparent; padding-left: 0; padding-right: 0; }
.fw-motto { font-weight: 300; letter-spacing: -0.01em; color: var(--fl-text-muted); }

/* ================= Widget looks (round 7): card, colour, designs ================= */

/* Colour: the widget's accent (board.js applyLook adds fw-c-<name>). */
.fw-w, .fw-color-dot { --w-c: #2F5BFF; }
.fw-c-sky { --w-c: #0284C7; }
.fw-c-violet { --w-c: #7C3AED; }
.fw-c-pink { --w-c: #DB2777; }
.fw-c-red { --w-c: #DC2626; }
.fw-c-orange { --w-c: #EA580C; }
.fw-c-amber { --w-c: #B45309; }
.fw-c-green { --w-c: #15803D; }
.fw-c-teal { --w-c: #0F766E; }
.fw-c-slate { --w-c: #475569; }
.fw-w[class*="fw-c-"] {
    --fl-accent: var(--w-c); --fl-accent-hover: color-mix(in srgb, var(--w-c) 86%, #000); --fl-accent-active: color-mix(in srgb, var(--w-c) 74%, #000);
    --fl-accent-text: var(--w-c); --fl-accent-soft: color-mix(in srgb, var(--w-c) 11%, var(--fl-surface)); --fl-accent-soft-text: color-mix(in srgb, var(--w-c) 80%, var(--fl-text));
    --fl-focus: 0 0 0 3px color-mix(in srgb, var(--w-c) 30%, transparent);
}
[data-bs-theme="dark"] .fw-w[class*="fw-c-"] {
    --fl-accent-text: color-mix(in srgb, var(--w-c) 50%, #fff); --fl-accent-soft: color-mix(in srgb, var(--w-c) 22%, transparent); --fl-accent-soft-text: color-mix(in srgb, var(--w-c) 40%, #fff);
}

/* Card styles */
.fw-w[data-style="soft"] { --w-bg: color-mix(in srgb, var(--w-c) 8%, var(--fl-surface)); background: var(--w-bg); border-color: color-mix(in srgb, var(--w-c) 22%, var(--fl-border)); --fl-surface-2: color-mix(in srgb, var(--w-c) 9%, var(--fl-surface)); }
[data-bs-theme="dark"] .fw-w[data-style="soft"] { --w-bg: color-mix(in srgb, var(--w-c) 16%, var(--fl-surface)); --fl-surface-2: color-mix(in srgb, var(--w-c) 22%, var(--fl-surface)); }
.fw-w[data-style="outline"] { --w-bg: var(--fl-bg); background: transparent; border: 1.5px solid color-mix(in srgb, var(--w-c) 60%, var(--fl-border)); box-shadow: none; }
.fw-w[data-style="plain"] { --w-bg: var(--fl-bg); background: transparent; border-color: transparent; box-shadow: none; }
.fw-board.is-editing .fw-w[data-style="plain"] { border-color: var(--fl-border); }
.fw-w[data-style="solid"][data-design], .fw-w[data-style="gradient"][data-design] {
    --w-bg: var(--w-c); background: var(--w-bg); border-color: transparent; color: #fff;
    --fl-text: #fff; --fl-text-muted: rgba(255, 255, 255, 0.86); --fl-text-subtle: rgba(255, 255, 255, 0.72);
    --fl-surface: rgba(255, 255, 255, 0.16); --fl-surface-2: rgba(255, 255, 255, 0.14); --fl-surface-3: rgba(255, 255, 255, 0.24);
    --fl-border: rgba(255, 255, 255, 0.24); --fl-border-strong: rgba(255, 255, 255, 0.45);
    --fl-accent: #fff; --fl-on-accent: var(--w-c); --fl-accent-hover: rgba(255, 255, 255, 0.9); --fl-accent-active: rgba(255, 255, 255, 0.8);
    --fl-accent-text: #fff; --fl-accent-soft: rgba(255, 255, 255, 0.22); --fl-accent-soft-text: #fff; --fl-danger: #FFE0DC; --fl-focus: 0 0 0 3px rgba(255, 255, 255, 0.45);
}
.fw-w[data-style="gradient"][data-design] { --w-bg: linear-gradient(140deg, var(--w-c), color-mix(in srgb, var(--w-c) 55%, #000)); }
@supports (color: oklch(from red l c h)) {
    .fw-w[data-style="gradient"][data-design] { --w-bg: linear-gradient(140deg, oklch(from var(--w-c) calc(l + 0.04) c calc(h - 25)), oklch(from var(--w-c) calc(l - 0.1) c calc(h + 35))); }
}
.fw-w[data-style="solid"] .text-success, .fw-w[data-style="gradient"] .text-success { color: #D9FBE5 !important; }
.fw-w[data-style="solid"] .text-danger, .fw-w[data-style="gradient"] .text-danger { color: #FFE0DC !important; }
.fw-w[data-style="solid"] option, .fw-w[data-style="gradient"] option { color: #0E1525; background: #fff; }
.fw-w[data-style="solid"] .fw-subhead-attn, .fw-w[data-style="gradient"] .fw-subhead-attn { color: #FFE8A3; }
.fw-w[data-style="solid"] .form-check-input:checked, .fw-w[data-style="gradient"] .form-check-input:checked { background-color: color-mix(in srgb, var(--w-c) 60%, #000); border-color: #fff; }
.fw-w[data-style="solid"] .dropdown-menu, .fw-w[data-style="gradient"] .dropdown-menu {
    --fl-surface: #FFFFFF; --fl-surface-2: #F8F9FB; --fl-text: #0E1525; --fl-text-subtle: #6B7383; --fl-border: #E3E6EC; --fl-accent-soft: #EBF0FF; --fl-accent-soft-text: #1E3FCC; color: #0E1525;
}
[data-bs-theme="dark"] .fw-w[data-style="solid"] .dropdown-menu, [data-bs-theme="dark"] .fw-w[data-style="gradient"] .dropdown-menu {
    --fl-surface: #141C2F; --fl-surface-2: #182136; --fl-text: #EDF0F6; --fl-text-subtle: #8792A8; --fl-border: #253049; --fl-accent-soft: rgba(47, 91, 255, 0.16); --fl-accent-soft-text: #A9BAFF; color: #EDF0F6;
}
.fw-w[data-style="solid"] .fw-w-badge, .fw-w[data-style="gradient"] .fw-w-badge { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* The settings dialog: designs, cards, colours; it stands beside the widget for the live preview. */
.fw-set-heading { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fl-text-subtle); font-weight: 700; margin: 1.25rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--fl-border); }
.fw-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 0.4rem; }
.fw-design, .fw-style-opt, .fw-color-opt { margin: 0; cursor: pointer; }
.fw-design-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; height: 100%; padding: 0.65rem 0.35rem 0.55rem; border: 1.5px solid var(--fl-border); border-radius: 12px; text-align: center; font-size: 0.78rem; line-height: 1.2; color: var(--fl-text-muted); transition: border-color 0.12s, background 0.12s; }
.fw-design-in .bi { font-size: 1.35rem; color: var(--fl-text-subtle); }
.fw-design-in > span { overflow-wrap: anywhere; hyphens: auto; }
.fw-design:hover .fw-design-in { border-color: var(--fl-border-strong); }
.fw-design input:checked + .fw-design-in { border-color: var(--w-c, var(--fl-accent)); background: color-mix(in srgb, var(--w-c, var(--fl-accent)) 8%, var(--fl-surface)); color: var(--fl-text); font-weight: 600; }
.fw-design input:checked + .fw-design-in .bi { color: var(--w-c, var(--fl-accent)); }
.fw-design input:focus-visible + .fw-design-in, .fw-style-opt input:focus-visible + .fw-style-card, .fw-color-opt input:focus-visible + .fw-color-dot { box-shadow: var(--fl-focus); }
.fw-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem 0.5rem; }
.fw-style-opt { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.76rem; text-align: center; color: var(--fl-text-muted); }
.fw-style-card { --c: var(--w-c, #2F5BFF); height: 2.9rem; border-radius: 10px; padding: 0.55rem 0.6rem; display: flex; flex-direction: column; gap: 0.3rem; background: var(--fl-surface); border: 1px solid var(--fl-border); box-shadow: var(--fl-shadow-sm); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 0.12s; }
.fw-style-card i { display: block; height: 0.3rem; width: 72%; border-radius: 3px; background: var(--fl-text-subtle); opacity: 0.4; }
.fw-style-card i:first-child { width: 42%; background: var(--c); opacity: 1; }
.fw-style-card[data-style="soft"] { background: color-mix(in srgb, var(--c) 10%, var(--fl-surface)); border-color: color-mix(in srgb, var(--c) 25%, var(--fl-border)); }
.fw-style-card[data-style="solid"] { background: var(--c); border-color: transparent; }
.fw-style-card[data-style="gradient"] { background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); border-color: transparent; }
.fw-style-card[data-style="solid"] i, .fw-style-card[data-style="gradient"] i { background: #fff; opacity: 0.55; }
.fw-style-card[data-style="solid"] i:first-child, .fw-style-card[data-style="gradient"] i:first-child { opacity: 1; }
.fw-style-card[data-style="outline"] { background: transparent; border: 1.5px solid var(--c); box-shadow: none; }
.fw-style-card[data-style="plain"] { background: transparent; border: 1px dashed var(--fl-border-strong); box-shadow: none; }
.fw-style-opt input:checked + .fw-style-card { outline-color: var(--c); }
.fw-style-opt input:checked ~ .fw-style-name { color: var(--fl-text); font-weight: 600; }
.fw-colors { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fw-color-dot { display: block; width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--w-c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); outline: 2px solid transparent; outline-offset: 2px; transition: transform 0.12s; }
.fw-color-opt:hover .fw-color-dot { transform: scale(1.08); }
.fw-color-opt input:checked + .fw-color-dot { outline-color: var(--fl-text); }
@media (min-width: 1100px) {
    #fw-settings.is-left .modal-dialog { margin-left: max(1.5rem, calc(50vw - 600px)); margin-right: auto; }
    #fw-settings.is-right .modal-dialog { margin-right: max(1.5rem, calc(50vw - 600px)); margin-left: auto; }
}
body:has(#fw-settings.show) .modal-backdrop.show { opacity: 0.25; }

/* ---- Clock ---- */
.fw-w-clock[data-design="analog"] .fw-clock-main { flex-direction: row; align-items: center; gap: 0.9rem; }
.fw-analog { width: 6.6rem; height: 6.6rem; flex: 0 0 auto; }
.fw-analog-face { fill: var(--fl-surface-2); stroke: var(--fl-border); stroke-width: 1; }
.fw-analog line { stroke-linecap: round; }
.fw-analog .is-hour { stroke: var(--fl-text); stroke-width: 1.8; }
.fw-analog .is-min { stroke: var(--fl-text-subtle); stroke-width: 0.7; }
.fw-analog-h { stroke: var(--fl-text); stroke-width: 3.6; }
.fw-analog-m { stroke: var(--fl-text); stroke-width: 2.4; }
.fw-analog-s { stroke: var(--fl-accent); stroke-width: 1.1; }
.fw-analog-pin { fill: var(--fl-accent); }
.fw-clock-side { display: flex; flex-direction: column; min-width: 0; }
.fw-w-clock[data-design="analog"] .fw-clock-time { font-size: 1.5rem; }
.fw-w-clock[data-design="minimal"] .fw-clock { justify-content: center; text-align: center; flex-direction: column; }
.fw-w-clock[data-design="minimal"] .fw-clock-main { align-items: center; }
.fw-w-clock[data-design="minimal"] .fw-clock-time { font-size: clamp(2.6rem, 20cqi, 5.5rem); font-weight: 250; letter-spacing: -0.04em; }
.fw-w-clock[data-design="minimal"] .fw-clock-date { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; margin-top: 0.2rem; }
.fw-w-clock[data-design="minimal"] .fw-clock-zones { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; flex: 0 0 auto; }
.fw-w-clock[data-design="minimal"] .fw-clock-zones li { border: 0; display: flex; gap: 0.35rem; padding: 0; }
.fw-w-clock[data-design="minimal"] .fw-clock-zones small { display: none; }
.fw-flip { display: inline-flex; align-items: center; gap: 0.3rem; font-variant-numeric: tabular-nums; }
.fw-flip-pair { display: inline-flex; gap: 0.2rem; }
.fw-flip-pair b { position: relative; display: grid; place-items: center; width: 2.1rem; height: 2.9rem; border-radius: 8px; background: linear-gradient(#262E40 50%, #1D2433 50%); color: #fff; font-size: 2rem; font-weight: 700; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18); }
.fw-flip-pair b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.45); }
.fw-flip > i { font-style: normal; font-size: 1.6rem; font-weight: 700; color: var(--fl-text-subtle); }
.fw-flip small { align-self: flex-end; font-size: 0.75rem; font-weight: 650; color: var(--fl-text-muted); margin-left: 0.2rem; }
.fw-w-clock[data-design="flip"] .fw-clock-main { gap: 0.45rem; }
@container w (max-width: 260px) { .fw-flip-pair b { width: 1.6rem; height: 2.3rem; font-size: 1.5rem; } .fw-analog { width: 5.4rem; height: 5.4rem; } }

/* ---- Countdown ---- */
.fw-count-units { display: flex; justify-content: center; gap: 0.4rem; }
.fw-count-units span { display: flex; flex-direction: column; align-items: center; min-width: 3.1rem; padding: 0.45rem 0.3rem 0.35rem; border-radius: 10px; background: var(--fl-accent-soft); }
.fw-count-units b { font-size: 1.55rem; font-weight: 750; line-height: 1; color: var(--fl-accent-text); font-variant-numeric: tabular-nums; }
.fw-count-units small { font-size: 0.66rem; color: var(--fl-text-muted); margin-top: 0.2rem; }
.fw-count-cal { display: flex; align-items: center; gap: 0.9rem; text-align: left; }
.fw-count-page { flex: 0 0 auto; width: 5.4rem; border-radius: 10px; overflow: hidden; text-align: center; background: var(--fl-surface); box-shadow: 0 0 0 1px var(--fl-border), var(--fl-shadow-sm); display: flex; flex-direction: column; }
.fw-count-page small { background: var(--fl-accent); color: var(--fl-on-accent); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0; }
.fw-count-page b { font-size: 2.2rem; font-weight: 750; line-height: 1.15; padding-top: 0.15rem; }
.fw-count-page span { font-size: 0.62rem; color: var(--fl-text-muted); padding-bottom: 0.35rem; text-transform: capitalize; }
.fw-count-side { display: flex; flex-direction: column; min-width: 0; }
.fw-count-side strong { font-size: 0.95rem; overflow-wrap: anywhere; }
.fw-count-side .fw-count-big { font-size: 2rem; margin-top: 0.1rem; }
.fw-count-side .fw-count-text { margin: 0; }
.fw-count-line { margin: 0; font-size: 0.95rem; color: var(--fl-text-muted); text-align: left; }
.fw-count-line b { font-size: 1.35rem; color: var(--fl-accent-text); font-variant-numeric: tabular-nums; }
.fw-count-line strong { color: var(--fl-text); }

/* ---- Notes ---- */
.fw-notes-text { --note: #F5B400; background: color-mix(in srgb, var(--note) 9%, transparent); }
.fw-notes-text:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--note) 45%, transparent); }
.fw-w-notes[class*="fw-c-"] .fw-notes-text { --note: var(--w-c); }
.fw-w-notes[data-design="paper"] .fw-notes-text { --line: 1.6rem; line-height: var(--line); padding: 0.15rem 0.7rem 0 2.1rem; background-color: var(--fl-surface); background-attachment: local;
    background-image: linear-gradient(90deg, transparent 1.55rem, color-mix(in srgb, #E5484D 45%, transparent) 1.55rem, color-mix(in srgb, #E5484D 45%, transparent) calc(1.55rem + 1px), transparent calc(1.55rem + 1px)),
        repeating-linear-gradient(transparent 0, transparent calc(var(--line) - 1px), color-mix(in srgb, var(--fl-accent) 18%, var(--fl-border)) calc(var(--line) - 1px), color-mix(in srgb, var(--fl-accent) 18%, var(--fl-border)) var(--line));
    box-shadow: 0 0 0 1px var(--fl-border); }
.fw-w-notes[data-design="plain"] .fw-notes-text { background: transparent; padding: 0.2rem 0.1rem; }
.fw-w-notes[data-design="mono"] .fw-notes-text { font-family: var(--fl-font-mono); font-size: 0.84rem; line-height: 1.55; background: var(--fl-surface-2); box-shadow: inset 0 0 0 1px var(--fl-border); }

/* ---- Search ---- */
.fw-w-search[data-design="box"] .fw-search { border-radius: 10px; background: var(--fl-surface); border-width: 1.5px; }
.fw-w-search[data-design="line"] .fw-search { border-radius: 0; background: transparent; border-width: 0 0 2px; padding-left: 0.2rem; }
.fw-w-search[data-design="line"] .fw-search:focus-within { box-shadow: none; }
.fw-w-search[data-design="big"] .fw-search { border-radius: 18px; padding: 0.45rem 0.55rem 0.45rem 1.25rem; box-shadow: var(--fl-shadow-sm); background: var(--fl-surface); }
.fw-w-search[data-design="big"] .fw-search .form-control { font-size: clamp(1rem, 5.5cqi, 1.25rem); }
.fw-w-search[data-design="big"] .fw-search > .bi { font-size: 1.25rem; color: var(--fl-accent-text); }

/* ---- Checklist ---- */
.fw-check-progress { display: flex; align-items: center; gap: 0.6rem; margin: 0.1rem 0 0.45rem; }
.fw-check-bar { flex: 1; height: 0.45rem; border-radius: 999px; background: var(--fl-surface-3); overflow: hidden; }
.fw-check-bar span { display: block; height: 100%; border-radius: inherit; background: var(--fl-accent); transition: width 0.3s ease; }
.fw-check-progress small { font-size: 0.72rem; color: var(--fl-text-muted); white-space: nowrap; }
.fw-w-checklist[data-design="cards"] .fw-check-list { display: grid; gap: 0.3rem; }
.fw-w-checklist[data-design="cards"] .fw-check-list li { border: 0; background: var(--fl-surface-2); border-radius: 10px; padding: 0.1rem 0.2rem 0.1rem 0.6rem; }
.fw-w-checklist[data-design="cards"] .fw-check-list li.is-done { opacity: 0.7; }
.fw-w-checklist[data-design="compact"] .fw-check-list li { border: 0; padding: 0; }
.fw-w-checklist[data-design="compact"] .fw-check-list label { font-size: 0.82rem; padding: 0.1rem 0; }

/* ---- Exchange rates ---- */
.fw-w-rates[data-design="tiles"] .fw-rates-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.8rem, 1fr)); gap: 0.35rem; }
.fw-w-rates[data-design="tiles"] .fw-rates-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; border: 0; border-radius: 10px; padding: 0.45rem 0.6rem; background: var(--fl-surface-2); }
.fw-w-rates[data-design="tiles"] .fw-rates-name { display: block; max-width: 100%; font-size: 0.68rem; }
.fw-w-rates[data-design="tiles"] .fw-rates-list strong { font-size: 1.02rem; }
.fw-w-rates[data-design="converter"] .fw-rates-calc { margin: 0.1rem 0 0.6rem; grid-template-columns: 1fr 5.2rem; }
.fw-w-rates[data-design="converter"] .fw-rates-eq { display: none; }
.fw-w-rates[data-design="converter"] .fw-rates-calc output { grid-column: 1 / -1; text-align: left; font-size: 1.7rem; letter-spacing: -0.02em; color: var(--fl-accent-text); }
.fw-w-rates[data-design="converter"] .fw-rates-list li { font-size: 0.8rem; padding: 0.15rem 0; }
.fw-w-rates[data-design="ticker"] .fw-rates-list { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.fw-w-rates[data-design="ticker"] .fw-rates-list li { display: inline-flex; gap: 0.4rem; border: 0; padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--fl-surface-2); font-size: 0.82rem; }
.fw-w-rates[data-design="ticker"] .fw-rates-name, .fw-w-rates[data-design="ticker"] .fw-rates-calc { display: none !important; }

/* ---- Timer ---- */
.fw-w-timer[data-design="digits"] .fw-timer-face { width: auto; height: auto; border-radius: 0; background: none; padding: 0.2rem 0; }
.fw-w-timer[data-design="digits"] .fw-timer-left { font-size: clamp(2.6rem, 22cqi, 4.2rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.fw-w-timer[data-design="digits"] .fw-timer-face.is-running .fw-timer-left { color: var(--fl-accent-text); }
.fw-w-timer[data-design="bar"] .fw-timer-face { width: 100%; height: auto; border-radius: 0; background: none; gap: 0.3rem; }
.fw-w-timer[data-design="bar"] .fw-timer-left { font-size: 2rem; }
.fw-w-timer[data-design="bar"] .fw-timer-face::after { content: ""; display: block; width: 100%; height: 0.55rem; border-radius: 999px; background: linear-gradient(90deg, var(--fl-accent) calc(var(--p) * 100%), var(--fl-surface-3) 0); }
.fw-w-timer[data-design="bar"] .fw-timer-face small { max-width: none; }

/* ---- Picture of the day ---- */
.fw-w-potd[data-design="overlay"] .fw-potd, .fw-w-potd[data-design="picture"] .fw-potd { position: relative; }
.fw-w-potd[data-design="overlay"] .fw-potd-text { position: absolute; left: 0; right: 0; bottom: 0.6rem; padding: 2.2rem 0.85rem 0.6rem; border-radius: 0 0 var(--fl-radius) var(--fl-radius); background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); color: #fff; pointer-events: none; }
.fw-w-potd[data-design="overlay"] .fw-potd-text small { color: rgba(255, 255, 255, 0.82); }
.fw-w-potd[data-design="overlay"] .fw-potd-text a { pointer-events: auto; }
.fw-w-potd[data-design="picture"] .fw-potd-text { display: none; }
.fw-w-potd[data-design="frame"] .fw-potd-pic { background: #fff; padding: 0.45rem 0.45rem 0.45rem; border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 8px 22px rgba(0, 0, 0, 0.14); transform: rotate(-1deg); margin: 0.2rem 0.3rem 0; }
.fw-w-potd[data-design="frame"] .fw-potd-pic img { border-radius: 2px; }
.fw-w-potd[data-design="frame"] .fw-potd-text { text-align: center; font-style: italic; }

/* ---- Weather ---- */
.fw-wx-line { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.fw-wx-line > .fw-wx-i { font-size: 1.7rem; }
.fw-wx-line .fw-wx-temp { font-size: 1.5rem; }
.fw-wx-line .fw-wx-what { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-wx-line .fw-wx-where { margin-left: auto; font-size: 0.82rem; }
.fw-wx-mini { list-style: none; margin: 0.55rem 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.25rem; }
.fw-wx-mini li { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; font-size: 0.74rem; color: var(--fl-text-subtle); }
.fw-wx-mini small { font-size: 0.68rem; text-transform: capitalize; }
.fw-wx-mini .fw-wx-i { font-size: 1.05rem; }
.fw-wx-mini strong { color: var(--fl-text); }
.fw-wx-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(3.3rem, 1fr); gap: 0.3rem; margin-top: 0.7rem; overflow-x: auto; scrollbar-width: none; }
.fw-wx-cols > div { display: flex; flex-direction: column; align-items: center; gap: 0.12rem; padding: 0.45rem 0.2rem; border-radius: 12px; background: var(--fl-surface-2); font-size: 0.8rem; }
.fw-wx-cols > div.is-today { background: var(--fl-accent-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fl-accent) 50%, transparent); }
.fw-wx-cols small { color: var(--fl-text-muted); font-size: 0.7rem; text-transform: capitalize; }
.fw-wx-col-day { font-weight: 700; font-size: 0.95rem; line-height: 1; }
.fw-wx-cols .fw-wx-i { font-size: 1.35rem; margin: 0.15rem 0; }
.fw-wx-col-min { color: var(--fl-text-subtle); }
.fw-wx-sky { --sky1: #2E86DE; --sky2: #7CC4FA; margin: -0.15rem -0.85rem -0.85rem; padding: 0.85rem 0.95rem 0.7rem; background: linear-gradient(160deg, var(--sky1), var(--sky2)); color: #fff;
    --fl-text: #fff; --fl-text-muted: rgba(255, 255, 255, 0.88); --fl-text-subtle: rgba(255, 255, 255, 0.75); --fl-surface-2: rgba(255, 255, 255, 0.16); }
.fw-wx-sky.is-partly { --sky1: #3D7CC9; --sky2: #A3C4E6; }
.fw-wx-sky.is-clouds { --sky1: #5F7189; --sky2: #9AAABF; }
.fw-wx-sky.is-fog { --sky1: #7E8C99; --sky2: #B3BEC8; }
.fw-wx-sky.is-rain { --sky1: #34495E; --sky2: #6C8199; }
.fw-wx-sky.is-snow { --sky1: #6E86A3; --sky2: #B5C7DB; }
.fw-wx-sky.is-storm { --sky1: #23243A; --sky2: #534A77; }
.fw-wx-sky.is-night { --sky1: #0F1E36; --sky2: #2C4A6E; }
.fw-wx-sky .fw-wx-i { color: #fff !important; }
.fw-wx-sky .fw-wx-rain { color: #CFE8FF; }
.fw-wx-sky .fw-w-note { margin-top: 0.4rem; }
.fw-wx-big { display: flex; flex-direction: column; gap: 0.15rem; }
.fw-wx-big-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.82rem; color: var(--fl-text-muted); }
.fw-wx-big-top .fw-wx-where { color: #fff; }
.fw-wx-big-main { display: flex; align-items: center; gap: 0.6rem; }
.fw-wx-big-main .fw-wx-i { font-size: 3.2rem; }
.fw-wx-big-main .fw-wx-temp { font-size: clamp(3rem, 22cqi, 4.6rem); font-weight: 250; letter-spacing: -0.05em; line-height: 1; }
.fw-wx-big-more { color: var(--fl-text-muted); font-size: 0.78rem; }
.fw-w-weather:not([data-style="standard"]):not([data-style="outline"]):not([data-style="plain"]) .fw-wx-sky { margin: 0; border-radius: 12px; }

/* ---- News, Filambda news, Feed reader ---- */
.fw-news-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.6rem; }
.fw-news-card a { display: flex; flex-direction: column; height: 100%; border-radius: 12px; overflow: hidden; background: var(--fl-surface-2); color: var(--fl-text); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.fw-news-card a:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--fl-shadow-sm); }
.fw-news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--fl-surface-3); }
.fw-fnews .fw-news-card img { object-fit: contain; padding: 0.6rem; }
.fw-news-card span { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.55rem 0.65rem 0.6rem; }
.fw-news-card strong { font-size: 0.86rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fw-news-heads { counter-reset: none; }
.fw-news-heads .fw-news-item a { align-items: baseline; gap: 0.6rem; }
.fw-news-num { flex: 0 0 1.4rem; font-size: 1.15rem; font-weight: 750; color: var(--fl-accent-text); opacity: 0.75; text-align: right; font-variant-numeric: tabular-nums; }
.fw-news-mag.is-wide { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem; align-items: start; }
.fw-news-lead a { display: flex; flex-direction: column; gap: 0.3rem; color: var(--fl-text); text-decoration: none; margin-bottom: 0.5rem; }
.fw-news-lead a:hover { text-decoration: none; }
.fw-news-lead a:hover strong { text-decoration: underline; }
.fw-news-lead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--fl-surface-2); margin-bottom: 0.2rem; }
.fw-fnews .fw-news-lead img { object-fit: contain; padding: 0.8rem; }
.fw-news-lead strong { font-size: 1.12rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.fw-news-lead .fw-news-sum { -webkit-line-clamp: 3; font-size: 0.82rem; }
.fw-news-mag:not(.is-wide) .fw-news-list { border-top: 1px solid var(--fl-border); padding-top: 0.25rem; }

/* ---- Quick links ---- */
.fw-w-links[data-design="list"] .fw-links-tiles { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.1rem 0.5rem; }
.fw-w-links[data-design="list"] .fw-link > a, .fw-w-links[data-design="list"] .fw-link-add > button { flex-direction: row; justify-content: flex-start; gap: 0.6rem; padding: 0.35rem 0.45rem; text-align: left; }
.fw-w-links[data-design="list"] .fw-link-icon { --icon: 28px; border-radius: 8px; flex: 0 0 auto; }
.fw-w-links[data-design="list"] .fw-link-name { font-size: 0.86rem; }
.fw-w-links[data-design="list"] .fw-link-edit { top: 50%; transform: translateY(-50%); right: 4px; }
.fw-w-links[data-design="icons"] .fw-links-tiles { grid-template-columns: repeat(auto-fill, minmax(calc(var(--icon, 40px) + 1rem), 1fr)); gap: 0.2rem; }
.fw-w-links[data-design="icons"] .fw-link > a, .fw-w-links[data-design="icons"] .fw-link-add > button { padding: 0.4rem 0.2rem; }
.fw-w-links[data-design="icons"] .fw-link-icon { border-radius: 50%; }
.fw-w-links[data-design="icons"] .fw-link-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fw-w-links[data-design="chips"] .fw-links-tiles { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.fw-w-links[data-design="chips"] .fw-link > a, .fw-w-links[data-design="chips"] .fw-link-add > button { flex-direction: row; gap: 0.4rem; padding: 0.25rem 0.75rem 0.25rem 0.3rem; border-radius: 999px; background: var(--fl-surface-2); box-shadow: inset 0 0 0 1px var(--fl-border); }
.fw-w-links[data-design="chips"] .fw-link-icon { --icon: 24px; border-radius: 50%; }
.fw-w-links[data-design="chips"] .fw-link-name { font-size: 0.8rem; max-width: 11rem; }
.fw-w-links[data-design="chips"] .fw-link { border-radius: 999px; }
.fw-w-links[data-design="chips"] .fw-link-edit { top: -6px; right: -6px; }

/* ---- Lists of the app widgets: cards, compact, timeline, by deadline ---- */
.fw-w-tasks[data-design="cards"] .fw-rows, .fw-w-myplans[data-design="cards"] .fw-rows { display: grid; gap: 0.35rem; }
.fw-w-tasks[data-design="cards"] .fw-row { margin: 0; padding: 0.5rem 0.65rem; background: var(--fl-surface-2); border-left: 3px solid var(--c, var(--fl-accent)); border-radius: 4px 10px 10px 4px; }
.fw-w-tasks[data-design="cards"] .fw-task-dot { display: none; }
.fw-w-tasks[data-design="cards"] .fw-row-main strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fw-w-tasks[data-design="compact"] .fw-row, .fw-w-myplans[data-design="compact"] .fw-row { padding-top: 0.22rem; padding-bottom: 0.22rem; }
.fw-w-tasks[data-design="compact"] .fw-row-main small, .fw-w-tasks[data-design="compact"] .fw-status,
.fw-w-myplans[data-design="compact"] .fw-row-main small, .fw-w-myplans[data-design="compact"] .fw-cal, .fw-w-myplans[data-design="compact"] .fw-status { display: none; }
.fw-w-tasks[data-design="compact"] .fw-row-side { flex-direction: row; }
.fw-w-tasks[data-design="groups"] .fw-subhead span { font-weight: 600; opacity: 0.7; margin-left: 0.2rem; }
.fw-w-myplans[data-design="cards"] .fw-rows { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.fw-w-myplans[data-design="cards"] .fw-row { margin: 0; height: 100%; flex-direction: column; align-items: flex-start; gap: 0.4rem; padding: 0.65rem; background: var(--fl-surface-2); border-radius: 12px; }
.fw-w-myplans[data-design="cards"] .fw-row-main { width: 100%; }
.fw-w-myplans[data-design="cards"] .fw-row-main strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fw-w-myplans[data-design="cards"] .fw-row-side { flex-direction: row; align-items: center; gap: 0.4rem; }
.fw-w-myplans[data-design="cards"] .fw-cal { background: var(--fl-surface); }
.fw-w-myplans[data-design="timeline"] .fw-rows { position: relative; margin-left: 0.45rem; padding-left: 1rem; border-left: 2px solid var(--fl-border); }
.fw-w-myplans[data-design="timeline"] .fw-rows li { position: relative; }
.fw-w-myplans[data-design="timeline"] .fw-rows li::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--fl-accent); box-shadow: 0 0 0 3px var(--fl-surface); }
.fw-w-myplans[data-design="timeline"][data-style="solid"] .fw-rows li::before, .fw-w-myplans[data-design="timeline"][data-style="gradient"] .fw-rows li::before { box-shadow: none; }
.fw-w-myplans[data-design="timeline"] .fw-cal { background: transparent; width: 2.2rem; }
.fw-mail-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; flex: 0 0 auto; background: #2F5BFF; }
.fw-mail-dot.fw-mail-dot-msg { width: auto; height: auto; background: none; color: var(--fl-accent); font-size: 0.72rem; line-height: 1; }
.fw-mail-dot-1 { background: #DB2777; } .fw-mail-dot-2 { background: #15803D; } .fw-mail-dot-3 { background: #EA580C; } .fw-mail-dot-4 { background: #7C3AED; } .fw-mail-dot-5 { background: #0F766E; }
.fw-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.4rem; }
.fw-tile { display: flex; flex-direction: column; gap: 0.05rem; padding: 0.6rem 0.7rem; border-radius: 12px; background: var(--fl-surface-2); color: var(--fl-text); text-decoration: none; min-width: 0; }
.fw-tile:hover { text-decoration: none; background: var(--fl-surface-3); }
.fw-tile small { font-size: 0.72rem; color: var(--fl-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-tile strong { font-size: 1.7rem; font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fw-tile > span { font-size: 0.72rem; color: var(--fl-text-subtle); }
.fw-tile > .fw-status { align-self: flex-start; margin: 0.3rem 0 0.2rem; }
.fw-tile.is-on strong { color: var(--fl-accent-text); }
.fw-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.fw-bars a { display: flex; flex-direction: column; gap: 0.25rem; color: var(--fl-text); text-decoration: none; }
.fw-bars a:hover { text-decoration: none; }
.fw-bars a:hover strong { text-decoration: underline; }
.fw-bars-label { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; font-size: 0.84rem; }
.fw-bars-label strong { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-bars-label > span { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.fw-bars-label small, .fw-bars-label .text-success, .fw-bars-label .text-danger { font-size: 0.74rem; font-weight: 600; }
.fw-bars-track { height: 0.5rem; border-radius: 999px; background: var(--fl-surface-3); overflow: hidden; }
.fw-bars-track span { display: block; height: 100%; border-radius: inherit; background: var(--fl-accent); }

/* ---- Week ---- */
.fw-week.is-agenda { grid-template-columns: 1fr; gap: 0.25rem; }
.fw-week.is-agenda .fw-week-day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; padding: 0.35rem 0.5rem; }
.fw-week.is-agenda .fw-week-head { margin: 0; min-width: 4.2rem; }
.fw-week.is-agenda .fw-week-item { flex: 1 1 10rem; }
.fw-week.is-agenda .fw-week-day.is-empty { opacity: 0.55; }
.fw-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; }
.fw-strip button { border: 0; background: transparent; color: var(--fl-text); border-radius: 12px; padding: 0.35rem 0 0.3rem; display: flex; flex-direction: column; align-items: center; gap: 0.05rem; min-width: 0; }
.fw-strip button:hover { background: var(--fl-surface-2); }
.fw-strip button small { font-size: 0.68rem; color: var(--fl-text-muted); text-transform: capitalize; }
.fw-strip button strong { font-size: 1.05rem; }
.fw-strip button.is-past { opacity: 0.55; }
.fw-strip button.is-today strong { color: var(--fl-accent-text); }
.fw-strip button[aria-selected="true"] { background: var(--fl-accent); color: var(--fl-on-accent); opacity: 1; }
.fw-strip button[aria-selected="true"] small, .fw-strip button[aria-selected="true"] strong { color: inherit; }
.fw-strip-dots { display: flex; gap: 2px; height: 5px; }
.fw-strip-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--fl-accent); }
.fw-strip button[aria-selected="true"] .fw-strip-dots i { background: currentColor; }
.fw-strip-day { display: grid; gap: 0.25rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--fl-border); }
.fw-strip-day .fw-week-item { font-size: 0.8rem; padding: 0.35rem 0.5rem; background: var(--fl-surface-2); white-space: normal; }
.fw-strip-none { margin: 0; font-size: 0.82rem; color: var(--fl-text-subtle); }

/* ================= Round 8: menus, the panel, glass, effects, the header widget, the picture size ================= */

/* Menus on top of the page (FW.menu in www.js) */
.fw-menu { position: fixed; z-index: 1080; min-width: 13.5rem; max-width: min(22rem, calc(100vw - 16px)); overflow-y: auto; padding: 0.3rem; background: var(--fl-surface); color: var(--fl-text); border: 1px solid var(--fl-border); border-radius: 12px;
    box-shadow: 0 14px 38px rgba(14, 21, 37, 0.18), 0 2px 6px rgba(14, 21, 37, 0.08); font-size: 0.875rem; outline: none; animation: fw-menu-in 0.12s ease; }
[data-bs-theme="dark"] .fw-menu { box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55); }
@keyframes fw-menu-in { from { opacity: 0; transform: translateY(-3px); } }
.fw-menu-item { display: flex; align-items: center; gap: 0.6rem; width: 100%; border: 0; background: transparent; color: inherit; text-align: left; padding: 0.42rem 0.6rem; border-radius: 8px; line-height: 1.25; }
.fw-menu-item:hover, .fw-menu-item:focus, .fw-menu-item[aria-expanded="true"] { background: var(--fl-surface-2); outline: none; }
.fw-menu-item:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fl-accent) 45%, transparent); }
.fw-menu-item[disabled] { opacity: 0.45; }
.fw-menu-icon { width: 1rem; text-align: center; color: var(--fl-text-muted); flex: 0 0 auto; }
.fw-menu-none { visibility: hidden; }
.fw-menu-item[aria-checked="true"] { font-weight: 600; }
.fw-menu-item[aria-checked="true"] .fw-menu-icon { color: var(--fl-accent-text); }
.fw-menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-menu-more { font-size: 0.72rem; color: var(--fl-text-subtle); }
.fw-menu-note { font-size: 0.72rem; color: var(--fl-text-subtle); }
.fw-menu-item.is-danger, .fw-menu-item.is-danger .fw-menu-icon { color: var(--fl-danger); }
.fw-menu-item.is-danger:hover, .fw-menu-item.is-danger:focus { background: color-mix(in srgb, var(--fl-danger) 10%, transparent); }
.fw-menu-sep { height: 1px; background: var(--fl-border); margin: 0.3rem 0.25rem; }
.fw-menu-head { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fl-text-subtle); padding: 0.35rem 0.6rem 0.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-menu-hint { font-size: 0.7rem; color: var(--fl-text-subtle); padding: 0.15rem 0.6rem 0.3rem; }
.fw-menu-swatches { display: grid; grid-template-columns: repeat(5, 1.85rem); gap: 0.45rem; padding: 0.45rem 0.55rem; }
.fw-menu-swatch { border: 0; padding: 0; cursor: pointer; }
.fw-menu-swatch.is-on { outline-color: var(--fl-text); }
.fw-menu-swatch:focus { outline-color: color-mix(in srgb, var(--fl-text) 50%, transparent); }
.fw-menu-swatch:hover { transform: scale(1.08); }

/* A panel on top of the page (FW.popover): the quick-link form; a sheet at the bottom on phones. */
.fw-pop { position: fixed; z-index: 1075; width: min(23rem, calc(100vw - 16px)); background: var(--fl-surface); color: var(--fl-text); border: 1px solid var(--fl-border); border-radius: 14px; padding: 0.95rem;
    box-shadow: 0 18px 46px rgba(14, 21, 37, 0.22), 0 2px 6px rgba(14, 21, 37, 0.08); animation: fw-menu-in 0.12s ease; }
[data-bs-theme="dark"] .fw-pop { box-shadow: 0 18px 46px rgba(0, 0, 0, 0.6); }
.fw-pop.is-sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-height: 88vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 1.1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
.fw-pop-backdrop { position: fixed; inset: 0; z-index: 1074; background: rgba(10, 16, 30, 0.38); }
@media (prefers-reduced-motion: reduce) { .fw-menu, .fw-pop { animation: none; } }

/* The quick-link form (in FW.popover) */
.fw-link-form { display: flex; flex-direction: column; }
.fw-link-form .form-label { margin: 0.55rem 0 0.2rem; font-weight: 600; color: var(--fl-text-muted); }
.fw-link-form-head { display: flex; align-items: center; gap: 0.7rem; }
.fw-link-form-head > div { flex: 1; min-width: 0; }
.fw-link-form-head h3 { font-size: 1rem; font-weight: 650; margin: 0; }
.fw-link-form-head small { display: block; color: var(--fl-text-subtle); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.1em; }
.fw-link-form .fw-link-icon { --icon: 42px; width: 42px; height: 42px; flex: 0 0 auto; color: var(--fl-text-subtle); font-size: 1.2rem; }
.fw-link-form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.fw-link-form-actions { display: flex; gap: 0.4rem; justify-content: flex-end; margin-top: 0.9rem; }
.fw-pop.is-sheet .fw-link-form .form-control, .fw-pop.is-sheet .fw-link-form .form-select { font-size: 1rem; }

/* Settings: choices as chips */
.fw-chip-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.fw-chip-opt { margin: 0; cursor: pointer; }
.fw-chip-opt span { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid var(--fl-border); background: var(--fl-surface); color: var(--fl-text-muted); font-size: 0.8rem; transition: border-color 0.12s, background 0.12s; }
.fw-chip-opt:hover span { border-color: var(--fl-border-strong); }
.fw-chip-opt input:checked + span { border-color: var(--w-c, var(--fl-accent)); background: color-mix(in srgb, var(--w-c, var(--fl-accent)) 11%, var(--fl-surface)); color: var(--fl-text); font-weight: 600; }
.fw-chip-opt input:focus-visible + span { box-shadow: var(--fl-focus); }
.fw-styles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fw-style-card[data-style="glass"] { border-color: color-mix(in srgb, var(--c) 30%, var(--fl-border)); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), repeating-linear-gradient(45deg, var(--fl-surface-3) 0 5px, var(--fl-surface) 5px 10px); }
@media (max-width: 575.98px) { .fw-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Glass card: see-through and blurred (the default of the header widget). */
.fw-w[data-style="glass"] { --w-bg: color-mix(in srgb, var(--fl-surface) 66%, transparent); background: var(--w-bg); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
    border-color: color-mix(in srgb, #fff 32%, transparent); --fl-surface-2: color-mix(in srgb, var(--fl-text) 6%, transparent); }
[data-bs-theme="dark"] .fw-w[data-style="glass"] { --w-bg: color-mix(in srgb, var(--fl-surface) 58%, transparent); border-color: rgba(255, 255, 255, 0.1); }
.fw-w[data-style="glass"][class*="fw-c-"] { --w-bg: color-mix(in srgb, color-mix(in srgb, var(--w-c) 18%, var(--fl-surface)) 66%, transparent); }
.fw-w[data-style="glass"].fw-w-headless .fw-w-head { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* Transparent card on a picture (the header, or the whole-page picture): white text with a shadow. */
:is(.fw-hero.has-photo, .fw-photo-page .fw-board) .fw-w:is([data-style="plain"], [data-style="outline"]):not([data-hover="solid"]:hover):not([data-focus="solid"].is-typing) {
    color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
    --fl-text: #fff; --fl-text-muted: rgba(255, 255, 255, 0.88); --fl-text-subtle: rgba(255, 255, 255, 0.74); --fl-accent-text: #fff;
    --fl-surface: rgba(255, 255, 255, 0.14); --fl-surface-2: rgba(255, 255, 255, 0.12); --fl-surface-3: rgba(255, 255, 255, 0.22); --fl-border: rgba(255, 255, 255, 0.24); --fl-border-strong: rgba(255, 255, 255, 0.42);
}
:is(.fw-hero.has-photo, .fw-photo-page .fw-board) .fw-w[data-style="plain"] { box-shadow: none; }
.fw-photo-page .fw-board .fw-w[data-style="outline"] { border-color: color-mix(in srgb, var(--w-c) 45%, rgba(255, 255, 255, 0.6)); }

/* Effects: mouse over, while typing, at rest; shape: corners, shadow (board.js applyLook) */
.fw-w { transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.25s ease, filter 0.25s ease, background-color 0.2s ease, border-color 0.2s ease; }
.fw-w[data-corners="square"] { border-radius: 6px; }
.fw-w[data-corners="round"] { border-radius: 26px; }
.fw-w[data-corners="round"] .fw-w-head { padding-left: 1rem; }
.fw-w[data-shadow="none"] { box-shadow: none; }
.fw-w[data-shadow="strong"] { box-shadow: 0 16px 40px rgba(14, 21, 37, 0.2), 0 2px 6px rgba(14, 21, 37, 0.08); }
[data-bs-theme="dark"] .fw-w[data-shadow="strong"] { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.fw-w[data-hover="lift"]:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14, 21, 37, 0.2); }
.fw-w[data-hover="glow"]:hover, .fw-w[data-focus="glow"].is-typing { box-shadow: 0 0 0 1px color-mix(in srgb, var(--w-c) 55%, transparent), 0 10px 36px color-mix(in srgb, var(--w-c) 40%, transparent); }
.fw-w[data-hover="ring"]:hover, .fw-w[data-focus="ring"].is-typing { border-color: var(--w-c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--w-c) 30%, transparent); }
.fw-w:is([data-hover="solid"]:hover, [data-focus="solid"].is-typing):not([data-style="solid"]):not([data-style="gradient"]) { --w-bg: var(--fl-surface); background: var(--fl-surface); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--fl-border); }
.fw-w[data-rest="soft"] { --w-rest: 0.85; }
.fw-w[data-rest="faded"] { --w-rest: 0.6; }
.fw-w[data-rest="ghost"] { --w-rest: 0.16; }
@media (hover: none) { .fw-w[data-rest="ghost"] { --w-rest: 0.55; } }
.fw-w[data-rest]:not(:hover):not(:focus-within):not(.is-typing) { opacity: var(--w-rest); }
.fw-board.is-editing .fw-w { opacity: 1 !important; transform: none !important; }
body.fw-spot :is(.fw-w:not(.is-typing), .fw-hero-line, .fw-hero-tip, .fw-board-bar, .fw-hero-credit) { opacity: 0.22; filter: saturate(0.4); }
body.fw-spot .grid-stack-item:has(.fw-w.is-typing) { z-index: 5; }

/* The header widget: size, place, the resize handle */
.fw-hero-widget[data-place="left"] { margin-left: 0; margin-right: auto; }
.fw-hero-widget[data-place="right"] { margin-left: auto; margin-right: 0; }
.fw-hero-widget.is-tall .fw-w-content { overflow: hidden; }
.fw-hero-handle { position: absolute; right: -11px; bottom: -11px; z-index: 4; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.92); color: #0E1525; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); cursor: ew-resize; touch-action: none; opacity: 0; transition: opacity 0.15s; }
.fw-hero-widget.is-tall .fw-hero-handle { cursor: nwse-resize; }
.fw-hero-widget[data-place="right"] .fw-hero-handle { right: auto; left: -11px; }
.fw-hero-widget[data-place="right"].is-tall .fw-hero-handle { cursor: nesw-resize; }
.fw-hero-widget[data-place="right"] .fw-hero-handle .bi { transform: scaleX(-1); }
.fw-hero-widget:hover .fw-hero-handle, .fw-hero-handle:focus-visible, .fw-hero-widget.is-resizing .fw-hero-handle { opacity: 1; }
.fw-hero-widget.is-resizing { user-select: none; }
@media (hover: none) { .fw-hero-handle { opacity: 0.85; } }

/* The picture: a band (full window width), the full first screen, the whole page */
.fw-full-width .fw-main-wide { max-width: none; }
.fw-size-screen .fw-hero { min-height: calc(100svh - 3.5rem); padding-bottom: 6rem; }
.fw-hero-down { position: absolute; left: 50%; bottom: 3.7rem; width: 2.6rem; height: 2.6rem; margin-left: -1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; color: #fff; text-decoration: none;
    background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fw-bob 2.6s ease-in-out infinite; }
.fw-hero-down:hover { background: rgba(255, 255, 255, 0.3); color: #fff; }
.fw-hero:not(.has-photo) .fw-hero-down { color: var(--fl-text-muted); background: var(--fl-surface-2); }
@keyframes fw-bob { 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .fw-hero-down { animation: none; } }
.fw-photo-page { isolation: isolate; background-color: #0E1525; }
.fw-photo-page::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 16, 30, 0.22), rgba(10, 16, 30, 0.5)), var(--fw-hero) center / cover no-repeat; }
@media (max-width: 767.98px) { .fw-photo-page::before { background-image: linear-gradient(180deg, rgba(10, 16, 30, 0.3), rgba(10, 16, 30, 0.55)), var(--fw-hero-small); } }
.fw-photo-page .fw-hero.has-photo { background: none; min-height: clamp(260px, 44vh, 540px); }
.fw-photo-page .fw-sheet { background: transparent; box-shadow: none; margin-top: 0; }
.fw-photo-page .fw-board-bar { border-radius: 14px; padding-left: 0.4rem; padding-right: 0.4rem; background: rgba(10, 16, 30, 0.3); }
.fw-photo-page .fw-tab:not(.is-active) { color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.fw-photo-page .fw-tab:not(.is-active):hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.fw-photo-page .fw-tab-add { border-color: rgba(255, 255, 255, 0.5); }
.fw-photo-page .fw-board-empty, .fw-photo-page .fw-local-offer { background: color-mix(in srgb, var(--fl-surface) 86%, transparent); border-radius: 18px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.fw-photo-page .fw-footer { background: color-mix(in srgb, var(--fl-surface) 84%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* Header settings: little pictures of the three sizes */
.fw-size-thumb { position: relative; display: block; background: var(--fl-surface); border: 1px solid var(--fl-border); }
.fw-size-thumb i { position: absolute; left: 0; right: 0; top: 0; height: 36%; background: linear-gradient(135deg, #6C8FD6, #23395F); }
.fw-size-thumb.is-screen i, .fw-size-thumb.is-page i { height: 100%; }
.fw-size-thumb b { position: absolute; bottom: 12%; width: 26%; height: 30%; border-radius: 3px; background: var(--fl-surface-2); box-shadow: 0 0 0 1px var(--fl-border); }
.fw-size-thumb b:nth-of-type(1) { left: 7%; } .fw-size-thumb b:nth-of-type(2) { left: 37%; } .fw-size-thumb b:nth-of-type(3) { left: 67%; }
.fw-size-thumb.is-screen b { bottom: -22%; }
.fw-size-thumb.is-page b { background: rgba(255, 255, 255, 0.72); box-shadow: none; }
.fw-check-edit { flex: 1; min-width: 0; }

/* ---------------------------------------------------------- Board templates (/templates) */
.fw-tpl-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.fw-tpl-lead { color: var(--fl-text-muted); font-size: 1.05rem; max-width: 46rem; margin: 0; }
.fw-tpl-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 320px); gap: 0.75rem 1rem; align-items: center; margin-bottom: 1.5rem; }
.fw-tpl-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.fw-tpl-tabs a, .fw-tpl-cats a, .fw-tpl-sort a { padding: 0.4rem 0.85rem; border-radius: 999px; color: var(--fl-text-muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.fw-tpl-tabs a:hover, .fw-tpl-cats a:hover, .fw-tpl-sort a:hover { background: var(--fl-surface-2); color: var(--fl-text); }
.fw-tpl-tabs a.is-active, .fw-tpl-sort a.is-active { background: var(--fl-text); color: var(--fl-surface); }
.fw-tpl-search { position: relative; }
.fw-tpl-search .bi { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--fl-text-muted); }
.fw-tpl-search .form-control { padding-left: 2.3rem; border-radius: 999px; }
.fw-tpl-cats { grid-column: 1 / -1; display: flex; gap: 0.35rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: thin; }
.fw-tpl-cats a { border: 1px solid var(--fl-border); font-weight: 500; }
.fw-tpl-cats a.is-active { border-color: var(--fl-accent); background: var(--fl-accent-soft); color: var(--fl-accent-text); }
.fw-tpl-section { margin-bottom: 2.25rem; }
.fw-tpl-section h2, .fw-tpl-section-head h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; font-weight: 700; margin: 0 0 0.9rem; }
.fw-tpl-section h2 .fl-mark, .fw-tpl-section h2 .fl-mark img { width: 1.5rem; height: 1.5rem; flex: none; }
.fw-tpl-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.9rem; }
.fw-tpl-section-head h2 { margin: 0; }
.fw-tpl-sort { display: inline-flex; gap: 0.15rem; padding: 0.2rem; border-radius: 999px; background: var(--fl-surface-2); }
.fw-tpl-sort a { padding: 0.3rem 0.8rem; font-size: 0.85rem; }
.fw-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.fw-tpl-card { display: flex; flex-direction: column; border: 1px solid var(--fl-border); border-radius: 18px; background: var(--fl-surface); color: var(--fl-text); text-decoration: none; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.fw-tpl-card:hover, .fw-tpl-card:focus-visible { transform: translateY(-3px); box-shadow: var(--fl-shadow-lg); border-color: var(--fl-border-strong); color: var(--fl-text); }
.fw-tpl-card.is-hidden { opacity: 0.7; border-style: dashed; }
.fw-tpl-card > .fw-tpl-map { margin: 0.75rem 0.75rem 0; max-height: 210px; }
.fw-tpl-card-body { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.8rem 1rem 0.9rem; flex: 1; }
.fw-tpl-card-title { font-weight: 700; font-size: 1rem; }
.fw-tpl-card-title .bi { color: var(--fl-accent); }
.fw-tpl-card-text { color: var(--fl-text-muted); font-size: 0.86rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fw-tpl-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.85rem; margin-top: auto; padding-top: 0.35rem; font-size: 0.8rem; color: var(--fl-text-muted); }
.fw-tpl-by { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--fl-text); }
.fw-tpl-by .fl-mark, .fw-tpl-by .fl-mark img { width: 1.15rem; height: 1.15rem; flex: none; }
.fw-tpl-picked { color: var(--fl-accent); }
.fw-tpl-flag { color: var(--fl-warning); font-weight: 600; }
.fw-tpl-pages { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }
/* The map of a layout: the widgets as tiles where they sit. */
.fw-tpl-map { position: relative; width: auto; border-radius: 12px; background: var(--fl-surface-2); overflow: hidden; }
.fw-tpl-cell { position: absolute; display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 2px; border: 2px solid var(--fl-surface-2); border-radius: 8px; font-size: 0.95rem; overflow: hidden; }
.fw-tpl-cell.is-filambda { background: color-mix(in srgb, var(--fl-accent) 20%, var(--fl-surface)); color: var(--fl-accent-soft-text); }
.fw-tpl-cell.is-everyday { background: color-mix(in srgb, #0D9488 18%, var(--fl-surface)); color: #0B5F58; }
.fw-tpl-cell.is-more { background: color-mix(in srgb, #D97706 18%, var(--fl-surface)); color: #92400E; }
[data-bs-theme="dark"] .fw-tpl-cell.is-everyday { color: #5EEAD4; }
[data-bs-theme="dark"] .fw-tpl-cell.is-more { color: #FCD34D; }
.fw-tpl-map.is-big .fw-tpl-cell { border-width: 3px; border-radius: 12px; font-size: 1.15rem; flex-wrap: wrap; align-content: center; column-gap: 0.45rem; row-gap: 0.15rem; }
.fw-tpl-map.is-big .fw-tpl-cell b { font-size: 0.78rem; font-weight: 600; text-align: center; line-height: 1.15; }
.fw-tpl-card:hover .fw-tpl-cell { animation: fw-tpl-pop .4s ease both; }
.fw-tpl-card:hover .fw-tpl-cell:nth-child(2) { animation-delay: .03s; } .fw-tpl-card:hover .fw-tpl-cell:nth-child(3) { animation-delay: .06s; }
.fw-tpl-card:hover .fw-tpl-cell:nth-child(4) { animation-delay: .09s; } .fw-tpl-card:hover .fw-tpl-cell:nth-child(5) { animation-delay: .12s; }
@keyframes fw-tpl-pop { 40% { transform: scale(.94); } 100% { transform: none; } }
/* One template */
.fw-crumbs { margin-bottom: 1rem; }
.fw-crumbs a { color: var(--fl-text-muted); text-decoration: none; font-weight: 600; }
.fw-tpl-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 2rem; align-items: start; }
.fw-tpl-detail-map { position: sticky; top: 1rem; padding: 1rem; border: 1px solid var(--fl-border); border-radius: 22px; background: var(--fl-surface); }
.fw-tpl-detail-map .fw-tpl-map { max-height: 75vh; }
.fw-tpl-eyebrow { color: var(--fl-accent-text); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 0.78rem; margin-bottom: 0.25rem; }
.fw-tpl-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: var(--fl-text-muted); margin: 0.9rem 0 1.1rem; }
.fw-tpl-actions { display: flex; gap: 0.5rem; }
.fw-tpl-actions .btn-primary { flex: 1; }
.fw-tpl-sub { font-size: 0.95rem; font-weight: 700; margin: 1.5rem 0 0.6rem; }
.fw-tpl-widgets { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.fw-tpl-widgets li { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.55rem 0.4rem; border-radius: 10px; }
.fw-tpl-widgets li:hover { background: var(--fl-surface-2); }
.fw-tpl-widgets li > .bi { width: 2rem; height: 2rem; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--fl-accent-soft); color: var(--fl-accent-text); }
.fw-tpl-widgets li > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fw-tpl-widgets small { color: var(--fl-text-muted); }
.fw-tpl-needs { color: var(--fl-text-muted); }
.fw-tpl-edit, .fw-tpl-report, .fw-tpl-mod { margin-top: 1.25rem; padding: 0.8rem 1rem; border: 1px solid var(--fl-border); border-radius: 14px; }
.fw-tpl-edit summary, .fw-tpl-report summary { cursor: pointer; font-weight: 600; }
.fw-tpl-edit form, .fw-tpl-report form { margin-top: 0.75rem; }
.fw-tpl-mod { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; background: var(--fl-surface-2); }
.fw-publish-private { display: flex; gap: 0.6rem; padding: 0.7rem 0.85rem; border-radius: 12px; background: var(--fl-success-soft); color: var(--fl-text); font-size: 0.85rem; }
.fw-publish-private .bi { color: var(--fl-success); font-size: 1.1rem; }
@media (max-width: 860px) {
    .fw-tpl-filters { grid-template-columns: 1fr; }
    .fw-tpl-detail { grid-template-columns: 1fr; }
    .fw-tpl-detail-map { position: static; }
}
@media (prefers-reduced-motion: reduce) { .fw-tpl-card, .fw-tpl-card:hover .fw-tpl-cell { transition: none; animation: none; } }
