    :root {
      --bg: #f4f8ff;
      --bg-2: #eef5ff;
      --panel: #ffffff;
      --panel-soft: #f8fbff;
      --text: #172033;
      --muted: #667085;
      --line: #dbe6f5;
      --brand: #2f63e0;
      --brand-2: #7eb3ff;
      --nav: #122240;
      --nav-2: #18305a;
      --pink-bg: #ffe8ef;
      --pink-tx: #b4235d;
      --green-bg: #e8f8ee;
      --green-tx: #157a40;
      --blue-bg: #e9f1ff;
      --blue-tx: #2456d8;
      --yellow-bg: #fff6dc;
      --yellow-tx: #9f6a00;
      --purple-bg: #f1ecff;
      --purple-tx: #6941c6;
      --red-bg: #ffe9e7;
      --red-tx: #c2410c;
      --shadow: 0 12px 28px rgba(23, 43, 88, 0.10);
      --radius: 22px;
    }

    * {
      box-sizing: border-box;
    }

    html, body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
      color: var(--text);
    }

    .app {
      display: grid;
      grid-template-columns: 280px 1fr;
      min-height: 100vh;
    }

    .sidebar {
      position: sticky;
      top: 0;
      height: 100vh;
      background: linear-gradient(180deg, var(--nav) 0%, var(--nav-2) 100%);
      color: white;
      padding: 22px 18px;
      border-right: 1px solid rgba(255,255,255,0.08);
    }

    .brand {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 8px;
      margin-bottom: 20px;
    }

    .brand-mark {
      width: 48px;
      height: 48px;
      border-radius: 16px;
      background: linear-gradient(135deg, #88bbff, #3a69ea);
      display: grid;
      place-items: center;
      font-weight: 900;
      box-shadow: 0 12px 24px rgba(58, 105, 234, 0.35);
    }

    .brand h1 {
      margin: 0;
      font-size: 18px;
      line-height: 1.2;
      color: white;
    }

    .brand-logo {
      width: 66px;
      height: auto;
      display: block;
      background: white;
      border-radius: 12px;
      padding: 6px;
    }

    .brand p {
      margin: 4px 0 0;
      font-size: 12px;
      color: #aec0e8;
    }

    .rep-box {
      margin: 16px 0 20px;
      padding: 14px;
      border-radius: 18px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.08);
    }

    .rep-box label {
      display: block;
      font-size: 12px;
      color: #c5d2f0;
      margin-bottom: 8px;
      font-weight: 700;
    }

    .rep-box select {
      width: 100%;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 14px;
      padding: 12px 13px;
      background: rgba(255,255,255,0.10);
      color: white;
      font: inherit;
    }

    .nav {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .nav button {
      width: 100%;
      text-align: left;
      border: 0;
      background: transparent;
      color: #d9e4ff;
      padding: 13px 14px;
      border-radius: 14px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .nav button:hover,
    .nav button.active {
      background: rgba(126, 179, 255, 0.16);
      color: white;
    }

    .sidebar-note {
      margin-top: 20px;
      padding: 15px;
      border-radius: 18px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.08);
    }

    .sidebar-note h3 {
      font-size: 13px;
      margin: 0 0 8px;
    }

    .sidebar-note p {
      font-size: 12px;
      line-height: 1.5;
      color: #c0cceb;
      margin: 0;
    }

    .main {
      padding: 28px;
    }

    .page.hidden {
      display: none;
    }

    .topbar {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: flex-start;
      flex-wrap: wrap;
      margin-bottom: 22px;
    }

    .topbar h2 {
      margin: 0;
      font-size: 30px;
    }

    .topbar p {
      margin: 6px 0 0;
      font-size: 14px;
      color: var(--muted);
      line-height: 1.5;
      max-width: 820px;
    }

    .top-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .btn {
      border: 0;
      border-radius: 14px;
      padding: 12px 16px;
      font: inherit;
      font-weight: 800;
      cursor: pointer;
    }

    .btn-primary {
      background: var(--brand);
      color: white;
      box-shadow: 0 10px 24px rgba(47, 99, 224, 0.24);
    }

    .btn-secondary {
      background: white;
      color: var(--text);
      border: 1px solid var(--line);
    }

    .panel {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .section {
      padding: 20px;
    }

    .section h3 {
      margin: 0 0 14px;
      font-size: 20px;
    }

    .section-intro {
      margin: -4px 0 14px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .grid {
      display: grid;
      gap: 18px;
    }

    .goal-grid {
      display: grid;
      gap: 16px;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      margin-bottom: 18px;
    }

    .goal-card {
      padding: 18px;
      border-radius: 22px;
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
    }

    .goal-card.pink { background: var(--pink-bg); color: var(--pink-tx); border-color: #f7cad9; }
    .goal-card.green { background: var(--green-bg); color: var(--green-tx); border-color: #c2e9d0; }
    .goal-card.blue { background: var(--blue-bg); color: var(--blue-tx); border-color: #d5e4ff; }
    .goal-card.yellow { background: var(--yellow-bg); color: var(--yellow-tx); border-color: #f3df9c; }

    .goal-label {
      font-size: 13px;
      font-weight: 800;
      margin-bottom: 10px;
    }

    .goal-value {
      font-size: 26px;
      font-weight: 900;
      margin-bottom: 8px;
    }

    .goal-note {
      font-size: 13px;
      line-height: 1.5;
    }

    .plan-grid {
      display: grid;
      gap: 18px;
      grid-template-columns: 1.15fr 0.85fr;
      align-items: start;
    }

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

    .item {
      padding: 16px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: var(--panel-soft);
    }

    .item.soft-blue { background: #f4f8ff; }
    .item.soft-yellow { background: #fffaf0; }
    .item.soft-green { background: #f2fbf5; }
    .item.soft-purple { background: #f7f4ff; }
    .item.soft-red { background: #fff4f2; }

    .item-title {
      font-size: 16px;
      font-weight: 800;
      margin-bottom: 6px;
    }

    .item-sub {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .priority-card {
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
    }

    .priority-top {
      display: flex;
      gap: 10px;
      align-items: center;
      margin-bottom: 8px;
    }

    .priority-num {
      width: 32px;
      height: 32px;
      border-radius: 12px;
      background: #e8f0ff;
      color: var(--brand);
      display: grid;
      place-items: center;
      font-weight: 900;
      flex: 0 0 auto;
    }

    .priority-title {
      font-size: 16px;
      font-weight: 800;
    }

    .why-box {
      padding: 18px;
      border-radius: 20px;
      background: linear-gradient(135deg, #fff8e7, #fff2cb);
      border: 1px solid #f0dd99;
      color: #705700;
      font-size: 14px;
      line-height: 1.6;
    }

    .milestone-grid {
      display: grid;
      gap: 12px;
    }

    .milestone {
      display: grid;
      grid-template-columns: 96px 1fr;
      gap: 14px;
      padding: 16px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: white;
    }

    .milestone-week {
      min-height: 70px;
      border-radius: 14px;
      background: #edf3ff;
      color: var(--brand);
      display: grid;
      place-items: center;
      text-align: center;
      font-weight: 900;
      font-size: 14px;
      padding: 8px;
    }

    .milestone-title {
      font-weight: 800;
      margin-bottom: 4px;
    }

    .milestone-text {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .shift-card {
      padding: 18px;
      border-radius: 20px;
      background: linear-gradient(135deg, #eef7ff, #f8fbff);
      border: 1px solid #d8e9ff;
    }

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

    .chip {
      padding: 7px 10px;
      border-radius: 999px;
      background: white;
      border: 1px solid var(--line);
      font-size: 12px;
      font-weight: 700;
      color: #344054;
    }

    .action-checklist {
      display: grid;
      gap: 10px;
      margin-top: 14px;
    }

    .check-item {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      padding: 12px 14px;
      border-radius: 16px;
      background: white;
      border: 1px solid var(--line);
    }

    .check-dot {
      width: 22px;
      height: 22px;
      border-radius: 8px;
      background: #e8efff;
      color: var(--brand);
      display: grid;
      place-items: center;
      font-size: 12px;
      font-weight: 900;
      flex: 0 0 auto;
      margin-top: 1px;
    }

    .audit-grid {
      display: grid;
      gap: 12px;
      grid-template-columns: 1fr 1fr;
    }

    .snapshot-box {
      padding: 16px;
      border-radius: 18px;
      background: white;
      border: 1px solid var(--line);
    }

    .snapshot-label {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 8px;
    }

    .snapshot-value {
      font-size: 22px;
      font-weight: 900;
      margin-bottom: 6px;
    }

    .trend.up { color: var(--green-tx); font-weight: 800; }
    .trend.down { color: var(--red-tx); font-weight: 800; }
    .trend.flat { color: var(--yellow-tx); font-weight: 800; }

    .support-note {
      padding: 18px;
      border-radius: 20px;
      background: linear-gradient(135deg, #f3efff, #fbf8ff);
      border: 1px solid #ddd2ff;
      color: var(--purple-tx);
      font-size: 14px;
      line-height: 1.6;
    }

    .module-tabs,
    .practice-tabs {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }

    .tab-btn {
      border: 1px solid var(--line);
      background: white;
      border-radius: 999px;
      padding: 10px 14px;
      font-weight: 800;
      cursor: pointer;
    }

    .tab-btn.active {
      background: var(--brand);
      color: white;
      border-color: var(--brand);
    }

    .module-list {
      display: grid;
      gap: 16px;
    }

    .module-card {
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: white;
      box-shadow: var(--shadow);
    }

    .module-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 10px;
      flex-wrap: wrap;
    }

    .week-badge {
      padding: 8px 11px;
      border-radius: 999px;
      background: #edf3ff;
      color: var(--brand);
      font-size: 12px;
      font-weight: 900;
    }

    .status-badge {
      padding: 8px 11px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
    }

    .status-current { background: #fff6dc; color: #9f6a00; }
    .status-complete { background: #e8f8ee; color: #157a40; }

    .module-title {
      font-size: 18px;
      font-weight: 900;
      margin-bottom: 5px;
    }

    .module-meta {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: 13px;
    }

    .module-split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-top: 14px;
    }

    .pill {
      display: inline-block;
      padding: 7px 10px;
      border-radius: 999px;
      background: #f2f5fb;
      border: 1px solid var(--line);
      font-size: 12px;
      font-weight: 700;
      color: #344054;
      margin-right: 6px;
      margin-bottom: 6px;
    }

    .module-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 14px;
    }

    .small-btn {
      border: 1px solid var(--line);
      background: white;
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }

    .small-btn.primary {
      background: var(--brand);
      border-color: var(--brand);
      color: white;
    }

    .call-grid,
    .dashboard-grid,
    .practice-grid,
    .manager-grid,
    .progress-grid,
    .audit-detail-grid {
      display: grid;
      gap: 18px;
    }

    .call-grid,
    .dashboard-grid,
    .manager-grid,
    .progress-grid,
    .audit-detail-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .call-grid {
      align-items: start;
    }

    .call-card {
      padding: 18px;
      border-radius: 22px;
      border: 1px solid var(--line);
      background: white;
      box-shadow: var(--shadow);
      display: grid;
      gap: 12px;
      align-content: start;
    }

    .call-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
      flex-wrap: wrap;
    }

    .call-title {
      font-size: 17px;
      font-weight: 900;
      margin-bottom: 4px;
    }

    .meta {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: 13px;
    }

    .rating {
      padding: 8px 11px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    .rating.great { background: var(--green-bg); color: var(--green-tx); }
    .rating.learning { background: var(--yellow-bg); color: var(--yellow-tx); }
    .rating.review { background: var(--red-bg); color: var(--red-tx); }

    .toolbar {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 18px;
    }

    .toolbar-2 {
      display: grid;
      grid-template-columns: 1.2fr repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 18px;
    }

    input[type="text"],
    textarea,
    select {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: white;
      padding: 12px 14px;
      font: inherit;
      color: var(--text);
    }

    textarea {
      min-height: 120px;
      resize: vertical;
    }

    .empty {
      padding: 24px;
      text-align: center;
      color: var(--muted);
      border: 1px dashed var(--line);
      border-radius: 18px;
      background: #fcfdff;
    }

    .progress-bar {
      height: 10px;
      background: #e9eef8;
      border-radius: 999px;
      overflow: hidden;
      margin-top: 8px;
    }

    .progress-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--brand-2), var(--brand));
    }

    .score-grid {
      display: grid;
      gap: 10px;
    }

    .score-row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: #fafcff;
    }

    .score-chip {
      padding: 7px 10px;
      border-radius: 999px;
      background: white;
      border: 1px solid var(--line);
      font-size: 12px;
      font-weight: 900;
    }

    .subheading {
      font-size: 15px;
      font-weight: 900;
      margin-bottom: 10px;
    }

    .muted {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .hidden {
      display: none !important;
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.34);
      backdrop-filter: blur(6px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 1000;
    }

    .modal-backdrop.open {
      display: flex;
    }

    .modal {
      width: min(980px, 100%);
      max-height: 90vh;
      overflow: auto;
      background: white;
      border-radius: 24px;
      box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
      border: 1px solid var(--line);
    }

    .modal-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
      padding: 20px 20px 0;
    }

    .modal-body {
      padding: 20px;
    }

    .close-btn {
      border: 1px solid var(--line);
      background: white;
      border-radius: 12px;
      padding: 10px 12px;
      font-weight: 800;
      cursor: pointer;
    }

    .lesson-grid {
      display: grid;
      gap: 14px;
      grid-template-columns: 1fr 1fr;
    }

    .practice-box {
      padding: 16px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: #fafcff;
    }

    .feedback-card {
      padding: 16px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: #fff;
    }

    .compare-grid {
      display: grid;
      gap: 14px;
      grid-template-columns: 1fr 1fr;
      margin-top: 14px;
    }

    .manager-stat-grid {
      display: grid;
      gap: 16px;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      margin-bottom: 18px;
    }

    .manager-stat {
      padding: 18px;
      border-radius: 22px;
      background: white;
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
    }

    .manager-label {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 10px;
    }

    .manager-value {
      font-size: 26px;
      font-weight: 900;
      margin-bottom: 6px;
    }

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

    .form-full {
      grid-column: 1 / -1;
    }

    label {
      display: block;
      font-size: 13px;
      font-weight: 800;
      margin-bottom: 8px;
      color: #344054;
    }

    .helper {
      margin-top: 6px;
      font-size: 12px;
      color: var(--muted);
    }

    @media (max-width: 1200px) {
      .goal-grid,
      .plan-grid,
      .call-grid,
      .dashboard-grid,
      .practice-grid,
      .manager-grid,
      .progress-grid,
      .audit-detail-grid,
      .module-split,
      .lesson-grid,
      .compare-grid,
      .manager-stat-grid,
      .toolbar,
      .toolbar-2,
      .audit-grid,
      .form-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 900px) {
      .app {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: relative;
        height: auto;
      }

      .main {
        padding: 18px;
      }

      .goal-grid,
      .plan-grid,
      .call-grid,
      .dashboard-grid,
      .practice-grid,
      .manager-grid,
      .progress-grid,
      .audit-detail-grid,
      .module-split,
      .lesson-grid,
      .compare-grid,
      .manager-stat-grid,
      .toolbar,
      .toolbar-2,
      .audit-grid,
      .form-grid {
        grid-template-columns: 1fr;
      }

      .milestone {
        grid-template-columns: 1fr;
      }
    }
    .small-btn.danger {
      background: #fff1f2;
      color: #be123c;
      border: 1px solid #fecdd3;
    }

    .small-btn.danger:hover {
      background: #ffe4e6;
    }

    .preview-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(4px);
      z-index: 100;
    }

    .preview-panel {
      position: fixed;
      top: 32px;
      left: 50%;
      transform: translateX(-50%);
      width: min(860px, calc(100vw - 32px));
      max-height: calc(100vh - 64px);
      overflow-y: auto;
      background: white;
      border-radius: 18px;
      border: 1px solid var(--line);
      box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
      padding: 24px;
      z-index: 101;
    }

    .preview-close {
      position: absolute;
      top: 16px;
      right: 16px;
      border: 1px solid var(--line);
      background: white;
      border-radius: 999px;
      width: 34px;
      height: 34px;
      font-size: 22px;
      cursor: pointer;
    }

    .compact-card {
      gap: 14px;
    }

    .transcript-line {
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
    }

    .transcript-line:last-child {
      border-bottom: 0;
    }

    .call-grid {
      grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    }

    .compact-card {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .load-more-wrap {
      display: flex;
      justify-content: center;
      margin-top: 22px;
    }
    /* Google authentication gate */
    .auth-screen {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 32px;
      background:
        radial-gradient(circle at 12% 18%, rgba(0, 119, 255, 0.14), transparent 26%),
        radial-gradient(circle at 88% 72%, rgba(196, 255, 0, 0.16), transparent 24%),
        #f8f4ec;
    }

    .auth-card {
      position: relative;
      width: min(430px, 100%);
      background: rgba(255, 250, 242, 0.92);
      border: 1.5px solid #151515;
      border-radius: 22px;
      padding: 42px 44px 38px;
      box-shadow: 18px 18px 0 rgba(0, 119, 255, 0.16);
    }

    .auth-label {
      position: absolute;
      top: -10px;
      left: 28px;
      background: #f8f4ec;
      padding: 0 10px;
      color: #151515;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.14em;
    }

    .auth-brand {
      display: block;
      margin-bottom: 34px;
    }

    .auth-logo {
      height: 38px;
      width: auto;
      display: block;
      margin-bottom: 34px;
    }

    .auth-mark {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      color: white;
      font-weight: 900;
      background: #0077ff;
    }

    .auth-kicker {
      display: none;
    }

    .auth-card h1 {
      margin: 0;
      color: #101828;
      font-size: 48px;
      line-height: 0.94;
      letter-spacing: -0.045em;
      max-width: 320px;
    }

    .auth-copy {
      margin: 18px 0 28px;
      color: #344054;
      line-height: 1.55;
      font-size: 15px;
    }

    .google-signin-slot {
      min-height: 50px;
      display: flex;
      align-items: center;
    }

    .auth-message {
      margin: 28px 0 0;
      padding-top: 24px;
      border-top: 1px solid #e5ded2;
      color: #475467;
      font-size: 13px;
      line-height: 1.5;
    }

    .auth-message strong {
      color: #101828;
    }

    .auth-message.error {
      color: #b42318;
      font-weight: 700;
    }

    .auth-locked {
      display: none;
    }

    body.is-authenticated .auth-screen {
      display: none;
    }

    .signed-in-card {
      position: absolute;
      left: 24px;
      bottom: 24px;
    }

    .signed-in-card button {
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(255, 255, 255, 0.08);
      color: white;
      border-radius: 999px;
      padding: 9px 14px;
      font: inherit;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }

    .signed-in-card button:hover {
      background: rgba(255, 255, 255, 0.14);
    }

    .toolbar-2 {
      display: block;
    }

    .rubric-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      width: 100%;
      margin-bottom: 18px;
    }

    .rubric-tab {
      min-width: 120px;
      min-height: 46px;
      border: 1px solid var(--line);
      background: white;
      color: var(--text);
      border-radius: 999px;
      padding: 11px 16px;
      font: inherit;
      font-size: 14px;
      font-weight: 900;
      cursor: pointer;
      text-align: center;
      white-space: nowrap;
      box-shadow: 0 10px 22px rgba(15, 42, 76, 0.05);
      transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
    }

    .rubric-tab:hover {
      transform: translateY(-1px);
      border-color: #1d70d6;
    }

    .rubric-tab.active {
      background: #123f78;
      color: white;
      border-color: #123f78;
    }

    .library-controls {
      display: grid;
      grid-template-columns: minmax(220px, 320px) minmax(320px, 520px);
      gap: 12px;
      width: 100%;
      margin-bottom: 28px;
    }

    .library-controls select,
    .library-controls input {
      min-height: 52px;
    }

    @media (max-width: 760px) {
      .library-controls {
        grid-template-columns: 1fr;
      }

      .rubric-tab {
        min-width: 0;
        flex: 1 1 calc(50% - 12px);
      }
}