:root {
      --ink: #171717;
      --paper: #f7f1e7;
      --panel: #ffffff;
      --line: #ded1bf;
      --muted: #6b665d;
      --accent: #f59e0b;
      --accent-strong: #c2410c;
      --violet: #7c3aed;
      --magenta: #db2777;
      --cream: #fff8ea;
      --accent-soft: #fff0c2;
      --good: #15803d;
      --warn: #b45309;
      --bad: #b91c1c;
      --shadow: 0 18px 42px rgba(23, 23, 23, .1);
      --tattoo-shadow: 0 24px 70px rgba(17, 17, 17, .16);
      /* Inkly UX Improvement Start */
      --inkly-bg: #070707;
      --inkly-surface: #11100f;
      --inkly-card: #191715;
      --inkly-text: #fff7ed;
      --inkly-muted: #b8b4ac;
      --inkly-primary: #f59e0b;
      --inkly-accent: #b91c1c;
      --inkly-border: rgba(245, 158, 11, .24);
      /* Inkly UX Improvement End */
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background:
        radial-gradient(circle at 84% 8%, rgba(245, 158, 11, .16), transparent 26%),
        radial-gradient(circle at 18% 12%, rgba(124, 58, 237, .12), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,0) 38%),
        repeating-linear-gradient(0deg, rgba(23,23,23,.025) 0 1px, transparent 1px 28px),
        var(--paper);
      color: var(--ink);
      overflow-x: hidden;
    }
    img { max-width: 100%; }
    button, input, select, textarea { font: inherit; min-width: 0; }
    button { cursor: pointer; }
    [hidden] { display: none !important; }
    .app {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 260px 1fr;
    }
    .sidebar {
      background:
        radial-gradient(circle at 50% 0, rgba(245,158,11,.18), transparent 32%),
        linear-gradient(180deg, #181411, #070707 58%, #100d0c);
      color: #fff;
      padding: 24px;
      position: sticky;
      top: 0;
      height: 100vh;
      overflow-y: auto;
      border-right: 1px solid rgba(245, 158, 11, .24);
      box-shadow: inset -1px 0 0 rgba(255,255,255,.04);
    }
    .sidebar::after {
      content: "";
      display: block;
      height: 1px;
      margin-top: 18px;
      background: linear-gradient(90deg, transparent, rgba(245,158,11,.42), transparent);
    }
    .brand {
      font-size: 32px;
      font-weight: 900;
      margin-bottom: 4px;
      letter-spacing: 0;
    }
    .brand span { color: var(--accent); }
    .brand-lockup {
      display: grid;
      grid-template-columns: 78px 1fr;
      gap: 12px;
      align-items: center;
      margin-bottom: 12px;
    }
    .brand-logo {
      width: 78px;
      height: 78px;
      border-radius: 50%;
      object-fit: cover;
      border: 1px solid rgba(255,255,255,.18);
      box-shadow: 0 12px 28px rgba(0,0,0,.32), 0 0 0 4px rgba(245,158,11,.12), 0 0 38px rgba(219,39,119,.18);
    }
    .tagline {
      color: #b8b4ac;
      font-size: 13px;
      line-height: 1.45;
      margin-bottom: 28px;
    }
    .nav {
      display: grid;
      gap: 8px;
    }
    .nav button {
      border: 1px solid transparent;
      border-radius: 8px;
      padding: 12px 13px;
      text-align: left;
      color: #f5f5f5;
      background: transparent;
      font-weight: 700;
      min-height: 44px;
    }
    .nav a {
      border: 1px solid transparent;
      border-radius: 8px;
      padding: 12px 13px;
      text-align: left;
      color: #f5f5f5;
      background: transparent;
      font-weight: 700;
      text-decoration: none;
      display: block;
      min-height: 44px;
    }
    .nav button:hover,
    .nav button.active,
    .nav a:hover {
      background: rgba(255,255,255,.08);
      border-color: rgba(245, 158, 11, .24);
      box-shadow: inset 3px 0 0 var(--accent);
    }
    .nav button.active {
      color: #fff7ed;
      background: linear-gradient(90deg, rgba(245,158,11,.18), rgba(124,58,237,.08));
    }
    .nav button.locked {
      opacity: .52;
    }
    .nav button.locked::after {
      content: "  verrouille";
      color: #fbbf24;
      font-size: 11px;
      font-weight: 700;
    }
    /* Inkly UX Improvement Start */
    .nav {
      align-content: start;
      max-height: calc(100vh - 170px);
      overflow-y: auto;
      padding-right: 2px;
      scrollbar-width: thin;
      scrollbar-color: rgba(245,158,11,.55) transparent;
    }
    .nav-group {
      display: grid;
      gap: 6px;
      padding: 10px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    }
    .nav-group-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin: 0 2px 2px;
      color: var(--inkly-muted);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .nav-group-title::after {
      content: "";
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, rgba(245,158,11,.36), transparent);
    }
    .nav button,
    .nav a {
      position: relative;
      display: flex;
      align-items: center;
      gap: 9px;
    }
    .nav button::before,
    .nav a::before {
      width: 22px;
      min-width: 22px;
      height: 22px;
      display: inline-grid;
      place-items: center;
      border-radius: 7px;
      color: #fff7ed;
      background: rgba(255,255,255,.08);
      font-size: 12px;
      line-height: 1;
    }
    .nav button[data-page="home"]::before { content: "H"; }
    .nav button[data-page="about"]::before { content: "i"; }
    .nav button[data-page="legal"]::before { content: "L"; }
    .nav button[data-page="partners"]::before { content: "A"; }
    .nav button[data-page="artistSpace"]::before { content: "S"; }
    .nav button[data-page="notifications"]::before { content: "!"; }
    .nav button[data-page="requestTracking"]::before { content: "S"; }
    .nav button[data-page="subscription"]::before { content: "P"; }
    .nav a[href*="demande.html"]::before { content: "C"; }
    .nav button[data-page="documents"]::before { content: "D"; }
    .nav button[data-page="stripe"]::before { content: "$"; }
    .nav button[data-page="request"]::before { content: "+"; }
    .nav button[data-page="auth"]::before { content: "↗"; }
    .nav button.active::after {
      content: "";
      position: absolute;
      right: 10px;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--inkly-primary);
      box-shadow: 0 0 0 4px rgba(245,158,11,.16);
    }
    .followup-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 14px;
    }
    .followup-grid.organized { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .followup-box {
      padding: 12px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 16px;
      background: rgba(255,255,255,.04);
    }
    .followup-box.wide { grid-column: span 2; }
    .followup-box.full { grid-column: 1 / -1; }
    .followup-box h4 { margin: 0 0 8px; font-size: 14px; }
    .followup-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
    .followup-item {
      padding: 9px;
      border-radius: 12px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.08);
    }
    .dashboard-pipeline-action {
      display: block;
      width: 100%;
      color: inherit;
      text-align: left;
      line-height: inherit;
      cursor: pointer;
      white-space: pre-line;
      transition: border-color .18s ease, background .18s ease, transform .18s ease;
    }
    .dashboard-pipeline-action:hover,
    .dashboard-pipeline-action:focus-visible {
      background: rgba(245,158,11,.12);
      border-color: rgba(245,158,11,.42);
      transform: translateY(-1px);
      outline: none;
    }
    .followup-action-list { display: grid; gap: 8px; }
    @media (max-width: 900px) {
      .followup-grid, .followup-grid.organized { grid-template-columns: 1fr; }
      .followup-box.wide, .followup-box.full { grid-column: auto; }
    }
    .notification-toolbar {
      align-items: flex-start;
      gap: 16px;
    }
    .notification-count-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 8px;
      padding: 6px 10px;
      border-radius: 999px;
      color: var(--inkly-text);
      background: rgba(185,28,28,.22);
      border: 1px solid rgba(245,158,11,.25);
      font-size: 12px;
      font-weight: 900;
    }
    .notification-menu-alert {
      display: none;
      align-items: center;
      justify-content: center;
      min-width: 22px;
      height: 22px;
      margin-left: auto;
      padding: 0 7px;
      border-radius: 999px;
      background: #fbbf24;
      color: #18181b;
      font-size: 11px;
      font-weight: 900;
      line-height: 1;
    }
    .notification-menu-alert.visible {
      display: inline-flex;
    }
    .notification-list {
      display: grid;
      gap: 10px;
    }
    .notification-card {
      border: 1px solid rgba(255,255,255,.1);
      background: linear-gradient(180deg, rgba(25,23,21,.98), rgba(12,12,12,.96));
      color: var(--inkly-text);
    }
    .notification-card.unread {
      border-color: rgba(245,158,11,.72);
      box-shadow: inset 4px 0 0 var(--inkly-primary), 0 16px 34px rgba(0,0,0,.18);
    }
    .notification-card.important {
      border-color: rgba(185,28,28,.74);
      box-shadow: inset 4px 0 0 var(--inkly-accent), 0 16px 34px rgba(0,0,0,.2);
    }
    .notification-card .muted {
      color: var(--inkly-muted);
    }
    .notification-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-top: 5px;
    }
    .notification-type {
      border: 1px solid rgba(245,158,11,.28);
      background: rgba(245,158,11,.12);
      color: #fde68a;
    }
    /* Inkly UX Improvement End */
    main { min-width: 0; }
    .topbar {
      border-bottom: 1px solid var(--line);
      padding: 18px 28px;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: center;
      background: rgba(247, 241, 231, .9);
      position: sticky;
      top: 0;
      z-index: 5;
      backdrop-filter: blur(12px);
      box-shadow: 0 8px 28px rgba(23, 23, 23, .05);
    }
    .topbar h1 {
      font-size: 24px;
      margin: 0;
      letter-spacing: 0;
      font-weight: 950;
    }
    .topbar p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: 13px;
    }
    .content {
      padding: 28px;
      display: grid;
      gap: 20px;
      padding-bottom: 96px;
      max-width: 1480px;
      width: 100%;
    }
    .page { display: none; }
    .page.active { display: grid; gap: 20px; }
    .grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }
    .about-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .about-hero-title {
      font-size: 42px;
      line-height: 1.08;
      margin: 18px 0;
      max-width: 760px;
    }
    .panel,
    .stat,
    .request-card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 8px;
      box-shadow: var(--shadow);
      min-width: 0;
    }
    .stat,
    .request-card,
    .plan-card,
    .mini-card,
    .month,
    .lane {
      transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    }
    .stat:hover,
    .request-card:hover,
    .plan-card:hover,
    .mini-card:hover {
      transform: translateY(-2px);
      border-color: rgba(245, 158, 11, .34);
      box-shadow: var(--tattoo-shadow);
    }
    .panel {
      position: relative;
      overflow: hidden;
    }
    .panel::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--accent), var(--magenta), var(--violet), var(--accent-strong));
      opacity: .85;
    }
    .stat { padding: 18px; }
    .stat strong {
      display: block;
      font-size: 30px;
      margin-bottom: 4px;
      color: #9a3412;
    }
    .stat span { color: var(--muted); font-size: 13px; }
    .panel { padding: 20px; }
    .panel h2 {
      margin: 0 0 14px;
      font-size: 19px;
      font-weight: 900;
    }
    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }
    .field { display: grid; gap: 6px; }
    .field.full { grid-column: 1 / -1; }
    label {
      font-size: 13px;
      color: #3f3a32;
      font-weight: 800;
    }
    input, select, textarea {
      width: 100%;
      border: 1px solid #d7d2c7;
      background: #fff;
      border-radius: 8px;
      padding: 12px;
      outline: none;
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }
    input:hover, select:hover, textarea:hover {
      border-color: #c9b89d;
      background: var(--cream);
    }
    textarea { min-height: 100px; resize: vertical; }
    input:focus, select:focus, textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(217, 119, 6, .15);
    }
    .password-control {
      position: relative;
      display: flex;
      align-items: center;
    }
    .password-control input {
      width: 100%;
      padding-right: 58px;
    }
    .password-toggle {
      position: absolute;
      right: 8px;
      width: 38px;
      height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #d7d2c7;
      border-radius: 8px;
      background: #fff;
      color: #111;
      font-size: 0;
      line-height: 1;
      box-shadow: none;
    }
    .password-toggle::before {
      content: "👁";
      font-size: 18px;
    }
    .password-toggle[aria-pressed="true"]::before {
      content: "✕";
      font-size: 16px;
    }
    .password-toggle:hover {
      border-color: var(--accent);
      transform: none;
      box-shadow: none;
    }
    .actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
      margin-top: 14px;
    }
    .btn {
      border: 1px solid transparent;
      background: linear-gradient(135deg, #111, #2b2117 55%, #3b1606);
      color: #fff;
      border-radius: 8px;
      padding: 11px 14px;
      font-weight: 800;
      min-height: 44px;
      box-shadow: 0 10px 22px rgba(17,17,17,.12);
      transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    }
    .btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 14px 26px rgba(17,17,17,.18);
    }
    .btn.secondary {
      background: #fff;
      color: var(--ink);
      border-color: var(--line);
      box-shadow: none;
    }
    .btn.secondary:hover {
      border-color: rgba(245, 158, 11, .48);
      background: #fffaf0;
    }
    .btn.danger { background: var(--bad); }
    .list {
      display: grid;
      gap: 12px;
    }
    .request-card {
      padding: 15px;
      display: grid;
      gap: 10px;
    }
    .message-thread {
      display: grid;
      gap: 10px;
      max-height: 420px;
      overflow: auto;
      padding-right: 6px;
    }
    #messages select,
    #messages textarea,
    #messages input,
    #messageRequestSelect,
    #shopMessageText,
    #reminderRequestSelect,
    #reminderType,
    #reminderPreview {
      background: #fff !important;
      color: #111 !important;
      -webkit-text-fill-color: #111;
      border-color: #d7d2c7 !important;
    }
    #shopMessageText,
    #shopMessageText.form-control,
    #shopMessageText:focus,
    #messages textarea,
    #messages textarea.form-control,
    #messages textarea:focus {
      background-color: #fff !important;
      color: #000 !important;
      -webkit-text-fill-color: #000 !important;
      caret-color: #000 !important;
    }
    #shopMessageText::selection,
    #messages textarea::selection {
      background: #fbbf24;
      color: #000;
      -webkit-text-fill-color: #000;
    }
    #messages select option,
    #messageRequestSelect option,
    #reminderRequestSelect option,
    #reminderType option {
      background: #fff;
      color: #111;
    }
    #messages textarea::placeholder,
    #shopMessageText::placeholder,
    #reminderPreview::placeholder {
      color: #555 !important;
      opacity: 1;
      -webkit-text-fill-color: #555;
    }
    .bubble {
      max-width: 76%;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 10px 12px;
      background: #fff;
      color: #000;
      line-height: 1.45;
    }
    .bubble.shop {
      justify-self: end;
      background: #111;
      color: #fff;
      border-color: #111;
    }
    .bubble small {
      display: block;
      margin-top: 6px;
      opacity: .72;
      font-size: 11px;
    }
    .request-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
      min-width: 0;
    }
    .request-head h3 {
      margin: 0;
      font-size: 17px;
    }
    .muted { color: var(--muted); font-size: 13px; }
    p, h1, h2, h3, .muted, .request-card, .mini-card, td, th {
      overflow-wrap: anywhere;
    }
    .pill {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 6px 9px;
      font-size: 12px;
      font-weight: 800;
      background: var(--accent-soft);
      color: #7c3f00;
      white-space: nowrap;
      border: 1px solid rgba(245, 158, 11, .22);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
    }
    .pill.good { background: #dcfce7; color: var(--good); }
    .pill.warn { background: #fef3c7; color: var(--warn); }
    .pill.bad { background: #fee2e2; color: var(--bad); }
    .split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    .quote-preview {
      white-space: pre-wrap;
      background: #111;
      color: #f8f8f2;
      padding: 16px;
      border-radius: 8px;
      min-height: 260px;
      overflow: auto;
      border: 1px solid rgba(245, 158, 11, .24);
    }
    .quote-ai-panel {
      margin-top: 16px;
      padding: 16px;
      border: 1px solid rgba(245, 158, 11, .30);
      border-radius: 18px;
      background: linear-gradient(135deg, rgba(245, 158, 11, .10), rgba(126, 34, 206, .08));
    }
    .quote-ai-panel h3 {
      margin: 0 0 6px;
      font-size: 1.15rem;
    }
    .quote-ai-warning {
      margin-top: 12px;
      padding: 12px 14px;
      border-left: 4px solid var(--accent);
      border-radius: 12px;
      background: rgba(245, 158, 11, .10);
      color: var(--text);
      font-weight: 700;
    }
    .empty {
      color: var(--muted);
      border: 1px dashed var(--line);
      border-radius: 8px;
      padding: 18px;
      background: #fff;
    }
    .task-row {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 10px;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
    }
    .task-row:last-child { border-bottom: 0; }
    .board {
      display: grid;
      grid-template-columns: repeat(5, minmax(180px, 1fr));
      gap: 12px;
      overflow-x: auto;
      padding-bottom: 6px;
    }
    .lane {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fafaf8;
      padding: 12px;
      min-height: 260px;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
    }
    .lane h3 {
      margin: 0 0 10px;
      font-size: 14px;
      text-transform: uppercase;
      color: #4a463f;
    }
    .board .lane,
    .board .lane h3,
    .board .mini-card,
    .board .mini-card * {
      color: #111 !important;
    }
    .board .lane ::selection,
    .board .mini-card ::selection {
      background: rgba(245, 158, 11, .28);
      color: #111;
    }
    .mini-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 11px;
      margin-bottom: 10px;
      display: grid;
      gap: 8px;
      box-shadow: 0 10px 24px rgba(17,17,17,.05);
    }
    .mini-card strong { font-size: 14px; }
    .compact-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }
    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }
    .month {
      background: linear-gradient(180deg, #fff, #fffaf2);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 14px;
      min-height: 320px;
      box-shadow: 0 18px 42px rgba(42, 28, 14, .08);
    }
    .month h3 {
      margin: 0 0 12px;
      font-size: 18px;
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: center;
    }
    .month-count {
      font-size: 12px;
      color: #9a3412;
      background: #fff3d2;
      border: 1px solid #fed7aa;
      border-radius: 999px;
      padding: 5px 8px;
      white-space: nowrap;
    }
    .weekday-row,
    .month-days {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 5px;
    }
    .weekday {
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      text-align: center;
      text-transform: uppercase;
    }
    .day-cell {
      min-height: 58px;
      border: 1px solid rgba(116, 91, 60, .14);
      border-radius: 12px;
      background: rgba(255,255,255,.72);
      padding: 5px;
      display: grid;
      align-content: start;
      gap: 4px;
      overflow: hidden;
      cursor: pointer;
    }
    .day-cell:not(.blank):hover {
      border-color: rgba(245, 158, 11, .62);
      box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .18);
    }
    .day-cell.blank {
      background: transparent;
      border-color: transparent;
      cursor: default;
    }
    .day-cell.today {
      border-color: rgba(245, 158, 11, .78);
      box-shadow: inset 0 0 0 2px rgba(245, 158, 11, .16);
    }
    .day-number {
      font-size: 12px;
      font-weight: 900;
      color: #292524;
    }
    .day-event {
      display: block;
      width: 100%;
      border-radius: 8px;
      padding: 3px 5px;
      font-size: 10px;
      font: inherit;
      line-height: 1.2;
      color: #1c1917;
      background: #fff3d2;
      border: 1px solid #fed7aa;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      cursor: pointer;
      text-align: left;
    }
    .day-event.rdv {
      background: #ede9fe;
      border-color: #c4b5fd;
    }
    .day-event.free {
      background: #ecfdf5;
      border-color: #bbf7d0;
    }
    .day-event.request {
      background: #fff7ed;
      border-color: #fed7aa;
    }
    .day-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 4px;
      margin-top: 3px;
    }
    .day-action {
      border: 1px solid rgba(116, 91, 60, .18);
      border-radius: 7px;
      background: rgba(255,255,255,.88);
      color: #292524;
      font-size: 9px;
      font-weight: 900;
      padding: 3px 4px;
      cursor: pointer;
    }
    .day-action.delete {
      background: #fef2f2;
      border-color: #fecaca;
      color: #991b1b;
    }
    .slot {
      border: 1px solid #e7e2d8;
      background: #fffaf0;
      border-radius: 8px;
      padding: 8px;
      font-size: 12px;
      margin-bottom: 6px;
    }
    .table-wrap { overflow-x: auto; }
    .plan-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }
    .plan-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 18px;
      box-shadow: var(--shadow);
      display: grid;
      gap: 12px;
    }
    .plan-card.active-plan {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(245, 158, 11, .18), var(--tattoo-shadow);
    }
    .plan-price {
      font-size: 28px;
      font-weight: 900;
    }
    .feature-list {
      display: grid;
      gap: 8px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }
    table {
      width: 100%;
      min-width: 720px;
      border-collapse: collapse;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 10px 28px rgba(23, 23, 23, .05);
    }
    th, td {
      text-align: left;
      border-bottom: 1px solid var(--line);
      padding: 10px;
      font-size: 13px;
      vertical-align: top;
    }
    th { background: #f3f0e8; }
    tbody tr:hover td { background: #fffaf0; }
    tr:last-child td { border-bottom: 0; }
    .quick-toolbar {
      position: fixed;
      left: 50%;
      bottom: 18px;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      align-items: center;
      background: rgba(255, 255, 255, .92);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 10px;
      box-shadow: var(--shadow);
      z-index: 18;
      backdrop-filter: blur(12px);
      background: rgba(255, 252, 244, .94);
    }
    .quick-toolbar .btn {
      border-radius: 999px;
      min-width: 112px;
      padding: 11px 16px;
    }
    .toast {
      position: fixed;
      right: 18px;
      bottom: 18px;
      background: #111;
      color: #fff;
      border-radius: 8px;
      padding: 12px 14px;
      box-shadow: var(--shadow);
      opacity: 0;
      transform: translateY(10px);
      transition: .2s ease;
      pointer-events: none;
      z-index: 20;
    }
    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 900px) {
      .app { grid-template-columns: 1fr; }
      .sidebar {
        position: static;
        height: auto;
        max-height: none;
        padding: 18px;
      }
      .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .grid,
      .about-grid,
      .plan-grid,
      .split,
      .form-grid,
      .compact-grid { grid-template-columns: 1fr; }
      .about-hero-title { font-size: 30px; }
      .topbar { align-items: flex-start; flex-direction: column; }
      .brand-lockup { grid-template-columns: 64px 1fr; }
      .brand-logo { width: 64px; height: 64px; }
      .content { padding: 18px 14px 96px; }
      .panel { padding: 16px; }
      .actions .btn,
      .actions button,
      .actions a { flex: 1 1 180px; justify-content: center; text-align: center; }
      .board { grid-template-columns: repeat(5, minmax(220px, 86vw)); }
      .calendar-grid { grid-template-columns: repeat(12, minmax(210px, 86vw)); }
      .quick-toolbar {
        left: 12px;
        right: 12px;
        bottom: 12px;
        transform: none;
        justify-content: center;
      }
      .quick-toolbar .btn {
        min-width: 0;
        flex: 1;
      }
    }
    @media (min-width: 901px) and (max-width: 1180px) {
      .app { grid-template-columns: 220px 1fr; }
      .sidebar { padding: 18px; }
      .brand-lockup { grid-template-columns: 64px 1fr; }
      .brand-logo { width: 64px; height: 64px; }
      .brand { font-size: 28px; }
      .grid,
      .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .about-grid,
      .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .split { grid-template-columns: 1fr; }
    }
    @media (max-width: 560px) {
      .sidebar { padding: 16px 12px; }
      .brand-lockup { grid-template-columns: 60px 1fr; }
      .brand-logo { width: 60px; height: 60px; }
      .brand { font-size: 28px; }
      .tagline { margin-bottom: 16px; }
      .nav { grid-template-columns: 1fr; gap: 6px; }
      .nav button,
      .nav a { padding: 11px 12px; }
      .topbar { padding: 16px 14px; }
      .topbar h1 { font-size: 22px; }
      .topbar .actions { width: 100%; }
      .topbar .actions .btn { flex-basis: 100%; }
      .content { padding: 14px 10px 96px; }
      .panel { padding: 14px; }
      .stat strong,
      .plan-price { font-size: 24px; }
      .about-hero-title { font-size: 26px; }
      .request-head { display: grid; }
      .bubble { max-width: 94%; }
      .task-row { grid-template-columns: auto 1fr; }
      .task-row .btn { grid-column: 1 / -1; }
    }
    /* Inkly tattoo premium interface */
    body {
      font-family: Inter, Arial, Helvetica, sans-serif;
      background:
        radial-gradient(circle at 8% 0%, rgba(124, 58, 237, .18), transparent 30%),
        radial-gradient(circle at 92% 12%, rgba(245, 158, 11, .22), transparent 30%),
        linear-gradient(135deg, #fffaf2 0%, #f3eadb 48%, #efe3d0 100%);
    }
    .app { grid-template-columns: 310px 1fr; }
    .sidebar {
      padding: 30px 24px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.05), transparent 18%),
        radial-gradient(circle at 45% 6%, rgba(245, 158, 11, .22), transparent 26%),
        radial-gradient(circle at 76% 0%, rgba(219, 39, 119, .18), transparent 22%),
        #070707;
      border-right: 1px solid rgba(245, 158, 11, .34);
    }
    .brand-lockup {
      grid-template-columns: 132px 1fr;
      gap: 16px;
      padding: 14px;
      margin-bottom: 18px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 22px;
      background: rgba(255,255,255,.045);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 44px rgba(0,0,0,.24);
    }
    .brand-logo {
      width: 132px;
      height: 132px;
      border-radius: 24px;
      border: 1px solid rgba(255,255,255,.2);
      box-shadow: 0 18px 38px rgba(0,0,0,.44), 0 0 0 5px rgba(245,158,11,.12), 0 0 46px rgba(219,39,119,.24);
    }
    .brand {
      font-size: 42px;
      line-height: .95;
      text-shadow: 0 10px 28px rgba(0,0,0,.34);
    }
    .tagline {
      color: #d6c9b8;
      font-size: 14px;
      margin: 0 4px 24px;
    }
    .nav { gap: 10px; }
    .nav button,
    .nav a {
      border-radius: 16px;
      min-height: 50px;
      padding: 14px 15px;
      color: #f8f1e8;
      background: rgba(255,255,255,.035);
      border-color: rgba(255,255,255,.075);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    }
    .nav button:hover,
    .nav button.active,
    .nav a:hover {
      background: linear-gradient(90deg, rgba(245,158,11,.24), rgba(124,58,237,.16));
      border-color: rgba(245,158,11,.42);
      box-shadow: inset 4px 0 0 var(--accent), 0 12px 24px rgba(0,0,0,.18);
    }
    .mobile-menu-toggle {
      display: none;
    }
    .topbar {
      padding: 22px 32px;
      background: rgba(255, 250, 242, .86);
      border-bottom-color: rgba(116, 91, 60, .18);
    }
    .topbar h1 {
      font-size: clamp(28px, 4vw, 44px);
      letter-spacing: 0;
    }
    .content {
      padding: 32px;
      gap: 24px;
    }
    .panel,
    .stat,
    .request-card,
    .plan-card,
    .mini-card,
    .lane,
    .month {
      border-radius: 18px;
      border-color: rgba(116, 91, 60, .18);
      box-shadow: 0 22px 60px rgba(42, 28, 14, .1);
    }
    .panel {
      padding: 26px;
      background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,252,246,.94));
    }
    .panel::before {
      height: 5px;
      background: linear-gradient(90deg, #ff9800, #ef4444, #db2777, #7c3aed, #ff9800);
    }
    .panel h2 { font-size: 24px; }
    .btn {
      border-radius: 14px;
      min-height: 48px;
      background: linear-gradient(135deg, #0b0b0b, #24140b 46%, #8a2c06 100%);
    }
    .btn.secondary {
      background: rgba(255,255,255,.86);
      border-color: rgba(116, 91, 60, .18);
    }
    input, select, textarea {
      border-radius: 14px;
      min-height: 48px;
    }
    .inkly-hero-logo {
      width: min(360px, 62vw);
      aspect-ratio: 1;
      object-fit: cover;
      border-radius: 36px;
      display: block;
      margin: 0 auto 24px;
      border: 1px solid rgba(255,255,255,.2);
      box-shadow: 0 30px 80px rgba(0,0,0,.34), 0 0 0 8px rgba(245,158,11,.12), 0 0 70px rgba(124,58,237,.22);
      background: #000;
    }
    .flash-image {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      border-radius: 16px;
      border: 1px solid rgba(116, 91, 60, .18);
      background: #111;
      margin-bottom: 14px;
      box-shadow: 0 16px 34px rgba(42, 28, 14, .12);
    }
    .flash-image.empty {
      display: grid;
      place-items: center;
      color: #d6c9b8;
      min-height: 180px;
      background:
        radial-gradient(circle at 22% 12%, rgba(124,58,237,.22), transparent 34%),
        radial-gradient(circle at 86% 16%, rgba(245,158,11,.22), transparent 30%),
        #111;
    }
    .about-hero-title { font-size: clamp(36px, 6vw, 64px); }
    @media (max-width: 900px) {
      .app { grid-template-columns: 1fr; }
      .sidebar { padding: 20px 14px; }
      .brand-lockup { grid-template-columns: 96px 1fr; border-radius: 20px; }
      .brand-logo { width: 96px; height: 96px; border-radius: 22px; }
      .brand { font-size: 36px; }
      .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .content { padding: 18px 14px 96px; }
      .panel { padding: 18px; }
    }
    @media (max-width: 560px) {
      .brand-lockup { grid-template-columns: 82px 1fr; padding: 12px; }
      .brand-logo { width: 82px; height: 82px; border-radius: 20px; }
      .brand { font-size: 32px; }
      .nav { grid-template-columns: 1fr; }
      .nav button, .nav a { min-height: 48px; }
      .topbar { padding: 16px 14px; }
      .content { padding: 14px 10px 96px; }
      .inkly-hero-logo { width: min(280px, 78vw); border-radius: 28px; }
    }
    @media (max-width: 1180px) {
      .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
      .day-cell { min-height: 54px; }
    }
    @media (max-width: 720px) {
      .calendar-grid { grid-template-columns: 1fr; overflow: visible; }
      .month { min-height: auto; padding: 12px; }
      .month h3 { font-size: 16px; }
      .weekday-row,
      .month-days { gap: 4px; }
      .day-cell { min-height: 50px; border-radius: 10px; padding: 4px; }
      .day-event { font-size: 9px; padding: 2px 4px; }
    }

    body[data-bs-theme="dark"] {
      --paper: #070707;
      --panel: #141414;
      --line: rgba(255,255,255,.14);
      --muted: #c9c2b8;
      color: #fff;
      background:
        radial-gradient(circle at 20% 8%, rgba(124, 58, 237, .22), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(245, 158, 11, .18), transparent 28%),
        #070707;
    }
    .skip-link {
      position: fixed;
      left: 16px;
      top: 12px;
      z-index: 999;
      transform: translateY(-140%);
      background: #f59e0b;
      color: #111;
      border-radius: 999px;
      padding: 10px 14px;
      font-weight: 900;
      text-decoration: none;
    }
    .skip-link:focus { transform: translateY(0); outline: 3px solid #fff; }
    :focus-visible {
      outline: 3px solid #fbbf24;
      outline-offset: 3px;
      border-radius: 8px;
    }
    .app { background: transparent; }
    .sidebar {
      background:
        linear-gradient(180deg, rgba(17,17,17,.98), rgba(3,3,3,.98)),
        #080808;
      border-right: 1px solid rgba(255,255,255,.12);
    }
    .brand-lockup {
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 22px;
      padding: 14px;
    }
    .tagline,
    .muted,
    .feature-list { color: #d8d0c4 !important; }
    .nav button,
    .nav a {
      color: #f8fafc;
      background: rgba(255,255,255,.05);
      border: 1px solid transparent;
    }
    .nav button:hover,
    .nav a:hover,
    .nav button.active {
      color: #111;
      background: linear-gradient(135deg, #f59e0b, #f97316);
      border-color: rgba(255,255,255,.22);
    }
    .nav button.locked {
      opacity: .62;
      color: #b8b8c4;
    }
    main { background: transparent; }
    .site-header {
      position: sticky;
      top: 0;
      z-index: 15;
      padding: 18px 34px;
      background: rgba(7, 7, 7, .88);
      border-bottom: 1px solid rgba(255,255,255,.12);
      backdrop-filter: blur(16px);
    }
    .site-header-logo {
      width: 58px;
      height: 58px;
      border-radius: 16px;
      object-fit: cover;
      border: 1px solid rgba(255,255,255,.16);
      box-shadow: 0 12px 34px rgba(0,0,0,.45);
    }
    .navbar-brand strong {
      display: block;
      color: #fff;
      font-size: 24px;
      line-height: 1;
    }
    .navbar-brand small {
      display: block;
      color: #c9c2b8;
      font-size: 13px;
      margin-top: 5px;
    }
    .topbar {
      background: rgba(14,14,14,.92);
      color: #fff;
      border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .topbar p { color: #d8d0c4; }
    .content { background: transparent; }
    .panel,
    .mini-card,
    .plan-card,
    .request-card,
    .month,
    .artist-card,
    .flash-card {
      background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
      color: #fff;
      border: 1px solid rgba(255,255,255,.14);
      box-shadow: 0 24px 80px rgba(0,0,0,.32);
    }
    input,
    select,
    textarea,
    .form-control,
    .form-select {
      background-color: rgba(255,255,255,.95) !important;
      color: #111 !important;
      border-color: rgba(255,255,255,.28) !important;
    }
    .form-label,
    label { color: #fff; }
    table,
    .table {
      --bs-table-bg: #111;
      --bs-table-color: #fff;
      --bs-table-striped-bg: #181818;
      --bs-table-striped-color: #fff;
      --bs-table-hover-bg: #252525;
      --bs-table-hover-color: #fff;
      border-color: rgba(255,255,255,.16);
    }
    th { background: #1d1d1d; color: #fff; }
    .home-hero {
      border-radius: 28px;
      background:
        radial-gradient(circle at 78% 12%, rgba(245, 158, 11, .18), transparent 28%),
        linear-gradient(135deg, rgba(12,12,12,.98), rgba(28,18,12,.94));
    }
    .fw-black { font-weight: 950; }
    .home-hero .lead {
      max-width: 780px;
      line-height: 1.7;
    }
    .home-hero-media {
      min-height: 420px;
      display: grid;
      place-items: center;
      background:
        radial-gradient(circle at center, rgba(245,158,11,.2), transparent 36%),
        #050505;
    }
    .home-hero-media img {
      width: min(420px, 82%);
      border-radius: 34px;
      border: 1px solid rgba(255,255,255,.16);
      box-shadow: 0 30px 90px rgba(0,0,0,.55);
    }
    .golden-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }
    .golden-grid article {
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 18px;
      padding: 16px;
    }
    .golden-grid strong,
    .eyebrow {
      color: #fbbf24;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: 0;
      font-size: 13px;
    }
    .golden-grid p {
      color: #e7dfd5;
      margin: 8px 0 0;
      line-height: 1.45;
    }
    .home-section {
      margin-top: 28px;
      padding: 28px;
      border-radius: 28px;
      background: rgba(255,255,255,.035);
      border: 1px solid rgba(255,255,255,.1);
    }
    .section-heading {
      max-width: 860px;
      margin-bottom: 22px;
    }
    .section-heading h2,
    .client-band h2 {
      font-size: clamp(30px, 4vw, 46px);
      font-weight: 950;
      line-height: 1.08;
    }
    .section-heading p,
    .client-band p {
      color: #ded7cc;
      font-size: 17px;
      line-height: 1.65;
    }
    .client-band {
      background:
        radial-gradient(circle at 92% 20%, rgba(124,58,237,.22), transparent 30%),
        rgba(255,255,255,.04);
    }
    .accessible-list {
      color: #ece7df;
      padding-left: 1.2rem;
      line-height: 1.7;
    }
    .site-footer {
      margin-top: 36px;
      padding: 28px;
      border-top: 1px solid rgba(255,255,255,.12);
      display: flex;
      justify-content: space-between;
      gap: 24px;
      align-items: flex-start;
      color: #d8d0c4;
    }
    .site-footer strong { color: #fff; font-size: 22px; }
    .site-footer p { margin: 6px 0 0; max-width: 380px; }
    .site-footer nav {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-end;
    }
    .footer-link {
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.04);
      color: #fff;
      border-radius: 999px;
      padding: 9px 12px;
      text-decoration: none;
      font-weight: 800;
    }
    .footer-link:hover,
    .footer-link:focus-visible {
      color: #111;
      background: #f59e0b;
    }
    .quick-toolbar {
      background: rgba(10,10,10,.9);
      border-color: rgba(255,255,255,.14);
    }
    @media (max-width: 900px) {
      .site-header { padding: 14px; }
      .site-header .container-fluid,
      .site-footer {
        flex-direction: column;
        align-items: stretch;
      }
      .site-header-actions .btn,
      .site-header-actions a { flex: 1 1 180px; }
      .golden-grid { grid-template-columns: 1fr; }
      .home-section { padding: 20px; }
      .home-hero-media { min-height: 280px; }
      .site-footer nav { justify-content: flex-start; }
    }

    /* Mobile navigation and readability pass */
    @media (max-width: 900px) {
      body { overflow-x: hidden; }
      .app { display: block; min-width: 0; }
      .sidebar {
        position: sticky;
        top: 0;
        z-index: 40;
        max-height: 46vh;
        overflow: auto;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.14);
        scrollbar-width: thin;
      }
      .brand-lockup {
        grid-template-columns: 58px 1fr;
        gap: 10px;
        margin-bottom: 10px;
        padding: 10px;
      }
      .brand-logo {
        width: 58px;
        height: 58px;
        border-radius: 16px;
      }
      .brand {
        font-size: 28px;
        line-height: 1;
      }
      .tagline {
        font-size: 12px;
        margin: 4px 0 0;
        line-height: 1.3;
      }
      .nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }
      .nav button,
      .nav a {
        min-height: 44px;
        padding: 10px;
        border-radius: 12px;
        font-size: 13px;
        line-height: 1.2;
        text-align: center;
        justify-content: center;
      }
      .site-header {
        position: static;
        padding: 12px;
      }
      .site-header .container-fluid {
        gap: 12px;
      }
      .site-header-logo {
        width: 44px;
        height: 44px;
        border-radius: 12px;
      }
      .navbar-brand {
        width: 100%;
        margin: 0;
      }
      .navbar-brand strong { font-size: 20px; }
      .navbar-brand small { font-size: 12px; }
      .site-header-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100%;
      }
      .site-header-actions .btn,
      .site-header-actions a {
        min-height: 42px;
        padding: 9px 10px;
        font-size: 13px;
      }
      .site-header-actions .btn:last-child,
      .site-header-actions a:last-child {
        grid-column: 1 / -1;
      }
      .page-heading {
        padding: 14px 12px;
      }
      .page-heading h1 {
        font-size: 24px;
        line-height: 1.1;
      }
      .page-heading p {
        font-size: 14px;
        line-height: 1.45;
      }
      .content {
        padding: 14px 10px 92px;
      }
      .home-hero {
        border-radius: 20px;
      }
      .home-hero .display-5 {
        font-size: 32px;
        line-height: 1.08;
      }
      .home-hero .lead {
        font-size: 16px;
        line-height: 1.55;
      }
      .home-hero .p-4,
      .home-hero .p-md-5 {
        padding: 22px !important;
      }
      .home-hero-media {
        min-height: 220px;
        padding: 20px;
      }
      .home-hero-media img {
        width: min(230px, 72vw);
        border-radius: 24px;
      }
      .home-section {
        padding: 18px;
        border-radius: 20px;
        margin-top: 18px;
      }
      .section-heading h2,
      .client-band h2 {
        font-size: 28px;
      }
      .section-heading p,
      .client-band p {
        font-size: 15px;
        line-height: 1.55;
      }
      .panel,
      .request-card,
      .plan-card,
      .mini-card,
      .month {
        border-radius: 16px;
        padding: 16px;
      }
      .panel h2 { font-size: 21px; }
      .grid,
      .about-grid,
      .plan-grid,
      .split,
      .form-grid,
      .compact-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
      }
      .board {
        grid-template-columns: 1fr !important;
        overflow: visible;
      }
      .table-wrap {
        margin-inline: -6px;
        padding-inline: 6px;
      }
      table,
      .table {
        min-width: 640px;
        font-size: 13px;
      }
      .actions {
        gap: 8px;
      }
      .actions .btn,
      .actions button,
      .actions a,
      .btn {
        min-height: 44px;
        width: auto;
      }
      input,
      select,
      textarea,
      .form-control,
      .form-select {
        min-height: 46px;
        font-size: 16px !important;
      }
      .site-footer {
        margin-top: 24px;
        padding: 20px 10px 80px;
      }
      .site-footer nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
      }
      .footer-link {
        text-align: center;
        font-size: 13px;
      }
      .quick-toolbar {
        left: 10px;
        right: 10px;
        bottom: 10px;
        transform: none;
        padding: 8px;
        gap: 8px;
      }
      .quick-toolbar .btn {
        min-height: 42px;
        font-size: 13px;
      }
      .toast {
        left: 10px;
        right: 10px;
        bottom: 78px;
      }
    }

    @media (max-width: 430px) {
      .sidebar { max-height: 52vh; }
      .nav { grid-template-columns: 1fr; }
      .site-header-actions { grid-template-columns: 1fr; }
      .site-header-actions .btn:last-child,
      .site-header-actions a:last-child { grid-column: auto; }
      .home-hero .display-5 { font-size: 28px; }
      .section-heading h2,
      .client-band h2 { font-size: 24px; }
      .site-footer nav { grid-template-columns: 1fr; }
    }

    /* Compact mobile browser menu */
    @media (max-width: 900px) {
      .sidebar {
        max-height: none;
        overflow: visible;
        padding: 8px 10px;
      }
      .brand-lockup {
        grid-template-columns: 44px 1fr;
        min-height: 58px;
        margin-bottom: 8px;
        padding: 8px;
        border-radius: 16px;
      }
      .brand-logo {
        width: 44px;
        height: 44px;
        border-radius: 12px;
      }
      .brand {
        font-size: 25px;
      }
      .tagline {
        display: -webkit-box;
        line-clamp: 1;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 11px;
        margin: 2px 0 0;
      }
      .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 42px;
        margin: 0;
        padding: 9px 14px;
        border: 1px solid rgba(245, 158, 11, .38);
        border-radius: 999px;
        color: #111;
        background: linear-gradient(135deg, #f59e0b, #f97316);
        font-weight: 950;
      }
      .mobile-menu-toggle::after {
        content: "ouvrir";
        font-size: 11px;
        text-transform: uppercase;
      }
      .mobile-menu-toggle[aria-expanded="true"]::after {
        content: "fermer";
      }
      .nav {
        display: none;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px 0 2px;
      }
      .nav.open {
        display: grid;
      }
      .nav button,
      .nav a {
        width: 100%;
        min-height: 40px;
        min-width: 0;
        padding: 9px 12px;
        border-radius: 14px;
        font-size: 13px;
        white-space: nowrap;
      }
      .site-header {
        padding: 8px 10px;
      }
      .site-header .container-fluid {
        gap: 8px;
      }
      .site-header-logo {
        width: 38px;
        height: 38px;
      }
      .navbar-brand strong {
        font-size: 18px;
      }
      .navbar-brand small {
        font-size: 11px;
      }
      .site-header-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px !important;
      }
      .site-header-actions .btn,
      .site-header-actions a {
        min-height: 36px;
        padding: 7px 8px;
        border-radius: 999px;
        font-size: 12px;
      }
      .site-header-actions .btn:last-child,
      .site-header-actions a:last-child {
        grid-column: auto;
      }
      .page-heading {
        padding: 10px;
      }
      .page-heading h1 {
        font-size: 21px;
      }
      .page-heading p {
        font-size: 12px;
        margin: 4px 0 0;
      }
    }

    @media (max-width: 430px) {
      .site-header-actions {
        grid-template-columns: 1fr;
      }
      .site-header-actions .btn,
      .site-header-actions a {
        min-height: 34px;
      }
    }

/* Final Inkly readability shield.
   Prevent Bootstrap dark theme or selected rows from creating unreadable black data blocks. */
body[data-bs-theme="dark"] {
  --bs-body-color: #111827 !important;
  --bs-body-bg: #ffffff !important;
  --bs-table-color: #111827 !important;
  --bs-table-bg: #ffffff !important;
  --bs-table-striped-color: #111827 !important;
  --bs-table-striped-bg: #f8fafc !important;
  --bs-table-hover-color: #111827 !important;
  --bs-table-hover-bg: #f8fafc !important;
  --bs-table-active-color: #111827 !important;
  --bs-table-active-bg: #f8fafc !important;
}

main table,
main thead,
main tbody,
main tfoot,
main tr,
main th,
main td,
.content table,
.content thead,
.content tbody,
.content tfoot,
.content tr,
.content th,
.content td,
.table-wrap table,
.table-wrap thead,
.table-wrap tbody,
.table-wrap tfoot,
.table-wrap tr,
.table-wrap th,
.table-wrap td,
.table > :not(caption) > * > * {
  --bs-table-color: #111827 !important;
  --bs-table-bg: #ffffff !important;
  --bs-table-striped-color: #111827 !important;
  --bs-table-striped-bg: #f8fafc !important;
  --bs-table-hover-color: #111827 !important;
  --bs-table-hover-bg: #f8fafc !important;
  --bs-table-active-color: #111827 !important;
  --bs-table-active-bg: #f8fafc !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  text-shadow: none !important;
}

main tbody tr:nth-child(odd),
main tbody tr:nth-child(even),
main tbody tr:hover,
main tbody tr:focus,
main tbody tr:focus-within,
main tbody tr.active,
main tbody tr.selected,
main tbody tr[aria-selected="true"],
.content tbody tr:nth-child(odd),
.content tbody tr:nth-child(even),
.content tbody tr:hover,
.content tbody tr:focus,
.content tbody tr:focus-within,
.content tbody tr.active,
.content tbody tr.selected,
.content tbody tr[aria-selected="true"],
.table-wrap tbody tr:nth-child(odd),
.table-wrap tbody tr:nth-child(even),
.table-wrap tbody tr:hover,
.table-wrap tbody tr:focus,
.table-wrap tbody tr:focus-within,
.table-wrap tbody tr.active,
.table-wrap tbody tr.selected,
.table-wrap tbody tr[aria-selected="true"] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

main tbody tr:hover td,
main tbody tr:focus td,
main tbody tr:focus-within td,
main tbody tr.active td,
main tbody tr.selected td,
main tbody tr[aria-selected="true"] td,
.content tbody tr:hover td,
.content tbody tr:focus td,
.content tbody tr:focus-within td,
.content tbody tr.active td,
.content tbody tr.selected td,
.content tbody tr[aria-selected="true"] td,
.table-wrap tbody tr:hover td,
.table-wrap tbody tr:focus td,
.table-wrap tbody tr:focus-within td,
.table-wrap tbody tr.active td,
.table-wrap tbody tr.selected td,
.table-wrap tbody tr[aria-selected="true"] td {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  background-image: none !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

main input,
main select,
main textarea,
main option,
.content input,
.content select,
.content textarea,
.content option {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  border-color: #d1d5db !important;
}

/* Inkly typography readability lock */
:root {
  --inkly-readable-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --inkly-readable-text: #111827;
  --inkly-readable-muted: #4b5563;
}

html {
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.dropdown-menu,
.toast {
  font-family: var(--inkly-readable-font) !important;
  letter-spacing: 0 !important;
}

body {
  font-size: 16px !important;
  line-height: 1.58 !important;
  font-weight: 450;
  color: var(--inkly-readable-text) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p,
li,
td,
th,
label,
input,
select,
textarea,
button,
.btn,
.muted,
.text-muted,
.hint,
.request-card,
.mini-card,
.inkly-card,
.panel {
  line-height: 1.55 !important;
}

p,
li,
td,
.request-card,
.mini-card,
.panel,
.card {
  font-size: 1rem !important;
}

.muted,
.text-muted,
.hint,
small,
.badge,
.pill,
.nav-group-title {
  font-size: .875rem !important;
  line-height: 1.45 !important;
}

label,
th,
.nav button,
.nav a,
.footer-link,
.btn {
  font-size: .95rem !important;
  font-weight: 750 !important;
}

input,
select,
textarea,
.form-control,
.form-select {
  min-height: 46px;
  font-size: 1rem !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.navbar-brand strong {
  font-family: var(--inkly-readable-font) !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

h1,
.page-heading h1 {
  font-size: clamp(1.85rem, 3vw, 2.8rem) !important;
}

h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.35rem) !important;
}

h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem) !important;
}

a,
button,
.btn {
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

@media (max-width: 560px) {
  body {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .muted,
  .text-muted,
  .hint,
  small,
  .badge,
  .pill {
    font-size: .86rem !important;
  }

  .btn,
  button,
  input,
  select,
  textarea {
    font-size: 1rem !important;
  }
}

