/* Palette commune de l'interface. Les documents gardent leur propre charte. */
@media screen {
 :where(.shell,#modal,.auth-layout,.field-shell){--ui-teal:#087d70;--ui-violet:#674398;--ui-blue:#345f8b;--ui-accent:#36bca9;--ui-soft:#eef8f5;--ui-line:#d9e9e4;--ui-lavender:#f1ecf8;--ui-ice:#f0f6fc}
 .shell:is(.view-sessions,.view-catalogue,.view-quality,.view-requirements,.view-credentials,.view-learning,.view-satisfaction){--ui-accent:#a889cd;--ui-soft:#f7f3fc;--ui-line:#e5dcf0}
 .shell:is(.view-commercial,.view-invoices,.view-expenses,.view-bpf,.view-documents,.view-finance){--ui-accent:#7ba4ce;--ui-soft:#f2f7fd;--ui-line:#dce7f3}
 .shell .main>.panel:not(.tr-page):not(.assistant),.shell .main .grid>.panel:not(.assistant),.shell .main .dashboard-grid>.panel:not(.assistant){border-top:3px solid var(--ui-accent);background:linear-gradient(135deg,var(--ui-soft),#fff 42%);border-radius:14px}
 .shell .panel:not(.assistant)>.panel-header{background:linear-gradient(100deg,var(--ui-soft),#fff);border-bottom:1px solid var(--ui-line)}
 :where(.shell,#modal,.field-shell) .button:not(.primary):not(.danger):not(.dark):not(.paper *):not(.section-hero *):not(.tr-page *):not(.tr-detail *){color:#345d87;background:#f1f6fc;border-color:#d5e2f0}
 :where(.shell,#modal,.auth-layout,.field-shell) .button.primary:not(.paper *){background:#087d70;border-color:#087d70;color:#fff;box-shadow:0 3px 8px #087d7018}
 :where(.shell,#modal,.auth-layout,.field-shell) .button.primary:not(.paper *):hover{background:#06695f;border-color:#06695f}
 :where(.shell,#modal,.field-shell) .button.danger{color:#a52e42;background:#fff1f3;border-color:#edc5cd}
 :where(.shell,#modal,.field-shell) .button.dark:not(.paper *){color:#fff;background:#61418b;border-color:#61418b}
 :where(.shell,#modal,.field-shell) .button:not(:disabled):not(.paper *):hover{filter:brightness(.97)}
 :where(.shell,#modal,.auth-layout,.field-shell) :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #8064ad;outline-offset:3px}
 :where(.shell,#modal,.auth-layout,.field-shell) input:is([type=checkbox],[type=radio]){accent-color:#087d70}
 .shell .toolbar:not(.paper *),.shell .simple-agenda-filters{padding:13px;background:#f0f7f8;border:1px solid #dce9ed;border-radius:13px}
 .shell .toolbar .search{background:#fff;border-color:#cbdee3}
 :where(.shell,#modal,.field-shell) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea):not(.paper *):focus{border-color:#248d7e}
 .shell .table-wrap:not(.paper *){border-radius:11px}
 .shell .table-wrap:not(.paper *) thead th,.shell .panel>table:not(.paper *) thead th{background:#f0ecf7;color:#624b83;border-bottom-color:#e0d7ee}
 .shell .table-wrap:not(.paper *) tbody tr:nth-child(even){background:#fbfafd}
 .shell .table-wrap:not(.paper *) tbody tr:hover{background:#f0f7f8}
 .shell .stat:not(.accent){background:linear-gradient(135deg,#edf8f4,#fff);border-color:#d4e9e1;border-top:3px solid #4bb29c}
 .shell .stat:nth-child(4n+2):not(.accent){background:linear-gradient(135deg,#f1ebf9,#fff);border-color:#e3d9ef;border-top-color:#a184c5}
 .shell .stat:nth-child(4n+3):not(.accent){background:linear-gradient(135deg,#eaf2fc,#fff);border-color:#d6e3f2;border-top-color:#7099c5}
 .shell .stat:nth-child(4n+4):not(.accent){background:linear-gradient(135deg,#fff5e6,#fff);border-color:#eee0c6;border-top-color:#d7ad69}
 .shell .stat:not(.accent) .stat-label{color:#496577}
 .shell .stat .stat-label svg{color:#448b81;background:#ddf1ea;padding:5px;box-sizing:content-box;border-radius:8px}
 .shell .stat:nth-child(4n+2) .stat-label svg{color:#79549d;background:#e8def4}
 .shell .stat:nth-child(4n+3) .stat-label svg{color:#507aa7;background:#e0ebf9}
 .shell .stat:nth-child(4n+4) .stat-label svg{color:#9b723a;background:#fbedd4}
 .shell .stat.accent{background:linear-gradient(125deg,#163b42,#244d55);border-color:#2b6c6a}
 .shell .date-tile{background:#e6f4ef;color:#266c5e;border:1px solid #cce5da;border-radius:11px}
 .shell .date-tile small{color:#476c62}
 .shell .calendar-row{border-left:3px solid #8acabb;margin:5px 0}
 .shell .calendar-row:nth-child(even){border-left-color:#b49acb;background:#fcfaff}
 :where(.shell,#modal,.field-shell) .badge:not(.green):not(.orange):not(.red):not(.blue):not(.paper *){background:#f0eaf8;color:#68488e;border:1px solid #e2d6ef;border-radius:20px}
 :where(.shell,#modal,.field-shell) .badge.green{background:#e3f5ec;color:#216b4e}
 :where(.shell,#modal,.field-shell) .badge.orange{background:#fff1db;color:#86551a}
 :where(.shell,#modal,.field-shell) .badge.red{background:#fce9ee;color:#a12d46}
 :where(.shell,#modal,.field-shell) .badge.blue{background:#e6effb;color:#315f97}
 :where(.shell,#modal,.field-shell) .tabs:not(.paper *){background:#eee9f6;border:1px solid #e0d6ee;padding:5px;border-radius:11px}
 :where(.shell,#modal,.field-shell) .tabs button.active{color:#66428f;background:#fff;box-shadow:0 2px 7px #60418b15}
 .shell .simple-block:not(.paper *),.shell .ux-more:not(.paper *){border-color:#dce6ed;background:#fff;border-radius:12px}
 .shell .simple-block>summary{color:#386b67;background:#eff7f4;border-radius:12px}
 .shell .simple-block[open]>summary{border-radius:12px 12px 0 0;margin-bottom:12px}
 .shell .simple-nav .button,.shell .simple-profile-nav .button{color:#684790;background:#f0ebf8;border-color:#dfd3ef}
 :where(.shell,#modal,.field-shell) .catalogue-card{border-top:3px solid #a68ac8;border-color:#e3dbed;background:linear-gradient(135deg,#f8f4fc,#fff 48%);box-shadow:0 4px 14px #513d7510}
 :where(.shell,#modal,.field-shell) .catalogue-domain{background:#ede5f7;color:#6a478f}
 .shell .catalogue-progress-summary{background:#f2edf9;border-color:#e0d5ed}
 .shell .catalogue-progress-summary strong{color:#66448e}
 .shell .material-metrics>div,.shell .material-session-metrics>div{background:#edf8f4;border-color:#cde5dc;border-top:3px solid #5bb9a1}
 .shell .material-metrics>div:nth-child(2),.shell .material-session-metrics>div:nth-child(2){background:#f2edf9;border-color:#e3d8ef;border-top-color:#a78ac8}
 .shell .material-metrics>div:nth-child(3),.shell .material-session-metrics>div:nth-child(3){background:#edf4fc;border-color:#d5e4f3;border-top-color:#7b9fc8}
 .shell .material-row{border-left:3px solid #80bdad;padding-left:14px;background:linear-gradient(100deg,#f5fbf8,#fff 55%)}
 .shell .material-row:nth-child(even){border-left-color:#b29acb;background:linear-gradient(100deg,#faf7fd,#fff 55%)}
 .shell .ag-shell [aria-pressed=true]:not(.paper *){background:#e8f4ef;border-color:#3b9481;color:#226c5c}
 :where(.shell,#modal,.field-shell) .empty:not(.paper *){background:linear-gradient(120deg,#f1f8f5,#f8f4fc);border-radius:13px;color:#50677b}
 #modal .modal-header{background:linear-gradient(110deg,#eff8f5,#f4f0fa);border-bottom-color:#e1e8ed}
 #modal .modal-footer{background:#f5f8fc;border-top-color:#e0e6ef}
 .auth-layout .auth-card{border-top:4px solid #36bca9;background:linear-gradient(140deg,#f1faf6,#fff 36%,#fbf8fe)}
 .field-shell{background:linear-gradient(130deg,#eef7f3,#f5f3fb 70%)}
 .field-shell .field-session{border-top:3px solid #aa8ac9;background:linear-gradient(135deg,#f8f3fc,#fff 48%);border-color:#e2d8ef}
 .field-shell .field-featured{border-top:4px solid #36bca9;background:linear-gradient(135deg,#eef9f4,#fff 48%)}
 .field-shell .field-actions .button:not(.primary){background:#f0eaf8;color:#67448f;border-color:#dfd3ed}
 .field-shell .field-header{border-bottom:2px solid #b7ddcf;background:#f8fcfa}
 .field-shell .field-nav button[aria-current]{background:#e5f3ed;color:#216c5b}
 #modal .ops-tabs button[aria-selected=true]{background:#f0eaf8;color:#67448f;border-color:#d7c7e9}
 .shell .mobile-tabs .active{background:#e5f4ee;color:#166d5e}
 @media(min-width:761px){.shell.view-catalogue .section-hero .section-hero-copy{max-width:min(420px,62%)}}
 @media(prefers-reduced-motion:reduce){:where(.shell,#modal,.field-shell) .button{transition:none}}
}

/* Commandes communes aux pages et aux dialogues, hors documents imprimables. */
@media screen {
 .shell .button:not(.paper *),#modal .button:not(.paper *){min-height:44px;border-radius:11px;padding:10px 14px;font-size:.875rem;line-height:1.3;gap:8px;white-space:normal;text-align:center}
 .shell .section-hero .head-actions .button{min-height:44px;font-size:.875rem;line-height:1.3}
 .shell .empty .button svg{width:20px;height:20px;margin:0;padding:0;background:none;border-radius:0}
 .shell .head-actions,#modal .modal-footer{align-items:stretch;gap:10px}
 .shell .topbar-right{align-items:stretch}
 .shell .icon-button:not(.paper *),#modal .icon-button:not(.paper *){min-width:44px;min-height:44px;border-radius:11px}
 .shell .toolbar:not(.paper *){justify-content:flex-start;gap:12px;flex-wrap:wrap;align-items:center}
 .shell .toolbar.ui-filterbar{align-items:end}
 .shell .ui-filterbar>.ui-filter-field{flex:1 1 200px;max-width:340px}
 .shell .ui-filterbar>.ui-filter-search{flex:2 1 280px;max-width:none}
 .shell .ui-filter-field{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0;margin:0;color:#526579;font-size:.82rem;font-weight:600;line-height:1.3}
 .shell .ui-filter-caption{display:block;color:#526579;font-size:.82rem;font-weight:600;line-height:1.3}
 .shell :is(.ui-filter-field,.ag-navigation .field)>:is(input,select),.shell .ui-filter-group :is(input:not([type=checkbox]):not([type=radio]),select),.shell .simple-agenda-field>:is(input,select){box-sizing:border-box;display:block;width:100%;max-width:none;min-width:0;height:44px;min-height:44px;margin:0;padding:0 12px;background:#fff;color:var(--ink);border:1px solid #d5e2f0;border-radius:11px;font-size:.875rem;font-weight:400;line-height:1.3}
 .shell .ui-filter-field>:is(input,select){flex:none}
 .shell .search{height:44px;min-height:44px;max-width:none;border-radius:11px;border-color:#d5e2f0}
 .shell .search input{height:42px;min-height:0;margin:0;padding:0;border:0;border-radius:0;font-size:.875rem;line-height:1.3}
 .shell :is(.tr-simple-search,.tr-filters,.iv-filters,.material-toolbar){padding:16px;background:#f0f7f8;border:1px solid #dce9ed;border-radius:13px;gap:16px;align-items:end}
 .shell :is(.commerce-filters,.document-filters){align-items:end;gap:16px}
 .shell .material-toolbar>label{margin:0}
 .shell .material-toolbar{margin:18px 0}
 .shell .ui-filterbar>.session-filter-details{min-height:44px;padding:0 14px;align-self:end}
 .shell .session-filter-details>summary{display:flex;align-items:center;min-height:42px;font-size:.875rem;line-height:1.3;list-style:revert}
 .shell .session-filter-details>summary::before{content:'▸';margin-right:8px}
 .shell .session-filter-details[open]>summary::before{content:'▾'}
 .shell .ui-filterbar>.session-filter-details[open]{flex:1 0 100%;width:100%;padding-bottom:14px}
 .shell .session-filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:8px}
 .shell .ag-navigation{align-items:end;gap:10px;flex-wrap:wrap}
 .shell .ag-navigation .field{display:flex;flex-direction:column;gap:7px;margin:0;min-width:0}
 .shell .ag-navigation .field label{margin:0;color:#526579;font-size:.82rem;line-height:1.3}
 .shell .ag-navigation>.button{min-width:44px}
 .shell :is(.tabs,.tr-tabs) button{min-height:44px;font-size:.875rem;line-height:1.3}
 .shell :is(.qa-filters,.commerce-status-chips,.document-quick-filters){gap:10px}
 .shell :is(.commerce-status-chips,.document-quick-filters) button{min-height:44px;padding:8px 14px;font-size:.875rem;line-height:1.3}
 .shell .qa-filters .button[aria-pressed=true]{color:#226c5c;background:#e8f4ef;border-color:#3b9481}
 #modal :is(.modal-body,.field-grid) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select):not(.paper *){min-height:44px;border-radius:11px}
 @media(min-width:901px){.shell .tr-filters{grid-template-columns:repeat(6,minmax(0,1fr))}.shell .tr-filters>.ui-filter-field{grid-column:span 2}.shell .tr-filters>.ui-filter-field:nth-child(n+4){grid-column:span 3}}
 @media(max-width:760px){
  .shell .toolbar.ui-filterbar{flex-direction:row;align-items:end}
  .shell .ui-filterbar>.ui-filter-field{flex:1 1 200px;max-width:none}
  .shell .ui-filterbar>.ui-filter-search{flex-basis:100%}
  .shell .ui-filterbar>.session-filter-details{flex:1 1 200px}
 }
 @media(max-width:600px){
  .shell .toolbar.ui-filterbar{gap:14px}
  .shell .session-filter-fields{grid-template-columns:minmax(0,1fr)}
  .shell .ui-filterbar>.ui-filter-field,.shell .ui-filterbar>.session-filter-details{flex:1 1 100%;width:100%}
  .shell :is(.tr-simple-search,.tr-filters,.iv-filters,.material-toolbar){grid-template-columns:minmax(0,1fr);padding:12px;gap:14px}
  .shell .ag-navigation{width:100%}
  .shell .ag-navigation .field{flex:1 1 100%}
  .shell .ag-navigation>.button{flex:1 1 auto}
  #modal .modal-footer .button{flex:1 1 140px}
 }
}
@media screen {
  .session-team-picker .google-calendar-choice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .7rem;
    margin: .25rem 0 .85rem;
  }
  .google-calendar-choice [role=status] { font-size: .92rem; }
  .google-calendar-choice [data-conflict] { color: #913811; font-weight: 600; }
  .field-nav:has([data-id="planning"]) { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .personal-planning-tools,.tr-google-day .iv-toolbar { display:flex; align-items:end; flex-wrap:wrap; gap:.75rem; margin:1rem 0; }
  .personal-planning-tools label,.tr-google-day label { display:grid; gap:.35rem; }
  .personal-planning-tools :is(button,input,select),.tr-google-day :is(button,input) { min-height:44px; }
  [data-plan-access] { display:flex; flex-wrap:wrap; gap:.6rem; }
  [data-plan-access] fieldset { min-width:0; width:100%; }
  [data-plan-feedback]:not(:empty) { margin:1rem 0; }
  .personal-planning-event { display:grid; grid-template-columns:minmax(105px,auto) 1fr; gap:1.1rem; padding:1rem 0; border-bottom:1px solid #d6e3e4; align-items:baseline; }
  .personal-planning-event strong { color:#135f59; }
  .personal-planning-event h2 { font-size:1.05rem; margin:0; }
  .personal-planning-event p { margin:.35rem 0; }
  .personal-planning-event div { min-width:0; overflow-wrap:anywhere; }
  .personal-planning-event small { color:#536775; }
  .tr-google-day { margin:.8rem 0; }
}

@media screen {
  [data-personal-planning]{color:#193849}
  .plan-mast{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:26px clamp(16px,3vw,32px);border-radius:20px 20px 0 0;background-color:#17394a;background-image:linear-gradient(102deg,#14334a 8%,#174c53e8 58%,#183444af),url("assets/sections/agenda.webp?v=0.10.94-design-8");background-position:center;background-size:cover}
  .field-main .plan-mast h1{font-size:clamp(1.6rem,3vw,2.2rem);letter-spacing:-.045em;line-height:1.1;margin:0;color:#fff}
  .plan-view{display:inline-flex;align-items:center;gap:2px;padding:4px;border:1px solid #ffffff55;border-radius:12px;background:#123745}
  .plan-mode,.plan-control{appearance:none;cursor:pointer;min-height:42px;padding:0 14px;font:inherit;font-size:.91rem;font-weight:600;border-radius:8px}
  .plan-mode{border:0;background:transparent;color:#e6f1f3}.plan-mode:hover{background:#365969}
  .plan-mode[aria-pressed="true"]{background:white;color:#12594f;box-shadow:0 1px 4px #07172140}
  .plan-toolbar,.plan-period,.plan-arrows,.plan-jump{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
  .plan-toolbar{justify-content:space-between;padding:14px clamp(12px,2vw,24px);background:white;border:1px solid #d3e1e3;border-top:0;border-radius:0 0 16px 16px;box-shadow:0 4px 14px #213c4910}
  .plan-period h2{margin:0 5px 0 0;font-size:clamp(1.05rem,2vw,1.3rem);letter-spacing:-.025em}
  .plan-period h2::first-letter,.plan-date::first-letter{text-transform:uppercase}
  .plan-control,.plan-jump input[type="date"]{background:white;border:1px solid #c9dadd;color:#2a5061}
  .plan-control:hover{background:#eef5f4}
  .plan-arrows{gap:3px}.plan-arrow{min-width:40px;font-size:1.5rem;line-height:1;padding:0 8px}
  .plan-jump input[type="date"]{font:inherit;border-radius:8px;padding:0 10px;height:42px;min-width:0;width:auto}
  .plan-settings{border:1px solid #d5e3e3;background:#fff;border-radius:12px;padding:0 16px;margin:16px 0}
  .plan-settings summary{cursor:pointer;padding:13px 0;color:#32575e;font-weight:600}
  .plan-settings-body{display:flex;align-items:end;gap:8px;flex-wrap:wrap;padding:0 0 16px}
  .plan-settings-body label{display:grid;gap:4px}
  .plan-content{margin-top:16px}
  .plan-week .plan-days{display:grid;gap:0;border:1px solid #d4e1e4;border-radius:16px;overflow:hidden;background:white}
  .plan-week .plan-cell{border:0;border-radius:0;border-bottom:1px solid #e1e9eb;background:white;padding:9px 16px}
  .plan-week .plan-cell:last-child{border-bottom:0}
  .plan-week .plan-date span:first-child{display:inline-grid;place-items:center;gap:1px;min-width:46px}
  .plan-week .plan-date small{text-transform:uppercase;font-size:.68rem;color:#536a77;letter-spacing:.05em}
  .plan-week .plan-date b{font-size:1.25rem;line-height:1.1}
  .plan-week .plan-cell:has([aria-current="date"]){background:#f3f9f7}
  .plan-content [data-source="google"] strong{color:#64467f}
  .plan-week .plan-empty-mark{align-self:center}
  .plan-week .personal-planning-event{align-self:center}
  .plan-week .personal-planning-event h2,.plan-day .personal-planning-event h2{line-height:1.3}
  .plan-week .personal-planning-event small,.plan-day .personal-planning-event small{font-size:.76rem}
  .plan-cell{min-width:0;overflow-wrap:anywhere;background:white;border:1px solid #d8e4e5;border-radius:12px;padding:8px}
  .plan-date{font:inherit;font-weight:650;cursor:pointer;color:#234e59;border:0;background:transparent;border-radius:8px;min-height:38px;padding:4px 8px}
  .plan-date:hover,.plan-date[aria-current]{background:#d9f0e9;color:#095e53}
  .plan-empty-mark{color:#728796;padding:0 8px}
  .plan-week .plan-cell{display:grid;grid-template-columns:minmax(64px,9%) minmax(0,1fr);align-items:start}
  .plan-week .plan-date{text-align:left;grid-row:1;grid-column:1}
  .plan-week .personal-planning-event,.plan-week .plan-empty-mark{grid-column:2}
  .plan-content .personal-planning-event{border:0;border-inline-start:3px solid #1c8d79;background:#edf7f2;padding:8px 10px;margin:4px 0;border-radius:6px}
  .plan-content .personal-planning-event[data-source="google"]{border-color:#8065ad;background:#f4effa}
  .plan-month .plan-weekdays,.plan-month .plan-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
  .plan-weekdays{font-size:.82rem;text-align:center;color:#536976;margin-bottom:6px}
  .plan-month .plan-cell{grid-column:var(--weekday);padding:4px;min-height:72px;border-radius:8px}
  .plan-month .personal-planning-event{display:block;padding:5px;font-size:.75rem}
  .plan-month .personal-planning-event h2{font-size:.85rem;line-height:1.25;margin:.2em 0}
  .plan-month .personal-planning-event p{display:none}
  .plan-month .plan-empty-mark,.plan-full-date{display:none}
  @media(max-width:700px){
    .plan-mast{align-items:start;flex-wrap:wrap;padding:18px 15px;gap:12px}
    .plan-mast .plan-mode{padding:0 12px}
    .plan-toolbar{gap:10px}.plan-period{width:100%;justify-content:space-between}
    .plan-week .plan-cell{padding:5px 8px}
    .plan-week .plan-date{padding:4px 1px}
    .plan-month .plan-weekdays,.plan-month .plan-cell:not(.has-events){display:none}
    .plan-month .plan-days{display:block}
    .plan-month .plan-cell{padding:8px;margin:6px 0}
    .plan-month .plan-date span:first-child{display:none}
    .plan-month .plan-full-date{display:inline}
    .plan-month .personal-planning-event{font-size:.88rem}.plan-month .personal-planning-event h2{font-size:1rem}
    .plan-month .personal-planning-event p{display:block}
    .plan-content .personal-planning-event{display:block}
    .plan-week .plan-cell{grid-template-columns:minmax(50px,15%) minmax(0,1fr)}
    .plan-period .button{padding:7px 9px}
  }
}
