@charset "UTF-8";
:root{--navy:var(--text);--navy-deep:var(--surface);--ink:var(--text);--muted:var(--text-muted);--line:var(--border);--paper:var(--page);--lime:var(--accent);--mint:var(--success);--orange:var(--accent);--danger:var(--error);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Arial,sans-serif;color:var(--ink);font-synthesis:none;scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
*{box-sizing:border-box}body{margin:0;background:var(--page);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;color:inherit}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit}h1,h2,h3,p{margin:0}button,input,select,textarea{outline-offset:4px}:focus-visible{outline:3px solid var(--focus)}a,button,input,select,textarea{touch-action:manipulation}[hidden]{display:none!important}.icon{width:21px;height:21px;display:inline-block;vertical-align:middle;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.icon-sm{width:17px;height:17px}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip-link{position:fixed;top:-80px;left:12px;background:var(--accent);padding:12px 20px;z-index:50;border-radius:8px}.skip-link:focus{top:12px}.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-weight:750;font-size:28px;letter-spacing:-1.4px}.brand-dot{color:var(--text-muted)}.brand-mark{display:grid;place-items:center;width:43px;height:45px;background:var(--accent);color:var(--text);border-radius:13px 13px 13px 3px}.brand-mark .icon{width:31px;height:31px;stroke-width:1.9}.brand small{display:block;letter-spacing:1.4px;font-size:8px;font-weight:500;margin-top:5px;color:var(--text-muted)}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:43px;border:1px solid transparent;border-radius:9px;padding:11px 17px;font-weight:600;font-size:12px;text-decoration:none;white-space:nowrap;transition:transform .2s,background .2s,border-color .2s,box-shadow .2s}.button:hover:not(:disabled){transform:translateY(-2px)}.button:active:not(:disabled){transform:translateY(0)}.button.lime{background:var(--accent);color:var(--text)}.button.lime:hover{background:var(--surface-raised);box-shadow:var(--shadow)}.button.dark,.button.primary{background:var(--surface);color:var(--text)}.button.dark:hover,.button.primary:hover{background:var(--surface-raised);box-shadow:var(--shadow)}.button.secondary{background:var(--surface);border-color:var(--border);color:var(--text)}.button.secondary:hover{border-color:var(--border);background:var(--surface-raised)}.button.quiet{background:transparent;color:var(--text-muted)}.button.quiet:hover{background:var(--surface-raised)}.button.danger{background:var(--error-bg);color:var(--error);border-color:var(--error-border)}.button.large{min-height:56px;padding:16px 24px;font-size:14px;gap:26px}.button.icon-only{width:43px;padding:10px}.text-link{display:inline-flex;align-items:center;gap:15px;text-decoration:none;font-size:13px;font-weight:550}.text-link span{font-size:20px}.text-button,.inline-link{padding:0;background:transparent;color:inherit;font-weight:550;line-height:1.6;text-decoration:underline;text-underline-offset:4px}.inline-link{font:inherit}.full-width{width:100%}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;line-height:1.6}
.public-header{height:102px;display:flex;align-items:center;justify-content:space-between;padding:0 max(6vw,24px);background:var(--surface);color:var(--text-muted);border-bottom:1px solid var(--border)}.public-header nav{display:flex;align-items:center;gap:35px}.public-header nav>a{font-size:12px;text-decoration:none;color:var(--text-muted)}.public-header nav>a:hover{color:var(--accent-text)}.public-header .brand{font-size:30px}.public-login{border-color:var(--border);color:var(--text);background:transparent;min-width:107px}.public-login:hover{background:var(--surface-raised)}.hero{position:relative;display:grid;grid-template-columns:1fr 1.06fr;gap:3vw;align-items:center;min-height:680px;max-height:900px;padding:52px 5vw 92px 8vw;background:var(--surface);color:var(--text-muted);overflow:hidden}.hero-copy{position:relative;z-index:2;animation:hero-enter .9s both}.hero-kicker{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:1.7px;color:var(--text-muted);font-weight:600;margin-bottom:26px}.hero-kicker>span{width:7px;height:7px;background:var(--accent);border-radius:50%;box-shadow:var(--shadow)}.hero h1{font-size:clamp(46px,5.1vw,82px);font-weight:500;letter-spacing:-4.5px;line-height:1.04;max-width:680px}.hero h1 em,.closing-section em{font-family:Georgia,"Times New Roman",serif;font-weight:400;color:var(--accent-text);letter-spacing:-4px}.hero-description{max-width:410px;font-size:15px;line-height:1.9;color:var(--text-muted);margin-top:27px}.hero-actions{display:flex;align-items:center;gap:26px;margin-top:33px;flex-wrap:wrap}.hero-note{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-size:10px;margin-top:22px}.hero-note .icon{width:15px;height:15px;color:var(--accent-text)}.hero-visual{position:relative;aspect-ratio:1.08;isolation:isolate;min-width:0;animation:hero-visual-in 1.2s both .15s}.neighborhood{position:relative;width:100%;height:100%;overflow:visible;z-index:2}.orbital{position:absolute;inset:10% 1%;border:1px solid var(--border);border-radius:50%;transform:rotate(-30deg)}.orbital-two{inset:19% -1%;transform:rotate(34deg)}.orbital-one:before{content:"";position:absolute;top:17%;left:10%;width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:var(--shadow)}.route-base{fill:none;stroke:var(--accent);stroke-width:2;opacity:.4}.route-flow{fill:none;stroke:var(--accent);stroke-width:2.4;stroke-dasharray:15 13;animation:route-move 4s linear infinite}.building{animation:building-in 1.2s both;transform-origin:50% 80%}.building-two{animation-delay:.15s}.building-three{animation-delay:.3s}.map-pin{animation:float-pin 4s ease-in-out infinite}.map-node>circle:nth-child(2){animation:node-pulse 3s ease-in-out infinite;transform-origin:327px 380px}.floating-card{position:absolute;z-index:4;display:flex;align-items:center;gap:12px;background:var(--surface);color:var(--text);padding:16px 19px;box-shadow:var(--shadow);border-radius:13px;animation:card-float 7s ease-in-out infinite}.floating-card strong{display:block;font-size:11px;font-weight:650;white-space:nowrap}.floating-card small{display:block;font-size:9px;color:var(--text-muted);line-height:1.7;margin-top:3px}.card-contact{top:9%;left:2%;transform:rotate(-4deg)}.mini-avatar{width:34px;height:34px;display:grid;place-items:center;background:var(--surface-raised);border-radius:10px;font-size:24px}.card-spark{width:7px;height:7px;border-radius:50%;background:var(--surface-raised);margin-left:8px}.card-reminder{bottom:11%;right:0;background:var(--surface-raised);animation-delay:-3s}.card-reminder small{font-size:8px;color:var(--text);letter-spacing:1px}.reminder-icon{display:grid;place-items:center;width:33px;height:33px;background:var(--surface-raised);border-radius:50%}.visual-caption{position:absolute;bottom:0;left:21%;font-size:8px;letter-spacing:2px;color:var(--text-muted)}.hero-scroll{position:absolute;left:8vw;bottom:29px;font-size:10px;letter-spacing:.4px;color:var(--text-muted);text-decoration:none;display:flex;align-items:center;gap:13px}.hero-scroll span{font-size:21px;color:var(--accent-text);animation:arrow-bob 2s ease-in-out infinite}.feature-ribbon{min-height:77px;display:flex;align-items:center;justify-content:center;gap:4.2vw;background:var(--accent);padding:18px 25px;color:var(--text);overflow:hidden}.feature-ribbon span{font-size:13px;white-space:nowrap;letter-spacing:-.2px;font-weight:550}.feature-ribbon i{font-style:normal;font-size:26px;color:var(--text-muted)}.how-section{display:grid;grid-template-columns:1fr 1fr;gap:7vw;padding:110px 10vw 105px;background:var(--surface-raised);scroll-margin-top:20px}.section-intro .eyebrow{color:var(--text-muted);margin-bottom:25px}.section-intro h2,.space-section h2{font-size:clamp(33px,3vw,48px);font-weight:500;line-height:1.15;letter-spacing:-1.8px}.section-intro>p:last-child{font-size:13px;line-height:1.9;color:var(--text-muted);max-width:310px;margin-top:26px}.section-intro>p:last-child strong{font-weight:600;color:var(--text)}.step-list{padding-top:8px}.step-list article{display:flex;gap:24px;padding:25px 0;border-bottom:1px solid var(--border)}.step-list article:first-child{padding-top:0}.step-list article>span{color:var(--text-muted);font:italic 23px Georgia,serif}.step-list h3{font-size:17px;font-weight:600;letter-spacing:-.4px;margin-bottom:11px}.step-list p{font-size:13px;line-height:1.9;color:var(--text-muted);max-width:390px}.space-section{display:grid;grid-template-columns:1fr 1fr;gap:7vw;align-items:center;background:var(--surface-raised);padding:74px 10vw 86px;scroll-margin-top:20px}.space-section .eyebrow{font-size:9px;margin-bottom:23px;color:var(--text-muted)}.space-section h2{font-size:40px;letter-spacing:-1.8px}.space-section p:not(.eyebrow){margin-top:22px;font-size:13px;line-height:1.9;color:var(--text-muted);max-width:420px}.feature-checks{list-style:none;padding:0;margin:23px 0 26px;font-size:12px;line-height:2.3;color:var(--text)}.feature-checks li:before{content:"✓";margin-right:10px;color:var(--text-muted);font-weight:bold}.space-art{position:relative;aspect-ratio:1.2;min-width:0;background:linear-gradient(135deg,var(--surface-raised),var(--surface))}.space-orbit{position:absolute;inset:9%;border:1px solid var(--border);border-radius:50%;animation:orbit-spin 50s linear infinite}.space-orbit:before,.space-orbit:after{content:"";position:absolute;background:var(--surface-raised);width:9px;height:9px;border-radius:50%;top:6%;left:23%}.space-orbit:after{top:auto;left:auto;bottom:16%;right:11%;background:var(--surface-raised)}.space-center{position:absolute;inset:30% 35%;display:grid;place-items:center;transform:rotate(-10deg);background:var(--surface);border-radius:29px 29px 29px 4px;box-shadow:var(--shadow)}.space-center .icon{width:70%;height:70%;color:var(--accent-text);stroke-width:1.4}.space-tile{position:absolute;width:74px;height:78px;border-radius:16px;display:grid;place-items:center;box-shadow:var(--shadow);animation:card-float 8s ease-in-out infinite}.space-tile .icon{width:33px;height:33px}.tile-a{top:2%;right:16%;transform:rotate(9deg);background:var(--surface-raised)}.tile-b{bottom:9%;right:2%;transform:rotate(12deg);background:var(--surface-raised);animation-delay:-2s}.tile-c{left:2%;top:30%;transform:rotate(-9deg);background:var(--surface-raised);animation-delay:-4s}.closing-section{text-align:center;padding:98px 20px 90px;color:var(--text-muted);background:var(--surface);position:relative;overflow:hidden}.closing-section:before{content:"";position:absolute;inset:-85% -5%;border:1px solid var(--border);border-radius:50%;pointer-events:none}.closing-section .eyebrow{color:var(--text-muted);font-size:9px;margin-bottom:26px}.closing-section h2{font-size:clamp(40px,4.7vw,67px);font-weight:500;line-height:1.1;letter-spacing:-2.5px}.closing-section em{letter-spacing:-2px}.closing-section .button{margin-top:32px}.closing-section>p:last-child{font-size:10px;color:var(--text-muted);margin-top:23px}.public-footer{display:flex;align-items:center;gap:33px;background:var(--surface);color:var(--text-muted);padding:28px 7vw;border-top:1px solid var(--border)}.public-footer>.brand{font-size:24px}.public-footer>p{font-size:10px;color:var(--text-muted)}.public-footer>div{margin-left:auto;display:flex;gap:25px;font-size:10px}.public-status{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);max-width:calc(100% - 32px);background:var(--warning-bg);border:1px solid var(--warning-border);border-radius:12px;padding:14px 23px;box-shadow:var(--shadow);z-index:8;font-size:12px;line-height:1.5}.noscript{padding:20px;background:var(--warning-bg);text-align:center}.reveal.motion-ready{opacity:0;transform:translateY(30px);transition:opacity .9s,transform .9s}.reveal.in-view{opacity:1;transform:none}
/* Spazio di lavoro */
.sidebar{position:fixed;inset:0 auto 0 0;width:247px;display:flex;flex-direction:column;padding:32px 20px 20px;background:var(--surface);color:var(--text-muted);z-index:5;overflow-y:auto}.sidebar .brand{padding:0 9px 44px;font-size:27px;gap:10px}.sidebar .brand-mark{width:38px;height:41px}.sidebar .brand-mark .icon{width:27px;height:27px}.sidebar-label{font-size:8px;color:var(--text-muted);letter-spacing:1.5px;padding:0 13px;margin-bottom:13px}.nav{display:flex;flex-direction:column;gap:7px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;min-height:47px;padding:12px 13px;background:transparent;border-radius:9px;font-size:12px;color:var(--text-muted);text-align:left;transition:background .2s,transform .2s}.nav-item .icon{width:19px;height:19px;color:var(--text-muted)}.nav-item b{font-size:10px;font-weight:550;background:var(--surface-raised);color:var(--text-muted);min-width:26px;padding:4px 6px;border-radius:6px;margin-left:auto;text-align:center}.nav-item.active{background:var(--accent);color:var(--text);box-shadow:var(--shadow)}.nav-item.active .icon{color:var(--text)}.nav-item.active b{background:var(--surface-raised);color:var(--text)}.nav-item:hover:not(.active){background:var(--surface-raised);transform:translateX(2px)}.area-card{padding:23px 18px 20px;border:1px solid var(--border);border-radius:12px;margin:38px 3px 26px;position:relative;overflow:hidden;background:linear-gradient(135deg,var(--surface-raised),var(--surface))}.area-card:after{content:"";position:absolute;right:-37px;top:32px;width:110px;height:110px;border:1px solid var(--border);border-radius:50%}.area-kicker{font-size:8px;letter-spacing:1.3px;color:var(--text-muted);margin-bottom:17px}.area-card strong{font-size:24px;line-height:1.15;letter-spacing:-.6px;font-weight:500;color:var(--text-muted)}.area-card p{font-size:11px;line-height:1.8;color:var(--text-muted);margin:13px 0 20px}.area-tag{display:flex;align-items:center;gap:7px;font-size:9px;color:var(--text-muted)}.area-tag>span{width:5px;height:5px;background:var(--surface-raised);border-radius:50%}.account-button{margin-top:auto;display:flex;align-items:center;gap:11px;background:transparent;color:var(--text-muted);padding:13px;font-size:11px;text-align:left;border-radius:8px}.account-button:hover{background:var(--surface-raised)}.account-button .icon{width:16px;height:16px}.sidebar-bottom{display:flex;align-items:center;gap:10px;border-top:1px solid var(--border);padding:21px 6px 0;margin-top:12px}.avatar{display:grid;place-items:center;width:35px;height:37px;background:var(--surface-raised);color:var(--text);border-radius:10px;font-size:14px;font-weight:700;flex-shrink:0}.sidebar-bottom>div{min-width:0;flex:1}.sidebar-bottom strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:550;color:var(--text-muted)}.sidebar-bottom small{display:block;color:var(--text-muted);font-size:10px;margin-top:4px;overflow:hidden;text-overflow:ellipsis}.logout{display:grid;place-items:center;width:32px;height:35px;background:transparent;color:var(--text-muted);border-radius:7px;padding:4px}.logout:hover{background:var(--surface-raised);color:var(--text)}.main{margin-left:247px;padding:0 36px 14px;min-width:0}.topbar{height:75px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border)}.breadcrumb{font-size:11px;color:var(--text-muted)}.breadcrumb>span{padding:0 13px;color:var(--text-muted)}.breadcrumb>strong{font-weight:550;color:var(--text-muted)}.connection{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--success)}.connection>span{width:6px;height:6px;border-radius:50%;background:var(--success-bg)}.connection[data-state="saving"]>span{animation:node-pulse 1s infinite;background:var(--warning-bg)}.connection.error{color:var(--error)}.connection.error>span{background:var(--error-bg)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:37px 0 30px}.page-heading .eyebrow{font-size:8px;color:var(--text-muted);letter-spacing:1.2px;display:flex;align-items:center;gap:6px;margin-bottom:12px}.page-heading .eyebrow>span:first-child{width:5px;height:5px;background:var(--surface-raised);border-radius:50%}.page-heading h1{font-size:35px;font-weight:500;letter-spacing:-1.5px;line-height:1.17}.heading-break{display:none}.page-heading p{font-size:12px;color:var(--text-muted);line-height:1.7;margin-top:11px}.page-heading .button{min-height:46px}.stats{display:grid;grid-template-columns:1.24fr repeat(3,1fr);gap:15px;margin-bottom:23px}.stat{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:13px;padding:20px 20px 19px;overflow:hidden;transition:transform .2s,box-shadow .2s}.stat:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.stat-featured{background:var(--surface-raised);border-color:var(--border)}.stat-featured:after{content:"";position:absolute;width:100px;height:100px;border:1px solid var(--border);border-radius:50%;right:-35px;bottom:-40px}.stat-label{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:10px;font-weight:550;color:var(--text)}.stat-icon{display:grid;place-items:center;width:28px;height:28px;color:var(--text-muted);background:var(--surface-raised);border-radius:9px}.stat-icon .icon{width:17px;height:17px}.stat-featured .stat-icon{background:var(--surface-raised);color:var(--text)}.stat-icon.blue{background:var(--surface-raised);color:var(--text-muted)}.stat-icon.amber{background:var(--surface-raised);color:var(--text-muted)}.stat-value{display:flex;align-items:baseline;gap:11px;margin:6px 0 8px}.stat-value>strong{font-size:39px;letter-spacing:-2px;font-weight:500;font-variant-numeric:tabular-nums;line-height:1.25}.stat-value-detail{font-size:9px;color:var(--text-muted)}.stat>small{font-size:9px;color:var(--text-muted);line-height:1.5}.focus-panel{display:flex;align-items:center;gap:25px;border:1px solid var(--border);border-radius:13px;background:var(--surface-raised);padding:19px 22px;margin-bottom:30px}.focus-heading{flex:0 0 180px}.focus-eyebrow{font-size:8px;letter-spacing:1px;color:var(--text-muted)}.focus-heading h2{font-size:16px;letter-spacing:-.35px;font-weight:550;margin:7px 0}.focus-heading p{font-size:10px;color:var(--text-muted)}.focus-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex:1}.focus-action{display:flex;align-items:center;gap:11px;padding:12px 13px;text-align:left;border:1px solid var(--border);border-radius:9px;background:var(--surface);transition:transform .2s,border-color .2s;min-width:0}.focus-action:hover{transform:translateY(-3px);border-color:var(--border)}.focus-action>span:nth-child(2){min-width:0;flex:1}.focus-action strong{display:block;font-size:10px;font-weight:550;color:var(--text);white-space:nowrap}.focus-action small{display:block;font-size:9px;color:var(--text-muted);margin-top:6px;line-height:1.4}.focus-action b{font-size:9px;font-weight:550;color:var(--text);background:var(--surface-raised);padding:2px 5px;border-radius:4px;margin-left:5px}.focus-action-icon{color:var(--text-muted)}.focus-action-icon .icon{width:20px;height:20px}.focus-action>.icon{width:15px;height:15px;color:var(--text-muted)}.workspace{border:1px solid var(--border);border-radius:15px;background:var(--surface);overflow:visible;box-shadow:var(--shadow)}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 25px 22px}.section-kicker{font-size:8px;letter-spacing:1.2px;color:var(--text-muted);margin-bottom:8px}.workspace-heading h2{font-size:23px;font-weight:550;letter-spacing:-.7px;color:var(--text)}.workspace-heading h2>span{display:inline-block;vertical-align:middle;background:var(--surface-raised);color:var(--text);font-size:10px;padding:5px 7px;border-radius:6px;letter-spacing:0;margin-left:6px}.workspace-heading p{font-size:10px;line-height:1.5;color:var(--text-muted);margin-top:8px}.workspace-tools{display:flex;gap:7px;align-items:center;flex-shrink:0}.workspace-tools .button{font-size:10px;min-height:38px;padding:9px 12px}.workspace-tools .icon-only{width:37px;padding:8px}.workspace-tools .icon{width:16px;height:16px}.more-menu{position:relative}.more-menu summary{list-style:none;cursor:pointer}.more-menu summary::-webkit-details-marker{display:none}.menu-popover{position:absolute;right:0;top:calc(100% + 8px);width:280px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:11px;padding:12px;z-index:6}.menu-label{font-size:8px;letter-spacing:.9px;color:var(--text-muted);padding:7px 10px}.menu-popover button{display:block;background:transparent;width:100%;padding:12px 10px;text-align:left;font-size:11px;border-radius:6px}.menu-popover button:hover{background:var(--surface-raised)}.menu-popover small{display:block;color:var(--text-muted);font-size:10px;line-height:1.6;padding:10px}.filter-bar{display:flex;align-items:end;gap:12px;padding:0 25px 20px}.search-field{display:flex;align-items:center;gap:11px;min-height:44px;border:1px solid var(--border);background:var(--surface);border-radius:8px;flex:1;padding:0 13px;min-width:180px}.search-field>.icon{width:17px;height:17px;color:var(--text-muted)}.search-field input{width:100%;border:0;background:transparent;font-size:11px;min-height:42px;min-width:0;color:var(--text);outline:0}.search-field:focus-within{outline:2px solid var(--focus);outline-offset:2px}.search-field input::placeholder{color:var(--text-muted)}.search-field kbd{font:10px inherit;border:1px solid var(--border);border-radius:4px;min-width:17px;text-align:center;padding:2px;color:var(--text-muted)}.filter{display:flex;flex-direction:column;gap:6px;min-width:130px}.filter>span{font-size:9px;font-weight:550;color:var(--text-muted)}.filter select,.list-toolbar select,.pagination select{background:var(--surface);border:1px solid var(--border);border-radius:7px;color:var(--text);padding:11px 25px 11px 11px;min-height:43px;font-size:11px;max-width:190px}.filter-toggle{color:var(--text);border-color:var(--border);background:var(--surface);min-height:44px;font-size:11px;padding:10px 13px}.filter-toggle .icon{width:15px;height:15px}.filter-toggle b{font-size:9px;background:var(--surface-raised);padding:3px 5px;border-radius:4px}.extra-filters{display:flex;gap:12px;align-items:end;background:var(--surface);padding:0 25px 20px}.extra-filters .filter{flex:1;min-width:100px}.extra-filters .filter select{max-width:none;width:100%}.extra-filters .button{font-size:10px;color:var(--text-muted)}.active-filters{padding:0 25px 18px;display:flex;flex-wrap:wrap;gap:7px}.filter-chip{display:flex;align-items:center;gap:7px;padding:6px 9px;background:var(--surface-raised);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:9px}.filter-chip .icon{width:12px;height:12px}.filter-chip.view-chip{background:var(--surface-raised)}.filter-chip:hover{background:var(--surface-raised)}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 25px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface);color:var(--text-muted);font-size:10px}.list-toolbar>label{display:flex;align-items:center;gap:9px;font-size:9px}.list-toolbar select{min-height:29px;padding:5px 22px 5px 8px;font-size:10px;border-color:var(--border);max-width:160px}.load-error{padding:17px 24px;background:var(--error-bg);color:var(--error);font-size:12px;line-height:1.8;border-bottom:1px solid var(--error-border)}.table-wrap{overflow:auto;max-height:690px;scrollbar-width:thin;scrollbar-color:#bfccae #f6f8ef}table{width:100%;border-collapse:collapse;min-width:1000px;text-align:left}thead th{position:sticky;top:0;z-index:1;padding:13px 15px;background:var(--surface);color:var(--text-muted);font-size:8px;text-transform:uppercase;letter-spacing:.7px;font-weight:550;border-bottom:1px solid var(--border);white-space:nowrap}thead th:first-child{padding-left:25px}td{height:78px;padding:14px 15px;border-bottom:1px solid var(--border);color:var(--text);font-size:11px}td:first-child{padding-left:25px;max-width:295px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--surface)}.activity-cell{display:flex;align-items:center;gap:12px;min-width:0}.activity-avatar{display:grid;place-items:center;width:34px;height:37px;border-radius:9px;background:var(--surface-raised);color:var(--text-muted);flex-shrink:0;font-size:10px;letter-spacing:.3px;font-weight:600}.activity-avatar[data-tone="1"]{background:var(--surface-raised);color:var(--text-muted)}.activity-avatar[data-tone="2"]{background:var(--surface-raised);color:var(--text-muted)}.activity-avatar[data-tone="3"]{background:var(--surface-raised);color:var(--text-muted)}.activity-avatar[data-tone="4"]{background:var(--surface-raised);color:var(--text-muted)}.activity-info{position:relative;min-width:0}.activity-name{display:block;background:none;padding:0;text-align:left;font-size:11px;font-weight:600;color:var(--text);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:225px;line-height:1.6}.activity-name:hover{text-decoration:underline;text-underline-offset:3px;color:var(--text)}.activity-category{display:block;font-size:9px;color:var(--text);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.activity-note{display:inline-block;position:absolute;right:-18px;top:2px;color:var(--text-muted)}.activity-note .icon{width:12px;height:12px}.city-text{max-width:115px;font-size:10px;line-height:1.6;color:var(--text-muted)}.badge{display:inline-block;border:1px solid transparent;border-radius:5px;padding:5px 7px;font-size:9px;white-space:nowrap;line-height:1.3}.badge.non_trovato{background:var(--warning-bg);color:var(--warning);border-color:var(--warning-border)}.badge.da_migliorare{background:var(--warning-bg);color:var(--warning);border-color:var(--warning-border)}.badge.da_verificare{background:var(--surface-raised);color:var(--text-muted);border-color:var(--border)}.badge.presente{background:var(--success-bg);color:var(--success);border-color:var(--success-border)}.contact-button{display:flex;align-items:center;gap:7px;border:0;padding:6px 0;min-height:35px;background:transparent;color:var(--text-muted);font-size:10px}.check-square{display:grid;place-items:center;width:17px;height:17px;border:1px solid var(--border);border-radius:5px;background:var(--surface)}.check-square .icon{visibility:hidden;width:12px;height:12px}.contact-button.yes{color:var(--success)}.contact-button.yes .check-square{background:var(--success-bg);border-color:var(--success-border);color:var(--success)}.contact-button.yes .icon{visibility:visible}.stage-select{width:122px;min-height:32px;max-width:135px;border:1px solid var(--border);background:var(--surface);border-radius:6px;padding:6px 20px 6px 8px;color:var(--text-muted);font-size:9px}.stage-select[data-stage="interessato"],.stage-select[data-stage="preventivo"],.stage-select[data-stage="in_lavorazione"]{background:var(--warning-bg);color:var(--warning);border-color:var(--warning-border)}.stage-select[data-stage="cliente"]{background:var(--success-bg);color:var(--success);border-color:var(--success-border)}.next-date{font-size:10px;color:var(--text-muted);white-space:nowrap}.next-date.overdue{color:var(--warning)}.priority{font-size:9px;color:var(--text-muted);display:inline-flex;align-items:center;gap:5px}.priority:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--surface-raised)}.priority.alta{color:var(--warning)}.priority.alta:before{background:var(--warning-bg)}.priority.bassa:before{background:var(--surface-raised)}.open-button{display:grid;place-items:center;border:1px solid var(--border);border-radius:6px;width:28px;height:29px;background:var(--surface);color:var(--text-muted);transition:transform .2s}.open-button:hover{color:var(--text);border-color:var(--border);transform:translate(2px,-2px)}.density-compact td{height:56px;padding-top:7px;padding-bottom:7px}.density-compact .activity-avatar{height:30px;width:30px}.density-compact .activity-category{margin-top:1px}.empty-state{text-align:center;padding:55px 24px;background:var(--surface)}.empty-icon{display:inline-grid;place-items:center;width:55px;height:55px;border-radius:50%;background:var(--surface-raised);color:var(--text-muted);margin-bottom:19px}.empty-icon .icon{width:25px;height:25px}.empty-state h3{font-size:19px;font-weight:500;letter-spacing:-.5px;margin-bottom:12px}.empty-state p{font-size:12px;color:var(--text-muted);line-height:1.8;max-width:420px;margin:0 auto 23px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 25px;background:var(--surface);border-top:1px solid var(--border);border-radius:0 0 15px 15px;font-size:9px;color:var(--text-muted)}.pagination label{display:flex;align-items:center;gap:8px}.pagination select{min-height:29px;padding:5px 18px 5px 7px;font-size:10px}.pagination>div{display:flex;gap:6px}.pagination button{width:29px;height:29px;display:grid;place-items:center;border:1px solid var(--border);background:var(--surface);border-radius:6px;color:var(--text-muted)}.pagination .icon{width:14px;height:14px}.page-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 3px;color:var(--text-muted);font-size:9px}.coverage-note{display:flex;align-items:flex-start;gap:9px;line-height:1.6}.coverage-note>.icon{width:14px;height:14px;margin-top:2px}.coverage-note strong{font-weight:550}.coverage-note small{display:block;font-size:9px;margin-top:2px;color:var(--text-muted)}#research-date{white-space:nowrap}.city-group th{position:static;padding:15px 25px;background:var(--surface-raised);border-bottom:1px solid var(--border);text-align:left}.city-group-name{font-size:12px;font-weight:600;color:var(--text)}.city-group-count{font-size:10px;font-weight:400;color:var(--text-muted);margin-left:13px}
/* Schede, accesso e account */
dialog{border:1px solid var(--border);background:var(--surface);color:var(--text);padding:0;max-height:calc(100% - 40px);box-shadow:var(--shadow)}dialog::backdrop{background:var(--surface-raised);backdrop-filter:blur(7px)}.record-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:680px;max-width:100%;height:100%;max-height:100%;border:0;border-left:1px solid var(--border);animation:drawer-in .28s ease-out}.record-form{display:flex;flex-direction:column;height:100%}.drawer-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:28px 31px 24px;border-bottom:1px solid var(--border);background:var(--surface)}.drawer-header .eyebrow{font-size:9px;color:var(--text-muted);margin-bottom:7px}.drawer-header h2{font-size:27px;font-weight:500;letter-spacing:-.8px;overflow-wrap:anywhere}.drawer-header p{font-size:11px;color:var(--text-muted);margin-top:9px}.icon-button{display:grid;place-items:center;width:38px;height:39px;padding:8px;border:1px solid var(--border);border-radius:8px;flex-shrink:0;background:var(--surface);color:var(--text-muted)}.icon-button:hover{background:var(--surface-raised)}.icon-button .icon{width:17px;height:17px}.drawer-content{padding:0 31px 25px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;scrollbar-width:thin}.form-section{padding:26px 0;border-bottom:1px solid var(--border)}.form-section h3{display:flex;align-items:center;gap:10px;margin-bottom:21px;font-size:13px;font-weight:600;color:var(--text)}.form-section h3>span{display:grid;place-items:center;width:26px;height:26px;background:var(--surface-raised);border:1px solid var(--border);border-radius:6px;font-size:9px;color:var(--text-muted)}.form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.form-grid label,.sources-box label{display:flex;flex-direction:column;gap:8px;font-size:10px;font-weight:550;color:var(--text-muted)}.form-grid .wide{grid-column:1/-1}.required{display:contents;color:var(--text-muted)}.form-grid input,.form-grid select,.form-grid textarea,.sources-box textarea{min-width:0;width:100%;min-height:43px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:12px;font-weight:400;line-height:1.5}.form-grid textarea,.sources-box textarea{resize:vertical}.form-grid input::placeholder,.form-grid textarea::placeholder,.sources-box textarea::placeholder{color:var(--text-muted);font-size:11px}.record-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.record-links a{display:inline-flex;min-height:34px;align-items:center;padding:8px 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface-raised);color:var(--text);font-size:10px;text-decoration:none}.sources-box{margin-top:20px;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:15px 16px}.sources-box summary{font-size:11px;font-weight:550;color:var(--text);cursor:pointer}.sources-box ul{font-size:11px;line-height:1.8;padding-left:17px;margin:15px 0;overflow-wrap:anywhere;color:var(--text)}.sources-box label{margin-top:15px}.sources-box small{display:block;font-size:10px;color:var(--text-muted);line-height:1.6;margin-top:9px}.contact-choice{display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--surface-raised);border:1px solid var(--border);border-radius:9px;padding:16px;margin-bottom:20px}.contact-choice strong{font-size:11px;font-weight:550;color:var(--text)}.contact-choice small{display:block;font-size:10px;color:var(--text-muted);margin-top:5px;line-height:1.5}.switch-label{position:relative;display:flex;align-items:center;gap:8px;font-size:11px;color:var(--text-muted);cursor:pointer}.switch-label input{position:absolute;width:39px;height:23px;opacity:0;margin:0}.switch{position:relative;width:39px;height:23px;background:var(--surface-raised);border-radius:20px;display:block;transition:background .2s}.switch:after{content:"";position:absolute;inset:3px auto auto 3px;width:17px;height:17px;background:var(--surface);border-radius:50%;box-shadow:var(--shadow);transition:transform .2s}.switch-label input:checked+.switch{background:var(--surface-raised)}.switch-label input:checked+.switch:after{transform:translateX(16px)}.switch-label input:focus-visible+.switch{outline:3px solid var(--focus);outline-offset:3px}.drawer-footer{display:flex;align-items:center;gap:10px;flex-shrink:0;padding:17px 24px;border-top:1px solid var(--border);background:var(--surface)}.drawer-footer>#form-status{margin-right:auto;flex:1;font-size:10px;color:var(--text-muted);line-height:1.5}.drawer-footer .button{font-size:11px}.record-updated{font-size:10px;color:var(--text-muted);margin-top:21px;line-height:1.5}.conflict{padding:16px;margin-top:20px;border:1px solid var(--warning-border);border-radius:9px;background:var(--warning-bg);font-size:11px;line-height:1.8;color:var(--warning)}.conflict button{display:flex;margin-top:11px}#form-status[data-state="dirty"]{color:var(--warning)}#form-status[data-state="error"]{color:var(--error)}.auth-dialog{width:820px;max-width:calc(100% - 32px);border-radius:21px;overflow:visible;animation:appear .25s ease}.auth-dialog[open]{display:grid;grid-template-columns:.82fr 1fr}.dialog-close{position:absolute;right:16px;top:16px;z-index:2;border:0;background:var(--surface-raised)}.auth-art{position:relative;overflow:hidden;background:var(--surface);border-radius:20px 0 0 20px;padding:69px 31px 27px;min-height:570px;color:var(--text-muted)}.auth-art-word{font-size:42px;line-height:1.1;letter-spacing:-2px;font-weight:400;position:relative;z-index:1}.auth-art-word em{font-family:Georgia,serif;font-weight:400;color:var(--accent-text);font-size:46px}.auth-art-route{position:absolute;left:28%;top:42%;width:240px;height:290px;border:1px solid var(--border);border-radius:90px 90px 0 80px;transform:rotate(-30deg)}.auth-art-route:after{content:"";position:absolute;inset:36px;border:1px dashed var(--border);border-radius:65px 65px 0 50px}.auth-art-dot{position:absolute;bottom:25%;left:24%;width:43px;height:43px;background:var(--accent);border-radius:12px;transform:rotate(-25deg);box-shadow:var(--shadow)}.auth-art>p{position:absolute;bottom:27px;left:31px;font-size:7px;letter-spacing:1px;color:var(--text-muted)}.auth-content{padding:44px 37px 32px;max-height:calc(100vh - 50px);overflow-y:auto}.auth-tabs{display:flex;gap:6px;border-bottom:1px solid var(--border);margin-bottom:29px;padding-bottom:10px}.auth-tabs button{background:transparent;color:var(--text-muted);padding:8px 12px;font-size:12px;border-radius:6px}.auth-tabs button.active{background:var(--surface-raised);color:var(--text)}.auth-content>.eyebrow{font-size:8px;color:var(--text-muted);margin-bottom:10px}.auth-content h2{font-size:25px;line-height:1.15;font-weight:500;letter-spacing:-.9px}.auth-content>p:not(.eyebrow){font-size:11px;line-height:1.7;color:var(--text);margin-top:12px;margin-bottom:23px}.auth-content label,.utility-dialog form label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:550;color:var(--text);margin-top:16px}.auth-content input,.utility-dialog form input:not([type="checkbox"]){min-height:43px;border:1px solid var(--border);border-radius:8px;padding:10px 12px;background:var(--surface);width:100%;min-width:0;color:var(--text);font-size:13px}.auth-content input::placeholder{color:var(--text);font-size:11px}.auth-content label small{font-size:9px;line-height:1.6;font-weight:400;color:var(--text)}.password-field{position:relative;display:block}.password-field input{padding-right:70px}.password-toggle{position:absolute;right:8px;top:6px;background:transparent;color:var(--text-muted);font-size:9px;padding:8px 3px}.form-error{font-size:11px;color:var(--error);line-height:1.6;margin:12px 0}.form-error:empty{display:none}.form-note{font-size:10px;color:var(--text);line-height:1.8;margin-top:17px}.auth-content #auth-submit{width:100%;margin-top:20px;justify-content:space-between;min-height:45px}.recover-link{display:block;font-size:10px;color:var(--text-muted);margin:19px auto 0;text-decoration:none}.recover-link:hover{text-decoration:underline}.utility-dialog{position:relative;width:490px;max-width:calc(100% - 32px);padding:38px;border-radius:18px;overflow-y:auto;animation:appear .25s ease}.utility-dialog>.eyebrow{font-size:8px;color:var(--text-muted);margin-bottom:12px}.utility-dialog h2{font-size:27px;letter-spacing:-.8px;font-weight:500;margin-bottom:14px}.utility-dialog>p:not(.eyebrow),.utility-dialog section>p,.utility-dialog form>p,.utility-dialog details>p{font-size:11px;line-height:1.8;color:var(--text-muted)}.utility-dialog h3{font-size:14px;font-weight:550;letter-spacing:-.2px;color:var(--text);margin-bottom:10px}.dialog-symbol{display:inline-grid;place-items:center;background:var(--surface-raised);color:var(--text-muted);width:46px;height:46px;border-radius:13px;font-size:28px;margin-bottom:26px}.recovery-code{background:var(--surface-raised);border:1px solid var(--border);border-radius:10px;padding:20px 14px;margin:24px 0 15px;font:600 16px/1.6 "Consolas",monospace;word-break:break-all;letter-spacing:1px;color:var(--text);user-select:all;text-align:center}.dialog-actions{display:flex;gap:9px}.dialog-actions .button{flex:1;font-size:11px}.check-label,.utility-dialog form label.check-label{display:flex;flex-direction:row;align-items:flex-start;gap:9px;line-height:1.6;font-size:11px;color:var(--text);margin:22px 0;cursor:pointer}.check-label input{accent-color:#637b3d;width:16px;height:16px;flex-shrink:0;min-height:0;margin-top:1px}.account-dialog{width:560px;padding-top:41px}.account-section{margin-top:25px;padding-top:25px;border-top:1px solid var(--border)}.account-section>.button{margin-top:18px}.utility-dialog .form-error{color:var(--error)}.danger-zone summary{font-size:12px;color:var(--error);cursor:pointer}.danger-zone>p{margin-top:15px}.privacy-dialog{width:650px;padding:43px}.privacy-dialog>h3{margin-top:25px}.privacy-dialog>button:last-child{margin-top:25px}.toast-container{position:fixed;right:24px;bottom:24px;z-index:20;display:flex;flex-direction:column;gap:8px;max-width:min(420px,calc(100% - 40px));pointer-events:none}.toast{background:var(--surface-raised);border:1px solid var(--border);color:var(--text-muted);box-shadow:var(--shadow);padding:13px 17px;border-radius:10px;font-size:12px;line-height:1.7;animation:appear .2s ease}.toast.error{background:var(--error-bg);border-color:var(--error-border);color:var(--error)}
@keyframes hero-enter{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}@keyframes hero-visual-in{from{opacity:0;transform:translateY(30px) scale(.92)}to{opacity:1;transform:none}}@keyframes building-in{from{opacity:0;transform:translateY(-25px)}to{opacity:1;transform:none}}@keyframes float-pin{50%{transform:translateY(-10px)}}@keyframes route-move{to{stroke-dashoffset:-112}}@keyframes card-float{50%{translate:0 -9px}}@keyframes node-pulse{50%{opacity:.35;scale:1.12}}@keyframes orbit-spin{to{transform:rotate(360deg)}}@keyframes arrow-bob{50%{transform:translateY(5px)}}@keyframes appear{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}@keyframes drawer-in{from{opacity:.5;transform:translateX(36px)}to{opacity:1;transform:none}}
@media(min-width:1700px){.hero{padding-left:10vw;padding-right:10vw;min-height:760px}.hero h1{font-size:82px}.main{padding-inline:48px}.stat{padding:25px}.stat-value>strong{font-size:46px}.focus-heading{flex-basis:220px}.activity-name{max-width:300px}}
@media(max-width:1350px){.main{padding-inline:24px}.stats{gap:11px}.stat{padding:17px 14px}.stat-value-detail{display:none}.focus-panel{padding:17px;gap:17px}.focus-heading{flex-basis:153px}.focus-action{padding:12px 9px;gap:6px}.focus-action-icon{display:none}.workspace-heading{flex-wrap:wrap;gap:17px}.workspace-tools{margin-left:auto}.filter-bar{flex-wrap:wrap}.search-field{flex-basis:calc(100% - 450px)}.hero{gap:0;padding-left:7vw}.hero h1{letter-spacing:-3.3px}.hero-actions{gap:20px}.hero-actions .text-link{font-size:11px}.floating-card{padding:13px 15px}.card-contact{left:-1%}.card-reminder{right:-1%}.space-section h2{font-size:35px}}
@media(max-width:1100px){.sidebar{width:210px;padding-inline:12px}.sidebar .brand{font-size:24px;padding-inline:8px}.sidebar .brand small{font-size:6px}.sidebar .brand-mark{width:35px;height:38px}.main{margin-left:210px;padding-inline:22px}.nav-item{font-size:11px;padding-inline:9px;gap:8px}.area-card{padding:20px 15px}.page-heading h1{font-size:30px}.heading-break{display:block}.page-heading .button{font-size:10px;padding-inline:11px}.page-heading p{max-width:300px}.stat-label{min-height:30px;font-size:9px}.stat-icon{width:25px;height:25px}.stat-value>strong{font-size:35px}.focus-panel{display:block}.focus-heading{margin-bottom:14px}.focus-eyebrow,.focus-heading p{display:none}.focus-heading h2{margin:0}.focus-action-icon{display:flex}.search-field{flex-basis:100%}.filter{flex:1;min-width:0}.filter select{max-width:none;width:100%}.page-footer{flex-direction:column;align-items:flex-start;gap:6px}#research-date{margin-left:22px}.hero{min-height:620px;padding-top:38px;padding-bottom:85px}.hero h1{font-size:54px;letter-spacing:-3px}.hero-kicker{font-size:8px;letter-spacing:1.2px}.hero-description{font-size:13px;max-width:330px}.hero-actions{gap:20px}.hero-actions .text-link{display:none}.hero-note{font-size:8px;max-width:280px;line-height:1.6}.hero-visual{align-self:center;min-height:360px}.card-contact{top:4%;left:-7%}.card-reminder{bottom:5%;right:-3%}.visual-caption{bottom:-7%;left:12%;font-size:6px}.floating-card{padding:11px 12px;gap:8px;border-radius:9px}.floating-card strong{font-size:9px}.floating-card small{font-size:7px}.mini-avatar{width:27px;height:28px;font-size:19px}.card-spark{margin-left:1px;width:5px;height:5px}.reminder-icon{width:26px;height:26px}.reminder-icon .icon{width:16px;height:16px}.how-section{padding:80px 8vw;gap:6vw}.section-intro h2{font-size:35px}.step-list h3{font-size:15px}.step-list p{font-size:11px}.space-section{padding:65px 8vw;gap:4vw}.space-section h2{font-size:32px}.space-section p:not(.eyebrow){font-size:12px}.space-section .eyebrow{font-size:7px}.space-tile{width:60px;height:63px;border-radius:13px}}
@media(max-width:850px){.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat-label{min-height:0;font-size:10px}.stat{padding:17px}.stat-value>strong{font-size:36px}.focus-action-icon,.focus-action>.icon{display:none}.focus-action{padding:11px}.topbar{gap:10px}.breadcrumb>span{padding:0 7px}.connection{font-size:9px}.public-header{height:83px;padding-inline:5vw}.public-header nav{gap:20px}.public-header nav>a{font-size:10px}.public-header .brand{font-size:26px}.public-header .brand-mark{width:36px;height:39px}.hero{padding-left:6vw;padding-right:3vw;min-height:570px}.hero h1{font-size:46px;letter-spacing:-2.7px}.hero h1 em{letter-spacing:-2.5px}.hero-description{font-size:12px;max-width:290px}.hero-actions .button{font-size:12px;padding:14px 18px;min-height:51px;gap:20px}.hero-kicker{font-size:7px}.hero-visual{min-height:300px}.feature-ribbon{min-height:65px;gap:3vw}.feature-ribbon span{font-size:10px}.feature-ribbon i{font-size:21px}.hero-scroll{left:6vw}.how-section{padding:65px 6vw;gap:6vw}.section-intro h2{font-size:30px}.section-intro .eyebrow{font-size:8px}.section-intro>p:last-child{font-size:11px}.step-list article{gap:15px}.space-section{padding:55px 6vw;gap:4vw}.space-section h2{font-size:28px}.feature-checks{font-size:10px}.closing-section{padding:74px 20px}.closing-section h2{font-size:49px}.public-footer{padding-inline:5vw}.public-footer>p{display:none}}
@media(max-width:700px){.public-header{height:78px;padding-inline:22px}.public-header nav>a{display:none}.public-header .brand{font-size:25px}.public-header .brand-mark{width:34px;height:36px;border-radius:11px 11px 11px 3px}.public-header .brand-mark .icon{width:26px;height:26px}.public-login{font-size:11px;min-width:91px;min-height:38px}.hero{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:48px 24px 59px;min-height:0;max-height:none}.hero-copy{max-width:550px}.hero-kicker{font-size:8px;letter-spacing:1.2px;margin-bottom:22px}.hero h1{font-size:clamp(44px,9.4vw,65px);letter-spacing:-3px;line-height:1.03}.hero h1 em{letter-spacing:-3px}.hero-description{font-size:13px;line-height:1.8;max-width:360px;margin-top:23px}.hero-actions{margin-top:26px;gap:24px}.hero-actions .text-link{display:flex;font-size:10px}.hero-actions .button{min-height:50px;font-size:11px;padding:14px 18px;gap:18px}.hero-note{max-width:none;font-size:8px;margin-top:16px}.hero-visual{min-height:0;aspect-ratio:1.15;max-width:480px;width:100%;align-self:center;margin-top:12px}.neighborhood{margin-top:5px}.card-contact{top:8%;left:1%;padding:12px 13px}.card-reminder{bottom:11%;right:0;padding:12px 13px}.floating-card strong{font-size:9px}.floating-card small{font-size:7px}.visual-caption{bottom:0;left:22%;font-size:6px;letter-spacing:1.4px}.hero-scroll{left:24px;bottom:17px;font-size:9px}.hero-scroll span{font-size:18px}.feature-ribbon{padding:18px 15px;gap:18px;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;min-height:61px}.feature-ribbon span{font-size:11px}.feature-ribbon i{font-size:21px}.how-section{grid-template-columns:1fr;padding:60px 25px;gap:32px}.section-intro .eyebrow{font-size:8px;margin-bottom:18px}.section-intro h2{font-size:35px;letter-spacing:-1.5px}.section-intro>p:last-child{font-size:12px;max-width:330px;margin-top:20px}.step-list article{padding:23px 0;gap:20px}.step-list h3{font-size:15px}.step-list p{font-size:12px;max-width:none}.step-list article>span{font-size:20px}.space-section{grid-template-columns:1fr;padding:40px 25px 58px;gap:19px}.space-art{width:100%;max-width:360px;justify-self:center;aspect-ratio:1.3}.space-section .eyebrow{font-size:8px;margin-bottom:18px}.space-section h2{font-size:34px}.space-section p:not(.eyebrow){font-size:12px;max-width:none}.feature-checks{font-size:11px;margin-block:20px 24px}.closing-section{padding:67px 24px 59px}.closing-section .eyebrow{font-size:7px;letter-spacing:1.1px}.closing-section h2{font-size:39px;letter-spacing:-1.7px}.closing-section em{letter-spacing:-1.8px}.closing-section .button{font-size:12px;min-height:49px;padding:13px 20px}.closing-section>p:last-child{font-size:8px;max-width:280px;margin-inline:auto;line-height:1.7}.public-footer{padding:25px;flex-wrap:wrap;gap:20px}.public-footer .brand{font-size:23px}.public-footer>div{font-size:9px;gap:18px}.sidebar{position:static;width:100%;height:auto;padding:19px 17px 0;overflow:visible}.sidebar .brand{padding:0 3px 20px;font-size:23px}.sidebar .brand-mark{width:32px;height:35px;border-radius:10px 10px 10px 3px}.sidebar .brand-mark .icon{width:24px;height:24px}.sidebar .brand small{font-size:6px}.sidebar-label,.area-card,.sidebar-bottom>.avatar,.sidebar-bottom>div{display:none}.sidebar-bottom{position:absolute;top:18px;right:17px;border:0;margin:0;padding:0}.account-button{position:absolute;top:17px;right:54px;font-size:0;width:35px;height:35px;padding:8px;margin:0}.account-button .icon{width:19px;height:19px}.nav{flex-direction:row;gap:5px;padding-bottom:13px;overflow:auto;scrollbar-width:none}.nav-item{width:auto;flex-shrink:0;min-height:40px;padding:10px 11px;font-size:11px;gap:7px;white-space:nowrap;border-radius:7px}.nav-item .icon{width:15px;height:15px}.nav-item b{font-size:9px;min-width:21px;padding:3px 5px}.main{margin-left:0;padding:0 18px 12px}.topbar{height:53px}.breadcrumb{font-size:10px}.connection{font-size:9px}.page-heading{padding:25px 0 24px;gap:15px;align-items:flex-start}.page-heading .eyebrow{font-size:7px;letter-spacing:.9px;margin-bottom:11px}.page-heading h1{font-size:28px;letter-spacing:-1px}.heading-break{display:block}.page-heading p{font-size:10px;max-width:280px;margin-top:10px}.page-heading .button{margin-top:22px;min-height:43px;font-size:10px;padding:10px 11px;gap:6px}.page-heading .button .icon{width:15px;height:15px}.stats{gap:11px;margin-bottom:17px}.stat{padding:16px;border-radius:11px}.stat-label{font-size:10px}.stat-value>strong{font-size:36px}.stat>small{font-size:9px}.focus-panel{margin-bottom:24px;padding:16px;border-radius:11px}.focus-heading h2{font-size:15px}.focus-actions{grid-template-columns:1fr;gap:8px}.focus-action{padding:10px 12px;min-height:54px;gap:11px}.focus-action-icon,.focus-action>.icon{display:flex}.focus-action strong{font-size:11px}.focus-action small{font-size:9px;margin-top:5px}.workspace{border-radius:12px}.workspace-heading{padding:22px 17px 19px;gap:18px}.workspace-heading h2{font-size:22px}.workspace-heading p{font-size:10px}.workspace-tools{width:100%;margin-left:0;justify-content:flex-end}.workspace-tools #refresh{margin-right:auto}.workspace-tools .button{font-size:10px;min-height:39px;padding:9px 11px}.workspace-tools .icon-only{width:36px;padding:8px}.filter-bar{padding:0 17px 17px;gap:12px 9px}.search-field{min-width:0;flex-basis:100%;min-height:43px}.search-field input{font-size:12px}.search-field kbd{display:none}.filter select{font-size:11px;padding-left:9px;max-width:none}.filter>span{font-size:9px}.filter-toggle{width:100%;font-size:11px;min-height:39px}.extra-filters{padding:0 17px 17px;flex-wrap:wrap;gap:12px}.extra-filters .filter{flex-basis:calc(50% - 12px)}.extra-filters .button{margin-left:auto}.active-filters{padding-inline:17px}.list-toolbar{padding:12px 17px;flex-wrap:wrap;gap:8px}.table-wrap{overflow:visible;max-height:none;padding:0 12px;background:var(--surface-raised)}table{display:block;min-width:0;width:100%}thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}tbody{display:grid;gap:12px;padding:12px 0}tbody tr{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 15px;border:1px solid var(--border);border-radius:11px;padding:17px;background:var(--surface)}tbody tr:hover{background:var(--surface)}td{height:auto;padding:0;border:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}td:before{content:attr(data-label);font-size:8px;letter-spacing:.4px;text-transform:uppercase;color:var(--text-muted)}td:first-child{grid-column:1/-1;padding:0 23px 12px 0;max-width:none;border-bottom:1px solid var(--border)}td:first-child:before,td:last-child:before{display:none}td:last-child{position:absolute;right:11px;top:17px}.activity-name{font-size:13px;max-width:100%;white-space:normal;overflow-wrap:anywhere}.activity-category{font-size:10px;max-width:100%}.activity-info{flex:1}.activity-note{right:-14px}.activity-avatar{width:33px;height:36px;font-size:11px}.city-text{font-size:11px;max-width:none}.contact-button{font-size:11px;min-height:35px}.stage-select{width:100%;max-width:180px;min-height:35px;font-size:10px}.badge{font-size:10px}.priority,.next-date{font-size:11px}.open-button{width:27px;height:28px}.density-compact td{height:auto;padding:0}.density-compact tr{gap:8px 14px;padding:14px}.density-compact td:first-child{padding-bottom:10px}.city-group,.city-group:hover{display:block;border:0;border-radius:0;padding:8px 3px 2px;background:transparent}.city-group th{display:block;padding:4px 0;border:0;background:transparent}.city-group-name{font-size:14px}.city-group-count{display:block;margin:4px 0 0;font-size:10px}.pagination{padding:14px 17px;gap:10px;flex-wrap:wrap;font-size:9px}.pagination>label{flex:1}.pagination>#page-label{white-space:nowrap}.page-footer{padding:19px 2px;gap:8px;font-size:8px}.coverage-note small{font-size:8px}.record-dialog{width:100%}.drawer-header{padding:23px 22px 20px}.drawer-header h2{font-size:24px}.drawer-content{padding:0 22px 24px}.drawer-footer{padding:15px 17px;gap:8px;flex-wrap:wrap}.drawer-footer .button{min-height:43px;font-size:11px}.form-grid input,.form-grid select,.form-grid textarea,.sources-box textarea{font-size:16px}.form-grid label,.sources-box label{font-size:11px}.form-grid input::placeholder,.form-grid textarea::placeholder,.sources-box textarea::placeholder{font-size:12px}.form-grid{gap:17px 13px}.contact-choice{padding:13px}.contact-choice strong{font-size:12px}.contact-choice small{font-size:10px}.record-links a{font-size:11px}.auth-dialog{width:440px;overflow:auto}.auth-dialog[open]{display:block}.auth-art{display:none}.auth-content{padding:42px 27px 29px;max-height:none;overflow:visible}.auth-content h2{font-size:27px}.auth-tabs{padding-right:22px}.auth-content input,.utility-dialog form input:not([type="checkbox"]){font-size:16px;min-height:45px}.auth-content label{font-size:12px}.auth-content>p:not(.eyebrow){font-size:12px}.auth-content .form-note{font-size:11px}.utility-dialog{padding:34px 26px}.utility-dialog h2{font-size:26px;padding-right:15px}.utility-dialog>p:not(.eyebrow),.utility-dialog section>p,.utility-dialog form>p,.utility-dialog details>p{font-size:12px}.auth-content label small{font-size:10px}.utility-dialog form label{font-size:12px}.recovery-code{font-size:15px}.check-label,.utility-dialog form label.check-label{font-size:12px}.dialog-close{top:13px;right:13px;width:33px;height:34px}.account-dialog{padding-top:41px}.privacy-dialog{padding-top:41px}.toast-container{right:17px;bottom:18px;max-width:calc(100% - 34px)}.toast{font-size:11px}.empty-state{padding:38px 22px}.empty-state h3{font-size:19px}.empty-state p{font-size:11px}}
@media(max-width:420px){.hero{padding-inline:20px}.hero h1{font-size:45px;letter-spacing:-2.5px}.hero h1 em{letter-spacing:-2.4px}.hero-actions{gap:17px}.hero-actions .text-link{font-size:9px}.hero-actions .button{padding-inline:14px;gap:10px}.hero-note{font-size:7px}.public-header{padding-inline:20px}.hero-visual{margin-top:22px}.floating-card{padding:10px}.floating-card strong{font-size:8px}.floating-card small{font-size:6px}.card-contact{left:-1%}.card-reminder{right:-1%}.visual-caption{left:16%;font-size:6px}.hero-scroll{left:20px}.space-section h2{font-size:32px}.closing-section h2{font-size:35px}.main{padding-inline:13px}.page-heading{flex-direction:column;gap:17px}.page-heading .button{margin:0}.heading-break{display:none}.page-heading h1{font-size:29px}.page-heading p{max-width:330px;font-size:11px}.page-heading .eyebrow{font-size:7px}.stat{padding:14px 12px}.stat-label{font-size:9px}.stat-icon{width:23px;height:23px}.stat-icon .icon{width:14px;height:14px}.stat-value>strong{font-size:34px}.stat>small{font-size:8px}.workspace-tools{gap:5px}.workspace-tools .density-button>span{display:none}.workspace-tools .density-button{width:37px;padding:8px}.form-grid{grid-template-columns:1fr}.form-grid label.wide{grid-column:auto}.drawer-header,.drawer-content{padding-inline:18px}.drawer-footer>#form-status{flex-basis:100%;order:-1;min-height:15px}.drawer-footer #delete-record{margin-right:auto}.activity-cell{gap:9px}.activity-avatar{width:30px;height:33px}.public-footer .brand{font-size:21px}.public-footer>div{gap:14px}.auth-content{padding-inline:24px}.utility-dialog{padding-inline:23px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.reveal.motion-ready{opacity:1;transform:none}.stat:hover,.focus-action:hover,.button:hover,.nav-item:hover,.open-button:hover{transform:none}}
/* Leggibilità dei dettagli operativi. */
.stat-label{font-size:11px}.stat>small,.stat-value-detail{font-size:10px}.workspace-heading p{font-size:11px}.section-kicker,.sidebar-label{font-size:9px}.workspace-tools .button{font-size:11px}.search-field input,.filter select{font-size:12px}.filter>span{font-size:10px}.filter-chip,.list-toolbar{font-size:11px}.list-toolbar>label,.list-toolbar select{font-size:10px}thead th{font-size:9px}.activity-name{font-size:12px}.activity-category,.city-text,.badge,.contact-button,.stage-select,.priority,.next-date{font-size:11px}.form-grid label,.sources-box label{font-size:12px}.form-grid input,.form-grid select,.form-grid textarea,.sources-box textarea{font-size:13px}.form-note{font-size:11px}.auth-content label small{font-size:10px}.page-footer,.coverage-note small{font-size:10px}.pagination{font-size:10px}.focus-action strong{font-size:11px}.focus-action small{font-size:10px}.focus-action b{font-size:10px}
@media(max-height:700px) and (min-width:701px){.auth-dialog{overflow:hidden}.auth-art{min-height:0}.auth-content{max-height:calc(100vh - 42px)}}
@media(max-width:700px){.form-grid input,.form-grid select,.form-grid textarea,.sources-box textarea{font-size:16px}.activity-name{font-size:14px}.stat-label{font-size:11px}.stat>small{font-size:10px}.page-footer,.coverage-note small{font-size:9px}.workspace-tools .button{font-size:11px}.hero-note{font-size:10px;line-height:1.6}.visual-caption{font-size:7px}.floating-card strong{font-size:10px}.floating-card small{font-size:8px}.closing-section>p:last-child{font-size:10px}}
.motion-reduced *, .motion-reduced *::before, .motion-reduced *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.motion-reduced .reveal.motion-ready{opacity:1;transform:none}.motion-reduced .stat:hover,.motion-reduced .focus-action:hover,.motion-reduced .button:hover,.motion-reduced .nav-item:hover,.motion-reduced .open-button:hover{transform:none}.public-footer>div{flex-wrap:wrap}#motion-toggle:disabled{opacity:.8;cursor:default;text-decoration:none}
.public-status>.button{display:flex;margin-top:12px;min-height:38px;font-size:11px}

/* Contrasto e leggibilita dei moduli di accesso. */
.auth-content>p:not(.eyebrow){font-size:13px}.auth-content label small{font-size:11px}.auth-content .form-note{font-size:12px}.password-toggle{font-size:11px}.recover-link{font-size:12px}

/* Regia personale: gli esiti del lavoro rimangono distinti dalla rubrica. */
.regia-today{padding:25px 26px;margin-bottom:25px;border:1px solid var(--border);background:linear-gradient(135deg,var(--surface-raised),var(--surface));border-radius:15px}.regia-today>header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.regia-today .eyebrow{font-size:9px;letter-spacing:1.2px;color:var(--text);margin:0 0 9px}.regia-today h2{font-size:24px;letter-spacing:-.6px;margin:0}.regia-today>header>span{font-size:10px;white-space:nowrap;color:var(--text-muted)}.regia-today-intro,.regia-today>p:last-child{font-size:11px;line-height:1.8;color:var(--text);max-width:780px;margin:12px 0 0}.regia-today ol{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:0}.regia-today li{display:flex;align-items:center;gap:17px;padding:17px 0;border-top:1px solid var(--border)}.regia-action-number{font-family:Georgia,serif;color:var(--text-muted);font-size:24px;align-self:flex-start;line-height:1.2;min-width:29px}.regia-action-copy{flex:1;min-width:0}.regia-action-copy strong{display:block;font-size:12px;color:var(--text)}.regia-action-copy>span{display:block;font-size:11px;margin-top:5px;overflow-wrap:anywhere}.regia-action-copy p{font-size:10px;line-height:1.7;margin:7px 0 0;color:var(--text-muted);overflow-wrap:anywhere}.regia-today li>.button{font-size:10px;min-height:36px;padding:8px 12px;white-space:nowrap}
.regia-signals{margin:0 0 25px;border:1px solid var(--border);border-radius:15px;background:var(--surface);overflow:hidden}.regia-signals>header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:25px 26px 17px}.regia-signals .eyebrow{font-size:9px;letter-spacing:1.3px;color:var(--text);margin:0 0 9px}.regia-signals h2{font-size:23px;letter-spacing:-.6px;margin:0 0 10px}.regia-signals header p:not(.eyebrow){font-size:11px;line-height:1.7;color:var(--text-muted);max-width:650px;margin:0}.regia-signals-empty{font-size:12px;color:var(--text-muted);padding:0 26px 18px;margin:0}.regia-signals-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 26px 21px}.regia-signals-list:empty{display:none}.regia-signal{border:1px solid var(--border);border-radius:10px;padding:17px;background:var(--surface);overflow-wrap:anywhere}.regia-signal h3{font-size:13px;line-height:1.6;margin:0 0 10px}.regia-signal h3 a{color:var(--text);text-decoration:none}.regia-signal h3 a:hover{text-decoration:underline}.regia-signal p{font-size:11px;line-height:1.8;color:var(--text-muted)}.regia-signal .regia-signal-reason{font-size:10px;border-left:2px solid var(--border);padding-left:10px}.regia-signal-meta{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:12px;font-size:9px;color:var(--text-muted)}.regia-sources{border-top:1px solid var(--border);background:var(--surface);padding:0 26px}.regia-sources summary{font-size:11px;line-height:1.6;cursor:pointer;padding:15px 0;color:var(--text)}.regia-sources summary span{display:inline-block;margin-left:7px;font-size:10px;padding:0 6px;border-radius:4px;background:var(--surface-raised)}.regia-sources ul{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:12px}.regia-sources li{padding:0 0 13px;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.regia-sources li:last-child{border-bottom:0;padding-bottom:0}.regia-source-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:9px;font-size:11px}.regia-source-heading a{color:var(--text);text-underline-offset:3px}.regia-source-heading>span{font-size:10px;color:var(--text-muted)}.regia-sources li p,.regia-sources>p{font-size:11px;line-height:1.7;color:var(--text-muted)}.regia-sources small{font-size:9px;color:var(--text-muted)}.regia-sources>p{margin:0 0 18px}
.regia-nav{margin-top:8px;border:1px solid var(--border);background:linear-gradient(135deg,var(--surface-raised),var(--surface))}
.regia-nav b{font-size:7px;letter-spacing:.6px;background:var(--accent);color:var(--text)}
.regia{padding-bottom:24px;animation:appear .35s ease}
.regia-hero{position:relative;display:flex;justify-content:space-between;align-items:center;gap:30px;min-height:250px;padding:36px 8px 30px;overflow:hidden}
.regia-hero-copy{position:relative;z-index:1;max-width:570px}.regia-hero .eyebrow{color:var(--text);font-size:10px;letter-spacing:1.6px;margin-bottom:14px}
.regia-hero h1{font-size:58px;letter-spacing:-2.7px;line-height:1.05;margin:0 0 18px}.regia-hero h1 em{font-family:Georgia,serif;font-weight:400;color:var(--text-muted)}
.regia-hero-copy>p:not(.eyebrow){font-size:13px;line-height:1.8;max-width:510px;color:var(--text-muted)}
.regia-private{display:inline-flex;gap:7px;align-items:center;margin-top:18px;font-size:10px;color:var(--text)}.regia-private .icon{width:15px;height:15px}
.regia-orbit{position:relative;flex:0 0 205px;width:205px;height:205px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,var(--surface-raised),var(--surface))}
.regia-orbit>.icon{width:56px;height:56px;stroke-width:1.5;transform:rotate(-8deg);color:var(--text)}
.regia-orbit-ring{position:absolute;inset:10px;border:1px dashed var(--border);border-radius:50%;animation:orbit-spin 55s linear infinite}.regia-orbit-ring.inner{inset:43px;border-style:solid;border-color:var(--border)}
.regia-orbit>i{position:absolute;width:15px;height:15px;border:4px solid var(--border);background:var(--surface-raised);border-radius:50%;left:17px;top:52px}.regia-orbit>i:nth-last-child(2){left:auto;right:30px;top:18px;background:var(--surface-raised);width:20px;height:20px}.regia-orbit>i:last-child{left:129px;top:auto;bottom:16px;background:var(--surface-raised);width:18px;height:18px}
.regia-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;background:var(--surface);color:var(--text-muted);border-radius:17px;padding:25px 28px;box-shadow:var(--shadow)}
.regia-run-state{display:inline-flex;align-items:center;gap:7px;color:var(--accent-text);font-size:10px;letter-spacing:.5px}.regia-run-state:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.regia-run-state[data-state="running"]:before{animation:node-pulse 1.8s ease infinite}.regia-run-state[data-state="paused"]{color:var(--warning)}
.regia-control h2{font-size:18px;letter-spacing:-.3px;margin:9px 0}.regia-control p{font-size:11px;color:var(--text-muted);line-height:1.7;margin:0;max-width:630px;overflow-wrap:anywhere}
.regia-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.regia-controls .button{font-size:11px;min-height:40px;padding:10px 13px}.regia-controls .secondary{color:var(--text-muted);background:transparent;border-color:var(--border)}.regia-controls .primary{background:var(--accent);color:var(--text);border-color:var(--accent)}
.regia-progress{grid-column:1/-1;display:flex;gap:16px;align-items:center;border-top:1px solid var(--border);padding-top:17px}.regia-progress progress{display:block;flex:1;min-width:70px;height:5px;appearance:none;border:0;background:var(--surface-raised);border-radius:6px;overflow:hidden}.regia-progress progress::-webkit-progress-bar{background:var(--surface-raised);border-radius:6px}.regia-progress progress::-webkit-progress-value{background:var(--accent);border-radius:6px;transition:width .4s}.regia-progress progress::-moz-progress-bar{background:var(--accent)}.regia-progress>span{font-size:10px;color:var(--text-muted);white-space:nowrap}
.regia-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:19px 0 28px}.regia-metrics article{padding:21px 22px;background:var(--surface);border:1px solid var(--border);border-radius:13px;min-width:0}.regia-metrics span{display:block;font-size:11px;color:var(--text)}.regia-metrics strong{display:block;font-size:38px;line-height:1.3;letter-spacing:-1.3px;margin:6px 0}.regia-metrics small{display:block;font-size:10px;color:var(--text-muted);line-height:1.5}.regia-metrics article:first-child{background:var(--surface-raised);border-color:var(--border)}
.regia-workspace{border:1px solid var(--border);background:var(--surface);border-radius:16px;overflow:hidden}.regia-workspace>header{padding:27px 26px 21px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.regia-workspace .eyebrow,.regia-delivery .eyebrow{font-size:9px;color:var(--text);letter-spacing:1.2px;margin:0 0 9px}.regia-workspace h2,.regia-delivery h2{font-size:24px;letter-spacing:-.7px;margin:0 0 9px}.regia-workspace header p:not(.eyebrow){font-size:11px;line-height:1.7;color:var(--text-muted);max-width:570px;margin:0}.regia-result-count{font-size:11px;color:var(--text);white-space:nowrap;background:var(--surface-raised);padding:8px 11px;border-radius:7px}
.regia-filters{display:flex;align-items:flex-end;gap:13px;padding:0 26px 22px;border-bottom:1px solid var(--border)}.regia-filters .search-field{flex:1;min-width:160px}.regia-filters .filter select{min-width:140px;max-width:none;font-size:12px}
.regia-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:22px 26px 25px;background:var(--surface);min-height:80px}.regia-city{grid-column:1/-1;font-size:14px;letter-spacing:-.2px;margin:3px 0;color:var(--text)}.regia-city:not(:first-child){margin-top:12px}
.regia-card{display:flex;flex-direction:column;min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:19px;transition:border-color .18s,box-shadow .18s}.regia-card:hover{border-color:var(--border);box-shadow:var(--shadow)}.regia-card-heading{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}.regia-name{padding:0;border:0;background:none;color:var(--text);text-align:left;font-weight:650;font-size:14px;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}.regia-name:hover{text-decoration:underline;text-underline-offset:3px}
.regia-priority{font-size:9px;padding-top:4px;white-space:nowrap;color:var(--text-muted)}.regia-priority.alta{color:var(--warning)}.regia-priority.alta:before{content:'↑ ';font-size:11px}.regia-card-badges,#regia-detail-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}.regia-status,.regia-draft-badge,.regia-basis-badge{display:inline-block;font-size:9px;line-height:1.4;border-radius:5px;padding:5px 7px;background:var(--surface-raised);color:var(--text)}.regia-status.excluded{background:var(--surface-raised);color:var(--text-muted)}.regia-draft-badge{background:var(--surface-raised);color:var(--text)}.regia-basis-badge{background:var(--surface-raised);color:var(--text)}
.regia-card-summary{font-size:11px;line-height:1.8;color:var(--text-muted);overflow-wrap:anywhere;white-space:pre-line;margin:13px 0 17px;flex:1}.regia-card-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:12px;border-top:1px solid var(--border)}.regia-card-footer small{font-size:9px;line-height:1.5;color:var(--text-muted)}.regia-open{font-size:10px;font-weight:650;border:0;background:none;color:var(--text);cursor:pointer;white-space:nowrap;padding:4px 0}.regia-open:hover{text-decoration:underline}
.regia-pagination{padding:16px 26px;display:flex;gap:9px;align-items:center;border-top:1px solid var(--border)}.regia-pagination>span{margin-right:auto;font-size:11px;color:var(--text)}.regia-pagination .button{font-size:11px;min-height:36px;padding:8px 12px}.regia-empty{text-align:center;padding:40px 24px;background:var(--surface)}.regia-empty>span{display:block;color:var(--text-muted);font-size:32px;margin-bottom:12px}.regia-empty h3{font-size:17px;margin:0 0 10px}.regia-empty p{font-size:12px;line-height:1.7;color:var(--text-muted)}
.regia-delivery{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:36px;padding:28px;margin-top:25px;border:1px solid var(--border);background:var(--surface-raised);border-radius:15px}.regia-delivery p:not(.eyebrow){font-size:12px;line-height:1.7;color:var(--text)}.regia-delivery .regia-delivery-note{font-size:11px!important;margin-top:13px}.regia-delivery-controls dl{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 20px}.regia-delivery-controls dt{font-size:10px;line-height:1.4;color:var(--text)}.regia-delivery-controls dd{font-size:26px;font-weight:650;margin:5px 0 0}.regia-delivery-controls .check-label{font-size:12px;line-height:1.6;align-items:flex-start}.regia-delivery-controls>small{display:block;font-size:10px;line-height:1.6;color:var(--text-muted);margin:9px 0 15px}.regia-delivery-controls>.button{font-size:11px;min-height:39px}
.regia-footnote{font-size:10px;line-height:1.8;margin:17px 4px;color:var(--text-muted);max-width:800px}.regia-error{padding:14px 17px;border:1px solid var(--error-border);border-radius:9px;background:var(--error-bg);color:var(--error);font-size:12px;line-height:1.7;margin-bottom:18px}
.regia-dialog{width:720px;max-width:calc(100vw - 36px);max-height:calc(100dvh - 38px);padding:0;border:1px solid var(--border);border-radius:18px;background:var(--surface);color:var(--text);box-shadow:var(--shadow);overflow:auto}.regia-dialog::backdrop{background:var(--surface-raised);backdrop-filter:blur(4px)}.regia-detail-header{padding:34px 34px 24px;background:var(--surface-raised);border-bottom:1px solid var(--border)}.regia-detail-header .eyebrow{font-size:9px;letter-spacing:1.5px;color:var(--text-muted);margin:0 0 13px}.regia-detail-header h2{font-size:28px;letter-spacing:-.8px;padding-right:30px;overflow-wrap:anywhere;margin:0 0 8px}.regia-detail-header>p:not(.eyebrow){font-size:12px;color:var(--text-muted);margin:0}.regia-detail-content{padding:0 34px}.regia-detail-content>section{padding:26px 0;border-bottom:1px solid var(--border)}.regia-detail-content h3{font-size:15px;letter-spacing:-.2px;margin:0 0 14px}.regia-detail-content p{font-size:12px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-line}.regia-detail-content .form-note{font-size:11px;color:var(--text-muted)}.regia-evidence{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:10px}.regia-evidence li{padding:13px 15px;border:1px solid var(--border);background:var(--surface);border-radius:8px;overflow-wrap:anywhere}.regia-evidence strong{font-size:11px}.regia-evidence p{font-size:11px;margin:6px 0;white-space:pre-line}.regia-evidence a{font-size:11px;color:var(--text);text-decoration:underline;text-underline-offset:3px}.regia-evidence small{display:block;font-size:10px;color:var(--text-muted);margin-top:7px}
.regia-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.regia-section-heading>span{font-size:10px;color:var(--text-muted)}.regia-detail-content label{display:block;font-size:12px;font-weight:500;margin:15px 0 8px}.regia-detail-content input:not([type="checkbox"]),.regia-detail-content textarea,.regia-detail-content select{display:block;width:100%;border:1px solid var(--border);border-radius:7px;padding:11px 12px;margin-top:7px;font:inherit;font-size:13px;line-height:1.65;color:var(--text);background:var(--surface);resize:vertical}.regia-detail-content input[readonly],.regia-detail-content textarea[readonly]{background:var(--surface)}.regia-detail-content label.check-label{display:flex;align-items:flex-start;font-weight:400;line-height:1.6}.regia-detail-content input[type="checkbox"]{margin-top:3px;accent-color:#426b4d}.regia-detail-content .button{font-size:11px;min-height:40px}.regia-dialog>footer{position:sticky;bottom:0;background:var(--surface);backdrop-filter:blur(8px);padding:17px 34px;display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--border)}.regia-dialog>footer .button{font-size:11px;min-height:39px}.regia-bridge-dialog{width:620px}.regia-bridge-dialog .dialog-actions{flex-wrap:wrap}.regia-bridge-dialog .dialog-actions .button{font-size:11px}.regia-bridge-dialog h3{margin-top:25px;font-size:15px}.regia-bridge-dialog .recovery-code{font-size:12px;overflow-wrap:anywhere;user-select:all}
@media(max-width:1350px){.regia-control{grid-template-columns:1fr}.regia-controls{justify-content:flex-start}.regia-hero h1{font-size:51px}.regia-orbit{flex-basis:160px;width:160px;height:160px}.regia-orbit-ring.inner{inset:34px}.regia-orbit>i:last-child{left:95px;bottom:5px}.regia-metrics article{padding:17px}.regia-metrics strong{font-size:34px}.regia-delivery{gap:23px}.regia-card-footer{flex-wrap:wrap;gap:7px}.regia-card-footer .regia-open{margin-left:auto}}
@media(max-width:1050px){.regia-filters{flex-wrap:wrap}.regia-filters .search-field{flex-basis:100%}.regia-filters .filter{flex:1}.regia-filters .filter select{width:100%;min-width:0}.regia-list{grid-template-columns:1fr}.regia-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.regia-delivery{grid-template-columns:1fr;gap:17px}.regia-delivery-controls{border-top:1px solid var(--border);padding-top:20px}.regia-orbit{flex-basis:120px;width:120px;height:120px}.regia-orbit-ring.inner{inset:26px}.regia-orbit>.icon{width:37px;height:37px}.regia-orbit>i{top:24px;left:5px}.regia-orbit>i:nth-last-child(2){top:3px;right:19px}.regia-orbit>i:last-child{left:76px;bottom:5px}.regia-hero h1{font-size:47px}}
@media(max-width:700px){.regia-nav{margin-top:0}.regia-nav b{font-size:6px}.regia-hero{min-height:0;padding:29px 4px 25px;gap:7px}.regia-hero h1{font-size:40px;letter-spacing:-1.7px}.regia-hero .eyebrow{font-size:8px;letter-spacing:1px}.regia-hero-copy>p:not(.eyebrow){font-size:12px}.regia-private{font-size:10px;margin-top:13px}.regia-orbit{flex-basis:85px;width:85px;height:85px;align-self:flex-start;margin-top:15px}.regia-orbit-ring{inset:2px}.regia-orbit-ring.inner{inset:18px}.regia-orbit>.icon{width:28px;height:28px}.regia-orbit>i{top:20px;left:-3px;width:12px;height:12px;border-width:3px}.regia-orbit>i:nth-last-child(2){top:-3px;right:14px;width:16px;height:16px}.regia-orbit>i:last-child{left:52px;bottom:-1px;width:14px;height:14px}.regia-control{padding:21px 19px;border-radius:13px;gap:17px}.regia-control h2{font-size:17px}.regia-controls{gap:8px}.regia-controls .button{font-size:10px;padding:10px 11px;min-height:41px}.regia-controls #regia-run{flex-basis:100%;justify-content:center}.regia-progress{flex-wrap:wrap;gap:10px}.regia-progress progress{flex-basis:100%}.regia-progress>span{font-size:10px}.regia-metrics{gap:10px;margin:15px 0 22px}.regia-metrics article{padding:17px 15px;border-radius:11px}.regia-metrics span{font-size:11px;line-height:1.5}.regia-metrics strong{font-size:34px}.regia-metrics small{font-size:10px}.regia-workspace{border-radius:12px}.regia-workspace>header{padding:23px 18px 18px;display:block}.regia-workspace h2{font-size:23px}.regia-result-count{display:inline-block;margin-top:13px;font-size:10px}.regia-filters{padding:0 18px 19px;gap:12px}.regia-filters .search-field input{font-size:13px}.regia-filters .filter select{font-size:12px}.regia-list{padding:18px 15px 20px;gap:12px}.regia-card{padding:17px}.regia-name{font-size:14px}.regia-card-summary{font-size:12px;line-height:1.7}.regia-card-badges>*{font-size:10px}.regia-card-footer small{font-size:10px}.regia-open{font-size:11px}.regia-pagination{padding:14px 17px;gap:7px;flex-wrap:wrap}.regia-pagination .button{font-size:10px;padding-inline:10px}.regia-pagination>span{font-size:10px}.regia-delivery{padding:23px 19px;border-radius:12px}.regia-delivery h2{font-size:23px}.regia-delivery .eyebrow{font-size:8px}.regia-delivery-controls dt{font-size:10px}.regia-footnote{font-size:10px;line-height:1.7}.regia-dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:14px}.regia-detail-header{padding:30px 22px 23px}.regia-detail-header h2{font-size:24px}.regia-detail-content{padding-inline:22px}.regia-detail-content input:not([type="checkbox"]),.regia-detail-content textarea,.regia-detail-content select{font-size:16px}.regia-detail-content textarea::placeholder{font-size:12px}.regia-dialog>footer{padding:15px 20px;gap:9px}.regia-dialog>footer .button{font-size:10px;padding:9px 11px}.regia-section-heading{flex-wrap:wrap;gap:0}.regia-section-heading>span{margin-bottom:10px}.regia-bridge-dialog .recovery-code{font-size:13px}}
@media(max-width:400px){.regia-orbit{display:none}.regia-hero h1{font-size:43px}.regia-controls .button{flex:1}.regia-control{padding-inline:16px}.regia-metrics span{font-size:10px}.regia-pagination>span{flex-basis:100%}.regia-pagination .button{flex:1}}
@media(max-width:1050px){.regia-signals-list{grid-template-columns:1fr}}
@media(max-width:700px){.regia-signals>header{padding:23px 18px 18px;align-items:flex-start}.regia-signals h2{font-size:22px}.regia-signals .eyebrow{font-size:8px}.regia-signals .regia-result-count{margin-top:0}.regia-signals-list{padding:0 18px 19px}.regia-signals-empty{padding:0 18px 18px;line-height:1.7}.regia-sources{padding-inline:18px}.regia-signal h3{font-size:14px}.regia-signal p{font-size:12px}.regia-signal-meta{font-size:10px}}
@media(max-width:700px){.regia-today{padding:23px 18px;border-radius:12px}.regia-today h2{font-size:23px}.regia-today li{gap:11px;flex-wrap:wrap}.regia-action-number{font-size:22px;min-width:26px}.regia-action-copy{flex-basis:calc(100% - 40px)}.regia-action-copy strong{font-size:13px}.regia-action-copy>span{font-size:12px}.regia-action-copy p{font-size:11px}.regia-today li>.button{margin-left:37px;font-size:11px;min-height:36px}}

/* La squadra rappresenta soltanto operazioni registrate dal server. */
.regia-team{position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--border);border-radius:22px;margin:0 0 26px;background:var(--surface);color:var(--text-muted);box-shadow:var(--shadow)}
.regia-team:before{content:"";position:absolute;z-index:-1;width:620px;height:620px;top:-490px;right:-150px;border:1px solid var(--border);border-radius:50%;box-shadow:var(--shadow);pointer-events:none}
.regia-team-heading{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:34px 30px 25px}.regia-team-heading .eyebrow{color:var(--text-muted);font-size:9px;letter-spacing:1.7px}.regia-team-heading h2{margin:12px 0 11px;font-size:37px;font-weight:500;line-height:1.1;letter-spacing:-1.3px}.regia-team-heading h2 em{font-family:Georgia,serif;color:var(--accent-text);font-weight:400}.regia-team-heading p:not(.eyebrow){font-size:12px;line-height:1.7;color:var(--text-muted)}
.regia-team-shift{flex-shrink:0;min-width:190px;border-left:1px solid var(--border);padding-left:27px}.regia-team-shift>span{display:block;font-size:10px;font-weight:600;color:var(--accent-text)}.regia-team-shift>strong{display:flex;align-items:center;gap:13px;margin:9px 0 7px;font-size:24px;letter-spacing:-.7px;font-weight:500;font-variant-numeric:tabular-nums}.regia-team-shift i{font-style:normal;font-size:18px;color:var(--text-muted)}.regia-team-shift small{font-size:10px;color:var(--text-muted)}
.regia-team-brief{display:flex;align-items:center;gap:11px;padding:15px 30px;background:var(--surface);border-block:1px solid var(--border)}.regia-team-brief>p{font-size:11px;line-height:1.7;color:var(--text-muted);flex:1}.regia-team-brief>span:last-child{font-size:9px;line-height:1.6;color:var(--text-muted);max-width:150px;text-align:right}.regia-team-beacon{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--surface-raised)}.regia-team[data-phase="day"] .regia-team-beacon{background:var(--accent);box-shadow:var(--shadow)}.regia-team[data-phase="night"] .regia-team-beacon{background:var(--info-bg)}.regia-team[data-phase="night"] .regia-team-shift>span{color:var(--info)}.regia-team[data-phase="stale"] .regia-team-shift>span,.regia-team[data-phase="paused"] .regia-team-shift>span{color:var(--warning)}
.regia-team-agents{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;padding:24px 22px 0}.regia-agent{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;background:var(--surface-raised);border:1px solid var(--border);border-radius:14px;padding:19px 16px 15px;transition:transform .25s,border-color .25s,box-shadow .25s}.regia-agent:hover{transform:translateY(-4px);border-color:var(--border);box-shadow:var(--shadow)}.regia-agent[data-status="running"]{border-color:var(--border);background:linear-gradient(135deg,var(--surface-raised),var(--surface))}.regia-agent[data-status="running"]:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,var(--surface-raised),var(--surface));background-size:250% 100%;animation:regia-agent-scan 6s ease-in-out infinite;pointer-events:none}
.regia-agent-profile{text-align:center}.regia-agent-portrait{position:relative;width:83px;height:83px;margin:0 auto 13px}.regia-agent-avatar{display:block;width:100%;height:100%;border-radius:50%}.regia-agent-indicator{position:absolute;bottom:0;right:1px;width:16px;height:16px;border:4px solid var(--border);border-radius:50%;background:var(--surface-raised)}.regia-agent[data-status="running"] .regia-agent-indicator{background:var(--accent);animation:regia-agent-pulse 2.3s ease-in-out infinite}.regia-agent[data-status="blocked"] .regia-agent-indicator,.regia-agent[data-status="error"] .regia-agent-indicator{background:var(--error-bg)}.regia-agent[data-status="completed"] .regia-agent-indicator{background:var(--success-bg)}.regia-agent-identity h3{font-size:19px;letter-spacing:-.3px;font-weight:550;color:var(--text-muted);margin:0 0 6px}.regia-agent-identity p{font-size:10px;line-height:1.5;color:var(--text-muted)}.regia-agent-state{align-self:center;padding:5px 8px;margin:13px 0 19px;border-radius:5px;background:var(--surface);color:var(--text-muted);font-size:9px;line-height:1.3;border:1px solid var(--border);text-align:center}.regia-agent[data-status="running"] .regia-agent-state{background:var(--surface-raised);color:var(--accent-text);border-color:var(--border)}.regia-agent[data-status="completed"] .regia-agent-state{color:var(--success)}.regia-agent[data-status="blocked"] .regia-agent-state,.regia-agent[data-status="error"] .regia-agent-state{color:var(--error);background:var(--error-bg)}.regia-agent[data-status="stale"] .regia-agent-state{color:var(--warning)}
.regia-agent-work{flex:1;min-height:86px}.regia-agent-work>small,.regia-agent-result>small{display:block;font-size:7px;letter-spacing:1.2px;color:var(--text-muted);font-weight:600;margin-bottom:8px}.regia-agent-task{font-size:11px;line-height:1.7;overflow-wrap:anywhere;color:var(--text-muted)}.regia-agent-work progress{display:block;width:100%;height:3px;margin-top:13px;appearance:none;border:0;border-radius:3px;overflow:hidden;background:var(--surface);accent-color:var(--accent-text)}.regia-agent-work progress::-webkit-progress-bar{background:var(--surface)}.regia-agent-work progress::-webkit-progress-value{background:var(--accent)}.regia-agent-work progress::-moz-progress-bar{background:var(--accent)}.regia-agent-progress{display:block;font-size:9px;color:var(--text-muted);text-align:right;margin:6px 0 3px;font-variant-numeric:tabular-nums}.regia-agent-result{margin-top:14px;padding-top:13px;border-top:1px solid var(--border)}.regia-agent-result>p{font-size:10px;line-height:1.7;color:var(--text-muted);overflow-wrap:anywhere}.regia-agent>footer{padding-top:18px;margin-top:auto}.regia-agent>footer p{font-size:9px;line-height:1.6;color:var(--text-muted)}.regia-agent>footer span{display:block;font-size:8px;line-height:1.6;color:var(--text-muted);margin-top:9px}
.regia-team-note{font-size:10px;line-height:1.8;color:var(--text-muted);padding:16px 27px 21px}.regia-team-bottom{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);border-top:1px solid var(--border);background:var(--surface-raised)}.regia-team-bottom>section{min-width:0;padding:26px}.regia-team-bottom>section+section{border-left:1px solid var(--border)}.regia-team-bottom header{display:flex;align-items:center;gap:12px;margin-bottom:21px}.regia-team-section-number{display:grid;place-items:center;flex:0 0 31px;height:35px;border:1px solid var(--border);border-radius:8px;color:var(--text-muted);font:italic 17px Georgia,serif}.regia-team-bottom .eyebrow{font-size:7px;color:var(--text-muted);letter-spacing:1.6px;margin:0 0 6px}.regia-team-bottom h3{font-size:17px;font-weight:500;letter-spacing:-.3px}.regia-team-bottom ol{list-style:none;padding:0;margin:0}.regia-team-journal li{display:flex;align-items:flex-start;gap:11px;padding:12px 0;border-top:1px solid var(--border)}.regia-team-journal li>div{flex:1;min-width:0}.regia-event-dot{width:5px;height:5px;flex:0 0 5px;background:var(--surface-raised);border-radius:50%;margin-top:6px}.regia-team-journal li[data-status="completed"] .regia-event-dot{background:var(--success-bg)}.regia-team-journal li[data-status="error"] .regia-event-dot,.regia-team-journal li[data-status="blocked"] .regia-event-dot{background:var(--error-bg)}.regia-team-journal strong{display:block;font-size:10px;font-weight:550;color:var(--text-muted);line-height:1.6}.regia-team-journal li p{font-size:10px;line-height:1.7;color:var(--text-muted);margin-top:4px;overflow-wrap:anywhere}.regia-team-journal time{font-size:8px;line-height:1.7;color:var(--text-muted);flex:0 0 74px;text-align:right}.regia-team-empty{font-size:11px;color:var(--text-muted);line-height:1.8;padding:12px 0}
.regia-team-plan-date{font:italic 20px Georgia,serif;color:var(--accent-text);margin-bottom:16px}.regia-team-plan-date:empty{display:none}.regia-team-plan dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px;padding:14px 0;border-block:1px solid var(--border)}.regia-team-plan dl:empty{display:none}.regia-team-plan dt{font-size:8px;line-height:1.5;color:var(--text-muted)}.regia-team-plan dd{font-size:23px;font-weight:500;color:var(--text-muted);margin:6px 0 0;font-variant-numeric:tabular-nums}.regia-team-plan li{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.regia-team-plan li>div{flex:1;min-width:0}.regia-team-plan li strong{display:block;color:var(--text-muted);font-size:10px;line-height:1.6;font-weight:550;overflow-wrap:anywhere}.regia-team-plan li span{display:block;color:var(--text-muted);font-size:10px;line-height:1.7;margin-top:3px;overflow-wrap:anywhere}.regia-team-plan li p{font-size:9px;line-height:1.7;color:var(--text-muted);margin-top:5px;overflow-wrap:anywhere}.regia-plan-open{display:grid;place-items:center;flex:0 0 35px;height:35px;background:var(--surface-raised);border:1px solid var(--border);border-radius:8px;color:var(--accent-text);font-size:17px;transition:background .2s}.regia-plan-open:hover{background:var(--surface-raised)}.regia-team-plan>small{display:block;font-size:9px;line-height:1.8;color:var(--text-muted);margin-top:15px}
@keyframes regia-agent-pulse{0%,100%{box-shadow:var(--shadow)}50%{box-shadow:var(--shadow)}}@keyframes regia-agent-scan{0%,35%{background-position:150% 0}85%,100%{background-position:-150% 0}}
@media(max-width:1400px){.regia-team-agents{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.regia-agent-profile{display:flex;align-items:center;gap:13px;text-align:left}.regia-agent-portrait{width:63px;height:63px;flex:0 0 63px;margin:0}.regia-agent-state{align-self:flex-start;margin-top:15px}.regia-agent-work{min-height:65px}.regia-agent:nth-child(4),.regia-agent:nth-child(5){grid-column:auto}.regia-team-heading{padding:29px 26px 23px}.regia-team-heading h2{font-size:34px}.regia-team-brief{padding-inline:26px}}
@media(max-width:1100px){.regia-team-agents{grid-template-columns:repeat(2,minmax(0,1fr))}.regia-agent:last-child{grid-column:1/-1}.regia-team-bottom{grid-template-columns:1fr}.regia-team-bottom>section+section{border-left:0;border-top:1px solid var(--border)}.regia-team-brief{flex-wrap:wrap}.regia-team-brief>span:last-child{max-width:none;margin-left:18px;text-align:left}.regia-team-shift{min-width:160px;padding-left:20px}.regia-team-heading{gap:20px}.regia-team-heading h2{font-size:31px}}
@media(max-width:700px){.regia-team{border-radius:16px}.regia-team-heading{align-items:flex-start;gap:20px;flex-direction:column;padding:25px 20px 21px}.regia-team-heading h2{font-size:34px}.regia-team-heading .eyebrow{font-size:8px;letter-spacing:1.3px}.regia-team-heading p:not(.eyebrow){font-size:12px}.regia-team-shift{display:grid;grid-template-columns:1fr auto;gap:6px 20px;border-left:0;border-top:1px solid var(--border);padding:16px 0 0;width:100%;min-width:0}.regia-team-shift>span{align-self:center}.regia-team-shift>strong{grid-column:2;grid-row:1/3;margin:0;align-self:center;font-size:21px;gap:10px}.regia-team-shift small{grid-column:1}.regia-team-brief{padding:15px 20px;gap:8px}.regia-team-brief>p{font-size:11px}.regia-team-brief>span:last-child{margin-left:15px}.regia-team-agents{padding:18px 15px 0;gap:10px}.regia-agent{padding:17px 13px 14px;border-radius:11px}.regia-agent-profile{display:block;text-align:center}.regia-agent-portrait{width:72px;height:72px;margin:0 auto 12px}.regia-agent-identity h3{font-size:20px}.regia-agent-state{align-self:center}.regia-agent-identity p{font-size:10px}.regia-agent-task{font-size:12px}.regia-agent-work>small,.regia-agent-result>small{font-size:8px;letter-spacing:1px}.regia-agent-result>p{font-size:11px}.regia-agent>footer p{font-size:10px}.regia-agent>footer span{font-size:9px}.regia-team-note{padding:15px 20px 20px}.regia-team-bottom>section{padding:24px 20px}.regia-team-bottom h3{font-size:18px}.regia-team-bottom .eyebrow{font-size:8px}.regia-team-journal strong,.regia-team-journal li p,.regia-team-plan li strong,.regia-team-plan li span{font-size:11px}.regia-team-journal time{font-size:9px;flex-basis:72px}.regia-team-plan li p,.regia-team-plan dt,.regia-team-plan>small{font-size:10px}.regia-team-plan dd{font-size:26px}}
@media(max-width:420px){.regia-team-agents{grid-template-columns:1fr}.regia-agent-profile{display:flex;text-align:left}.regia-agent-portrait{margin:0;width:68px;height:68px;flex-basis:68px}.regia-agent-state{align-self:flex-start}.regia-agent-work{min-height:0}.regia-team-heading h2{font-size:32px}}
@media(prefers-reduced-motion:reduce){.regia-agent:hover{transform:none}}.motion-reduced .regia-agent:hover{transform:none}
/* Leggibilità della sala squadra: etichette almeno 11 px, informazioni almeno 12 px. */
.regia-team-heading .eyebrow,.regia-team-shift>span,.regia-team-shift small,.regia-team-brief>span:last-child,.regia-agent-state,.regia-agent-work>small,.regia-agent-result>small,.regia-agent-progress,.regia-agent>footer span,.regia-team-bottom .eyebrow,.regia-team-journal time,.regia-team-plan dt,.regia-team-plan>small{font-size:11px;line-height:1.65}
.regia-team-heading p:not(.eyebrow),.regia-team-brief>p,.regia-agent-identity p,.regia-agent-task,.regia-agent-result>p,.regia-agent>footer p,.regia-team-note,.regia-team-journal strong,.regia-team-journal li p,.regia-team-empty,.regia-team-plan li strong,.regia-team-plan li span,.regia-team-plan li p{font-size:12px;line-height:1.75}
.regia-agent-identity{min-width:0}.regia-agent-identity p,.regia-team-shift>span,.regia-team-plan dt,.regia-team-plan>small{overflow-wrap:anywhere}.regia-agent-work>small,.regia-agent-result>small{letter-spacing:.6px}.regia-team-journal time{flex-basis:86px}.regia-team-brief>span:last-child{max-width:175px}.regia-team-bottom header>div{min-width:0}
@media(max-width:1100px){.regia-team-brief>span:last-child{max-width:none}}

/* Direzione registrata: nessuna animazione simula attività del modello. */
.regia-boss{margin:0 0 26px;border:1px solid var(--border);border-radius:20px;background:var(--surface);color:var(--text);overflow:hidden;box-shadow:var(--shadow)}
.regia-boss-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:29px 28px 23px}.regia-boss-heading>div{min-width:0;max-width:610px}.regia-boss-heading .eyebrow{font-size:11px;color:var(--text);letter-spacing:1px}.regia-boss-heading h2{font-size:31px;font-weight:500;line-height:1.15;letter-spacing:-.8px;margin:10px 0 12px}.regia-boss-heading h2 em{font-family:Georgia,serif;font-weight:400;color:var(--text)}.regia-boss-heading p:not(.eyebrow){font-size:13px;line-height:1.75;color:var(--text)}.regia-boss-status{flex-shrink:0;max-width:230px;border:1px solid var(--border);background:var(--surface-raised);color:var(--text);border-radius:7px;padding:9px 12px;font-size:12px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.regia-boss[data-status="fallback"] .regia-boss-status,.regia-boss[data-status="stale"] .regia-boss-status{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning)}.regia-boss[data-status="running"] .regia-boss-status{background:var(--surface-raised);border-color:var(--border);color:var(--text-muted)}.regia-boss-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 28px;border-block:1px solid var(--border);background:var(--surface-raised)}.regia-boss-toolbar>div:first-child{min-width:0}.regia-boss-toolbar p{font-size:12px;line-height:1.6;font-weight:600;overflow-wrap:anywhere}.regia-boss-toolbar small{display:block;font-size:11px;line-height:1.6;color:var(--text);margin-top:4px}.regia-boss-controls{display:flex;align-items:center;gap:10px;flex-shrink:0}.regia-boss-controls .button{font-size:12px;min-height:42px;white-space:normal}.regia-boss-controls .button:disabled{opacity:.55;cursor:not-allowed}
.regia-boss-notice{margin:18px 28px 0;padding:13px 15px;background:var(--warning-bg);border:1px solid var(--warning-border);border-radius:8px;font-size:12px;line-height:1.75;color:var(--warning);overflow-wrap:anywhere}.regia-boss-summary{font-size:14px;line-height:1.8;margin:22px 28px;color:var(--text);overflow-wrap:anywhere}.regia-boss-body{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr);gap:0;border-top:1px solid var(--border)}.regia-boss-body>section{padding:23px 28px;min-width:0}.regia-boss-body h3{font-size:16px;font-weight:600;margin:0 0 14px;letter-spacing:-.15px}.regia-boss-body ol{list-style:none;margin:0;padding:0}.regia-boss-empty{font-size:12px;line-height:1.8;color:var(--text)}.regia-boss-priority{display:flex;align-items:flex-start;gap:13px;padding:17px 0;border-top:1px solid var(--border)}.regia-boss-priority:first-child{border-top:0;padding-top:5px}.regia-boss-rank{font:italic 23px Georgia,serif;color:var(--text-muted);min-width:28px;padding-top:3px;font-variant-numeric:tabular-nums}.regia-boss-priority-copy{flex:1;min-width:0;overflow-wrap:anywhere}.regia-boss-priority-copy>strong{display:block;font-size:14px;line-height:1.6}.regia-boss-task-meta{display:block;font-size:11px;line-height:1.7;color:var(--text);margin-top:3px}.regia-boss-task-action{font-size:12px;line-height:1.7;margin-top:9px;font-weight:600}.regia-boss-task-reason{font-size:12px;line-height:1.75;color:var(--text);margin-top:5px}.regia-boss-task-state{display:inline-block;margin-top:10px;padding:4px 7px;border-radius:5px;background:var(--surface-raised);color:var(--text);font-size:11px;line-height:1.6}.regia-boss-priority[data-status="needs_input"] .regia-boss-task-state{background:var(--warning-bg);color:var(--warning)}.regia-boss-priority[data-status="completed"] .regia-boss-task-state{background:var(--success-bg);color:var(--success)}.regia-boss-open{font-size:11px;line-height:1.6;min-height:38px;flex-shrink:0;margin-top:1px;color:var(--text);background:transparent;border:1px solid var(--border);border-radius:6px;padding:7px 9px;white-space:nowrap}.regia-boss-open:hover{background:var(--surface-raised)}.regia-boss-open:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.regia-boss-results{border-left:1px solid var(--border);background:var(--surface-raised)}.regia-boss-results>p{font-size:13px;line-height:1.8;color:var(--text);overflow-wrap:anywhere}.regia-boss-results li{padding:13px 0;border-top:1px solid var(--border);margin-top:13px;overflow-wrap:anywhere}.regia-boss-results li strong{font-size:12px;line-height:1.7}.regia-boss-results li p{font-size:12px;line-height:1.75;color:var(--text);margin-top:5px}.regia-boss-results li span,.regia-boss-results li small{display:block;font-size:11px;line-height:1.7;color:var(--text);margin-top:5px}.regia-boss>footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--border);padding:14px 28px;background:var(--surface-raised);color:var(--text);font-size:11px;line-height:1.75}.regia-boss>footer span:empty{display:none}
@media(max-width:1100px){.regia-boss-toolbar{align-items:flex-start;flex-direction:column}.regia-boss-body{grid-template-columns:1fr}.regia-boss-results{border-left:0;border-top:1px solid var(--border)}.regia-boss-results ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.regia-boss-priority{align-items:flex-start}}
@media(max-width:700px){.regia-boss{border-radius:15px}.regia-boss-heading{padding:24px 20px 20px;flex-direction:column;gap:17px}.regia-boss-heading h2{font-size:29px}.regia-boss-status{max-width:100%}.regia-boss-heading .eyebrow{font-size:10px}.regia-boss-toolbar{padding:16px 20px;gap:15px}.regia-boss-controls{width:100%;flex-wrap:wrap}.regia-boss-controls .button{flex:1;min-width:125px;font-size:11px;padding:10px;min-height:44px}.regia-boss-notice{margin-inline:20px}.regia-boss-summary{margin:19px 20px;font-size:13px}.regia-boss-body>section{padding:21px 20px}.regia-boss-priority{flex-wrap:wrap;gap:9px 11px}.regia-boss-priority-copy{flex-basis:calc(100% - 42px)}.regia-boss-priority-copy>strong{font-size:13px}.regia-boss-open{margin-left:39px;min-height:42px}.regia-boss-results ol{grid-template-columns:1fr;gap:0}.regia-boss>footer{padding:14px 20px;gap:6px}}

