#view { animation: view-in .2s ease-out; }
#loading-bar { position: fixed; z-index: 9999; left: 0; top: 0; width: 0; height: 3px; opacity: 0; background: var(--accent); transition: width .25s ease, opacity .2s ease; }
#loading-bar.active { width: 72%; opacity: 1; animation: loading-pulse 1.1s ease-in-out infinite alternate; }
.toast { position: fixed; z-index: 10000; right: 20px; bottom: 20px; max-width: min(420px, calc(100% - 40px)); padding: .85rem 1rem; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 12px 35px #071d1845; animation: modal-in .18s ease-out; }
.toast.error { background: #8e3023; }
.card, .job-row, .choice-chip, .radio-chip span, .segmented span, .catalog-item { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease; }
.card:hover, .job-row:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #123c3020; }
.choice-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: .45rem 0 1.1rem; }
.choice-chips.compact { gap: .4rem; }
.quick-label { color: var(--muted); font-size: .78rem; font-weight: 750; margin-top: .4rem; }
.choice-chip, .radio-chip span { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; font: inherit; font-size: .88rem; }
.choice-chip:hover, .choice-chip.selected, .radio-chip input:checked + span { border-color: var(--green); background: #e8f1ed; color: var(--green); transform: translateY(-1px); }
.radio-chip input, .segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .4rem 0 1rem; }
.segmented:has(> label:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
.segmented span { display: grid; place-items: center; min-height: 42px; padding: .55rem; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; text-align: center; font-size: .84rem; }
.segmented input:checked + span { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 5px 15px #164b3b26; }
.catalog-intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: .7rem 0 .2rem; }
.catalog-intro p { max-width: 680px; margin: 0; line-height: 1.55; }
.catalog-intro label { min-width: 220px; margin: 0; }
#catalog-list { margin-top: 1rem; border-top: 1px solid rgba(170,184,177,.62); }
.catalog-group { padding: .15rem 0; border-bottom: 1px solid rgba(170,184,177,.62); animation: view-in .22s ease-out both; }
.catalog-group > summary { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .65rem; min-height: 60px; padding: .45rem .15rem; list-style: none; cursor: pointer; color: var(--ink); font-size: 1rem; font-weight: 830; }
.catalog-group > summary::-webkit-details-marker { display: none; }
.catalog-count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 .45rem; border-radius: 99px; background: #e7efec; color: var(--green); font-size: .73rem; }
.catalog-chevron { width: 21px; height: 21px; color: var(--muted); transition: transform .18s ease; }
.catalog-group[open] .catalog-chevron { transform: rotate(180deg); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .65rem; margin: .1rem 0 1rem; }
.catalog-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .7rem; min-height: 72px; padding: .65rem .55rem .65rem .75rem; border: 1px solid rgba(190,199,194,.78); border-radius: 15px; background: rgba(255,255,255,.72); box-shadow: 0 5px 16px #123b3508; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease; }
.catalog-item:hover { transform: translateY(-1px); border-color: #aecbbf; box-shadow: 0 8px 22px #123b3510; }
.catalog-copy { min-width: 0; }
.catalog-copy strong { display: block; line-height: 1.18; overflow-wrap: anywhere; }
.catalog-copy small { display: block; color: var(--muted); margin-top: .22rem; }
.catalog-origin { width: max-content; padding: .18rem .42rem; border-radius: 99px; background: #edf4f1; color: var(--green) !important; font-size: .66rem; font-weight: 760; }
.catalog-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #edf3f0; }
.catalog-item.is-inactive { border-style: dashed; background: rgba(250,250,248,.72); }
.catalog-item.is-inactive strong { color: var(--muted); }
.catalog-actions { display: flex; align-items: center; gap: .35rem; }
.catalog-menu { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--muted); }
.catalog-menu:hover { background: #e8f0ed; color: var(--green); }
.catalog-menu svg { width: 22px; height: 22px; fill: currentColor; }
.catalog-empty { margin: .1rem 0 1rem; font-size: .86rem; }
.catalog-removed > p { margin: 0 0 .85rem; }
.catalog-restore { min-height: 44px; padding: .55rem .7rem; border: 1px solid #c7ded5; background: #edf5f2; color: var(--green); font-size: .78rem; }
.catalog-delete { min-height: 44px; padding: .55rem .7rem; border: 1px solid #eccfc7; background: #fff5f2; color: #8e3023; font-size: .78rem; }
.catalog-delete:hover { background: #f4e5e1; border-color: #dca99d; }
.catalog-delete:disabled, .catalog-restore:disabled, .catalog-menu:disabled { opacity: .55; cursor: wait; }
.catalog-sheet-preview { display: flex; align-items: center; gap: .8rem; padding: .85rem; border: 1px solid var(--line); border-radius: 14px; background: #f7faf8; }
.catalog-sheet-preview small { display: block; margin-top: .2rem; color: var(--muted); }
.catalog-sheet-actions { display: grid; gap: .55rem; margin-top: 1.15rem; }
.catalog-sheet-actions button { width: 100%; min-height: 48px; }
.catalog-sheet-danger { border: 1px solid #eccfc7; background: #fff3f0; color: #8e3023; }
.catalog-sheet-danger:hover { background: #f4e5e1; }
.catalog-sheet-danger:disabled { opacity: .55; cursor: wait; }
.job-progress { display: flex; align-items: center; gap: .45rem; overflow-x: auto; padding: .8rem 0 1rem; }
.job-progress > span { color: var(--muted); font-size: .76rem; white-space: nowrap; margin-right: .25rem; }
.job-progress button { white-space: nowrap; background: #e7eeeb; color: var(--green); padding: .55rem .75rem; }
.job-progress button.active { background: var(--green); color: #fff; box-shadow: 0 4px 12px #164b3b26; }
.notification-button { position: relative; display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; min-width: 48px; padding: 0; border: 1px solid #cfe0da; border-radius: 14px; background: #e7f0ed; color: var(--green); }
.notification-button:hover { background: #dcebe6; box-shadow: 0 7px 18px #123b3518; }
.notification-icon { width: 25px; height: 25px; }
.notification-button span { position: absolute; right: -7px; top: -7px; min-width: 23px; height: 23px; padding: 0 5px; display: grid; place-items: center; border: 2px solid var(--paper); border-radius: 99px; background: var(--accent); color: #fff; font-size: .7rem; line-height: 1; font-weight: 850; }
.notification-button span[hidden] { display: none; }
.notification-list { display: grid; gap: .55rem; }
.notification-row { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; width: 100%; text-align: left; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.notification-row.unread { background: #eef6f2; border-color: #b9d5ca; }
.notification-row small { display: block; color: var(--muted); margin-top: .3rem; }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; background: #b8c6c1; }
.notification-row.unread .notification-dot { background: var(--accent); box-shadow: 0 0 0 4px #e9d8d2; }
.approval-actions { display: flex; gap: .35rem; }
.approval-actions button { padding: .45rem .6rem; background: #e4efeb; color: var(--green); }
.approval-actions button:last-child { background: #f4e5e1; color: #8e3023; }
.action-link { display: inline-block; margin-top: .7rem; padding: .7rem .9rem; border-radius: 11px; background: #e6efec; color: var(--green); text-decoration: none; font-weight: 750; }
.danger-zone { border-color: #ead2cc; background: #fffaf8; }
.customer-access-list { display: grid; gap: .55rem; }
.customer-access-list > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem; border: 1px solid var(--line); border-radius: 11px; }
.customer-access-list small { display: block; color: var(--muted); margin-top: .2rem; }
.media-actions { display: flex; justify-content: flex-end; gap: .35rem; margin-top: .4rem; }
.media-actions button { float: none; }
.approved-mark { color: var(--green); font-weight: 750; }
dialog[open] { animation: modal-in .18s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes loading-pulse { to { width: 92%; } }
@media (max-width: 600px) { .segmented, .segmented:has(> label:nth-child(4)) { grid-template-columns: 1fr; } .catalog-intro { display: block; margin-top: .3rem; } .catalog-intro label { margin-top: .8rem; min-width: 0; } .catalog-grid { grid-template-columns: 1fr; gap: .5rem; } .catalog-group > summary { min-height: 58px; } .catalog-item:hover { transform: none; box-shadow: 0 5px 16px #123b3508; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.account-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 18px}.account-shortcuts a,.account-shortcuts button{display:flex;flex-direction:column;gap:5px;text-align:left;text-decoration:none;padding:16px;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--ink);font-weight:400}.account-shortcuts span{color:var(--muted);font-size:11px}.account-shortcuts b{font-size:13px}

@media(max-width:760px){
  .shell{display:block;min-height:100svh}.sidebar{position:fixed;z-index:900;left:0;right:0;bottom:0;height:calc(68px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);gap:0;align-items:start;padding:7px 6px env(safe-area-inset-bottom);overflow:visible;background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 28px #123b3514;color:var(--ink)}
  .sidebar .brand,.sidebar>a{display:none}.sidebar button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;min-height:54px;margin:0;padding:4px 2px;background:transparent!important;color:var(--muted);font-size:10px;line-height:1;border-radius:10px}.sidebar button::before{display:block;font-size:20px;line-height:1}.sidebar button.active{color:var(--green)}.sidebar button.active::after{content:"";position:absolute;top:0;width:24px;height:3px;border-radius:0 0 4px 4px;background:var(--green)}
  #nav-catalogs,#nav-reviews{display:none}.sidebar #nav-properties::before{content:"⌂"}.sidebar #nav-team::before{content:"♙"}.sidebar #nav-chat::before{content:"◌"}.sidebar #nav-account::before{content:"○"}
  .content{padding:18px 14px calc(92px + env(safe-area-inset-bottom))}.top{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;margin-bottom:18px}.top>div:first-child small{font-size:11px}.top h1{font-size:24px;line-height:1.1;margin:4px 0 0}.top #page-actions{grid-column:1/-1;grid-row:2;display:flex;width:100%;gap:8px}.top #page-actions:empty{display:none}.top #page-actions button{flex:1;min-height:46px}.notification-button{width:44px;height:44px;min-width:44px;min-height:44px;flex-basis:44px}.notification-icon{width:23px;height:23px}
  .grid{grid-template-columns:1fr;gap:10px;margin-top:14px}.card{padding:17px;border-radius:16px}.card:hover,.job-row:hover{transform:none;box-shadow:none}.empty{padding:28px 18px;margin-top:14px}.empty .action{width:100%;min-height:48px}
  .property-hero,.job-hero{margin:0 -14px;border-radius:0;padding:22px 18px}.property-hero h2,.job-hero h2{font-size:27px}.tabs{position:sticky;z-index:20;top:0;margin:14px -14px 18px;padding:0 10px;background:var(--paper);scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs button{min-height:48px;padding:11px 10px}
  .section-actions{display:block;margin:20px 0 12px}.section-actions>.action{width:100%;min-height:47px;margin-top:10px}.panel{padding:17px;border-radius:16px}.media-grid{grid-template-columns:1fr 1fr;gap:9px}.media-preview{height:115px}.job-row{min-height:66px;padding:12px}.fab{right:18px;bottom:calc(82px + env(safe-area-inset-bottom))}
  dialog{width:100%;max-width:none;max-height:92svh;margin:auto 0 0;border-radius:24px 24px 0 0}.modal-body{max-height:92svh;overflow:auto;padding:24px 18px calc(22px + env(safe-area-inset-bottom))}.modal-body h2{padding-right:34px}.modal-body input,.modal-body select,.modal-body textarea{font-size:16px;min-height:50px}.modal-close{width:44px;height:44px;right:8px;top:7px}
  .account-shortcuts{grid-template-columns:1fr;gap:8px}.account-shortcuts a,.account-shortcuts button{min-height:64px;padding:13px 15px}.toast{left:14px;right:14px;bottom:calc(80px + env(safe-area-inset-bottom));max-width:none;text-align:center}
}
.card,.panel,.chat,.member-card,.notification-row{background:var(--glass);border-color:rgba(177,190,184,.62);box-shadow:var(--soft-shadow);backdrop-filter:blur(16px) saturate(1.06);-webkit-backdrop-filter:blur(16px) saturate(1.06)}.property-hero,.job-hero{background:linear-gradient(145deg,#103b34 0%,#1d6355 72%,#2b7867 100%);box-shadow:0 18px 42px #123b3529}.sidebar{background:linear-gradient(180deg,#0f352f,#123b35 58%,#174a41)}button.action,.fab{box-shadow:0 10px 26px #e16a4230}.badge{border:1px solid #cfe0da}.empty{background:rgba(255,255,255,.46);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
@media(max-width:760px){.sidebar{background:rgba(255,255,255,.9);backdrop-filter:blur(18px) saturate(1.1);-webkit-backdrop-filter:blur(18px) saturate(1.1)}}

/* Blocco abbonamento: schermata unica, una sola decisione possibile. */
.billing-wall{max-width:460px;margin:0 auto;padding:34px 30px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 46px #123b3517}
.billing-wall .brand{display:inline-block;margin-bottom:22px;text-decoration:none}
.billing-wall h1{font-size:25px;line-height:1.2;margin:0 0 8px}
.billing-wall p{margin:0 0 14px;color:var(--muted);font-size:15px;line-height:1.55}
.billing-wall .wall-org{color:var(--ink);font-weight:600;font-size:14px}
.billing-wall .wall-trial{display:inline-block;margin:0 0 18px;padding:7px 14px;border-radius:999px;background:#eef5f2;color:var(--green);font-size:13px;font-weight:600}
.billing-wall .wall-cta{display:block;margin:20px 0 12px;padding:15px 22px;border-radius:13px;background:var(--green);color:#fff;text-decoration:none;font-weight:650;font-size:16px;min-height:52px;box-sizing:border-box}
.billing-wall .wall-cta:hover{filter:brightness(1.06)}
.billing-wall .link-button{background:none;border:0;color:var(--muted);font-size:13px;text-decoration:underline;cursor:pointer;min-height:44px}
.login .notice{padding:11px 14px;border-radius:11px;background:#eef5f2;color:#14584a;font-size:14px}
@media(max-width:600px){.billing-wall{padding:28px 20px;border-radius:18px}}
