
      /* Painel master */
      #masterScreen.page { background:linear-gradient(145deg,#eaf1f3 0%,#f7f9fa 48%,#edf3f5 100%); }
      #masterScreen .master-shell { padding-right:22px; }
      .master-sidebar { border:1px solid rgba(255,255,255,.06);box-shadow:0 18px 42px rgba(6,27,51,.18); }
      .master-sidebar-brand { min-height:150px;padding:2px 0 28px;overflow:hidden; }
      .master-sidebar-brand img { width:145%;max-width:340px;max-height:145px;transform:scale(1.07); }
      .master-sidebar-nav { gap:8px;margin-top:24px; }
      .master-sidebar-nav button,.master-sidebar-exit { min-height:54px;border-radius:13px;font-size:15px; }
      .master-sidebar-nav button span.nav-icon,.master-sidebar-exit span.nav-icon { width:25px;height:25px;display:grid;place-items:center;flex:0 0 25px; }
      .master-sidebar-nav .nav-icon svg,.master-sidebar-exit .nav-icon svg,.quick-action-icon svg { width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round; }
      .master-sidebar-nav button:hover { background:rgba(255,255,255,.08); }
      .master-sidebar-nav button.active { background:linear-gradient(135deg,#008f87,#00b4a5);box-shadow:0 8px 20px rgba(0,180,165,.16); }
      #masterScreen .master-topbar { min-height:136px;padding:26px 8px 20px; }
      .master-overview-button { background:var(--brand-navy);box-shadow:0 7px 18px rgba(14,30,47,.14); }
      .master-overview-button:hover { background:#173553; }
      .master-exit-button { border-color:#cbd8de;background:rgba(255,255,255,.72); }
      .master-system-status { border-color:#cce9e5;background:rgba(245,252,251,.88);box-shadow:none; }
      .master-system-status::after { display:none; }
      .master-hero { background:rgba(255,255,255,.88);box-shadow:var(--shadow-card); }
      .master-hero .btn-blue,.master-toolbar .btn-blue { background:var(--brand-navy); }
      .master-hero .btn-blue:hover,.master-toolbar .btn-blue:hover { background:#173553; }
      .master-client-toolbar { grid-template-columns:minmax(280px,1fr) auto; }
      #masterOverviewPanel > .master-summary { background:rgba(255,255,255,.88); }
      #masterOverviewPanel > .master-summary .summary-card { box-shadow:0 5px 18px rgba(14,30,47,.035); }
      .master-quick-actions { grid-template-columns:repeat(2,minmax(0,1fr));max-width:900px; }
      .master-quick-actions button { min-height:112px;background:rgba(255,255,255,.92);box-shadow:var(--shadow-card); }
      .quick-action-icon { color:var(--brand-navy);background:#edf3f6; }
      .master-directory-card { background:rgba(255,255,255,.94)!important;box-shadow:var(--shadow-card)!important; }
      #masterClientList .client-card { border-color:var(--line-soft);box-shadow:0 6px 20px rgba(14,30,47,.04); }
      #masterClientList .client-card:hover { border-color:#a7d8d2;box-shadow:0 12px 30px rgba(14,30,47,.08); }
      #masterEditor .editor-head { margin:0 0 12px;padding:18px 12px 14px;border-bottom:1px solid var(--line-soft); }
      #masterEditor .card { border-color:var(--line-soft);background:rgba(255,255,255,.96);box-shadow:var(--shadow-card); }
      .trial-request-card { padding:18px;border:1px solid var(--line-soft);border-radius:14px;background:#fff; }
      .trial-request-card + .trial-request-card { margin-top:12px; }
      .trial-request-head { display:flex;justify-content:space-between;gap:16px;align-items:flex-start; }
      .trial-request-meta { margin-top:8px;color:var(--muted);font-size:13px;line-height:1.6; }
      .trial-request-actions { display:flex;flex-wrap:wrap;gap:8px;margin-top:14px; }
      .master-client-tabs { display:flex;gap:8px;margin:0 0 14px;padding:5px;border:1px solid var(--line-soft);border-radius:13px;background:#f3f7f8; }
      .master-client-tabs button { flex:1;min-height:42px;padding:9px 14px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-weight:800; }
      .master-client-tabs button.active { background:#fff;color:var(--brand-navy);box-shadow:0 4px 14px rgba(14,30,47,.08); }
      .master-trial-toolbar { grid-template-columns:minmax(260px,1fr) minmax(190px,240px); }
      .master-trial-count { margin:-2px 0 12px;color:var(--muted); }
      .master-trial-client-list { display:grid;gap:10px; }
      .master-trial-client-card { display:block;padding:0;border:1px solid var(--line-soft);border-radius:14px;background:#fff;overflow:hidden; }
      .master-trial-client-card .master-client-toggle { grid-template-columns:minmax(230px,1.1fr) minmax(210px,.8fr) auto; }
      .master-trial-client-card .master-client-panel { padding:18px; }
      .master-trial-client-identity { display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0; }
      .master-trial-client-identity > span:first-child { display:grid;gap:5px;min-width:0;text-align:left; }
      .master-trial-client-identity strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--brand-navy);font-size:15px; }
      .master-trial-client-identity span:not(.badge) { color:var(--muted);font-size:12px;line-height:1.4; }
      .master-trial-onboarding { justify-self:start;padding:3px 7px;border-radius:999px;background:#fff4d8;color:#7c590b;font-size:10px;font-weight:800; }
      .master-trial-state { flex:0 0 auto; }
      .master-trial-state-active { background:#e7f8f2;color:#0b7558; }
      .master-trial-state-exhausted { background:#fff3d8;color:#8a5a00; }
      .master-trial-state-expired { background:#fde8e8;color:#a52a2a; }
      .master-trial-state-invite_pending { background:#edf3f6;color:#4d6170; }
      .master-trial-client-facts { display:grid;grid-template-columns:repeat(7,minmax(78px,1fr));gap:12px;margin:0; }
      .master-trial-client-facts div { min-width:0; }
      .master-trial-client-facts dt { margin-bottom:4px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase; }
      .master-trial-client-facts dd { margin:0;color:var(--brand-navy);font-size:13px;font-weight:700; }
      .master-trial-empty { padding:18px;border:1px dashed var(--line-soft);border-radius:12px;text-align:center; }
      .master-trial-history { margin-top:22px;padding-top:18px;border-top:1px solid var(--line-soft); }
      .master-trial-history summary { cursor:pointer;color:var(--brand-navy);font-size:14px;font-weight:800; }
      .master-trial-history-note { margin:10px 0 14px; }
      .master-settings-card { max-width:920px; }
      .master-ai-model-list { display:grid;gap:10px;margin-top:20px; }
      .master-ai-model-row { display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,300px);gap:20px;align-items:center;padding:14px 16px;border:1px solid var(--line-soft);border-radius:12px;background:#fff; }
      .master-ai-model-row > span { color:var(--brand-navy);font-weight:800; }
      .master-ai-model-row select { width:100%;min-height:44px; }
      .master-ai-module-card { border:1px solid var(--line-soft);border-radius:16px;padding:16px;background:#fff; }
      .master-ai-module-card + .master-ai-module-card { margin-top:12px; }
      .master-ai-module-card details { margin-top:12px;border-top:1px solid var(--line-soft);padding-top:12px; }
      .master-ai-module-card summary { cursor:pointer;color:#087f78;font-weight:800; }
      .master-ai-module-card textarea { width:100%;margin-top:6px;resize:vertical;font:13px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace; }
      .master-prompt-history { display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0; }
      .client-modules-list { display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px; }
      .master-settings-actions { display:flex;justify-content:flex-end;margin-top:20px; }
      .master-settings-actions .btn-blue { min-width:150px; }
      .master-editor-sidebar-nav button { min-height:50px; }
      .master-editor-nav-label { color:#72dcd3; }
      .master-professional-status { display:flex;flex-wrap:wrap;align-items:center;gap:7px; }
      .master-primary-badge { display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;background:#e4f8f4;color:#087f75;font-size:10px;font-weight:850;line-height:1; }
      @media (max-width:1180px) {
        .master-trial-client-card .master-client-toggle { grid-template-columns:minmax(0,1fr) auto; }
        .master-trial-client-card .master-client-usage-summary { display:none; }
        .master-trial-client-facts { grid-template-columns:repeat(4,minmax(0,1fr)); }
      }
      @media (max-width:760px) {
        .master-client-tabs { display:grid;grid-template-columns:1fr; }
        .master-trial-toolbar { grid-template-columns:1fr; }
        .master-trial-client-card .master-client-toggle { grid-template-columns:minmax(0,1fr) auto; }
        .master-trial-client-identity { display:grid; }
        .master-trial-client-identity .badge { justify-self:start; }
        .master-trial-client-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
        .master-ai-model-row { grid-template-columns:1fr;gap:8px; }
      }
