.asset-category-sidebar { width:218px; position:sticky; top:12px; box-sizing:border-box; border:1px solid var(--border-color,#dce3eb); border-radius:14px; background:var(--card-bg,#fff); padding:10px; color:var(--text-color,#334155); }
.asset-category-sidebar > header { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:2px 4px 10px; }
.asset-category-sidebar > header > strong { font-size:12px; }
.asset-category-sidebar > header > button { display:grid; place-items:center; border:0; background:transparent; color:inherit; padding:4px; border-radius:6px; }
.asset-category-sidebar > nav { max-height:calc(100dvh - 180px); overflow:auto; padding:3px; }
.asset-category-row { display:flex; align-items:center; gap:2px; margin-bottom:3px; }
.asset-category-choice { display:flex; align-items:center; gap:9px; flex:1; min-width:0; border:0; border-radius:9px; background:transparent; color:inherit; padding:10px 8px; text-align:left; font:inherit; font-size:12px; cursor:pointer; }
.asset-category-symbol { display:grid; place-items:center; width:22px; flex:0 0 22px; font-size:18px; }
.asset-category-label { flex:1; overflow-wrap:anywhere; }
.asset-category-choice small,.asset-category-children small { font-size:10px; opacity:.65; margin-left:auto; }
.asset-category-choice:hover,.asset-category-children button:hover { background:#f1f5f9; color:#0f172a; }
.asset-category-choice.active,.asset-category-children button.active { background:#e8f0ff; color:#1d4ed8; font-weight:700; }
.asset-category-expand { border:0; background:transparent; color:inherit; padding:3px; border-radius:5px; }
.asset-category-expand svg { width:14px;height:14px; }
.asset-category-expand.is-open svg { transform:rotate(90deg); }
.asset-category-children { display:grid; gap:3px; padding:2px 0 8px 22px; }
.asset-category-children button { display:flex; align-items:center; gap:6px; border:0; border-radius:7px; background:transparent; color:inherit; padding:7px; text-align:left; font-size:11px; }
.asset-category-sidebar.is-collapsed { width:62px; padding:6px; }
.asset-category-sidebar.is-collapsed > header { justify-content:center; padding:2px 0 8px; }
.asset-category-sidebar.is-collapsed > header > strong,.asset-category-sidebar.is-collapsed .asset-category-label,.asset-category-sidebar.is-collapsed .asset-category-choice small { display:none; }
.asset-category-sidebar.is-collapsed .asset-category-choice { justify-content:center; padding:10px 5px; }
.asset-browser-shop .catalog-shop-layout { width:100%; grid-template-columns:minmax(0,1fr) 280px; }
.asset-browser-shop .catalog-shop-grid { grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); }
@media(max-width:1200px) { .asset-browser-shop .catalog-shop-layout { grid-template-columns:minmax(0,1fr); } .asset-browser-shop .catalog-cart-panel { position:static; } }
@media(max-width:700px) {
 .asset-browser-layout { grid-template-columns:minmax(0,1fr); gap:10px; }
 .asset-category-sidebar,.asset-category-sidebar.is-collapsed { width:100%; position:static; }
 .asset-category-sidebar.is-collapsed > header > strong { display:block; }
 .asset-category-sidebar.is-collapsed > header { justify-content:space-between; }
 .asset-category-sidebar.is-collapsed > nav { display:none; }
 .asset-category-sidebar > nav { max-height:240px; }
 .board-edit-tool-stack .board-edit-palette { width:min(260px,calc(100vw - 24px)); }
}

/* Patch 184: background mascot and shared preview. */
.postit-board-canvas { isolation:isolate; }
.board-mascot[data-mascot-kind="GECKO"] { z-index:-1!important;visibility:hidden;pointer-events:none; }
.gecko-preview { position:relative;width:100%;height:100%;min-height:40px;overflow:hidden;isolation:isolate; }

.postit-card.notes-paper-dark :is(label,.postit-footer,.postit-title-input,.quick-task-input,.postit-menu-button) {color:inherit;}
.postit-card.notes-paper-dark input::placeholder {color:#d1d8d3;opacity:.8;}
.postit-card.notes-paper-dark .shared-chip {color:#b7e2ef;background:#b7e2ef18;}
.postit-card.notes-paper-dark :is(.closed-mark,.cancelled-mark) {color:#b8debb;}
.postit-card.notes-paper-dark :is(.postit-title-input,.quick-task-input) {border-color:#ffffff40;}

/* Patch 185 */
.modern-board-hud {background:rgba(248,250,252,.56)!important;backdrop-filter:blur(8px);opacity:.65!important;transition:opacity .18s ease;}
.modern-board-hud:hover,.modern-board-hud:has(:focus-visible) {opacity:1!important;}
.gecko-preview {position:absolute;inset:0;min-height:0;}
.gecko-preview .board-mascot[data-mascot-kind="GECKO"] {z-index:0!important;}
.bundle-selected-switch {display:flex;align-items:center;gap:8px;white-space:nowrap;margin-left:auto;}
.bundle-selected-switch input {width:34px;accent-color:#477cad;}
.note-texture-controls {display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px;border:1px solid #d9e1e8;border-radius:10px;margin-bottom:12px;}
.note-texture-controls label {min-width:200px;flex:1;}.note-texture-controls small {flex-basis:100%;}
.postit-card.notes-texture-tinted :is(label,.postit-footer,.postit-title-input,.quick-task-input,.postit-menu-button) {color:inherit;}
.postit-card.notes-texture-tinted input::placeholder {color:inherit;opacity:.7;}

/* Patch 186 */
.modern-board-hud.hud-collapsed > :not(.hud-collapse){display:none!important}
.board-line-svg{position:absolute;inset:0;overflow:visible;pointer-events:none;color:var(--element-color,#fff)}
.note-texture-sample{width:180px;height:100px;padding:15px;color:#242a30;border-radius:4px}
.board-management-bar .tackora-tool-icon,.board-tools-top .tackora-tool-icon{width:20px;height:20px;flex-shrink:0}
.gecko-preview .board-mascot{position:absolute!important;left:0!important;top:0!important;max-width:none!important;max-height:none!important;z-index:1!important}
.gecko-green .board-mascot-motion{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;transform:none!important}
.gecko-green .board-mascot-motion > img{display:none!important}
.gecko-green canvas.gecko-art{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;padding:0!important;margin:0!important;object-fit:contain!important}
.cursor-thumbnail{display:block!important;width:56px!important;height:56px!important;object-fit:contain!important;image-rendering:auto;margin:auto}

/* Patch 187: bounded texture contrast and readable completed tasks. */
.postit-card.notes-texture-tinted .postit-task-row.done :is(span,.postit-task-open){opacity:1!important;color:inherit!important}
.postit-card.notes-texture-tinted .postit-task-row.done{opacity:1}
.board-settings-background-mode-card{display:flex;gap:24px;align-items:start;flex-wrap:wrap}
.board-settings-background-mode-card>label{flex:1;min-width:220px}
.background-opacity-setting{display:flex;flex-direction:column;gap:8px}.background-opacity-setting input{width:100%}
.gecko-fallback{position:absolute!important;inset:0!important;margin:auto!important;width:auto!important;height:90%!important;max-width:90%!important;object-fit:contain!important;pointer-events:none}
.gecko-preview:has(canvas.gecko-art)>.gecko-fallback{display:none!important}

/* 189: shared tool glyph in every product surface. */
.catalog-asset-tool {display:grid;place-items:center;width:100%;height:100%;color:inherit}
.catalog-asset-tool .tackora-tool-icon {width:55%;height:55%;max-width:64px;max-height:64px}
/* 190: switches, consistent input controls and sidebar settings. */
.ui-switch{display:inline-flex!important;align-items:center!important;gap:9px;position:relative;cursor:pointer;min-width:0;white-space:normal!important;font-size:12px;line-height:1.4}
.ui-switch>input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important}
.ui-switch-track{position:relative;display:block;flex:0 0 36px;width:36px;height:21px;border-radius:20px;background:#a4aebb;border:1px solid #8f9baa;transition:background .15s}
.ui-switch-track:after{content:"";position:absolute;left:2px;top:2px;width:15px;height:15px;background:white;border-radius:50%;box-shadow:0 1px 3px #0003;transition:transform .15s}
.ui-switch>input:checked+.ui-switch-track{background:#527fa7;border-color:#527fa7}
.ui-switch>input:checked+.ui-switch-track:after{transform:translateX(15px)}
.ui-switch>input:focus-visible+.ui-switch-track{outline:2px solid #315e83;outline-offset:3px}
.ui-switch-label{min-width:0;overflow-wrap:anywhere}
.catalog-item-editor .catalog-offer-switch{grid-column:1/-1;min-width:0;padding:8px 0}
.catalog-item-editor .check-label{white-space:normal;min-width:0;overflow-wrap:anywhere}
.catalog-item-editor .check-label.span-2{grid-column:1/-1}
.asset-upload-control{position:relative;display:inline-flex!important;align-items:center;justify-content:center;flex:0 1 auto!important;min-width:0!important;width:max-content;max-width:100%;padding:9px 14px;border:1px solid #cbd7e3;border-radius:7px;background:#f5f8fb;color:#315c82;cursor:pointer;font-size:12px;font-weight:600;overflow:hidden}
.asset-upload-control:hover{background:#e8f0f7}
.asset-upload-control:focus-within{outline:2px solid #527fa7;outline-offset:2px}
.asset-upload-control>input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0;min-width:0}
.catalog-item-editor .note-texture-controls{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
.catalog-item-editor .note-texture-controls>label{min-width:0}
.catalog-shop-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.catalog-shop-toolbar .shop-search-field{display:flex!important;align-items:center;gap:9px;flex:1 1 260px;min-width:160px;position:relative;border:1px solid #d6dee7;border-radius:7px;background:#fff;padding:0 11px;color:#56677a}
.catalog-shop-toolbar .shop-search-field>.tackora-tool-icon{position:static;width:18px;height:18px;flex:0 0 18px}
.catalog-shop-toolbar .shop-search-field>input{flex:1;min-width:0;width:100%;height:36px;min-height:36px;border:0!important;box-shadow:none!important;background:transparent!important;padding:6px 0!important;outline:none}
.catalog-shop-toolbar .shop-search-field:focus-within{outline:2px solid #86a6c6;outline-offset:1px}
.catalog-shop-toolbar>select{flex:0 1 210px;min-width:160px;width:auto}
.board-settings-tabbed-modal{display:flex;flex-direction:column;overflow:hidden}
.board-settings-browser{display:grid;grid-template-columns:200px minmax(0,1fr);flex:1;min-height:0;overflow:hidden}
.board-settings-sidebar{min-height:0;overflow-y:auto;background:#f5f7fa;border-right:1px solid #dbe3eb;padding:12px;overscroll-behavior:contain}
.board-settings-filter{padding:4px 0 14px;border-bottom:1px solid #dce3eb;margin-bottom:10px}
.board-settings-sidebar nav{display:flex;flex-direction:column;gap:4px}
.board-settings-sidebar nav button{display:flex;align-items:center;gap:9px;width:100%;min-width:0;padding:10px;text-align:left;background:transparent;border:1px solid transparent;border-radius:7px;color:#40536b;font-size:12px;white-space:normal}
.board-settings-sidebar nav button:hover{background:#eaf0f6}
.board-settings-sidebar nav button.active{background:#e3edf8;border-color:#b9cce1;color:#24557f;font-weight:600}
.settings-category-icon{width:22px;text-align:center;flex-shrink:0}
.board-settings-browser>.board-settings-tab-body{min-width:0;min-height:0;max-height:none;overflow-y:auto;padding:20px;overscroll-behavior:contain}
.board-settings-background-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:100%;margin:0 0 20px}
.board-settings-background-controls>.board-settings-card{display:flex;flex-direction:column;gap:12px;width:100%;max-width:none;min-width:0;margin:0;padding:16px;box-sizing:border-box}
.board-settings-background-controls select,.board-settings-background-controls input{width:100%;min-width:0;box-sizing:border-box}
.board-settings-background-controls small{line-height:1.5}
.board-settings-product-preview.none>.tackora-tool-icon,.settings-default-preview>.tackora-tool-icon{width:42px;height:42px;stroke:#6c8399}
.settings-default-preview{display:grid;place-items:center}
@media(max-width:700px){.board-settings-browser{grid-template-columns:145px minmax(0,1fr)}.board-settings-sidebar{padding:8px}.board-settings-sidebar nav button{font-size:11px;padding:8px 5px}.board-settings-browser>.board-settings-tab-body{padding:12px}.board-settings-background-controls{grid-template-columns:1fr}.catalog-shop-toolbar .shop-search-field{flex-basis:100%;min-width:0}.catalog-shop-toolbar>select{flex:1 1 auto}.board-settings-sidebar .ui-switch{flex-wrap:wrap}}

/* 191: the tenant menu is shared by the top navigation and board account flyout. */
.tenant-admin-links{display:flex;flex-direction:column;min-width:0;width:100%}
.tenant-admin-links>.topnav-menu-link{display:block;width:100%;box-sizing:border-box;min-height:34px;padding:8px 9px;border:0;border-radius:7px;background:transparent;color:#26303d;font:inherit;font-size:12px;text-align:left;white-space:normal;cursor:pointer}
.tenant-admin-links>.topnav-menu-link:hover:not(:disabled){background:#edf0f4}
.tenant-admin-links>.topnav-menu-link:focus-visible{outline:2px solid #527fa7;outline-offset:-2px;background:#edf0f4}
.tenant-admin-links>.topnav-menu-link:disabled{opacity:.55;cursor:wait}
.tenant-admin-links>[role=alert]{margin:6px 9px;font-size:12px;line-height:1.4;color:#a33030;overflow-wrap:anywhere}

/* Patch 202 - azioni Catalogo compatte e conferma cancellazione */
.catalog-v2-table .catalog-row-icon {
    width:30px;
    min-width:30px;
    height:28px;
    min-height:28px;
    padding:0;
    display:inline-grid;
    place-items:center;
    font-size:14px;
    line-height:1;
}
.catalog-delete-modal { width:min(560px,calc(100vw - 28px)); max-width:none; }
.catalog-delete-modal .danger-box { border-color:#e1b9b9; background:#fff7f7; }
.catalog-delete-modal .danger-box strong { color:#8e2020; }
.catalog-delete-modal .danger-box span { display:block; margin-top:4px; }
.primary-button.danger { background:#a42626; border-color:#a42626; color:#fff; }
.primary-button.danger:hover { background:#861d1d; border-color:#861d1d; }

/* Patch 204 - correzioni regressioni 203: Notes contenute, filtro nel footer,
   drag compatto con anteprima di arrivo, preview Effetti e Geco preservata lato Razor. */
.postit-card:not(.tt-note) > .postit-task-section {
    flex:1 1 0;
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    box-sizing:border-box;
}
.postit-card:not(.tt-note) .postit-task-list {
    flex:1 1 0;
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:0;
    overflow:hidden!important;
    align-content:start;
    box-sizing:border-box;
}
.postit-task-row {
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    overflow:hidden;
    grid-template-columns:16px minmax(0,1fr) auto auto auto;
}
.postit-task-row.can-reorder {
    grid-template-columns:6px 16px minmax(0,1fr) auto auto auto;
    column-gap:4px;
}
.postit-task-open {
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    white-space:normal!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere;
    word-break:normal;
    text-align:left!important;
    line-height:1.22;
}
.postit-task-drag-handle {
    width:6px;
    min-width:6px;
    max-width:6px;
    height:18px;
    min-height:18px;
    padding:0!important;
    margin:0!important;
    display:grid;
    place-items:center;
    overflow:visible!important;
    font-size:8px;
    line-height:18px;
    letter-spacing:-2px;
    opacity:.48;
}
.postit-task-row:hover .postit-task-drag-handle { opacity:.9; }
.postit-task-row.task-overflow-hidden { display:none!important; }
.postit-task-overflow-indicator {
    width:100%;
    max-width:100%;
    min-height:17px;
    border:0;
    border-top:1px dashed color-mix(in srgb,currentColor 25%,transparent);
    background:transparent;
    color:inherit;
    padding:3px 2px 1px;
    text-align:center;
    font-size:8px;
    font-weight:800;
    letter-spacing:.02em;
    opacity:.72;
    cursor:pointer;
    box-sizing:border-box;
}
.postit-task-overflow-indicator:hover { opacity:1; text-decoration:underline; }

/* Il filtro attività vive nella barra di riepilogo in basso a destra. */
.postit-footer.has-task-filter {
    position:relative;
    padding-right:112px;
    box-sizing:border-box;
}
.postit-footer-task-filter {
    position:absolute;
    right:15px;
    top:0;
    z-index:2;
    display:inline-flex;
    align-items:center;
    height:17px;
    min-height:17px;
    padding:1px;
    border:1px solid color-mix(in srgb,currentColor 24%,transparent);
    border-radius:999px;
    background:rgba(255,255,255,.18);
    color:inherit;
    font-size:8px;
    line-height:1;
    box-sizing:border-box;
}
.postit-footer-task-filter > button {
    appearance:none;
    display:grid;
    place-items:center;
    height:13px;
    min-height:13px;
    margin:0;
    padding:0 5px;
    border:0;
    border-radius:999px;
    background:transparent;
    color:inherit;
    font:inherit;
    line-height:1;
    white-space:nowrap;
    opacity:.62;
    cursor:pointer;
}
.postit-footer-task-filter > button.active {
    background:rgba(255,255,255,.78);
    box-shadow:0 1px 2px rgba(0,0,0,.12);
    opacity:1;
    font-weight:800;
}
.postit-footer-task-filter > button:focus-visible {
    outline:1px solid currentColor;
    outline-offset:1px;
}
.postit-card.notes-paper-dark .postit-footer-task-filter > button.active {
    background:rgba(0,0,0,.28);
}

/* Feedback di destinazione durante il riordino. Il box e' un overlay JS e non
   altera il DOM gestito da Blazor durante il trascinamento. */
.task-reorder-drop-preview {
    position:fixed;
    z-index:2147482999;
    height:12px;
    min-height:12px;
    pointer-events:none;
    border:1px dashed #2d7dd2;
    border-radius:6px;
    background:color-mix(in srgb,#2d7dd2 16%,transparent);
    box-shadow:0 0 0 2px rgba(255,255,255,.65),0 2px 7px rgba(45,125,210,.22);
    box-sizing:border-box;
}
.postit-task-row.is-reordering { opacity:.42; }
.task-reorder-ghost.postit-task-row {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:center;
    min-height:28px;
    padding-left:24px;
}
.task-reorder-ghost.postit-task-row :is(.postit-task-drag-handle,.task-status-cycle,.task-you,.task-assignee-indicator,.task-attachment-count) {
    display:none!important;
}
.task-reorder-ghost.postit-task-row .postit-task-open {
    display:block;
    width:100%;
    max-height:2.5em;
    overflow:hidden!important;
    color:#26303d;
    font-size:11px;
    text-align:left!important;
}
.board-settings-product-preview.effect-live {
    background:#202830;
}
.board-settings-product-preview.effect-live > .catalog-asset-preview {
    width:100%;
    height:100%;
    border-radius:0;
}

/* Patch 205 - DnD attività senza ghost testuale e righe modale elastiche. */
.postit-task-open {
    padding-top:1px;
    padding-bottom:1px;
}
.detail-task.can-reorder {
    grid-template-columns:12px 20px minmax(0,1fr) auto;
}
.detail-task-drag-handle {
    width:12px;
    min-width:12px;
    max-width:12px;
    height:22px;
    min-height:22px;
    letter-spacing:-2px;
    font-size:8px;
    align-self:start;
}
.task-reorder-ghost {
    display:none !important;
}


/* Patch 206 - le righe attività nelle Notes devono crescere con il testo multilinea.
   La lista usa righe implicite a contenuto naturale: nessuna attività successiva può
   sovrapporsi alle righe precedenti quando il titolo va a capo. */
.postit-card:not(.tt-note) .postit-task-list {
    grid-auto-rows:max-content;
    align-items:start;
}
.postit-card:not(.tt-note) .postit-task-row {
    height:auto!important;
    min-height:20px;
    align-self:start;
    align-items:start;
    overflow:visible;
}
.postit-card:not(.tt-note) .postit-task-open {
    position:static!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    display:block;
    align-self:start;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:anywhere;
    word-break:normal;
    line-height:1.22;
}
.postit-card:not(.tt-note) .task-status-cycle,
.postit-card:not(.tt-note) .postit-task-drag-handle,
.postit-card:not(.tt-note) .task-you,
.postit-card:not(.tt-note) .task-assignee-indicator,
.postit-card:not(.tt-note) .task-attachment-count {
    align-self:start;
}

/* Patch 208 - Piani, capability, requisiti asset e add-on. */
.plan-summary-grid { margin-bottom:14px; }
.plan-capability-group { margin:12px 0 16px; }
.plan-capability-group > h3 { margin:0 0 7px; font-size:12px; color:#3d4857; }
.plan-comparison-wrap { overflow:auto; }
.plan-comparison-table { min-width:720px; }
.plan-comparison-table th:first-child,.plan-comparison-table td:first-child { position:sticky; left:0; z-index:1; min-width:210px; background:#fff; }
.plan-comparison-table thead th:first-child { z-index:2; }
.plan-comparison-table .plan-column { min-width:145px; vertical-align:top; }
.plan-comparison-table .plan-column strong,.plan-comparison-table .plan-column small { display:block; }
.plan-comparison-table .plan-column small { margin:3px 0 6px; color:#728092; font-size:8.5px; font-weight:500; }
.plan-action-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:10px; margin-top:12px; }
.plan-action-card { min-width:0; display:flex; flex-direction:column; gap:8px; padding:12px; border:1px solid #dde4ec; border-radius:11px; background:#fff; box-shadow:0 4px 13px #0000000a; }
.plan-action-card.current { border-color:#a9bfd8; background:#f7fbff; }
.plan-action-card > div { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.plan-action-card > div span { color:#607083; font-size:9px; font-weight:700; text-align:right; }
.plan-action-card p { flex:1 1 auto; margin:0; color:#687587; font-size:9px; line-height:1.45; }
.plan-action-card small { color:#7a6670; font-size:8.5px; line-height:1.4; }
.shop-plan-compatibility { width:min(880px,calc(100vw - 32px)); }
.shop-compatible-addon-list,.shop-compatible-plan-list { display:grid; gap:7px; margin:7px 0 12px; }
.shop-compatible-addon-list > div { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 9px; border:1px solid #e0e6ed; border-radius:8px; background:#fafbfd; }
.shop-compatible-addon-list > div > span { min-width:0; display:grid; gap:2px; }
.shop-compatible-addon-list small { color:#738091; font-size:8.5px; }
.shop-compatible-plan-list { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.shop-compatible-plan-list > span { padding:8px 9px; border:1px solid #e0e6ed; border-radius:8px; background:#fafbfd; font-size:9px; }
.workspace-plan-cell .mini-select { width:100%; min-width:155px; margin:5px 0 2px; }
@media (max-width:760px) {
    .plan-action-grid,.shop-compatible-plan-list { grid-template-columns:1fr; }
    .shop-compatible-addon-list > div { align-items:stretch; flex-direction:column; }
}

/* Patch 208 - piani / entitlement UX */
.ui-switch.disabled{opacity:.58;cursor:not-allowed}
.ui-switch.disabled .ui-switch-track{cursor:not-allowed}
.plan-switch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.plan-switch-item{display:grid;gap:4px;padding:10px 12px;border:1px solid #dfe5ec;border-radius:10px;background:#fafbfd}
.plan-switch-item.emphasized{border-color:#b8c9dc;background:#f5f9fd}
.plan-switch-item small{color:#6c7888;font-size:9px;line-height:1.4}
.plan-selection-section{margin-bottom:12px}
.plan-action-grid-top{margin-top:0;margin-bottom:14px}
.plan-action-card.downgrade:not(.current){border-style:dashed}
.plan-action-card.locked:not(.current){opacity:.72}
@media(max-width:760px){.plan-switch-grid{grid-template-columns:1fr}}

/* 209: one literal texture veil; interaction handles remain above decoration. */
.note-texture-sample,.note-texture-preview { position:relative; isolation:isolate; }
.postit-card > .note-texture-veil,.note-texture-veil { position:absolute;inset:0;border-radius:inherit;background-image:var(--note-texture-image,none);background-size:var(--note-texture-size,128px 128px);background-repeat:repeat;opacity:var(--note-texture-opacity,0);pointer-events:none;z-index:0; }
.postit-card > :not(.note-texture-veil):not(.note-fastener):not(.note-cobweb):not(.postit-resize-handle):not(.postit-rotate-handle):not(.postit-pin-indicator) { position:relative;z-index:1; }
.note-texture-sample > .note-texture-veil { z-index:-1; }

/* 210: one functional pin, raised above the note like the original. */
.postit-card > .postit-pin-indicator.note-fastener { top:calc(10px - var(--note-pin-size,36px) * .78)!important;left:50%;width:var(--note-pin-size,36px);height:var(--note-pin-size,36px);z-index:80;pointer-events:none;filter:none; }

.postit-card .note-fastener .catalog-asset-preview { background:transparent;border-radius:0; }

/* Keep the 1:1 Pin preview visible at the largest configured size. */
.asset-editor-preview-stage.pin-editor-preview-stage { min-height:280px; }

/* 214: pasted images remain browser-local until Save. */
.pending-image-attachments { margin:12px 0; }
.pending-image-list { display:flex; flex-wrap:wrap; gap:12px; }
.pending-image-list figure { margin:8px 0; padding:8px; border:1px solid #8885; border-radius:8px; }
.pending-image-list img { display:block; width:140px; height:100px; object-fit:contain; }
.pending-image-list figcaption { font-size:.8rem; margin:6px 0; }

/* 214: one table aligns plan cards, headers and capability values. */
.shop-plans-button { font-size:1rem; padding:12px 22px; box-shadow:0 3px 14px #bd7d2438; }
.shop-plans-section .plan-comparison-table { table-layout:fixed; width:100%; min-width:980px; }
.shop-plans-section .plan-comparison-table th:first-child,.shop-plans-section .plan-comparison-table td:first-child { width:220px; text-align:left; }
.shop-plans-section .plan-comparison-table th,.shop-plans-section .plan-comparison-table td { text-align:center; padding:16px 12px; }
.shop-plans-section .plan-comparison-table .plan-column { padding:8px; vertical-align:top; }
.shop-plans-section .plan-action-card { min-height:230px; height:100%; display:flex; flex-direction:column; gap:12px; text-align:left; white-space:normal; }
.shop-plans-section .plan-action-card p { flex:1; font-weight:400; }
.plan-capability-heading small { display:block; font-weight:400; margin-top:8px; }
.plan-feature-yes { color:#16844b; font-size:1.4rem; font-weight:800; }
.plan-feature-no { color:#a14242; font-size:1.2rem; }
.shop-animated-badge { display:inline-block; border-radius:999px; padding:3px 8px; background:#eee6fa; color:#684393; font-size:.75rem; font-weight:700; }

/* 217: editor actions and attachment removal, shared by Notes and Tasks. */
.editor-detail-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.editor-detail-footer .detail-footer-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-left:auto; flex-wrap:wrap; }
.editor-discard-backdrop { z-index:47000; }
.editor-discard-dialog { width:min(650px,94vw); }
.pending-image-list figure { position:relative; }
.pending-image-list .pending-attachment-remove { position:absolute; top:3px; right:3px; width:25px; height:25px; padding:0; display:grid; place-items:center; border:1px solid #fff8; border-radius:50%; background:#242424e8; color:#fff; font-size:20px; line-height:1; box-shadow:0 1px 5px #0006; }
.pending-image-list .pending-file-name { display:block; min-width:100px; max-width:180px; padding:24px 6px 8px; overflow-wrap:anywhere; }
/* Grow the log viewport, never distribute free height across cards/events. */
.entity-history-modal { height:min(620px,calc(100vh - 28px)); max-height:calc(100vh - 28px); }
.entity-history-modal > header, .entity-history-modal > footer { flex:0 0 auto; }
.entity-history-modal .entity-history-body { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.entity-history-summary { flex:0 0 auto; align-content:start; }
.entity-history-timeline { flex:1 1 auto; min-height:0; overflow:auto; align-content:start; grid-auto-rows:max-content; }

/* Patch 219: il renderer condiviso occupa il cestino senza alterare la hit area. */
.board-floating-trash > .catalog-asset-preview { width:100%; height:100%; pointer-events:none; }
/* Quattro stati: il footer cresce se lo spazio non basta, senza coprire contatori o resize. */
.postit-card:not(.tt-note) > .postit-footer.has-task-filter {
    flex:0 0 auto; height:auto; min-height:18px; max-height:none;
    flex-wrap:wrap; overflow:visible; padding-right:15px; gap:4px 8px;
}
.postit-footer-task-filter {
    position:static; margin-left:auto; max-width:100%; height:auto;
    flex-wrap:wrap; min-height:19px; border-radius:9px;
}
.postit-footer-task-filter > button { height:16px; min-height:16px; padding:0 4px; }

/* Lo stato della hit-area è gestito dal D&D esistente, anche con zoom/pan. */
.board-floating-trash.is-drop-active .pumpkin-jaw,
.board-floating-trash.is-consuming-note .pumpkin-jaw { transform:scaleY(1.12); }

/* Shared System/Tenant Admin log detail contract. */
.audit-detail-dialog { min-width:0; }
.audit-detail-heading { display:flex; flex-direction:column; gap:6px; min-width:0; }
.audit-detail-heading small { font-size:12px; color:#64748b; overflow-wrap:anywhere; }
.audit-detail-body { min-height:0; overflow:auto; }
.audit-detail-section { padding:16px; margin-bottom:14px; border:1px solid #dce2eb; border-radius:10px; background:#fff; }
.audit-detail-section h3 { margin:0 0 14px; font-size:15px; }
.audit-detail-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); gap:14px 20px; }
.audit-detail-field,.audit-detail-text-block { display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-width:0; }
.audit-detail-field > span:first-child,.audit-detail-text-block > span:first-child { font-size:12px; color:#64748b; }
.audit-detail-field.full { grid-column:1/-1; }
.audit-detail-text-block + .audit-detail-text-block { margin-top:16px; }
.audit-detail-body pre { margin:0; padding:12px; width:100%; box-sizing:border-box; background:#f4f6f9; border:1px solid #e1e6ed; border-radius:6px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; line-height:1.6; }
.audit-detail-body code,.audit-detail-field strong { overflow-wrap:anywhere; max-width:100%; }

/* Patch 225 - stato inviti e slot condivisione */
.board-share-invitation-list {
    margin-top:14px;
    padding-top:2px;
}
.board-share-invitation-row > div { gap:2px; }
.board-share-invitation-row .board-share-waiting { color:#9a6200; font-weight:700; }
.board-share-invitation-row .board-share-declined { color:#a83b3b; font-weight:700; }
.board-share-invitation-date { color:#6d7887; font-size:10px; white-space:nowrap; }
.board-share-footer { align-items:center; justify-content:flex-start; }
.board-share-slot-badge {
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:4px 9px;
    border:1px solid #d5dde7;
    border-radius:999px;
    background:#f6f8fb;
    color:#425166;
    font-size:10px;
    font-weight:800;
    letter-spacing:.01em;
    white-space:nowrap;
    margin-right:auto;
}
.app-shell .board-share-slot-badge {
    border-color:var(--sys-border, #d5dde7);
    background:var(--sys-surface-2, #f6f8fb);
    color:var(--sys-text, #425166);
}
@media (max-width:700px) {
    .board-share-footer { flex-wrap:wrap; }
    .board-share-slot-badge { justify-content:center; }
}

@media (max-width:820px) {
    .dashboard-display-name-row { grid-template-columns:1fr; }
    .dashboard-display-name-control { justify-content:flex-start; flex-wrap:wrap; }
    .dashboard-display-name-control input { flex-basis:100%; }
}

/* Patch 228 - inbox inviti, condivisione unificata e riepiloghi compatti */
.board-management-bar .board-invite-button {
    position:relative;
    overflow:visible;
    border-color:#c6d6e8;
    background:#f3f8fd;
    color:#285b88;
}
.board-management-bar .board-invite-button:hover:not(:disabled) { background:#e8f2fb; }
.board-invite-count {
    position:absolute;
    top:-7px;
    right:-7px;
    min-width:18px;
    height:18px;
    padding:0 5px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
    border-radius:999px;
    background:#d92f35;
    color:#fff;
    box-shadow:0 0 0 2px rgba(217,47,53,.15),0 0 10px rgba(217,47,53,.5);
    font-size:9px;
    font-weight:900;
    line-height:1;
    pointer-events:none;
    animation:board-invite-badge-pulse 1.25s ease-in-out infinite;
}
@keyframes board-invite-badge-pulse {
    0%,100% { transform:scale(1); filter:brightness(1); box-shadow:0 0 0 2px rgba(217,47,53,.14),0 0 8px rgba(217,47,53,.42); }
    50% { transform:scale(1.12); filter:brightness(1.12); box-shadow:0 0 0 4px rgba(217,47,53,.08),0 0 15px rgba(217,47,53,.68); }
}
.board-invitations-modal { width:min(760px,calc(100vw - 28px)); }
.board-invitations-list { display:grid; gap:9px; max-height:min(520px,62dvh); overflow:auto; }
.board-invitation-card {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:14px;
    padding:11px 12px;
    border:1px solid #dce3eb;
    border-radius:10px;
    background:#fbfcfe;
}
.board-invitation-main { min-width:0; display:grid; gap:3px; }
.board-invitation-main strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.board-invitation-main span { color:#425268; font-size:10px; }
.board-invitation-main small { color:#748091; font-size:9px; line-height:1.4; }
.board-invitation-actions { display:flex; align-items:center; gap:7px; }

.share-summary-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.compact-share-button { min-height:28px; padding:4px 9px; white-space:nowrap; }
.share-empty-inline { margin-top:7px; color:#7a8492; font-size:10px; font-style:italic; }
.share-summary-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; }
.share-summary-person {
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-width:0;
    max-width:100%;
    padding:5px 8px;
    border:1px solid #dce3eb;
    border-radius:999px;
    background:#f7f9fc;
}
.share-summary-person strong { max-width:210px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.share-summary-person small { color:#697586; font-size:8px; white-space:nowrap; }

@media (max-width:700px) {
    .board-invitation-card { grid-template-columns:1fr; }
    .board-invitation-actions { justify-content:flex-end; }
}

