:root {
  /* Interface réduite de 25% à la demande. */
  --lpb-red: #8f171b;
  --lpb-red-dark: #681013;
  --lpb-red-soft: #f3e8e5;
  --lpb-line: #dddddd;
  --lpb-line-strong: #d0d0d0;
  --lpb-text: #111111;
  --lpb-muted: #666666;
  --lpb-soft: #f7f3f2;
  --lpb-blue: #dcecff;
  --lpb-blue-text: #2b6297;
  --lpb-green: #e4f4e4;
  --lpb-green-text: #477a46;
  --topbar-height: 130.5px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --topbar-pad-left: max(25.5px, var(--safe-left));
  --topbar-pad-right: max(36px, var(--safe-right));
  --menu-button-width: 84px;
  --brand-wrap-width: 240px;
  --brand-wrap-height: 96px;
  --brand-wrap-margin-left: 9px;
  /* Logo réduit d’environ 10% uniquement sur grande fenêtre. */
  --brand-logo-width: 216px;
  --brand-logo-max-height: 86.5px;
  --brand-separator-height: 78px;
  --brand-separator-gap-left: 25.5px;
  --brand-separator-gap-right: 25.5px;
  --header-height: calc(var(--topbar-height) + var(--safe-top));
  --header-separator-x: calc(var(--topbar-pad-left) + var(--menu-button-width) + var(--brand-wrap-margin-left) + var(--brand-wrap-width) + var(--brand-separator-gap-left));
  --sidebar-width: var(--header-separator-x);
  --sidebar-collapsed-width: 88px;
  --page-content-max-width: 930px;
  --header-title-align-nudge: 9.75px;
  --radius: 12px;
  --shadow: 0 6px 16.5px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--lpb-text);
  background: #ffffff;
  font-family: "DM Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overscroll-behavior: none;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img, audio, video { max-width: 100%; }
