@property --fn-scrollbar-thumb { syntax: '<color>'; inherits: true; initial-value: transparent; }
@font-face { font-family: Roboto; src: url('/fonts/Roboto-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Roboto; src: url('/fonts/Roboto-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
.forest-new-page { margin: 0; background: #f7f4e8; color: #263a2b; font: 14px/1.45 Roboto, Arial, sans-serif; }
.forest-new-page main { position: fixed; inset: 55px 0 0; }
forest-columns-component { display: flex; flex-direction: column; height: 100%; position: relative; min-height: 0; box-sizing: border-box; --fn-dock-height: calc(72px + var(--forest-information-row-height, 0px)); padding-bottom: var(--fn-dock-height); }
forest-columns-component *, forest-columns-component *::before, forest-columns-component *::after { box-sizing: border-box; }
forest-columns-component button, forest-columns-component input, forest-columns-component select { font: inherit; }
forest-columns-component button { cursor: pointer; }
forest-columns-component button:disabled { opacity: .4; cursor: default; }
forest-columns-component :focus-visible { outline: 2px solid #4c7744; outline-offset: 3px; }
forest-columns-component [hidden] { display: none !important; }
.fn-layout-feedback:empty { display: none; }
/* Safari samples fixed elements at the viewport edge for its translucent toolbar.
   Use an opaque DOM element so edge hit-testing finds the dock itself. */
forest-columns-component .fn-dock {
    position: fixed;
    inset: auto 0 0;
    height: calc(var(--fn-dock-height) + env(safe-area-inset-bottom, 0px));
    background: #f7f4e8;
    border-top: 1px solid #d5ddcb;
    z-index: 2;
}
forest-columns-component .fn-scroll-arrow { position: fixed; top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px) + var(--forest-information-row-height, 0px)); transform: none; z-index: 3; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 1px solid #cbd7bf; border-radius: 50%; background: #fffefa; box-shadow: 0 3px 12px #24351c24; font-size: 24px !important; font-weight: 400; }
forest-columns-component .fn-scroll-arrow:hover { background: #e0e9d6; color: #263a2b; }
forest-columns-component .fn-scroll-previous { left: max(calc(env(safe-area-inset-left, 0px) + 12px), calc((100% + env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)) / 2 - 206px)); }
forest-columns-component .fn-scroll-next { right: max(calc(env(safe-area-inset-right, 0px) + 12px), calc((100% + env(safe-area-inset-right, 0px) - env(safe-area-inset-left, 0px)) / 2 - 206px)); }
forest-columns-component[data-stacked-navigation="true"] { --fn-dock-height: calc(128px + var(--forest-information-row-height, 0px)); }
forest-columns-component[data-stacked-navigation="true"] .fn-scroll-arrow { bottom: calc(76px + env(safe-area-inset-bottom, 0px) + var(--forest-information-row-height, 0px)); }
.fn-layout-feedback { padding: 6px 24px; flex-shrink: 0; color: #677460; font-size: 12px; min-width: 0; }
.fn-layout-feedback .fn-text-button { padding: 4px 8px; }
.fn-position { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fn-board { --fn-spacing: 8px; display: flex; align-items: stretch; gap: var(--fn-spacing); margin-inline: 0; padding: 0 var(--fn-spacing); flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-padding-inline: var(--fn-spacing); overscroll-behavior-x: contain; scrollbar-color: var(--fn-scrollbar-thumb, transparent) transparent; scrollbar-width: thin; position: relative; }
.fn-column { flex: 0 0 clamp(330px, 26vw, 440px); min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 0; scroll-snap-align: start; scrollbar-width: thin; scrollbar-color: var(--fn-scrollbar-thumb, transparent) transparent; }
/* Preserve scrollbar space, so hiding the thumb never shifts landscape content.
   The thumb variable is reset per scroller to avoid inheriting board hover. */
.fn-board, .fn-column { --fn-scrollbar-thumb: transparent; transition: --fn-scrollbar-thumb .2s ease-in-out; }
.fn-column:not(.fn-column-preview) { margin-inline-end: calc(-1 * var(--fn-scrollbar-width, 0px)); }
.fn-board::-webkit-scrollbar, .fn-column::-webkit-scrollbar { width: 6px; height: 6px; }
.fn-board::-webkit-scrollbar-track, .fn-column::-webkit-scrollbar-track { background: transparent; }
.fn-board::-webkit-scrollbar-thumb, .fn-column::-webkit-scrollbar-thumb { background: var(--fn-scrollbar-thumb); border-radius: 3px; }
.fn-board:hover, .fn-board.fn-scrolling, .fn-board:focus-visible { --fn-scrollbar-thumb: #a8b49b; }
.fn-column:hover, .fn-column.fn-scrolling { --fn-scrollbar-thumb: #b4bea9; }
.fn-stack { padding-top: var(--fn-spacing); display: flex; flex-direction: column; gap: var(--fn-spacing); }
.fn-landscape { background: #eeeee2; border: 1px solid #d5ddcb; border-top: 0; overflow: clip; }
/* Keep the top frame on the sticky header; the landscape clips without trapping sticky positioning. */
.fn-landscape-header { position: sticky; top: 0; z-index: 1; padding: 4px 8px 5px; background: linear-gradient(115deg, #b8d19f, #d2e1bd); border-block: 1px solid #d5ddcb; }
.fn-landscape-title { display: flex; align-items: center; gap: 4px; }
.fn-collapse-icon { display: inline-flex; width: 12px; height: 12px; flex: 0 0 12px; transform: rotate(-90deg); }
.fn-collapse-icon svg { display: block; width: 100%; height: 100%; }
[aria-expanded="true"] > .fn-collapse-icon { transform: none; }
.fn-landscape-select { min-width: 0; flex: 1; border: 0; appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23304f2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") left center / 12px 12px no-repeat; color: #304f2b; font-weight: 700 !important; text-overflow: ellipsis; padding: 3px 0 3px 16px; cursor: pointer; }
.fn-icon-button { border: 0; border-radius: 7px; background: transparent; color: #4c6942; display: inline-flex; justify-content: center; align-items: center; min-width: 32px; min-height: 32px; padding: 4px; font-size: 20px !important; line-height: 1; flex-shrink: 0; }
.fn-icon-button:hover { background: #4c774416; }
.fn-landscape-title .fn-icon-button, .fn-landscape-toggle { min-width: 24px; min-height: 24px; padding: 2px; }
.fn-remove { font-size: 19px !important; color: #829079; }
.fn-search { display: flex; gap: 5px; align-items: center; padding: 0 7px; margin-top: 3px; background: #ffffffb8; border: 1px solid #cbd7bf; border-radius: 7px; color: #78876e; }
.fn-search-icon { display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: 0 0 16px; line-height: 0; }
.fn-search-icon { position: relative; }
.fn-search-loading svg { visibility: hidden; }
.fn-search-loading::after { content: ''; position: absolute; inset: 0; border: 2px solid #4c774433; border-top-color: #4c7744; border-radius: 50%; animation: fn-search-spin .8s linear infinite; }
@keyframes fn-search-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fn-search-loading::after { animation: none; } }
.fn-search-icon svg { display: block; width: 16px; height: 16px; }
.fn-search input { width: 100%; min-width: 0; padding: 2px 0; background: transparent; border: 0; color: #263a2b; }
.fn-search:focus-within { box-shadow: 0 0 0 2px #4c774440; border-color: #4c7744; }
.fn-search input:focus-visible { outline: none; }
.fn-count { font-size: 11px; white-space: nowrap; color: #738269; }
.fn-landscape-content { padding: 4px 8px; }
.fn-trees { display: flex; flex-direction: column; gap: 7px; }
.fn-trees.fn-virtual-trees { display: block; position: relative; overflow-anchor: none; }
.fn-virtual-trees > .fn-virtual-item { position: absolute; inset-inline-start: 0; width: 100%; }
.fn-column { overflow-anchor: none; }
forest-tree-row { display: block; min-width: 0; }
.fn-tree { --fn-tree-image-size: 58px; display: flex; min-height: 84px; position: relative; background: #fffefa; border: 1px solid #d9ddcf; border-radius: 9px; box-shadow: 0 1px 2px #24351c08; transition: transform .15s, border-color .15s, box-shadow .15s; }
.fn-tree:focus-within { border-color: #a9ba99; box-shadow: 0 3px 10px #24351c14; }
.fn-tree.fn-tree-highlighted { border: 2px solid var(--fn-ribbon-color); }
.fn-tree.fn-tree-highlighted:hover, .fn-tree.fn-tree-highlighted:focus-within { border-color: var(--fn-ribbon-color); }
.fn-tree-highlighted .fn-tree-link { min-height: 80px; }
.fn-tree-highlighted .fn-tree-copy { padding-block: 10px; }
.fn-tree-ribbon { position: absolute; top: -1px; right: 10px; min-width: 70px; max-width: calc(100% - 132px); height: 18px; padding: 0 9px 1px; border-radius: 0 0 7px 7px; background: var(--fn-ribbon-color); color: white; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.fn-tree-link { display: grid; grid-template-columns: 32px var(--fn-tree-image-size) minmax(0, 1fr); min-height: 82px; flex: 1; min-width: 0; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; color: inherit; text-decoration: none; border-radius: 8px; }
.fn-tree-image { width: var(--fn-tree-image-size); height: var(--fn-tree-image-size); object-fit: contain; background: white; border: 1px solid #d5ddcb; border-radius: 10px; padding: 1px; }
/* Center the natural title/description block as one unit. Highlighted copies
   reserve symmetric clearance for the ribbon without padding every image/row. */
.fn-tree-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fn-tree-copy h3 { margin: 0; font-size: 13px; line-height: 1.35; color: #283526; overflow-wrap: anywhere; }
.fn-tree-description { margin: 0; font-size: 11px; line-height: 1.5; color: #788071; overflow-wrap: anywhere; }
/* Align the trunk symbol top and favorite button bottom with the centered image. */
.fn-trunk-icon { width: 24px; height: 24px; object-fit: contain; object-position: center top; align-self: center; justify-self: center; transform: translateY(calc((24px - var(--fn-tree-image-size)) / 2)); }
.fn-tree > .fn-favorite { position: absolute; left: 8px; top: calc(50% + var(--fn-tree-image-size) / 2 - 32px); width: 32px; height: 32px; appearance: none; -webkit-appearance: none; }
.fn-favorite svg { display: block; width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.fn-favorite[aria-pressed="true"] svg { fill: currentColor; }
.fn-favorite[aria-pressed="true"] { color: #8b772a; }
.fn-status { color: #7a8471; font-size: 12px; text-align: center; padding: 12px 4px 4px; }
.fn-status:empty { display: none; }
.fn-add { width: 100%; min-height: 68px; margin-top: var(--fn-spacing); border: 1.5px dashed #b7c5a7; background: #ffffff20; color: #78896b; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; transition: background .15s, border-color .15s; }
.fn-add:hover { background: #e9eddf; color: #4c7744; border-color: #7e9d68; }
.fn-plus { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; transform: translateY(var(--fn-plus-shift, 0px)); }
.fn-plus svg { display: block; width: 100%; height: 100%; }
.fn-add-label { line-height: 20px; white-space: nowrap; }
.fn-add-baseline { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.fn-column-preview { padding-top: var(--fn-spacing); }
.fn-column-preview .fn-add { margin-top: 0; }
.fn-board-message { width: 100%; align-self: center; text-align: center; color: #788174; }
.fn-picker { position: fixed; z-index: 100; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #b1c39e; background: #fffefa; padding: 4px; color: #30442b; box-shadow: 0 5px 18px #24351c24; }
.fn-picker-option { display: block; width: 100%; min-height: 44px; text-align: left; padding: 10px 12px; border: 0; background: transparent; color: inherit; overflow-wrap: anywhere; }
.fn-picker-option:hover, .fn-picker-option:focus { background: #e0e9d6; outline: none; }
.fn-action { border: none; border-radius: 8px; background: #4c7744; color: white; padding: 10px 16px; }
.fn-text-button { border: none; background: transparent; color: #4c7744; padding: 10px; }
@media (max-width: 768px) {
    .forest-new-page header-bar-component .logo-desktop { display: block; }
    .forest-new-page header-bar-component .logo-mobile, .forest-new-page header-bar-component .view-logo { display: none; }
}
@media (max-width: 600px), (hover: none), (pointer: coarse) {
    .fn-layout-feedback { padding: 6px 16px; }
    .fn-board { --fn-visible-columns: 1; gap: 0; margin-inline: 0; padding: 0; scroll-padding: 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .fn-board::-webkit-scrollbar { display: none; }
    .fn-column { flex-basis: calc(100% / var(--fn-visible-columns)); padding-inline: 8px; scroll-snap-stop: always; scrollbar-width: none; }
    .fn-column::-webkit-scrollbar { display: none; }
    .fn-search input { font-size: 16px; }
    .fn-tree-copy h3 { font-size: 14px; }
    .fn-tree-description { font-size: 12px; }
    .fn-picker-option { font-size: 16px; }
}
@media (min-width: 601px) and (hover: none), (min-width: 601px) and (pointer: coarse) {
    .fn-board { --fn-visible-columns: 2; }
}
@media (min-width: 1024px) and (hover: none), (min-width: 1024px) and (pointer: coarse) {
    .fn-board { --fn-visible-columns: 3; }
}
@media (max-width: 600px), (hover: none), (pointer: coarse), (any-pointer: coarse) {
    .fn-landscape-title .fn-icon-button, .fn-landscape-toggle { min-height: 40px; min-width: 36px; }
    .fn-landscape-select { min-height: 40px; }
}
@media (hover: hover) and (pointer: fine) {
    .fn-tree:hover { transform: translateY(-2px); border-color: #a9ba99; box-shadow: 0 4px 12px #24351c18; }
}
@media (prefers-reduced-motion: reduce) {
    .fn-tree, .fn-add, .fn-board, .fn-column { transition: none; }
}

.fn-row-preview { margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; inset: auto; position: fixed; z-index: 90; width: 210px; height: 288px; color: #263a2b; }
.fn-tree > .fn-share { position: absolute; right: 4px; top: calc(50% + var(--fn-tree-image-size) / 2 - 32px); width: 32px; height: 32px; padding: 0; }
.fn-share img { width: 20px; height: 20px; object-fit: contain; }

.fn-share-status { font-size: 12px; color: #30442b; overflow-wrap: anywhere; }
.fn-share-status:not(:empty) { margin-top: 4px; padding: 8px 10px; border: 1px solid #d5ddcb; border-radius: 8px; background: #edf0e3; }

.fn-category { min-width: 0; }
.fn-category-header { display: flex; align-items: center; gap: 4px; width: 100%; text-align: left; border: 1px solid #d5ddcb; padding: 4px 8px; background: linear-gradient(115deg, #e0e9d6, #edf0e3); color: #304f2b; font-weight: 700; overflow-wrap: anywhere; }
.fn-category-label { min-width: 0; flex: 1; }
.fn-category-header:hover { background: #dbe6cf; }


/* Keep the text and ribbon clear of the row actions. */
.fn-tree-with-actions .fn-tree-link { padding-right: 40px; }
.fn-tree-with-actions .fn-tree-ribbon { right: 40px; }
.fn-tree > .fn-preview-trigger { display: none; position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; padding: 7px; }
.fn-preview-trigger span, .fn-preview-trigger svg { display: block; width: 18px; height: 18px; }
@media (min-width: 601px) and (hover: hover) and (pointer: fine) {
    .fn-tree > .fn-preview-trigger { display: inline-flex; }
}
.fn-row-preview { opacity: 1; transition: opacity .18s ease-out; }
.fn-row-preview.fn-row-preview-closing { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    .fn-row-preview { transition: none; }
}

/* Category membership uses color across every viewport, without reducing row width. */
.fn-category[data-category-tone="0"] .fn-category-header { background: #e0e9d6; }
.fn-category[data-category-tone="1"] .fn-category-header { background: #e8ecdf; }
.fn-category[data-category-tone="2"] .fn-category-header { background: #d4dfca; }
forest-tree-row[data-category-tone="0"] .fn-tree { background: #eaf0e1; }
forest-tree-row[data-category-tone="1"] .fn-tree { background: #f7f9f2; }
forest-tree-row[data-category-tone="2"] .fn-tree { background: #f0f4e9; }
.fn-category-header:hover { filter: brightness(.97); }