/* Commercial conversations keep received mail separate from first outreach. */
.regia-mail{margin:0 0 22px;padding:25px;border:1px solid var(--border);border-radius:17px;background:var(--surface);color:var(--text)}.regia-mail>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.regia-mail h2{font-size:25px;font-weight:550;letter-spacing:-.5px;margin:7px 0 0}.regia-mail .eyebrow{color:var(--text-muted)}.regia-mail-controls{display:flex;gap:9px;flex-wrap:wrap}.regia-mail-controls .button{min-height:44px}.regia-mail-status{font-size:14px;font-weight:600;line-height:1.7;margin-top:18px}.regia-mail-updated{font-size:11px;line-height:1.6;color:var(--text-muted);margin-top:4px}.regia-mail-note,.regia-mail-empty{font-size:12px;line-height:1.8;color:var(--text-muted);margin-top:12px}.regia-mail[data-state="stale"] .regia-mail-status,.regia-mail[data-state="paused"] .regia-mail-status{color:var(--warning)}.regia-mail-summary{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.regia-mail-summary:empty{display:none}.regia-mail-summary span,.regia-mail-badge{display:inline-block;padding:5px 9px;border:1px solid var(--border);border-radius:6px;background:var(--surface-raised);color:var(--text);font-size:11px;line-height:1.6}.regia-mail-badge[data-state="decision"],.regia-mail-badge[data-state="uncertain"]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning)}.regia-mail-badge[data-state="stop"]{background:var(--error-bg);border-color:var(--error-border);color:var(--error)}.regia-mail-layout{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.4fr);gap:22px;margin-top:18px}.regia-mail-layout:not(:has(.regia-mail-detail:not([hidden]))){grid-template-columns:1fr}.regia-mail-list,.regia-mail-messages{list-style:none;margin:0;padding:0}.regia-mail-list{display:grid;gap:9px;align-content:start}.regia-mail-conversation{width:100%;text-align:left;padding:15px;border:1px solid var(--border);border-radius:9px;background:var(--surface);overflow-wrap:anywhere}.regia-mail-conversation:hover,.regia-mail-conversation[aria-pressed="true"]{border-color:var(--border);background:var(--surface-raised)}.regia-mail-conversation strong{display:block;font-size:14px;line-height:1.6}.regia-mail-conversation small,.regia-mail-conversation p{display:block;font-size:11px;line-height:1.7;color:var(--text-muted);margin-top:5px}.regia-mail-conversation .regia-mail-badge{margin-top:9px}.regia-mail-detail{padding:20px;border:1px solid var(--border);border-radius:11px;background:var(--surface);min-width:0;overflow-wrap:anywhere}.regia-mail-detail h3{font-size:18px;line-height:1.5}.regia-mail-detail>p{font-size:12px;line-height:1.8;color:var(--text-muted);margin-top:8px}.regia-mail-detail>p:empty{display:none}.regia-mail-messages>li{margin-top:20px;padding-top:17px;border-top:1px solid var(--border)}.regia-mail-message-meta{font-size:11px;line-height:1.7;color:var(--text-muted);margin:7px 0}.regia-mail-messages strong{display:block;font-size:13px;line-height:1.7}.regia-mail-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.85;margin-top:10px}.regia-mail-draft{margin-top:22px;padding:17px;background:var(--surface-raised);border:1px solid var(--border);border-radius:9px}.regia-mail-draft h4{font-size:14px;margin:0 0 8px}.regia-mail-draft>p:not(.regia-mail-body){font-size:11px;line-height:1.8;color:var(--text);margin:0 0 10px}.regia-mail-draft>strong{font-size:13px;line-height:1.7}
@media(max-width:900px){.regia-mail>header{flex-direction:column}.regia-mail-layout{grid-template-columns:1fr}.regia-mail-list{max-height:360px;overflow-y:auto}.regia-mail-detail{scroll-margin-top:20px}}
@media(max-width:600px){.regia-mail{padding:20px 17px;border-radius:14px}.regia-mail h2{font-size:23px}.regia-mail-controls{width:100%}.regia-mail-controls .button{white-space:normal;flex:1;min-width:125px;font-size:11px}.regia-mail-detail{padding:16px}.regia-mail-body{font-size:13px}.regia-mail-summary{gap:6px}}

