/* Shared product palette. Printed records retain their own ink-on-paper styles. */
@media screen {
html:has(#roras-app),body:has(#roras-app){background:#252629;}
#roras-app{font-family:Inter,Arial,sans-serif;--page:transparent;--surface:#303236;--soft:#3b3e43;--ink:#f2f2ee;--heading:#f2f2ee;--muted:#bcc0c7;--line:#575b62;--brand:#e5cc72;--brand-deep:#252629;--on-brand:#252629;--mint:#c0dbc9;--blue:#e5cc72;--blue-bg:#494535;--accent:var(--brand);--green:#70b58d;--green-bg:#294438;--red:#ff9aaa;--red-bg:#542c36;--amber:#e5cc72;--amber-bg:#48422e;--radius-control:10px;--radius-panel:16px;color:var(--ink);}
#roras-app .shell,#roras-app .main,#roras-app .content{background:transparent;}
#roras-app .sidebar{background:#252629f5;border-color:#575b62;}
#roras-app .brand.product-brand{background:transparent;color:#f2f2ee;}
#roras-app .product-wordmark{gap:10px;}
#roras-app .product-wordmark img,#roras-app .sidebar .product-wordmark img{width:42px;height:42px;max-width:none;flex:none;object-fit:contain;filter:none;mix-blend-mode:normal;border-radius:10px;}
#roras-app .product-wordmark strong,#roras-app .sidebar .product-wordmark strong{font-family:"Inter","Arial Black",sans-serif;font-weight:900;font-size:1.1rem;letter-spacing:-.055em;line-height:1.2;text-transform:lowercase;white-space:nowrap;}
#roras-app .company-label,#roras-app .sidebar-label{color:#bcc0c7;}
#roras-app .company-label::before{background:#e5cc72;}
#roras-app :is(.panel,.metric,.dashboard-tile,.overview-group,.project-detail,.day-job,.calendar-toolbar,.department-bar,.login-card){background:var(--surface);color:var(--ink);border-color:var(--line);}
#roras-app :is(input,textarea,select){background:#252629;color:#f2f2ee;border-color:#73777d;}
#roras-app :is(input,textarea)::placeholder{color:#a7abb2;}
#roras-app .btn{color:var(--ink);background:var(--soft);border-color:var(--line);}
#roras-app .btn.primary{background:#e5cc72;border-color:#e5cc72;color:#252629;}
#roras-app .btn.primary:hover:not(:disabled){background:#f1dc94;border-color:#f1dc94;}
#roras-app .btn.danger{background:#ac334b;color:#fff;border-color:#d97989;}
#roras-app .calendar-date[aria-pressed="true"],#roras-app .hour-day-picker .primary{background:#e9b8cc;border-color:#e9b8cc;color:#252629;}
#roras-app .calendar-date[aria-pressed="true"]>strong{color:#252629;}
#roras-app .action-progress-track>span{background:#e5cc72;}
#roras-app .nav button{color:#f2f2ee;}
#roras-app .nav button.active,#roras-app .nav button.active:hover{background:#414348;color:#f2f2ee;box-shadow:none;}
#roras-app .nav button:hover:not(.active){background:#ffffff12;color:#fff;}
#roras-app .nav button .nav-symbol{background:transparent;border-color:#666970;}
#roras-app .nav button[data-view="staffing"] .nav-symbol{background:transparent;color:#e9b8cc;border-color:#e9b8cc;border-width:2px;}
#roras-app .nav button[data-view="staffing"] .nav-icon{width:27px;height:27px;}
#roras-app .nav button[data-view="projects"] .nav-symbol{color:#f2f2ee;}
#roras-app .nav button[data-view="notes"] .nav-symbol{color:#e5cc72;}
#roras-app .nav-quality.is-clear .nav-symbol{background:#70b58d;color:#172c20;border-color:#70b58d;}
#roras-app .nav-quality.needs-review .nav-symbol{background:#b83450;color:#fff;border-color:#b83450;}
#roras-app .nav-count{background:#b83450;color:#fff;}
#roras-app .mobile-more>summary,#roras-app .mobile-more-items{background:#303236;color:#f2f2ee;border-color:#666970;}
#roras-app .mobile-more-items button{color:#f2f2ee;}
#roras-app .dashboard-tile.is-calendar .dashboard-tile-icon{background:#e9b8cc;color:#252629;}
#roras-app .dashboard-tile.is-quality.is-ok .dashboard-tile-icon,#roras-app .is-quality.is-ok .dashboard-quality-mark{background:#70b58d;color:#172c20;}
#roras-app .dashboard-tile.is-quality.is-alert .dashboard-tile-icon,#roras-app .is-quality.is-alert .dashboard-quality-mark{background:#b83450;color:white;}
#roras-app .dashboard-tile small{color:#bcc0c7;}
#roras-app .dashboard-hub{margin-bottom:24px;}
#roras-app .overview-group{border:1px solid var(--line);border-radius:16px;margin:20px 0;overflow:hidden;}
#roras-app .overview-group>summary{display:flex;align-items:center;gap:12px;padding:22px;cursor:pointer;font-size:1.1rem;font-weight:700;list-style:none;}
#roras-app .overview-group>summary::after{content:'+';margin-left:auto;color:#e5cc72;font-size:1.5rem;}
#roras-app .overview-group[open]>summary::after{content:'−';}
#roras-app .overview-group>summary small{font-size:.8rem;font-weight:400;color:#bcc0c7;}
#roras-app .overview-group-body{padding:0 20px 20px;}
#roras-app .department-bar{display:flex;gap:8px;padding:10px;overflow:auto;border:1px solid var(--line);border-radius:14px;margin:0 0 18px;}
#roras-app .department-option{display:flex;flex:none;gap:2px;}
#roras-app .department-bar [aria-pressed=true]{background:#f2f2ee;color:#252629;border-color:#f2f2ee;}
#roras-app .department-bar button{white-space:nowrap;touch-action:pan-x;min-height:44px;}
#roras-app .calendar-toolbar{padding:12px;border:1px solid var(--line);border-radius:16px;gap:12px;}
#roras-app .calendar-zoom{display:flex;gap:6px;align-items:center;flex-wrap:wrap;}
#roras-app .staffing-view-choice [data-mode=week]{border-color:#e9b8cc;color:#e9b8cc;background:transparent;}
#roras-app .staffing-view-choice [data-mode=week][aria-pressed=true]{background:#e9b8cc;color:#252629;}
#roras-app .staffing-view-choice [data-mode=day]{border-color:#70b58d;color:#a4d3b6;background:transparent;}
#roras-app .staffing-view-choice [data-mode=day][aria-pressed=true]{background:#70b58d;color:#172c20;}
#roras-app .screen-reload-button{flex-basis:100%;min-height:44px;border-color:#e5cc72;}
#roras-app .quick-note{min-height:64px;padding:16px 28px;font-size:1.1rem;font-weight:750;background:#70b58d!important;border-color:#70b58d!important;color:#172c20!important;touch-action:pan-y;user-select:none;-webkit-user-select:none;}
#roras-app .quick-note.is-recording{background:#b83450!important;color:#fff!important;box-shadow:0 0 0 4px #e9b8cc55;}
#roras-app .quick-note-status:empty{display:none;}
#roras-app .note-suggestion{background:var(--soft);color:var(--ink);border-left-color:#e9b8cc;border-radius:8px;}
#roras-app .note-suggestion[hidden]{display:none;}
#roras-app .note-timing{background:var(--surface);color:var(--ink);border-color:var(--line);}
#roras-app .note-timing legend,#roras-app .note-details summary{color:#e9b8cc;}
#roras-app .note-mic.is-recording{color:#fff;background:#ac334b;border-color:#ff9aaa;}
#roras-app #note-voice-status{color:var(--ink);min-height:1.6em;}
#roras-app .hour-row{grid-template-columns:170px minmax(calc(1440px * 1),1fr);min-width:calc(170px + 1440px * 1);}
#roras-app .hour-job{height:52px;min-height:34px;}
#roras-app .hour-job-body{font-size:max(12px,calc(14px * 1));}
#roras-app .hour-job-body small{font-size:max(11px,calc(12px * 1));}
#roras-app .hour-person{background:#303236;font-size:max(12px,calc(14px * 1));}
#roras-app .hour-slot{touch-action:pan-x pan-y;}
#roras-app .calendar-editing-notice{color:#e5cc72;}
#roras-app .board td{padding:calc(8px * 1);}
#roras-app .board .job{font-size:max(12px,calc(14px * 1));}
#roras-app .job[class*=project-color],#roras-app .day-job[class*=project-color]{color:#252629;background:var(--project-pastel,#e9b8cc);border-color:var(--project-pastel,#e9b8cc);}
#roras-app .job[class*=project-color] :is(strong,small,button),#roras-app .day-job[class*=project-color] :is(h3,p,.muted){color:#252629;}
#roras-app .day-job[class*=project-color] .btn{background:#ffffff80;color:#252629;border-color:#25262955;}
#roras-app .project-color-0{--project-pastel:#e9b8cc;}
#roras-app .project-color-1{--project-pastel:#c8c3df;}
#roras-app .project-color-2{--project-pastel:#c3d3de;}
#roras-app .project-color-3{--project-pastel:#e3d39b;}
#roras-app .project-color-4{--project-pastel:#d5b9c4;}
#roras-app .project-color-5{--project-pastel:#bdcbbd;}
#roras-app .project-color-6{--project-pastel:#edc7af;}
#roras-app .project-color-7{--project-pastel:#ccc8bf;}
#roras-app .project-color-8{--project-pastel:#d4c0de;}
#roras-app .project-color-9{--project-pastel:#b7d0cd;}
#roras-app .project-color-10{--project-pastel:#dec6ad;}
#roras-app .project-color-11{--project-pastel:#d8ccd0;}
#roras-app .badge.green{background:#70b58d;color:#172c20;}
#roras-app .badge.red{background:#b83450;color:#fff;}
#roras-app .badge.amber{background:#e5cc72;color:#252629;}
#roras-app .quote-total{font-size:clamp(2rem,6vw,3rem);line-height:1.2;letter-spacing:-.035em;margin:4px 0;}
#roras-app .quote-total-label{color:#bcc0c7;}
#roras-app .login-card{background:var(--surface);border-color:var(--line);}
#roras-app .tv-screen{--page:#252629;--surface:#303236;--soft:#3b3e43;--ink:#f2f2ee;--heading:#f2f2ee;--muted:#bcc0c7;--line:#575b62;--brand:#e5cc72;}
#roras-app .tv-table thead th{background:#252629;}
#roras-app .tv-head .product-brand{color:#f2f2ee;}
}
@media screen and (max-width:760px){
#roras-app .nav-shell{background:#252629f5;}
#roras-app .nav{background:transparent;}
#roras-app .sidebar .product-wordmark img{width:36px;height:36px;}
#roras-app .overview-group>summary{padding:18px;font-size:1rem;flex-wrap:wrap;}
#roras-app .overview-group-body{padding:0 12px 12px;}
#roras-app .hour-row{grid-template-columns:125px minmax(calc(1440px * 1),1fr);min-width:calc(125px + 1440px * 1);}
}
.verkfirma-start{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:#252629;color:#f2f2ee;isolation:isolate;}
.verkfirma-start-card{width:min(80vw,360px);display:flex;align-items:center;flex-direction:column;gap:28px;padding:48px 24px;background:#252629e8;border-radius:32px;}
.verkfirma-start-logo{width:128px;height:128px;}
.verkfirma-start-v{stroke:#252629;transition:stroke .15s;}
.verkfirma-start[data-ready] .verkfirma-start-v{stroke:#16b84e;}
.verkfirma-start strong{font-family:Inter,Arial,sans-serif;font-size:2.4rem;letter-spacing:-.06em;font-weight:900;}
.verkfirma-start-track{height:7px;width:100%;overflow:hidden;background:#55565a;border-radius:8px;}
.verkfirma-start-track span{display:block;height:100%;background:#e5cc72;width:var(--progress,8%);}
.verkfirma-start[hidden]{display:none;}
@media (prefers-reduced-motion:reduce){.verkfirma-start-v,#roras-app .dashboard-tile{transition:none;}}
@media print{#roras-app .product-wordmark img{filter:none;mix-blend-mode:normal;}.verkfirma-start{display:none;}}

.quick-note-cancel{display:none!important;} .tab-actions:has(.quick-note.is-recording) .quick-note-cancel{display:inline-flex!important;}

@media screen {
#roras-app .day-toolbar{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;}
#roras-app .nav button:not(.nav-quality) .nav-symbol{background:transparent;}
#roras-app .nav-quality.is-unknown .nav-symbol{background:#42454b;color:#bcc0c7;border-color:#666970;}
#roras-app .dashboard-tile[data-view="projects"] .dashboard-tile-icon{color:#f2f2ee;background:#42454b;}
#roras-app .desktop-more{padding:12px 8px;color:#f2f2ee;}
#roras-app .desktop-more summary{cursor:pointer;}
#roras-app .desktop-more .btn{display:flex;margin-top:8px;width:100%;}
}
@media screen and (max-width:760px){
#roras-app .dashboard-hub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#roras-app .dashboard-tile{min-height:92px;padding:14px;gap:10px;flex-wrap:wrap;}
#roras-app .dashboard-tile.is-quality{grid-column:1/-1;}
#roras-app .dashboard-tile-arrow{display:none;}
#roras-app .dashboard-tile small{font-size:.75rem;}
#roras-app .department-bar{padding:8px;}
}

@media screen and (max-width:760px){
#roras-app .nav .nav-label>span:last-child{white-space:nowrap;font-size:11px;letter-spacing:-.035em;}
#roras-app .overview-group>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;}
#roras-app .overview-group>summary>small{grid-column:1;}
#roras-app .overview-group>summary::after{grid-column:2;grid-row:1 / span 3;}
}

/* Preserve accessible instructions without adding visual help copy. */
#roras-app .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
@media screen{
#roras-app .nav button[data-view="staffing"].active,#roras-app .nav button[data-view="staffing"].active:hover{background:#414348;color:#f2f2ee;box-shadow:inset 0 -3px #e9b8cc;}
#roras-app .toast{background:#303236;color:#f2f2ee;border:1px solid #73777d;}
}


/* October 7: calm surfaces, immediate controls and orientation-aware workspace. */
#roras-app .sidebar{background:#252629;isolation:isolate;}
#roras-app .sidebar .product-brand{flex:none;min-width:0;}
#roras-app .mobile-more>summary,#roras-app .mobile-more>summary.is-current{background:#e9b8cc!important;color:#252629!important;border:1px solid #e9b8cc!important;min-width:98px;justify-content:space-between;transition:background .16s,border-color .16s;}
#roras-app .mobile-more[open]>summary,#roras-app .mobile-more>summary:active{background:#70b58d!important;border-color:#70b58d!important;}
#roras-app .mobile-more-items{box-shadow:0 12px 30px #0006;}
#roras-app .overview-section{margin:0;}
#roras-app .overview-section>.overview-group-body>.actions{margin:0 0 14px;}
#roras-app .dashboard-tile.is-refresh{grid-column:1 / -1;border:2px solid #e9b8cc;background:linear-gradient(120deg,#513a47,#303236);min-height:100px;}
#roras-app .dashboard-tile.is-refresh .dashboard-tile-icon{background:#e9b8cc;color:#252629;font-size:2rem;}
#roras-app .dashboard-tile.is-refresh:active{border-color:#70b58d;background:#294438;}
#roras-app .quality-suggestion-banner{display:flex;align-items:center;gap:18px;width:100%;min-height:110px;padding:22px;margin:18px 0;text-align:left;border:2px solid;border-radius:18px;color:#f2f2ee;}
#roras-app .quality-suggestion-banner.needs-review{background:#4b3039;border-color:#ff9aaa;}
#roras-app .quality-suggestion-banner.is-clear{background:#294438;border-color:#70b58d;}
#roras-app .quality-suggestion-banner>span:first-child{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:12px;background:#ff9aaa;color:#542c36;font-size:1.6rem;font-weight:800;}
#roras-app .quality-suggestion-banner.is-clear>span:first-child{background:#70b58d;color:#172c20;}
#roras-app .quality-suggestion-banner>span:nth-child(2){flex:1;}
#roras-app .quality-suggestion-banner strong{display:block;font-size:1.25rem;}
#roras-app .quality-suggestion-banner small{display:block;margin-top:7px;color:inherit;font-size:.95rem;}
#roras-app .tab-actions:has(.quick-note){display:flex;width:100%;}
#roras-app .quick-note{min-height:96px;min-width:100%;padding:20px 28px;font-size:1.35rem;gap:12px;touch-action:none;-webkit-touch-callout:none;}
#roras-app .quick-note-plus{font-size:2.7rem;line-height:1;font-weight:400;}
#roras-app :is(.quick-note,.note-mic).is-floating{position:fixed;z-index:9000;min-width:0;margin:0;box-shadow:0 12px 38px #0007;will-change:transform;cursor:grabbing;}
#roras-app .hour-job{padding:0 22px;}
#roras-app .hour-job-body{touch-action:pan-x pan-y;cursor:pointer;padding-bottom:15px;}
#roras-app .hour-resize{display:block;width:22px;touch-action:none;background:#25262925;}
#roras-app .hour-resize::after{background:#252629;opacity:.7;width:3px;}
#roras-app .hour-move{position:absolute;left:50%;bottom:0;transform:translateX(-50%);height:22px;width:48px;min-height:0;padding:0;line-height:18px;background:#25262922;border:0;border-radius:5px;cursor:grab;touch-action:none;color:#252629;}
#roras-app .hour-move:focus-visible{outline:3px solid #252629;outline-offset:2px;}
#roras-app .staffing-view-choice [data-mode=week][aria-pressed=true]:hover{background:#e9b8cc;color:#252629;}
#roras-app .staffing-view-choice [data-mode=day][aria-pressed=true]:hover{background:#70b58d;color:#172c20;}
#roras-app .toast.has-message{display:flex;align-items:center;gap:14px;touch-action:pan-y;transition:transform .16s ease,opacity .16s ease;}
#roras-app .toast.is-swiping{transition:none;}
#roras-app .toast>span{flex:1;}
#roras-app .toast button{width:40px;height:40px;flex:none;border:0;background:transparent;color:#f2f2ee;font-size:1.7rem;}
#roras-app .action-progress-track>span{transition:width .16s ease;animation:none;}
#roras-app .action-progress-track.is-waiting{background:repeating-linear-gradient(135deg,#575b62 0 5px,#45484d 5px 10px);}
@media(max-width:760px){
 #roras-app .sidebar{min-height:92px;padding:12px 16px;gap:12px;align-items:center;}
 #roras-app .sidebar .product-wordmark img{width:36px;height:36px;}
 #roras-app .mobile-tools{flex:none;}
}
@media(orientation:landscape) and (max-height:600px) and (max-width:1000px){
 #roras-app .shell{display:block;}
 #roras-app .sidebar{position:sticky;top:0;width:100%;height:auto;min-height:60px;display:flex;flex-direction:row;justify-content:space-between;padding:7px 16px;border-right:0;border-bottom:1px solid #575b62;}
 #roras-app .sidebar .product-wordmark img{width:30px;height:30px;}
 #roras-app .product-brand .company-label{font-size:.7rem;margin-top:0;}
 #roras-app .sidebar-label{display:none;}
 #roras-app .mobile-tools{display:block;}
 #roras-app .nav-shell{position:fixed;inset:auto 0 0;z-index:50;background:#252629;}
 #roras-app .nav{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;padding:3px max(8px,env(safe-area-inset-right)) 3px max(8px,env(safe-area-inset-left));}
 #roras-app .nav>button{display:block;min-height:42px;padding:4px;font-size:.72rem;}
 #roras-app .nav .nav-label{display:flex;flex-direction:row;justify-content:center;gap:6px;}
 #roras-app .nav .nav-symbol{width:24px;height:24px;min-height:24px;padding:3px;}
 #roras-app .nav .nav-secondary,#roras-app .nav #refresh-all{display:none;}
 #roras-app .main{margin:0;padding:0 12px 64px;width:100%;}
 #roras-app .content{padding:12px 0;}
 #roras-app .calendar-toolbar{padding:8px;gap:6px;margin:8px 0;}
 #roras-app .department-bar{margin:4px 0;}
 #roras-app .calendar-actions{flex-wrap:nowrap;gap:6px;}
 #roras-app .calendar-actions .screen-reload-button{flex-basis:auto;}
 #roras-app .hour-scroll{max-height:calc(100dvh - 200px);min-height:160px;}
 #roras-app .hour-row{grid-template-columns:140px minmax(1440px,1fr);min-width:1580px;}
 #roras-app .hour-person{width:140px;}
 #roras-app .toast,#roras-app .action-progress{bottom:56px;}
 #roras-app .mobile-more-items{max-height:calc(100dvh - 120px);overflow:auto;}
}
@media(prefers-reduced-motion:reduce){
 #roras-app .toast,#roras-app .mobile-more>summary,#roras-app .action-progress-track>span{transition:none;}
}

@media screen{
 #roras-app{position:relative;isolation:isolate;}
 #roras-app::before,.verkfirma-start::before{content:"";position:fixed;inset:-3px;z-index:-2;pointer-events:none;background:linear-gradient(#25262966,#25262933),url('/verkfirma-landscape-art.webp') center 40%/cover no-repeat;filter:grayscale(1) blur(.8px);}
 #roras-app::after,.verkfirma-start::after{content:"";position:fixed;inset:-3% -8% 52%;z-index:-1;pointer-events:none;opacity:.15;background:radial-gradient(ellipse at 28% 65%,#efefed80,transparent 48%),radial-gradient(ellipse at 74% 35%,#d6d6d699,transparent 46%);animation:verkfirma-mist 48s ease-in-out infinite alternate;will-change:transform;}
 #roras-app.background-paused::after{animation-play-state:paused;}
 #roras-app .sidebar{background:#252629;}
}
@keyframes verkfirma-mist{from{transform:translateX(-3%);}to{transform:translateX(3%);}}
@media(prefers-reduced-motion:reduce){#roras-app::after,.verkfirma-start::after{animation:none;will-change:auto;}}

#roras-app .toast.has-message{pointer-events:auto;z-index:9500;}

@media(orientation:landscape) and (max-height:600px) and (max-width:1000px){
 #roras-app .nav-shell{min-height:0;height:auto;display:block;flex:none;}
 #roras-app .nav{height:auto;min-height:0;flex:none;}
 #roras-app .sidebar{overflow:visible;z-index:35;}
 #roras-app .nav>button{flex:none;height:44px;min-height:44px;}
}

#roras-app .mobile-more>summary{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:44px;box-sizing:border-box;border-radius:12px;list-style:none;cursor:pointer;}
#roras-app .mobile-more>summary::-webkit-details-marker{display:none;}
@media(orientation:landscape) and (max-height:600px) and (max-width:1000px){
 #roras-app .sidebar{padding:6px 16px;min-height:64px;}
 #roras-app .sidebar .product-brand{margin:0;padding:0;border:0;width:auto;}
 #roras-app .sidebar .product-wordmark{gap:8px;}
 #roras-app .sidebar .product-wordmark strong{font-size:1rem;}
 #roras-app .sidebar .company-label{font-size:.66rem;line-height:1.1;margin:2px 0 0;}
 #roras-app .mobile-more{position:relative;}
 #roras-app .mobile-more-items{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;padding:8px;border:1px solid #575b62;border-radius:12px;z-index:60;display:grid;gap:4px;}
}
#roras-app .note-mic{min-height:64px;touch-action:none;-webkit-touch-callout:none;}

/* Recording feedback follows MediaRecorder, without taking over drag transforms. */
#roras-app :is(.note-mic,.quick-note){position:relative;isolation:isolate;overflow:visible;}
#roras-app :is(.note-mic,.quick-note)::after{content:"";position:absolute;inset:-5px;border:2px solid #70b58d;border-radius:inherit;opacity:0;pointer-events:none;}
#roras-app :is(.note-mic,.quick-note).is-recording{background:#70b58d!important;color:#172c20!important;border-color:#a0dcba!important;box-shadow:0 0 0 4px #70b58d30,0 10px 28px #0005;}
#roras-app :is(.note-mic,.quick-note).is-recording::after{animation:voice-recording-pulse 1.35s ease-out infinite;}
#roras-app .note-mic.is-recording svg{animation:voice-mic-pulse .9s ease-in-out infinite alternate;}
#roras-app :is(.note-mic,.quick-note).is-floating{transition:background-color .14s,border-color .14s,color .14s;}
@keyframes voice-recording-pulse{0%{transform:scale(1);opacity:.8;}100%{transform:scale(1.08,1.35);opacity:0;}}
@keyframes voice-mic-pulse{from{opacity:.55;}to{opacity:1;}}
@media(prefers-reduced-motion:reduce){#roras-app :is(.note-mic,.quick-note).is-recording::after{animation:none;opacity:1;}#roras-app .note-mic.is-recording svg{animation:none;}}

/* One readable TV palette; narrow screens pan instead of shrinking the text. */
#roras-app .tv-screen{color-scheme:dark;font-family:Inter,Arial,sans-serif;}
#roras-app .tv-screen[data-fitted="false"] .tv-viewport{overflow:auto;overscroll-behavior:contain;}
#roras-app .tv-screen .tv-hour-break{background:#e5cc721c;border-color:#e5cc7240;}
#roras-app .tv-screen .tv-hour-block{font-size:var(--tv-font);}
#roras-app .tv-screen .tv-hour-block .hour-job-body{padding:6px 8px;font-size:inherit;}
#roras-app .tv-screen .tv-hour-block .hour-job-body strong{font-size:max(16px,calc(var(--tv-font) * .9));}
#roras-app .tv-screen .tv-hour-block .hour-job-body small{font-size:max(14px,calc(var(--tv-font) * .75));}
#roras-app .tv-hour-labels{font-size:.8em;}
#roras-app .tv-screen :is(.tv-hour-block,.tv-job).project-colored{background:var(--project-pastel,#e9b8cc);color:#252629;border-color:#25262945;}
#roras-app .tv-weather-head{align-items:baseline;flex-wrap:wrap;gap:3px 12px;font-size:12px;}
#roras-app .tv-weather-head strong{color:#f2f2ee;font-size:14px;}
#roras-app .tv-weather-days{grid-template-columns:repeat(7,minmax(135px,1fr));overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 0 5px;}
#roras-app .tv-weather-day{display:grid;grid-template-columns:1fr auto;gap:3px 8px;padding:10px 12px;background:#303236;color:#f2f2ee;border:1px solid #575b62;border-radius:12px;min-width:0;scroll-snap-align:start;}
#roras-app .tv-weather-day .tv-weather-date{font-size:15px;white-space:nowrap;}
#roras-app .tv-weather-temp{grid-column:2;grid-row:1 / span 2;color:#e9b8cc;font-size:24px;line-height:1.2;}
#roras-app .tv-weather-day .tv-weather-condition{font-size:14px;color:#f2f2ee;}
#roras-app .tv-weather-day .tv-weather-wind{grid-column:1 / -1;font-size:12px;color:#bcc0c7;white-space:nowrap;}
#roras-app .tv-connection{min-height:100dvh;display:grid;place-items:center;padding:24px;}
#roras-app .tv-connection-card{width:min(100%,620px);padding:32px;border-radius:20px;background:#303236;color:#f2f2ee;border:1px solid #575b62;}
#roras-app .tv-connection-card h1{font-size:1.4rem;margin:24px 0 12px;}
@media(max-width:940px){
 #roras-app .tv-screen .tv-table{min-width:1060px;}
 #roras-app .tv-screen[data-period="week"] .tv-table{min-width:1500px;}
 #roras-app .tv-screen .tv-table th:first-child{position:sticky;left:0;z-index:3;width:180px;}
 #roras-app .tv-screen .tv-table thead th:first-child{z-index:4;}
 #roras-app .tv-weather-days{grid-template-columns:repeat(7,160px);}
 #roras-app .tv-head .actions{margin-left:auto;gap:6px;}
 #roras-app .tv-head .btn{font-size:13px;min-height:40px;padding:8px 10px;}
}
@media(orientation:landscape) and (max-height:500px){
 #roras-app .tv-screen{padding:8px;gap:5px;}
 #roras-app .tv-head .product-brand{width:170px;}
 #roras-app .tv-weather-day{padding:5px 10px;gap:0 8px;}
 #roras-app .tv-weather-head{margin-bottom:0;}
 #roras-app .tv-footer{font-size:12px;}
}

/* Wordmark leads the header; the standalone mark belongs to install/quality. */
#roras-app .product-brand{grid-template-columns:minmax(0,1fr);justify-content:stretch;}
#roras-app .sidebar .product-brand{width:100%;max-width:220px;padding-inline:0;}
/* Frame the approved original without modifying or redrawing the lettering. */
#roras-app .product-wordmark,.verkfirma-start .product-wordmark{display:block;position:relative;width:100%;max-width:320px;aspect-ratio:1104/224;overflow:hidden;flex:none;}
#roras-app .product-wordmark .product-wordmark-art,#roras-app .sidebar .product-wordmark .product-wordmark-art,.verkfirma-start .product-wordmark-art{display:block;position:absolute;width:111.594203%;height:auto;max-width:none;left:-6.34058%;top:-62.5%;border-radius:0;object-fit:contain;filter:none;mix-blend-mode:normal;}
#roras-app .login-card .product-wordmark{padding:0;border:0;}
#roras-app .tv-head .product-brand{width:260px;max-width:45vw;}
#roras-app .nav-quality .nav-symbol .brand-mark{width:30px;height:30px;stroke:none;}
#roras-app .dashboard-tile-icon .brand-mark{width:36px;height:36px;stroke:none;}
@media(max-width:760px){
 #roras-app .sidebar .product-brand{width:min(50vw,210px);max-width:calc(100% - 110px);margin:0;}
}
@media(orientation:landscape) and (max-height:600px) and (max-width:1000px){
 #roras-app .sidebar .product-brand{width:185px;max-width:calc(100% - 110px);}
 #roras-app .nav-quality .nav-symbol .brand-mark{width:22px;height:22px;}
}

/* Light workspace: presentation only; preserve navigation and scheduling layout. */
@media screen {
 html:has(#roras-app .shell),body:has(#roras-app .shell){background:#f5f4ef;color-scheme:light;}
 #roras-app:has(.shell){color-scheme:light;--page:#f5f4ef;--surface:#fff;--soft:#f0f0eb;--ink:#292d30;--heading:#25292c;--muted:#62696d;--line:#dcded8;--brand-deep:#363d3a;--blue:#79651d;--blue-bg:#f6f0d8;--green:#326b49;--green-bg:#e7f1e9;--red:#a33149;--red-bg:#fbe9ed;--amber:#795e15;--amber-bg:#faf2d9;--purple:#735778;--purple-bg:#f1eaf3;--teal:#32696b;--teal-bg:#e8f2f1;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:400;line-height:1.55;background:var(--page);}
 #roras-app:has(.shell)::before,#roras-app:has(.shell)::after{content:none;animation:none;will-change:auto;}
 #roras-app:has(.shell) :is(h1,h2,h3){font-weight:650;letter-spacing:-.025em;line-height:1.3;}
 #roras-app:has(.shell) :is(button,input,select,textarea){font-family:inherit;}
 #roras-app:has(.shell) :is(input,textarea,select){color-scheme:light;background:#fff;color:var(--ink);border-color:#afb5af;}
 #roras-app:has(.shell) :is(input,textarea)::placeholder{color:#737b7e;}
 #roras-app:has(.shell) :is(.panel,.metric,.dashboard-tile,.overview-group,.project-detail,.calendar-toolbar,.department-bar){box-shadow:0 2px 8px #25292c04;}
 #roras-app:has(.shell) :is(.dashboard-tile small,.overview-group>summary small,.quote-total-label){color:var(--muted);}
 #roras-app:has(.shell) .overview-group>summary::after{color:#79651d;}
 #roras-app:has(.shell) .btn:not(.primary):not(.danger):hover:not(:disabled){background:#e7e9e2;color:var(--ink);}
 #roras-app:has(.shell) :is(.hour-person,.hour-header,.hour-time){background:var(--surface);color:var(--ink);border-color:var(--line);}
 #roras-app:has(.shell) .department-bar [aria-pressed=true]{background:#e8ebe3;color:#28352b;border-color:#bcc7b8;}
 #roras-app:has(.shell) .staffing-view-choice [data-mode=week]:not([aria-pressed=true]){color:#864a68;border-color:#d6a5bb;}
 #roras-app:has(.shell) .staffing-view-choice [data-mode=day]:not([aria-pressed=true]){color:#326b49;border-color:#82ae8e;}
 #roras-app:has(.shell) :is(.note-timing legend,.note-details summary){color:#864a68;}
 #roras-app:has(.shell) .calendar-editing-notice{color:#795e15;}
 #roras-app:has(.shell) .dashboard-tile.is-quality.is-ok{background:#edf5ef;border:1px solid #9bbfa5;}
 #roras-app:has(.shell) .dashboard-tile.is-quality.is-alert{background:#fbeef1;border:1px solid #d29baa;}
 #roras-app:has(.shell) .dashboard-tile.is-refresh{background:#f7eaf0;border:1px solid #d7adc0;}
 #roras-app:has(.shell) .dashboard-tile.is-refresh:active{background:#e7f1e9;border-color:#70b58d;}
 #roras-app:has(.shell) .dashboard-tile:not(.is-calendar):not(.is-quality):not(.is-refresh):not([data-view="projects"]) .dashboard-tile-icon{background:#f6f0d8;color:#806a20;}
 #roras-app:has(.shell) .dashboard-tile.is-quality:not(.is-ok):not(.is-alert) .dashboard-tile-icon{background:#eeefea;color:#657069;}
 #roras-app:has(.shell) .quality-suggestion-banner{color:var(--ink);border-width:1px;}
 #roras-app:has(.shell) .quality-suggestion-banner.is-clear{background:#e7f1e9;border-color:#9bbfa5;}
 #roras-app:has(.shell) .quality-suggestion-banner.needs-review{background:#fbe9ed;border-color:#d29baa;}
 #roras-app:has(.shell) .toast{background:#303236;color:#f2f2ee;}
 #roras-app:has(.shell) :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #7a5068;outline-offset:3px;}
 /* Keep brand/navigation contrast independent of the light content tokens. */
 #roras-app:has(.shell) .sidebar{color-scheme:dark;--ink:#f2f2ee;--muted:#bcc0c7;--soft:#3b3e43;--line:#575b62;background:#252629;color:#f2f2ee;}
 #roras-app:has(.shell) .sidebar .btn:not(.primary):not(.danger):hover:not(:disabled){background:#414348;color:#f2f2ee;}
 #roras-app:has(.shell) .mobile-more-items{background:#303236;color:#f2f2ee;}
}

/* Approved light entry and read-only calendars share the workspace palette. */
@media screen {
 html:has(#roras-app),body:has(#roras-app){background:#f5f4ef;color-scheme:light;}
 #roras-app{background:#f5f4ef;}
 #roras-app::before,#roras-app::after,.verkfirma-start::before,.verkfirma-start::after{content:none;animation:none;will-change:auto;}
 .verkfirma-start{background:#f5f4ef;}
 .verkfirma-start-card{background:#252629;box-shadow:0 8px 18px #25262918;}
 .verkfirma-start-track span{position:relative;border-radius:inherit;transition:width .32s cubic-bezier(.22,.61,.36,1),background-color .3s ease;}
 .verkfirma-start-track span::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent,#ffffff35 30%,transparent 85%);opacity:0;}
 .verkfirma-start[data-ready] .verkfirma-start-track span{background:#70b58d;}
 .verkfirma-start[data-ready] .product-wordmark-art{animation:verkfirma-logo-gloss .58s ease-in-out both;}
 .verkfirma-start[data-ready] .verkfirma-start-track span::after{animation:verkfirma-bar-gloss .58s ease-in-out both;}
 .verkfirma-start[data-ready]{animation:verkfirma-entry-exit .15s ease .53s both;}
 #roras-app:has(.login){--ink:#292d30;--heading:#25292c;--muted:#62696d;--soft:#f0f0eb;--line:#dcded8;color:#292d30;}
 #roras-app .login .product-brand{padding:18px;background:#252629;border-radius:16px;}
 #roras-app .tv-screen{color-scheme:light;--page:#f5f4ef;--surface:#fff;--soft:#f0f0eb;--ink:#292d30;--heading:#25292c;--muted:#62696d;--line:#dcded8;--blue-bg:#f6f0d8;--purple:#735778;--purple-bg:#f1eaf3;--amber:#795e15;--amber-bg:#faf2d9;--teal-bg:#e8f2f1;}
 #roras-app .tv-head{background:#252629;color:#f2f2ee;border:0;border-radius:16px;padding:14px 18px;}
 #roras-app .tv-head h1{color:#f2f2ee;font-weight:650;}
 #roras-app .tv-head .btn{background:#3b3e43;border-color:#575b62;color:#f2f2ee;}
 #roras-app .tv-table thead th{background:#eceee7;color:#414946;}
 #roras-app .tv-viewport{border:1px solid var(--line);border-radius:12px;background:#fff;}
 #roras-app .tv-screen .tv-hour-break{background:#e5cc7224;border-color:#b8a25066;}
 #roras-app .tv-weather-day{background:#fff;color:#292d30;border-color:#dcded8;}
 #roras-app .tv-weather-head strong,#roras-app .tv-weather-day .tv-weather-condition{color:#292d30;}
 #roras-app .tv-weather-temp{color:#864a68;}
 #roras-app .tv-weather-day .tv-weather-wind{color:#62696d;}
}
@keyframes verkfirma-logo-gloss{0%{filter:saturate(1) brightness(1);}58%{filter:saturate(1.12) brightness(1.025);}100%{filter:saturate(1.08) brightness(1.015);}}
@keyframes verkfirma-bar-gloss{0%{opacity:0;}58%{opacity:1;}100%{opacity:.84;}}
@keyframes verkfirma-entry-exit{to{opacity:0;}}
@media(prefers-reduced-motion:reduce){.verkfirma-start[data-ready],.verkfirma-start[data-ready] .product-wordmark-art,.verkfirma-start[data-ready] .verkfirma-start-track span::after{animation:none;}.verkfirma-start-track span{transition:none;}}

#roras-app .screen-pair-code{display:block;font-size:clamp(2rem,7vw,3rem);letter-spacing:.18em;font-variant-numeric:tabular-nums;}

/* Allocation comments stay attached to the same booking in every calendar. */
.quality-review-summary{margin:12px 0;padding:14px 16px;border:1px solid #cbd0cb;border-radius:10px;background:#f5f6f3;color:#242829;overflow-wrap:anywhere;}
.quality-review-summary p{margin:6px 0;line-height:1.5;}
.quality-review-destination{margin-top:12px;padding-top:10px;border-top:1px solid #cbd0cb;}
.quality-review-summary.is-ready{border-left:4px solid #39805c;background:#edf6ef;}
#roras-app .allocation-note-badge{display:flex;align-items:flex-start;gap:6px;max-width:100%;margin:0 0 5px;padding:5px 7px;border:1px solid #c5a951;border-radius:5px;background:#fff0b7;color:#493b13;font-size:13px;font-weight:600;line-height:1.25;text-align:left;white-space:normal;box-sizing:border-box;}
#roras-app .allocation-note-badge .allocation-note-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:anywhere;min-width:0;font-size:inherit;line-height:inherit;}
#roras-app .hour-job.has-allocation-note,#roras-app .tv-screen .tv-hour-block.has-allocation-note,#roras-app .hour-track .unstaffed-job.has-allocation-note{height:104px;}
#roras-app .tv-screen .allocation-note-badge{display:flex;font-size:clamp(13px,calc(var(--tv-font) * .7),16px);white-space:normal;}
#roras-app .tv-screen .allocation-note-badge .allocation-note-text{display:-webkit-box;font-size:inherit;white-space:normal;}

#roras-app .view-update-notice{position:fixed;z-index:90;right:16px;bottom:calc(90px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px);min-height:44px;background:#fff7d6;color:#302b1a;border:1px solid #bda34a;box-shadow:0 3px 12px #0002;font-size:14px;}
