/* Settings, billing, tickets, and runtime tools */
.permission-preview-tester{
      display:grid;
      grid-template-columns:minmax(240px, 360px) auto;
      gap:10px;
      align-items:center;
      margin-bottom:14px;
    }

    .permission-preview-note{
      color:var(--muted);
      font-size:12px;
      line-height:1.5;
    }

    .permission-preview-card.is-match{
      border-color:rgba(34,197,94,.34);
      background:
        radial-gradient(circle at top right, rgba(34,197,94,.12), transparent 30%),
        linear-gradient(180deg, rgba(12,28,22,.94), rgba(9,18,20,.98));
      box-shadow:0 14px 34px rgba(6,26,18,.24);
    }

    .permission-preview-card.is-match .permission-preview-head strong{
      color:#dff8eb;
    }

    .permission-preview-card.is-missing{
      border-color:rgba(148,163,184,.16);
      background:linear-gradient(180deg, rgba(14,19,31,.9), rgba(9,13,22,.98));
      box-shadow:none;
      opacity:.88;
    }

    .permission-preview-card.is-missing .permission-preview-head strong{
      color:#d9e2f0;
    }

    .permission-chip-row{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-top:10px
    }

    .permission-chip{
      padding:7px 10px;
      border-radius:999px;
      border:1px solid rgba(163,184,255,.1);
      background:rgba(148,163,184,.08);
      color:var(--muted);
      font-size:12px
    }

    .permission-chip.ok{
      color:#d6f7e8;
      background:rgba(34,197,94,.14);
      border-color:rgba(34,197,94,.26)
    }

    .permission-chip.edit{
      color:#d9ebff;
      background:rgba(59,130,246,.14);
      border-color:rgba(59,130,246,.26)
    }

    .permission-chip.lock{
      color:#ffd27c;
      background:rgba(245,158,11,.12);
      border-color:rgba(245,158,11,.24)
    }

    .downloads-shell{
      display:grid;
      gap:18px;
    }

    .downloads-platform-grid{
      display:grid;
      grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
      gap:14px;
    }

    .downloads-kicker{
      margin-bottom:8px;
      color:#8fb4e8;
      font-size:10px;
      font-weight:800;
      letter-spacing:.14em;
      text-transform:uppercase;
    }

    .runtime-switch{
      display:inline-flex;
      align-items:center;
      gap:6px;
      padding:6px;
      border-radius:999px;
      border:1px solid rgba(119,220,255,.12);
      background:rgba(6,12,24,.72);
      box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
    }

    .runtime-switch-btn{
      border:0;
      min-height:34px;
      padding:8px 14px;
      border-radius:999px;
      background:transparent;
      color:#9ab2d3;
      font-size:12px;
      font-weight:800;
      letter-spacing:.04em;
      cursor:pointer;
      transition:background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .runtime-switch-btn:hover{
      color:#eef6ff;
      transform:translateY(-1px);
    }

    .runtime-switch-btn.active{
      background:linear-gradient(135deg, rgba(59,130,246,.28), rgba(45,212,191,.16));
      color:#eff8ff;
      box-shadow:0 10px 24px rgba(37,99,235,.18);
    }

    .downloads-detail-grid{
      display:grid;
      grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);
      gap:14px;
      align-items:start;
    }

    .downloads-steps{
      margin:14px 0 0;
      padding-left:18px;
      display:grid;
      gap:10px;
      color:#d6e2f8;
      font-size:13px;
      line-height:1.65;
    }

    .question-columns{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:16px;
    }

    .question-column{
      border:1px solid rgba(255,255,255,.08);
      border-radius:16px;
      background:rgba(255,255,255,.025);
      padding:14px;
    }

    .question-column-head{
      display:flex;
      flex-direction:column;
      gap:4px;
      margin-bottom:12px;
    }

    .question-column-head span{
      color:#eef4ff;
      font-size:15px;
      font-weight:800;
    }

    .question-column-head small{
      color:var(--muted);
      font-size:12px;
      line-height:1.5;
    }

    .question-list{
      display:grid;
      gap:12px;
    }

    .question-card{
      border:1px solid rgba(255,255,255,.08);
      background:rgba(7,10,25,.36);
      border-radius:14px;
      padding:13px;
    }

    .question-card-top{
      display:flex;
      justify-content:space-between;
      gap:12px;
      margin-bottom:12px;
    }

    .question-card-title{
      color:#eef4ff;
      font-size:15px;
      font-weight:800;
      line-height:1.4;
    }

    .question-card-subtitle{
      margin-top:6px;
      color:#9fb2d8;
      font-size:12px;
      line-height:1.55;
    }

    .question-card-id{
      margin-top:4px;
      color:#8ea6d7;
      font-size:12px;
      font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }

    .question-badges{
      display:flex;
      gap:8px;
      flex-wrap:wrap;
      justify-content:flex-end;
    }

    .question-badge{
      border-radius:999px;
      padding:6px 10px;
      font-size:11px;
      font-weight:800;
      letter-spacing:.04em;
      text-transform:uppercase;
      border:1px solid rgba(255,255,255,.08);
    }

    .question-badge.required{
      background:rgba(46, 204, 113, .14);
      color:#7df0ab;
    }

    .question-badge.optional{
      background:rgba(255, 193, 7, .12);
      color:#ffd86b;
    }

    .question-badge.style{
      background:rgba(91, 140, 255, .12);
      color:#9bbdff;
    }

    .question-fields{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px 12px;
    }

    .question-field{
      display:flex;
      flex-direction:column;
      gap:6px;
    }

    .question-static{
      width:100%;
      min-height:42px;
      display:flex;
      align-items:center;
      padding:9px 11px;
      border-radius:10px;
      border:1px solid rgba(255,255,255,.08);
      background:rgba(255,255,255,.03);
      color:#dfe9ff;
      font-size:13px;
    }

    .question-field.full{
      grid-column:1 / -1;
    }

    .question-default-grid{
      display:grid;
      grid-template-columns:repeat(5,minmax(0,1fr));
      gap:10px;
      margin-bottom:16px;
    }

    .question-default-item{
      padding:12px 13px;
      border-radius:16px;
      border:1px solid rgba(163,184,255,.1);
      background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
      cursor:pointer;
      transition:.18s ease;
      min-height:112px;
      display:flex;
      flex-direction:column;
      justify-content:space-between;
    }

    .question-default-item:hover{
      border-color:rgba(91,140,255,.24);
      background:linear-gradient(180deg, rgba(91,140,255,.11), rgba(255,255,255,.03));
      transform:translateY(-1px);
    }

    .question-default-item.active{
      border-color:rgba(91,140,255,.34);
      background:linear-gradient(180deg, rgba(91,140,255,.16), rgba(255,255,255,.03));
      box-shadow:0 10px 30px rgba(0,0,0,.18);
    }

    .question-default-item strong{
      display:block;
      color:#eef4ff;
      font-size:13px;
      margin-bottom:5px;
      line-height:1.35;
    }

    .question-default-item span{
      display:block;
      color:#9fb2d8;
      font-size:11px;
      line-height:1.42;
    }

    .question-default-item p{
      margin:0;
      color:#dce8ff;
      font-size:12px;
      line-height:1.45;
    }

    .question-default-meta{
      display:flex;
      gap:6px;
      flex-wrap:wrap;
      margin-top:10px;
    }

    .question-chip{
      display:inline-flex;
      align-items:center;
      gap:6px;
      padding:5px 9px;
      border-radius:999px;
      background:rgba(255,255,255,.05);
      border:1px solid rgba(163,184,255,.08);
      color:#c7d6f2;
      font-size:10px;
      font-weight:700;
      letter-spacing:.03em;
    }

    .question-chip.step1{
      background:rgba(59,130,246,.12);
      border-color:rgba(59,130,246,.22);
      color:#cfe0ff;
    }

    .question-chip.step2{
      background:rgba(16,185,129,.12);
      border-color:rgba(16,185,129,.22);
      color:#d1ffe9;
    }

    .question-editor-single{
      margin-top:14px;
    }

    .question-empty-state{
      padding:18px;
      border-radius:16px;
      border:1px dashed rgba(255,255,255,.12);
      color:var(--muted);
      text-align:center;
    }

    .question-field small{
      color:var(--muted);
      font-size:11px;
      text-transform:uppercase;
      letter-spacing:.06em;
    }

    .question-editor-shell{
      border:1px solid rgba(255,255,255,.08);
      border-radius:18px;
      background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
      padding:16px;
    }

    .question-editor-label{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-bottom:12px;
    }

    .question-editor-label strong{
      display:block;
      font-size:15px;
      color:#eef4ff;
    }

    .question-editor-label span{
      color:#9fb2d8;
      font-size:12px;
    }

    .question-editor-summary{
      display:flex;
      align-items:center;
      gap:8px;
      flex-wrap:wrap;
    }

    .question-answer-guide{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:12px;
      margin-top:14px;
    }

    .ticket-preview-stack{
      display:grid;
      gap:16px;
    }

    .ticket-preview-card{
      border:1px solid rgba(119,220,255,.1);
      border-radius:20px;
      background:linear-gradient(180deg, rgba(11,18,32,.9), rgba(8,13,24,.98));
      padding:16px;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
      min-height:220px;
    }

    .ticket-preview-card h5{
      margin:0 0 10px;
      font-size:13px;
      text-transform:uppercase;
      letter-spacing:.08em;
      color:#a9c6ef;
    }

    .ticket-preview-body{
      display:grid;
      gap:12px;
    }

    .ticket-preview-field{
      border:1px solid rgba(255,255,255,.08);
      border-radius:14px;
      padding:12px 14px;
      background:rgba(255,255,255,.025);
    }

    .ticket-preview-field strong{
      display:block;
      margin-bottom:8px;
      color:#eef4ff;
      font-size:15px;
      line-height:1.3;
    }

    .ticket-preview-field p,
    .ticket-preview-field pre{
      margin:0;
      color:#b9cae9;
      font-size:13px;
      line-height:1.65;
      white-space:pre-wrap;
      word-break:break-word;
      font-family:inherit;
    }

    .ticket-preview-select{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      min-height:44px;
      padding:10px 12px;
      border:1px solid rgba(119,220,255,.14);
      border-radius:12px;
      background:rgba(94,203,255,.05);
      color:#eaf4ff;
      font-size:13px;
    }

    .ticket-preview-badges,
    .ticket-category-badges{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
    }

    .ticket-preview-badge,
    .ticket-category-badge{
      display:inline-flex;
      align-items:center;
      min-height:28px;
      padding:5px 10px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.08);
      background:rgba(255,255,255,.04);
      color:#dce8fb;
      font-size:11px;
      font-weight:700;
    }

    .ticket-category-grid{
      display:grid;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:12px;
    }

    .ticket-category-editor{
      display:block;
      min-width:0;
    }

    .ticket-category-card{
      border:1px solid rgba(255,255,255,.08);
      border-radius:18px;
      padding:14px;
      background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
      display:grid;
      gap:10px;
    }

    .ticket-category-card-header{
      display:flex;
      justify-content:space-between;
      gap:10px;
      align-items:flex-start;
    }

    .ticket-category-card-actions{
      display:flex;
      gap:8px;
      flex-wrap:wrap;
      justify-content:flex-end;
    }

    .ticket-category-card h5{
      margin:0;
      color:#eef4ff;
      font-size:14px;
    }

    .ticket-category-card p{
      margin:4px 0 0;
      color:#9cb0d3;
      font-size:12px;
      line-height:1.55;
    }

    .entity-picker-source{
      display:none !important;
    }

    .entity-picker{
      margin-top:10px;
    }

    .entity-picker-shell{
      display:grid;
      gap:10px;
    }

    .entity-picker-chip-row{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
    }

    .entity-picker-chip{
      display:inline-flex;
      align-items:center;
      gap:8px;
      min-height:32px;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid rgba(119,220,255,.12);
      background:rgba(91,140,255,.08);
      color:#e9f2ff;
      font-size:12px;
      font-weight:700;
    }

    .entity-picker-chip-remove{
      width:20px;
      height:20px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border:1px solid rgba(255,255,255,.08);
      border-radius:999px;
      background:rgba(255,255,255,.06);
      color:#d8e5ff;
      cursor:pointer;
      font-size:12px;
      font-weight:800;
      line-height:1;
      padding:0;
      transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
    }

    .entity-picker-chip-remove:hover{
      background:rgba(255,255,255,.12);
      border-color:rgba(119,220,255,.2);
      color:#ffffff;
      transform:scale(1.04);
    }

    .entity-picker-empty,
    .entity-picker-hint{
      color:#8ea5c8;
      font-size:12px;
      line-height:1.5;
    }

    .ticket-panel-manager{
      display:grid;
      grid-template-columns:minmax(260px, 320px) minmax(0, 1fr);
      gap:16px;
      align-items:start;
    }

    .ticket-panel-sidebar,
    .ticket-editor-surface{
      border:1px solid rgba(119,220,255,.1);
      border-radius:22px;
      background:linear-gradient(180deg, rgba(11,18,32,.84), rgba(8,13,24,.96));
      box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
    }

    .ticket-panel-sidebar{
      padding:14px;
      display:grid;
      gap:12px;
    }

    .ticket-panel-sidebar-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
    }

    .ticket-panel-sidebar-head small,
    .ticket-panel-hero-copy small{
      display:block;
      color:#89a7d7;
      font-size:11px;
      font-weight:800;
      letter-spacing:.08em;
      text-transform:uppercase;
      margin-bottom:4px;
    }

    .ticket-panel-sidebar-head strong{
      color:#eef4ff;
      font-size:16px;
    }

    .ticket-panel-list{
      display:grid;
      gap:10px;
    }

    .ticket-panel-list-item{
      width:100%;
      border:1px solid rgba(255,255,255,.08);
      border-radius:18px;
      background:rgba(255,255,255,.03);
      padding:12px;
      display:grid;
      grid-template-columns:52px minmax(0, 1fr) auto;
      gap:12px;
      align-items:center;
      color:inherit;
      cursor:pointer;
      transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
      text-align:left;
    }

    .ticket-panel-list-item:hover,
    .ticket-panel-list-item.active{
      border-color:rgba(119,220,255,.24);
      background:linear-gradient(180deg, rgba(91,140,255,.14), rgba(255,255,255,.04));
      box-shadow:0 12px 28px rgba(3,8,18,.18);
      transform:translateY(-1px);
    }

    .ticket-panel-list-icon,
    .ticket-panel-hero-icon{
      display:grid;
      place-items:center;
      border-radius:18px;
      background:radial-gradient(circle at 50% 30%, rgba(119,220,255,.18), rgba(91,140,255,.08) 48%, rgba(255,255,255,.02) 100%);
      border:1px solid rgba(119,220,255,.14);
      color:#eef6ff;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
    }

    .ticket-panel-list-icon{
      width:52px;
      height:52px;
      font-size:24px;
    }

    .ticket-panel-list-body{
      display:grid;
      gap:4px;
      min-width:0;
    }

    .ticket-panel-list-body strong{
      color:#eef4ff;
      font-size:14px;
      line-height:1.35;
    }

    .ticket-panel-list-body small{
      color:#8ea5c8;
      font-size:12px;
      line-height:1.45;
    }

    .ticket-panel-list-meta{
      border-radius:999px;
      padding:6px 10px;
      border:1px solid rgba(52,211,153,.16);
      background:rgba(34,197,94,.14);
      color:#d8ffea;
      font-size:11px;
      font-weight:800;
      letter-spacing:.04em;
      text-transform:uppercase;
    }

    .ticket-panel-list-meta.locked{
      border-color:rgba(245,158,11,.18);
      background:rgba(245,158,11,.14);
      color:#ffe7b2;
    }

    .ticket-panel-workspace{
      display:grid;
      gap:14px;
    }

    .ticket-panel-hero{
      display:grid;
      grid-template-columns:96px minmax(0, 1fr) auto;
      gap:16px;
      align-items:center;
      padding:18px;
      border:1px solid rgba(119,220,255,.12);
      border-radius:24px;
      background:linear-gradient(180deg, rgba(11,18,32,.84), rgba(8,13,24,.96));
    }

    .ticket-panel-hero-icon{
      width:96px;
      height:96px;
      font-size:44px;
      border-radius:26px;
    }

    .ticket-panel-hero-copy h5{
      margin:0 0 6px;
      color:#f2f7ff;
      font-size:24px;
      line-height:1.2;
    }

    .ticket-panel-hero-copy p{
      margin:0 0 12px;
      color:#9fb4d6;
      font-size:13px;
      line-height:1.65;
      max-width:760px;
    }

    .ticket-editor-tabs{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
    }

    .ticket-editor-tab{
      border:1px solid rgba(119,220,255,.1);
      background:rgba(255,255,255,.03);
      color:#9fb4d6;
      min-height:38px;
      padding:8px 14px;
      border-radius:999px;
      font-size:12px;
      font-weight:800;
      letter-spacing:.04em;
      cursor:pointer;
      transition:border-color .18s ease, color .18s ease, background .18s ease;
    }

    .ticket-editor-tab.active{
      border-color:rgba(119,220,255,.24);
      background:rgba(91,140,255,.16);
      color:#eef6ff;
    }

    .ticket-editor-surface{
      padding:18px;
    }

    .ticket-panel-form-grid,
    .ticket-editor-preview-grid{
      display:grid;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:14px;
    }

    .ticket-panel-field{
      display:grid;
      gap:8px;
    }

    .ticket-panel-field span{
      color:#dce8fb;
      font-size:13px;
      font-weight:700;
    }

    .ticket-panel-field small,
    .ticket-panel-copy-note{
      color:#8ea5c8;
      font-size:12px;
      line-height:1.6;
    }

    .ticket-panel-field-full{
      grid-column:1 / -1;
    }

    .ticket-panel-empty{
      border:1px dashed rgba(119,220,255,.18);
      border-radius:22px;
      padding:28px;
      text-align:center;
      color:#9fb4d6;
      background:rgba(255,255,255,.02);
    }

    .ticket-preview-card-inline{
      min-height:unset;
    }

    .ticket-preview-header-row{
      display:grid;
      grid-template-columns:64px minmax(0, 1fr);
      gap:12px;
      align-items:flex-start;
    }

    .ticket-preview-emblem{
      width:64px;
      height:64px;
      border-radius:18px;
      display:grid;
      place-items:center;
      font-size:30px;
      border:1px solid rgba(119,220,255,.16);
      background:radial-gradient(circle at 50% 30%, rgba(119,220,255,.18), rgba(91,140,255,.08) 48%, rgba(255,255,255,.02) 100%);
    }

    .ticket-preview-emblem-secondary{
      border-color:rgba(255,255,255,.1);
      background:rgba(255,255,255,.04);
    }

    .ticket-preview-badge.active{
      border-color:rgba(119,220,255,.28);
      background:rgba(91,140,255,.18);
      color:#eef6ff;
    }

    @media (max-width: 1180px){
      .ticket-panel-manager{
        grid-template-columns:1fr;
      }

      .ticket-panel-hero{
        grid-template-columns:72px minmax(0, 1fr);
      }

      .ticket-panel-hero-actions{
        grid-column:1 / -1;
      }
    }

    @media (max-width: 820px){
      .ticket-panel-form-grid,
      .ticket-editor-preview-grid{
        grid-template-columns:1fr;
      }

      .ticket-panel-hero{
        grid-template-columns:1fr;
      }

      .ticket-panel-hero-icon{
        width:80px;
        height:80px;
      }
    }

    /* Ticket Studio polish */
    .tickets-layout{
      grid-template-columns:minmax(0, 1.72fr) minmax(330px, .88fr);
      gap:18px;
    }

    .ticket-preview-stack{
      position:sticky;
      top:96px;
      max-height:calc(100vh - 116px);
      overflow:auto;
      padding-right:6px;
      gap:14px;
      scrollbar-gutter:stable;
    }

    .ticket-preview-card{
      border-radius:18px;
      border-color:rgba(119,220,255,.12);
      background:linear-gradient(180deg, rgba(10,17,30,.92), rgba(7,12,22,.98));
      min-height:0;
      box-shadow:0 18px 44px rgba(2,8,20,.22), inset 0 1px 0 rgba(255,255,255,.03);
    }

    .ticket-preview-card h5{
      margin-bottom:12px;
      color:#b8ceef;
    }

    .ticket-panel-manager{
      grid-template-columns:minmax(284px, 316px) minmax(0, 1fr);
      gap:20px;
      align-items:stretch;
    }

    .ticket-panel-sidebar,
    .ticket-editor-surface{
      border-radius:24px;
      border-color:rgba(119,220,255,.12);
      background:linear-gradient(180deg, rgba(10,17,31,.9), rgba(7,12,22,.98));
      box-shadow:0 20px 48px rgba(2,8,20,.18), inset 0 1px 0 rgba(255,255,255,.025);
    }

    .ticket-panel-sidebar{
      padding:16px;
      gap:14px;
      min-height:100%;
    }

    .ticket-panel-sidebar-head{
      align-items:flex-start;
      gap:14px;
    }

    .ticket-panel-sidebar-head p{
      margin:6px 0 0;
      color:#90a6ca;
      font-size:12px;
      line-height:1.6;
      max-width:24ch;
    }

    .ticket-panel-sidebar-head .btn{
      min-height:40px;
      padding-inline:16px;
      white-space:nowrap;
    }

    .ticket-panel-list{
      max-height:720px;
      overflow:auto;
      padding-right:4px;
    }

    .ticket-panel-list-item{
      position:relative;
      grid-template-columns:54px minmax(0, 1fr);
      align-items:start;
      gap:12px;
      padding:14px;
      border-radius:20px;
      overflow:hidden;
    }

    .ticket-panel-list-item::after{
      content:"";
      position:absolute;
      inset:10px auto 10px 0;
      width:3px;
      border-radius:999px;
      background:linear-gradient(180deg, rgba(94,203,255,0), rgba(94,203,255,.88), rgba(75,140,255,0));
      opacity:0;
      transition:opacity .18s ease;
    }

    .ticket-panel-list-item:hover::after,
    .ticket-panel-list-item.active::after{
      opacity:1;
    }

    .ticket-panel-list-icon{
      width:54px;
      height:54px;
      font-size:25px;
      border-radius:20px;
    }

    .ticket-panel-list-body{
      gap:6px;
    }

    .ticket-panel-list-body strong{
      font-size:15px;
    }

    .ticket-panel-list-body small{
      color:#c8d8f3;
      font-size:12px;
      line-height:1.55;
    }

    .ticket-panel-list-subline{
      display:block;
      color:#7f97bd;
      font-size:11px;
      line-height:1.45;
      word-break:break-word;
    }

    .ticket-panel-list-meta{
      margin-top:2px;
      justify-self:start;
      grid-column:2;
    }

    .ticket-panel-workspace{
      gap:16px;
      min-width:0;
    }

    .ticket-panel-hero{
      grid-template-columns:minmax(0, 1.38fr) minmax(260px, .92fr);
      gap:18px;
      align-items:stretch;
      padding:20px;
      border-radius:26px;
      border-color:rgba(119,220,255,.14);
      background:
        radial-gradient(circle at 100% 0%, rgba(94,203,255,.1), transparent 30%),
        linear-gradient(180deg, rgba(10,17,30,.92), rgba(7,12,22,.98));
      box-shadow:0 22px 54px rgba(2,8,20,.22), inset 0 1px 0 rgba(255,255,255,.03);
    }

    .ticket-panel-hero-main,
    .ticket-panel-hero-aside{
      display:grid;
      gap:16px;
      min-width:0;
    }

    .ticket-panel-hero-head{
      display:grid;
      grid-template-columns:84px minmax(0, 1fr);
      gap:14px;
      align-items:start;
    }

    .ticket-panel-hero-icon{
      width:84px;
      height:84px;
      font-size:40px;
      border-radius:22px;
    }

    .ticket-panel-hero-copy h5{
      margin:0 0 8px;
      font-size:30px;
      line-height:1.08;
      text-wrap:balance;
    }

    .ticket-panel-hero-copy p{
      margin:0;
      color:#aabedf;
      font-size:13px;
      line-height:1.75;
      max-width:60ch;
    }

    .ticket-panel-hero-stats{
      display:grid;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:12px;
    }

    .ticket-panel-hero-stat{
      border:1px solid rgba(119,220,255,.1);
      border-radius:18px;
      padding:13px 14px;
      background:rgba(255,255,255,.025);
      min-width:0;
    }

    .ticket-panel-hero-stat span{
      display:block;
      margin-bottom:6px;
      color:#8faad1;
      font-size:11px;
      font-weight:800;
      letter-spacing:.08em;
      text-transform:uppercase;
    }

    .ticket-panel-hero-stat strong{
      display:block;
      color:#eef6ff;
      font-size:14px;
      line-height:1.45;
      word-break:break-word;
    }

    .ticket-panel-hero-aside{
      align-content:space-between;
    }

    .ticket-panel-spotlight{
      border:1px solid rgba(119,220,255,.1);
      border-radius:20px;
      padding:14px;
      background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
    }

    .ticket-panel-spotlight small{
      display:block;
      margin-bottom:10px;
      color:#8faad1;
      font-size:11px;
      font-weight:800;
      letter-spacing:.08em;
      text-transform:uppercase;
    }

    .ticket-panel-spotlight-card{
      display:grid;
      grid-template-columns:56px minmax(0, 1fr);
      gap:12px;
      align-items:start;
    }

    .ticket-panel-spotlight-icon{
      width:56px;
      height:56px;
      display:grid;
      place-items:center;
      border-radius:18px;
      font-size:28px;
      border:1px solid rgba(119,220,255,.14);
      background:radial-gradient(circle at 50% 30%, rgba(119,220,255,.18), rgba(91,140,255,.08) 48%, rgba(255,255,255,.02) 100%);
    }

    .ticket-panel-spotlight-copy strong{
      display:block;
      margin-bottom:6px;
      color:#eef6ff;
      font-size:15px;
      line-height:1.35;
    }

    .ticket-panel-spotlight-copy p{
      margin:0;
      color:#9cb2d8;
      font-size:13px;
      line-height:1.6;
      word-break:break-word;
    }

    .ticket-panel-hero-actions{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
      align-items:center;
      justify-content:flex-start;
    }

    .ticket-stage-status{
      display:inline-flex;
      align-items:center;
      min-height:34px;
      padding:7px 12px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.08);
      background:rgba(255,255,255,.04);
      color:#dce8fb;
      font-size:11px;
      font-weight:800;
      letter-spacing:.08em;
      text-transform:uppercase;
      white-space:nowrap;
    }

    .ticket-stage-status.ready{
      border-color:rgba(34,197,94,.2);
      background:rgba(34,197,94,.14);
      color:#d8ffea;
    }

    .ticket-stage-status.warning{
      border-color:rgba(245,158,11,.2);
      background:rgba(245,158,11,.14);
      color:#ffe5b0;
    }

    .ticket-editor-tabs{
      display:inline-flex;
      flex-wrap:wrap;
      gap:6px;
      width:fit-content;
      padding:6px;
      border:1px solid rgba(119,220,255,.1);
      border-radius:18px;
      background:linear-gradient(180deg, rgba(11,18,32,.8), rgba(8,13,24,.94));
      box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
    }

    .ticket-editor-tab{
      border:0;
      background:transparent;
      color:#95abd0;
      min-height:40px;
      padding:0 16px;
      border-radius:12px;
      font-size:12px;
      font-weight:800;
      letter-spacing:.04em;
      cursor:pointer;
      transition:background .18s ease, color .18s ease, box-shadow .18s ease;
    }

    .ticket-editor-tab.active{
      background:linear-gradient(180deg, rgba(102,163,255,.28), rgba(75,140,255,.22));
      color:#f2f7ff;
      box-shadow:0 10px 22px rgba(10,18,36,.22), inset 0 1px 0 rgba(255,255,255,.12);
    }

    .ticket-editor-surface{
      padding:20px;
      max-height:920px;
      overflow:auto;
    }

    .ticket-editor-surface-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:16px;
      margin-bottom:18px;
      padding-bottom:16px;
      border-bottom:1px solid rgba(119,220,255,.1);
    }

    .ticket-editor-surface-head small{
      display:block;
      margin-bottom:6px;
      color:#89a7d7;
      font-size:11px;
      font-weight:800;
      letter-spacing:.08em;
      text-transform:uppercase;
    }

    .ticket-editor-surface-head strong{
      display:block;
      margin-bottom:6px;
      color:#eef6ff;
      font-size:20px;
      line-height:1.2;
    }

    .ticket-editor-surface-head p{
      margin:0;
      max-width:62ch;
      color:#9db4d9;
      font-size:13px;
      line-height:1.65;
    }

    .ticket-panel-form-grid,
    .ticket-editor-preview-grid{
      gap:16px;
    }

    .ticket-panel-field{
      gap:10px;
    }

    .ticket-panel-field span{
      color:#c8daf5;
      font-size:11px;
      font-weight:800;
      letter-spacing:.08em;
      text-transform:uppercase;
    }

    .ticket-panel-field small,
    .ticket-panel-copy-note{
      color:#8ea5c8;
      font-size:12px;
      line-height:1.6;
    }

    .ticket-preview-card-inline{
      min-height:0;
    }

    .ticket-panel-list,
    .ticket-editor-surface,
    .ticket-preview-stack{
      scrollbar-width:thin;
      scrollbar-color:rgba(102,163,255,.78) rgba(255,255,255,.04);
    }

    .ticket-panel-list::-webkit-scrollbar,
    .ticket-editor-surface::-webkit-scrollbar,
    .ticket-preview-stack::-webkit-scrollbar{
      width:9px;
      height:9px;
    }

    .ticket-panel-list::-webkit-scrollbar-track,
    .ticket-editor-surface::-webkit-scrollbar-track,
    .ticket-preview-stack::-webkit-scrollbar-track{
      background:rgba(255,255,255,.04);
      border-radius:999px;
    }

    .ticket-panel-list::-webkit-scrollbar-thumb,
    .ticket-editor-surface::-webkit-scrollbar-thumb,
    .ticket-preview-stack::-webkit-scrollbar-thumb{
      background:linear-gradient(180deg, rgba(128,152,255,.92), rgba(94,203,255,.86));
      border-radius:999px;
      border:1px solid rgba(10,17,30,.65);
    }

    .ticket-panel-list::-webkit-scrollbar-thumb:hover,
    .ticket-editor-surface::-webkit-scrollbar-thumb:hover,
    .ticket-preview-stack::-webkit-scrollbar-thumb:hover{
      background:linear-gradient(180deg, rgba(160,178,255,.96), rgba(118,222,255,.94));
    }

    @media (max-width: 1400px){
      .tickets-layout{
        grid-template-columns:minmax(0, 1.55fr) minmax(320px, .95fr);
      }
    }

    @media (max-width: 1240px){
      .ticket-preview-stack{
        position:static;
        max-height:none;
        overflow:visible;
        padding-right:0;
      }

      .ticket-panel-hero{
        grid-template-columns:1fr;
      }
    }

    @media (max-width: 1180px){
      .ticket-panel-manager{
        grid-template-columns:1fr;
      }

      .ticket-panel-sidebar{
        min-height:0;
      }
    }

    @media (max-width: 820px){
      .ticket-editor-surface-head{
        flex-direction:column;
      }

      .ticket-panel-hero-head,
      .ticket-panel-spotlight-card{
        grid-template-columns:1fr;
      }

      .ticket-panel-hero-stats{
        grid-template-columns:1fr;
      }

      .ticket-editor-tabs{
        width:100%;
      }

      .ticket-editor-tab{
        flex:1 1 0;
      }

      .ticket-panel-list-item{
        grid-template-columns:48px minmax(0, 1fr);
      }

      .ticket-panel-list-icon{
        width:48px;
        height:48px;
      }
    }

    /* Ticket width correction */
    .tickets-layout{
      grid-template-columns:1fr;
      gap:20px;
    }

    .ticket-panel-manager{
      grid-template-columns:minmax(300px, 340px) minmax(0, 1fr);
      gap:22px;
    }

    .ticket-panel-workspace{
      gap:18px;
    }

    .ticket-panel-hero{
      grid-template-columns:1fr;
      gap:20px;
    }

    .ticket-panel-hero-main{
      gap:18px;
    }

    .ticket-panel-hero-copy h5{
      max-width:28ch;
      text-wrap:pretty;
    }

    .ticket-panel-hero-stats{
      grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
    }

    .ticket-panel-hero-aside{
      grid-template-columns:minmax(0, 1fr) auto;
      align-items:end;
      gap:14px;
    }

    .ticket-panel-spotlight{
      padding:16px;
    }

    .ticket-panel-hero-actions{
      align-self:stretch;
      justify-content:flex-end;
    }

    .ticket-editor-tabs{
      width:auto;
      max-width:100%;
    }

    .ticket-editor-surface{
      max-height:none;
      overflow:visible;
    }

    .ticket-preview-stack{
      position:static;
      top:auto;
      max-height:none;
      overflow:visible;
      padding-right:0;
    }

    .ticket-preview-grid{
      display:grid;
      grid-template-columns:repeat(2, minmax(0, 1fr));
      gap:16px;
    }

    @media (max-width: 1260px){
      .ticket-panel-hero-stats{
        grid-template-columns:repeat(2, minmax(0, 1fr));
      }

      .ticket-panel-hero-aside{
        grid-template-columns:1fr;
        align-items:stretch;
      }

      .ticket-panel-hero-actions{
        justify-content:flex-start;
      }
    }

    @media (max-width: 1080px){
      .ticket-panel-manager{
        grid-template-columns:1fr;
      }

      .ticket-preview-grid{
        grid-template-columns:1fr;
      }
    }

    @media (max-width: 820px){
      .ticket-panel-hero-stats{
        grid-template-columns:1fr;
      }
    }

    #tab-whitelist .table-wrap,
    #tab-blacklist .table-wrap,
    #tab-warnings .table-wrap,
    #tab-billing .table-wrap{
      border-radius:26px;
      overflow:hidden;
      border:1px solid rgba(119,220,255,.1);
      background:linear-gradient(180deg, rgba(10,16,28,.94), rgba(7,11,20,.99));
      box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
    }

    #tab-whitelist thead tr,
    #tab-blacklist thead tr,
    #tab-warnings thead tr,
    #tab-billing thead tr{
      background:linear-gradient(180deg, rgba(94,203,255,.08), rgba(255,255,255,.02));
    }

    #tab-whitelist th,
    #tab-blacklist th,
    #tab-warnings th,
    #tab-billing th{
      color:#b5c8e6;
      font-size:11px;
      text-transform:uppercase;
      letter-spacing:.12em;
    }

    #tab-whitelist tbody tr:hover,
    #tab-blacklist tbody tr:hover,
    #tab-warnings tbody tr:hover,
    #tab-billing tbody tr:hover{
      background:rgba(94,203,255,.04);
    }

    #tab-whitelist .mini-actions .btn,
    #tab-blacklist .mini-actions .btn,
    #tab-warnings .mini-actions .btn,
    #tab-billing .mini-actions .btn{
      min-height:36px;
      padding:0 12px;
      border-radius:12px;
      font-size:12px;
    }

    #tab-analytics .analytics-card,
    #tab-settings .settings-overview-card,
    #tab-tickets .settings-overview-card,
    #tab-wl-questions .settings-overview-card{
      padding:16px 18px;
      min-height:120px;
      border-radius:22px;
      border:1px solid rgba(119,220,255,.1);
      background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
    }

    #tab-analytics .analytics-card strong,
    #tab-settings .settings-overview-card strong,
    #tab-tickets .settings-overview-card strong,
    #tab-wl-questions .settings-overview-card strong{
      color:#f7fbff;
      font-size:34px;
      line-height:1;
      letter-spacing:-.045em;
    }

    #tab-settings .settings-group,
    #tab-tickets .settings-group,
    #tab-billing .settings-group,
    #tab-wl-questions .questions-box,
    #tab-wl-questions .question-editor-single{
      border-radius:24px;
      border:1px solid rgba(119,220,255,.1);
      background:linear-gradient(180deg, rgba(11,18,32,.84), rgba(8,13,24,.96));
      box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
    }

    #tab-settings .settings-group-head,
    #tab-tickets .settings-group-head,
    #tab-billing .settings-group-head,
    #tab-wl-questions .questions-header{
      padding-bottom:14px;
      margin-bottom:16px;
      border-bottom:1px solid rgba(119,220,255,.08);
    }

    #tab-settings .setting-card,
    #tab-billing .setting-card,
    #tab-wl-questions .guide-card,
    #tab-wl-questions .question-card,
    #tab-wl-questions .question-editor-card{
      border-radius:20px;
      border:1px solid rgba(119,220,255,.1);
      background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
      transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    }

    #tab-settings .setting-card:hover,
    #tab-billing .setting-card:hover,
    #tab-wl-questions .guide-card:hover,
    #tab-wl-questions .question-card:hover{
      border-color:rgba(119,220,255,.2);
      transform:translateY(-1px);
      box-shadow:0 14px 28px rgba(3,8,18,.18);
    }

    #tab-settings .settings-card-note,
    #tab-billing .settings-card-note,
    #tab-wl-questions .guide-card span{
      color:#8ea5c8;
    }

    #tab-settings .settings-actions,
    #tab-billing .settings-actions{
      display:flex;
      gap:12px;
      flex-wrap:wrap;
      align-items:center;
      margin-top:16px;
    }

    .ticket-panel-list,
    .ticket-editor-surface,
    .ticket-preview-stack{
      scrollbar-width:thin;
      scrollbar-color:var(--scrollbar-thumb-flat) var(--scrollbar-track);
    }

    .ticket-panel-list::-webkit-scrollbar,
    .ticket-editor-surface::-webkit-scrollbar,
    .ticket-preview-stack::-webkit-scrollbar{
      width:10px;
      height:10px;
    }

    .ticket-panel-list::-webkit-scrollbar-track,
    .ticket-editor-surface::-webkit-scrollbar-track,
    .ticket-preview-stack::-webkit-scrollbar-track{
      background:var(--scrollbar-track);
      border-radius:999px;
    }

    .ticket-panel-list::-webkit-scrollbar-thumb,
    .ticket-editor-surface::-webkit-scrollbar-thumb,
    .ticket-preview-stack::-webkit-scrollbar-thumb{
      background:var(--scrollbar-thumb);
      border-radius:999px;
      border:1px solid var(--scrollbar-border);
    }

    .ticket-panel-list::-webkit-scrollbar-thumb:hover,
    .ticket-editor-surface::-webkit-scrollbar-thumb:hover,
    .ticket-preview-stack::-webkit-scrollbar-thumb:hover{
      background:var(--scrollbar-thumb-hover);
    }