/* Results first, with a visible team and secondary detail on demand. */
.regia-hero{min-height:0;padding:24px 0 22px}.regia-hero h1{font-size:44px;line-height:1.1}.regia-hero-copy>p:not(.eyebrow){font-size:14px;max-width:670px}.regia-orbit{display:none}.regia-private{margin-top:12px}
.regia-overview{margin:0 0 18px;padding:26px;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:var(--shadow);color:var(--text)}
.regia-overview>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.regia-overview .eyebrow{font-size:11px;letter-spacing:1px;color:var(--text)}.regia-overview h2{margin:8px 0 0;font-size:26px;line-height:1.2;font-weight:550;letter-spacing:-.6px}
.regia-overview-state{padding:9px 12px;background:var(--surface-raised);border:1px solid var(--border);border-radius:8px;font-size:12px;line-height:1.5;font-weight:600;max-width:280px;overflow-wrap:anywhere}
.regia-overview[data-state="night"] .regia-overview-state{background:var(--info-bg);border-color:var(--info-border);color:var(--info)}.regia-overview[data-state="stale"] .regia-overview-state,.regia-overview[data-state="paused"] .regia-overview-state,.regia-overview[data-state="unknown"] .regia-overview-state{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning)}
.regia-overview-next{font-size:13px;line-height:1.75;color:var(--text);margin:15px 0 20px;max-width:900px}.regia-result-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.regia-work-summary{margin:0 0 18px;padding:14px 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface);font-size:13px;line-height:1.75;overflow-wrap:anywhere}.regia-work-summary:has(>strong:empty):has(>p:empty){display:none}.regia-work-summary strong{font-weight:600}.regia-work-summary p{margin:5px 0 0;color:var(--text-muted);font-size:12px}.regia-work-summary p:empty{display:none}.regia-progress>progress[hidden]{display:none}
.regia-search-results{margin-top:15px;padding:14px 16px;border-left:3px solid var(--warning-border);background:var(--warning-bg);color:var(--warning);font-size:12px;line-height:1.75;overflow-wrap:anywhere}.regia-search-results strong{font-weight:600}.regia-search-results ul{margin:8px 0 0;padding-left:18px}.regia-search-results ul:empty{display:none}.regia-search-results li+li{margin-top:3px}
.regia-search-results .button{margin-top:12px;min-height:44px;font-size:12px}.regia-search-results .button[hidden]{display:none}#regia-signals-title{scroll-margin-top:25px}#regia-signals-title:focus{outline:2px solid var(--focus);outline-offset:5px}
.regia-result-shortcuts>button{position:relative;display:flex;align-items:flex-start;flex-direction:column;gap:10px;min-width:0;text-align:left;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);padding:19px;cursor:pointer;transition:border-color .15s,background .15s}
.regia-result-shortcuts>button:hover{background:var(--surface-raised);border-color:var(--border)}.regia-result-shortcuts>button[aria-pressed="true"]{background:var(--surface-raised);border-color:var(--border)}.regia-result-shortcuts>button>span{font-size:12px;line-height:1.6;font-weight:600}.regia-result-shortcuts strong{font-size:40px;line-height:1;font-weight:550;letter-spacing:-1px;font-variant-numeric:tabular-nums}.regia-result-shortcuts small{font-size:11px;line-height:1.6;color:var(--text);margin-top:auto}.regia-result-shortcuts small>span{display:inline-block;margin-left:4px}
.regia-result-shortcuts>button:disabled{cursor:default;opacity:.6}.regia-overview-readiness{font-size:12px;line-height:1.75;color:var(--text);margin:15px 0 0}.regia-overview-readiness:empty{display:none}
.regia-overview-health{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:17px;margin-top:17px;border-top:1px solid var(--border)}.regia-overview-health>div{min-width:0}.regia-overview-health strong,.regia-overview-health span{display:block;font-size:12px;line-height:1.65;overflow-wrap:anywhere}.regia-overview-health span{font-size:11px;color:var(--text-muted);margin-top:3px}.regia-overview-health .button{min-height:44px;font-size:12px;flex-shrink:0}.regia-overview-warning{font-size:12px;line-height:1.7;border-left:3px solid var(--warning-border);background:var(--warning-bg);padding:11px 13px;margin-top:14px;color:var(--warning);overflow-wrap:anywhere}
.regia-control{padding:22px 25px;margin-bottom:22px;gap:15px}.regia-control h2{font-size:18px}.regia-controls .button{font-size:12px;min-height:44px}.regia-progress>span{font-size:11px}
.regia-team-heading{padding:26px 25px 21px}.regia-team-heading h2{font-size:31px}.regia-team-agents{grid-template-columns:repeat(5,minmax(0,1fr));padding:21px 20px 0;gap:11px}.regia-agent{padding:18px 13px 14px}.regia-agent-profile{display:block;text-align:center}.regia-agent-portrait{width:112px;height:112px;max-width:100%;margin:0 auto 14px;flex-basis:auto}.regia-agent-avatar{width:100%;height:100%;object-fit:cover;object-position:center 25%;border-radius:18px;border:1px solid var(--border);background:var(--surface-raised)}.regia-agent-initial{display:grid;place-items:center;font-size:42px;font-weight:500;color:var(--accent-text)}.regia-agent-indicator{right:-3px;bottom:-3px;width:18px;height:18px}.regia-agent-identity h3{font-size:21px}.regia-agent-identity p{font-size:12px;min-height:42px}.regia-agent-state{align-self:center;margin:10px 0 15px}.regia-agent-work{min-height:65px}.regia-agent>footer{padding-top:10px}.regia-agent>footer span{font-size:10px}.regia-agent-result>p,.regia-agent-task{font-size:12px;line-height:1.7}.regia-team-note{padding:15px 25px 20px;font-size:12px}
.regia-team-history>summary{cursor:pointer;padding:17px 25px;font-size:13px;font-weight:600;color:var(--text-muted);border-top:1px solid var(--border);background:var(--surface-raised)}.regia-team-history>summary::marker{color:var(--accent-text)}.regia-team-history[open]>summary{border-bottom:1px solid var(--border)}.regia-team-history .regia-team-bottom{border-top:0}.regia-team-history .regia-team-bottom>section{padding:22px}
.regia-delivery{margin:0 0 23px;padding:24px;gap:24px}.regia-delivery h2{font-size:24px}.regia-delivery-controls dt,.regia-delivery-controls>small{font-size:11px}.regia-delivery-controls>.button{min-height:44px;font-size:12px}
.regia-quick-filters{display:flex;flex-wrap:wrap;gap:8px;padding:0 26px 17px}.regia-quick-filters button,.regia-clear-filters{font:inherit;font-size:12px;line-height:1.5;min-height:42px;padding:9px 13px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);cursor:pointer}.regia-quick-filters button[aria-pressed="true"]{background:var(--surface-raised);border-color:var(--border);color:var(--text-muted)}.regia-quick-filters button:hover,.regia-clear-filters:hover{border-color:var(--border)}.regia-clear-filters{font-size:11px;align-self:flex-end;white-space:nowrap;background:var(--surface-raised)}.regia-filters{align-items:flex-end}.regia-filters .search-field{align-self:flex-end}.regia-filters .search-field input{min-width:0}
.regia-delivery-badge{display:inline-block;font-size:11px;line-height:1.5;border-radius:5px;padding:5px 7px;background:var(--surface-raised);color:var(--text)}.regia-card-badges>*{font-size:11px}.regia-card-footer small{font-size:11px}.regia-open{min-height:40px;font-size:12px;padding:8px 0}.regia-name{font-size:16px;line-height:1.5}.regia-card-summary{font-size:13px;line-height:1.75}.regia-empty .button{margin-top:18px;min-height:44px;font-size:12px}
.regia-panel-details{margin:22px 0;border:1px solid var(--border);border-radius:13px;background:var(--surface);overflow:hidden}.regia-panel-details>summary{padding:18px 22px;cursor:pointer;font-size:14px;line-height:1.6;font-weight:600;color:var(--text)}.regia-panel-details>summary::marker{color:var(--text-muted)}.regia-panel-details[open]>summary{border-bottom:1px solid var(--border);background:var(--surface-raised)}.regia-panel-details>.regia-boss{margin:0;border:0;border-radius:0;box-shadow:none}.regia-panel-details>.regia-metrics{margin:20px}.regia-panel-details>.regia-today{margin:20px;border-radius:10px}.regia-details-copy{padding:3px 22px 18px}.regia-details-copy p{font-size:13px;line-height:1.8;color:var(--text);margin-top:14px}
.regia button:focus-visible,.regia summary:focus-visible,.regia a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.regia-team summary:focus-visible{outline-color:var(--focus);outline-offset:-4px}.regia-workspace h2:focus{outline:0}.regia-workspace{scroll-margin-top:25px}.regia-sources{scroll-margin-top:25px}
@media(max-width:1180px){.regia-team-agents{grid-template-columns:repeat(3,minmax(0,1fr))}.regia-agent:last-child{grid-column:auto}.regia-agent-identity p{min-height:0}.regia-filters{flex-wrap:wrap}.regia-clear-filters{margin-left:auto}}
@media(max-width:760px){.regia-overview{padding:20px 17px;border-radius:14px}.regia-overview>header{align-items:flex-start;flex-direction:column;gap:12px}.regia-overview-state{max-width:100%;font-size:12px}.regia-overview h2{font-size:24px}.regia-overview-next{font-size:13px}.regia-result-shortcuts{gap:8px}.regia-result-shortcuts>button{padding:14px 11px;gap:12px}.regia-result-shortcuts>button>span{font-size:11px;min-height:36px}.regia-result-shortcuts strong{font-size:33px}.regia-result-shortcuts small{font-size:11px}.regia-overview-health{flex-wrap:wrap;gap:13px}.regia-overview-health .button{width:100%;justify-content:center}.regia-hero h1{font-size:38px}.regia-hero-copy>p:not(.eyebrow){font-size:13px}.regia-team-agents{grid-template-columns:repeat(2,minmax(0,1fr));padding:18px 15px 0}.regia-agent:last-child{grid-column:auto}.regia-team-heading h2{font-size:29px}.regia-quick-filters{padding-inline:18px;gap:7px}.regia-quick-filters button{font-size:11px;min-height:44px;padding:9px 11px}.regia-clear-filters{min-height:44px}.regia-control{padding:20px 17px}.regia-controls .button{font-size:12px;min-height:44px}.regia-delivery{padding:22px 18px}.regia-delivery h2{font-size:23px}.regia-delivery-controls .check-label{font-size:13px}.regia-panel-details>summary{padding:17px;font-size:13px}.regia-details-copy{padding-inline:17px}.regia-panel-details>.regia-metrics,.regia-panel-details>.regia-today{margin:15px}.regia-team-history>summary{padding:17px 20px}.regia-pagination .button{min-height:44px;font-size:12px}.regia-filters .search-field input{font-size:16px}.regia-filters .filter select{font-size:14px;min-height:44px}}
@media(max-width:420px){.regia-result-shortcuts{grid-template-columns:1fr}.regia-result-shortcuts>button{display:grid;grid-template-columns:1fr auto;gap:5px 14px;padding:14px 15px}.regia-result-shortcuts>button>span{min-height:0;font-size:12px}.regia-result-shortcuts strong{grid-column:2;grid-row:1/3;font-size:34px;align-self:center}.regia-result-shortcuts small{font-size:11px}.regia-team-agents{grid-template-columns:1fr}.regia-agent-profile{display:flex;text-align:left;align-items:center;gap:17px}.regia-agent-portrait{width:112px;height:112px;flex:0 0 112px;margin:0}.regia-agent-state{align-self:flex-start;margin-top:16px}.regia-agent-identity p{font-size:12px}.regia-agent-work{min-height:0}.regia-overview h2{font-size:23px}}

