/* ==========================================================================
   Intranet Mondrian Bordeaux Les Carmes — design system
   Noir & blanc, premium, responsive. Aucune police externe (RGPD).
   ========================================================================== */

:root {
  --ink: #0b0b0c;
  --ink-soft: #1c1c1f;
  --paper: #ffffff;
  --bg: #f5f5f2;
  --soft: #efefec;
  --line: #e3e3df;
  --line-strong: #d2d2cd;
  --muted: #6d6d70;
  --muted-2: #8b8b8e;
  --danger: #b42318;
  --danger-soft: #fbeceb;
  --warn: #8a5a00;
  --warn-soft: #fdf4e3;
  --ok: #126b3a;
  --ok-soft: #eaf5ee;
  --info: #1f4f75;
  --info-soft: #eaf2f8;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 1px 2px rgba(12, 12, 13, .04), 0 18px 40px -28px rgba(12, 12, 13, .35);
  --shadow-sm: 0 1px 2px rgba(12, 12, 13, .05);
  --sidebar: 268px;
  --font: "Helvetica Neue", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
::selection { background: var(--ink); color: #fff; }

.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -4px; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: #fff; color: #000; padding: .6rem 1rem; border-radius: 8px; box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid #000; outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- Layout */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  background: #0c0c0d; color: #f5f5f2;
  display: flex; flex-direction: column;
  padding: 1.35rem 1rem 1rem; z-index: 60;
  border-right: 1px solid #1d1d20;
}
.brand { display: flex; align-items: center; gap: .8rem; padding: .15rem .55rem 1.5rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; background: #fff; color: #0b0b0c;
  display: grid; place-items: center; font-weight: 800; font-size: 1.35rem; letter-spacing: -.04em;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: #fff; font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; }
.brand-text small { color: #9a9a9e; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .25rem; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: .8rem;
  padding: .68rem .72rem; border-radius: 10px;
  color: #c9c9cc; font-size: .9rem; font-weight: 500;
  transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.nav-item .ic { width: 19px; height: 19px; opacity: .8; }
.nav-item:hover { background: #1a1a1d; color: #fff; }
.nav-item.active { background: #fff; color: #0b0b0c; font-weight: 650; }
.nav-item.active .ic { opacity: 1; }
.nav-badge, .dot {
  margin-left: auto; background: #fff; color: #000; border-radius: 999px;
  min-width: 20px; height: 20px; padding: 0 6px; font-size: .67rem; font-weight: 800;
  display: inline-grid; place-items: center;
}
.nav-item.active .nav-badge { background: #0b0b0c; color: #fff; }
.nav-sep {
  margin: 1.1rem .72rem .45rem; color: #6f6f74; font-size: .64rem;
  text-transform: uppercase; letter-spacing: .16em; font-weight: 700;
}
.sidebar-foot {
  margin-top: auto; padding: 1.1rem .55rem .2rem; border-top: 1px solid #202023;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  color: #85858a; font-size: .72rem;
}
.sidebar-foot a { display: inline-flex; align-items: center; gap: .4rem; color: #a9a9ad; }
.sidebar-foot a:hover { color: #fff; }
.sidebar-foot .ic { width: 14px; height: 14px; }
.version { font-family: var(--mono); font-size: .66rem; }

.shell { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem clamp(1rem, 2.6vw, 2.4rem);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.crumb { display: flex; align-items: center; gap: .55rem; font-size: .8rem; color: var(--muted); min-width: 0; }
.crumb-brand { color: var(--ink); font-weight: 650; letter-spacing: .02em; }
.crumb-sep { color: var(--line-strong); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid transparent; background: transparent;
  display: inline-grid; place-items: center; color: var(--ink);
  transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--soft); border-color: var(--line); }
.bell { position: relative; }
.bell .dot {
  position: absolute; top: -2px; right: -2px; background: var(--ink); color: #fff;
  min-width: 18px; height: 18px; font-size: .62rem; border: 2px solid #fff;
}
.burger { display: none; }

.usermenu { position: relative; }
.usermenu summary { list-style: none; }
.usermenu summary::-webkit-details-marker { display: none; }
.user-btn {
  display: flex; align-items: center; gap: .6rem; padding: .25rem .45rem .25rem .25rem;
  border-radius: 999px; border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.user-btn:hover { background: var(--soft); border-color: var(--line); }
.user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-meta strong { font-size: .82rem; font-weight: 650; }
.user-meta small { font-size: .68rem; color: var(--muted); }
.user-btn .chev { width: 15px; height: 15px; transform: rotate(90deg); color: var(--muted); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-grid; place-items: center; font-size: .74rem; font-weight: 700; letter-spacing: .02em; flex: none;
}
.menu {
  position: absolute; right: 0; top: calc(100% + .6rem); z-index: 80; width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: .45rem; animation: pop .16s var(--ease);
}
.menu-head { padding: .55rem .65rem .65rem; border-bottom: 1px solid var(--line); margin-bottom: .35rem; }
.menu-head strong { display: block; font-size: .86rem; }
.menu-head small { color: var(--muted); font-size: .72rem; word-break: break-all; }
.menu a, .menu button {
  width: 100%; display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem;
  border-radius: 9px; border: 0; background: transparent; font-size: .85rem; text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--soft); }
.menu form { margin: 0; }
.menu .menu-danger { color: var(--danger); }
.menu .ic { width: 17px; height: 17px; }

.main {
  padding: clamp(1.1rem, 2.6vw, 2.4rem);
  padding-bottom: 3.5rem; flex: 1; max-width: 1500px; width: 100%;
}
.main-wide { max-width: none; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.eyebrow {
  margin: 0 0 .4rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--muted); font-weight: 700;
}
.page-head h1 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.page-sub { color: var(--muted); margin: .4rem 0 0; max-width: 62ch; font-size: .93rem; }
.page-actions { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }

.footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem clamp(1rem, 2.6vw, 2.4rem) 1.4rem; color: var(--muted-2); font-size: .72rem;
  border-top: 1px solid var(--line); background: transparent;
}
.footer-links { display: flex; gap: 1rem; }
.footer a:hover { color: var(--ink); }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 40px; padding: .55rem .95rem; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: .84rem; font-weight: 600; letter-spacing: .01em;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--soft); border-color: #bdbdb7; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #26262a; border-color: #26262a; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--soft); border-color: var(--line); }
.btn-outline { background: transparent; }
.btn-sm { min-height: 32px; padding: .32rem .65rem; font-size: .76rem; border-radius: 8px; }
.btn-sm .ic { width: 15px; height: 15px; }
.btn-lg { min-height: 48px; padding: .7rem 1.2rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-icon-only { width: 36px; min-height: 36px; padding: 0; }

/* ----------------------------------------------------------------- Forms */
.form-grid { display: grid; gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field > label, .label {
  font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: #4a4a4d;
}
.field .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  border-radius: 10px; padding: .6rem .75rem; font-size: .9rem; min-height: 42px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 11, 12, .08);
}
.input::placeholder, .textarea::placeholder { color: #a4a4a7; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236d6d70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; padding-right: 2.2rem; }
.help { font-size: .74rem; color: var(--muted); }
.error-text { font-size: .76rem; color: var(--danger); }
.input-sm, .select-sm { min-height: 34px; padding: .35rem .55rem; font-size: .8rem; border-radius: 8px; }
.inline-form { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1; min-width: 130px; }
.check { display: flex; align-items: flex-start; gap: .55rem; font-size: .86rem; cursor: pointer; }
.check input[type=checkbox], .check input[type=radio] { width: 18px; height: 18px; margin: .1rem 0 0; accent-color: #0b0b0c; flex: none; }
.check span { line-height: 1.35; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .45rem .9rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin: 0; min-width: 0; }
legend { padding: 0 .4rem; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.form-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: .25rem; }
.input-group { display: flex; }
.input-group .input { border-radius: 10px 0 0 10px; }
.input-group .btn { border-radius: 0 10px 10px 0; border-left: 0; }

.searchbar { position: relative; flex: 1; min-width: 180px; }
.searchbar .ic { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.searchbar .input { padding-left: 2.2rem; }

/* ----------------------------------------------------------------- Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card + .card { margin-top: 1rem; }
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.card-head h2, .card-head h3 { font-size: 1rem; }
.card-head p { color: var(--muted); font-size: .8rem; margin: .2rem 0 0; }
.card-body { padding: 1.2rem; }
.card-body.flush { padding: 0; }
.card-foot { padding: .8rem 1.2rem; border-top: 1px solid var(--line); background: #fbfbfa; }
.card-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.card.dark { background: var(--ink); border-color: var(--ink); color: #f4f4f1; }
.card.dark .card-head { border-color: #26262a; }
.card.dark p, .card.dark .muted { color: #a8a8ad; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1fr) 420px; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.tiny { font-size: .72rem; }
.strong { font-weight: 650; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.text-right { text-align: right; }
.divider { height: 1px; background: var(--line); margin: 1rem 0; }

/* ---------------------------------------------------------------- Badges */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .18rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 700;
  letter-spacing: .03em; border: 1px solid transparent; white-space: nowrap; line-height: 1.4;
}
.badge .ic { width: 12px; height: 12px; }
.badge-neutral { background: var(--soft); border-color: var(--line); color: #3a3a3d; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-muted { background: transparent; border-color: var(--line); color: var(--muted); }
.badge-ok { background: var(--ok-soft); border-color: #cfe5d8; color: var(--ok); }
.badge-warn { background: var(--warn-soft); border-color: #f0dfba; color: var(--warn); }
.badge-danger { background: var(--danger-soft); border-color: #f3cdc9; color: var(--danger); }
.badge-info { background: var(--info-soft); border-color: #cfe0ee; color: var(--info); }
.badge-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 7px;
  background: var(--soft); border: 1px solid var(--line); font-size: .72rem; color: #454548;
}

/* ---------------------------------------------------------------- Tabs */
.tabs {
  display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin-bottom: 1.25rem;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: .4rem; padding: .65rem .85rem;
  font-size: .84rem; color: var(--muted); border-bottom: 2px solid transparent;
  white-space: nowrap; font-weight: 550;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------- Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 620px; }
.table th {
  text-align: left; font-size: .67rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); font-weight: 700; padding: .7rem .8rem; border-bottom: 1px solid var(--line);
  background: #fbfbfa; white-space: nowrap;
}
.table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfcfb; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn { margin-left: .2rem; }
.table-compact td, .table-compact th { padding: .45rem .6rem; }
.table-fixed { table-layout: fixed; }
.table .wrap { min-width: 220px; }
.table th.sortable a { color: inherit; }

/* ---------------------------------------------------------------- Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem .95rem; display: flex; flex-direction: column; gap: .15rem;
}
.stat-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 650; }
.stat-value { font-size: 1.4rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-hint { font-size: .72rem; color: var(--muted); }
.stat.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat.dark .stat-label, .stat.dark .stat-hint { color: #b5b5b9; }
.stat.warn .stat-value { color: var(--warn); }
.stat.danger .stat-value { color: var(--danger); }
.stat.ok .stat-value { color: var(--ok); }

/* -------------------------------------------------------------- Progress */
.progress-wrap { display: flex; flex-direction: column; gap: .35rem; }
.progress-head { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); }
.progress-head strong { color: var(--ink); }
.progress { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .3s var(--ease); }

/* ---------------------------------------------------------------- Meter */
.meter-list { display: flex; flex-direction: column; gap: .55rem; }
.meter-row { display: grid; grid-template-columns: minmax(90px, 1.2fr) 2fr auto; gap: .7rem; align-items: center; font-size: .8rem; }
.meter-label { color: #3a3a3d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter-track { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.meter-track span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.meter-value { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 42px; text-align: right; }

/* --------------------------------------------------------------- Filters */
.filters {
  display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap;
  padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 1rem;
}
.filters .field { flex: 1 1 150px; min-width: 130px; }
.filters .field-sm { flex: 0 1 130px; }
.filters .spacer { flex: 1; }
.filter-pills { display: flex; gap: .35rem; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  font-size: .76rem; color: var(--muted); font-weight: 550;
}
.pill:hover { border-color: var(--line-strong); color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------------------ Empty state */
.empty-state {
  text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); background: #fdfdfc; color: var(--muted);
}
.empty-icon {
  width: 52px; height: 52px; margin: 0 auto .8rem; border-radius: 14px;
  background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; color: #4a4a4d;
}
.empty-icon .ic { width: 24px; height: 24px; }
.empty-state h2, .empty-state h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: .35rem; }
.empty-state p { max-width: 46ch; margin: 0 auto .9rem; font-size: .86rem; }
.empty-action { margin-top: .9rem; }

/* ---------------------------------------------------------------- Flash */
.flash {
  display: flex; align-items: center; gap: .65rem; padding: .75rem .9rem;
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  margin-bottom: 1rem; font-size: .86rem; box-shadow: var(--shadow-sm);
  animation: slideDown .22s var(--ease);
}
.flash .ic { width: 18px; height: 18px; flex: none; }
.flash span { flex: 1; }
.flash-x { border: 0; background: transparent; color: var(--muted); padding: .2rem; display: grid; place-items: center; }
.flash-x .ic { width: 15px; height: 15px; }
.flash-success { border-color: #cfe5d8; background: var(--ok-soft); color: #0d4f2b; }
.flash-error { border-color: #f3cdc9; background: var(--danger-soft); color: #7d1a12; }
.flash-warn { border-color: #f0dfba; background: var(--warn-soft); color: #6a4500; }
.flash-info { border-color: #cfe0ee; background: var(--info-soft); color: #1a3f5c; }

/* -------------------------------------------------------------- Dialogs */
dialog.dialog {
  width: min(600px, calc(100vw - 2rem)); max-height: min(88vh, 900px);
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
  overflow: auto;
}
dialog.dialog.dialog-lg { width: min(860px, calc(100vw - 2rem)); }
dialog.dialog.dialog-sm { width: min(440px, calc(100vw - 2rem)); }
dialog.dialog::backdrop { background: rgba(10, 10, 11, .55); backdrop-filter: blur(3px); }
.dialog-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2;
}
.dialog-head h2 { font-size: 1.05rem; }
.dialog-head p { color: var(--muted); font-size: .78rem; margin: .2rem 0 0; }
.dialog-x { width: 34px; height: 34px; }
.dialog-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 1rem; }
.dialog-body > form { display: contents; }
.dialog-foot {
  display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap;
  padding: .9rem 1.2rem; border-top: 1px solid var(--line); background: #fbfbfa;
  position: sticky; bottom: 0; z-index: 2;
}
dialog[open] { animation: pop .18s var(--ease); }

/* -------------------------------------------------------------- Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline-item { display: grid; grid-template-columns: 26px 1fr; gap: .7rem; padding-bottom: 1rem; position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: 12px; top: 24px; bottom: 0; width: 1px; background: var(--line);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong);
  display: grid; place-items: center; z-index: 1; color: var(--muted);
}
.timeline-dot .ic { width: 13px; height: 13px; }
.timeline-body { min-width: 0; }
.timeline-body p { font-size: .85rem; margin: .15rem 0 .2rem; }
.timeline-meta { font-size: .7rem; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; }
.timeline-item.is-status .timeline-dot { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------------------ Key values */
.kv { display: grid; grid-template-columns: minmax(110px, .55fr) 1.45fr; gap: .5rem .9rem; font-size: .85rem; }
.kv dt { color: var(--muted); font-size: .76rem; }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.kv-tight { gap: .35rem .9rem; }

/* ------------------------------------------------------------ Alert box */
.callout {
  display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem;
  border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 10px;
  background: #fbfbfa; font-size: .84rem;
}
.callout .ic { margin-top: .1rem; flex: none; }
.callout-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout-danger { border-left-color: var(--danger); background: var(--danger-soft); }
.callout-ok { border-left-color: var(--ok); background: var(--ok-soft); }
.callout strong { display: block; margin-bottom: .15rem; }

/* --------------------------------------------------------------- Tiles */
.hero {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 4px);
  background: var(--ink); color: #fff; padding: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 1.4rem; border: 1px solid #222;
}
.hero::after {
  content: ""; position: absolute; right: -90px; top: -140px; width: 380px; height: 380px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 90px rgba(255,255,255,.02);
  pointer-events: none;
}
.hero .eyebrow { color: #a9a9ae; }
.hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.03em; }
.hero p { color: #b9b9bd; max-width: 60ch; margin-top: .5rem; }
.hero-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.25rem; font-size: .78rem; color: #a9a9ae; }
.hero-meta strong { color: #fff; display: block; font-size: 1.1rem; letter-spacing: -.02em; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: .8rem; min-height: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px);
  padding: 1.15rem; color: var(--ink); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.tile::before {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px;
  border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(0,0,0,.055), transparent 70%);
  transition: transform .3s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9c9c3; }
.tile:hover::before { transform: scale(1.25); }
.tile-icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--soft); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
}
.tile-icon .ic { width: 23px; height: 23px; }
.tile h2 { font-size: 1.08rem; }
.tile p { font-size: .8rem; color: var(--muted); margin: 0; line-height: 1.45; }
.tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tile-note { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 650; }
.tile-arrow {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: background .16s, color .16s, border-color .16s;
}
.tile-arrow .ic { width: 14px; height: 14px; }
.tile:hover .tile-arrow { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile-count {
  position: absolute; top: 1rem; right: 1rem; background: var(--ink); color: #fff;
  border-radius: 999px; min-width: 24px; height: 24px; padding: 0 7px;
  display: grid; place-items: center; font-size: .7rem; font-weight: 700;
}
.tile-count.is-zero { background: var(--soft); color: var(--muted); }
.tile.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile.dark .tile-icon { background: #232327; border-color: #303035; color: #fff; }
.tile.dark p, .tile.dark .tile-note { color: #a9a9ae; }
.tile.dark .tile-arrow { border-color: #3a3a3f; color: #fff; }
.tile.dark .tile-count { background: #fff; color: #000; }
.tile.dark:hover .tile-arrow { background: #fff; color: #000; border-color: #fff; }

/* -------------------------------------------------------------- List rows */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; gap: .9rem; align-items: flex-start; justify-content: space-between;
  padding: .9rem 1.2rem; border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: #fcfcfb; }
.list-main { min-width: 0; flex: 1; }
.list-title { font-size: .9rem; font-weight: 600; }
.list-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; font-size: .72rem; color: var(--muted); align-items: center; }
.list-side { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* ---------------------------------------------------------- Announcements */
.annonce { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; background: #fff; }
.annonce.unread { border-left: 3px solid var(--ink); background: #fdfdfc; }
.annonce-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.annonce-head h3 { font-size: .93rem; }
.annonce-body { font-size: .84rem; color: #3c3c3f; margin-top: .4rem; white-space: pre-line; }
.annonce-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: .7rem; color: var(--muted); margin-top: .55rem; }
.annonce.pinned { border-color: var(--ink); }

/* ------------------------------------------------------------- Consignes */
.consigne {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 1rem;
  position: relative;
}
.consigne + .consigne { margin-top: .6rem; }
.consigne.urgent { border-left: 3px solid var(--danger); }
.consigne.info { background: #fbfbfa; border-left: 3px solid var(--info); }
.consigne.pinned { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.consigne-head { display: flex; gap: .75rem; align-items: flex-start; justify-content: space-between; }
.consigne-content { font-size: .92rem; font-weight: 550; line-height: 1.45; }
.consigne-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: .72rem; color: var(--muted); margin-top: .45rem; }
.consigne-actions { display: flex; gap: .25rem; flex-wrap: wrap; }
.consigne-updates { margin-top: .7rem; border-top: 1px dashed var(--line); padding-top: .6rem; display: flex; flex-direction: column; gap: .45rem; }
.update-item { font-size: .8rem; color: #3f3f42; }
.update-item .meta { font-size: .68rem; color: var(--muted); }
.update-form { display: flex; gap: .4rem; margin-top: .5rem; }
.update-form .input { min-height: 36px; font-size: .82rem; }

/* ---------------------------------------------------------------- Rooms */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: .55rem; }
.room-card {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: .65rem;
  display: flex; flex-direction: column; gap: .3rem; min-height: 96px; position: relative;
  transition: border-color .15s, background .15s;
}
.room-card:hover { border-color: var(--line-strong); }
.room-card .room-number { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.room-card .room-meta { font-size: .66rem; color: var(--muted); display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.room-card .room-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .3rem; }
.room-card.done { background: var(--ok-soft); border-color: #cfe5d8; }
.room-card.done .room-number { text-decoration: line-through; color: #2b6b47; }
.room-card.todo { border-color: #ead9b6; }
.room-card.addon { border-style: dashed; }
.room-card.priority { border-color: var(--danger); }
.room-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.room-card.dark .room-meta { color: #b3b3b7; }
.room-card .room-status { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.floor-nav { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .3rem; }
.floor-nav a {
  padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .76rem; color: var(--muted); background: #fff; white-space: nowrap;
}
.floor-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------- Mobile */
.mobile-hero {
  border-radius: var(--radius); background: var(--ink); color: #fff; padding: 1.15rem;
  margin-bottom: 1rem;
}
.mobile-hero h1 { font-size: 1.3rem; }
.mobile-hero p { color: #b3b3b7; font-size: .82rem; margin: .3rem 0 0; }
.big-action {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: .9rem 1rem; font-weight: 600; font-size: .95rem; min-height: 58px;
}
.big-action .ic { width: 22px; height: 22px; }
.big-action.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.big-action.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.big-action.danger { background: var(--danger); border-color: var(--danger); color: #fff; }

/* ------------------------------------------------------------ Pagination */
.pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .8rem 1.2rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted);
}
.pagination-links { display: flex; gap: .25rem; align-items: center; }
.page-btn {
  min-width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  display: inline-grid; place-items: center; padding: 0 .4rem; font-size: .78rem; color: var(--ink);
}
.page-btn:hover { background: var(--soft); }
.page-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-btn.disabled { opacity: .35; pointer-events: none; }
.page-btn .ic { width: 14px; height: 14px; }

/* --------------------------------------------------------------- Bottom */
.bottomnav { display: none; }
.scrim { display: none; }

/* ---------------------------------------------------------------- Print */
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11px; }
  .sidebar, .topbar, .bottomnav, .footer, .scrim, .no-print, .page-actions, .filters, .tabs, .flash { display: none !important; }
  .shell { margin-left: 0; }
  .main { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .table { min-width: 0; font-size: 9.5px; }
  .print-only { display: block; }
  a { color: #000; text-decoration: none; }
  .print-page { padding: 0; }
  .page-break { page-break-before: always; }
}

/* ----------------------------------------------------------- Responsive */
@media (max-width: 1180px) {
  .split { grid-template-columns: minmax(0, 1fr) 320px; }
  .split-wide { grid-template-columns: minmax(0, 1fr) 360px; }
}

@media (max-width: 980px) {
  :root { --sidebar: 250px; }
  .sidebar { transform: translateX(-105%); transition: transform .24s var(--ease); box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  body.drawer-open .sidebar { transform: none; }
  body.drawer-open { overflow: hidden; }
  .shell { margin-left: 0; }
  .burger { display: inline-grid; }
  .scrim {
    display: block; position: fixed; inset: 0; background: rgba(10,10,11,.5);
    opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 55; border: 0; width: 100%;
  }
  body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
  .split, .split-wide { grid-template-columns: minmax(0, 1fr); }
  .bottomnav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom));
  }
  .bottomnav a, .bottomnav button {
    display: flex; flex-direction: column; align-items: center; gap: .18rem; padding: .3rem .2rem;
    border: 0; background: transparent; color: var(--muted); font-size: .62rem; font-weight: 600; position: relative;
  }
  .bottomnav a.active { color: var(--ink); }
  .bottomnav .ic { width: 21px; height: 21px; }
  .bottomnav .avatar { width: 22px; height: 22px; font-size: .56rem; }
  .bottomnav .nav-badge {
    position: absolute; top: 0; right: calc(50% - 18px); margin: 0; background: var(--ink); color: #fff;
    min-width: 16px; height: 16px; font-size: .56rem;
  }
  .main { padding-bottom: 5.5rem; }
  .footer { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .topbar { padding: .55rem .8rem; gap: .5rem; }
  .crumb { font-size: .74rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .crumb-brand, .crumb-sep { display: none; }
  .user-meta, .user-btn .chev { display: none; }
  .user-btn { padding: .15rem; }
  .main { padding: .9rem .85rem 5.5rem; }
  .page-head { margin-bottom: 1rem; gap: .8rem; }
  .page-head h1 { font-size: 1.5rem; }
  .page-sub { font-size: .84rem; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .tile { min-height: 148px; padding: .85rem; gap: .55rem; border-radius: 16px; }
  .tile-icon { width: 38px; height: 38px; border-radius: 11px; }
  .tile-icon .ic { width: 19px; height: 19px; }
  .tile h2 { font-size: .92rem; }
  .tile p { display: none; }
  .tile-note { font-size: .58rem; letter-spacing: .06em; }
  .tile-count { top: .65rem; right: .65rem; min-width: 21px; height: 21px; font-size: .64rem; }
  .tile:hover { transform: none; }
  .hero { padding: 1.1rem; border-radius: 16px; }
  .hero h1 { font-size: 1.55rem; }
  .hero p { font-size: .84rem; }
  .hero-meta { gap: 1rem; margin-top: .9rem; }
  .filters { padding: .75rem; gap: .5rem; }
  .filters .field { flex: 1 1 100%; }
  .filters .field-sm { flex: 1 1 45%; }
  .filters .spacer { display: none; }
  .filters .btn { flex: 1; }
  .card-head, .card-body { padding: .9rem; }
  .card-foot { padding: .7rem .9rem; }
  .list-item { padding: .8rem .9rem; flex-direction: column; gap: .5rem; }
  .list-side { justify-content: flex-start; }
  .table { min-width: 560px; font-size: .8rem; }
  .table th, .table td { padding: .55rem .6rem; }
  .kv { grid-template-columns: 1fr; gap: .15rem; }
  .kv dd { margin-bottom: .45rem; }
  .dialog-body { padding: 1rem; }
  .dialog-head { padding: .85rem 1rem; }
  .dialog-foot { padding: .75rem 1rem; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1; }
  .room-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .45rem; }
  .room-card { min-height: 88px; padding: .5rem; }
  .room-card .room-number { font-size: 1rem; }
  .meter-row { grid-template-columns: minmax(70px, 1.2fr) 1.5fr auto; gap: .4rem; font-size: .74rem; }
  .pagination { padding: .7rem .9rem; }
  .consigne { padding: .8rem; }
  .consigne-content { font-size: .86rem; }
  .sticky-mobile { position: sticky; bottom: 4.6rem; z-index: 30; }
  .hide-mobile { display: none !important; }
  .mobile-stack { display: flex; flex-direction: column; gap: .6rem; }
  .btn-mobile-block { width: 100%; }
}

@media (max-width: 420px) {
  .tile-grid { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 130px; }
  .tile p { display: block; font-size: .76rem; }
  .stats { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------- Login */
.auth-page {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff;
}
.auth-visual {
  background: #0b0b0c; color: #fff; padding: clamp(2rem, 5vw, 4.5rem);
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.auth-visual::after {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1); right: -220px; bottom: -240px;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.015);
}
.auth-brand { display: flex; align-items: center; gap: .8rem; }
.auth-brand .brand-mark { width: 44px; height: 44px; }
.auth-visual h1 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 15ch; margin-top: auto; letter-spacing: -.04em; }
.auth-visual h1 em { font-style: normal; color: #8c8c91; }
.auth-visual p { color: #a7a7ac; max-width: 42ch; margin-top: 1rem; }
.auth-foot { font-size: .72rem; color: #74747a; margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 5vw, 4rem); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 1.65rem; margin-bottom: .35rem; }
.auth-card > p { color: var(--muted); font-size: .88rem; margin-bottom: 1.6rem; }
.auth-card .form-grid { gap: .9rem; }
.auth-links { margin-top: 1.4rem; font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.auth-demo { margin-top: 1.4rem; border: 1px dashed var(--line-strong); border-radius: 10px; padding: .7rem .8rem; font-size: .72rem; color: var(--muted); background: #fbfbfa; }
.auth-demo code { font-family: var(--mono); color: var(--ink); }

/* ------------------------------------------------------------- Installer */
.install-page { max-width: 880px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.install-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.5rem; }
.install-head .brand-mark { background: #0b0b0c; color: #fff; }
.install-steps { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.install-steps span { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.install-steps span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.install-steps span.on { color: var(--ink); font-weight: 650; }
.install-steps span.on::before { background: var(--ink); }
.check-list { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; }
.check-list div { display: flex; align-items: center; gap: .5rem; }
.check-list .ok { color: var(--ok); }
.check-list .ko { color: var(--danger); }

/* ------------------------------------------------------------- Utilities */
.table-actions-wrap { display: flex; gap: .3rem; justify-content: flex-end; }
.text-danger { color: var(--danger); }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
.bg-soft { background: var(--soft); }
.border-top { border-top: 1px solid var(--line); }
.rounded { border-radius: var(--radius-sm); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

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

/* ------------------------------------------------ Administration & annonces */
.admin-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.subnav {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: .45rem;
  box-shadow: var(--shadow-xs);
}
.subnav-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .7rem;
  border-radius: 9px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.subnav-item .ic { width: 17px; height: 17px; flex: none; }
.subnav-item:hover { background: var(--soft); color: var(--ink); }
.subnav-item.active { background: var(--ink); color: #fff; }
.admin-content { min-width: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: 1.1rem;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .95rem 1.1rem;
  min-width: 0;
}
.stat-label { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: .35rem; }
.stat strong { display: block; font-size: 1.65rem; line-height: 1.1; letter-spacing: -.035em; }
.stat strong small { font-size: .75rem; letter-spacing: 0; color: var(--muted); font-weight: 500; }

.user-cell { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.user-cell > div { min-width: 0; }
.user-cell strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.cell-actions { display: flex; align-items: center; justify-content: flex-end; gap: .3rem; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: .9rem; }
.back-link:hover { color: var(--ink); }
.back-link .ic { width: 15px; height: 15px; }
.code-pill { display: inline-block; font-family: var(--mono); font-size: .66rem; padding: .15rem .38rem; border-radius: 5px; background: var(--soft); border: 1px solid var(--line); color: #444; }

.perm-group { margin-top: 1rem; }
.perm-group h3 { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .15rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
.perm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 168px;
  gap: .7rem;
  align-items: center;
  padding: .48rem 0;
  border-bottom: 1px dashed var(--line);
}
.perm-row:last-child { border-bottom: 0; }
.perm-state { justify-self: start; }
.check-row-line { display: flex; align-items: flex-start; gap: .65rem; padding: .6rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-row-line:last-child { border-bottom: 0; }
.check-row-line small { line-height: 1.25; display: inline-block; margin-top: .12rem; }

.feed { display: grid; gap: 1rem; max-width: 880px; }
.announcement {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.announcement.is-unread { border-color: #c4c4c9; box-shadow: 0 12px 28px -22px rgba(0,0,0,.35); }
.announcement.is-urgent::before, .announcement.is-important::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--danger);
}
.announcement.is-important::before { background: var(--warn); }
.announcement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.announcement-head time { font-size: .68rem; color: var(--muted); white-space: nowrap; padding-top: .15rem; }
.announcement-title { font-size: 1.08rem; margin: .1rem 0 .45rem; letter-spacing: -.015em; }
.announcement-body { font-size: .86rem; line-height: 1.6; color: #2b2b2f; }
.announcement-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.dot-unread { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff; }
.tab-count { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; padding: 0 .3rem; margin-left: .3rem; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .64rem; font-weight: 800; }
.tab.is-active .tab-count { background: #fff; color: var(--ink); }

.table-compact td, .table-compact th { padding-top: .52rem; padding-bottom: .52rem; font-size: .78rem; }
.progress-sm { height: 4px; margin-top: .25rem; }

@media (max-width: 960px) {
  .admin-layout { grid-template-columns: 1fr; gap: .9rem; }
  .subnav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: .35rem; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav-item { white-space: nowrap; padding: .5rem .65rem; font-size: .76rem; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .stat-row { gap: .6rem; }
  .stat { padding: .8rem .85rem; }
  .stat strong { font-size: 1.4rem; }
  .feed { max-width: none; }
  .announcement { padding: 1rem; }
  .announcement-head { flex-direction: column; gap: .35rem; }
  .announcement-foot { align-items: flex-start; flex-direction: column; }
  .perm-row { grid-template-columns: minmax(0, 1fr) 140px; }
  .perm-state { display: none; }
  .perm-row .select { width: 100%; }
  .cell-actions { justify-content: flex-start; }
}

/* ==========================================================================
   Application mobile, suivi de dossier et alertes — v1.1
   ========================================================================== */

.brand-mark-logo { background: #fff; padding: 0; overflow: hidden; }
.brand-mark-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark-sm { width: 38px; height: 38px; border-radius: 10px; font-size: 1.05rem; }

/* --------------------------------------------------------- Connexion mobile */
.auth-body { background: #0b0b0c; }
@media (max-width: 860px) {
  .auth-page {
    grid-template-columns: minmax(0, 1fr);
    min-height: 100dvh;
    background: #fff;
  }
  .auth-visual {
    min-height: 0;
    padding: calc(env(safe-area-inset-top) + 1.1rem) 1.2rem 1.3rem;
  }
  .auth-brand .brand-mark { width: 38px; height: 38px; }
  .auth-visual h1 { margin-top: .9rem; font-size: clamp(1.55rem, 7vw, 2rem); }
  .auth-visual p, .auth-foot { display: none; }
  .auth-visual::after { width: 300px; height: 300px; right: -150px; bottom: -170px; }
  .auth-panel {
    align-items: flex-start;
    padding: 1.4rem 1.15rem calc(2rem + env(safe-area-inset-bottom));
  }
  .auth-card { max-width: none; }
  .auth-card h2 { font-size: 1.45rem; }
  .auth-card > p { margin-bottom: 1.1rem; }
  .auth-links { flex-direction: column; gap: .45rem; margin-top: 1.1rem; }
  .auth-demo { word-break: break-word; }
}
@media (max-width: 380px) {
  .auth-visual h1 { font-size: 1.4rem; }
  .auth-card-brand { display: none; }
}

/* ------------------------------------------- Menu mobile en feuille basse */
.sheet-grab { display: none; }
@media (max-width: 980px) {
  .sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    max-height: 84dvh;
    padding: .5rem .8rem calc(.9rem + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid #2a2a2f;
    border-radius: 24px 24px 0 0;
    transform: translateY(112%);
    transition: transform .28s var(--ease);
    box-shadow: 0 -24px 70px rgba(0, 0, 0, .45);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.drawer-open .sidebar { transform: none; }
  .sheet-grab {
    display: block; width: 44px; height: 4px; border-radius: 99px;
    background: #3c3c42; margin: .1rem auto .8rem;
  }
  .sidebar .brand { display: none; }
  .sidebar .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .sidebar .nav-item {
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: .4rem;
    padding: .85rem .3rem;
    text-align: center;
    font-size: .72rem;
    line-height: 1.2;
    border-radius: 15px;
    background: #161619;
  }
  .sidebar .nav-item:hover { background: #202024; }
  .sidebar .nav-item.active { background: #fff; color: #0b0b0c; }
  .sidebar .nav-item .ic { width: 23px; height: 23px; }
  .sidebar .nav-item .nav-badge {
    position: absolute; top: .45rem; right: .55rem; margin: 0;
    min-width: 17px; height: 17px; font-size: .58rem;
  }
  .sidebar .nav-sep { margin: 1rem .2rem .45rem; }
  .sidebar .nav-admin { grid-template-columns: minmax(0, 1fr); }
  .sidebar .nav-admin .nav-item { flex-direction: row; justify-content: flex-start; padding: .75rem .85rem; font-size: .82rem; }
  .sidebar-foot { margin-top: 1rem; padding: .8rem .2rem .1rem; }
}

/* --------------------------------------------- Mode application travailleur */
.worker-home { display: none; }
@media (max-width: 980px) {
  body.worker-app { background: var(--bg); }
  body.worker-app .topbar { display: none; }
  body.worker-app .shell { margin-left: 0; }
  body.worker-app .main { padding: 0 0 5.6rem; max-width: none; }
  body.worker-app .worker-desktop { display: none; }
  body.worker-app .worker-home { display: block; }
  body.worker-app .footer { display: none; }
  body.worker-app .bottomnav {
    background: rgba(10, 10, 11, .96);
    border-top-color: #232327;
  }
  body.worker-app .bottomnav a, body.worker-app .bottomnav button { color: #8f8f94; }
  body.worker-app .bottomnav a.active { color: #fff; }
  body.worker-app .bottomnav .nav-badge { background: #fff; color: #000; }
  body.worker-app .bottomnav .avatar { background: #fff; color: #000; }
  body.worker-app .flash { margin: .8rem .85rem 0; }
}

.worker-home { max-width: 720px; margin: 0 auto; }
.worker-home-head {
  background: #0b0b0c; color: #fff;
  padding: calc(env(safe-area-inset-top) + 1rem) 1.1rem 1.5rem;
  border-radius: 0 0 26px 26px;
}
.worker-home-top { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.worker-date { margin: 0; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #8c8c91; }
.worker-avatar { margin-left: auto; display: inline-flex; }
.worker-avatar .avatar { background: #fff; color: #000; }
.worker-home-head h1 { font-size: 1.85rem; line-height: 1.08; letter-spacing: -.04em; }
.worker-home-head > p { color: #a5a5aa; font-size: .78rem; margin: .5rem 0 0; }
.worker-home-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; font-size: .7rem; color: #8f8f94; }
.worker-home-meta strong { color: #fff; font-size: .95rem; margin-right: .2rem; }

.worker-actions {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem; padding: 1rem .85rem 0;
}
.worker-action {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: .7rem; min-height: 104px; padding: .85rem;
  border: 1px solid var(--line); border-radius: 18px;
  background: #fff; font-size: .82rem; font-weight: 650;
  box-shadow: var(--shadow-sm);
}
.worker-action:active { transform: scale(.98); }
.worker-action.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.worker-action-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: var(--soft);
}
.worker-action.dark .worker-action-icon { background: #242428; }
.worker-action-icon .ic { width: 20px; height: 20px; }
.worker-action-badge {
  position: absolute; top: .6rem; right: .6rem;
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
  background: var(--ink); color: #fff; font-style: normal;
  font-size: .63rem; font-weight: 800; display: grid; place-items: center;
}
.worker-action.dark .worker-action-badge { background: #fff; color: #000; }

.app-panel { margin: 1rem .85rem 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.app-panel-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .95rem 1rem .7rem; }
.app-panel-head h2 { font-size: .98rem; }
.app-panel-head p { margin: .18rem 0 0; font-size: .7rem; color: var(--muted); }
.app-panel-link { font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.app-requests, .app-consignes, .app-announces { display: flex; flex-direction: column; }
.app-request { display: block; padding: .8rem 1rem 1rem; border-top: 1px solid var(--line); }
.app-request-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.app-request-head strong { font-size: .9rem; }
.app-request p { margin: .2rem 0 0; font-size: .7rem; color: var(--muted); }
.app-consigne { display: block; padding: .8rem 1rem; border-top: 1px solid var(--line); }
.app-consigne.urgent { background: var(--danger-soft); }
.app-consigne p { margin: 0; font-size: .84rem; line-height: 1.5; }
.app-consigne-flag { display: inline-flex; align-items: center; gap: .25rem; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--danger); margin-bottom: .3rem; }
.app-consigne-flag .ic { width: 13px; height: 13px; }
.app-consigne-meta { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .4rem; font-size: .66rem; color: var(--muted); }
.app-announce { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-top: 1px solid var(--line); }
.app-announce strong { display: block; font-size: .84rem; }
.app-announce small { display: block; font-size: .66rem; color: var(--muted); margin-top: .15rem; }

/* --------------------------------------------------- Suivi type livraison */
.tracker { margin-top: .7rem; }
.tracker-bar { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.tracker-bar span { display: block; height: 100%; border-radius: 999px; background: var(--ink); transition: width .45s var(--ease); }
.tracker.done .tracker-bar span { background: var(--ok); }
.tracker.rejected .tracker-bar span { background: var(--danger); }
.tracker-steps { display: flex; gap: .15rem; list-style: none; margin: .45rem 0 0; padding: 0; }
.tracker-steps li { flex: 1; min-width: 0; text-align: center; font-size: .62rem; color: var(--muted-2); }
.tracker-dot {
  display: grid; place-items: center; width: 14px; height: 14px; margin: 0 auto .25rem;
  border: 2px solid var(--line-strong); border-radius: 50%; background: #fff; color: #fff;
}
.tracker-dot .ic { width: 9px; height: 9px; }
.tracker-steps li.is-done .tracker-dot { background: var(--ink); border-color: var(--ink); }
.tracker-steps li.is-current { color: var(--ink); font-weight: 700; }
.tracker-steps li.is-current .tracker-dot { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 11, 12, .08); }
.tracker.done .tracker-steps li.is-done .tracker-dot { background: var(--ok); border-color: var(--ok); }
.tracker-label { display: block; line-height: 1.2; }
.tracker-hint { display: none; }
.tracker-compact { margin-top: .45rem; }
.tracker-compact .tracker-bar { height: 5px; }
.tracker-compact .tracker-steps { margin-top: .3rem; }
.tracker-compact .tracker-dot { width: 9px; height: 9px; border-width: 1.5px; }
.tracker-compact .tracker-label { display: none; }

/* ------------------------------------------------------ Tags réclamations */
.tag-picker {
  display: flex; flex-wrap: wrap; gap: .4rem;
  max-height: 190px; overflow-y: auto;
  padding: .6rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfbfa;
}
.tag-option {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .65rem; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: .76rem; cursor: pointer;
}
.tag-option input { accent-color: #0b0b0c; margin: 0; }
.tag-option:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag-list { display: flex; flex-direction: column; align-items: flex-start; gap: .22rem; }
.tag {
  display: inline-flex; align-items: center; padding: .1rem .5rem;
  border-left: 2px solid var(--ink); background: var(--soft);
  font-size: .68rem; font-weight: 600; color: #3b3b40;
  border-radius: 0 5px 5px 0;
}

/* ------------------------------------------------ Historique minibar */
.history-box {
  border: 1px solid var(--line); border-radius: 12px; background: #fbfbfa;
  padding: .6rem .8rem; margin-top: .6rem; font-size: .78rem;
}
.history-box summary { cursor: pointer; font-weight: 650; display: flex; align-items: center; gap: .4rem; list-style: none; }
.history-box summary::-webkit-details-marker { display: none; }
.history-box summary .ic { width: 15px; height: 15px; }
.history-list { list-style: none; margin: .55rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; max-height: 240px; overflow-y: auto; }
.history-list li { display: flex; flex-direction: column; gap: .1rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.history-list time { font-size: .66rem; color: var(--muted); }
.history-list span { color: #44444a; }

/* ------------------------------------------------------- Popup alertes */
dialog.popup {
  position: fixed;
  top: calc(env(safe-area-inset-top) + .9rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(470px, calc(100% - 1.4rem));
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px -24px rgba(0, 0, 0, .55);
  animation: pop .2s var(--ease);
}
dialog.popup::backdrop { background: rgba(10, 10, 11, .45); backdrop-filter: blur(2px); }
.popup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1rem .6rem; }
.popup-head h2 { font-size: 1.02rem; }
.popup-list { display: flex; flex-direction: column; max-height: 55dvh; overflow-y: auto; border-top: 1px solid var(--line); }
.popup-item { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.popup-item:hover { background: var(--soft); }
.popup-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.popup-icon .ic { width: 17px; height: 17px; }
.popup-text { display: flex; flex-direction: column; min-width: 0; }
.popup-text strong { font-size: .86rem; }
.popup-text small { font-size: .74rem; color: var(--muted); margin-top: .1rem; }
.popup-text time { font-size: .64rem; color: var(--muted-2); margin-top: .15rem; }
.popup-chev { width: 15px; height: 15px; margin-left: auto; color: var(--muted); flex: none; }
.popup-foot { padding: .75rem 1rem calc(.9rem + env(safe-area-inset-bottom)); }
@media (max-width: 480px) {
  dialog.popup { top: auto; bottom: 0; left: 0; right: 0; width: auto; transform: none; border-radius: 22px 22px 0 0; }
}

/* ------------------------------------------- Logo dans les paramètres */
.logo-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.logo-preview {
  width: 86px; height: 86px; flex: none; border-radius: 14px; border: 1px dashed var(--line-strong);
  display: grid; place-items: center; background: #fbfbfa; overflow: hidden;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-actions { flex: 1 1 220px; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }

/* -------------------------------------------- NOMADE plein écran mobile */
@media (max-width: 980px) {
  body.app-fullscreen .topbar { display: none; }
  body.app-fullscreen .main { padding: 0 0 5.6rem; max-width: none; }
  body.app-fullscreen .mobile-hero {
    border-radius: 0; margin: 0 0 .9rem;
    padding: calc(env(safe-area-inset-top) + 1rem) 1rem 1.3rem;
  }
  body.app-fullscreen .main > .row-between,
  body.app-fullscreen .main > .stack,
  body.app-fullscreen .main > .callout,
  body.app-fullscreen .main > .empty-state { margin-left: .85rem; margin-right: .85rem; }
  body.app-fullscreen .bottomnav { background: rgba(10, 10, 11, .96); border-top-color: #232327; }
  body.app-fullscreen .bottomnav a, body.app-fullscreen .bottomnav button { color: #8f8f94; }
  body.app-fullscreen .bottomnav a.active { color: #fff; }
}

/* ------------------------------------------------------ Consignes lisibles */
.consignes-stack { display: flex; flex-direction: column; }
.consignes-stack > .quick-add { order: 3; margin-top: .5rem; }
.consignes-stack > .consigne,
.consignes-stack > .empty-state { order: 1; }
.consignes-stack > .consigne { border-left: 4px solid var(--line-strong); }
.consignes-stack > .consigne.urgent { border-left-color: var(--danger); }
.consignes-stack > .consigne.info { border-left-color: var(--info); }
.consignes-stack > .consigne.pinned { border-color: var(--line-strong); }
.consignes-stack .consigne-content { font-size: 1rem; line-height: 1.55; }
.consignes-stack .consigne + .consigne { margin-top: .55rem; }

.priority-strip {
  border: 1px solid #efd5d2; background: linear-gradient(120deg, #fdf1ef, #fff);
  border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1rem;
}
.priority-strip-head { display: flex; align-items: center; gap: .45rem; color: var(--danger); font-size: .78rem; }
.priority-strip-head .ic { width: 17px; height: 17px; }
.priority-strip-head span { margin-left: auto; color: var(--muted); font-weight: 500; }
.priority-strip-list { display: flex; flex-direction: column; gap: .1rem; margin-top: .45rem; }
.priority-strip-list a {
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
  padding: .42rem .5rem; border-radius: 9px; font-size: .83rem; font-weight: 550;
}
.priority-strip-list a:hover { background: rgba(180, 35, 24, .06); }
.priority-flag {
  flex: none; font-size: .58rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: #fff; background: var(--danger);
  padding: .12rem .4rem; border-radius: 4px;
}
.priority-flag.pin { background: var(--ink); }
@media (max-width: 720px) {
  .priority-strip { padding: .8rem; }
  .priority-strip-list a { font-size: .8rem; }
  .consignes-stack .consigne-content { font-size: .95rem; }
}

/* Mode application : l'en-tête métier remplace l'en-tête de page */
@media (max-width: 980px) {
  body.worker-app .page-head,
  body.app-fullscreen .page-head { display: none; }
}