button, a, input, textarea, select { -webkit-tap-highlight-color: rgba(104, 16, 19, .12); }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  stroke: currentColor;
  stroke-width: 2.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
  overflow: visible;
}
.sr-only {
  position: absolute !important;
  width: 0.75px !important;
  height: 0.75px !important;
  padding: 0 !important;
  margin: -0.75px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hidden, [hidden] { display: none !important; }

/* Connexion optionnelle */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, var(--safe-top)) max(24px, var(--safe-right)) max(24px, var(--safe-bottom)) max(24px, var(--safe-left));
  background: radial-gradient(circle at 20% 10%, #f9ece8 0, transparent 35%), #fff;
}
.login-card {
  width: min(390px, 100%);
  padding: 31.5px;
  border: 0.75px solid var(--lpb-line);
  border-radius: 21px;
  box-shadow: var(--shadow);
  background: #fff;
}
.login-logo { width: 247.5px; max-width: 100%; display: block; margin: 0 auto 13.5px; }
.login-card h1 { margin: 0; font-size: 25.5px; color: var(--lpb-red-dark); }
.login-card p { color: var(--lpb-muted); margin: 7.5px 0 18px; }
.login-card label { display: grid; gap: 6px; font-weight: 700; }
.login-card input {
  height: 39px;
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  padding: 0 10.5px;
  font-size: 12px;
}
.alert {
  padding: 9.75px 12px;
  border-radius: 9px;
  margin: 0 0 13.5px;
  background: #f2f7ff;
  color: #27547d;
}
.alert.danger { background: #fff1f1; color: #9b1c1c; }

/* Structure principale */
.app-shell { min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #fff;
  display: flex;
  align-items: center;
  padding: var(--safe-top) var(--topbar-pad-right) 0 var(--topbar-pad-left);
  box-shadow: 0 3.75px 12px rgba(0, 0, 0, .18);
}
.menu-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--lpb-red-dark);
  width: var(--menu-button-width);
  min-width: 48px;
  min-height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0;
  font-size: 21px;
  line-height: 1;
}
.menu-button .icon { width: 40.5px; height: 40.5px; stroke-width: 2.3; }
.menu-button span { display: block; width: 100%; text-align: center; }
.brand-wrap {
  width: var(--brand-wrap-width);
  height: var(--brand-wrap-height);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--brand-wrap-margin-left);
  overflow: visible;
  flex: 0 1 auto;
}
.brand-logo {
  display: block;
  width: var(--brand-logo-width);
  max-width: 100%;
  max-height: var(--brand-logo-max-height);
  object-fit: contain;
}
.brand-separator {
  width: 0.75px;
  height: var(--brand-separator-height);
  background: #cfcfcf;
  margin: 0 var(--brand-separator-gap-right) 0 var(--brand-separator-gap-left);
  flex: 0 0 auto;
}
.product-title { display: grid; gap: 9px; min-width: 0; flex: 1 1 auto; }
.product-title strong {
  color: var(--lpb-red-dark);
  font-size: 36px;
  letter-spacing: -.7px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-title span {
  color: #5d5d5d;
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar {
  position: fixed;
  z-index: 50;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: #fff;
  border-right: 0.75px solid #dfdfdf;
  padding: 31.5px 19.5px max(25.5px, var(--safe-bottom));
  transition: transform .22s ease, width .22s ease, padding .22s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sidebar-nav { display: grid; gap: 0; }
.nav-item {
  width: 100%;
  height: 51.6px;
  border: 0;
  background: transparent;
  color: #151515;
  display: flex;
  align-items: center;
  gap: 19.2px;
  border-radius: 10.5px;
  padding: 0 22.8px;
  font-size: 18px;
  text-align: left;
  font-weight: 500;
}
.nav-item .icon { width: 26.4px; height: 26.4px; color: #555555; stroke-width: 2.15; }
.nav-item.active {
  background: var(--lpb-red-soft);
  color: var(--lpb-red-dark);
  font-weight: 700;
}
.nav-item.active .icon { color: var(--lpb-red-dark); stroke-width: 2.35; }
.nav-item:hover { background: #faf4f2; }
.nav-divider { height: 0.75px; background: #dfdfdf; margin: 10.5px 18px 16.5px; }

.main-content {
  margin-left: var(--sidebar-width);
  padding: calc(var(--header-height) + 54px) max(36px, var(--safe-right)) max(52.5px, var(--safe-bottom)) max(36px, var(--safe-left));
  min-height: 100vh;
  min-height: 100dvh;
  transition: margin-left .22s ease;
}
.page-intro h1 {
  margin: 0;
  font-size: 37.5px;
  letter-spacing: -.8px;
  line-height: 1.1;
  font-weight: 800;
}
.page-intro p {
  margin: 13.5px 0 0;
  color: var(--lpb-muted);
  font-size: 21px;
  line-height: 1.25;
}
.toolbar {
  margin-top: 39px;
  display: flex;
  align-items: center;
  gap: 34.5px;
  max-width: 754.5px;
  width: 100%;
}
.btn {
  min-height: 57px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8.25px;
  padding: 0 22.5px;
  border: 0.75px solid var(--lpb-line);
  background: #fff;
  color: #252525;
  font-size: 19.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-0.75px); box-shadow: 0 6px 15px rgba(0,0,0,.08); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #9a2a2d, var(--lpb-red-dark));
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.15), 0 7.5px 15px rgba(104,16,19,.18);
}
.btn.light { background: #fff; color: #202020; border-color: #ddd; }

.btn.ai-blue {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #357ed1, #1f5fa8);
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.16), 0 7.5px 15px rgba(31,95,168,.18);
}
.btn.ai-blue:hover { box-shadow: inset 0 0.75px 0 rgba(255,255,255,.16), 0 8px 16px rgba(31,95,168,.24); }
.btn.export-orange {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #f08a24, #c65f00);
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.16), 0 7.5px 15px rgba(198,95,0,.18);
}
.btn.export-orange:hover { box-shadow: inset 0 0.75px 0 rgba(255,255,255,.16), 0 8px 16px rgba(198,95,0,.22); }
.btn.dark { background: #181818; border-color: #181818; color: #fff; }
.btn.danger { background: #fff5f5; color: #9d171b; border-color: #f0c9ca; }
.btn.full { width: 100%; margin-top: 15px; }
.search-field {
  height: 57px;
  width: auto;
  min-width: 223.5px;
  flex: 1 1 240px;
  max-width: none;
  border: 0.75px solid var(--lpb-line);
  border-radius: 9.75px;
  display: flex;
  align-items: center;
  gap: 12.75px;
  padding: 0 18px;
  color: #6a6a6a;
  background: #fff;
}
.search-field .icon { width: 25.5px; height: 25.5px; stroke-width: 2.2; }
.search-field input {
  border: 0;
  outline: 0;
  width: 100%;
  color: #222;
  font-size: 19.5px;
  background: transparent;
  min-width: 0;
}
.search-field input::placeholder { color: #aaa; }

.notice-area { max-width: 754.5px; margin-top: 18px; }
.toast,
.inline-notice {
  border-radius: 10.5px;
  padding: 12px 13.5px;
  font-size: 13.5px;
  line-height: 1.35;
  background: #f5f8ff;
  color: #244c7c;
  border: 0.75px solid #d6e6ff;
}
.inline-notice.error, .toast.error { background: #fff2f2; color: #8c171b; border-color: #f2c9c9; }
.inline-notice.ok, .toast.ok { background: #f2fbf3; color: #3d743d; border-color: #d7efd8; }

.notes-list {
  margin-top: 33px;
  max-width: 754.5px;
}
.notes-stack {
  border: 0.75px solid var(--lpb-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.activity-stack {
  border: 0.75px solid var(--lpb-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.activity-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  align-items: flex-start;
  padding: 18px 21px;
  border-bottom: 0.75px solid var(--lpb-line);
}
.activity-item:last-child { border-bottom: 0; }
.activity-item:hover { background: #fffdfd; }
.activity-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1e7e4;
  color: var(--lpb-red);
  display: grid;
  place-items: center;
}
.activity-icon .icon {
  width: 22.5px;
  height: 22.5px;
  stroke-width: 2.2;
}
.activity-main { min-width: 0; }
.activity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.activity-head h2 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.25;
  color: #222;
  font-weight: 800;
}
.activity-head time {
  color: var(--lpb-muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  padding-top: 2px;
}
.activity-note-title {
  margin-top: 7.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4c4c4c;
  font-size: 13.5px;
  min-width: 0;
}
.activity-note-title .icon {
  width: 15px;
  height: 15px;
  color: var(--lpb-red);
}
.activity-note-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-details {
  margin: 7.5px 0 0;
  color: var(--lpb-muted);
  font-size: 12.75px;
  line-height: 1.45;
}
.note-card {
  min-height: 162px;
  display: grid;
  grid-template-columns: 81px 1fr auto;
  align-items: center;
  gap: 27px;
  padding: 24px 28.5px 24px 22.5px;
  border-bottom: 0.75px solid var(--lpb-line);
  position: relative;
}
.note-card:last-child { border-bottom: 0; }
.note-card:hover { background: #fffdfd; }
.note-card.analysis-selecting { cursor:pointer; }
.note-card.analysis-selected { background:#fff7f0; box-shadow:inset 4px 0 0 #f08a24; }
.note-analysis-checkbox { display:inline-flex; flex:0 0 auto; cursor:pointer; }
.note-analysis-checkbox input { position:absolute; opacity:0; pointer-events:none; }
.note-analysis-checkbox span { display:grid; place-items:center; width:22px; height:22px; border:1.5px solid #aeb4ba; border-radius:6px; background:#fff; color:transparent; }
.note-analysis-checkbox span .icon { width:14px; height:14px; }
.note-analysis-checkbox input:checked + span { border-color:#f08a24; background:#f08a24; color:#fff; }
.notes-analysis-selector { margin:0 0 14px; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:16px; border:1px solid #ded8d2; border-radius:12px; background:#f1f3f4; }
.notes-analysis-selector > div:first-child { display:flex; flex-direction:column; gap:3px; }
.notes-analysis-selector > div:first-child strong { color:#7c1416; font-size:15px; }
.notes-analysis-selector > div:first-child span { color:#666; font-size:12px; }
.notes-analysis-selector-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.notes-analysis-selector-actions > span { color:#444; font-size:12px; font-weight:700; }
.notes-analysis-selector .btn { min-height:36px; height:36px; padding:0 12px; font-size:12px; }
.notes-analysis-selector .btn .icon { width:15px; height:15px; }
.notes-analysis-selector-actions [data-analysis-action="run"] { color:#fff; border-color:transparent; background:linear-gradient(180deg,#2f75d6,#1857a8); box-shadow:inset 0 .75px 0 rgba(255,255,255,.16),0 7.5px 15px rgba(24,87,168,.18); }
.notes-analysis-selector-actions [data-analysis-action="run"]:hover:not(:disabled) { color:#fff; background:linear-gradient(180deg,#2f75d6,#1857a8); box-shadow:inset 0 .75px 0 rgba(255,255,255,.16),0 7.5px 15px rgba(24,87,168,.24); }
.notes-analysis-selector-actions [data-analysis-action="run"] .icon { color:currentColor; }
.notes-analysis-result { margin:0 0 16px; padding:0 14px 14px; border:1px solid #d3d3d3; border-radius:14px; background:#ededed; overflow:hidden; }
.notes-analysis-result > header { margin:0 -14px 12px; padding:15px 16px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:flex-start; gap:8px 14px; color:#fff; background:linear-gradient(135deg,#7c1416,#a62b2e); }
.notes-analysis-result > header .notes-analysis-header-main { display:flex; min-width:0; align-items:flex-start; gap:5px; }
.notes-analysis-result > header .notes-analysis-brain { flex:0 0 auto; margin-top:-1px; font-size:22px; line-height:1.1; }
.notes-analysis-result > header .icon { width:21px; height:21px; margin-top:2px; }
.notes-analysis-result h2 { margin:0; font-size:18px; }
.notes-analysis-result header p { margin:4px 0 0; font-size:14px; line-height:1.55; }
.notes-analysis-result header .notes-analysis-generated { margin-top:3px; font-size:12px; line-height:1.35; opacity:.88; }
.notes-analysis-result header .notes-analysis-executive { grid-column:1/-1; width:100%; max-width:none; margin:2px 0 0; }
.notes-analysis-result header .btn { flex:0 0 auto; min-height:34px; border-color:#cfd6df; color:#27313f; background:linear-gradient(180deg,#f3f5f7,#d8dde4); box-shadow:inset 0 .75px 0 rgba(255,255,255,.45),0 5px 11px rgba(39,49,63,.10); font-size:12px; }
.notes-analysis-result header .btn:hover:not(:disabled) { background:linear-gradient(180deg,#f8f9fa,#dce1e7); box-shadow:inset 0 .75px 0 rgba(255,255,255,.50),0 6px 13px rgba(39,49,63,.16); }
.notes-analysis-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.notes-analysis-grid article,.notes-analysis-insights { padding:13px; border:1px solid #e1dbd6; border-radius:10px; background:#fff; }
.notes-analysis-result h3 { margin:0 0 8px; color:#7c1416; font-size:14px; }
.notes-analysis-result ul { margin:0; padding-left:19px; }
.notes-analysis-result li { margin:0 0 7px; font-size:14px; line-height:1.55; }
.notes-analysis-result .muted { font-size:14px; line-height:1.55; }
.notes-analysis-insights { margin-top:10px; }
.notes-analysis-insights > div { display:grid; gap:7px; }
.notes-analysis-insights p { margin:0; display:grid; grid-template-columns:minmax(140px,.35fr) 1fr; gap:10px; padding:10px; border-radius:7px; background:#f7f7f7; font-size:14px; line-height:1.55; }
.notes-analysis-export-actions { margin-top:12px; padding-top:12px; display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; border-top:1px solid #d6d0cb; }
.notes-analysis-export-actions .btn { min-height:36px; height:36px; padding:0 12px; font-size:12px; }
.notes-analysis-export-actions .btn .icon { width:15px; height:15px; }
body.presentation-open { overflow:hidden; }
.analysis-presentation-overlay { position:fixed; z-index:10000; inset:0; display:grid; grid-template-rows:auto minmax(0,1fr); background:#17191d; color:#242020; }
.analysis-presentation-stage { position:relative; min-height:0; overflow:hidden; }
.analysis-presentation-frame { position:absolute; inset:0; display:none; padding:clamp(18px,3vw,46px); }
.analysis-presentation-frame.active { display:block; animation:presentation-in .25s ease-out; }
@keyframes presentation-in { from { opacity:.25; transform:translateX(18px); } to { opacity:1; transform:none; } }
.analysis-presentation-slide { width:100%; height:100%; padding:clamp(24px,4vw,64px); overflow:auto; border-radius:20px; background:linear-gradient(145deg,#f7f8f9,#e9ecef); box-shadow:0 18px 60px rgba(0,0,0,.32); }
.analysis-presentation-slide.title-slide { display:flex; flex-direction:column; color:#fff; background:linear-gradient(135deg,#6b0f12 0%,#7c1416 48%,#a62b2e 100%); }
.presentation-brand { display:flex; align-items:center; gap:10px; font-size:14px; font-weight:800; }
.presentation-brand .icon { width:25px; height:25px; }
.presentation-title-content { width:100%; max-width:none; margin:auto 0; }
.presentation-title-content > p:first-child { margin:0 0 12px; color:#ffd8d9; font-size:clamp(13px,1.4vw,20px); font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.presentation-title-content h1 { width:100%; margin:0; max-width:none; font-size:clamp(34px,5.2vw,74px); line-height:1.04; }
.presentation-generated { margin:18px 0 0; color:#f4d8d9; font-size:13px; }
.presentation-summary { width:100%; max-width:none; margin-top:26px; padding:17px 20px; border:1px solid rgba(255,255,255,.28); border-radius:13px; background:rgba(255,255,255,.10); font-size:clamp(15px,1.6vw,22px); line-height:1.45; }
.presentation-slide-heading { display:flex; align-items:center; gap:16px; margin-bottom:clamp(20px,3vw,38px); }
.presentation-slide-heading > span { display:grid; place-items:center; width:58px; height:58px; flex:0 0 58px; border-radius:50%; color:#fff; background:#7c1416; font-size:20px; font-weight:900; }
.presentation-slide-heading p,.presentation-slide-heading h2 { margin:0; }
.presentation-slide-heading p { color:#687078; font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.presentation-slide-heading h2 { color:#7c1416; font-size:clamp(25px,3vw,44px); }
.analysis-presentation-infographic { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(12px,2vw,28px); max-width:1150px; margin:4vh auto; }
.analysis-presentation-metric { display:flex; min-width:0; flex-direction:column; align-items:center; gap:12px; padding:20px 10px; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(40,47,54,.09); text-align:center; }
.analysis-presentation-ring { display:grid; place-items:center; width:clamp(92px,10vw,150px); height:clamp(92px,10vw,150px); border-radius:50%; background:conic-gradient(var(--metric-color) calc(var(--metric)*1%),#e5e8eb 0); position:relative; }
.analysis-presentation-ring::after { content:""; position:absolute; inset:13%; border-radius:50%; background:#fff; }
.analysis-presentation-ring span { position:relative; z-index:1; color:#252a2f; font-size:clamp(25px,3vw,42px); font-weight:900; }
.analysis-presentation-metric strong { color:#3d444b; font-size:clamp(13px,1.3vw,18px); }
.presentation-flow { display:flex; align-items:center; justify-content:center; gap:16px; margin:4vh auto 0; color:#7c1416; font-weight:850; }
.presentation-flow div { padding:15px 22px; border:1px solid #d9dde1; border-radius:12px; background:#fff; box-shadow:0 6px 18px rgba(40,47,54,.07); }
.presentation-flow span { color:#e68a00; font-size:28px; }
.presentation-two-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(14px,2vw,28px); }
.presentation-two-columns article,.presentation-insights article { padding:clamp(18px,2.3vw,32px); border:1px solid #d9dde1; border-radius:16px; background:#fff; box-shadow:0 7px 24px rgba(40,47,54,.07); }
.presentation-two-columns h3 { margin:0 0 16px; color:#7c1416; font-size:clamp(18px,2vw,28px); }
.analysis-presentation-slide ul { margin:0; padding-left:24px; }
.analysis-presentation-slide li { margin:0 0 12px; font-size:clamp(14px,1.35vw,19px); line-height:1.45; }
.presentation-insights { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.presentation-insights strong { color:#7c1416; font-size:17px; }
.presentation-insights p { margin:8px 0 0; font-size:15px; line-height:1.5; }
.presentation-empty { color:#687078; font-size:16px; }
.analysis-presentation-toolbar { position:relative; display:flex; align-items:center; justify-content:center; gap:12px; min-height:64px; padding:9px 18px; background:#0f1114; color:#fff; }
.analysis-presentation-toolbar button { display:grid; place-items:center; width:40px; height:40px; border:1px solid #464b52; border-radius:50%; background:#292d33; color:#fff; cursor:pointer; }
.analysis-presentation-toolbar button:hover:not(:disabled) { border-color:#7c1416; background:#7c1416; }
.analysis-presentation-toolbar button:disabled { opacity:.35; cursor:default; }
.analysis-presentation-toolbar .icon { width:18px; height:18px; }
.analysis-presentation-toolbar .previous .icon { transform:rotate(180deg); }
.analysis-presentation-toolbar .presentation-fullscreen { position:absolute; left:18px; }
.analysis-presentation-toolbar .presentation-close { position:absolute; right:18px; }
.presentation-counter { min-width:70px; text-align:center; font-size:13px; font-weight:800; }
@media (max-width:760px) { .analysis-presentation-frame { padding:8px; } .analysis-presentation-slide { padding:20px 14px; border-radius:12px; } .analysis-presentation-infographic { grid-template-columns:repeat(2,minmax(0,1fr)); } .presentation-two-columns,.presentation-insights { grid-template-columns:1fr; } .presentation-flow { align-items:stretch; flex-direction:column; text-align:center; } .presentation-flow span { transform:rotate(90deg); } .analysis-presentation-toolbar .presentation-fullscreen { left:10px; } .analysis-presentation-toolbar .presentation-close { right:10px; } }
@media (max-width:700px) { .notes-analysis-selector { align-items:stretch; flex-direction:column; } .notes-analysis-selector-actions { justify-content:flex-start; } .notes-analysis-grid { grid-template-columns:1fr; } .notes-analysis-insights p { grid-template-columns:1fr; gap:3px; } }
@media (max-width:560px) { .notes-analysis-export-actions { display:grid; grid-template-columns:1fr; } .notes-analysis-export-actions .btn { width:100%; } }
.note-icon {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 75px;
  height: 75px;
  border-radius: 13.5px;
  background: #f1e7e4;
  color: var(--lpb-red);
  display: grid;
  place-items: center;
}
.note-icon .icon { width: 42.75px; height: 42.75px; stroke-width: 2.4; }
.note-main { min-width: 0; }
.note-title-row {
  display: flex;
  align-items: center;
  gap: 12.75px;
  min-width: 0;
}
.note-title {
  margin: 0;
  font-size: 22.5px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.star-button,
.icon-btn,
.kebab-button,
.play-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #5e5e5e;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.star-button .icon { width: 25.5px; height: 25.5px; stroke-width: 2; }
.star-button.active .icon { color: var(--lpb-red); fill: #f4c542; }
.note-meta {
  margin-top: 7.5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16.5px;
  color: #777;
  font-size: 18px;
}
.meta-piece { display: inline-flex; align-items: center; gap: 8.25px; }
.meta-piece .icon { width: 20.25px; height: 20.25px; stroke-width: 2; }
.tag-row {
  margin-top: 10.5px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.tag {
  min-height: 28.5px;
  display: inline-flex;
  align-items: center;
  border-radius: 11.25px;
  padding: 3px 12px;
  background: #eee7e4;
  color: #68605d;
  font-size: 17.25px;
  line-height: 1;
}
.tag:nth-child(2n) { background: var(--lpb-blue); color: var(--lpb-blue-text); }
.tag:nth-child(3n) { background: var(--lpb-green); color: var(--lpb-green-text); }

.tag.tag-color-neutral,
.dashboard-tag-pill.tag-color-neutral { background: #eee7e4; color: #68605d; }
.tag.tag-color-red,
.dashboard-tag-pill.tag-color-red { background: #f3e8e5; color: #681013; }
.tag.tag-color-orange,
.dashboard-tag-pill.tag-color-orange { background: #fff0df; color: #9a4e00; }
.tag.tag-color-yellow,
.dashboard-tag-pill.tag-color-yellow { background: #fff6cc; color: #80630a; }
.tag.tag-color-green,
.dashboard-tag-pill.tag-color-green { background: var(--lpb-green); color: var(--lpb-green-text); }
.tag.tag-color-teal,
.dashboard-tag-pill.tag-color-teal { background: #dff5f2; color: #2f736c; }
.tag.tag-color-blue,
.dashboard-tag-pill.tag-color-blue { background: var(--lpb-blue); color: var(--lpb-blue-text); }
.tag.tag-color-purple,
.dashboard-tag-pill.tag-color-purple { background: #eee5ff; color: #5c4593; }
.tag.tag-color-pink,
.dashboard-tag-pill.tag-color-pink { background: #ffe4ef; color: #9a315f; }
.tag.tag-color-gray,
.dashboard-tag-pill.tag-color-gray { background: #eeeeee; color: #555555; }

.note-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.play-button {
  width: 55.5px;
  height: 55.5px;
  border-radius: 50%;
  border: 0.75px solid #d9d9d9;
  background: #fff;
  color: #050505;
}
.play-button .icon { width: 26.25px; height: 26.25px; stroke-width: 2.2; fill: currentColor; }
.play-button.is-playing { background: #faf1f0; color: var(--lpb-red-dark); }
.kebab-button .icon { width: 28.5px; height: 28.5px; stroke-width: 2.2; }
.inline-actions-menu {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7.5px;
  margin-top: 3px;
  padding-top: 12px;
  border-top: 0.75px solid var(--lpb-line);
}
.inline-actions-menu button {
  min-height: 33px;
  border: 0.75px solid var(--lpb-line);
  border-radius: 8.25px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7.5px;
  padding: 0 12px;
  font-size: 12px;
  text-align: left;
  font-weight: 650;
}
.inline-actions-menu button:hover { background: #faf4f2; }
.inline-actions-menu .icon { width: 15px; height: 15px; }
.empty-state {
  border: 0.75px dashed #d6d6d6;
  border-radius: 13.5px;
  padding: 34.5px;
  text-align: center;
  color: var(--lpb-muted);
  font-size: 18px;
  background: #fffdfd;
}
.empty-state .icon { width: 51px; height: 51px; color: var(--lpb-red); margin-bottom: 12px; }
.empty-state h3 { margin: 0 0 7.5px; color: #222; font-size: 22.5px; }
.empty-state p { margin: 0; }


/* Accueil : tableau de bord distinct de Mes notes */
.dashboard-view {
  margin-top: 31.5px;
  max-width: 930px;
  display: grid;
  gap: 15px;
}
.dashboard-actions-bar {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  align-items: start;
  gap: 10.5px;
}
.dashboard-actions-bar .btn { width: max-content; }
.dashboard-actions-bar .dashboard-notes-button,
.dashboard-actions-bar .dashboard-favorites-button,
.dashboard-actions-bar .dashboard-settings-button,
.dashboard-actions-bar .dashboard-guide-button {
  background: linear-gradient(180deg, #9a2a2d, var(--lpb-red-dark));
  color: #ffffff;
  border-color: transparent;
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.15), 0 7.5px 15px rgba(104,16,19,.18);
}
.dashboard-guide-button { grid-column: auto; grid-row: auto; }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-metric,
.dashboard-card {
  border: 0.75px solid var(--lpb-line);
  border-radius: 13.5px;
  background: #fff;
  box-shadow: 0 4.5px 13.5px rgba(0,0,0,.045);
}
.dashboard-metric {
  min-height: 126px;
  padding: 16.5px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.dashboard-metric-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--lpb-red);
  background: #f1e7e4;
}
.dashboard-metric-icon .icon { width: 23.25px; height: 23.25px; stroke-width: 2.25; }
.dashboard-metric span {
  display: block;
  color: var(--lpb-muted);
  font-size: 11.25px;
  font-weight: 750;
  line-height: 1.2;
}
.dashboard-metric strong {
  display: block;
  margin-top: 6px;
  color: var(--lpb-red-dark);
  font-size: 31.5px;
  line-height: 1;
  letter-spacing: -.7px;
}
.dashboard-metric p {
  margin: 7.5px 0 0;
  color: var(--lpb-muted);
  font-size: 11.25px;
  line-height: 1.35;
}
.dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr);
  gap: 15px;
  align-items: start;
}
.dashboard-main-stack,
.dashboard-side-stack {
  display: grid;
  gap: 15px;
  align-items: start;
}
.dashboard-ai-card { grid-row: auto; }
.dashboard-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}
.dashboard-card h2 {
  margin: 0;
  color: var(--lpb-red-dark);
  font-size: 19.5px;
  line-height: 1.2;
}
.dashboard-card p {
  margin: 0;
  color: var(--lpb-muted);
  font-size: 12.75px;
  line-height: 1.45;
}
.dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dashboard-state {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10.5px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.dashboard-state.ok { background: #f2fbf3; color: #357a37; }
.dashboard-state.warn { background: #fff7e7; color: #8a5d10; }
.dashboard-progress-row {
  display: grid;
  gap: 6px;
  padding-top: 3px;
}
.dashboard-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10.5px;
  font-size: 12px;
}
.dashboard-progress-head strong { color: #242424; }
.dashboard-progress-head span { color: var(--lpb-red-dark); font-weight: 800; }
.dashboard-progress-track {
  height: 8.25px;
  border-radius: 999px;
  overflow: hidden;
  background: #eee7e4;
}
.dashboard-progress-track span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #9a2a2d, var(--lpb-red-dark));
}
.dashboard-audio-card {
  background: #fffdfd;
  display: grid;
  gap: 10.5px;
}
.dashboard-audio-head {
  display: flex;
  align-items: center;
  gap: 10.5px;
}
.dashboard-audio-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10.5px;
  display: grid;
  place-items: center;
  color: var(--lpb-red);
  background: #f1e7e4;
}
.dashboard-audio-icon .icon { width: 19.5px; height: 19.5px; }
.dashboard-audio-card .dashboard-audio-icon { margin-left: auto; }
.dashboard-audio-head strong {
  display: block;
  color: #242424;
  font-size: 13.5px;
  line-height: 1.15;
}
.dashboard-audio-head p,
.dashboard-audio-card > p {
  margin: 3px 0 0;
  color: var(--lpb-muted);
  font-size: 11.25px;
  line-height: 1.35;
}
.dashboard-audio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7.5px;
}
.dashboard-audio-stats span {
  min-width: 0;
  border: 0.75px solid var(--lpb-line);
  border-radius: 9px;
  background: #fff;
  padding: 8.25px 9px;
  display: grid;
  gap: 3px;
}
.dashboard-audio-stats strong {
  color: var(--lpb-red-dark);
  font-size: 15px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.dashboard-audio-stats small {
  color: var(--lpb-muted);
  font-size: 9.75px;
  font-weight: 750;
}
.dashboard-latest-list { display: grid; gap: 8.25px; }
.dashboard-latest-row {
  appearance: none;
  width: 100%;
  min-height: 58.5px;
  border: 0.75px solid var(--lpb-line);
  border-radius: 10.5px;
  background: #fffdfd;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10.5px;
  padding: 9px 10.5px;
  text-align: left;
  color: inherit;
}
.dashboard-latest-row:hover { background: #faf4f2; }
.dashboard-latest-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--lpb-red);
  background: #f1e7e4;
}
.dashboard-latest-icon .icon { width: 19.5px; height: 19.5px; }
.dashboard-latest-main { min-width: 0; display: grid; gap: 3px; }
.dashboard-latest-main strong {
  font-size: 12.75px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-latest-main small {
  color: var(--lpb-muted);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-latest-arrow { color: #777; display: grid; place-items: center; }
.dashboard-latest-arrow .icon { width: 15px; height: 15px; }
.dashboard-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7.5px;
}
.dashboard-tag-pill {
  min-height: 31.5px;
  display: inline-flex;
  align-items: center;
  gap: 7.5px;
  border-radius: 999px;
  padding: 4.5px 10.5px;
  color: #68605d;
  background: #eee7e4;
  font-size: 11.25px;
}
.dashboard-tag-pill:nth-child(2n) { background: var(--lpb-blue); color: var(--lpb-blue-text); }
.dashboard-tag-pill:nth-child(3n) { background: var(--lpb-green); color: var(--lpb-green-text); }

.tag.tag-color-neutral,
.dashboard-tag-pill.tag-color-neutral { background: #eee7e4; color: #68605d; }
.tag.tag-color-red,
.dashboard-tag-pill.tag-color-red { background: #f3e8e5; color: #681013; }
.tag.tag-color-orange,
.dashboard-tag-pill.tag-color-orange { background: #fff0df; color: #9a4e00; }
.tag.tag-color-yellow,
.dashboard-tag-pill.tag-color-yellow { background: #fff6cc; color: #80630a; }
.tag.tag-color-green,
.dashboard-tag-pill.tag-color-green { background: var(--lpb-green); color: var(--lpb-green-text); }
.tag.tag-color-teal,
.dashboard-tag-pill.tag-color-teal { background: #dff5f2; color: #2f736c; }
.tag.tag-color-blue,
.dashboard-tag-pill.tag-color-blue { background: var(--lpb-blue); color: var(--lpb-blue-text); }
.tag.tag-color-purple,
.dashboard-tag-pill.tag-color-purple { background: #eee5ff; color: #5c4593; }
.tag.tag-color-pink,
.dashboard-tag-pill.tag-color-pink { background: #ffe4ef; color: #9a315f; }
.tag.tag-color-gray,
.dashboard-tag-pill.tag-color-gray { background: #eeeeee; color: #555555; }

.dashboard-tag-pill small {
  min-width: 20.25px;
  height: 20.25px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0 5.25px;
  background: rgba(255,255,255,.72);
  font-size: 10.5px;
  font-weight: 800;
}
.dashboard-empty-mini {
  min-height: 64.5px;
  border: 0.75px dashed #d6d6d6;
  border-radius: 10.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13.5px;
  color: var(--lpb-muted);
  font-size: 12px;
}
.dashboard-empty-mini .icon { width: 20.25px; height: 20.25px; color: var(--lpb-red); }

.dashboard-organization-card {
  display: flex;
  flex-direction: column;
}
.dashboard-organization-card .dashboard-card-actions {
  margin-top: auto;
}

.dashboard-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 0.75px solid var(--lpb-line);
}
.dashboard-card-actions .btn {
  min-height: 43.5px;
  font-size: 13.5px;
  padding: 0 15px;
}
.dashboard-card-actions .btn .icon {
  width: 18px;
  height: 18px;
}
.mini-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--lpb-red-dark);
  padding: 0;
  font-size: 11.25px;
  font-weight: 800;
  white-space: nowrap;
}
.mini-link:hover { text-decoration: underline; }

/* Paramètres */
.settings-view,
.guide-view { margin-top: 31.5px; max-width: 754.5px; display: grid; gap: 15px; }
.guide-grid { display: grid; gap: 15px; }
.guide-card strong { color: var(--lpb-red-dark); }
.settings-card {
  border: 0.75px solid var(--lpb-line);
  border-radius: 13.5px;
  padding: 21px;
  background: #fff;
}
.settings-card h2 { margin: 0 0 10.5px; color: var(--lpb-red-dark); font-size: 21px; }
.settings-card p { margin: 0 0 10.5px; color: var(--lpb-muted); font-size: 13.5px; line-height: 1.45; }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 15px; }
.status-pill {
  border: 0;
  border-radius: 0;
  padding: 0 0 8.25px;
  background: transparent;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.status-pill strong { display: block; color: #222; margin-bottom: 4.5px; font-size: 12.25px; }
.status-pill.ok span { color: #357a37; font-weight: 700; }
.status-pill.warn span { color: #9b6714; font-weight: 700; }
.code-line {
  display: block;
  padding: 9px 10.5px;
  border-radius: 9px;
  background: #1f1f1f;
  color: #fff;
  overflow-x: auto;
  font-size: 11.25px;
  -webkit-overflow-scrolling: touch;
}
.tag-manager {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.tag-rename-row {
  display: grid;
  grid-template-columns: minmax(115px, 1fr) minmax(150px, 1.1fr) minmax(120px, .75fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 0.75px solid var(--lpb-line);
  border-radius: 10.5px;
  background: #fffdfd;
}
.tag-rename-row > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7.5px;
}
.tag-rename-row .tag {
  margin: 0;
  width: fit-content;
}
.tag-rename-row input,
.tag-rename-row select {
  width: 100%;
  height: 36px;
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  padding: 0 10.5px;
  font-size: 12px;
  outline: none;
}
.tag-rename-row .btn {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1;
}
.tag-rename-row input:focus,
.tag-rename-row select:focus {
  border-color: var(--lpb-red);
  box-shadow: 0 0 0 3px rgba(143,23,27,.08);
}
.tag-count {
  color: var(--lpb-muted);
  font-size: 11.25px;
  font-weight: 650;
}

/* Pages intégrées : nouvelle note et détail de note sans popup */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.content-page {
  margin-top: 31.5px;
  max-width: 754.5px;
}
.content-card {
  border: 0.75px solid var(--lpb-line);
  border-radius: 13.5px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 16.5px rgba(0,0,0,.06);
}

.online-meeting-page { width:min(100%,900px); max-width:900px; }
.online-meeting-card .content-header p:last-child { margin:7px 0 0; color:#666; font-size:12px; line-height:1.5; }
.online-meeting-form { padding:22px 25px 25px; }
.online-meeting-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.online-meeting-grid label { display:grid; gap:6px; color:#262626; font-size:12px; font-weight:750; }
.online-meeting-grid input,.online-meeting-grid select,.online-meeting-grid textarea { width:100%; border:.75px solid var(--lpb-line-strong); border-radius:9px; background:#fff; color:#161616; padding:10px 11px; outline:none; font-size:12px; }
.online-meeting-grid input,.online-meeting-grid select { min-height:39px; }
.online-meeting-grid textarea { min-height:84px; resize:vertical; line-height:1.5; }
.online-meeting-grid input:focus,.online-meeting-grid select:focus,.online-meeting-grid textarea:focus { border-color:var(--lpb-red); box-shadow:0 0 0 3px rgba(143,23,27,.08); }
.online-meeting-link-field { grid-column:1/-1; }
.online-meeting-notice { margin-top:16px; padding:12px 14px; display:flex; flex-direction:column; gap:3px; border:1px solid #d9dfe6; border-radius:9px; background:#f4f6f8; color:#3d4650; font-size:12px; }
.online-meeting-notice strong { color:#7c1416; }
.online-meeting-actions { margin-top:18px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.online-meeting-actions .btn { min-height:38px; height:38px; padding:0 13px; font-size:12px; }
.online-meeting-actions .btn .icon { width:15px; height:15px; }
.online-meeting-status { margin-top:14px; padding:12px 14px; border-radius:9px; font-size:12px; line-height:1.5; }
.online-meeting-status.success { border:1px solid #aad5b5; background:#edf8f0; color:#215b30; }
.online-meeting-status.error { border:1px solid #e2b1b1; background:#fff1f1; color:#8a2020; }
@media(max-width:700px){.online-meeting-grid{grid-template-columns:1fr}.online-meeting-link-field{grid-column:auto}.online-meeting-form{padding:18px}.online-meeting-card .content-header{padding:18px}}
.content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22.5px 25.5px 15px;
  border-bottom: 0.75px solid var(--lpb-line);
}
.content-header > div { min-width: 0; }
.content-header h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.back-button {
  min-height: 36px;
  font-size: 12px;
  padding: 0 12px;
  flex: 0 0 auto;
}
.back-button .icon {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}
.eyebrow {
  margin: 0 0 4.5px;
  color: var(--lpb-red);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 9.75px;
  font-weight: 800;
}
.icon-btn {
  width: 33px;
  height: 33px;
  min-width: 33px;
  border-radius: 50%;
  border: 0.75px solid var(--lpb-line);
  background: #fff;
}
.icon-btn .icon { width: 18px; height: 18px; }
.record-layout {
  display: grid;
  grid-template-columns: 325px 1fr;
  gap: 22.5px;
  padding: 22.5px 25.5px 25.5px;
}
.record-visual {
  border-radius: 16.5px;
  background: linear-gradient(180deg, #fff, #f1f3f4);
  border: 0.75px solid #eee1dd;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
}
.mic-orb {
  width: 100.5px;
  height: 100.5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lpb-red);
  background: #f1e4e1;
  box-shadow: inset 0 0 0 7.5px rgba(255,255,255,.45);
}
.mic-orb .icon { width: 51px; height: 51px; }
.mic-orb.recording {
  animation: pulse 1.1s ease-in-out infinite;
  background: var(--lpb-red);
  color: #fff;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.record-time { margin-top: 13.5px; font-size: 31.5px; font-weight: 800; color: var(--lpb-red-dark); }
.record-visual p { margin: 6px 0 10.5px; color: var(--lpb-muted); }
.vu-meter {
  --vu-level: 0%;
  width: 100%;
  max-width: 210px;
  margin: 0 auto 12px;
  padding: 7.5px;
  border: 0.75px solid #eee1dd;
  border-radius: 10.5px;
  background: rgba(255,255,255,.78);
  text-align: left;
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.55);
}
.vu-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7.5px;
  margin-bottom: 5.25px;
  font-size: 9.75px;
  line-height: 1.15;
  color: var(--lpb-muted);
}
.vu-meter-head strong {
  font-size: 9.75px;
  color: #777;
  font-weight: 800;
  white-space: nowrap;
}
.vu-meter-bar {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e9e4e2;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.09);
}
.vu-meter-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255,255,255,.86) 9px 10.5px);
  pointer-events: none;
}
.vu-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--vu-level);
  border-radius: inherit;
  background: linear-gradient(90deg, #2f9e44 0%, #67b346 58%, #f1a92c 78%, #cf2f35 100%);
  transition: width .08s linear;
}
.vu-meter.is-active .vu-meter-head strong { color: #477a46; }
.vu-meter.is-speaking .vu-meter-fill { box-shadow: 0 0 10.5px rgba(47,158,68,.28); }
#recordPreview { width: 100%; }
.note-form { display: grid; gap: 13.5px; }
.tag-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(165px, .48fr);
  gap: 13.5px;
  align-items: end;
}
.detail-tag-edit-grid { grid-template-columns: minmax(0, 1fr) minmax(180px, .42fr); }
.note-form label,
.detail-label,
.transcription-controls label,
.translate-controls label {
  display: grid;
  gap: 6px;
  color: #262626;
  font-size: 12px;
  font-weight: 750;
}
.note-form input,
.note-form select,
.detail-label input,
.detail-label select,
.detail-label textarea,
.transcription-controls select,
.translate-controls select,
.summary-box textarea,
.translate-box textarea {
  width: 100%;
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  background: #fff;
  color: #161616;
  padding: 9.75px 10.5px;
  outline: none;
  font-size: 12px;
}
.note-form input,
.note-form select,
.detail-label input,
.detail-label select,
.transcription-controls select,
.translate-controls select { height: 37.5px; }
.note-form input:focus,
.note-form select:focus,
.detail-label input:focus,
.detail-label select:focus,
.detail-label textarea:focus,
.transcription-controls select:focus,
.translate-controls select:focus,
.summary-box textarea:focus,
.translate-box textarea:focus { border-color: var(--lpb-red); box-shadow: 0 0 0 3px rgba(143,23,27,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13.5px; align-items: end; }
.check-line {
  min-height: 37.5px;
  display: flex !important;
  align-items: center;
  gap: 7.5px !important;
  padding: 0 9px;
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  font-weight: 650 !important;
}
.check-line input { width: 13.5px; height: 13.5px; }
.record-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 1.5px; }
.record-actions .btn { min-height: 40.5px; font-size: 13.5px; padding: 0 13.5px; }
.record-actions .btn .icon { width: 16.5px; height: 16.5px; }
.form-help { margin: 0; color: var(--lpb-muted); line-height: 1.45; font-size: 10.5px; }

.note-detail-card { max-width: 100%; }
.detail-body { padding: 18px 25.5px max(25.5px, var(--safe-bottom)); display: grid; gap: 13.5px; }
.detail-audio { width: 100%; }
.note-detail-overview { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr); align-items:stretch; gap:24px; }
.note-detail-fields { display:grid; align-content:start; gap:13.5px; min-width:0; }
.note-multimedia-card { display:flex; min-width:0; margin-top:-48px; flex-direction:column; padding:13px; border:1px solid #d6d9dd; border-radius:12px; background:#f1f3f4; }
.note-multimedia-header { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.note-multimedia-card h3 { margin:0; color:#7c1416; font-family:inherit; font-size:16px; font-weight:800; }
.note-multimedia-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.note-media-mode-toggle { min-height:25px; padding:4px 10px; border:1px solid #d2d5d9; border-radius:7px; background:linear-gradient(180deg,#fff 0%,#e4e6e8 100%); color:#34383c; font:inherit; font-size:12px; font-weight:700; line-height:1.15; cursor:pointer; }
.note-media-mode-toggle:hover { border-color:#b9bdc1; background:linear-gradient(180deg,#fff 0%,#d9dcdf 100%); }
.note-multimedia-toggle { display:inline-grid; place-items:center; flex:0 0 22px; width:22px; height:22px; padding:0; border:1px solid #d2d5d9; border-radius:50%; background:#fff; color:#7c1416; font-family:inherit; font-size:18px; font-weight:500; line-height:1; cursor:pointer; }
.note-multimedia-toggle:hover { border-color:#b9bdc1; background:#fafafa; }
.note-multimedia-body { display:flex; min-width:0; flex:1; flex-direction:column; gap:10px; margin-top:10px; }
.detail-spectrum { position:relative; height:54px; min-height:54px; overflow:hidden; border:1px solid #C1C2C3; border-radius:9px; background:#f1f3f4; box-shadow:inset 0 0 22px rgba(193,194,195,.08); }
.detail-spectrum::after { content:""; position:absolute; inset:50% 0 auto; border-top:1px solid rgba(193,194,195,.30); box-shadow:0 0 7px rgba(193,194,195,.22); pointer-events:none; }
.detail-spectrum canvas { display:block; width:100%; height:54px; }
.note-multimedia-card .detail-audio { display:block; min-height:40px; margin-top:auto; }
.note-multimedia-card .detail-video { display:block; width:100%; max-height:min(68vh,620px); border-radius:9px; background:#111; }
.note-multimedia-card .detail-image { display:block; width:100%; max-height:180px; object-fit:contain; border:1px solid #d6d9dd; border-radius:9px; background:#fff; }
.note-detail-overview.multimedia-wide .detail-image { max-height:min(68vh,720px); }
.note-detail-overview.multimedia-wide { grid-template-columns:minmax(0,1fr); }
.note-detail-overview.multimedia-wide .note-multimedia-card { grid-column:1 / -1; width:100%; margin-top:0; }
@media (min-width:901px) { .detail-spectrum,.detail-image { cursor:zoom-in; } .note-detail-overview.multimedia-wide .detail-spectrum,.note-detail-overview.multimedia-wide .detail-image { cursor:zoom-out; } }
@media (max-width:900px) { .note-detail-overview { grid-template-columns:1fr; } .note-multimedia-card { min-width:0; margin-top:0; } }
.transcription-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
}
.transcription-method-label { min-width: 0; }
.transcription-controls .btn {
  min-height: 36px;
  font-size: 12px;
  padding: 0 12px;
  white-space: nowrap;
}
.transcription-controls .btn .icon { width: 15px; height: 15px; }

.ai-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 9px;
}
.translate-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
}
.pro39-settings-translation .translate-controls { grid-template-columns:165px auto minmax(180px,.85fr) 170px auto; }
.summary-source-label { width:165px; max-width:100%; justify-self:start; }
.translation-language-label { width:170px; max-width:100%; justify-self:start; }
.pro39-settings-translation input,
.pro39-settings-translation select { width:100%; min-height:36px; }
.recording-date-control { position:relative; display:block; width:100%; min-height:36px; }
.recording-date-control .recording-date-display { display:block; width:100%; min-height:36px; padding:0 38px 0 11px; border:1px solid #d9d2cc; border-radius:9px; background:#fff; color:#2d2927; pointer-events:none; }
.recording-date-icon { position:absolute; z-index:1; top:50%; right:11px; width:17px; height:17px; color:#111; transform:translateY(-50%); pointer-events:none; }
.recording-date-control #detailRecordingDate { position:absolute; z-index:2; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.recording-date-control:focus-within .recording-date-display { border-color:#7c1416; box-shadow:0 0 0 2px rgba(124,20,22,.1); }
.ai-actions .btn,
.detail-actions .btn,
.translate-controls .btn { min-height: 36px; font-size: 12px; padding: 0 12px; }
.ai-actions .btn .icon,
.detail-actions .btn .icon,
.translate-controls .btn .icon { width: 15px; height: 15px; }
.summary-box,
.translate-box,
.translation-output {
  display: grid;
  gap: 10.5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.field-copy-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
}
.field-copy-row .btn {
  min-height: 36px;
  font-size: 12px;
  padding: 0 12px;
}
.field-copy-row .btn .icon { width: 15px; height: 15px; }
.translate-controls label { min-width: 0; }
.detail-label textarea,
.summary-box textarea,
.translate-box textarea { resize: vertical; line-height: 1.5; }
.translation-label { margin-top: 1.5px; }

body.menu-open { overflow: hidden; }
body.menu-open .sidebar { transform: translateY(0); }
body.menu-open .overlay { display: block; }

@media (max-width: 1280px) {
  :root {
    --topbar-height: 105px;
    --topbar-pad-left: max(21px, var(--safe-left));
    --topbar-pad-right: max(24px, var(--safe-right));
    --menu-button-width: 70.5px;
    --brand-wrap-width: 189px;
    --brand-wrap-height: 79.5px;
    --brand-wrap-margin-left: 4.5px;
    --brand-logo-width: 195px;
    --brand-logo-max-height: 79.5px;
    --brand-separator-height: 61.5px;
    --brand-separator-gap-left: 18px;
    --brand-separator-gap-right: 18px;
    --sidebar-width: var(--header-separator-x);
  }
  .topbar { padding: var(--safe-top) var(--topbar-pad-right) 0 var(--topbar-pad-left); }
  .menu-button { width: var(--menu-button-width); font-size: 16.5px; gap: 6.75px; }
  .menu-button .icon { width: 33px; height: 33px; }
  .brand-wrap { width: var(--brand-wrap-width); height: var(--brand-wrap-height); margin-left: var(--brand-wrap-margin-left); }
  .brand-logo { width: var(--brand-logo-width); max-height: var(--brand-logo-max-height); }
  .brand-separator { height: var(--brand-separator-height); margin: 0 var(--brand-separator-gap-right) 0 var(--brand-separator-gap-left); }
  .product-title { gap: 6.75px; }
  .product-title strong { font-size: 28.5px; }
  .product-title span { font-size: 16.5px; }
  .sidebar { padding: 24px 15px max(22.5px, var(--safe-bottom)); }
  .nav-item { height: 55.5px; font-size: 17.25px; padding: 0 19.5px; gap: 16.5px; }
  .nav-item .icon { width: 27px; height: 27px; }
  .main-content { padding: calc(var(--header-height) + 37.5px) max(28.5px, var(--safe-right)) max(45px, var(--safe-bottom)) max(28.5px, var(--safe-left)); }
  .page-intro h1 { font-size: 33px; }
  .page-intro p { font-size: 18px; }
  .toolbar { margin-top: 31.5px; gap: 15px; flex-wrap: wrap; }
  .search-field { width: auto; max-width: none; min-width: min(315px, 100%); flex: 1 1 315px; }
}

/* Correctif : sur ordinateur avec fenêtre moyenne, réduire le logo d'environ 10%
   sans modifier l'affichage tablette/iPhone ni les petites fenêtres. */
@media (min-width: 901px) and (max-width: 1280px) {
  :root {
    --brand-logo-width: 175.5px;
    --brand-logo-max-height: 71.5px;
  }
}

@media (max-width: 900px) {
  :root {
    --topbar-height: 84px;
    --topbar-pad-left: max(15px, var(--safe-left));
    --topbar-pad-right: max(15px, var(--safe-right));
    --menu-button-width: 54px;
    --brand-wrap-width: 135px;
    --brand-wrap-height: 66px;
    --brand-wrap-margin-left: 0px;
    --brand-logo-width: 142.5px;
    --brand-logo-max-height: 66px;
    --brand-separator-height: 52.5px;
    --brand-separator-gap-left: 12px;
    --brand-separator-gap-right: 12px;
    --sidebar-width: var(--header-separator-x);
  }
  .topbar { padding: var(--safe-top) var(--topbar-pad-right) 0 var(--topbar-pad-left); }
  .menu-button { width: var(--menu-button-width); font-size: 13.5px; gap: 5.25px; }
  .menu-button .icon { width: 27px; height: 27px; }
  .brand-wrap { width: var(--brand-wrap-width); height: var(--brand-wrap-height); margin-left: var(--brand-wrap-margin-left); }
  .brand-logo { width: var(--brand-logo-width); max-height: var(--brand-logo-max-height); }
  .brand-separator { height: var(--brand-separator-height); margin: 0 var(--brand-separator-gap-right) 0 var(--brand-separator-gap-left); }
  .product-title strong { font-size: 19.5px; }
  .product-title span { font-size: 12px; }
  .sidebar {
    top: var(--header-height);
    transform: translateY(calc(-100% - 1px));
    box-shadow: none;
    border-right: 0.75px solid #dfdfdf;
    border-bottom: 0.75px solid #dfdfdf;
    z-index: 50;
    max-height: calc(100dvh - var(--header-height));
  }
  .main-content {
    margin-left: 0;
    padding: calc(var(--header-height) + 24px) max(16.5px, var(--safe-right)) max(34.5px, var(--safe-bottom)) max(16.5px, var(--safe-left));
  }
  .page-intro h1 { font-size: 28.5px; }
  .page-intro p { font-size: 15px; }
  .toolbar { margin-top: 22.5px; gap: 10.5px; }
  .btn { min-height: 43.5px; font-size: 13.5px; padding: 0 13.5px; }
  .btn .icon { width: 18px; height: 18px; }
  .search-field { height: 43.5px; font-size: 13.5px; }
  .search-field input { font-size: 13.5px; }
  .note-card { grid-template-columns: 54px 1fr; gap: 13.5px; padding: 16.5px; }
  .note-icon { width: 54px; height: 54px; border-radius: 12px; }
  .note-icon .icon { width: 30px; height: 30px; }
  .note-title { font-size: 16.5px; white-space: normal; }
  .note-meta { font-size: 12px; gap: 9px; }
  .tag { font-size: 11.25px; min-height: 21px; padding: 2.25px 7.5px; }
  .note-actions { grid-column: 1 / -1; justify-content: flex-end; gap: 15px; }
  .play-button { width: 42px; height: 42px; }
  .content-page { max-width: none; }
  .record-layout { grid-template-columns: 1fr; }
  .content-header { padding: 16.5px 16.5px 12px; }
  .record-layout, .detail-body { padding: 16.5px max(16.5px, var(--safe-right)) max(16.5px, var(--safe-bottom)) max(16.5px, var(--safe-left)); }
  .form-row, .tag-edit-grid, .detail-tag-edit-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .tag-rename-row { grid-template-columns: 1fr; align-items: stretch; }
  .tag-rename-row .btn { width: 100%; }
}

@media (max-width: 900px) and (min-width: 701px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root {
    --topbar-height: 73.5px;
    --topbar-pad-left: max(12px, var(--safe-left));
    --topbar-pad-right: max(12px, var(--safe-right));
    --menu-button-width: 46.5px;
    --brand-wrap-width: 103.5px;
    --brand-wrap-height: 58.5px;
    --brand-wrap-margin-left: 0px;
    --brand-logo-width: 109.5px;
    --brand-logo-max-height: 58.5px;
    --brand-separator-height: 43.5px;
    --brand-separator-gap-left: 9px;
    --brand-separator-gap-right: 9px;
    --sidebar-width: var(--header-separator-x);
  }
  .topbar { padding: var(--safe-top) var(--topbar-pad-right) 0 var(--topbar-pad-left); }
  .menu-button { width: var(--menu-button-width); min-width: 39px; font-size: 10.5px; gap: 4.5px; }
  .menu-button .icon { width: 24px; height: 24px; }
  .brand-wrap { width: var(--brand-wrap-width); height: var(--brand-wrap-height); }
  .brand-logo { width: var(--brand-logo-width); max-height: var(--brand-logo-max-height); }
  .product-title { gap: 3.75px; }
  .product-title span { display: block; font-size: clamp(9.75px, 2.7vw, 11.25px); line-height: 1.05; }
  .product-title strong { font-size: clamp(12px, 3.7vw, 15px); max-width: none; }
  .sidebar { padding: 13.5px 9px max(16.5px, var(--safe-bottom)); }
  .nav-item { height: 48px; padding: 0 10.5px; gap: 8.25px; font-size: 13.5px; border-radius: 8.25px; white-space: nowrap; }
  .nav-item .icon { width: 22.5px; height: 22.5px; }
  .nav-divider { margin: 7.5px 9px 10.5px; }
  .main-content { padding-top: calc(var(--header-height) + 19.5px); }
  .page-intro h1 { font-size: 25.5px; }
  .page-intro p { margin-top: 7.5px; font-size: 13.5px; }
  .toolbar { flex-direction: column; align-items: stretch; margin-top: 19.5px; }
  .toolbar .btn, .search-field { width: 100%; max-width: none; }
  .notes-list { margin-top: 21px; }
  .note-card { min-height: 0; grid-template-columns: 48px 1fr; gap: 10.5px; padding: 13.5px; }
  .note-title-row { gap: 7.5px; align-items: flex-start; }
  .note-title { font-size: 15.75px; }
  .star-button .icon { width: 22.5px; height: 22.5px; }
  .note-meta { margin-top: 6px; font-size: 11.25px; }
  .tag-row { margin-top: 7.5px; gap: 6px; }
  .note-actions { justify-content: flex-start; }
  .record-visual { min-height: 187.5px; }
  .mic-orb { width: 81px; height: 81px; }
  .mic-orb .icon { width: 42px; height: 42px; }
  .record-time { font-size: 27px; }
}

@media (max-width: 560px) {
  :root {
    --topbar-height: 69px;
    --brand-wrap-width: 91.5px;
    --brand-wrap-height: 55.5px;
    --brand-logo-width: 99px;
    --brand-logo-max-height: 55.5px;
    --brand-separator-height: 39px;
    --brand-separator-gap-left: 7.5px;
    --brand-separator-gap-right: 7.5px;
    --sidebar-width: var(--header-separator-x);
  }
  .brand-wrap { width: var(--brand-wrap-width); height: var(--brand-wrap-height); }
  .brand-logo { width: var(--brand-logo-width); max-height: var(--brand-logo-max-height); }
  .product-title strong { font-size: clamp(11.25px, 3.5vw, 13.5px); max-width: none; }
  .product-title span { font-size: clamp(9px, 2.5vw, 10.5px); }
  .main-content { padding-left: max(12px, var(--safe-left)); padding-right: max(12px, var(--safe-right)); }
  .btn { min-height: 42px; font-size: 12.75px; }
  .search-field { height: 42px; padding: 0 13.5px; }
  .search-field .icon { width: 19.5px; height: 19.5px; }
  .note-card { grid-template-columns: 1fr; }
  .note-icon { display: none; }
  .note-actions { justify-content: space-between; }
  .content-header h2 { font-size: 20.25px; }
  .content-header { display: grid; }
  .content-header .back-button { width: 100%; }
  .record-actions, .ai-actions, .detail-actions { display: grid; grid-template-columns: 1fr; }
  .record-actions .btn, .ai-actions .btn, .detail-actions .btn { width: 100%; }
  .translate-controls { grid-template-columns: minmax(0, 1fr) auto; gap: 7.5px; }
  .translate-controls label { width: 100%; min-width: 0; }
  .translate-controls .btn { width: auto; min-width: max-content; padding: 0 9px; font-size: 11.25px; white-space: nowrap; }
  .translate-controls .btn .icon { width: 13.5px; height: 13.5px; display: block; }
  .transcription-controls { grid-template-columns: minmax(0, 1fr) auto; gap: 7.5px; }
  .transcription-controls .btn { padding: 0 9px; font-size: 11.25px; }
  .transcription-controls .btn .icon { width: 13.5px; height: 13.5px; }
  .settings-card { padding: 15px; }
  .empty-state { padding: 22.5px 13.5px; font-size: 13.5px; }
  .empty-state h3 { font-size: 18px; }
}

@media (max-width: 430px) {
  :root {
    --topbar-height: 64.5px;
    --topbar-pad-left: max(10.5px, var(--safe-left));
    --topbar-pad-right: max(10.5px, var(--safe-right));
    --menu-button-width: 39px;
    --brand-wrap-width: 78px;
    --brand-wrap-height: 51px;
    --brand-logo-width: 84px;
    --brand-logo-max-height: 51px;
    --brand-separator-height: 36px;
    --brand-separator-gap-left: 6px;
    --brand-separator-gap-right: 6px;
    --sidebar-width: var(--header-separator-x);
  }
  .topbar { padding-left: var(--topbar-pad-left); padding-right: var(--topbar-pad-right); }
  .menu-button { width: var(--menu-button-width); min-width: 36px; font-size: 9px; }
  .menu-button .icon { width: 21px; height: 21px; }
  .brand-wrap { width: var(--brand-wrap-width); height: var(--brand-wrap-height); }
  .brand-logo { width: var(--brand-logo-width); max-height: var(--brand-logo-max-height); }
  .product-title strong { font-size: clamp(10.5px, 3.3vw, 12px); max-width: none; }
  .product-title span { font-size: clamp(8.25px, 2.45vw, 9.75px); }
  .nav-item { height: 45px; padding: 0 7.5px; gap: 6px; font-size: 11.25px; }
  .nav-item .icon { width: 19.5px; height: 19.5px; }
  .main-content { padding-top: calc(var(--header-height) + 16.5px); }
  .page-intro h1 { font-size: 22.5px; letter-spacing: -.35px; }
  .page-intro p { font-size: 12px; }
  .transcription-controls .btn,
  .translate-controls .btn { padding: 0 7.5px; font-size: 10.5px; }
  .transcription-controls .btn .icon,
  .translate-controls .btn .icon { display: block; width: 12.75px; height: 12.75px; flex: 0 0 auto; }
  .toolbar { margin-top: 16.5px; }
  .notes-list { margin-top: 16.5px; }
  .notes-stack { border-radius: 10.5px; }
  .note-card { padding: 12px; }
  .note-title { font-size: 15px; }
  .note-meta { font-size: 10.5px; }
  .meta-piece .icon { width: 15px; height: 15px; }
  .play-button { width: 37.5px; height: 37.5px; }
  .kebab-button .icon { width: 24px; height: 24px; }
  .content-header { padding: 13.5px 13.5px 10.5px; }
  .record-layout, .detail-body { padding: 13.5px max(12px, var(--safe-right)) max(16.5px, var(--safe-bottom)) max(12px, var(--safe-left)); }
  .record-visual { min-height: 165px; padding: 13.5px; }
  .login-page { padding: max(13.5px, var(--safe-top)) max(13.5px, var(--safe-right)) max(13.5px, var(--safe-bottom)) max(13.5px, var(--safe-left)); }
  .login-card { padding: 19.5px 15px; border-radius: 16.5px; }
  .login-card h1 { font-size: 21px; }
}

@media (max-width: 360px) {
  :root {
    --brand-wrap-width: 78px;
    --brand-logo-width: 82.5px;
    --brand-logo-max-height: 51px;
    --sidebar-width: var(--header-separator-x);
  }
  .product-title { display: grid; gap: 2.25px; }
  .product-title strong { font-size: 10.5px; max-width: none; }
  .product-title span { display: block; font-size: 8.25px; max-width: none; }
  .brand-wrap { width: var(--brand-wrap-width); justify-content: flex-start; }
  .brand-logo { width: var(--brand-logo-width); }
  .btn { font-size: 12px; padding: 0 10.5px; }
}


/* Correctifs demandés : le menu mobile descend sous la barre du haut,
   l'ombre de la barre reste visible au-dessus du menu, et le sous-titre
   de l'en-tête demeure affiché sur iPhone. */
@media (max-width: 900px) {
  .topbar { z-index: 70; }
  .sidebar {
    top: var(--header-height);
    z-index: 50;
    transform: translateY(calc(-100% - 1px));
    box-shadow: none;
  }
  .overlay { z-index: 40; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-open .sidebar { transform: translateY(0); }
}

@media (max-width: 900px) and (min-width: 701px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .product-title {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 3px;
  }
  .product-title strong,
  .product-title span {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-title strong { font-size: clamp(10.5px, 3.55vw, 15px); line-height: .98; }
  .product-title span { font-size: clamp(8.25px, 2.55vw, 11.25px); line-height: 1.05; }
}

@media (max-width: 360px) {
  :root {
    --brand-wrap-width: 78px;
    --brand-logo-width: 82.5px;
    --brand-logo-max-height: 51px;
    --sidebar-width: var(--header-separator-x);
  }
  .product-title { display: grid; }
}


@media (max-width: 1280px) {
  .dashboard-view { max-width: 870px; }
  .dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .dashboard-view { max-width: none; margin-top: 22.5px; }
  .dashboard-actions-bar { gap: 9px; }
  .dashboard-panels { grid-template-columns: 1fr; }
  .dashboard-ai-card { grid-row: auto; }
  .dashboard-metric { min-height: 105px; padding: 13.5px; }
  .dashboard-metric strong { font-size: 27px; }
}

@media (max-width: 560px) {
  .dashboard-actions-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10.5px;
  }
  .dashboard-actions-bar .btn {
    width: 100%;
    height: 57px;
    min-height: 57px;
    justify-content: center;
    padding: 0 9px;
    gap: 7.5px;
    font-size: 14.25px;
    font-weight: 800;
    white-space: nowrap;
  }
  .dashboard-actions-bar .btn .icon { width: 18.75px; height: 18.75px; }
  .dashboard-guide-button { grid-column: auto; grid-row: auto; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 9px; }
  .dashboard-metric { min-height: 0; align-items: center; }
  .dashboard-card { padding: 15px; }
  .dashboard-audio-stats { grid-template-columns: 1fr; }
  .dashboard-card-head { align-items: flex-start; }
  .dashboard-state { margin-top: 1.5px; }
  .dashboard-latest-row { grid-template-columns: 33px minmax(0, 1fr) 15px; }
}

@media (max-width: 430px) {
  .dashboard-card h2 { font-size: 17.25px; }
  .dashboard-metric strong { font-size: 24px; }
  .dashboard-metric-icon { width: 37.5px; height: 37.5px; min-width: 37.5px; }
  .dashboard-metric-icon .icon { width: 20.25px; height: 20.25px; }
}

@media (max-width: 430px) {
  .dashboard-actions-bar { gap: 10.5px; }
  .dashboard-actions-bar .btn {
    height: 57px;
    min-height: 57px;
    padding: 0 7.5px;
    gap: 7.5px;
    font-size: 14px;
    font-weight: 800;
  }
  .dashboard-actions-bar .btn .icon { width: 18px; height: 18px; }
}

/* Compatibilité iPhone : éviter le zoom automatique lors du focus sur les champs. */
@media (max-width: 900px) and (min-width: 701px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  input, textarea, select { font-size: 16px !important; }
}


@media (max-width: 360px) {
  .transcription-controls,
  .translate-controls { gap: 6px; }
  .transcription-controls .btn,
  .translate-controls .btn { padding: 0 6px; font-size: 9.75px; }
  .transcription-controls .btn .icon,
  .translate-controls .btn .icon { width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Correctif responsive : conserver les boutons écouter/options à droite
   même lorsque la fenêtre est réduite. */
.note-actions {
  justify-self: end;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
.play-button,
.kebab-button {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .note-card {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
  }
  .note-actions {
    grid-column: auto;
    justify-content: flex-end;
    justify-self: end;
    align-self: center;
  }
  .note-main,
  .note-title-row,
  .note-title {
    min-width: 0;
  }
  .star-button {
    flex: 0 0 auto;
  }
  .inline-actions-menu {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) and (min-width: 701px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .note-card {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }
  .note-actions {
    gap: 12px;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .note-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .note-actions {
    grid-column: auto;
    justify-content: flex-end;
    gap: 10.5px;
  }
  .note-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 430px) {
  .note-actions {
    gap: 9px;
  }
}

/* Correctif demandé : sous le champ Transcription, garder Copier à gauche
   et Résumer via IA à droite sans étirer les boutons sur iPhone. */
.ai-actions.transcript-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 9px;
}
.ai-actions.transcript-actions .btn {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .record-actions.ai-actions.transcript-actions,
  .ai-actions.transcript-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    align-items: center;
    gap: 7.5px;
  }
  .ai-actions.transcript-actions .btn {
    width: auto !important;
    min-width: 0;
    max-width: max-content;
    flex: 0 0 auto;
    padding: 0 7.5px;
    font-size: 11.25px;
    justify-content: center;
  }
  .ai-actions.transcript-actions .btn .icon {
    display: block;
    flex: 0 0 auto;
    width: 13.5px;
    height: 13.5px;
  }
}

@media (max-width: 360px) {
  .ai-actions.transcript-actions {
    gap: 6px;
  }
  .ai-actions.transcript-actions .btn {
    padding: 0 6px;
    gap: 4.5px;
    font-size: 10.5px;
  }
}

/* Boutons sous Résumé et Traduction : Copier + Effacer et masquer, côte à côte et non étirés. */
.field-copy-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.field-copy-row::-webkit-scrollbar { display: none; }
.field-copy-row .btn {
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}
.field-copy-row .btn .icon {
  display: block;
  flex: 0 0 auto;
}

@media (max-width: 430px) {
  .field-copy-row { gap: 6px; }
  .field-copy-row .btn {
    padding: 0 7.5px;
    font-size: 10.5px;
  }
  .field-copy-row .btn .icon {
    width: 12.75px;
    height: 12.75px;
  }
}

@media (max-width: 360px) {
  .field-copy-row .btn {
    padding: 0 6px;
    gap: 4.5px;
    font-size: 10.2px;
  }
}

/* Menu gauche sur ordinateur/grande fenêtre : contenu réduit de 20% seulement.
   Les icônes de boutons, cartes et affichages tablette/iPhone ne sont pas modifiées. */
@media (min-width: 1281px) {
  .sidebar-nav .nav-item {
    height: 51.6px;
    gap: 19.2px;
    padding: 0 22.8px;
    font-size: 18px;
  }
  .sidebar-nav .nav-item .icon {
    width: 26.4px;
    height: 26.4px;
    stroke-width: 1.72;
  }
  .sidebar-nav .nav-item.active .icon {
    stroke-width: 1.88;
  }
  .sidebar-nav .nav-divider {
    margin: 8.4px 14.4px 13.2px;
  }
}


/* Sur ordinateur : menu complet, puis minimisé à icônes, puis masqué en pleine largeur. */
@media (min-width: 901px) {
  body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
    padding-left: 10.5px;
    padding-right: 10.5px;
  }
  body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
  }
  body.sidebar-collapsed .page-intro,
  body.sidebar-collapsed .toolbar,
  body.sidebar-collapsed .notice-area,
  body.sidebar-collapsed .notes-list,
  body.sidebar-collapsed .settings-view,
  body.sidebar-collapsed .guide-view,
  body.sidebar-collapsed .profile-view,
  body.sidebar-collapsed .folders-view,
  body.sidebar-collapsed .content-page,
  body.sidebar-collapsed .dashboard-view,
  body.sidebar-collapsed .record-top-actions {
    width: 100%;
    max-width: calc(var(--page-content-max-width) + var(--sidebar-width) - var(--sidebar-collapsed-width));
  }
  body.sidebar-collapsed .sidebar-nav .nav-item {
    justify-content: center;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
  }
  body.sidebar-collapsed .sidebar-nav .nav-item span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  body.sidebar-collapsed .sidebar-nav .nav-divider {
    margin-left: 9px;
    margin-right: 9px;
  }
  body.sidebar-hidden .sidebar {
    width: 0;
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
    overflow: hidden;
    transform: translateX(-100%);
  }
  body.sidebar-hidden .main-content {
    margin-left: 0;
  }
  body.sidebar-hidden .page-intro,
  body.sidebar-hidden .toolbar,
  body.sidebar-hidden .notice-area,
  body.sidebar-hidden .notes-list,
  body.sidebar-hidden .settings-view,
  body.sidebar-hidden .guide-view,
  body.sidebar-hidden .profile-view,
  body.sidebar-hidden .folders-view,
  body.sidebar-hidden .content-page,
  body.sidebar-hidden .dashboard-view,
  body.sidebar-hidden .record-top-actions {
    width: 100%;
    max-width: none;
  }
}

/* Grandes fenêtres : réduire de 20% le titre et le sous-titre des pages. */
@media (min-width: 1281px) {
  #viewTitle {
    font-size: 30px;
    letter-spacing: -.64px;
  }
  #viewSubtitle {
    font-size: 16.8px;
  }
}


/* Grandes fenêtres : toutes les pages principales utilisent la même largeur que le tableau de bord. */
@media (min-width: 901px) {
  .page-intro,
  .toolbar,
  .notice-area,
  .notes-list,
  .settings-view,
  .guide-view,
  .profile-view,
  .folders-view,
  .content-page,
  .dashboard-view {
    max-width: var(--page-content-max-width);
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  :root {
    --page-content-max-width: 870px;
  }
}

/* Barre de recherche : largeur alignée sur la largeur utile de la page. */
.toolbar {
  width: 100%;
}
.toolbar .btn {
  flex: 0 0 auto;
}
.toolbar .search-field {
  flex: 1 1 300px;
  width: auto;
  max-width: none;
  min-width: 220px;
}

@media (min-width: 901px) {
  .toolbar {
    max-width: var(--page-content-max-width);
  }
}

@media (max-width: 900px) and (min-width: 701px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .toolbar .search-field {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}


/* Barres d’actions des listes : boutons sur la première ligne, recherche sur la ligne suivante. */
.toolbar.list-toolbar-expanded {
  flex-wrap: wrap;
  row-gap: 13.5px;
  column-gap: 10.5px;
}
.toolbar.list-toolbar-expanded .search-field {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}
.toolbar.list-toolbar-expanded .btn {
  flex: 0 0 auto;
}

/* Nouvelle note : haut de tuile simplifié sans titre interne ni bouton Retour. */
.record-shortcuts {
  display: flex;
  align-items: center;
  gap: 10.5px;
  padding: 16.5px 16.5px 0;
  flex-wrap: wrap;
}
.record-shortcuts .btn {
  min-height: 43.5px;
  font-size: 13.5px;
  padding: 0 15px;
}
.record-shortcuts .btn .icon {
  width: 18px;
  height: 18px;
}


/* Alignement bureau : le titre de l’en-tête commence au même endroit que les titres de page. */
@media (min-width: 901px) {
  .product-title {
    margin-left: var(--header-title-align-nudge);
  }
}

/* Historique : journal d'activité des notes */
.activity-stack {
  border: 0.75px solid var(--lpb-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.activity-card {
  min-height: 105px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 21px;
  border-bottom: 0.75px solid var(--lpb-line);
}
.activity-card:last-child { border-bottom: 0; }
.activity-card:hover { background: #fffdfd; }
.activity-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1e7e4;
  color: var(--lpb-red);
  display: grid;
  place-items: center;
}
.activity-icon .icon { width: 27px; height: 27px; stroke-width: 2.3; }
.activity-main { min-width: 0; }
.activity-main h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #222;
}
.activity-meta {
  margin-top: 7.5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10.5px 15px;
  color: #777;
  font-size: 13.5px;
}
.activity-meta span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.activity-meta .icon { width: 15px; height: 15px; stroke-width: 2; flex: 0 0 auto; }
.activity-details {
  margin: 7.5px 0 0;
  color: #5f5a58;
  font-size: 13.5px;
  line-height: 1.35;
}
.activity-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.activity-open {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12.75px;
  white-space: nowrap;
}
.activity-open .icon { width: 15px; height: 15px; }
.activity-unavailable {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10.5px;
  background: #f5f3f2;
  color: #777;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 900px) and (min-width: 701px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .activity-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10.5px;
    padding: 13.5px;
  }
  .activity-icon { width: 42px; height: 42px; border-radius: 10.5px; }
  .activity-icon .icon { width: 23px; height: 23px; }
  .activity-main h2 { font-size: 15px; }
  .activity-meta, .activity-details { font-size: 11.25px; }
  .activity-open {
    min-height: 33px;
    padding: 0 9px;
    font-size: 11.25px;
  }
  .activity-open .icon { width: 13.5px; height: 13.5px; }
}

@media (max-width: 430px) {
  .activity-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .activity-side {
    grid-column: 2;
    justify-content: flex-start;
  }
}


@media (max-width: 900px) and (min-width: 701px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .activity-item {
    grid-template-columns: 40px 1fr;
    gap: 10.5px;
    padding: 13.5px;
  }
  .activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10.5px;
  }
  .activity-icon .icon {
    width: 19.5px;
    height: 19.5px;
  }
  .activity-head {
    display: grid;
    gap: 4.5px;
  }
  .activity-head h2 {
    font-size: 14.25px;
  }
  .activity-head time {
    white-space: normal;
    font-size: 11.25px;
  }
  .activity-note-title,
  .activity-details {
    font-size: 11.75px;
  }
}

/* iPhone / petites fenêtres : les 6 tuiles du tableau de bord restent en 2 colonnes x 3 lignes. */
@media (max-width: 560px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .dashboard-metric {
    min-height: 112.5px;
    padding: 10.5px;
    gap: 8.25px;
    align-items: flex-start;
  }
  .dashboard-metric-icon {
    width: 34.5px;
    height: 34.5px;
    min-width: 34.5px;
    border-radius: 10.5px;
  }
  .dashboard-metric-icon .icon {
    width: 18.75px;
    height: 18.75px;
  }
  .dashboard-metric span {
    font-size: 10.5px;
    line-height: 1.12;
  }
  .dashboard-metric strong {
    margin-top: 5.25px;
    font-size: 22.5px;
  }
  .dashboard-metric p {
    margin-top: 5.25px;
    font-size: 10.5px;
    line-height: 1.25;
  }
}

@media (max-width: 360px) {
  .dashboard-grid {
    gap: 7.5px;
  }
  .dashboard-metric {
    min-height: 105px;
    padding: 9px;
  }
  .dashboard-metric span,
  .dashboard-metric p {
    font-size: 9.75px;
  }
  .dashboard-metric strong {
    font-size: 20.25px;
  }
}


@media (max-width: 900px) and (min-width: 701px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .toolbar.list-toolbar-expanded {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .toolbar.list-toolbar-expanded .btn {
    width: 100%;
    min-width: 0;
  }
  .toolbar.list-toolbar-expanded .search-field {
    grid-column: 1 / -1;
  }
  .record-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 13.5px 13.5px 0;
    gap: 9px;
  }
  .record-shortcuts .btn {
    width: 100%;
    min-width: 0;
  }
  .dashboard-card-actions .btn {
    width: 100%;
  }
}

/* Ajustements navigation demandés : Informations hors ORGANISATION, actions Nouvelle note hors tuile,
   boutons de listes harmonisés avec Nouvelle note. */
.dashboard-info-outside {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: -3px;
}
.dashboard-info-outside .btn {
  min-height: 57px;
  font-size: 19.5px;
  padding: 0 22.5px;
}
.dashboard-info-outside .btn .icon {
  width: 24px;
  height: 24px;
}

.record-top-actions {
  max-width: var(--page-content-max-width);
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10.5px;
  flex-wrap: wrap;
}
.record-top-actions .btn {
  min-height: 43.5px;
  font-size: 13.5px;
  padding: 0 15px;
}
.record-top-actions .btn .icon {
  width: 18px;
  height: 18px;
}

#mainToolbar.list-toolbar-expanded .btn.light {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #9a2a2d, var(--lpb-red-dark));
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.15), 0 7.5px 15px rgba(104,16,19,.18);
}
@media (max-width: 900px) and (min-width: 701px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .record-top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 16.5px;
  }
  .record-top-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .dashboard-info-outside .btn {
    width: 100%;
    height: 57px;
    min-height: 57px;
    font-size: 14.25px;
    padding: 0 9px;
    gap: 7.5px;
  }
  .dashboard-info-outside .btn .icon {
    width: 18.75px;
    height: 18.75px;
  }
}

/* Ajustements finaux : tailles/espacements cohérents avec le Tableau de bord. */
.dashboard-info-outside {
  display: grid;
  grid-template-columns: max-content;
  align-items: center;
  justify-content: flex-start;
  gap: 10.5px;
  margin-top: 0;
}
.dashboard-info-outside .dashboard-info-button,
.record-top-actions .btn {
  width: max-content;
  min-height: 57px;
  height: 57px;
  padding: 0 22.5px;
  gap: 12px;
  font-size: 19.5px;
  font-weight: 650;
}
.dashboard-info-outside .dashboard-info-button .icon,
.record-top-actions .btn .icon {
  width: 24px;
  height: 24px;
}
.record-more-menu { position:relative; }
.record-back-button .icon { transform:rotate(180deg); transform-origin:center; }
.record-more-menu > summary { list-style:none; }
.record-more-menu > summary::-webkit-details-marker { display:none; }
.record-more-menu .record-more-chevron { width:16px; height:16px; margin-left:2px; transform:rotate(90deg); transition:transform .16s ease; }
.record-more-menu[open] .record-more-chevron { transform:rotate(-90deg); }
#listMoreMenu .record-more-chevron {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 auto !important;
}
@media (max-width: 700px) {
  #listMoreMenu .record-more-chevron {
    width: 18.75px !important;
    height: 18.75px !important;
  }
}
@media (max-width: 430px) {
  #listMoreMenu .record-more-chevron {
    width: 18px !important;
    height: 18px !important;
  }
}
.record-more-panel { position:absolute; z-index:80; top:calc(100% + 7px); left:0; width:260px; display:grid; gap:5px; padding:7px; border:1px solid #d6d9dd; border-radius:10px; background:#fff; box-shadow:0 12px 28px rgba(44,35,31,.20); }
.record-more-item { width:100%; height:57px; min-height:57px; display:flex; align-items:center; gap:10px; padding:7px 11px; border:0; border-radius:7px; background:#f1f3f4; color:#262626; font:inherit; font-size:14px; font-weight:700; text-align:left; }
.record-more-item:hover { background:#fff3cf; }
.record-more-item .icon { width:20px !important; height:20px !important; color:#7c1416; }
.list-more-menu .record-more-panel { width:230px; }
.list-more-menu .record-more-item { height:48px; min-height:48px; }
.settings-more-menu .record-more-panel { width:210px; }
.settings-more-menu .record-more-item { height:48px; min-height:48px; }
.record-top-actions {
  margin-top: 31.5px;
  gap: 10.5px;
}
.toolbar.list-toolbar-expanded {
  margin-top: 31.5px;
}

@media (max-width: 900px) {
  .record-top-actions,
  .toolbar.list-toolbar-expanded {
    margin-top: 22.5px;
  }
}

@media (max-width: 900px) and (min-width: 701px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .record-top-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10.5px;
  }
  .record-top-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .dashboard-info-outside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10.5px;
  }
  .dashboard-info-outside .dashboard-info-button,
  .record-top-actions .btn {
    width: 100%;
    min-width: 0;
    height: 57px;
    min-height: 57px;
    padding: 0 9px;
    gap: 7.5px;
    font-size: 14.25px;
    font-weight: 800;
    white-space: nowrap;
  }
  .dashboard-info-outside .dashboard-info-button .icon,
  .record-top-actions .btn .icon {
    width: 18.75px;
    height: 18.75px;
  }
  .record-more-menu { min-width:0; }
  .record-more-menu > summary { width:100%; }
  .record-more-panel { left:auto; right:0; width:min(260px,calc(100vw - 33px)); }
  #recordTopActions {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7.5px;
  }
  #recordTopActions > .btn,
  #recordTopActions > .record-more-menu > summary {
    width:100%;
    min-width:0;
    padding-right:6px;
    padding-left:6px;
  }
}

@media (max-width: 430px) {
  .dashboard-info-outside .dashboard-info-button,
  .record-top-actions .btn {
    height: 57px;
    min-height: 57px;
    padding: 0 7.5px;
    gap: 7.5px;
    font-size: 14px;
    font-weight: 800;
  }
  .dashboard-info-outside .dashboard-info-button .icon,
  .record-top-actions .btn .icon {
    width: 18px;
    height: 18px;
  }
  #recordTopActions > .btn,
  #recordTopActions > .record-more-menu > summary {
    padding-right:4.5px;
    padding-left:4.5px;
    gap:4.5px;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  .dashboard-info-outside .dashboard-info-button,
  .record-top-actions .btn {
    min-height: 43.5px;
    height: 43.5px;
    padding: 0 13.5px;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 650;
  }
  .dashboard-info-outside .dashboard-info-button .icon,
  .record-top-actions .btn .icon {
    width: 18px;
    height: 18px;
  }
}

/* iPhone : les boutons d'action des listes gardent la même hauteur que les boutons de l'Accueil. */
@media (max-width: 560px) {
  #mainToolbar.list-toolbar-expanded {
    gap: 10.5px;
  }
  #mainToolbar.list-toolbar-expanded .btn {
    height: 57px !important;
    min-height: 57px !important;
    padding: 0 9px !important;
    gap: 7.5px !important;
    font-size: 14.25px !important;
    font-weight: 800;
    align-items: center;
    justify-content: center;
  }
  #mainToolbar.list-toolbar-expanded .btn .icon {
    width: 18.75px !important;
    height: 18.75px !important;
    flex: 0 0 18.75px;
  }
}

@media (max-width: 430px) {
  #mainToolbar.list-toolbar-expanded .btn {
    height: 57px !important;
    min-height: 57px !important;
    padding: 0 7.5px !important;
    gap: 7.5px !important;
    font-size: 14px !important;
  }
  #mainToolbar.list-toolbar-expanded .btn .icon {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px;
  }
}

/* iPhone / petites fenêtres : harmoniser la hauteur des boutons des pages de listes avec ceux de l’Accueil. */
@media (max-width: 900px) and (min-width: 701px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  #mainToolbar.list-toolbar-expanded .btn {
    height: 57px;
    min-height: 57px;
    padding: 0 9px;
    gap: 7.5px;
    font-size: 14.25px;
    font-weight: 800;
    line-height: 1.05;
  }
  #mainToolbar.list-toolbar-expanded .btn .icon {
    width: 18.75px;
    height: 18.75px;
    flex: 0 0 auto;
  }
}

@media (max-width: 430px) {
  #mainToolbar.list-toolbar-expanded .btn {
    height: 57px;
    min-height: 57px;
    padding: 0 7.5px;
    gap: 7.5px;
    font-size: 14px;
    font-weight: 800;
  }
  #mainToolbar.list-toolbar-expanded .btn .icon {
    width: 18px;
    height: 18px;
  }
}

/* iPhone : dans Nouvelle note, les boutons Démarrer / Arrêter / Sauvegarder restent sur une ligne
   avec la même hauteur que les boutons rapides Voir mes notes / Paramètres et un espacement plus ample. */
@media (max-width: 560px) {
  .record-page #noteForm .record-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    column-gap: 12px;
    align-items: stretch;
    margin-top: 1.5px;
  }
  .record-page #noteForm .record-actions .btn {
    width: 100% !important;
    min-width: 0;
    height: 57px;
    min-height: 57px;
    padding: 0 5.25px;
    gap: 5.25px;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.05;
    white-space: nowrap;
    justify-content: center;
  }
  .record-page #noteForm .record-actions .btn .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }
}

@media (max-width: 360px) {
  .record-page #noteForm .record-actions {
    gap: 9px;
    column-gap: 9px;
  }
  .record-page #noteForm .record-actions .btn {
    height: 57px;
    min-height: 57px;
    padding: 0 3px;
    gap: 3.75px;
    font-size: 12px;
  }
  .record-page #noteForm .record-actions .btn .icon {
    width: 15.75px;
    height: 15.75px;
    flex-basis: 15.75px;
  }
}


/* Nouvelle note : couleurs demandées pour Démarrer / En cours / Arrêter. */
.record-actions .record-start-button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #2f9e44, #1f7a34);
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.16), 0 7.5px 15px rgba(31,122,52,.18);
}
.record-actions .record-start-button:hover {
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.16), 0 8px 16px rgba(31,122,52,.22);
}
.record-actions .record-start-button.is-recording {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #cf2f35, #9d171b);
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.16), 0 7.5px 15px rgba(157,23,27,.2);
}
.record-actions .record-start-button.is-recording:disabled {
  opacity: 1;
  cursor: progress;
}
.record-actions .record-stop-button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #f08a24, #c65f00);
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.16), 0 7.5px 15px rgba(198,95,0,.18);
}
.record-actions .record-stop-button:hover {
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.16), 0 8px 16px rgba(198,95,0,.22);
}
.record-actions .record-stop-button:disabled {
  opacity: 1;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #a8a8a8, #777777);
  box-shadow: none;
}
.record-actions .record-stop-button.is-active .icon {
  fill: currentColor;
  stroke: none;
}
.record-actions .record-save-button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #9a2a2d, var(--lpb-red-dark));
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.15), 0 7.5px 15px rgba(104,16,19,.18);
}
.record-actions .record-save-button:disabled {
  opacity: 1;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #a8a8a8, #777777);
  box-shadow: none;
}
.record-actions .record-start-button .icon,
.record-actions .record-stop-button .icon,
.record-actions .record-save-button .icon {
  color: currentColor;
}

/* iPhone : icônes au-dessus du texte dans les 3 boutons d’enregistrement. */
@media (max-width: 560px) {
  .record-page #noteForm .record-actions .btn {
    flex-direction: column;
    gap: 4.5px;
    padding: 5.25px 4.5px;
    font-size: 12.75px;
    line-height: 1;
  }
  .record-page #noteForm .record-actions .btn .icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
}

@media (max-width: 360px) {
  .record-page #noteForm .record-actions .btn {
    gap: 3.75px;
    padding: 4.5px 2.25px;
    font-size: 11.5px;
  }
  .record-page #noteForm .record-actions .btn .icon {
    width: 22.5px;
    height: 22.5px;
    flex-basis: 22.5px;
  }
}

/* Page détail d’une note : le haut de la tuile est retiré. Les actions rapides reprennent le style de Nouvelle note. */
.note-page .note-detail-card { overflow: visible; }
.note-page .detail-body { padding-top: 25.5px; }
.note-top-actions { margin-top: 31.5px; }

@media (max-width: 900px) {
  .note-top-actions { margin-top: 22.5px; }
}



/* Paramètres : boutons rapides Historique / Retour sous le sous-titre, alignés avec Nouvelle note. */
.settings-top-actions {
  margin-top: 31.5px;
}
.settings-back-button .icon {
  transform: rotate(180deg);
  transform-origin: center;
}
.scan-back-button .icon {
  transform: rotate(180deg);
  transform-origin: center;
}
.scan-top-actions {
  margin-top: 31.5px;
}

@media (max-width: 900px) {
  .settings-top-actions,
  .scan-top-actions { margin-top: 22.5px; }
}

/* Page détail d’une note : actions IA bleues et export TXT orange. */
.btn.btn-ai-blue {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #2f75d6, #1857a8);
  box-shadow: inset 0 .75px 0 rgba(255,255,255,.16), 0 7.5px 15px rgba(24,87,168,.18);
}
.btn.btn-ai-blue:hover { box-shadow: inset 0 .75px 0 rgba(255,255,255,.16), 0 7.5px 15px rgba(24,87,168,.24); }
.btn.export-orange {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #de8126, #b95e10);
  box-shadow: inset 0 .75px 0 rgba(255,255,255,.16), 0 7.5px 15px rgba(185,94,16,.18);
}
.btn.export-orange:hover { box-shadow: inset 0 .75px 0 rgba(255,255,255,.16), 0 7.5px 15px rgba(185,94,16,.24); }

/* Page détail d’une note : Copier en gris, Effacer et masquer en jaune. */
.note-page .btn.copy-gray {
  color: #27313f;
  border-color: #cfd6df;
  background: linear-gradient(180deg, #f3f5f7, #d8dde4);
  box-shadow: inset 0 .75px 0 rgba(255,255,255,.42), 0 7.5px 15px rgba(39,49,63,.10);
}
.note-page .btn.copy-gray:hover {
  box-shadow: inset 0 .75px 0 rgba(255,255,255,.48), 0 7.5px 15px rgba(39,49,63,.16);
}
.note-page .btn.copy-gray .icon { color: currentColor; }

.note-page .btn.erase-yellow {
  color: #4a2e00;
  border-color: transparent;
  background: linear-gradient(180deg, #ffd761, #e5a800);
  box-shadow: inset 0 .75px 0 rgba(255,255,255,.28), 0 7.5px 15px rgba(199,143,0,.18);
}
.note-page .btn.erase-yellow:hover {
  box-shadow: inset 0 .75px 0 rgba(255,255,255,.32), 0 7.5px 15px rgba(199,143,0,.25);
}
.note-page .btn.erase-yellow .icon { color: currentColor; }

/* iPhone / petites fenêtres : actions de la note sur une seule ligne, icône au-dessus du texte. */
@media (max-width: 560px) {
  .note-page .detail-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }
  .note-page .detail-actions .btn {
    width: 100% !important;
    min-width: 0;
    height: 57px;
    min-height: 57px;
    padding: 5.25px 4.5px;
    gap: 4.5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12.75px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }
  .note-page .detail-actions .btn .icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: block;
  }
}

@media (max-width: 360px) {
  .note-page .detail-actions {
    gap: 9px;
  }
  .note-page .detail-actions .btn {
    padding: 4.5px 2.25px;
    gap: 3.75px;
    font-size: 11.5px;
  }
  .note-page .detail-actions .btn .icon {
    width: 22.5px;
    height: 22.5px;
    flex-basis: 22.5px;
  }
}

/* Gestion des utilisateurs */
.login-card {
  display: grid;
  gap: 10.5px;
}
.login-card .btn.full { margin-top: 6px; }
.setup-card { width: min(465px, 100%); }

.user-management-card {
  display: grid;
  gap: 14px;
}
.user-management-card > h2,
.user-management-card > p { margin-bottom: 0; }
.user-list {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}
.user-editor {
  border: 0.75px solid var(--lpb-line);
  border-radius: 12px;
  padding: 13.5px;
  background: #fffdfd;
  display: grid;
  gap: 12px;
}
.user-editor-create {
  background: linear-gradient(180deg, #fbf5f3, #fff);
  border-color: #ead9d5;
}
.user-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.user-editor-head h3 {
  margin: 0 0 3px;
  color: var(--lpb-red-dark);
  font-size: 15px;
  line-height: 1.2;
}
.user-editor-head p {
  margin: 0;
  font-size: 11.25px;
  color: var(--lpb-muted);
  overflow-wrap: anywhere;
}
.user-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.user-status.active { background: #e4f4e4; color: #2f742e; }
.user-status.inactive { background: #eeeeee; color: #666; }
.user-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10.5px;
}
.user-fields-grid label {
  display: grid;
  gap: 6px;
  color: #262626;
  font-size: 12px;
  font-weight: 750;
}
.user-fields-grid input,
.user-fields-grid select {
  width: 100%;
  height: 37.5px;
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  background: #fff;
  color: #161616;
  padding: 0 10.5px;
  outline: none;
  font-size: 12px;
}
.user-fields-grid input:focus,
.user-fields-grid select:focus {
  border-color: var(--lpb-red);
  box-shadow: 0 0 0 3px rgba(143,23,27,.08);
}
.user-password-field { grid-column: span 2; }
.user-full-name-field { grid-column: auto; }
.user-fields-grid input[data-user-name][readonly] { background:#f4f2f1; color:#5f5956; cursor:default; }
.user-permissions-block {
  display: grid;
  gap: 7.5px;
}
.user-permissions-block > strong {
  color: #262626;
  font-size: 12px;
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7.5px;
}
.permission-check {
  min-height: 34.5px;
  display: flex;
  align-items: center;
  gap: 7.5px;
  padding: 7.5px 9px;
  border: 0.75px solid var(--lpb-line);
  border-radius: 9px;
  background: #fff;
  font-size: 11.25px;
  font-weight: 700;
  line-height: 1.25;
}
.permission-check input {
  width: 13.5px;
  height: 13.5px;
  flex: 0 0 auto;
}
.permission-check.permission-admin {
  background: #f6fbf6;
  color: #2f742e;
}
.user-actions-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.user-actions-row .btn {
  min-height: 37.5px;
  font-size: 12px;
  padding: 0 12px;
}
.user-actions-row .btn .icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 720px) {
  .user-fields-grid,
  .permission-grid { grid-template-columns: 1fr; }
  .user-password-field { grid-column: auto; }
  .user-editor-head { align-items: flex-start; }
}

@media (max-width: 520px) {
  .user-editor { padding: 12px; }
  .user-actions-row .btn {
    min-height: 43.5px;
    flex: 1 1 0;
  }
}

/* Ajustements rôles, recherche utilisateurs et réinitialisation par courriel */
.alert.success { background: #e9f8ec; color: #27733b; }
.login-link {
  display: inline-flex;
  justify-content: center;
  color: var(--lpb-red-dark);
  font-weight: 800;
  text-decoration: none;
  margin-top: 3px;
}

.user-create-panel {
  border: 0.75px solid #ead9d5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbf5f3, #fff);
  overflow: hidden;
}
.user-create-toggle {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13.5px;
  color: var(--lpb-red-dark);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.user-create-toggle strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}
.user-create-toggle small {
  display: block;
  margin-top: 3px;
  color: var(--lpb-muted);
  font-size: 11.25px;
  font-weight: 700;
}
.user-toggle-symbol {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--lpb-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 30px;
}
.user-create-body {
  padding: 0 13.5px 13.5px;
}
.user-create-body .user-editor-create {
  border-color: rgba(143, 23, 27, .12);
  background: #fff;
}
.user-list-head {
  display: grid;
  grid-template-columns: auto minmax(210px, 340px);
  align-items: end;
  gap: 12px;
  margin-top: 3px;
}
.user-list-head h3 {
  margin: 0;
  color: var(--lpb-red-dark);
  font-size: 15px;
}
.user-search-field {
  height: 37.5px;
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 7.5px;
  padding: 0 10.5px;
}
.user-search-field .icon {
  width: 15px;
  height: 15px;
  color: var(--lpb-muted);
}
.user-search-field input {
  border: 0;
  outline: none;
  width: 100%;
  height: 100%;
  font: inherit;
  font-size: 12px;
  color: #171717;
  background: transparent;
}
.user-search-empty {
  margin: 0;
  color: var(--lpb-muted);
  font-size: 12px;
  font-weight: 700;
}
.roles-management-card {
  display: grid;
  gap: 14px;
}
.roles-management-card > h2,
.roles-management-card > p { margin-bottom: 0; }
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.role-permission-card {
  border: 0.75px solid var(--lpb-line);
  border-radius: 12px;
  padding: 13.5px;
  background: #fffdfd;
  display: grid;
  gap: 10.5px;
}
.role-permission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}
.role-permission-head h3 {
  margin: 0 0 3px;
  color: var(--lpb-red-dark);
  font-size: 14.25px;
  line-height: 1.2;
}
.role-permission-head p {
  margin: 0;
  color: var(--lpb-muted);
  font-size: 11.25px;
  line-height: 1.35;
}
.role-permission-count {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8.25px;
  background: #f8eeee;
  color: var(--lpb-red-dark);
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
}
.role-permission-grid {
  grid-template-columns: 1fr;
}
.role-actions-row .btn {
  min-height: 37.5px;
}

@media (max-width: 980px) {
  .roles-grid { grid-template-columns: 1fr; }
  .user-list-head { grid-template-columns: 1fr; align-items: stretch; }
}

@media (max-width: 520px) {
  .user-create-toggle { min-height: 54px; padding: 12px; }
  .user-create-body { padding: 0 12px 12px; }
  .user-search-field { height: 43.5px; }
  .role-permission-card { padding: 12px; }
}

/* Configuration globale */
.global-config-card {
  display: grid;
  gap: 14px;
}
.global-config-card > h2,
.global-config-card > p { margin-bottom: 0; }
.global-config-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7.5px;
  color: var(--lpb-muted);
  font-size: 11.25px;
  font-weight: 700;
}
.global-config-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #f7f7f7;
}
.global-config-meta .ok { background: #e4f4e4; color: #2f742e; }
.global-config-meta .warn { background: #fff2d7; color: #9b6714; }
.global-config-form {
  display: grid;
  gap: 12px;
}
.global-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10.5px;
}
.global-config-grid label {
  display: grid;
  gap: 6px;
  color: #262626;
  font-size: 12px;
  font-weight: 750;
}
.global-config-grid input {
  width: 100%;
  height: 37.5px;
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  background: #fff;
  color: #161616;
  padding: 0 10.5px;
  outline: none;
  font-size: 12px;
}
.global-config-grid input:focus {
  border-color: var(--lpb-red);
  box-shadow: 0 0 0 3px rgba(143,23,27,.08);
}
.global-config-grid small {
  color: var(--lpb-muted);
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 650;
}
.global-config-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.global-config-actions .btn {
  min-height: 37.5px;
  font-size: 12px;
  padding: 0 12px;
}
.global-config-actions .btn .icon {
  width: 15px;
  height: 15px;
}

.updates-config-form,
.updates-version-field,
.updates-config-grid label {
  display: grid;
  gap: 6px;
}
.updates-config-form { gap: 12px; }
.updates-comparison-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  align-items: start;
}
.updates-current-column,
.updates-history-column { display: grid; gap: 12px; min-width: 0; }
.updates-version-field,
.updates-history-field,
.updates-config-grid label {
  color: #262626;
  font-size: 12px;
  font-weight: 750;
}
.updates-version-field,
.updates-history-field { display: grid; gap: 6px; }
.updates-config-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10.5px;
}
.updates-config-form input,
.updates-config-form select,
.updates-config-form textarea {
  width: 100%;
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  background: #fff;
  color: #161616;
  padding: 9px 10.5px;
  outline: none;
  font: inherit;
  font-size: 12px;
}
.updates-config-form input { height: 37.5px; }
.updates-config-form select { height: 37.5px; }
.updates-config-form textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.updates-config-form input:focus,
.updates-config-form select:focus,
.updates-config-form textarea:focus {
  border-color: var(--lpb-red);
  box-shadow: 0 0 0 3px rgba(143,23,27,.08);
}
.release-history-preview {
  border: 1px solid #d6d9dd;
  border-radius: 10px;
  padding: 12px;
  background: #f1f3f4;
  min-height: 100%;
}
.release-history-empty { margin: 0 !important; color: var(--lpb-muted); font-size: 12px !important; }
.release-history-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #7c1416;
}
.release-history-head span { color: var(--lpb-muted); font-size: 11px; }
.release-history-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.release-history-grid h4 { margin: 0 0 4px; font-size: 12px; color: #262626; }
.release-history-grid p { margin: 0; white-space: pre-wrap; color: #4d4d4d; }
.updates-config-grid small {
  color: var(--lpb-muted);
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 650;
}

@media (max-width: 980px) {
  .global-config-grid { grid-template-columns: 1fr; }
  .updates-config-grid { grid-template-columns: 1fr; }
  .updates-comparison-layout,
  .release-history-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .global-config-grid input { height: 43.5px; font-size: 16px; }
  .updates-config-form input,
  .updates-config-form select,
  .updates-config-form textarea { font-size: 16px; }
  .updates-config-form input { height: 43.5px; }
  .updates-config-form select { height: 43.5px; }
  .global-config-actions .btn { min-height: 43.5px; flex: 1 1 100%; }
}

/* ID compte, PIN et fiches utilisateurs repliables */
.user-fields-grid input[readonly] {
  background: #f6f2f1;
  color: var(--lpb-muted);
  cursor: not-allowed;
}
.user-pin-field small {
  color: var(--lpb-muted);
  font-size: 10.5px;
  font-weight: 700;
}
.pin-input-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}
.pin-input-wrap:focus-within {
  border-color: var(--lpb-red);
  box-shadow: 0 0 0 3px rgba(143,23,27,.08);
}
.user-fields-grid .pin-input-wrap input {
  border: 0;
  border-radius: 0;
  height: 36px;
  box-shadow: none;
}
.user-fields-grid .pin-input-wrap input:focus {
  box-shadow: none;
  border: 0;
}
.pin-visibility-toggle {
  width: 40px;
  min-width: 40px;
  border: 0;
  border-left: 0.75px solid var(--lpb-line);
  background: #fff7f6;
  color: var(--lpb-red-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pin-visibility-toggle .icon {
  width: 16px;
  height: 16px;
}
.user-entry {
  border: 0.75px solid var(--lpb-line);
  border-radius: 12px;
  background: #fffdfd;
  overflow: hidden;
}
.user-entry-toggle {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: #fffdfd;
  color: #1f1f1f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13.5px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.user-entry-toggle:hover {
  background: #fff7f6;
}
.user-entry-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.user-entry-main strong {
  color: var(--lpb-red-dark);
  font-size: 14.25px;
  line-height: 1.2;
}
.user-entry-main small {
  color: var(--lpb-muted);
  font-size: 11.25px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.user-entry-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7.5px;
  flex-wrap: wrap;
}
.user-role-chip,
.user-pin-chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8.25px;
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
}
.user-role-chip { background: #f8eeee; color: var(--lpb-red-dark); }
.user-pin-chip { background: #fff2d7; color: #9b6714; }
.user-entry.is-open .user-entry-toggle {
  background: #fbf5f3;
  border-bottom: 0.75px solid var(--lpb-line);
}
.user-entry-body {
  padding: 13.5px;
}
.user-entry-body .user-editor {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

@media (max-width: 720px) {
  .user-entry-toggle { align-items: flex-start; flex-direction: column; }
  .user-entry-meta { justify-content: flex-start; }
  .user-pin-field { grid-column: auto; }
}

@media (max-width: 520px) {
  .user-entry-toggle { min-height: 66px; padding: 12px; }
  .user-entry-body { padding: 12px; }
  .pin-visibility-toggle { width: 43.5px; min-width: 43.5px; }
  .user-fields-grid .pin-input-wrap input { height: 42px; font-size: 16px; }
  .pin-visibility-toggle .icon { width: 18px; height: 18px; }
}

/* Ajustements ID compte, PIN automatique et fiches utilisateurs */

.user-account-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10.5px;
}
.user-inline-id {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f8eeee;
  color: var(--lpb-red-dark);
  font-size: 10.5px;
  font-weight: 850;
  vertical-align: middle;
  white-space: nowrap;
}
.user-entry-toggle {
  justify-content: flex-start;
}
.user-profile-button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--lpb-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  box-shadow: 0 6px 16px rgba(143, 23, 27, .18);
}
.user-profile-button .icon {
  width: 18px;
  height: 18px;
}
.user-entry-toggle[aria-expanded="true"] .user-profile-button {
  background: var(--lpb-red-dark);
}
.user-entry-main {
  flex: 1 1 auto;
}
.user-entry-meta {
  margin-left: auto;
}
.user-fields-grid .pin-input-wrap input[readonly] {
  background: #fff;
  color: #161616;
  cursor: default;
}
.user-fields-grid [data-user-pin-placeholder][readonly] {
  font-weight: 800;
}

@media (max-width: 720px) {
  .user-entry-toggle {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .user-entry-meta {
    width: calc(100% - 46px);
    margin-left: 46px;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .user-profile-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .user-profile-button .icon {
    width: 20px;
    height: 20px;
  }
  .user-entry-meta {
    width: calc(100% - 50px);
    margin-left: 50px;
  }
}

/* Profil utilisateur dans l'en-tête */
.topbar-profile {
  position: relative;
  flex: 0 0 auto;
  margin-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-menu-button {
  width: 43.5px;
  height: 43.5px;
  border: 0.75px solid rgba(143, 23, 27, .16);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lpb-red), var(--lpb-red-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 7.5px 18px rgba(84, 91, 103, .22);
  overflow: hidden;
}
.profile-menu-button .icon {
  width: 21px;
  height: 21px;
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}
.profile-menu-button.has-photo {
  border: 1px solid #7c1416;
  padding: 2px;
  background: #fff;
}
.profile-menu-button.has-photo .profile-avatar-icon { display: none; }
.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10.5px);
  width: min(270px, calc(100vw - 24px));
  border: 0.75px solid var(--lpb-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 9px;
  z-index: 90;
}
.profile-menu-user {
  display: grid;
  gap: 3px;
  padding: 8.25px 9px 10.5px;
  border-bottom: 0.75px solid var(--lpb-line);
  margin-bottom: 6px;
}
.profile-menu-user strong {
  color: var(--lpb-red-dark);
  font-size: 13.5px;
  line-height: 1.2;
}
.profile-menu-user small {
  color: var(--lpb-muted);
  font-size: 11.25px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.profile-menu-version-wrap {
  margin-top: 6px;
  padding: 8px 9px 1px;
  border-top: 0.75px solid var(--lpb-line);
  text-align: center;
}
.profile-menu-version {
  display: block;
  color: #7a7f87;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.profile-menu button,
.profile-menu a {
  width: 100%;
  min-height: 39px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #272727;
  display: flex;
  align-items: center;
  gap: 8.25px;
  padding: 0 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.profile-menu button:hover,
.profile-menu a:hover { background: #fff5f3; color: var(--lpb-red-dark); }
.profile-menu .icon { width: 16px; height: 16px; }

/* Page profil utilisateur */
.profile-view {
  width: 100%;
  max-width: var(--page-content-max-width);
  margin-top: 31.5px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.profile-top-actions {
  margin-top: 0;
  margin-bottom: 14px;
}
.profile-back-button .icon {
  transform: rotate(180deg);
  transform-origin: center;
}
.profile-card-main,
.profile-storage-card,
.profile-pin-card,
.profile-photo-card,
.profile-password-card,
.profile-export-card,
.profile-devices-card,
.profile-logout-card {
  display: grid;
  gap: 12px;
}
.profile-card-main,
.profile-pin-card,
.profile-photo-card,
.profile-password-card { grid-column: span 1; }
.profile-storage-card,
.profile-export-card,
.profile-devices-card,
.profile-logout-card { grid-column: 1 / -1; }
.profile-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-photo-preview {
  width: 75px;
  height: 75px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbf5f3, #fff);
  border: 0.75px solid #ead9d5;
  color: var(--lpb-red-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 75px;
}
.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-photo-fallback {
  width: 32px;
  height: 32px;
}
.profile-card-head h2,
.profile-storage-card h2,
.profile-pin-card h2,
.profile-photo-card h2,
.profile-password-card h2,
.profile-export-card h2,
.profile-devices-card h2,
.profile-logout-card h2 {
  margin: 0;
  color: var(--lpb-red-dark);
  font-size: 18px;
  line-height: 1.2;
}
.profile-card-head p,
.profile-storage-card p,
.profile-pin-card p,
.profile-photo-card p,
.profile-export-card p,
.profile-devices-card p,
.profile-logout-card p {
  margin: 4px 0 0;
  color: var(--lpb-muted);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.profile-badges,
.profile-storage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7.5px;
  margin-top: 9px;
}
.profile-badges span,
.profile-storage-meta span {
  min-height: 24px;
  border-radius: 999px;
  background: #f7f7f7;
  color: var(--lpb-muted);
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  font-size: 10.5px;
  font-weight: 850;
}
.profile-badges .ok { background: #e4f4e4; color: #2f742e; }
.profile-badges .warn { background: #fff2d7; color: #9b6714; }
.profile-section-title {
  display: flex;
  align-items: center;
  gap: 10.5px;
}
.profile-section-title > .icon {
  width: 30px;
  height: 30px;
  color: var(--lpb-red-dark);
  flex: 0 0 30px;
}
.profile-storage-usage {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10.5px;
}
.profile-storage-usage > .icon {
  width: 30px;
  height: 30px;
  color: var(--lpb-red-dark);
}
.profile-storage-meter {
  display: grid;
  gap: 7.5px;
}
.profile-storage-percent {
  color: var(--lpb-red-dark);
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1.2;
}
.profile-storage-bar {
  height: 11.25px;
  border-radius: 999px;
  background: #f1e8e6;
  overflow: hidden;
}
.profile-storage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lpb-red), var(--lpb-red-dark));
}
.profile-photo-form,
.profile-password-form,
.profile-pin-label {
  display: grid;
  gap: 10.5px;
}
.profile-photo-form input[type="file"] {
  min-height: 39px;
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  background: #fff;
  padding: 8px 10.5px;
  color: #161616;
  font-size: 12px;
}
.profile-photo-selection-status { padding:8px 10px; border-radius:8px; background:#f5f5f5; color:#666; font-size:11.5px; font-weight:700; }
.profile-photo-modal { position:fixed; inset:0; z-index:220; display:flex; align-items:center; justify-content:center; padding:18px; background:rgba(22,18,18,.68); }
.profile-photo-modal.hidden { display:none; }
.profile-photo-dialog { width:min(520px,100%); max-height:calc(100vh - 36px); overflow:auto; padding:18px; border:1px solid #d8d2ce; border-radius:16px; background:#fff; box-shadow:0 24px 70px rgba(0,0,0,.32); }
.profile-photo-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:14px; }
.profile-photo-dialog-head h3 { margin:0; color:var(--lpb-red-dark); font-size:19px; }
.profile-photo-dialog-head p { margin:4px 0 0; color:#666; font-size:12px; }
.profile-dialog-close { width:34px; height:34px; border:0; border-radius:50%; background:#f1f1f1; color:#333; font-size:24px; line-height:1; }
.profile-crop-stage { position:relative; width:min(360px,100%); aspect-ratio:1; margin:0 auto 16px; border-radius:50%; overflow:hidden; background:#ddd; box-shadow:0 0 0 2px #fff,0 0 0 4px #7c1416; touch-action:none; }
.profile-crop-stage canvas { display:block; width:100%; height:100%; cursor:grab; touch-action:none; }
.profile-crop-stage canvas:active { cursor:grabbing; }
.profile-crop-ring { position:absolute; inset:0; border:2px solid rgba(255,255,255,.95); border-radius:50%; pointer-events:none; box-shadow:inset 0 0 0 1px rgba(124,20,22,.35); }
.profile-zoom-control { display:grid; gap:7px; margin:0 0 14px; color:#333; font-size:12px; font-weight:800; }
.profile-zoom-control input { width:100%; accent-color:#7c1416; }
.profile-images-dialog { width:min(760px,100%); }
.profile-images-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.profile-image-choice { display:grid; gap:7px; padding:8px; border:1px solid #ddd; border-radius:11px; background:#fafafa; color:#333; font-size:11px; font-weight:800; text-align:center; }
.profile-image-choice:hover { border-color:#7c1416; background:#fff8f3; }
.profile-image-choice img { width:100%; aspect-ratio:1; border-radius:50%; object-fit:cover; background:#eee; }
.profile-images-empty { grid-column:1/-1; margin:0; padding:16px; border-radius:9px; background:#f5f5f5; color:#666; text-align:center; }
.admin-profile-images-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0; }
.admin-profile-image { display:grid; grid-template-columns:64px minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px; border:1px solid #e0dbd7; border-radius:11px; background:#fafafa; }
.admin-profile-image img { width:64px; height:64px; border-radius:50%; object-fit:cover; }
.admin-profile-image div { display:grid; gap:3px; min-width:0; }
.admin-profile-image strong { color:#333; overflow-wrap:anywhere; }
.admin-profile-image small { color:#777; }
.admin-profile-image .btn { min-height:38px; height:38px; padding:0 10px; font-size:11px; }
.admin-profile-image .btn .icon { width:15px; height:15px; }
.admin-profile-image-upload { display:grid; grid-template-columns:minmax(160px,1fr) minmax(220px,1.5fr) auto; align-items:end; gap:10px; padding-top:13px; border-top:1px solid #e3dedb; }
.admin-profile-image-upload label { display:grid; gap:6px; color:#333; font-size:12px; font-weight:800; }
.admin-profile-image-upload input { min-height:39px; border:1px solid #d8d2ce; border-radius:8px; padding:7px 9px; background:#fff; }
.admin-profile-image-upload .btn { min-height:39px; height:39px; padding:0 12px; font-size:12px; }
.admin-navigation-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.admin-navigation-card { display:grid; grid-template-columns:52px minmax(0,1fr); align-items:start; gap:12px; }
.admin-navigation-card > .btn { grid-column:1/-1; justify-self:start; min-height:43.5px; height:43.5px; padding:0 15px; font-size:13px; }
.admin-navigation-card > .btn .icon { width:18px; height:18px; }
.admin-navigation-card h2 { margin:2px 0 5px; }
.admin-navigation-card p { margin:0; }
.admin-navigation-icon { width:52px; height:52px; display:grid; place-items:center; border-radius:13px; color:#fff; background:linear-gradient(135deg,#9a2a2d,#681013); box-shadow:0 7px 16px rgba(104,16,19,.18); }
.admin-navigation-icon .icon { width:26px; height:26px; }
.admin-section-actions { margin-top:0; margin-bottom:14px; }
.admin-section-actions strong { align-self:center; color:#7c1416; font-size:18px; }
.admin-section-back .icon { transform:rotate(180deg); transform-origin:center; }
.template-library-shell { padding:0; overflow:hidden; }
.template-library-header { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:22px 24px; border-bottom:1px solid #e8e3df; }
.template-library-header h2,.template-library-header p { margin:0; }
.template-library-header p { margin-top:5px; color:#6f6a67; }
.template-library-layout { display:grid; grid-template-columns:230px minmax(0,1fr); min-height:560px; }
.template-categories { padding:18px 14px; border-right:1px solid #e8e3df; background:#faf9f8; }
.template-search { display:flex; align-items:center; gap:7px; padding:0 10px; border:1px solid #d8d2ce; border-radius:9px; background:#fff; }
.template-search .icon { width:16px; height:16px; color:#777; }
.template-search input { width:100%; min-width:0; height:39px; padding:0; border:0; outline:0; background:transparent; font-size:12px; }
.template-categories nav { display:grid; gap:4px; margin-top:16px; }
.template-categories nav button { display:flex; justify-content:space-between; align-items:center; gap:8px; width:100%; padding:10px 11px; border:0; border-radius:8px; background:transparent; color:#4e4946; font-family:inherit; font-size:12px; font-weight:700; line-height:1.25; text-align:left; cursor:pointer; }
.template-categories nav button:hover,.template-categories nav button.active { color:#7c1416; background:#f5e9e9; }
.template-categories nav small { min-width:24px; padding:2px 6px; border-radius:10px; background:#ebe7e4; color:#6d6763; text-align:center; }
.template-library-content { padding:23px; min-width:0; }
.template-content-title { display:flex; justify-content:space-between; align-items:end; gap:12px; margin-bottom:17px; }
.template-content-title p { margin:0 0 3px; color:#8a817d; font-size:10px; font-weight:900; letter-spacing:.1em; }
.template-content-title h3 { margin:0; color:#2d2927; font-size:21px; }
.template-content-title > span { color:#817a76; font-size:12px; }
.template-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.template-card { position:relative; display:flex; flex-direction:column; min-height:220px; padding:18px; border:1px solid #e2ddda; border-radius:13px; background:#fff; box-shadow:0 4px 12px rgba(60,35,25,.045); }
.template-card:hover { border-color:#cdaeb0; box-shadow:0 8px 20px rgba(78,25,27,.09); transform:translateY(-1px); }
.template-card-emoji { display:grid; place-items:center; width:42px; height:42px; border-radius:11px; background:#f6eeee; font-size:21px; }
.template-card h4 { margin:14px 32px 6px 0; color:#292523; font-size:15px; }
.template-card p { flex:1; margin:0 0 16px; color:#746d69; font-size:12px; line-height:1.5; }
.template-card .btn { align-self:flex-start; min-height:35px; height:35px; padding:0 13px; font-size:11px; }
.template-star { position:absolute; top:13px; right:13px; border:0; background:transparent; color:#9b9490; font-size:24px; cursor:pointer; }
.template-star.active { color:#f4c542; -webkit-text-stroke:1px #7c1416; }
.template-empty { padding:35px; border:1px dashed #d7cfca; border-radius:11px; color:#777; text-align:center; }
.template-preview { padding:24px; }
.template-back-link { display:flex; align-items:center; gap:6px; margin:0 0 25px; padding:0; border:0; background:transparent; color:#7c1416; font-weight:800; cursor:pointer; }
.template-back-link .icon { width:15px; height:15px; transform:rotate(180deg); }
.template-preview-heading { display:grid; grid-template-columns:58px minmax(0,1fr); gap:16px; padding-bottom:22px; border-bottom:1px solid #e9e3df; }
.template-preview-heading .template-card-emoji { width:58px; height:58px; font-size:28px; }
.template-preview-heading h2,.template-preview-heading p { margin:0; }
.template-preview-heading > div > p:last-child { margin-top:6px; color:#706966; }
.template-category-label { color:#9a7778; font-size:10px; font-weight:900; letter-spacing:.1em; }
.template-prompt-list { max-width:760px; margin:24px 0; }
.template-prompt-list h3 { color:#3c3633; }
.template-prompt-list article { display:grid; grid-template-columns:32px minmax(0,1fr); gap:12px; margin-top:10px; padding:15px; border:1px solid #e5dfdb; border-radius:10px; background:#faf9f8; }
.template-prompt-list article > span { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#7c1416; color:#fff; font-weight:900; }
.template-prompt-list strong,.template-prompt-list p { margin:0; }
.template-prompt-list p { margin-top:4px; color:#666; line-height:1.5; }
.template-preview-footer { display:flex; gap:10px; padding-top:18px; border-top:1px solid #e9e3df; }
@media (max-width:700px) {
  .profile-images-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-profile-images-grid { grid-template-columns:1fr; }
  .admin-profile-image-upload { grid-template-columns:1fr; }
  .admin-profile-image { grid-template-columns:54px minmax(0,1fr); }
  .admin-profile-image img { width:54px; height:54px; }
  .admin-profile-image .btn { grid-column:1/-1; width:100%; }
  .admin-navigation-grid { grid-template-columns:1fr; }
  .admin-navigation-card > .btn { width:100%; }
  .admin-section-actions { display:flex; }
  .template-library-header { align-items:stretch; flex-direction:column; }
  .template-library-header .btn { width:100%; }
  .template-library-layout { grid-template-columns:1fr; }
  .template-categories { border-right:0; border-bottom:1px solid #e8e3df; }
  .template-categories nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .template-card-grid { grid-template-columns:1fr; }
  .template-library-content { padding:16px; }
}
@media (min-width:701px) and (max-width:1100px) { .template-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.analytics-toolbar { display:flex; justify-content:space-between; align-items:center; gap:18px; }
.analytics-toolbar h2,.analytics-toolbar p { margin:0; }
.analytics-toolbar p { margin-top:5px; color:#716b67; }
.analytics-toolbar-actions { display:flex; align-items:end; gap:10px; }
.analytics-toolbar-actions label { display:grid; gap:5px; color:#555; font-size:11px; font-weight:800; }
.analytics-toolbar-actions select { min-width:170px; height:40px; padding:0 34px 0 11px; border:1px solid #d9d2ce; border-radius:8px; background:#fff; color:#333; font-family:inherit; font-size:12px; font-weight:700; }
.analytics-toolbar-actions .btn { height:40px; min-height:40px; }
.analytics-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.analytics-kpi { display:grid; grid-template-columns:42px minmax(0,1fr); gap:11px; padding:17px; border:1px solid #e3dedb; border-radius:13px; background:#fff; box-shadow:0 4px 12px rgba(60,35,25,.04); }
.analytics-kpi > span { display:grid; place-items:center; width:42px; height:42px; border-radius:11px; background:#f5e9e9; color:#7c1416; }
.analytics-kpi > span .icon { width:21px; height:21px; }
.analytics-kpi small,.analytics-kpi strong,.analytics-kpi p { display:block; margin:0; }
.analytics-kpi small { color:#77706c; font-size:10px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.analytics-kpi strong { margin-top:3px; color:#272321; font-size:24px; line-height:1.15; }
.analytics-kpi strong em { color:#8d8682; font-size:13px; font-style:normal; }
.analytics-kpi p { margin-top:4px; color:#8a837f; font-size:11px; }
.analytics-insights-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr); gap:14px; margin-bottom:14px; }
.analytics-chart-card header,.analytics-top-users header,.analytics-members > header { display:flex; justify-content:space-between; align-items:end; gap:12px; }
.analytics-chart-card header p,.analytics-top-users header p,.analytics-members > header p { margin:0 0 3px; color:#9a7778; font-size:9px; font-weight:900; letter-spacing:.12em; }
.analytics-chart-card header h2,.analytics-top-users header h2,.analytics-members > header h2 { margin:0; }
.analytics-chart-card header span,.analytics-members > header span { color:#837b77; font-size:11px; }
.analytics-column-chart { display:flex; align-items:end; gap:3px; height:225px; margin-top:20px; padding-top:10px; border-bottom:1px solid #ded8d4; background:repeating-linear-gradient(to bottom,#fff 0,#fff 54px,#eeeae7 55px); }
.analytics-column-wrap { display:flex; flex:1; flex-direction:column; justify-content:flex-end; align-items:center; min-width:2px; height:100%; }
.analytics-column { width:min(14px,80%); min-height:2px; border-radius:4px 4px 0 0; background:linear-gradient(180deg,#a22d31,#7c1416); }
.analytics-column-wrap small { height:18px; margin-top:5px; color:#99918c; font-size:8px; white-space:nowrap; }
.analytics-user-bar { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:9px; margin-top:16px; }
.analytics-user-bar > span { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#f3eeeb; color:#7c1416; font-size:10px; font-weight:900; }
.analytics-user-bar strong { display:block; margin-bottom:5px; overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.analytics-user-bar div > div { height:6px; overflow:hidden; border-radius:4px; background:#eee9e6; }
.analytics-user-bar i { display:block; height:100%; border-radius:4px; background:#7c1416; }
.analytics-user-bar b { color:#5d5652; font-size:10px; }
.analytics-members { overflow:hidden; }
.analytics-table-wrap { overflow:auto; margin-top:16px; }
.analytics-members table { width:100%; min-width:850px; border-collapse:collapse; }
.analytics-members th { padding:10px; border-bottom:1px solid #ddd6d2; color:#817975; font-size:9px; letter-spacing:.05em; text-align:left; text-transform:uppercase; }
.analytics-members td { padding:11px 10px; border-bottom:1px solid #eeeae7; color:#514b48; font-size:11px; }
.analytics-members tbody tr:last-child td { border-bottom:0; }
.analytics-member { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:9px; min-width:190px; }
.analytics-member > span { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#7c1416; color:#fff; font-weight:900; }
.analytics-member strong,.analytics-member small { display:block; }
.analytics-member small { margin-top:2px; color:#8a837f; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:1050px) { .analytics-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .analytics-insights-grid { grid-template-columns:1fr; } }
@media (max-width:700px) { .analytics-toolbar { align-items:stretch; flex-direction:column; } .analytics-toolbar-actions { align-items:stretch; flex-direction:column; } .analytics-toolbar-actions select,.analytics-toolbar-actions .btn { width:100%; } .analytics-kpi-grid { grid-template-columns:1fr; } .analytics-column-chart { height:190px; } }
.integrations-downloads > header p,.integrations-status > header p { margin:0 0 3px; color:#9a7778; font-size:9px; font-weight:900; letter-spacing:.12em; }
.integrations-downloads > header h2,.integrations-status > header h2 { margin:0; }
.integrations-downloads > header span,.integrations-status > header span { display:block; margin-top:5px; color:#77706c; font-size:12px; }
.integration-download-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; margin-top:18px; }
.integration-download-grid article { display:grid; grid-template-columns:48px minmax(0,1fr); gap:12px; padding:17px; border:1px solid #e2ddda; border-radius:13px; background:#faf9f8; }
.integration-app-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:12px; background:#7c1416; color:#fff; }
.integration-app-icon .icon { width:24px; height:24px; }
.integration-download-grid small,.integration-status-grid small { color:#9a7778; font-size:9px; font-weight:900; letter-spacing:.08em; }
.integration-download-grid h3,.integration-download-grid p { margin:0; }
.integration-download-grid h3 { margin-top:3px; color:#302b29; font-size:14px; }
.integration-download-grid p { margin-top:5px; color:#716a66; font-size:11px; line-height:1.45; }
.integration-coming { grid-column:1/-1; padding:8px 10px; border-radius:7px; background:#eeeae7; color:#756e6a; font-size:10px; font-weight:800; text-align:center; }
.integration-download-grid .btn { grid-column:1/-1; width:100%; }
.integration-download-grid .btn:disabled { opacity:.55; cursor:not-allowed; }
.integration-status-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:18px; }
.integration-status-grid article { position:relative; display:grid; grid-template-columns:42px minmax(0,1fr); gap:10px; padding:15px; border:1px solid #e4dfdc; border-radius:12px; background:#fff; }
.integration-service-mark { display:grid; place-items:center; width:42px; height:42px; border-radius:11px; background:#f5e9e9; color:#7c1416; font-size:18px; font-weight:900; }
.integration-status-grid h3,.integration-status-grid p { margin:0; }
.integration-status-grid h3 { margin-top:2px; color:#302b29; font-size:14px; }
.integration-status-grid p { margin-top:5px; color:#716a66; font-size:11px; line-height:1.4; }
.integration-state { grid-column:1/-1; display:inline-flex; justify-self:start; align-items:center; gap:6px; padding:5px 9px; border-radius:12px; font-size:10px; font-weight:900; }
.integration-state i { width:7px; height:7px; border-radius:50%; background:currentColor; }
.integration-state.connected { background:#e8f4ec; color:#287541; }
.integration-state.inactive { background:#f1eeec; color:#817975; }
@media (max-width:900px) { .integration-status-grid { grid-template-columns:1fr; } }
@media (max-width:700px) { .integration-download-grid { grid-template-columns:1fr; } }
.notification-settings-card > header p { margin:0 0 3px; color:#9a7778; font-size:9px; font-weight:900; letter-spacing:.12em; }
.notification-settings-card > header h2 { margin:0; }
.notification-settings-card > header span { display:block; margin-top:5px; color:#77706c; font-size:12px; }
.notification-option-list { display:grid; margin-top:20px; border:1px solid #e3dedb; border-radius:13px; overflow:hidden; }
.notification-option-list article { display:grid; grid-template-columns:46px minmax(0,1fr) auto; align-items:center; gap:13px; padding:18px; background:#fff; border-bottom:1px solid #e8e3df; }
.notification-option-list article:last-child { border-bottom:0; }
.notification-option-icon { display:grid; place-items:center; width:46px; height:46px; border-radius:12px; background:#f5e9e9; color:#7c1416; }
.notification-option-icon .icon { width:22px; height:22px; }
.notification-option-list h3,.notification-option-list p { margin:0; }
.notification-option-list h3 { color:#302b29; font-size:14px; }
.notification-option-list p { margin-top:5px; color:#716a66; font-size:12px; line-height:1.45; }
.notification-switch { display:grid; grid-template-columns:44px; justify-items:center; gap:5px; cursor:pointer; }
.notification-switch input { position:absolute; opacity:0; pointer-events:none; }
.notification-switch > span { position:relative; width:44px; height:24px; border-radius:13px; background:#c9c3bf; transition:.2s ease; }
.notification-switch > span::after { content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:.2s ease; }
.notification-switch input:checked + span { background:#7c1416; }
.notification-switch input:checked + span::after { transform:translateX(20px); }
.notification-switch input:focus-visible + span { outline:3px solid rgba(124,20,22,.22); outline-offset:2px; }
.notification-switch small { color:#77706c; font-size:9px; font-weight:800; }
.notification-settings-card > footer { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-top:18px; padding-top:17px; border-top:1px solid #e7e1dd; }
.notification-settings-card > footer p { margin:0; color:#77706c; font-size:11px; }
@media (max-width:700px) { .notification-option-list article { grid-template-columns:42px minmax(0,1fr); } .notification-switch { grid-column:1/-1; grid-template-columns:44px auto; justify-self:end; align-items:center; } .notification-settings-card > footer { align-items:stretch; flex-direction:column; } .notification-settings-card > footer .btn { width:100%; } }
.folders-view { width:100%; max-width:var(--page-content-max-width); margin-top:31.5px; transition:max-width .22s ease,width .22s ease; }
.folders-page-shell { display:grid; grid-template-columns:255px minmax(0,1fr); min-height:620px; overflow:hidden; border:1px solid #e2ddda; border-radius:15px; background:#fff; box-shadow:0 8px 24px rgba(60,35,25,.06); }
.folders-sidebar { padding:20px 14px; border-right:1px solid #e5e0dc; background:#faf9f8; }
.folders-sidebar-title { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:0 7px 14px; }
.folders-sidebar-title p,.folders-main header p { margin:0 0 3px; color:#9a7778; font-size:9px; font-weight:900; letter-spacing:.12em; }
.folders-sidebar-title h2,.folders-main header h2 { margin:0; color:#302b29; }
.folders-add-icon { display:grid; place-items:center; width:34px; height:34px; border:0; border-radius:9px; background:#7c1416; color:#fff; cursor:pointer; }
.folders-add-icon .icon { width:17px; height:17px; }
.folders-sidebar nav { display:grid; gap:4px; }
.folder-nav-row { position:relative; }
.folder-nav-item { display:grid; grid-template-columns:20px minmax(0,1fr) auto; align-items:center; gap:8px; width:100%; padding:11px 10px; border:0; border-radius:9px; background:transparent; color:#514b48; font-family:inherit; font-size:12px; font-weight:800; text-align:left; cursor:pointer; }
.folder-nav-item .icon { width:18px; height:18px; color:#8a817d; }
.folder-nav-item small { min-width:24px; padding:2px 6px; border-radius:10px; background:#eae5e2; color:#746d69; text-align:center; }
.folder-nav-item:hover,.folder-nav-item.active { background:#f3e5e6; color:#7c1416; }
.folder-nav-item.active .icon { color:#7c1416; }
.folder-nav-row .folder-nav-item { padding-right:38px; }
.folder-delete-icon { position:absolute; top:50%; right:7px; display:grid; place-items:center; width:28px; height:28px; border:0; border-radius:7px; background:transparent; color:#958d88; transform:translateY(-50%); cursor:pointer; }
.folder-delete-icon:hover { background:#f2dfe0; color:#7c1416; }
.folder-delete-icon .icon { width:14px; height:14px; }
.folder-create-form { display:grid; gap:10px; margin-top:16px; padding:13px; border:1px solid #dfd8d4; border-radius:10px; background:#fff; }
.folder-create-form label { display:grid; gap:6px; color:#514b48; font-size:11px; font-weight:800; }
.folder-create-form input { height:38px; padding:0 10px; border:1px solid #d8d1cd; border-radius:8px; }
.folder-create-form > div { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.folder-create-form .btn { min-height:36px; height:36px; padding:0 9px; font-size:10px; }
.folders-main { min-width:0; padding:22px; }
.folders-main > header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-bottom:18px; border-bottom:1px solid #e8e3df; }
.folders-main header span { display:block; margin-top:4px; color:#837b77; font-size:11px; }
.folders-main > header > div:last-child { display:flex; gap:9px; }
.folders-main > header .btn:first-child .icon { transform:rotate(180deg); }
.folder-recordings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:18px; }
.folder-recording-card { display:grid; gap:12px; padding:15px; border:1px solid #e1dcda; border-radius:12px; background:#fff; box-shadow:0 3px 10px rgba(50,30,20,.04); }
.folder-recording-card:hover { border-color:#cdaeb0; box-shadow:0 7px 17px rgba(75,25,27,.08); }
.folder-recording-open { display:grid; grid-template-columns:42px minmax(0,1fr) 16px; align-items:center; gap:10px; padding:0; border:0; background:transparent; color:#4b4542; text-align:left; cursor:pointer; }
.folder-recording-open > .icon { width:15px; height:15px; color:#99908b; }
.folder-recording-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:11px; background:#f5e9e9; color:#7c1416; }
.folder-recording-icon .icon { width:20px; height:20px; }
.folder-recording-open h3,.folder-recording-open p { margin:0; }
.folder-recording-open h3 { overflow:hidden; color:#302b29; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.folder-recording-open p { margin-top:4px; color:#817a76; font-size:10px; }
.folder-recording-card > label { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:8px; padding-top:10px; border-top:1px solid #eee9e6; color:#77706c; font-size:10px; font-weight:800; }
.folder-recording-card select { min-width:0; height:34px; padding:0 28px 0 8px; border:1px solid #d9d2ce; border-radius:7px; background:#faf9f8; color:#4d4744; font-family:inherit; font-size:10px; }
.folders-empty { display:grid; justify-items:center; margin-top:30px; padding:48px 20px; border:1px dashed #d6cfcb; border-radius:13px; color:#837b77; text-align:center; }
.folders-empty > .icon { width:42px; height:42px; color:#b89a9b; }
.folders-empty h3 { margin:12px 0 5px; color:#514b48; }
.folders-empty p { max-width:430px; margin:0; font-size:12px; }
@media (max-width:900px) { .folders-page-shell { grid-template-columns:210px minmax(0,1fr); } .folder-recordings-grid { grid-template-columns:1fr; } }
@media (max-width:700px) { .folders-page-shell { grid-template-columns:1fr; } .folders-sidebar { border-right:0; border-bottom:1px solid #e5e0dc; } .folders-sidebar nav { grid-template-columns:1fr 1fr; } .folders-main { padding:16px; } .folders-main > header { align-items:stretch; flex-direction:column; } .folders-main > header > div:last-child { display:grid; grid-template-columns:1fr 1fr; } .folders-main > header .btn { width:100%; } }
.folder-list-controls { display:flex; justify-content:flex-end; margin-top:16px; }
.folder-list-controls label { display:flex; align-items:center; gap:8px; color:#716a66; font-size:11px; font-weight:800; }
.folder-list-controls select,.folder-bulk-bar select { height:38px; padding:0 32px 0 10px; border:1px solid #d8d1cd; border-radius:8px; background:#fff; color:#4d4744; font-family:inherit; font-size:11px; font-weight:700; }
.folder-bulk-bar { display:flex; align-items:center; gap:9px; margin-top:14px; padding:10px 12px; border:1px solid #d7b8ba; border-radius:10px; background:#fbf2f2; }
.folder-bulk-bar strong { margin-right:auto; color:#7c1416; font-size:11px; }
.folder-bulk-bar select { min-width:175px; }
.folder-bulk-bar .btn { min-height:36px; height:36px; padding:0 11px; font-size:10px; }
.folder-bulk-trash { color:#7c1416 !important; border-color:#d6b7b8 !important; background:#fff !important; }
.folder-table-wrap { margin-top:14px; overflow:auto; border:1px solid #e1dcda; border-radius:12px; }
.folder-recordings-table { width:100%; min-width:760px; border-collapse:collapse; table-layout:fixed; }
.folder-recordings-table th { position:relative; padding:12px 13px; border-bottom:1px solid #dcd5d1; background:#f7f5f3; color:#6f6763; font-size:10px; font-weight:900; text-align:left; }
.folder-recordings-table th:first-child .folder-check { margin-right:10px; vertical-align:middle; }
.folder-recordings-table td { padding:12px 13px; border-bottom:1px solid #eee9e6; color:#514b48; font-size:11px; vertical-align:middle; }
.folder-recordings-table tbody tr:last-child td { border-bottom:0; }
.folder-recordings-table tbody tr:hover { background:#fdf9f8; }
.folder-recordings-table td:first-child .folder-check { margin-right:10px; vertical-align:middle; }
.folder-check { flex:0 0 auto; display:inline-grid; place-items:center; cursor:pointer; }
.folder-check input { position:absolute; opacity:0; pointer-events:none; }
.folder-check span { display:grid; place-items:center; width:18px; height:18px; border:1.5px solid #aaa19c; border-radius:5px; background:#fff; }
.folder-check input:checked + span { border-color:#7c1416; background:#7c1416; }
.folder-check input:checked + span::after { content:""; width:8px; height:4px; border-left:2px solid #fff; border-bottom:2px solid #fff; transform:translateY(-1px) rotate(-45deg); }
.folder-check input:focus-visible + span { outline:3px solid rgba(124,20,22,.18); outline-offset:2px; }
.folder-note-title { display:inline-grid; grid-template-columns:28px minmax(0,1fr); align-items:center; gap:8px; width:calc(100% - 34px); min-width:0; padding:0; border:0; background:transparent; text-align:left; vertical-align:middle; cursor:pointer; }
.folder-note-title > i { display:grid; place-items:center; width:28px; height:28px; border-radius:8px; background:#f5e9e9; color:#7c1416; font-style:normal; }
.folder-note-title > i .icon { width:14px; height:14px; }
.folder-note-title strong,.folder-note-title small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.folder-note-title strong { color:#302b29; font-size:12px; }
.folder-note-title small { margin-top:3px; color:#8a817d; font-size:9px; }
.folder-creator-avatar { position:relative; display:inline-grid; place-items:center; width:28px; height:28px; margin-right:7px; overflow:hidden; border-radius:50%; background:#7c1416; color:#fff; font-size:10px; font-weight:900; vertical-align:middle; }
.folder-creator-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#7c1416; }
.folder-creator-name { vertical-align:middle; }
.folder-column-resizer { position:absolute; z-index:3; top:0; right:-4px; width:9px; height:100%; cursor:col-resize; touch-action:none; }
.folder-column-resizer::after { content:""; position:absolute; top:20%; bottom:20%; left:4px; width:1px; background:#c8c0bc; }
.folder-column-resizer:hover::after,.folder-column-resizing .folder-column-resizer::after { width:2px; background:#7c1416; }
.folder-column-resizing { cursor:col-resize !important; user-select:none !important; }
.folder-pagination { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:14px; }
.folder-pagination span { color:#716a66; font-size:11px; font-weight:800; }
.folder-pagination .btn { min-width:92px; height:36px; min-height:36px; font-size:10px; }
.folder-pagination .btn:disabled { opacity:.45; cursor:not-allowed; }
@media (max-width:700px) { .folder-list-controls { justify-content:stretch; } .folder-list-controls label,.folder-list-controls select { width:100%; } .folder-bulk-bar { align-items:stretch; flex-direction:column; } .folder-bulk-bar strong { margin:0; } .folder-bulk-bar select,.folder-bulk-bar .btn { width:100%; } }
@media (max-width:700px) { .folder-pagination { justify-content:space-between; gap:7px; } .folder-pagination span { text-align:center; } .folder-pagination .btn { min-width:78px; padding:0 8px; } }
.profile-password-form {
  grid-template-columns: 1fr;
}
.profile-password-form label,
.profile-pin-label {
  display: grid;
  gap: 6px;
  color: #262626;
  font-size: 12px;
  font-weight: 750;
}
.profile-password-form input,
.profile-pin-label input {
  width: 100%;
  height: 37.5px;
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  background: #fff;
  color: #161616;
  padding: 0 10.5px;
  outline: none;
  font-size: 12px;
}
.profile-password-form input:focus,
.profile-pin-label input:focus {
  border-color: var(--lpb-red);
  box-shadow: 0 0 0 3px rgba(143,23,27,.08);
}
.profile-actions-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.profile-actions-row .btn {
  min-height: 37.5px;
}

.profile-pin-label-compact {
  gap: 0;
}
.profile-pin-wrap {
  max-width: 220px;
}
.profile-pin-wrap input,
.profile-pin-wrap input:focus {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.profile-device-list {
  display: grid;
  gap: 10.5px;
}
.profile-device-card {
  border: 0.75px solid var(--lpb-line);
  border-radius: 12px;
  background: #fffdfc;
  padding: 12px;
  display: grid;
  gap: 10.5px;
}
.profile-device-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile-device-head .icon {
  width: 25.5px;
  height: 25.5px;
  color: var(--lpb-red-dark);
  flex: 0 0 25.5px;
}
.profile-device-head strong {
  display: block;
  color: var(--lpb-red-dark);
  font-size: 13.5px;
}
.profile-device-head span {
  display: block;
  color: var(--lpb-muted);
  font-size: 11.25px;
  font-weight: 800;
}
.profile-device-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
}
.profile-device-card dt {
  color: var(--lpb-muted);
  font-size: 10.5px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.profile-device-card dd {
  margin: 3px 0 0;
  color: #222;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.profile-data-actions .danger {
  margin-left: auto;
}

.profile-device-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.profile-device-actions .btn {
  min-height: 36px;
}
.profile-section-title.no-icon {
  gap: 0;
}

/* Mon profil : profil d’en-tête agrandi, réduit de 20 %, et sessions en une ligne sur grande fenêtre. */
@media (min-width: 1281px) {
  .profile-menu-button {
    width: 69.6px;
    height: 69.6px;
  }
  .profile-menu-button .icon {
    width: 33.6px;
    height: 33.6px;
  }
  .profile-menu {
    top: calc(100% + 12px);
  }
  .profile-device-card dl {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
  }
}

/* Confirmation de mot de passe dans la gestion des utilisateurs */
.user-password-field,
.user-password-confirm-field { grid-column: auto; }

@media (max-width: 900px) {
  .profile-view {
    max-width: none;
    margin-top: 22.5px;
  }
  .profile-menu-button {
    width: 39px;
    height: 39px;
  }
  .profile-menu-button .icon {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 720px) {
  .topbar-profile { margin-left: 7.5px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card-main,
  .profile-storage-card,
  .profile-pin-card,
  .profile-photo-card,
  .profile-password-card { grid-column: 1 / -1; }
  .profile-password-form { grid-template-columns: 1fr; }
  .profile-device-card dl { grid-template-columns: 1fr; }
  .profile-data-actions .danger { margin-left: 0; }
  .profile-card-head { align-items: flex-start; }
}

@media (max-width: 520px) {
  .profile-menu-button {
    width: 34.5px;
    height: 34.5px;
  }
  .profile-menu-button .icon {
    width: 17px;
    height: 17px;
  }
  .profile-menu {
    right: -4px;
    top: calc(100% + 7.5px);
  }
  .profile-photo-preview {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }
  .profile-photo-form input[type="file"],
  .profile-password-form input,
  .profile-pin-label input {
    min-height: 43.5px;
    font-size: 16px;
  }
  .profile-actions-row .btn {
    min-height: 48px;
    flex: 1 1 100%;
  }
  .profile-device-actions {
    justify-content: stretch;
  }
  .profile-device-actions .btn {
    width: 100%;
    min-height: 46px;
  }
}

/* Mon profil : aide photo sur plusieurs lignes et boutons harmonisés avec Paramètres. */
.profile-photo-help {
  line-height: 1.5;
}
.profile-actions-row .btn,
.profile-device-actions .btn {
  min-height: 37.5px;
  height: 37.5px;
  padding: 0 12px;
  gap: 7.5px;
  font-size: 12px;
  font-weight: 700;
}
.profile-actions-row .btn .icon,
.profile-device-actions .btn .icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 520px) {
  .profile-actions-row .btn,
  .profile-device-actions .btn {
    min-height: 43.5px;
    height: 43.5px;
    padding: 0 12px;
    font-size: 12.75px;
  }
  .profile-actions-row .btn .icon,
  .profile-device-actions .btn .icon {
    width: 16.5px;
    height: 16.5px;
  }
}



/* Ajustements profil : boutons appareils gris très pâle sans dégradé et optimisation couleur Sauvegarder. */
.profile-device-actions .btn.device-disconnect-gray {
  color: #667085;
  border-color: #edf1f5;
  background: #f8fafc;
  background-image: none;
  box-shadow: none;
}
.profile-device-actions .btn.device-disconnect-gray:hover {
  color: #4b5565;
  border-color: #e4e9ef;
  background: #f1f5f9;
  background-image: none;
  box-shadow: none;
}
.profile-device-actions .btn.device-disconnect-gray .icon,
.profile-logout-card .btn.profile-cache-refresh .icon { color: currentColor; }


/* Ajustements demandés : PIN, menu profil et affichage iPhone de Mon profil. */
.profile-pin-card .profile-pin-wrap .pin-visibility-toggle {
  background: #f7f7f7;
}
.profile-pin-card .profile-pin-wrap .pin-visibility-toggle:hover {
  background: #f7f7f7;
}
.profile-menu button:hover,
.profile-menu a:hover {
  background: #f7f7f7;
  color: var(--lpb-red-dark);
}

@media (max-width: 520px) {
  .profile-view {
    width: 100%;
    max-width: 100%;
    margin-top: 16.5px;
    overflow-x: hidden;
  }
  .profile-top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10.5px;
    width: 100%;
  }
  .profile-top-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    height: 48px;
    justify-content: center;
    padding: 0 9px;
    font-size: 12.75px;
    white-space: nowrap;
  }
  .profile-top-actions .btn .icon {
    width: 16.5px;
    height: 16.5px;
  }
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
  }
  .profile-card-main,
  .profile-storage-card,
  .profile-pin-card,
  .profile-photo-card,
  .profile-password-card,
  .profile-export-card,
  .profile-devices-card,
  .profile-logout-card {
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }
  .profile-card-head {
    gap: 10.5px;
  }
  .profile-card-head > div:last-child,
  .profile-section-title > div,
  .profile-device-head > div,
  .profile-storage-meter {
    min-width: 0;
  }
  .profile-card-head h2,
  .profile-card-head p,
  .profile-section-title h2,
  .profile-section-title p,
  .profile-device-head strong,
  .profile-device-head span {
    overflow-wrap: anywhere;
  }
  .profile-badges,
  .profile-storage-meta {
    gap: 6px;
  }
  .profile-badges span,
  .profile-storage-meta span {
    min-width: 0;
    max-width: 100%;
  }
  .profile-storage-usage {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
  }
  .profile-storage-usage > .icon {
    width: 24px;
    height: 24px;
  }
  .profile-pin-wrap {
    max-width: 100%;
  }
  .profile-photo-form input[type="file"] {
    width: 100%;
    min-width: 0;
  }
  .profile-actions-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }
  .profile-actions-row .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  .profile-device-card {
    padding: 10.5px;
  }
  .profile-device-head {
    align-items: flex-start;
  }
  .profile-device-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }
  .profile-device-actions .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}


/* Ajustements profil et page Informations demandés. */
.guide-top-actions {
  margin-top: 0;
  margin-bottom: 15px;
}
.guide-back-button .icon {
  transform: rotate(180deg);
  transform-origin: center;
}

@media (max-width: 520px) {
  .profile-top-actions .btn {
    min-height: 56px;
    height: 56px;
    font-size: 14px;
  }
  .profile-top-actions .btn .icon {
    width: 18px;
    height: 18px;
  }
  .profile-photo-card .profile-actions-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-photo-card .profile-actions-row .btn {
    width: 100%;
  }
  .profile-data-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-data-actions .btn {
    width: 100%;
  }
  .profile-data-actions .danger {
    grid-column: 1 / -1;
  }
  .guide-top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10.5px;
    width: 100%;
  }
  .guide-top-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    height: 52px;
    justify-content: center;
    font-size: 13px;
    white-space: nowrap;
  }
  .guide-top-actions .btn .icon {
    width: 17px;
    height: 17px;
  }
}

/* État du serveur : grille finale en 4 colonnes sur ordinateur et 2 colonnes sur iPhone. */
.settings-card .status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 15px;
}
.settings-card .status-pill {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0 8.25px;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.settings-card .status-pill strong {
  display: block;
  margin-bottom: 4.5px;
  color: #222;
  font-size: 12.25px;
  font-weight: 800;
}
.settings-card .status-pill.ok span {
  color: #357a37;
  font-weight: 700;
}
.settings-card .status-pill.warn span {
  color: #9b6714;
  font-weight: 700;
}
@media (max-width: 900px) {
  .settings-card .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .settings-card .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 12px; }
  .settings-card .status-pill { font-size: 11px; }
  .settings-card .status-pill strong { font-size: 11.25px; }
}

/* Ajustements couleurs Paramètres : rôles et utilisateurs */
.user-create-panel {
  border-color: #cfe0f5;
  background: #edf6ff;
}
.user-create-toggle {
  color: #1f5fa8;
  background: #edf6ff;
}
.user-create-toggle:hover,
.user-create-toggle[aria-expanded="true"] {
  background: #edf6ff;
}
.user-create-panel .user-toggle-symbol {
  background: #1f5fa8;
  color: #fff;
}
.user-create-body {
  background: #edf6ff;
}
.user-create-body .user-editor-create {
  border-color: #cfe0f5;
  background: #edf6ff;
}
.user-create-panel .user-editor-create .btn[data-action="save-user"].primary {
  background: #1f5fa8;
  border-color: transparent;
  color: #fff;
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.16), 0 7.5px 15px rgba(31,95,168,.18);
}
.user-create-panel .user-editor-create .btn[data-action="save-user"].primary:hover {
  background: #1f5fa8;
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.16), 0 8px 16px rgba(31,95,168,.24);
}

.user-list .user-entry {
  border-color: #d7d7d7;
  background: #f7f7f7;
}
.user-list .user-entry-toggle {
  background: #f7f7f7;
  color: #1f1f1f;
}
.user-list .user-entry-toggle:hover {
  background: #efefef;
}
.user-list .user-entry.is-open .user-entry-toggle {
  background: #ececec;
  border-bottom-color: #d7d7d7;
}
.user-list .user-entry-body {
  background: #f7f7f7;
}
.user-list .user-entry-body .user-editor {
  background: transparent;
}
.user-list .user-profile-button {
  background: #8a8a8a;
  box-shadow: 0 6px 16px rgba(84, 91, 103, .15);
}
.user-list .user-entry-toggle[aria-expanded="true"] .user-profile-button {
  background: #6f6f6f;
}


/* Ajustements Paramètres : formulaires utilisateurs et étiquettes */
.user-create-body {
  background: #f7f7f7;
}
.user-create-body .user-editor-create {
  border-color: #d7d7d7;
  background: #f7f7f7;
}
.user-create-body .user-editor-create .user-fields-grid input,
.user-create-body .user-editor-create .user-fields-grid select,
.user-create-body .user-editor-create .permission-check {
  background: #fff;
}
.user-list .pin-visibility-toggle,
.user-entry-body .pin-visibility-toggle {
  background: #f7f7f7;
  color: var(--lpb-red-dark);
}
.user-list .pin-visibility-toggle:hover,
.user-entry-body .pin-visibility-toggle:hover {
  background: #eeeeee;
}
.user-list .btn.user-reset-email-button,
.user-actions-row .btn.user-reset-email-button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #de8126, #b95e10);
  box-shadow: inset 0 .75px 0 rgba(255,255,255,.16), 0 7.5px 15px rgba(185,94,16,.18);
}
.user-list .btn.user-reset-email-button:hover,
.user-actions-row .btn.user-reset-email-button:hover {
  box-shadow: inset 0 .75px 0 rgba(255,255,255,.16), 0 7.5px 15px rgba(185,94,16,.24);
}
.tag-label-cell {
  min-width: 0;
}
.tag-manager-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f8eeee;
  color: var(--lpb-red-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}
.tag-manager-icon .icon {
  width: 14px;
  height: 14px;
}
.tag-rename-row .tag-modify-button {
  color: #fff;
}

@media (max-width: 520px) {
  .tag-manager-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .tag-manager-icon .icon {
    width: 16px;
    height: 16px;
  }
}

/* Ajustements demandés : Gestion des utilisateurs et étiquettes mobile. */
.user-create-panel {
  border-color: #d7d7d7;
  background: #f7f7f7;
}
.user-create-toggle,
.user-create-toggle[aria-expanded="true"] {
  background: #f7f7f7;
  color: #333333;
}
.user-create-toggle:hover {
  background: #f7f7f7;
}
.user-create-toggle small {
  color: #6b6b6b;
}
.user-create-panel .user-toggle-symbol {
  background: #8a8a8a;
  color: #ffffff;
}
.user-create-body,
.user-create-body .user-editor-create {
  border-color: #d7d7d7;
  background: #f7f7f7;
}

@media (max-width: 520px) {
  .tag-rename-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .tag-rename-row .tag-label-cell,
  .tag-rename-row input {
    grid-column: 1 / -1;
  }
  .tag-rename-row select {
    grid-column: 1;
    min-width: 0;
  }
  .tag-rename-row .tag-modify-button {
    grid-column: 2;
    width: auto;
    min-width: 105px;
    height: 43.5px;
    min-height: 43.5px;
    align-self: end;
    white-space: nowrap;
  }
}

/* Ajustements finaux : Ajouter un utilisateur en gris pâle et bouton Modifier à droite du menu couleur sur iPhone. */
.user-create-panel,
.user-create-toggle,
.user-create-toggle[aria-expanded="true"],
.user-create-body,
.user-create-body .user-editor-create {
  background: #f7f7f7 !important;
}
.user-create-panel,
.user-create-body .user-editor-create {
  border-color: #d7d7d7 !important;
}
.user-create-toggle {
  color: #333333 !important;
}
.user-create-toggle:hover {
  background: #f7f7f7 !important;
}
.user-create-toggle small {
  color: #6b6b6b !important;
}
.user-create-panel .user-toggle-symbol {
  background: #8a8a8a !important;
  color: #ffffff !important;
}

@media (max-width: 520px) {
  .tag-rename-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
  }
  .tag-rename-row .tag-label-cell,
  .tag-rename-row input {
    grid-column: 1 / -1 !important;
  }
  .tag-rename-row select {
    grid-column: 1 !important;
    min-width: 0 !important;
    height: 43.5px !important;
  }
  .tag-rename-row .tag-modify-button {
    grid-column: 2 !important;
    width: auto !important;
    min-width: 105px;
    height: 43.5px !important;
    min-height: 43.5px !important;
    align-self: end !important;
    white-space: nowrap;
  }
}


/* Ajustement : le bouton/formulaire "Ajouter un utilisateur" ne change pas de couleur au survol. */
.user-create-toggle:hover,
.user-create-toggle:focus-visible,
.user-create-toggle[aria-expanded="true"]:hover,
.user-create-panel:hover .user-create-toggle {
  background: #f7f7f7 !important;
}
.user-create-toggle:hover .user-toggle-symbol,
.user-create-toggle:focus-visible .user-toggle-symbol,
.user-create-toggle[aria-expanded="true"]:hover .user-toggle-symbol {
  background: #8a8a8a !important;
  color: #ffffff !important;
}


/* Ajustements : ajouter un utilisateur et mot de passe minimum 9 caractères. */
.user-create-panel .user-editor-create .btn[data-action="save-user"].primary {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(180deg, #9a2a2d, var(--lpb-red-dark)) !important;
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.15), 0 7.5px 15px rgba(104,16,19,.18) !important;
}
.user-create-panel .user-editor-create .btn[data-action="save-user"].primary:hover {
  background: linear-gradient(180deg, #9a2a2d, var(--lpb-red-dark)) !important;
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.15), 0 8px 16px rgba(104,16,19,.22) !important;
}

/* Pagination, choix d'affichage et journal d'actions */
.notes-display-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10.5px 12px;
  border: 0.75px solid var(--lpb-line);
  border-radius: 12px;
  background: #fff;
}
.notes-display-toolbar > span {
  color: #555;
  font-size: 12.75px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.display-mode-buttons {
  display: flex;
  align-items: center;
  gap: 7.5px;
  flex-wrap: wrap;
}
.display-mode-button {
  min-height: 34.5px;
  padding: 0 12px;
  border: 0.75px solid var(--lpb-line);
  border-radius: 8.25px;
  background: #fff;
  color: #555;
  font-size: 12.75px;
  font-weight: 800;
}
.display-mode-button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #9a2a2d, var(--lpb-red-dark));
}
.list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10.5px 12px;
  border: 0.75px solid var(--lpb-line);
  border-radius: 12px;
  background: #fff;
}
.pagination-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13.5px;
  border: 0.75px solid transparent;
  border-radius: 8.25px;
  background: linear-gradient(180deg, #9a2a2d, var(--lpb-red-dark));
  color: #fff;
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.15), 0 7.5px 15px rgba(104,16,19,.18);
  font-size: 12.75px;
  font-weight: 800;
}
.pagination-button:hover:not(:disabled) {
  transform: translateY(-0.75px);
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.15), 0 8px 16px rgba(104,16,19,.24);
}
.pagination-button .icon { width: 14px; height: 14px; }
.pagination-button:not(.next) .icon { transform: rotate(180deg); }
.pagination-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.12), 0 4px 8px rgba(104,16,19,.12);
}
.pagination-status {
  color: #666;
  font-size: 12.75px;
  font-weight: 750;
  text-align: center;
}
.activity-item {
  grid-template-columns: 36px 1fr;
  gap: 12px;
}
.activity-icon {
  width: 31.5px;
  height: 31.5px;
  border-radius: 9px;
}
.activity-icon .icon {
  width: 16.875px;
  height: 16.875px;
  stroke-width: 2.15;
}
.notes-display-list .note-card,
.notes-display-compact .note-card {
  min-height: auto;
  padding: 15px 18px;
}
.notes-display-list .note-card {
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 15px;
}
.notes-display-list .note-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.notes-display-list .note-icon .icon { width: 23px; height: 23px; }
.notes-display-list .note-title { font-size: 17.25px; }
.notes-display-list .note-meta { font-size: 12.75px; gap: 10px; margin-top: 4.5px; }
.notes-display-list .meta-piece .icon { width: 14px; height: 14px; }
.notes-display-list .tag-row { margin-top: 6px; }
.notes-display-list .tag { min-height: 23px; font-size: 12.25px; padding: 2px 9px; border-radius: 9px; }
.notes-display-list .play-button { width: 39px; height: 39px; }
.notes-display-list .play-button .icon { width: 18px; height: 18px; }
.notes-display-list .kebab-button .icon { width: 21px; height: 21px; }
.notes-display-compact .note-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.notes-display-compact .note-icon { display: none; }
.notes-display-compact .note-title { font-size: 15px; }
.notes-display-compact .note-meta { font-size: 11.75px; gap: 9px; margin-top: 3px; }
.notes-display-compact .meta-piece .icon { width: 12.75px; height: 12.75px; }
.notes-display-compact .tag-row { display: none; }
.notes-display-compact .play-button { width: 34.5px; height: 34.5px; }
.notes-display-compact .play-button .icon { width: 16px; height: 16px; }
.notes-display-compact .kebab-button .icon { width: 19px; height: 19px; }


/* Barre d'affichage également disponible dans Historique, Notes favorites et Corbeille */
.activity-display-list .activity-item {
  padding: 14px 18px;
}
.activity-display-list .activity-head h2 { font-size: 15.25px; }
.activity-display-list .activity-details { font-size: 12.75px; }
.activity-display-compact .activity-item {
  grid-template-columns: 30px 1fr;
  gap: 9px;
  padding: 10.5px 12px;
}
.activity-display-compact .activity-icon {
  width: 27px;
  height: 27px;
  border-radius: 8px;
}
.activity-display-compact .activity-icon .icon {
  width: 14.5px;
  height: 14.5px;
}
.activity-display-compact .activity-head {
  gap: 9px;
}
.activity-display-compact .activity-head h2 {
  font-size: 13.5px;
}
.activity-display-compact .activity-head time,
.activity-display-compact .activity-note-title,
.activity-display-compact .activity-details {
  font-size: 11.25px;
}
@media (max-width: 700px) {
  .activity-display-list .activity-item,
  .activity-display-compact .activity-item {
    grid-template-columns: 27px 1fr;
    gap: 7.5px;
    padding: 10px 10.5px;
  }
  .activity-display-list .activity-head,
  .activity-display-compact .activity-head {
    display: grid;
    gap: 3px;
  }
  .activity-display-list .activity-icon,
  .activity-display-compact .activity-icon {
    width: 24px;
    height: 24px;
  }
  .activity-display-list .activity-icon .icon,
  .activity-display-compact .activity-icon .icon {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 700px) {
  .notes-display-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }
  .display-mode-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .display-mode-button {
    width: 100%;
    min-height: 32px;
    padding: 0 7.5px;
    font-size: 11.25px;
  }
  .list-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7.5px;
  }
  .pagination-status {
    grid-column: 1 / -1;
    order: -1;
    font-size: 11.25px;
  }
  .pagination-button {
    width: 100%;
    min-height: 34.5px;
    padding: 0 9px;
    font-size: 11.25px;
  }
  .activity-item {
    grid-template-columns: 30px 1fr;
    gap: 9px;
  }
  .activity-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
  }
  .activity-icon .icon {
    width: 14.625px;
    height: 14.625px;
  }
  .notes-display-list .note-card,
  .notes-display-compact .note-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .notes-display-list .note-icon { display: none; }
  .notes-display-list .note-title,
  .notes-display-compact .note-title { font-size: 13.5px; }
}

/* Nouvelle note — grand écran : boutons Démarrer / Arrêter / Sauvegarder plus hauts avec icône au-dessus du texte. */
@media (min-width: 901px) {
  .record-page #noteForm .record-actions {
    align-items: stretch;
    gap: 13.5px;
  }

  .record-page #noteForm .record-actions .record-start-button,
  .record-page #noteForm .record-actions .record-stop-button,
  .record-page #noteForm .record-actions .record-save-button {
    min-width: 132px;
    height: 72px;
    min-height: 72px;
    padding: 9px 18px;
    flex-direction: column;
    gap: 6px;
    line-height: 1.05;
  }

  .record-page #noteForm .record-actions .record-start-button .icon,
  .record-page #noteForm .record-actions .record-stop-button .icon,
  .record-page #noteForm .record-actions .record-save-button .icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
}


/* Nouvelle note : vumètre audio actif pendant l'enregistrement. */
@media (max-width: 700px) {
  .vu-meter {
    max-width: 100%;
    padding: 6.75px;
    margin-bottom: 10.5px;
  }
  .vu-meter-head {
    font-size: 9px;
  }
  .vu-meter-head strong {
    font-size: 9px;
  }
  .vu-meter-bar {
    height: 10.5px;
  }
}

@media (min-width: 1100px) {
  .vu-meter {
    max-width: 222px;
  }
}

/* Nouvelle note : titre/étiquette côte à côte, vumètre sous les boutons et états limités. */
.record-title-tags-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .52fr);
  gap: 13.5px;
  align-items: end;
}
.record-page #noteForm .record-vu-meter,
.record-vu-meter {
  width: 100%;
  max-width: 100%;
  margin: 3px 0 0;
}
.record-vu-meter .vu-meter-head strong {
  min-width: max-content;
}
.record-vu-meter.is-active .vu-meter-head strong {
  color: #477a46;
}
@media (max-width: 560px) {
  .record-title-tags-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
  }
  .record-page #noteForm .record-vu-meter,
  .record-vu-meter {
    margin-top: 1.5px;
  }
  .record-vu-meter .vu-meter-head {
    gap: 6px;
  }
}
@media (max-width: 360px) {
  .record-title-tags-row {
    gap: 7.5px;
  }
  .record-title-tags-row label {
    font-size: 10.5px;
  }
  .record-title-tags-row input {
    padding-left: 7.5px;
    padding-right: 7.5px;
  }
}

/* Nouvelle note : alignement du vumètre et du texte d’aide sur la largeur des 3 boutons. */
.record-page #noteForm .record-actions,
.record-page #noteForm .record-vu-meter,
.record-page #noteForm .form-help {
  width: min(100%, 423px);
  max-width: 423px;
}

.record-page #noteForm .record-vu-meter .vu-meter-bar {
  height: 4px;
}

.record-page #noteForm .record-vu-meter .vu-meter-bar::after {
  background: none;
}

@media (max-width: 560px) {
  .record-page #noteForm .record-actions,
  .record-page #noteForm .record-vu-meter,
  .record-page #noteForm .form-help {
    width: 100%;
    max-width: 100%;
  }

  .record-page #noteForm .record-vu-meter .vu-meter-bar {
    height: 4px;
  }
}


/* Nouvelle note : garder l’option de transcription et résumé IA à droite du menu Langue, même sur iPhone. */
.record-page #noteForm .record-language-ai-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: end;
  gap: 13.5px;
}
.record-page #noteForm .record-language-ai-row > label:first-child {
  min-width: 0;
}
.record-page #noteForm .record-language-ai-row .check-line {
  width: auto;
  min-width: max-content;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .record-page #noteForm .record-language-ai-row {
    grid-template-columns: minmax(112px, 1fr) max-content !important;
    gap: 8.25px;
  }
  .record-page #noteForm .record-language-ai-row .check-line {
    min-height: 37.5px;
    padding: 0 7.5px;
    gap: 6px !important;
    font-size: 11.25px !important;
  }
  .record-page #noteForm .record-language-ai-row .check-line input {
    width: 13.5px;
    height: 13.5px;
    flex: 0 0 13.5px;
  }
  .record-page #noteForm .record-language-ai-row select {
    font-size: 11.5px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 360px) {
  .record-page #noteForm .record-language-ai-row {
    grid-template-columns: minmax(105px, 1fr) max-content !important;
    gap: 6px;
  }
  .record-page #noteForm .record-language-ai-row .check-line {
    padding: 0 5.25px;
    gap: 4.5px !important;
    font-size: 10.5px !important;
  }
  .record-page #noteForm .record-language-ai-row .check-line input {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }
}

/* Administration : gestion des étiquettes principales. */
.main-tag-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, .55fr) auto;
  align-items: end;
  gap: 9px;
  padding: 10.5px;
  margin: 12px 0 10.5px;
  border: 0.75px solid var(--lpb-line);
  border-radius: 10.5px;
  background: #f7f7f7;
}
.main-tag-create label {
  display: grid;
  gap: 6px;
  color: #262626;
  font-size: 12px;
  font-weight: 750;
}
.main-tag-create input,
.main-tag-create select {
  width: 100%;
  height: 36px;
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  padding: 0 10.5px;
  background: #fff;
  color: #161616;
  font-size: 12px;
  outline: none;
}
.main-tag-create input:focus,
.main-tag-create select:focus {
  border-color: var(--lpb-red);
  box-shadow: 0 0 0 3px rgba(143,23,27,.08);
}
.main-tag-create .btn {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}
.main-tag-create [data-action="add-main-tag"] .icon,
.main-tag-row [data-action="save-main-tag"] .icon,
.main-tag-row [data-action="delete-main-tag"] .icon {
  width:15px;
  height:15px;
  stroke-width:2.1;
}
.main-tag-row {
  grid-template-columns: minmax(130px, 1fr) minmax(150px, 1.05fr) minmax(120px, .75fr) auto auto;
}
.main-tag-row .main-tag-delete-button {
  white-space: nowrap;
}
.main-tag-row .main-tag-delete-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .main-tag-create {
    grid-template-columns: minmax(0, 1fr) minmax(130px, .55fr) auto;
    gap: 7.5px;
  }
  .main-tag-create .btn { min-width: 88px; }
}

@media (max-width: 520px) {
  .main-tag-create {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .main-tag-create label:first-child {
    grid-column: 1 / -1;
  }
  .main-tag-create .btn {
    width: auto;
    min-width: 102px;
    height: 43.5px;
    min-height: 43.5px;
    align-self: end;
  }
  .main-tag-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .main-tag-row .tag-label-cell,
  .main-tag-row [data-main-tag-name] {
    grid-column: 1 / -1;
  }
  .main-tag-row [data-main-tag-color] {
    grid-column: 1;
    min-width: 0;
  }
  .main-tag-row .tag-modify-button,
  .main-tag-row .main-tag-delete-button {
    grid-column: 2;
    width: auto;
    min-width: 105px;
    height: 43.5px;
    min-height: 43.5px;
    align-self: end;
    white-space: nowrap;
  }
  .main-tag-row .main-tag-delete-button {
    grid-column: 1 / -1;
    justify-self: end;
  }
  .main-tag-create [data-action="add-main-tag"] .icon,
  .main-tag-row [data-action="save-main-tag"] .icon,
  .main-tag-row [data-action="delete-main-tag"] .icon {
    width:14px;
    height:14px;
  }
}

/* Mise à jour : étiquettes principales/secondaires et alignement mobile Nouvelle note. */
.record-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "title title"
    "primary secondary"
    "language transcribe";
  gap: 13.5px;
  align-items: end;
}
.record-title-field { grid-area: title; }
.record-primary-field { grid-area: primary; min-width: 0; }
.record-secondary-field { grid-area: secondary; min-width: 0; }
.record-language-field { grid-area: language; min-width: 0; }
.record-ai-fields {
  grid-area: transcribe;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  min-width:0;
}
.record-transcribe-field,
.record-summary-field {
  align-self: end;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  line-height:1.05;
}
.record-transcribe-field input,
.record-summary-field input { flex: 0 0 13.5px; }
.detail-tags-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 13.5px;
  align-items: end;
}
.detail-tags-edit-row .detail-label { min-width: 0; }

@media (max-width: 560px) {
  .record-config-grid {
    grid-template-columns: minmax(0, 1fr) minmax(118px, max-content);
    grid-template-areas:
      "title primary"
      "language transcribe";
    gap: 9px;
  }
  .record-title-field,
  .record-primary-field,
  .record-language-field {
    min-width: 0;
    width: 100%;
  }
  .record-secondary-field { display: none !important; }
  .record-primary-field {
    justify-self: stretch;
  }
  .record-transcribe-field,
  .record-summary-field {
    min-height: 37.5px;
    padding: 0 7.5px;
    gap: 6px !important;
    font-size: 11.25px !important;
    white-space: normal;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
  .record-transcribe-field input,
  .record-summary-field input {
    width: 13.5px;
    height: 13.5px;
    flex-basis: 13.5px;
  }
  .record-title-field input,
  .record-primary-field select,
  .record-language-field select {
    font-size: 11.5px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .record-title-field,
  .record-primary-field,
  .record-language-field {
    font-size: 10.75px;
  }
  .detail-tags-edit-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
  }
  .detail-tags-edit-row .detail-label { font-size: 10.75px; }
  .detail-tags-edit-row input,
  .detail-tags-edit-row select {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 360px) {
  .record-config-grid {
    grid-template-columns: minmax(0, 1fr) minmax(108px, max-content);
    gap: 7.5px;
  }
  .record-transcribe-field,
  .record-summary-field {
    padding: 0 5.25px;
    gap: 4.5px !important;
    font-size: 10.5px !important;
  }
  .record-transcribe-field input,
  .record-summary-field input {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }
  .record-title-field input,
  .record-primary-field select,
  .record-language-field select {
    font-size: 10.75px;
    padding-left: 7px;
    padding-right: 7px;
  }
  .record-title-field,
  .record-primary-field,
  .record-language-field {
    font-size: 10.25px;
  }
  .detail-tags-edit-row { gap: 7.5px; }
  .detail-tags-edit-row .detail-label { font-size: 10.25px; }
}

/* Nouvelle note : conserver sur petit écran la taille de texte utilisée sur ordinateur. */
@media (max-width: 700px) {
  .record-page .record-title-field,
  .record-page .record-primary-field,
  .record-page .record-language-field,
  .record-page .record-transcribe-field,
  .record-page .record-summary-field {
    font-size:12px !important;
  }
  .record-page #noteTitle,
  .record-page #notePrimaryTag,
  .record-page #noteLanguage {
    font-size:12px !important;
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }
}

/* Nouvelle note sur iPhone : proportions distinctes pour chacune des deux lignes. */
@media (max-width: 560px) {
  .record-page .record-config-grid {
    grid-template-columns:repeat(12,minmax(0,1fr));
    grid-template-areas:none;
    gap:9px;
  }
  .record-page .record-title-field {
    grid-area:auto;
    grid-column:1 / span 7;
    grid-row:1;
  }
  .record-page .record-primary-field {
    grid-area:auto;
    grid-column:8 / -1;
    grid-row:1;
  }
  .record-page .record-language-field {
    grid-area:auto;
    grid-column:1 / span 4;
    grid-row:2;
  }
  .record-page .record-ai-fields {
    grid-area:auto;
    grid-column:5 / -1;
    grid-row:2;
    width:100%;
    min-width:0;
    justify-self:stretch;
  }
}
@media (max-width: 360px) {
  .record-page .record-config-grid { gap:7.5px; }
}

/* Dictée en direct : page intégrée avec dictée en temps réel. */
.live-page {
  max-width: var(--page-content-max-width);
}
.live-top-actions {
  margin-top: 0;
  margin-bottom: 18px;
}
.live-back-button .icon {
  transform: rotate(180deg);
  transform-origin: center;
}
.live-card {
  padding: 22.5px 25.5px 25.5px;
}
.live-form {
  display: grid;
  gap: 16.5px;
}
.live-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, .45fr);
  gap: 13.5px;
  align-items: end;
}
.live-config-grid label,
.live-speaker-grid label {
  display: grid;
  gap: 6px;
  color: #262626;
  font-size: 12px;
  font-weight: 750;
  min-width: 0;
}
.live-config-grid input,
.live-config-grid select,
.live-speaker-grid input,
.live-speaker-grid select {
  width: 100%;
  height: 37.5px;
  border: .75px solid var(--lpb-line-strong);
  border-radius: 9px;
  background: #fff;
  color: #161616;
  padding: 9.75px 10.5px;
  outline: none;
  font-size: 12px;
}
.live-config-grid input:focus,
.live-config-grid select:focus,
.live-speaker-grid input:focus,
.live-speaker-grid select:focus,
.live-transcript-label textarea:focus {
  border-color: var(--lpb-red);
  box-shadow: 0 0 0 3px rgba(143,23,27,.08);
}
.live-speaker-panel {
  border: .75px solid #eee1dd;
  border-radius: 12px;
  background: #fffafa;
  padding: 15px;
  display: grid;
  gap: 12px;
}
.live-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.live-panel-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.live-panel-head .btn,
.live-speaker-grid .btn {
  min-height: 37.5px;
  height: 37.5px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}
.live-panel-head .btn .icon,
.live-speaker-grid .btn .icon {
  width: 15px;
  height: 15px;
}
.live-speaker-grid {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
}

.live-auto-speakers-note {
  max-width: 860px;
  margin: -2px 0 0;
}

.live-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13.5px;
  margin-top: 0;
}
.live-actions .btn {
  width: 100%;
  min-height: 82px;
  height: 82px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
}
.live-actions .btn .icon {
  width: 28px;
  height: 28px;
}
.live-status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  background: #f7f7f7;
  color: #4d4d4d;
  font-size: 12.75px;
  font-weight: 750;
}
.live-status-row #liveTime {
  margin-left: auto;
  color: var(--lpb-red-dark);
  font-weight: 850;
}
.live-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a5a5a5;
  flex: 0 0 9px;
}
.live-page.live-recording .live-status-dot {
  background: #2f9e44;
  box-shadow: 0 0 0 4px rgba(47,158,68,.14);
}
.live-transcript-label textarea {
  width: 100%;
  border: .75px solid var(--lpb-line-strong);
  border-radius: 9px;
  background: #fff;
  color: #161616;
  padding: 10.5px;
  outline: none;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}
.live-streaming-hint,
.live-interim {
  min-height: 30px;
  border-radius: 9px;
  background: #f7f7f7;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 10.5px;
}
.live-streaming-hint {
  border-top: 3px solid #2f9e44;
  border-left: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.live-streaming-hint .live-hint-text {
  flex: 1 1 auto;
}
.live-streaming-hint .live-hint-time {
  margin-left: auto;
  color: var(--lpb-red-dark);
  font-weight: 850;
  white-space: nowrap;
}
.live-streaming-hint .live-hint-dot {
  margin-top: 0;
}
.live-streaming-hint.hidden,
.live-interim:empty {
  display: none;
}
#livePreview {
  width: 100%;
}

@media (max-width: 700px) {
  .live-card {
    padding: 18px;
  }
  .live-config-grid {
    grid-template-columns: minmax(0, 1fr) minmax(118px, max-content);
    gap: 9px;
  }
  .live-config-grid label:nth-child(3),
  .live-config-grid label:nth-child(4) {
    grid-column: auto;
  }
  .live-speaker-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
  }
  .live-speaker-grid label:nth-child(2) {
    grid-column: 1 / -1;
  }
  .live-speaker-grid .btn {
    grid-column: 2;
    min-width: 95px;
  }
  
.live-auto-speakers-note {
  max-width: 860px;
  margin: -2px 0 0;
}

.live-actions {
    gap: 12px;
  }
  .live-actions .btn {
    min-height: 57px;
    height: 57px;
    padding: 5.25px 4.5px;
    gap: 4.5px;
    font-size: 12.75px;
    line-height: 1;
    white-space: nowrap;
  }
  .live-actions .btn .icon {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 430px) {
  .live-card {
    padding: 15px;
  }
  .live-config-grid {
    grid-template-columns: minmax(0, 1fr) minmax(108px, max-content);
    gap: 7.5px;
  }
  .live-config-grid label,
  .live-speaker-grid label {
    font-size: 10.75px;
  }
  .live-config-grid input,
  .live-config-grid select,
  .live-speaker-grid input,
  .live-speaker-grid select {
    font-size: 10.75px;
    padding-left: 7px;
    padding-right: 7px;
  }

  .live-config-grid label:nth-child(3) input,
  .live-config-grid label:nth-child(4) select {
    min-width: 0;
  }
  .live-config-grid label:nth-child(4) {
    justify-self: stretch;
  }
  
.live-auto-speakers-note {
  max-width: 860px;
  margin: -2px 0 0;
}

.live-actions {
    gap: 9px;
  }
  .live-actions .btn {
    padding: 4.5px 2.25px;
    font-size: 11.5px;
  }
  .live-actions .btn .icon {
    width: 22.5px;
    height: 22.5px;
  }
  .live-panel-head {
    align-items: flex-start;
  }
  .live-panel-head h2 {
    font-size: 15px;
  }
  .live-panel-head .btn {
    padding: 0 9px;
  }
}

/* Ajouts 2026-06-01 : traitement audio, envoi courriel, OCR et sauvegarde OCR en note */
.dashboard-actions-bar .dashboard-scan-button {
  background: linear-gradient(180deg, #9a2a2d, var(--lpb-red-dark));
  color: #ffffff;
  border-color: transparent;
  box-shadow: inset 0 0.75px 0 rgba(255,255,255,.15), 0 7.5px 15px rgba(104,16,19,.18);
}

.settings-card-head,
.audio-processing-head,
.scan-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.settings-card-head h2,
.audio-processing-head h2,
.scan-card-head h2 { margin: 0 0 7.5px; }
.settings-card-head .btn,
.audio-processing-head .btn,
.scan-card-head .btn { flex: 0 0 auto; }

.audio-processing-card { display: grid; gap: 13.5px; }
.audio-device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10.5px;
}
.audio-device-field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: #222;
}
.audio-refresh-button {
  min-width: 112px;
  height: 40.5px;
  min-height: 40.5px;
  padding-block: 0;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: #fff;
}
.audio-refresh-button .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
.audio-device-field select,
.scan-note-title-label input,
.scan-output-label textarea {
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  padding: 10.5px;
  background: #fff;
}
.audio-device-field select {
  height: 40.5px;
  min-height: 40.5px;
  padding: 0 10.5px;
  font-weight: 400;
  font-size: 13.5px;
}
.audio-device-field select option { font-weight: 400; }
.audio-processing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.audio-check {
  min-height: 43.5px;
  border: 0.75px solid var(--lpb-line);
  border-radius: 10.5px;
  padding: 9px 10.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fffdfd;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.22;
}
.audio-check span { font-weight: 400; }
.audio-check input { width: 17px; height: 17px; accent-color: var(--lpb-red); }

.scan-view {
  margin-top: 31.5px;
  max-width: 930px;
  display: grid;
  gap: 15px;
}
.scan-card {
  border: 0.75px solid var(--lpb-line);
  border-radius: 13.5px;
  padding: 21px;
  background: #fff;
  box-shadow: 0 6px 16.5px rgba(0,0,0,.06);
}
.scan-card-head { margin-bottom: 18px; }
.scan-card-head p { margin: 0; color: var(--lpb-muted); line-height: 1.45; }
.scan-card-head .eyebrow { color: var(--lpb-red); font-size: 9.75px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.scan-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}
.scan-preview-panel,
.scan-result-panel { display: grid; gap: 12px; min-width: 0; }
.scan-preview-box {
  min-height: 306px;
  border: 1.5px dashed #d6d6d6;
  border-radius: 13.5px;
  background: linear-gradient(180deg, #fff, #f1f3f4);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.scan-preview-box.has-image { border-style: solid; background: #111; }
.scan-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #111;
}
.scan-placeholder {
  display: grid;
  gap: 9px;
  place-items: center;
  padding: 27px;
  text-align: center;
  color: var(--lpb-muted);
}
.scan-placeholder .icon {
  width: 54px;
  height: 54px;
  color: var(--lpb-red);
}
.scan-placeholder strong { color: #222; font-size: 16.5px; }
.scan-placeholder span { font-size: 12px; }
.scan-file-meta {
  margin: -3px 0 0;
  color: var(--lpb-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.scan-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.scan-result-panel .field-copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.scan-actions .btn,
.scan-result-panel .btn { min-height: 39px; }
.scan-actions .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: normal;
}
.scan-status {
  min-height: 18px;
  margin: 0;
  color: var(--lpb-muted);
  font-size: 12px;
}
.scan-note-title-label,
.scan-primary-tag-label,
.scan-secondary-tags-label,
.scan-output-label {
  display: grid;
  gap: 7.5px;
  font-weight: 700;
}
.scan-tag-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.scan-primary-tag-label select,
.scan-secondary-tags-label input {
  width: 100%;
  height: 37.5px;
  border: 0.75px solid var(--lpb-line-strong);
  border-radius: 9px;
  background: #fff;
  color: #161616;
  padding: 9.75px 10.5px;
  outline: none;
  font-size: 12px;
}
.scan-primary-tag-label select:focus,
.scan-secondary-tags-label input:focus {
  border-color: var(--lpb-red);
  box-shadow: 0 0 0 3px rgba(143,23,27,.08);
}
.scan-output-label textarea {
  min-height: 270px;
  resize: vertical;
  line-height: 1.5;
  font-weight: 500;
}

@media (max-width: 900px) {
  .settings-card-head,
  .audio-processing-head,
  .scan-card-head {
    display: grid;
  }
  .audio-processing-grid,
  .scan-layout {
    grid-template-columns: 1fr;
  }
  .scan-view { max-width: none; }
  .scan-card { padding: 16.5px; }
}

@media (max-width: 520px) {
  .audio-device-row { gap: 7.5px; }
  .audio-refresh-button { min-width: 96px; padding-inline: 10px; }
  .audio-device-field select,
  .audio-refresh-button { height: 40.5px; min-height: 40.5px; }
  .audio-processing-grid { gap: 7.5px; }
  .audio-check { min-height: 39px; font-size: 11px; }
  .scan-actions { gap: 6px; }
  .scan-actions .btn {
    min-height: 48px;
    padding: 6px 4px;
    font-size: 11.5px;
    line-height: 1.08;
    flex-direction: column;
    gap: 3px;
  }
  .scan-actions .btn .icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }
  .scan-result-panel .btn,
  .scan-card-head .btn { width: 100%; }
  .scan-preview-box { min-height: 240px; }
  .scan-output-label textarea { min-height: 220px; }
  .scan-tag-fields { grid-template-columns: 1fr; }
}


/* Page Numérisation : les trois boutons principaux reprennent les proportions des boutons
   Démarrer / Arrêter / Sauvegarder de la page Nouvelle note, avec l’icône au-dessus du texte. */
.scan-actions {
  align-items: stretch;
}
.scan-actions .btn {
  min-height: 40.5px;
  padding: 6px 13.5px;
  flex-direction: column;
  gap: 4.5px;
  font-size: 13.5px;
  line-height: 1.05;
  justify-content: center;
  text-align: center;
  white-space: normal;
}
.scan-actions .btn .icon {
  width: 16.5px;
  height: 16.5px;
  flex: 0 0 16.5px;
}

@media (min-width: 901px) {
  .scan-actions {
    gap: 13.5px;
  }
  .scan-actions .btn {
    height: 72px;
    min-height: 72px;
    padding: 9px 18px;
    gap: 6px;
    font-size: 13.5px;
    line-height: 1.05;
  }
  .scan-actions .btn .icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
}

@media (max-width: 560px) {
  .scan-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    column-gap: 12px;
    align-items: stretch;
  }
  .scan-actions .btn {
    width: 100% !important;
    min-width: 0;
    height: 57px;
    min-height: 57px;
    padding: 5.25px 4.5px;
    gap: 4.5px;
    font-size: 12.75px;
    font-weight: 800;
    line-height: 1;
    flex-direction: column;
    justify-content: center;
    white-space: normal;
  }
  .scan-actions .btn .icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
}

@media (max-width: 360px) {
  .scan-actions {
    gap: 9px;
    column-gap: 9px;
  }
  .scan-actions .btn {
    gap: 3.75px;
    padding: 4.5px 2.25px;
    font-size: 11.5px;
  }
  .scan-actions .btn .icon {
    width: 22.5px;
    height: 22.5px;
    flex-basis: 22.5px;
  }
}

/* Page Numérisation : boutons Copier / Sauvegarder du résultat OCR sur une même ligne,
   avec les mêmes proportions que les boutons principaux de numérisation. */
.scan-save-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
  overflow: visible;
}
.scan-result-panel .scan-save-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 40.5px;
  padding: 6px 13.5px;
  flex-direction: column;
  gap: 4.5px;
  font-size: 13.5px;
  line-height: 1.05;
  justify-content: center;
  text-align: center;
  white-space: normal;
}
.scan-result-panel .scan-save-actions .btn .icon {
  width: 16.5px;
  height: 16.5px;
  flex: 0 0 16.5px;
}

@media (min-width: 901px) {
  .scan-save-actions {
    gap: 13.5px;
  }
  .scan-result-panel .scan-save-actions .btn {
    height: 72px;
    min-height: 72px;
    padding: 9px 18px;
    gap: 6px;
    font-size: 13.5px;
    line-height: 1.05;
  }
  .scan-result-panel .scan-save-actions .btn .icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
}

@media (max-width: 560px) {
  .scan-save-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    column-gap: 12px;
    align-items: stretch;
  }
  .scan-result-panel .scan-save-actions .btn {
    width: 100% !important;
    min-width: 0;
    height: 57px;
    min-height: 57px;
    padding: 5.25px 4.5px;
    gap: 4.5px;
    font-size: 12.75px;
    font-weight: 800;
    line-height: 1;
    flex-direction: column;
    justify-content: center;
    white-space: normal;
  }
  .scan-result-panel .scan-save-actions .btn .icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
}

@media (max-width: 360px) {
  .scan-save-actions {
    gap: 9px;
    column-gap: 9px;
  }
  .scan-result-panel .scan-save-actions .btn {
    gap: 3.75px;
    padding: 4.5px 2.25px;
    font-size: 11.5px;
  }
  .scan-result-panel .scan-save-actions .btn .icon {
    width: 22.5px;
    height: 22.5px;
    flex-basis: 22.5px;
  }
}


/* Correctif Numérisation : état indisponible et actions OCR. */
.scan-actions .btn[data-scan-action="ocr"]:disabled {
  opacity: 1;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #a8a8a8, #777777);
  box-shadow: none;
}
.scan-actions .btn[data-scan-action="ocr"]:disabled:hover {
  transform: none;
  box-shadow: none;
}
.scan-actions .btn[data-scan-action="ocr"]:disabled .icon {
  color: currentColor;
}

.scan-result-panel .btn.copy-gray {
  color: #27313f;
  border-color: #cfd6df;
  background: linear-gradient(180deg, #f3f5f7, #d8dde4);
  box-shadow: inset 0 .75px 0 rgba(255,255,255,.42), 0 7.5px 15px rgba(39,49,63,.10);
}
.scan-result-panel .btn.copy-gray:hover:not(:disabled) {
  box-shadow: inset 0 .75px 0 rgba(255,255,255,.48), 0 7.5px 15px rgba(39,49,63,.16);
}
.scan-result-panel .btn.copy-gray .icon {
  color: currentColor;
}

@media (min-width: 901px) {
  .scan-save-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 9px;
    overflow-x: visible;
  }
  .scan-result-panel .scan-save-actions .btn {
    width: auto;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 9px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }
  .scan-result-panel .scan-save-actions .btn .icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
  }
}

/* Ajustements demandés : Nouvelle note et Dictée en direct */
.record-page #noteForm #saveNote .icon {
  transform: scale(.8);
  transform-origin: center;
}

.live-page .live-actions .record-save-button .icon {
  transform: scale(.8);
  transform-origin: center;
}

.live-page .live-actions,
.live-page .live-vu-meter,
.live-page .live-status-row {
  width: min(100%, 423px);
  max-width: 423px;
}

.live-page .live-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 9px;
  margin-top: 0;
}

.live-page .live-actions .btn {
  width: auto;
  min-height: 40.5px;
  height: auto;
  padding: 0 13.5px;
  flex-direction: row;
  justify-content: center;
  gap: 7.5px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.05;
}

.live-page .live-actions .btn .icon {
  width: 16.5px;
  height: 16.5px;
  flex: 0 0 16.5px;
}

.live-page .live-vu-meter {
  margin: 3px 0 0;
}

.live-page .live-vu-meter .vu-meter-bar {
  height: 4px;
}

.live-page .live-vu-meter .vu-meter-bar::after {
  background: none;
}

@media (min-width: 901px) {
  .live-page .live-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13.5px;
  }

  .live-page .live-actions .record-start-button,
  .live-page .live-actions .record-stop-button,
  .live-page .live-actions .record-save-button {
    width: 100%;
    min-width: 132px;
    height: 72px;
    min-height: 72px;
    padding: 9px 18px;
    flex-direction: column;
    gap: 6px;
  }

  .live-page .live-actions .record-start-button .icon,
  .live-page .live-actions .record-stop-button .icon,
  .live-page .live-actions .record-save-button .icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
}

@media (max-width: 560px) {
  .live-page .live-actions,
  .live-page .live-vu-meter,
  .live-page .live-status-row {
    width: 100%;
    max-width: 100%;
  }

  .live-page .live-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    column-gap: 12px;
  }

  .live-page .live-actions .btn {
    width: 100% !important;
    min-width: 0;
    height: 57px;
    min-height: 57px;
    padding: 5.25px 4.5px;
    flex-direction: column;
    gap: 4.5px;
    font-size: 12.75px;
    line-height: 1;
    white-space: nowrap;
  }

  .live-page .live-actions .btn .icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
}

@media (max-width: 360px) {
  .live-page .live-actions {
    gap: 9px;
    column-gap: 9px;
  }

  .live-page .live-actions .btn {
    padding: 4.5px 2.25px;
    gap: 3.75px;
    font-size: 11.5px;
  }

  .live-page .live-actions .btn .icon {
    width: 22.5px;
    height: 22.5px;
    flex-basis: 22.5px;
  }
}


/* Ajustements demandés : page Dictée en direct */
.live-page .live-streaming-hint {
  border-left: 0;
  border-top: 3px solid #2f9e44;
  padding-top: 9.5px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-page .live-interim {
  display: none !important;
}

.live-page .live-streaming-hint.hidden {
  display: none;
}

/* Ajustement demandé : page Dictée en direct */
.live-page .live-status-row {
  display: none !important;
}

.live-page .live-streaming-hint .live-hint-dot {
  background: #2f9e44;
  box-shadow: 0 0 0 4px rgba(47,158,68,.14);
}

.live-page .live-streaming-hint.hidden {
  display: flex !important;
}



/* Ajustements demandés : message de Dictée en direct */
.live-page .live-streaming-hint {
  display: block !important;
  border-left: 0 !important;
  border-top: 3px solid #a5a5a5 !important;
}

.live-page .live-streaming-hint .live-hint-main {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-page .live-streaming-hint .live-hint-text {
  flex: 1 1 auto;
}

.live-page .live-streaming-hint .live-hint-status {
  display: block;
  margin-top: 5px;
  padding-left: 18px;
  color: #555;
  font-size: 11.75px;
  font-weight: 700;
  line-height: 1.35;
}

.live-page .live-streaming-hint .live-hint-status:empty {
  display: none;
}

.live-page .live-streaming-hint .live-hint-dot {
  background: #a5a5a5 !important;
  box-shadow: 0 0 0 4px rgba(165, 165, 165, .16) !important;
}

.live-page.live-recording .live-streaming-hint:not(.is-saving) {
  border-top-color: #2f9e44 !important;
}

.live-page.live-recording .live-streaming-hint:not(.is-saving) .live-hint-dot {
  background: #2f9e44 !important;
  box-shadow: 0 0 0 4px rgba(47, 158, 68, .14) !important;
}

.live-page .live-streaming-hint.is-saving {
  border-top-color: #7D1416 !important;
}

.live-page .live-streaming-hint.is-saving .live-hint-dot {
  background: #7D1416 !important;
  box-shadow: 0 0 0 4px rgba(125, 20, 22, .16) !important;
}

.live-page .live-streaming-hint.hidden {
  display: block !important;
}

/* Fusion transcription-pro39 : contexte compact et multisélection */
.pro39-context-card { margin:14px 0 4px; border:1px solid #d6d9dd; border-radius:12px; background:#f1f3f4; }
.pro39-context-card > summary { cursor:pointer; padding:12px 14px; font-weight:800; color:#7c1416; display:flex; justify-content:space-between; list-style:none; }
.pro39-context-card > summary::-webkit-details-marker,
.pro39-tools-card > summary::-webkit-details-marker { display:none; }
.pro39-context-grid { padding: 0 14px 14px; display: grid; gap: 12px; grid-template-columns: minmax(230px,.8fr) minmax(320px,2fr); align-items: start; }
.pro39-context-fieldset { min-width: 0; border: 0; padding: 0; margin: 0; position:relative; }
.pro39-context-label { display:block; margin-bottom:6px; color:#262626; font-size:12px; line-height:normal; font-weight:750; }
.pro39-context-control-row { display:flex; align-items:stretch; gap:10px; min-width:0; }
.pro39-context-dropdown { position:relative; flex:1 1 auto; min-width:0; }
.pro39-context-dropdown > summary { list-style:none; min-height:38px; padding:8px 11px; display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid #d9d2cc; border-radius:9px; background:#fff; cursor:pointer; color:#2d2927; }
#detailRecordingContextSummary {
  font-family:inherit;
  font-size:12px;
  font-weight:750;
  line-height:normal;
}
#detailRecordingType {
  font-family:inherit;
  font-size:12px !important;
  font-weight:750;
  line-height:normal;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
#detailRecordingType option {
  font-size:12px;
  font-weight:400;
}
@media (max-width:760px) {
  .note-page #detailRecordingType { font-size:12px !important; }
}
@media (max-width:360px) {
  .note-page #detailRecordingType { font-size:12px !important; }
}
#detailRecordingDateDisplay,
#summaryTranscriptSource,
#translateTarget {
  font-family:inherit;
  font-size:12px !important;
  font-weight:750;
  line-height:normal;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
#summaryTranscriptSource option,
#translateTarget option {
  font-size:12px;
  font-weight:400;
}
@media (max-width:760px) {
  .note-page #detailRecordingDateDisplay,
  .note-page #summaryTranscriptSource,
  .note-page #translateTarget { font-size:12px !important; }
}
@media (max-width:360px) {
  .note-page #detailRecordingDateDisplay,
  .note-page #summaryTranscriptSource,
  .note-page #translateTarget { font-size:12px !important; }
}
#detailPrimaryTag,
#detailTagsInput {
  font-family:inherit;
  font-size:12px !important;
  font-weight:750;
  line-height:normal;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
#detailPrimaryTag option {
  font-size:12px;
  font-weight:400;
}
#detailTagsInput::placeholder {
  font-weight:400;
}
@media (max-width:760px) {
  .note-page #detailPrimaryTag,
  .note-page #detailTagsInput { font-size:12px !important; }
}
@media (max-width:360px) {
  .note-page #detailPrimaryTag,
  .note-page #detailTagsInput { font-size:12px !important; }
}
.pro39-context-dropdown > summary::-webkit-details-marker { display:none; }
.pro39-context-dropdown[open] > summary { border-color:#7c1416; box-shadow:0 0 0 2px rgba(124,20,22,.1); }
.pro39-context-options { position:absolute; z-index:30; top:calc(100% + 5px); left:0; right:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; max-height:310px; overflow:auto; padding:9px; border:1px solid #d9d2cc; border-radius:9px; background:#fff; box-shadow:0 12px 28px rgba(44,35,31,.18); }
.pro39-context-options label { display:flex; align-items:flex-start; gap:7px; padding:7px 8px; border-radius:7px; background:#f2f2f2; font-size:12px; line-height:1.25; cursor:pointer; }
.pro39-context-options label:hover { background:#e7e7e7; }
.pro39-privacy-row { grid-column:1 / -1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; min-width:0; }
.pro39-settings-translation { grid-column:1 / -1; min-width:0; }
.pro39-context-pii { display:flex; align-items:flex-start; gap:9px; min-width:0; height:100%; padding:10px 11px; border:1px solid #d9d2cc; border-radius:9px; background:#fff; cursor:pointer; }
.pro39-context-pii > span { display:flex; flex-direction:column; gap:2px; }
.pro39-context-pii strong { color:#262626; font-size:12px; line-height:normal; font-weight:750; }
.pro39-context-pii small { color:#262626; font-size:12px; line-height:normal; font-weight:400; }
.pro39-options-action { display:flex; flex:0 0 auto; }
.pro39-options-action .btn { min-height:38px; height:38px; padding:0 12px; font-size:12px; white-space:nowrap; }
.pro39-options-action .btn .icon { width:15px; height:15px; }
@media (max-width: 760px) { .pro39-context-grid { grid-template-columns: 1fr; } .pro39-privacy-row,.pro39-settings-translation { grid-column:auto; } .pro39-privacy-row { grid-template-columns:1fr; } .pro39-context-control-row { flex-direction:column; } .pro39-options-action .btn { width:100%; } }
@media (max-width: 760px) { .pro39-settings-translation .translate-controls { grid-template-columns:1fr; } .pro39-settings-translation .btn { width:100%; } .summary-source-label { width:165px; } .translation-language-label { width:170px; } }
.pro39-tools-card { margin:12px 0 0; border: 1px solid #ded8d2; border-radius: 12px; background:#ededed; overflow:hidden; }
.pro39-tools-card > summary { cursor:pointer; padding:10px 12px; font-weight:800; color:#7c1416; display:flex; justify-content:space-between; list-style:none; }
.pro39-transcription-summary-actions { display:flex; align-items:center; gap:8px; }
.pro39-tools-card:not([open]) > summary .pro39-transcription-summary-actions { width:auto; margin-left:auto; }
.pro39-tools-card:not([open]) > summary .transcript-raw-toggle { display:none; }
.transcript-raw-toggle { min-height:26px; height:26px; padding:0 10px; border:1px solid #cfd3d7; border-radius:7px; background:linear-gradient(180deg,#f5f6f7,#dfe2e5); color:#343a40; font-family:inherit; font-size:11px; font-weight:700; line-height:1; cursor:pointer; }
.transcript-raw-toggle:hover { background:linear-gradient(180deg,#fff,#e5e7e9); }
@media (max-width:560px) {
  .pro39-tools-card > summary { flex-wrap:wrap; gap:8px; }
  .pro39-transcription-summary-actions { width:100%; justify-content:flex-end; gap:6px; }
  .transcript-raw-toggle { padding:0 7px; font-size:9.5px; }
}
.pro39-note-tools-card { margin:12px 0 0; border:1px solid #7c1416; border-radius:12px; background:linear-gradient(135deg,#7c1416,#a62b2e); overflow:hidden; }
.note-tools-title { padding:10px 12px; color:#fff; font-weight:800; }
.note-tools-body { padding:0 12px 12px; }
.note-tools-nav { display:grid; grid-template-columns:repeat(3,64px) minmax(150px,220px); align-items:stretch; justify-content:start; gap:12px; }
.note-tool-button { display:flex; min-width:0; min-height:64px; align-items:center; gap:9px; padding:9px 12px; border:1px solid #cfd2d5; border-radius:9px; background:#f7f7f7; color:#3f454b; font-family:inherit; font-size:11.5px; font-weight:750; text-align:left; cursor:pointer; }
.note-tool-button .icon { width:27px; height:27px; flex:0 0 27px; color:#454b51; }
.note-tool-button:not(.note-tool-hide) { justify-content:center; }
.note-tool-button:hover { border-color:#aeb3b8; background:#fff; }
.note-tool-button.active { border-color:#7c1416; background:#ededed; color:#7c1416; box-shadow:0 0 0 1px rgba(124,20,22,.08); }
.note-tool-button.active .icon { color:currentColor; }
.note-tool-hide { justify-content:center; }
.note-tools-output { margin:12px 0 0; padding:12px; }
.note-tools-output.hidden { display:none; }
.note-tool-panel { margin:0; padding:14px; border:1px solid #e7e0db; border-radius:10px; background:#fff; }
.note-tool-panel[hidden] { display:none; }
.note-tool-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; }
.note-tool-panel-heading > div:first-child { display:flex; flex-direction:column; gap:2px; }
.note-tool-panel-heading strong { color:#7c1416; font-size:14px; }
.note-tool-panel-heading small { color:#666; font-size:10.5px; }
.note-tool-heading-actions { display:flex; align-items:center; gap:7px; }
.note-tool-panel .btn { min-height:31px; height:31px; padding:0 9px; font-size:10.5px; }
.note-tool-panel .btn .icon { width:13px; height:13px; }
.note-tool-panel .btn.note-tool-add { border-color:#cfd6df; color:#27313f; background:linear-gradient(180deg,#f3f5f7,#d8dde4); box-shadow:inset 0 .75px 0 rgba(255,255,255,.5),0 4px 9px rgba(39,49,63,.12); }
.note-tool-panel .btn.note-tool-add:hover { background:linear-gradient(180deg,#f8f9fa,#dce1e7); }
.note-tool-panel .btn.note-tool-generate { color:#fff; border-color:transparent; background:linear-gradient(180deg,#2f75d6,#1857a8); box-shadow:inset 0 .75px 0 rgba(255,255,255,.16),0 5px 11px rgba(24,87,168,.18); }
.note-tool-rows { display:flex; flex-direction:column; gap:6px; }
.note-tool-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; }
.note-checklist-row { grid-template-columns:auto minmax(180px,1fr) minmax(140px,.45fr) auto; }
.note-tool-row input[type="checkbox"] { width:16px; height:16px; margin:0; accent-color:#7c1416; }
.note-tool-row input[type="text"] { width:100%; min-width:0; height:32px; padding:0 9px; border:1px solid #d5d5d5; border-radius:7px; background:#fff; color:#222; font-family:inherit; font-size:13px; }
.note-tool-row input[type="text"]:focus { border-color:#e68a00; outline:none; box-shadow:0 0 0 2px rgba(230,138,0,.12); }
.note-tool-remove { width:30px; height:30px; padding:0; border:0; border-radius:6px; background:transparent; color:#777; font-size:19px; line-height:1; cursor:pointer; }
.note-tool-remove:hover { background:#f3dede; color:#7c1416; }
.note-definition-row { grid-template-columns:minmax(120px,.42fr) minmax(180px,1fr) auto; }
.note-tool-empty { padding:10px; border:1px dashed #c9c9c9; border-radius:7px; color:#777; font-size:11px; text-align:center; }
@media (max-width:700px) { .note-tools-nav { grid-template-columns:repeat(3,64px) minmax(70px,1fr); gap:12px; } .note-tool-button { min-height:70px; padding:7px 4px; flex-direction:column; justify-content:center; gap:4px; font-size:9.5px; text-align:center; } .note-tool-button .icon { width:23px; height:23px; } .note-tool-panel-heading { align-items:flex-start; flex-direction:column; } .note-tool-heading-actions { width:100%; flex-wrap:wrap; } .note-definition-row,.note-checklist-row { grid-template-columns:1fr auto; } .note-definition-row input:first-of-type,.note-checklist-row input[data-note-tool-text] { grid-column:1; } .note-definition-row input:nth-of-type(2),.note-checklist-row input[data-note-tool-responsible] { grid-column:1; } .note-definition-row .note-tool-remove,.note-checklist-row .note-tool-remove { grid-column:2; grid-row:1/3; } .note-checklist-row input[type="checkbox"] { grid-column:2; grid-row:1; justify-self:center; } }
@media (max-width:700px) {
  .note-checklist-row { grid-template-columns:auto minmax(0,1fr) auto; }
  .note-checklist-row input[type="checkbox"] { grid-column:1; grid-row:1; justify-self:start; }
  .note-checklist-row input[data-note-tool-text] { grid-column:2/4; grid-row:1; }
  .note-checklist-row input[data-note-tool-responsible] { grid-column:1/3; grid-row:2; }
  .note-checklist-row .note-tool-remove { grid-column:3; grid-row:2; }
}
.details-toggle-icon { display:inline-grid; place-items:center; flex:0 0 22px; width:22px; height:22px; border-radius:50%; background:#fff; border:1px solid #d2d5d9; color:#7c1416; font-size:18px; line-height:1; font-weight:500; }
.details-toggle-icon::before { content:"+"; transform:translateY(-1px); }
details[open] > summary .details-toggle-icon::before { content:"−"; transform:translateY(-1px); }
.pro39-tools-row { padding: 0 12px 10px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pro39-tools-row input { flex:1 1 240px; min-width:180px; height:36px; min-height:36px; padding:0 10px; border:1px solid #d9d2cc; border-radius:9px; background:#fff; font-size:12px; }
.pro39-tools-row .btn { min-height:36px; height:36px; padding:0 12px; font-size:12px; }
.pro39-tools-row .btn .icon { width:15px; height:15px; }
.pro39-tools-row .btn.timestamp-active { color:#fff; border-color:#6d737a; background:#6d737a; }
.pro39-tools-row .btn.timestamp-active:hover { background:#5f656b; }
.pro39-reading-output { position:relative; margin:0 12px 12px; width:calc(100% - 24px); height:360px; min-height:140px; max-height:none; overflow:auto; resize:vertical; border:1px solid #ded8d2; border-radius:9px; background:#faf8f6; padding:10px; }
.pro39-tools-card.transcription-expanded-window {
  position:fixed;
  top:50%;
  left:50%;
  z-index:12000;
  width:90vw;
  height:90vh;
  max-width:none;
  margin:0;
  border:1px solid #d6d9dd;
  border-radius:12px;
  background:#ededed;
  display:block;
  min-height:0;
  overflow:hidden;
  transform:translate(-50%,-50%);
  box-shadow:0 18px 50px rgba(0,0,0,.28),0 0 0 100vmax rgba(0,0,0,.22);
}
.pro39-tools-card.transcription-expanded-window .pro39-reading-output {
  width:calc(100% - 24px);
  height:var(--transcript-expanded-output-height,calc(90vh - 110px)) !important;
  min-height:0;
  max-height:none;
  box-sizing:border-box;
  overflow-x:hidden;
  overflow-y:scroll !important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  touch-action:pan-y;
  -webkit-overflow-scrolling:touch;
  resize:none;
}
body.transcription-fullscreen-open { overflow:hidden; }
.pro39-reading-output:empty { display:none; }
.pro39-reading-output p { margin:0 0 8px; padding:7px 9px; background:#fff; border-radius:7px; }
.pro39-reading-output .pro39-raw-text { min-height:calc(100% - 8px); white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.55; }
.transcript-editable-line { display:inline; min-width:24px; border-radius:4px; outline:none; cursor:text; white-space:pre-wrap; }
.transcript-editable-line:hover { box-shadow:0 0 0 1px rgba(230,138,0,.45); }
.transcript-editable-line:focus { background:#fff; box-shadow:0 0 0 2px #e68a00; }
.pro39-reading-output.has-transcript-bookmark { box-shadow:inset 32px 0 #f1f3f4; }
.pro39-reading-output.has-transcript-bookmark > p { margin-left:26px; }
.transcript-line-bookmark { position:absolute; z-index:3; left:6px; width:26px; height:18px; padding:0; display:grid; place-items:center; border:1px solid #681012; border-radius:4px 1px 1px 4px; background:#7c1416; color:#fff; box-shadow:0 2px 5px rgba(68,10,12,.26); cursor:grab; touch-action:none; user-select:none; clip-path:polygon(0 0,70% 0,100% 50%,70% 100%,0 100%); }
.transcript-line-bookmark span { width:5px; height:5px; margin-right:7px; border-radius:50%; background:rgba(255,255,255,.92); box-shadow:0 0 0 1px rgba(70,8,10,.22); }
.transcript-line-bookmark.dragging { cursor:grabbing; transform:scale(1.1); box-shadow:0 4px 9px rgba(68,10,12,.34); }
.pro39-index { display:inline-grid; place-items:center; min-width:22px; height:22px; margin-right:8px; border-radius:50%; background:#edddd0; color:#7c1416; font-size:11px; font-weight:800; }
.pro39-timestamp { display:inline-flex; align-items:center; min-height:22px; margin-right:8px; padding:2px 7px; border-radius:6px; background:#e3e6e9; color:#343a40; font-size:11px; font-weight:800; font-variant-numeric:tabular-nums; }
.pro39-speaker { color:#7c1416; }
.pro39-speaker-editor { position:relative; display:inline-flex; align-items:center; gap:0; margin-right:5px; vertical-align:middle; color:#7c1416; font-weight:800; }
.pro39-speaker-input { width:auto; min-width:86px; max-width:230px; height:25px; padding:1px 5px; border:1px solid #e0e0e0; border-radius:5px; background:#fff; color:#7c1416; font-family:inherit; font-size:12px; font-weight:800; line-height:1.1; }
.pro39-speaker-input:hover { border-color:#d5b5b6; background:#fff; }
.pro39-speaker-input:focus { border-color:#e68a00; outline:none; background:#fff; box-shadow:0 0 0 2px rgba(230,138,0,.12); }
.pro39-speaker-input[readonly] { cursor:default; }
.pro39-speaker-input[readonly]:hover,.pro39-speaker-input[readonly]:focus { border-color:#e0e0e0; outline:none; background:#fff; box-shadow:none; }
.pro39-speaker-input:disabled { opacity:1; border-color:#e0e0e0; background:#fff; color:#7c1416; }
.pro39-speaker-menu-toggle { width:22px; height:25px; margin-left:-3px; padding:0; display:grid; place-items:center; border:1px solid #e0e0e0; border-left:0; border-radius:0 5px 5px 0; background:#e0e0e0; color:#7c1416; cursor:pointer; }
.pro39-speaker-menu-icon { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:2.3; stroke-linecap:round; stroke-linejoin:round; transform:rotate(90deg); }
.pro39-speaker-menu-toggle:hover { border-color:#d5b5b6; background:#e0e0e0; }
.pro39-speaker-menu-toggle:active,.pro39-speaker-editor.menu-open .pro39-speaker-menu-toggle { border-color:#7c1416; background:#7c1416; color:#fff; }
.pro39-speaker-separator { display:inline-block; margin-left:5px; }
.pro39-speaker-menu { position:fixed; z-index:10000; top:0; left:0; display:none; width:240px; max-width:calc(100vw - 16px); overflow:visible; padding:5px; border:1px solid #d6d9dd; border-radius:9px; background:#fff; color:#343a40; box-shadow:0 12px 28px rgba(0,0,0,.22); }
.pro39-speaker-editor.menu-open .pro39-speaker-menu { display:block; }
.pro39-speaker-menu-search-wrap { position:sticky; top:0; z-index:2; padding:2px 2px 6px; background:#fff; }
.pro39-speaker-menu-search-wrap > .icon { position:absolute; z-index:2; top:11px; left:11px; width:14px; height:14px; color:#555; pointer-events:none; }
.pro39-speaker-menu-search { width:100%; height:34px; padding:5px 9px 5px 30px; border:1px solid #d5d5d5; border-radius:7px; background:#fff; color:#222; font-family:inherit; font-size:12px; outline:none; }
.pro39-speaker-menu-search:focus { border-color:#7c1416; box-shadow:0 0 0 2px rgba(124,20,22,.10); }
.pro39-speaker-menu-options { max-height:230px; overflow:auto; padding-right:2px; }
.pro39-speaker-menu-empty { padding:10px 8px; color:#666; font-size:11px; }
.pro39-speaker-name-item { position:relative; }
.pro39-speaker-name-option,.pro39-speaker-scope-submenu button { width:100%; min-height:30px; padding:5px 8px; border:0; border-radius:5px; background:#fff; color:#343a40; font-family:inherit; font-size:11px; text-align:left; cursor:pointer; }
.pro39-speaker-name-option { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.pro39-speaker-name-option:hover,.pro39-speaker-name-option:focus,.pro39-speaker-name-item.open > .pro39-speaker-name-option { background:#f1f3f4; }
.pro39-speaker-scope-submenu { display:none; margin:2px 0 4px 10px; padding:3px; border-left:2px solid #7c1416; border-radius:0 5px 5px 0; background:#f1f3f4; }
.pro39-speaker-name-item.open > .pro39-speaker-scope-submenu { display:block; }
.pro39-speaker-scope-submenu button:hover,.pro39-speaker-scope-submenu button:focus { background:#e3e6e9; color:#7c1416; }
@media (max-width:560px) { .pro39-speaker-menu { width:min(230px,calc(100vw - 16px)); } .pro39-speaker-menu-search,.pro39-speaker-name-option,.pro39-speaker-scope-submenu button { font-size:11px !important; } }
.pro39-reading-output mark { background:#ffe083; padding:1px 2px; }
.pro39-ai-card { margin:14px 0; border:1px solid #ded8d2; border-radius:12px; background:#fff; }
.pro39-ai-card > summary { cursor:pointer; padding:12px 14px; display:flex; justify-content:space-between; font-weight:800; color:#7c1416; }
.pro39-ai-help { margin:0; padding:0 14px 10px; color:#666; font-size:12px; }
.pro39-ai-grid { padding:0 14px 14px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.pro39-ai-option { display:flex; align-items:center; gap:10px; min-width:0; padding:10px; border:1px solid #e5ded8; border-radius:9px; background:#fffaf6; }
.pro39-ai-option > span { display:flex; flex:1; min-width:0; flex-direction:column; gap:2px; }
.pro39-ai-option small { color:#6c6662; line-height:1.25; }
.pro39-ai-option select { max-width:190px; }
.summary-pro-output { margin:12px 0; border:1px solid #d3d3d3; border-radius:14px; background:#ededed; overflow:hidden; }
.summary-pro-header { padding:16px 18px; color:#fff; background:linear-gradient(135deg,#7c1416,#a62b2e); }
.summary-pro-header h3,.summary-pro-header p { margin:0; color:inherit; }
.summary-pro-header p { margin-top:4px; opacity:.86; font-size:12px; }
.note-tools-output.summary-pro-output { border-color:#7c1416; background:linear-gradient(135deg,#7c1416,#a62b2e); }
.summary-pro-section { margin:0; padding:14px; border-radius:10px; background:#fff; border:1px solid #e7e0db; }
.summary-pro-section h4 { margin:0 0 8px; color:#7c1416; }
.summary-pro-section ul { margin:0; padding-left:20px; }
.summary-pro-section.executive { border-left:1px solid #e7e0db; border-right:1px solid #e7e0db; }
.summary-pro-output > .summary-pro-section,
.summary-pro-output > .summary-pro-grid { margin:10px 12px 0; }
.summary-pro-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.summary-pro-grid .summary-pro-section { margin:0; }
.summary-actions-table { display:grid; gap:0; border:1px solid #e2d9d2; border-radius:9px; overflow:hidden; }
.summary-actions-head,.summary-actions-row { display:grid; grid-template-columns:2fr 1fr 1fr; gap:10px; padding:9px 10px; }
.summary-actions-head { background:linear-gradient(135deg,#7c1416,#a62b2e); color:#fff; font-weight:800; }
.summary-actions-row { border-top:1px solid #ece5df; }
.summary-ai-note { display:block; margin:10px 12px 12px; color:#666; font-style:italic; }
.summary-pro-output [contenteditable="true"] { border-radius:5px; outline:none; transition:box-shadow .15s ease,background .15s ease; }
.summary-pro-output [contenteditable="true"]:hover { background:#fff8e8; box-shadow:0 0 0 3px #fff8e8; }
.summary-pro-output [contenteditable="true"]:focus { background:#fff; box-shadow:0 0 0 2px #f36b21; caret-color:#7c1416; }
.summary-pro-header [data-summary-field="title"] { transition:color .15s ease,box-shadow .15s ease,background .15s ease; }
.summary-pro-header [data-summary-field="title"]:hover,
.summary-pro-header [data-summary-field="title"]:active,
.summary-pro-header [data-summary-field="title"]:focus { color:#111; }
.summary-pro-header [data-summary-field="title"]::selection { color:#111; background:#fff; }
.summary-editable-list { min-height:24px; white-space:pre-line; line-height:1.5; }
ul.summary-editable-list { display:block; margin:0; padding-left:22px; list-style:disc outside; }
ul.summary-editable-list > li { display:list-item; margin:0 0 5px; padding-left:2px; list-style:disc outside; }
ul.summary-editable-list > li:last-child { margin-bottom:0; }
.summary-editable-empty { color:#666; }
.summary-actions-row [contenteditable="true"] { min-width:0; }
@media (max-width:760px) { .pro39-ai-grid,.summary-pro-grid { grid-template-columns:1fr; } .summary-actions-head,.summary-actions-row { grid-template-columns:1fr; } .pro39-context-options { grid-template-columns:1fr; } }

.pro39-share-card { position:relative; z-index:2; margin:12px 0 0; border:1px solid #d6d9dd; border-radius:12px; background:#ededed; background-clip:padding-box; overflow:visible; }
.note-page .detail-actions { margin-top:12px; }
.pro39-share-card > summary { cursor:pointer; padding:12px 14px; display:flex; justify-content:space-between; align-items:center; font-weight:800; color:#7c1416; background:#ededed; background-clip:padding-box; border-radius:11px 11px 0 0; }
.pro39-share-card:not([open]) > summary { border-radius:11px; }
.note-sharing-body { padding:12px 14px 14px; background:#ededed; background-clip:padding-box; border-radius:0 0 11px 11px; }
.note-sharing-body > p { margin:0 0 10px; color:#555; font-size:12px; }
.note-sharing-top-row { display:grid; grid-template-columns:minmax(220px,1fr) minmax(440px,540px); align-items:start; gap:18px; }
.note-sharing-picker-top { min-width:0; justify-self:end; width:100%; }
.note-sharing-picker-top > p { margin:0 0 6px; color:#555; font-size:12px; text-align:right; }
.note-sharing-search-wrap { position:relative; margin-bottom:9px; }
.note-sharing-search-controls { display:grid; grid-template-columns:minmax(170px,220px) auto auto; justify-content:end; gap:7px; align-items:center; }
.note-sharing-dropdown { position:static; min-width:0; }
.note-sharing-dropdown > summary { height:37px; min-height:37px; padding:8px 11px; border:1px solid #d9d2cc; border-radius:9px; background:#fff; color:#2d2927; font-size:12px; }
.note-sharing-dropdown-panel { position:absolute; z-index:100; top:calc(100% + 3px); left:0; width:min(420px,100%); padding:5px; border:1px solid #d1d1d1; border-radius:8px; background:#fff; box-shadow:0 9px 20px rgba(0,0,0,.13); }
.note-sharing-search-field { position:relative; min-width:0; }
.note-sharing-search-field > .icon { position:absolute; z-index:2; top:9px; left:9px; width:14px; height:14px; color:#555; pointer-events:none; }
.note-sharing-search-field > input { width:100%; height:32px; padding:0 9px 0 30px; border:1px solid #d5d5d5; border-radius:7px; background:#fff; color:#222; font-size:11px; outline:none; }
.note-sharing-search-field > input:focus { border-color:#7c1416; box-shadow:0 0 0 2px rgba(124,20,22,.10); }
.note-sharing-search-controls .btn.sharing-gray { min-height:36px; height:36px; padding:0 12px; border-color:#cfd6df; border-radius:8px; color:#27313f; background:linear-gradient(180deg,#f3f5f7,#d8dde4); box-shadow:inset 0 .75px 0 rgba(255,255,255,.45),0 5px 11px rgba(39,49,63,.10); font-size:12px; font-weight:700; }
.note-sharing-search-controls .btn.sharing-gray:hover:not(:disabled) { background:linear-gradient(180deg,#f8f9fa,#dce1e7); box-shadow:inset 0 .75px 0 rgba(255,255,255,.50),0 6px 13px rgba(39,49,63,.16); }
.note-sharing-search-controls .btn.sharing-gray .icon { width:15px; height:15px; color:currentColor; }
.note-sharing-search-controls .btn.sharing-disable { color:#7c1416; }
.note-sharing-results { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:38px; gap:2px; max-height:122px; overflow-y:auto; overflow-x:hidden; margin-top:4px; padding:2px; border:0; border-radius:6px; background:#fff; box-shadow:none; }
.note-sharing-result { display:grid; width:100%; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:7px; padding:6px 7px; border:0; border-radius:6px; background:#faf8f6; color:#222; text-align:left; cursor:pointer; }
.note-sharing-result:hover { background:#fff3c4; }
.note-sharing-result > input { width:13px; height:13px; accent-color:#7c1416; }
.note-sharing-result > span:first-of-type { display:flex; min-width:0; flex-direction:column; gap:2px; }
.note-sharing-result strong,.note-sharing-result small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.note-sharing-result strong { font-size:11px; }.note-sharing-result small { color:#666; font-size:9.5px; }
.note-sharing-add { flex:0 0 auto; color:#7c1416; font-size:11px; font-weight:800; }
.note-sharing-no-result { display:block; padding:10px; color:#666; font-size:12px; }
.note-sharing-results .note-sharing-no-result { grid-column:1/-1; }
.note-sharing-global-section { margin:0; padding:8px 0 10px; border:0; background:transparent; color:#444; }
.note-sharing-global-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; margin:0; padding:0 10px; }
.note-sharing-global-selection { display:grid; grid-template-columns:15px minmax(0,1fr); align-items:center; gap:8px; min-width:0; cursor:pointer; }
.note-sharing-global-selection > input { width:15px; height:15px; margin:0; accent-color:#7c1416; }
.note-sharing-global-identity { display:flex; min-width:0; flex-direction:column; gap:2px; }
.note-sharing-global-identity strong { overflow:hidden; color:#222; font-size:12px; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.note-sharing-global-identity small { overflow:hidden; color:#666; font-size:10.5px; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.note-sharing-global-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; min-width:0; }
.note-sharing-global-check { display:inline-flex; align-items:center; gap:5px; font-size:10.5px; white-space:nowrap; cursor:pointer; }
.note-sharing-global-check input { width:14px; height:14px; margin:0; accent-color:#7c1416; }
.note-sharing-global-access { display:inline-flex; align-items:center; gap:6px; color:#555; font-size:10.5px; white-space:nowrap; }
.note-sharing-global-access select { width:136px; height:29px; padding:0 6px; border:1px solid #d5c9b6; border-radius:6px; background:#fff; color:#333; font-family:inherit; font-size:10.5px !important; line-height:normal; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.note-sharing-global-controls :disabled { cursor:not-allowed; opacity:.58; }
.note-sharing-users { display:grid; grid-template-columns:1fr; gap:8px; padding-top:10px; border-top:1px solid #c9cdd1; }
.note-sharing-user { display:grid; width:100%; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:5px 8px; min-width:0; padding:9px 10px; border:1px solid #d8d8d8; border-radius:9px; background:#faf8f6; color:#222; text-align:left; }
.note-sharing-user:hover { border-color:#e5a800; background:#fff3c4; }
.note-sharing-user .note-sharing-identity { display:flex; min-width:0; flex-direction:column; gap:2px; }
.note-sharing-user strong,.note-sharing-user small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.note-sharing-user strong { font-size:12px; color:#222; }
.note-sharing-user small { font-size:10.5px; color:#666; }
.note-sharing-bulk-check { display:inline-flex; align-items:center; cursor:pointer; }.note-sharing-bulk-check input { width:15px; height:15px; accent-color:#7c1416; }
.note-sharing-user-controls { grid-column:3; grid-row:1; display:flex; align-items:center; justify-content:flex-end; justify-self:end; gap:7px; min-width:0; }
.note-sharing-notify { display:inline-flex; flex:0 0 auto; align-items:center; align-self:center; gap:4px; color:#555; font-size:10.5px; line-height:1; cursor:pointer; white-space:nowrap; }.note-sharing-notify input { width:14px; height:14px; margin:0; flex:0 0 14px; accent-color:#7c1416; }.note-sharing-notify span { display:inline; }
.note-sharing-permission { display:inline-grid; flex:0 1 auto; grid-template-columns:auto 136px; align-items:center; gap:5px; color:#555; font-size:10.5px; }.note-sharing-permission select { width:136px; min-width:0; height:27px; padding:0 5px; border:1px solid #d5c9b6; border-radius:6px; background:#fff; color:#333; font-family:inherit; font-size:10.5px !important; line-height:normal; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.note-sharing-bulk-actions { display:flex; justify-content:flex-end; margin-top:8px; }
.note-sharing-bulk-actions .btn.sharing-gray { min-height:32px; height:32px; padding:0 10px; border-color:#cfd6df; color:#27313f; background:linear-gradient(180deg,#f3f5f7,#d8dde4); font-size:11px; }
.note-sharing-readonly,.note-sharing-loading,.note-sharing-empty,.note-sharing-error { grid-column:1/-1; padding:10px; border-radius:8px; background:#fff; color:#555; }
.note-sharing-error { color:#9a1e22; }
.note-sharing-information { margin:0 0 10px; padding:0; border:0; border-radius:0; background:transparent; color:#444; }
.note-sharing-information > strong { display:flex; align-items:center; gap:6px; margin-bottom:6px; color:#7c1416; font-size:14px; }
.note-sharing-information > strong .icon { width:15px; height:15px; flex:0 0 15px; color:#7c1416; }
.note-sharing-information p { margin:3px 0; font-size:12px; line-height:1.4; }
.note-editing-status { display:flex; align-items:center; gap:6px; color:#7c1416; font-size:14px !important; font-weight:700; }
.note-editing-status .icon { width:15px; height:15px; flex:0 0 15px; color:currentColor; }
.note-sharing-permissions { margin-top:18px; padding:0; border:0; border-radius:0; background:transparent; color:#444; }
.note-sharing-permissions > strong { display:block; margin-bottom:6px; color:#7c1416; font-size:12px; }
.note-sharing-permissions p { margin:3px 0; font-size:10.5px; line-height:1.4; }
.note-sharing-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; }
.note-sharing-status { color:#555; font-size:11px; font-weight:700; }
.note-sharing-status-label { color:#555; }
.note-sharing-status.active .note-sharing-status-value { color:#218838; }
.note-sharing-status.inactive .note-sharing-status-value { color:#b4232a; }
.note-sharing-footer-actions { display:flex; justify-content:flex-end; gap:8px; margin-left:auto; }
.note-sharing-footer-actions .btn.sharing-gray { min-height:36px; height:36px; padding:0 12px; border-color:#cfd6df; color:#27313f; background:linear-gradient(180deg,#f3f5f7,#d8dde4); font-size:12px; }
.note-sharing-footer-actions .btn .icon { width:15px; height:15px; }
.note-sharing-footer-actions .sharing-disable { color:#7c1416; }
.note-sharing-footer-actions .sharing-disable.confirming { border-color:#b4232a; background:linear-gradient(180deg,#fff1f1,#f5cccc); color:#9a1e22; }
.shared-note-meta { color:#7c1416; font-weight:700; }
@media (min-width:901px) {
  body.sidebar-collapsed .note-sharing-users,
  body.sidebar-hidden .note-sharing-users { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:1100px) { .note-sharing-top-row { grid-template-columns:1fr; gap:8px; } .note-sharing-picker-top { justify-self:stretch; } .note-sharing-picker-top > p { text-align:left; } .note-sharing-search-controls { justify-content:start; } }
@media (max-width:900px) { .note-sharing-search-controls { grid-template-columns:repeat(2,minmax(0,1fr)); } .note-sharing-dropdown { grid-column:1/-1; } .note-sharing-search-controls .btn.sharing-gray { width:100%; } }
@media (max-width:900px) { .note-sharing-global-controls { grid-template-columns:1fr; } .note-sharing-global-actions { justify-content:flex-start; padding-left:23px; flex-wrap:wrap; } }
@media (max-width:700px) { .note-sharing-users { grid-template-columns:1fr; } }
@media (max-width:700px) { .note-sharing-user { grid-template-columns:auto minmax(0,1fr); } .note-sharing-user-controls { grid-column:1/-1; grid-row:auto; justify-self:start; justify-content:flex-start; } }
@media (max-width:700px) { .note-page .note-sharing-global-access select,.note-page .note-sharing-permission select { font-size:10.5px !important; } }
@media (max-width:700px) { .note-sharing-footer { align-items:stretch; flex-direction:column; } .note-sharing-footer-actions { width:100%; margin-left:0; } .note-sharing-footer-actions .btn { flex:1 1 0; } }