/* EVOS THEME TOKENS: shared by landing, account, CRM and correspondence. */
:root,:root[data-theme="dark"]{
 color-scheme:dark;--page:#090909;--surface:#141414;--surface-raised:#211e1b;
 --text:#faf7f2;--text-muted:#bdb7b0;--border:#403a35;--border-strong:#82776d;
 --accent:#ff6a00;--accent-hover:#ff8b38;--on-accent:#090909;--accent-text:#ff9d57;--accent-soft:#352114;
 --focus:#ff9d57;--shadow:0 10px 30px #00000024;
 --success:#9bdbb0;--success-bg:#163321;--success-border:#49795a;
 --warning:#ffc17e;--warning-bg:#382812;--warning-border:#92703d;
 --error:#ffb4a8;--error-bg:#3c201e;--error-border:#a06157;
 --info:#ccbeef;--info-bg:#2a2439;--info-border:#776a96;
 background:var(--page);color:var(--text);
}
:root[data-theme="light"]{
 color-scheme:light;--page:#f5f2ed;--surface:#ffffff;--surface-raised:#eee9e2;
 --text:#171513;--text-muted:#655d56;--border:#ccc3b9;--border-strong:#8b7d70;
 --accent:#ff6a00;--accent-hover:#ed5f00;--on-accent:#090909;--accent-text:#9c3900;--accent-soft:#fff0e3;
 --focus:#a64000;--shadow:0 10px 30px #34210e0c;
 --success:#245d36;--success-bg:#e5f3e9;--success-border:#73947a;
 --warning:#704400;--warning-bg:#fff0d7;--warning-border:#b18747;
 --error:#97372d;--error-bg:#ffebe6;--error-border:#b97568;
 --info:#584077;--info-bg:#f0eafa;--info-border:#9983b5;
}
body{background:var(--page);color:var(--text);accent-color:var(--accent)}
::selection{background:var(--accent);color:var(--on-accent)}
:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
/* Black brand surfaces stay deliberate in both themes; content follows the theme. */
.public-header,.hero,.sidebar,.auth-art,.closing-section,.public-footer{
 --text:#faf7f2;--text-muted:#bdb7b0;--surface:#141414;--surface-raised:#211e1b;
 --border:#403a35;--border-strong:#82776d;--accent-text:#ff9d57;--accent-soft:#352114;--focus:#ff9d57;--ink:#faf7f2;--muted:#bdb7b0;
 background:#090909;color:var(--text);color-scheme:dark;
}
.public-header{border-bottom-color:var(--border);height:96px}
.public-header nav{gap:25px}.brand-dot{color:var(--accent)}
.brand-mark,.button.lime,.button.dark,.button.primary,.regia-controls .primary,.nav-item.active,.feature-ribbon{
 background:var(--accent);border-color:var(--accent);color:var(--on-accent);
}
.brand-mark{box-shadow:0 0 0 1px #ff8b3840}
.button{border-radius:10px;font-weight:650;min-height:44px}
.button.lime:hover,.button.dark:hover,.button.primary:hover,.regia-controls .primary:hover{background:var(--accent-hover);color:var(--on-accent);box-shadow:0 6px 22px #ff6a001f}
.button.secondary,.button.public-login{background:var(--surface);border-color:var(--border-strong);color:var(--text)}
.button.secondary:hover,.button.public-login:hover{background:var(--surface-raised);border-color:var(--accent);color:var(--text)}
.button.quiet{color:var(--text-muted)}.button.danger{background:var(--error-bg);border-color:var(--error-border);color:var(--error)}
.nav-item.active .icon,.nav-item.active b,.feature-ribbon i{color:var(--on-accent)}
.nav-item.active b{background:#09090915}.nav-item.active{font-weight:700}
.nav-item:hover:not(.active){background:var(--surface-raised)}
.nav-item b,.regia-nav b{background:var(--surface-raised);color:var(--text)}
.regia-nav{background:var(--surface);border-color:var(--border-strong)}
.feature-ribbon{font-weight:650;min-height:66px}.feature-ribbon span{font-weight:650}
.hero{background:radial-gradient(ellipse at 83% 45%,#3b1d0a55,transparent 48%),#090909}
.hero h1{font-weight:550}.hero h1 em,.closing-section em,.auth-art-word em{color:var(--accent)}
.hero-kicker>span,.hero-scroll span,.route-flow{color:var(--accent)}
.floating-card{border:1px solid var(--border-strong);background:var(--surface);color:var(--text);box-shadow:0 20px 50px #00000050}
.card-reminder{background:var(--accent-soft);border-color:#9e5a2d}.card-reminder small{color:#ffd2ae}
.mini-avatar,.reminder-icon{background:var(--accent);color:var(--on-accent)}.card-spark{background:var(--accent)}
.space-art,.regia-orbit{background:radial-gradient(ellipse,#ff6a001a,transparent 66%)}
.space-center{background:#090909}.space-center .icon{color:var(--accent)}
.how-section{background:var(--page)}.space-section{background:var(--surface)}
.step-list article>span,.section-kicker,.page-heading .eyebrow,.regia-hero .eyebrow,.regia-overview .eyebrow{color:var(--accent-text)}
.feature-checks li:before{color:var(--accent-text)}
.sidebar{border-right:1px solid var(--border);box-shadow:8px 0 32px #0000000a}
.sidebar .brand{padding-bottom:34px}.area-card{background:var(--surface);border-color:var(--border)}
.avatar{background:var(--accent);color:var(--on-accent)}
.topbar{gap:18px;min-height:80px;height:auto;padding-block:14px}.topbar-actions{display:flex;align-items:center;gap:24px;flex-shrink:0}
.breadcrumb strong{color:var(--text)}.connection{color:var(--text-muted)}.connection>span{background:var(--success)}
.connection.error{color:var(--error)}.connection.error>span{background:var(--error)}.connection[data-state="saving"]>span{background:var(--accent)}
.page-heading h1,.regia-hero h1{font-weight:580;letter-spacing:-1.7px}
.page-heading p,.workspace-heading p{font-size:13px;line-height:1.75}
.stat,.workspace,.regia-workspace,.regia-card,.regia-overview,.regia-mail,.regia-boss,.regia-panel-details,dialog{background:var(--surface);border-color:var(--border);color:var(--text)}
.stat,.workspace,.regia-workspace,.regia-overview,.regia-mail,.regia-boss{box-shadow:var(--shadow)}
.stat-featured{background:var(--accent-soft);border-color:var(--accent)}
.stat-featured .stat-icon{background:var(--accent);color:var(--on-accent)}
.stat-value>strong{font-weight:600}.stat-label{color:var(--text-muted)}
.stat-icon{background:var(--surface-raised);color:var(--accent-text)}
.stat-icon.blue{background:var(--info-bg);color:var(--info)}.stat-icon.amber{background:var(--warning-bg);color:var(--warning)}
.focus-panel,.regia-delivery,.regia-today{background:var(--accent-soft);border-color:var(--border)}
.focus-action,.regia-result-shortcuts>button{background:var(--surface);color:var(--text);border-color:var(--border)}
.focus-action:hover,.regia-result-shortcuts>button:hover{border-color:var(--accent);background:var(--accent-soft)}
.regia-result-shortcuts>button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 3px 0 var(--accent)}
.regia-quick-filters button[aria-pressed="true"],.auth-tabs button.active{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.workspace-heading h2,.regia-name,.activity-name,.regia-boss-summary{color:var(--text)}
.workspace-heading h2>span{background:var(--accent-soft);color:var(--accent-text)}
.search-field,input:not([type="checkbox"]):not([type="radio"]),select,textarea{border-color:var(--border-strong)}
input,select,textarea{color-scheme:inherit}
.search-field:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.search-field input{outline:none}.search-field input,.search-field input::placeholder{color:var(--text-muted)}
.auth-content input,.utility-dialog form input:not([type="checkbox"]),.form-grid input,.form-grid select,.form-grid textarea,.sources-box textarea,.regia-detail-content input:not([type="checkbox"]),.regia-detail-content textarea,.regia-detail-content select,.filter select,.list-toolbar select,.pagination select,.stage-select{background:var(--surface);color:var(--text);border-color:var(--border-strong)}
input::placeholder,textarea::placeholder{color:var(--text-muted);opacity:1}
input[type="checkbox"],input[type="radio"]{accent-color:var(--accent)}
.switch-label input:checked+.switch{background:var(--accent)}.switch:after{background:#090909}
.switch-label input:focus-visible+.switch{outline-color:var(--focus)}
.list-toolbar,thead th,.city-group th,.drawer-header,.drawer-footer,.regia-detail-header{background:var(--surface-raised);color:var(--text-muted)}
.table-wrap,tbody tr,.pagination{background:var(--surface)}
tbody tr:hover{background:var(--accent-soft)}td{color:var(--text)}
.activity-name:hover,.regia-open:hover,.regia-signal h3 a,.regia-source-heading a,.regia-evidence a{color:var(--accent-text)}
.activity-avatar{background:var(--accent-soft);color:var(--accent-text)}
.activity-avatar[data-tone]{background:var(--surface-raised);color:var(--text)}
.contact-button.yes,.contact-button.yes .check-square{background:var(--success-bg);color:var(--success);border-color:var(--success-border)}
.regia-team,.regia-control{background:var(--surface);border:1px solid var(--border);color:var(--text);box-shadow:var(--shadow)}
.regia-team:before{border-color:var(--border);box-shadow:none}
.regia-team-heading h2 em,.regia-boss-heading h2 em,.regia-hero h1 em{color:var(--accent-text)}
.regia-team-brief,.regia-team-bottom,.regia-team-history>summary{background:var(--surface-raised)}
.regia-agent{background:var(--page);border-color:var(--border)}
.regia-agent[data-status="running"]{background:var(--accent-soft);border-color:var(--accent)}
.regia-agent-avatar{background:var(--surface-raised);border-color:var(--border);border-radius:14px}
.regia-agent-state{background:var(--surface-raised);color:var(--text-muted);border-color:var(--border)}
.regia-agent[data-status="running"] .regia-agent-state{color:var(--accent-text);background:var(--accent-soft);border-color:var(--accent)}
.regia-agent[data-status="completed"] .regia-agent-state{color:var(--success);background:var(--success-bg);border-color:var(--success-border)}
.regia-agent[data-status="blocked"] .regia-agent-state,.regia-agent[data-status="error"] .regia-agent-state{color:var(--error);background:var(--error-bg);border-color:var(--error-border)}
.regia-agent-indicator{border-color:var(--page);background:var(--text-muted)}
.regia-agent[data-status="running"] .regia-agent-indicator{background:var(--accent)}
.regia-agent[data-status="completed"] .regia-agent-indicator{background:var(--success)}
.regia-agent[data-status="blocked"] .regia-agent-indicator,.regia-agent[data-status="error"] .regia-agent-indicator{background:var(--error)}
.regia-progress progress,.regia-agent-work progress,.regia-progress progress::-webkit-progress-bar,.regia-agent-work progress::-webkit-progress-bar{background:var(--surface-raised)}
.regia-progress progress::-webkit-progress-value,.regia-agent-work progress::-webkit-progress-value{background:var(--accent-text)}
.regia-progress progress::-moz-progress-bar,.regia-agent-work progress::-moz-progress-bar{background:var(--accent-text)}
.regia-run-state,.regia-team-plan-date,.regia-plan-open{color:var(--accent-text)}
.regia-mail-conversation[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.regia-mail-conversation:hover{border-color:var(--accent)}
.regia-mail-draft{background:var(--accent-soft);border-color:var(--border)}
.regia-mail-summary span,.regia-mail-badge{background:var(--surface-raised);color:var(--text-muted);border-color:var(--border)}
.regia-mail-badge[data-state="decision"],.regia-mail-badge[data-state="uncertain"]{background:var(--warning-bg);color:var(--warning);border-color:var(--warning-border)}
.regia-mail-badge[data-state="stop"]{background:var(--error-bg);color:var(--error);border-color:var(--error-border)}
.regia-mail-badge[data-state="sent"],.regia-mail-badge[data-state="received"]{background:var(--success-bg);color:var(--success);border-color:var(--success-border)}
.regia-panel-details>summary::marker{color:var(--accent-text)}
dialog::backdrop,.regia-dialog::backdrop{background:#000000b3;backdrop-filter:blur(5px)}
.auth-art{background:radial-gradient(ellipse at 40% 30%,#5c290d70,transparent 70%),#090909}
.auth-content{background:var(--surface)}.auth-theme{display:flex;justify-content:flex-end;margin:0 24px 20px 0}
.auth-content .theme-picker{margin:0}.auth-content .theme-picker select{min-height:44px;padding:7px 28px 7px 10px;width:auto;margin:0}
.theme-picker{display:inline-flex;align-items:center;gap:9px;min-width:0;color:var(--text-muted);font-size:11px;font-weight:600;white-space:nowrap}
.theme-picker select{min-height:44px;max-width:120px;min-width:92px;padding:8px 28px 8px 12px;border:1px solid var(--border-strong);border-radius:9px;background:var(--surface);color:var(--text);font:inherit;font-size:12px;cursor:pointer}
.theme-picker select:hover{border-color:var(--accent)}.theme-picker select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.toast{background:var(--surface-raised);color:var(--text);border-color:var(--border-strong)}.toast.error{background:var(--error-bg);color:var(--error);border-color:var(--error-border)}
@media(max-width:1000px){.public-header nav{gap:15px}.topbar-actions{gap:13px}.theme-picker>span{font-size:10px}}
@media(max-width:700px){.public-header{height:auto;min-height:88px;padding:15px 20px;gap:15px;flex-wrap:wrap}.public-header nav{gap:10px}.public-header .brand{font-size:24px}.public-login{min-width:78px;min-height:44px}.public-header .theme-picker>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.theme-picker select{min-width:84px;max-width:100px}.topbar{flex-wrap:wrap;gap:10px;padding-block:13px}.topbar-actions{margin-left:auto;gap:12px}.breadcrumb{font-size:10px}.auth-theme{margin-right:24px}.page-heading p{font-size:12px}.feature-ribbon{min-height:60px}}
@media(max-width:420px){.public-header{padding:14px 16px;gap:12px}.public-header .brand{font-size:23px}.public-header nav{width:100%;justify-content:space-between}.public-header .theme-picker>span{position:static;width:auto;height:auto;clip:auto;font-size:11px}.topbar-actions{width:100%;justify-content:space-between}.theme-picker{gap:7px}.auth-content{padding-top:30px}.auth-theme{margin-right:25px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button,.theme-picker select{transition:none}}
.regia-data-freshness{margin:0 0 18px;padding:13px 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text-muted);font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.regia-data-freshness:empty{display:none}.regia-data-freshness[data-state="stale"]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning)}
.regia-inline-help{font-size:12px;line-height:1.8;color:var(--text-muted);margin-top:12px;overflow-wrap:anywhere}.regia-inline-help:empty{display:none}.regia-control>.regia-inline-help{grid-column:1/-1;margin:0}.regia-inline-help a{color:var(--accent-text)}
.regia-prospecting{margin:0 0 22px;padding:25px;border:1px solid var(--border);border-radius:17px;background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.regia-prospecting h2{font-size:25px;font-weight:550;letter-spacing:-.5px;margin:7px 0 12px}.regia-prospecting header>p:last-child{font-size:13px;line-height:1.8;color:var(--text-muted);max-width:85ch}.regia-prospecting-status{font-size:13px;line-height:1.8;font-weight:600;margin-top:16px}.regia-prospecting[data-state="stale"] .regia-prospecting-status,.regia-prospecting[data-state="paused"] .regia-prospecting-status{color:var(--warning)}
.regia-prospecting-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.regia-prospecting-counts>div{padding:16px;background:var(--surface-raised);border:1px solid var(--border);border-radius:10px;min-width:0}.regia-prospecting-counts dt{font-size:12px;color:var(--text-muted);line-height:1.5}.regia-prospecting-counts dd{font-size:32px;line-height:1.4;font-weight:600;margin:5px 0;color:var(--text)}.regia-prospecting-counts small{display:block;font-size:11px;line-height:1.7;color:var(--text-muted)}
.regia-prospecting details{margin-top:18px;border-top:1px solid var(--border)}.regia-prospecting summary{min-height:44px;padding:14px 0;font-size:13px;cursor:pointer;line-height:1.7}.regia-prospecting summary::marker{color:var(--accent-text)}.regia-prospecting-sources{list-style:none;padding:0;margin:0}.regia-prospecting-sources>li{padding:14px 0;border-top:1px solid var(--border);overflow-wrap:anywhere}.regia-prospecting-source-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:13px;line-height:1.6}.regia-prospecting-source-heading>span,.regia-prospecting-sources p{font-size:11px;line-height:1.8;color:var(--text-muted)}.regia-prospecting-sources p{margin-top:5px}
#regia-mail-gmail{margin-top:14px;min-height:44px;white-space:normal}.regia-controls{flex-wrap:wrap}.regia-controls .button{white-space:normal}
@media(max-width:760px){.regia-prospecting{padding:20px 17px;border-radius:14px}.regia-prospecting h2{font-size:23px}.regia-prospecting-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.regia-prospecting-counts>div{padding:13px}.regia-prospecting-counts dd{font-size:28px}.regia-controls{width:100%}.regia-controls .button{flex:1;min-width:130px}.regia-data-freshness{font-size:11px}}
@media(max-width:380px){.regia-prospecting-counts{grid-template-columns:1fr}}
.regia-writer{margin-top:24px;padding:26px;border:1px solid var(--border);border-radius:18px;background:var(--surface)}
.regia-writer header{max-width:850px}.regia-writer .eyebrow{color:var(--accent-text)}.regia-writer h2{font-size:28px;letter-spacing:-.8px;line-height:1.2;margin:7px 0 12px}.regia-writer header>p:last-child{color:var(--text-muted);font-size:13px;line-height:1.8}.regia-writer-status{margin-top:18px;font-size:14px;font-weight:650;line-height:1.7}.regia-writer[data-state="stale"] .regia-writer-status,.regia-writer[data-state="error"] .regia-writer-status{color:var(--error)}
.regia-writer-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.regia-writer-counts>div{padding:16px;background:var(--surface-raised);border:1px solid var(--border);border-radius:12px}.regia-writer-counts dt{font-size:11px;line-height:1.5;color:var(--text-muted)}.regia-writer-counts dd{margin:8px 0 0;font-size:32px;line-height:1.2;font-weight:650;letter-spacing:-1px}.regia-writer .regia-inline-help{margin-top:8px}
.regia-writer details{margin-top:18px;border-top:1px solid var(--border)}.regia-writer summary{min-height:44px;padding:14px 0;font-size:13px;line-height:1.7;cursor:pointer}.regia-writer summary::marker{color:var(--accent-text)}.regia-writer-history{list-style:none;padding:0;margin:0}.regia-writer-history>li{padding:14px 0;border-top:1px solid var(--border);overflow-wrap:anywhere}.regia-writer-entry-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:13px;line-height:1.6}.regia-writer-entry-heading>span,.regia-writer-history p{font-size:11px;line-height:1.8;color:var(--text-muted)}.regia-writer-history p{margin-top:5px}.regia-writer-history a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:var(--accent-text);text-underline-offset:3px}#regia-draft-origin{line-height:1.8}
@media(max-width:760px){.regia-writer{padding:20px 17px;border-radius:14px}.regia-writer h2{font-size:23px}.regia-writer-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.regia-writer-counts>div{padding:13px}.regia-writer-counts dd{font-size:28px}}
@media(max-width:380px){.regia-writer-counts{grid-template-columns:1fr}}

/* Telefono: caratteri nativi, testo leggibile e controlli senza compressioni. */
.decorative-spark{width:1em;height:1em;vertical-align:middle;stroke-width:1.7}
@media(max-width:700px){
  .main,.regia,.regia-mail-layout>div,.regia-mail-layout>section,.regia-writer-counts>div{min-width:0}
  .page-heading h1,.regia-hero h1{letter-spacing:-.035em;line-height:1.15;overflow-wrap:anywhere}
  .regia-writer h2,.regia-prospecting h2,.regia-mail h2,.regia-overview h2,.regia-team-heading h2,.regia-boss-heading h2{letter-spacing:-.02em;line-height:1.25;overflow-wrap:anywhere}
  .page-heading .eyebrow,.regia-hero .eyebrow,.regia-team-heading .eyebrow,.regia-workspace .eyebrow,.regia-delivery .eyebrow,.regia-signals .eyebrow,.regia-today .eyebrow{font-size:11px;letter-spacing:.06em;line-height:1.6}
  .page-heading p,.workspace-heading p,.regia-hero-copy>p:not(.eyebrow),.regia-control p,.regia-writer header>p:last-child,.regia-prospecting header>p:last-child,.regia-mail-note,.regia-mail-empty,.regia-card-summary,.regia-overview-next,.regia-boss-summary,.regia-detail-content p{font-size:14px;line-height:1.75}
  .regia-mail-body{font-size:16px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
  .regia-mail-detail>p,.regia-mail-message-meta,.regia-mail-conversation small,.regia-mail-conversation p,.regia-mail-draft>p:not(.regia-mail-body),.regia-writer-history p,.regia-writer-entry-heading>span,.regia-prospecting-sources p,.regia-prospecting-source-heading>span,.regia-inline-help,.regia-data-freshness{font-size:13px;line-height:1.75}
  .regia-mail-conversation strong,.regia-mail-messages strong,.regia-mail-draft>strong,.regia-writer-entry-heading,.regia-prospecting-source-heading{font-size:15px;line-height:1.6}
  .regia-writer-counts dt,.regia-prospecting-counts dt,.regia-prospecting-counts small,.regia-metrics small,.regia-card-footer small,.regia-card-badges>*,.regia-mail-summary span,.regia-mail-badge,.regia-delivery-controls dt,.regia-footnote,.regia-evidence small{font-size:12px;line-height:1.6}
  .regia-evidence strong,.regia-evidence p,.regia-evidence a,.regia-detail-content .form-note,.regia-detail-content label,.form-grid label,.sources-box label{font-size:14px;line-height:1.65}
  .regia-agent-task,.regia-agent-result>p,.regia-agent>footer p,.regia-team-heading p:not(.eyebrow),.regia-team-brief>p,.regia-team-note,.regia-team-journal strong,.regia-team-journal li p,.regia-boss-task-action,.regia-boss-task-reason,.regia-boss-results li p{font-size:14px;line-height:1.7}
  .regia-agent-identity p,.regia-agent>footer span,.regia-team-journal time,.regia-boss-task-meta,.regia-boss-results li span,.regia-boss-results li small{font-size:12px;line-height:1.65}
  .regia-team-shift{grid-template-columns:minmax(0,1fr);gap:7px}
  .regia-team-shift>strong,.regia-team-shift small{grid-column:auto;grid-row:auto}
  .regia-agent-profile{gap:12px}.regia-agent-portrait{width:72px;height:72px;flex:0 0 72px;aspect-ratio:1}
  .regia-progress>span,.regia-result-count{white-space:normal;overflow-wrap:anywhere}
  .regia-card-heading,.regia-card-footer,.regia-writer-entry-heading,.regia-prospecting-source-heading{min-width:0;flex-wrap:wrap}
  .regia-name{min-height:44px;font-size:16px;display:flex;align-items:center}
  .regia-mail-layout{grid-template-columns:minmax(0,1fr)}
  .regia-mail-detail{padding:14px}.regia-mail-draft{padding:13px;min-width:0}
  .regia-writer-history a,.regia-prospecting-sources a,.regia-evidence a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;font-size:14px;overflow-wrap:anywhere}
  .regia-detail-header h2{padding-right:38px;line-height:1.3}.regia-detail-header>p:not(.eyebrow){font-size:14px;line-height:1.65;overflow-wrap:anywhere}
  .regia-dialog>footer,.dialog-actions{flex-wrap:wrap}
  .regia-dialog>footer .button,.dialog-actions .button{flex:1 1 130px;min-width:0}
  .button,.dialog-actions .button,.workspace-tools .button,.page-heading .button,.drawer-footer .button,.regia-controls .button,.regia-mail-controls .button,.regia-pagination .button,.regia-dialog>footer .button,.regia-detail-content .button,.regia-bridge-dialog .dialog-actions .button,.regia-boss-controls .button,.regia-today li>.button,.regia-delivery-controls>.button{min-height:44px;font-size:14px;line-height:1.45;white-space:normal;overflow-wrap:break-word}
  .button.icon-only,.workspace-tools .icon-only,.icon-button,.dialog-close,.open-button,.logout,.pagination button{width:44px;min-width:44px;height:44px;min-height:44px;flex-shrink:0}
  .workspace-tools{flex-wrap:wrap}.workspace-tools .density-button{width:auto;min-width:44px;height:44px;flex-shrink:0}
  .regia-open,.regia-boss-open,.regia-plan-open,.nav-item,.auth-tabs button,.contact-button,.filter-toggle,.filter-chip,.menu-popover button,.recover-link{min-height:44px;font-size:14px;line-height:1.5}
  .regia-plan-open{min-width:44px}.nav-item b,.regia-nav b{font-size:10px;letter-spacing:0}
  .regia-quick-filters button,.regia-clear-filters{font-size:14px}
  .search-field input,.regia-filters .search-field input,.filter select,.regia-filters .filter select,.list-toolbar select,.pagination select,.stage-select,.theme-picker select{font-size:16px;min-height:44px}
  .filter,.regia-filters .filter,.regia-filters .search-field{min-width:0}.filter select,.regia-filters .filter select,.stage-select{min-width:0;max-width:100%;width:100%}
  .stage-select{max-width:220px}.theme-picker select{min-width:100px;max-width:112px}
  .filter>span,.list-toolbar,.list-toolbar>label,.pagination,.page-footer,.coverage-note small{font-size:12px;line-height:1.6}
  .list-toolbar>label,.pagination>label{flex-wrap:wrap;min-width:0}.pagination>#page-label{white-space:normal}
  .pagination select{padding:9px 24px 9px 10px}.pagination>div{margin-left:auto}
  .check-label,.utility-dialog form label.check-label,.regia-detail-content label.check-label{min-height:44px;font-size:14px;line-height:1.65;padding-block:6px}
  .check-label input{width:20px;height:20px;min-height:20px}
  .focus-action strong{font-size:14px;white-space:normal}.focus-action small{font-size:12px;line-height:1.65}
  .stat-label,.stat>small,.stat-value-detail{font-size:12px;line-height:1.5}
  .menu-popover{width:min(280px,calc(100vw - 54px));max-width:calc(100vw - 54px)}.menu-popover small{font-size:12px}
  .utility-dialog>p:not(.eyebrow),.utility-dialog section>p,.utility-dialog form>p,.utility-dialog details>p,.auth-content>p:not(.eyebrow),.auth-content .form-note,.empty-state p{font-size:14px;line-height:1.75}
  .auth-theme{margin-right:38px}
  .auth-content label,.utility-dialog form label{font-size:14px}.auth-content label small,.form-note,.toast{font-size:13px;line-height:1.7}
  .page-footer,.drawer-footer{overflow-wrap:anywhere}.page-footer{flex-wrap:wrap}
}

/* Fasi della rubrica: conteggi correnti separati dalle bozze e dallo storico. */
.regia-flow{margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}
.regia-flow h3{font-size:21px;line-height:1.3;letter-spacing:-.3px}.regia-flow header p{font-size:13px;line-height:1.7;margin-top:8px;color:var(--text-muted);overflow-wrap:anywhere}
.regia-flow[data-state="stale"] header p,.regia-flow[data-state="unknown"] header p{color:var(--warning)}
.regia-flow-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}
.regia-flow-stage,.regia-flow-reason{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:52px;padding:12px;text-align:left;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:13px;line-height:1.5}
.regia-flow-stage>span,.regia-flow-reason>span{min-width:0;overflow-wrap:anywhere}.regia-flow-stage strong{font-size:24px;line-height:1.25;font-variant-numeric:tabular-nums;font-weight:600;flex-shrink:0}
.regia-flow-stage:hover:not(:disabled),.regia-flow-reason:hover:not(:disabled){border-color:var(--accent);background:var(--accent-soft)}.regia-flow-stage[aria-pressed="true"],.regia-flow-reason[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.regia-flow-stage:disabled,.regia-flow-reason:disabled{opacity:1;color:var(--text-muted);cursor:default}
.regia-flow-facets{margin-top:17px;padding-top:13px;border-top:1px solid var(--border)}.regia-flow-facets>p{font-size:12px;line-height:1.65;font-weight:600}.regia-flow-facets>p>span{font-weight:400;color:var(--text-muted)}
.regia-flow-facets dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0 0}.regia-flow-facets dl>div{min-width:0}.regia-flow-facets dt{font-size:12px;line-height:1.5;color:var(--text-muted);overflow-wrap:anywhere}.regia-flow-facets dd{font-size:23px;line-height:1.4;font-weight:600;margin:5px 0 0;font-variant-numeric:tabular-nums}
.regia-flow details{margin-top:15px;border-top:1px solid var(--border)}.regia-flow summary{min-height:44px;padding:13px 0;cursor:pointer;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.regia-flow details>p,.regia-flow-history{font-size:12px;line-height:1.75;color:var(--text-muted);overflow-wrap:anywhere}.regia-flow ul{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:7px}.regia-flow-reason{width:100%;min-height:44px}.regia-flow-reason strong{font-variant-numeric:tabular-nums;flex-shrink:0}.regia-flow-history{margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}
.regia-flow-active{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:15px 26px 0;padding:12px 14px;border:1px solid var(--border);border-radius:9px;background:var(--accent-soft);font-size:13px;line-height:1.6}.regia-flow-active>span{min-width:0;overflow-wrap:anywhere}.regia-flow-active .regia-clear-filters{white-space:normal;min-height:44px}
@media(max-width:760px){.regia-flow-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.regia-flow-stage{padding:10px;gap:8px;min-height:60px}.regia-flow h3{font-size:20px}.regia-flow-stage strong{font-size:22px}.regia-flow-active{margin-inline:15px}.regia-flow header p,.regia-flow details>p,.regia-flow-history{font-size:13px}.regia-flow-reason{font-size:14px}}
