/* Team-only surfaces and semantic accents. Player presentation stays independent. */
.team-view{--panel:#292131;--panel2:#352b40;--muted:#c7becf;--line:#c5acd433;--team-green:#a5e1be;--team-blue:#aacfff;--team-amber:#f2cc92;--team-red:#f4afb9;--tone:var(--purple)}
.team-view [data-tone=green]{--tone:var(--team-green);--tone-bg:#294538;--tone-border:#83cda67a}
.team-view [data-tone=blue]{--tone:var(--team-blue);--tone-bg:#2c3d57;--tone-border:#8bbef176}
.team-view [data-tone=amber]{--tone:var(--team-amber);--tone-bg:#473a28;--tone-border:#e4bb756e}
.team-view [data-tone=red]{--tone:var(--team-red);--tone-bg:#4c2c36;--tone-border:#ec9ba96e}
.team-view [data-tone=purple]{--tone:#d3b0ec;--tone-bg:#423050;--tone-border:#c397e375}
.team-view [data-tone=neutral]{--tone:#d0cadb;--tone-bg:#37313f;--tone-border:#c5bdd05c}
.team-view :is(.panel,.actor-card,.planner-row,.block,.table-wrap,.stats){box-shadow:0 5px 20px #00000021,inset 0 1px #ffffff05;border-color:var(--line)}
.team-view .team-shell{grid-template-columns:238px minmax(0,1fr)}
.team-view .sidebar{padding:28px 16px 28px 24px;background:linear-gradient(170deg,#251d2d,#1b1522);border-right-color:#c5acd42d}
.team-view .sidebar .identity{display:flex;align-items:center;gap:12px;padding:0 8px 24px;overflow-wrap:anywhere}
.team-view .identity .identity-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:42px;margin:0;border:1px solid #c99ae650;border-radius:12px;background:#473052;color:#d9b8ed}
.team-view .identity-avatar .ui-icon{width:22px;height:22px}
.team-view .side-nav{gap:6px}
.team-view .side-nav button{display:flex;align-items:center;gap:10px;min-height:44px;border:1px solid transparent;padding:10px 11px;line-height:1.35;transition:background .16s,border-color .16s,color .16s}
.team-view .side-nav button>.ui-icon{width:19px;height:19px;flex:none;color:var(--tone);opacity:.86}
.team-view .side-nav button:hover{color:var(--ink);background:#ffffff09;border-color:#ffffff15}
.team-view .side-nav button.active{color:var(--tone);background:var(--tone-bg);border-color:var(--tone-border);box-shadow:inset 3px 0 var(--tone),0 3px 14px #0002}
.team-view .side-nav button[data-action=logout]{margin-top:18px;color:var(--team-red);border-top-color:#f4afb926}
.team-view .team-content{padding:30px;min-width:0}
.team-view .team-top h1{display:flex;gap:14px;align-items:center;line-height:1.18;font-size:clamp(25px,2.3vw,31px)}
.team-view .team-title-icon{display:grid;place-items:center;width:49px;height:49px;flex:0 0 49px;border:1px solid var(--tone-border);border-radius:14px;background:var(--tone-bg);color:var(--tone);box-shadow:0 5px 20px #0002}
.team-view .team-title-icon .ui-icon{width:26px;height:26px}
.team-view :is(h2,h3){display:flex;align-items:center;gap:10px}
.team-view :is(h1,h2,h3)>.ui-icon{color:var(--tone,#d3b0ec);width:22px;height:22px;flex:none}
.team-view .team-login h1{display:flex;align-items:center;gap:12px}
.team-view .team-login h1>.ui-icon{width:30px;height:30px}
.team-view .field-caption{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#e2d9e8}
.team-view .field-caption .ui-icon{width:17px;height:17px;color:#bca7ce;flex:none}
.team-view :is(.field input,.field select,.field textarea,.actor-select,.schedule-day input){background:#18131f;border-color:#cab7d648;color:#faf7fd}
.team-view :is(input,select,textarea):focus{border-color:#bb97d9;box-shadow:0 0 0 3px #ba94d414}
.team-view .field input[readonly]{background:#211a29;color:#dbd0e4}
.team-view select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c7becf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:40px!important}
.team-view .button{background:var(--tone-bg,#352b40);border-color:var(--tone-border,#c5acd43d);color:var(--tone,#ede4f5);box-shadow:inset 0 1px #ffffff0a;transition:background .16s,border-color .16s,box-shadow .16s}
.team-view .button .ui-icon{width:18px;height:18px;flex:none}
.team-view .button.small .ui-icon{width:16px;height:16px}
.team-view .button.primary{font-weight:650;background:var(--tone,#caa5e5);border-color:var(--tone,#caa5e5);color:#16131c}
.team-view .button.ghost{background:#ffffff05}
.team-view .button:hover:not(:disabled),.team-view .button:focus-visible{background:var(--tone-bg,#44344f);color:var(--tone,#ead4f8);border-color:var(--tone,#bc99d7);box-shadow:0 0 18px #ffffff08,inset 0 0 16px #ffffff06;filter:none}
.team-view .button.primary:hover:not(:disabled),.team-view .button.primary:focus-visible{background:var(--tone,#d2b4e7);color:#16131c;box-shadow:0 0 18px color-mix(in srgb,var(--tone,#caa5e5) 23%,transparent),inset 0 0 14px #fff6}
.team-view .button:disabled{opacity:.4;box-shadow:none}
.team-view .button.danger{--tone:var(--team-red);--tone-bg:#4c2c36;--tone-border:#ec9ba96e}
.team-view .inline-filters .button.active{background:var(--tone-bg,#40314c);color:var(--tone,#d3b0ec);border-color:var(--tone,#b897cf)}
.team-view .stats{gap:1px;background:var(--line);border:0}
.team-view .stat{position:relative;border:0;padding:20px;border-top:2px solid var(--tone,#d3b0ec)}
.team-view .stat>.label:first-child{display:flex;align-items:center;gap:8px;min-height:36px;line-height:1.4}
.team-view .stat .ui-icon{width:19px;height:19px;color:var(--tone);flex:none}
.team-view .stat .value{color:var(--tone,#f7f2fa);font-size:clamp(23px,2.2vw,29px);overflow-wrap:anywhere}
.team-view .table-wrap{background:#211a28}
.team-view th{background:#32283d;color:#d6cadd}
.team-view td{border-top-color:#bca7ce25}
.team-view tbody tr:hover{background:#d8bce508}
.team-view .actor-card{border-radius:10px}
.team-view .actor-contact{display:flex;flex-direction:column;gap:7px;margin:14px 0 17px;font-size:13px}
.team-view .actor-contact a{display:flex;align-items:center;gap:8px;color:var(--team-blue)}
.team-view .actor-contact a span{overflow-wrap:anywhere;min-width:0}
.team-view .actor-contact .ui-icon{width:16px;height:16px;flex:none}
.team-view .actor-contact a:hover{text-decoration:underline}
.team-view .actor-numbers{gap:20px;flex-wrap:wrap}
.team-view .actor-numbers strong{color:#e3ceee}
.team-view .coverage i{background:#0d0914;border:1px solid #9888a666;height:5px}
.team-view .coverage i.on{background:var(--team-green);border-color:var(--team-green)}
.team-view .pill{border:1px solid #c497e22c;background:#b18bda21}
.team-view .pill.green{color:var(--team-green);background:#a5e1be14;border-color:#a5e1be36}
.team-view .pill.amber{color:var(--team-amber);background:#f2cc9214;border-color:#f2cc9236}
.team-view .pill.red{color:var(--team-red);background:#f4afb914;border-color:#f4afb936}
.team-view .alert-bar{display:flex;align-items:center;gap:11px;background:#3b3023;border-color:#dfb57759;color:#f2d3a7}
.team-view .alert-bar .ui-icon{width:20px;height:20px;flex:none}
.team-view .block{border-color:#a5e1be99;border-radius:0 9px 9px 0}
.team-view .empty{background:#201925;color:#c7becf;border-color:#c5acd440}
.team-view .note{background:#ae88c712;color:#d4c7dd}
.team-view .code-list{background:#1a1422;border:1px solid var(--line)}
.team-view dialog{background:#2b2235;border-color:#b399c269;box-shadow:0 24px 100px #0008}
.team-view .close-modal{background:#ffffff09;border-radius:6px;color:#e4d7ed;width:30px;height:30px;display:grid;place-items:center;line-height:1}
.team-view .private-label{display:flex;align-items:center;gap:8px}
.team-view .private-label .ui-icon{width:16px;height:16px}
.team-view .week-picker{background:#211a29;border:1px solid var(--line);padding:5px;border-radius:8px;white-space:normal;flex-shrink:0}
.team-view .week-picker>span{max-width:150px;text-align:center;line-height:1.4}
.team-view .week-picker .button{padding:6px 8px;min-width:32px;min-height:32px}
@media(max-width:1100px){.team-view .team-shell{grid-template-columns:214px minmax(0,1fr)}.team-view .team-content{padding:25px 20px}.team-view .sidebar{padding:25px 12px}.team-view .team-top{flex-wrap:wrap}.team-view .actor-grid{grid-template-columns:1fr}}
@media(max-width:760px){.team-view .team-shell{display:block}.team-view .sidebar{padding:20px 18px 18px}.team-view .sidebar .identity{justify-content:flex-start;padding-bottom:18px}.team-view .side-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.team-view .side-nav button{padding:9px 10px;font-size:12px;min-width:0}.team-view .side-nav button[data-action=logout]{margin-top:0}.team-view .team-content{padding:25px 18px}.team-view .team-title-icon{width:42px;height:42px;flex-basis:42px;border-radius:12px}.team-view .team-top h1{gap:11px}.team-view .team-top{align-items:stretch}.team-view .week-picker{align-self:flex-start;max-width:100%}.team-view .stats .stat{padding:15px;border-right:0;border-bottom:0}.team-view .stat>.label:first-child{align-items:flex-start;flex-direction:column;min-height:65px}.team-view .actor-numbers{gap:16px}.team-view .fields{grid-template-columns:1fr}.team-view .actions{gap:8px}.team-view .button{max-width:100%;text-align:center}.team-view .team-top>div{min-width:0}.team-view .team-top h1>span:last-child{min-width:0}.team-view .team-login{padding-inline:20px}}
@media(prefers-reduced-motion:reduce){.team-view :is(.button,.side-nav button){transition:none}}
.team-view .week-picker[hidden]{display:none}
.team-view .availability-modal{width:min(900px,calc(100% - 24px));max-width:900px}
.team-view .availability-calendar{min-width:0}
.team-view .agenda-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0}
.team-view .agenda-month{display:flex;align-items:center;gap:12px}
.team-view .agenda-month strong{min-width:135px;text-align:center;text-transform:capitalize}
.team-view .agenda-month .button{min-width:38px;min-height:38px;padding:6px 10px}
.team-view .agenda-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#332a40}
.team-view .agenda-legend>span{display:flex;align-items:center;gap:10px;font-size:13px}
.team-view .agenda-legend b{display:grid;place-items:center;flex:none;width:30px;height:32px;background:#a5e1be17;border:1px solid #a5e1be65;border-radius:7px;color:var(--team-green)}
.team-view .agenda-legend small{display:block;color:#c7becf;font-size:11px;line-height:1.5}
.team-view .agenda-hint{font-size:12px;color:#c7becf;line-height:1.6;margin:12px 0}
.team-view .agenda-weeks{display:grid;gap:12px;border:0;margin:0;padding:0;min-width:0}
.team-view .agenda-week{background:#251d2e;border:1px solid #c5acd435;padding:12px;border-radius:10px;min-width:0}
.team-view .agenda-week h3{font-size:12px;line-height:1.5;margin:0 0 10px;color:#c8b5da;font-weight:500}
.team-view .agenda-week h3 .ui-icon{width:16px;height:16px}
.team-view .agenda-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:9px}
.team-view .agenda-day{padding:10px;border:1px solid #c5acd434;background:#382d43;border-radius:8px;min-width:0}
.team-view .agenda-date strong{font-size:14px;text-transform:capitalize;display:block}
.team-view .agenda-date small{font-size:10px;color:#bcb0c9;display:block;margin:2px 0 8px}
.team-view .agenda-periods{display:flex;gap:7px}
.team-view .agenda-choice{position:relative;flex:1;min-width:36px;max-width:62px;cursor:pointer}
.team-view .agenda-choice input{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;cursor:inherit}
.team-view .agenda-choice>span{display:grid;place-items:center;min-height:38px;font-size:13px;font-weight:650;border:1px solid #b6a4c27d;border-radius:6px;background:#19121f;color:#c7becf;pointer-events:none}
.team-view .agenda-choice input:checked+span{color:#ddf9e7;border-color:#a5e1be;background:#284638;box-shadow:inset 0 0 10px #a5e1be0a}
.team-view .agenda-choice input:checked+span:after{content:'✓';position:absolute;top:0;right:3px;font-size:9px;color:#bdf3d3}
.team-view .agenda-choice.is-partial>span{border-color:#f2cc92;color:#f2cc92;background:repeating-linear-gradient(135deg,#473c2d 0 5px,#302a25 5px 10px)}
.team-view .agenda-choice.is-partial>span:after{content:'−';position:absolute;top:0;right:3px;font-size:12px}
.team-view .agenda-choice.is-changed>span{outline:1px dashed #bda0d8;outline-offset:3px}
.team-view .agenda-choice input:focus-visible+span{outline:3px solid #d9b7f3;outline-offset:3px}
.team-view .agenda-choice input:disabled{cursor:not-allowed}
.team-view .agenda-choice input:disabled+span{opacity:.38}
.team-view .agenda-day.is-closed{border-style:dashed;background:#29212e}
.team-view .agenda-empty{font-size:12px;color:#bcb0c9;margin:0}
.team-view .agenda-footer{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:16px 0 0;border-top:1px solid var(--line)}
.team-view .agenda-status{color:var(--team-green);flex-basis:100%;margin:2px 0}
.team-view .agenda-error:empty{display:none}
.team-view .agenda-precise{font-size:12px;margin:14px 0;color:#c7becf}
.team-view .agenda-interval{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:9px 0;border-bottom:1px solid var(--line)}
.team-view .agenda-precise summary{cursor:pointer;padding:8px 0;color:var(--team-blue)}
@media(min-width:601px){.team-view .agenda-days{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.team-view .agenda-day{display:flex;align-items:center;justify-content:space-between;gap:10px}.team-view .agenda-periods{flex:0 0 122px;gap:5px}.team-view .agenda-date small{margin-bottom:0}}
.team-view .availability-calendar [aria-busy=true]{opacity:.7}
@media(max-width:600px){.team-view .agenda-legend{grid-template-columns:1fr;gap:9px;padding:12px}.team-view .agenda-legend>span>span{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:8px}.team-view .agenda-toolbar{gap:10px}.team-view .agenda-days{grid-template-columns:1fr}.team-view .agenda-day{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px}.team-view .agenda-date{flex:1;min-width:0}.team-view .agenda-date strong{font-size:12px}.team-view .agenda-date small{font-size:9px;margin:3px 0}.team-view .agenda-periods{flex:0 0 122px;gap:5px}.team-view .agenda-week{padding:10px}.team-view .agenda-choice>span{min-height:38px}.team-view .agenda-footer>.button{width:100%}.team-view .availability-modal{padding:35px 14px 20px}.team-view .agenda-month strong{min-width:120px}.team-view .agenda-month{gap:8px}}
.team-view .agenda-month-field{margin:0;padding:0;border:0;min-width:0}
.team-view .agenda-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.team-view .agenda-weekday{text-align:center;color:#cfc0dd;font-size:11px;padding:5px 0;letter-spacing:.02em}
.team-view .agenda-date-cell{min-width:0;padding:9px 6px;background:#372c42;border:1px solid #b79ac345;border-radius:8px}
.team-view .agenda-date-cell.is-closed{background:#211b29;border-color:#b79ac322}
.team-view .agenda-date-cell.is-closed .agenda-cell-date{color:#a89bad}
.team-view .agenda-date-cell.is-today{border-color:#d3b0ec;box-shadow:inset 0 0 12px #d3b0ec14}
.team-view .agenda-date-cell.is-past{background:linear-gradient(150deg,#3d2932,#2d202a);border-color:#ba798753}
.team-view .agenda-date-cell.is-past .agenda-cell-date{color:#d6abb5}
.team-view .agenda-date-cell.is-today{border:3px solid #d8b0f2;box-shadow:0 0 0 1px #d8b0f233,inset 0 0 15px #d3b0ec17}
.team-view .planning-days{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}
.team-view .planning-days .check{display:flex;align-items:center;gap:7px;padding:8px 10px;background:#241b2f;border:1px solid var(--line);border-radius:7px;margin:0;font-size:12px}
.team-view .planning-settings{margin-bottom:24px}
.team-view .auto-consent{max-width:600px;margin-bottom:24px}
.team-view .automation-summary{margin-bottom:22px}
.team-view .automation-summary strong{display:flex;align-items:center;gap:9px}
.team-view .automation-summary strong .ui-icon{width:20px;height:20px;color:var(--team-green)}
.team-view .agenda-cell-date{display:flex;gap:5px;align-items:baseline;justify-content:center;line-height:1.2;margin-bottom:8px;color:#f3eaf8}
.team-view .agenda-cell-date>span{font-size:10px}
.team-view .agenda-cell-date>strong{font-size:16px;font-weight:650}
.team-view .agenda-cell-periods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.team-view .agenda-cell-periods .agenda-choice{min-width:0;max-width:none}
.team-view .agenda-cell-periods .agenda-choice>span{font-size:11px;min-height:30px;border-radius:5px}
.team-view .agenda-choice.is-unavailable>span{background:#492b35;border-color:#d68c9a;color:#f4bac5}
.team-view .agenda-choice.is-unavailable>span:after{content:'−';position:absolute;top:-2px;right:2px;font-size:10px}
.team-view .agenda-cell-periods .agenda-choice.is-changed>span{outline-offset:1px}
.team-view .agenda-cell-periods .agenda-choice input:disabled+span{opacity:.38}
.team-view .agenda-outside{background:#211b292c;border:1px dashed #b79ac316;border-radius:8px}
.team-view .agenda-statistics{margin:14px 0}
.team-view .agenda-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.team-view .agenda-metrics>div{display:grid;grid-template-columns:20px 1fr;gap:6px 7px;align-items:center;padding:12px;border:1px solid var(--tone-border);border-radius:8px;background:var(--tone-bg);min-width:0}
.team-view .agenda-metrics .ui-icon{width:18px;height:18px;color:var(--tone)}
.team-view .agenda-metrics span{font-size:12px;line-height:1.3}
.team-view .agenda-metrics strong{grid-column:1/-1;font-size:22px;color:var(--tone);line-height:1.2;font-weight:650}
.team-view .agenda-balance{font-size:11px;line-height:1.5;color:#c7becf;margin:8px 0}
.team-view .agenda-colors{display:flex;flex-wrap:wrap;gap:4px 12px}
.team-view .agenda-colors .is-available{color:#b3e7c6}
.team-view .agenda-colors .is-unavailable{color:#f4bac5}
.team-view .agenda-colors .is-partial{color:#f2cc92}
@media(max-width:900px){.team-view .agenda-cell-periods{grid-template-columns:1fr}.team-view .agenda-cell-date{flex-direction:column;align-items:center;gap:3px}.team-view .agenda-date-cell{padding:7px 5px}.team-view .agenda-cell-periods .agenda-choice>span{min-height:29px}.team-view .agenda-month-grid{gap:4px}}
@media(max-width:600px){.team-view .agenda-month-grid{gap:3px}.team-view .agenda-date-cell{padding:6px 3px;border-radius:5px}.team-view .agenda-cell-date>span{font-size:8px}.team-view .agenda-cell-date>strong{font-size:14px}.team-view .agenda-weekday{font-size:9px}.team-view .agenda-cell-periods{gap:4px}.team-view .agenda-cell-periods .agenda-choice>span{min-height:30px;font-size:10px}.team-view .agenda-metrics{gap:5px}.team-view .agenda-metrics>div{padding:9px 7px;gap:5px;grid-template-columns:1fr;align-content:start}.team-view .agenda-metrics span{font-size:10px;min-height:26px}.team-view .agenda-metrics strong{font-size:18px}.team-view .agenda-metrics .ui-icon{width:15px;height:15px}.team-view .agenda-legend{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px}.team-view .agenda-legend>span{display:block;font-size:11px}.team-view .agenda-legend b{width:24px;height:25px;margin-bottom:5px}.team-view .agenda-legend>span>span{display:block}.team-view .agenda-legend small{font-size:9px}}
