
    /* ============ YEREL FONTLAR (self-hosted, internet gerektirmez) ============
   Daha önce Google Fonts CDN'den (fonts.googleapis.com) yükleniyordu.
   Sahada bağlantısız kullanımda CDN'e erişilemezse tarayıcı cihazın kendi
   sistem fontuna (Windows: Segoe UI, iOS: San Francisco, Android: Roboto)
   düşüyordu — bu da cihazlar arasında görünüm farkına neden oluyordu.
   Fontlar aynı origin üzerindeki cache'lenebilir WOFF2 dosyalarından yüklenir. */
    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 400;
      font-display: swap;
      src: url(../fonts/inter-400.woff2) format('woff2');
    }

    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 500;
      font-display: swap;
      src: url(../fonts/inter-500.woff2) format('woff2');
    }

    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 600;
      font-display: swap;
      src: url(../fonts/inter-600.woff2) format('woff2');
    }

    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 700;
      font-display: swap;
      src: url(../fonts/inter-700.woff2) format('woff2');
    }

    @font-face {
      font-family: 'Inter';
      font-style: normal;
      font-weight: 800;
      font-display: swap;
      src: url(../fonts/inter-800.woff2) format('woff2');
    }

    @font-face {
      font-family: 'Source Serif 4';
      font-style: normal;
      font-weight: 600;
      font-display: swap;
      src: url(../fonts/source-serif-4-600.woff2) format('woff2');
    }

    @font-face {
      font-family: 'Source Serif 4';
      font-style: normal;
      font-weight: 700;
      font-display: swap;
      src: url(../fonts/source-serif-4-700.woff2) format('woff2');
    }
  

    @font-face {
      font-family: 'Noto Sans';
      font-style: normal;
      font-weight: 400 800;
      font-stretch: 100%;
      font-display: swap;
      src: url(../fonts/noto-sans-400-800.woff2) format('woff2');
    }

    :root {
      /* --- kalitesan.com marka paleti --- */
      --navy: #182849;
      --navy-2: #223761;
      --navy-3: #2E4A82;
      --brand: #244C91;
      --brand-2: #3568B8;
      --brand-3: #5B8FE3;
      --gradient-end: #2C5798;
      --champagne: #E6A817;
      --champagne-2: #F5C84B;
      --white: #FFFFFF;
      --gray-50: #F9FAFB;
      --gray-100: #F3F4F6;
      --gray-300: #D1D5DB;
      --gray-500: #6B7280;
      --gray-700: #374151;
      --gray-900: #111827;
      --radius: 8px;
      --radius-lg: 14px;
      --shadow: 0 2px 12px rgba(0, 0, 0, .08);
      --shadow-md: 0 4px 24px rgba(0, 0, 0, .12);

      /* --- app rolleri (marka değişkenlerine eşlenmiş) --- */
      --ink: var(--gray-900);
      --paper: var(--gray-50);
      --paper-raised: var(--white);
      --teal-900: var(--navy);
      --teal-700: var(--navy-2);
      --teal-500: var(--brand-2);
      --amber: var(--champagne);
      --red: #B3432E;
      --green: #2F7A4F;
      --grey-line: var(--gray-300);
      --grey-text: var(--gray-500);
      --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
      --sans: 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    * {
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    html,
    body {
      margin: 0;
      padding: 0;
    }

    body {
      font-family: var(--sans);
      background: var(--paper);
      color: var(--ink);
      min-height: 100vh;
      padding-bottom: 90px;
      caret-color: transparent;
    }

    input,
    textarea,
    [contenteditable="true"] {
      caret-color: auto;
    }

    /* ---------- Top bar ---------- */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      background: #fff;
      color: var(--navy);
      padding: 14px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
      border-bottom: 1px solid var(--grey-line);
    }

    .topbar .brand {
      display: flex;
      flex-direction: column;
      line-height: 1.1;
    }

    .topbar .brand b {
      font-size: 15px;
      letter-spacing: .02em;
      color: var(--navy);
    }

    .topbar .brand span {
      font-size: 11px;
      color: var(--grey-text);
      font-family: var(--mono);
    }

    .topbar .brand img {
      height: 30px !important;
      max-width: 190px;
      object-fit: contain;
    }

    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
    }

    .topbar-trash-btn {
      position: relative;
      display: none;
      align-items: center;
      justify-content: center;
      gap: 7px;
      height: 50px;
      padding: 0 13px;
      border: 1px solid #DDE3EC;
      border-radius: 12px;
      background: #F7F8FA;
      color: #667085;
      font-family: var(--sans);
      font-size: 10px;
      font-weight: 750;
      cursor: pointer;
      transition: border-color .18s ease, background .18s ease, color .18s ease;
    }

    .topbar-trash-btn:hover {
      border-color: #B9C5D7;
      background: #EEF2F7;
      color: var(--navy);
    }

    .topbar-trash-btn svg {
      width: 16px;
      height: 16px;
    }

    .topbar-trash-count {
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      border-radius: 20px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      background: var(--navy);
      font-size: 8.5px;
      font-weight: 800;
    }

    .account-menu {
      display: none;
      grid-template-columns: 34px minmax(0, 1fr) 28px;
      align-items: center;
      gap: 10px;
      min-width: 230px;
      padding: 7px 8px;
      background: #F7F8FA;
      border: 1px solid #DDE3EC;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(24, 40, 73, .06);
      cursor: pointer;
      transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .account-menu:hover {
      border-color: #B9C5D7;
      box-shadow: 0 5px 16px rgba(24, 40, 73, .10);
      transform: translateY(-1px);
    }

    .account-avatar {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      background: linear-gradient(135deg, var(--navy), var(--gradient-end));
      font-size: 10px;
      font-weight: 800;
      letter-spacing: -.02em;
    }

    .account-copy {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    #topbarUser {
      display: block;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--navy);
      font-family: var(--sans);
      font-size: 11.5px;
      line-height: 1.2;
      font-weight: 650;
    }

    #topbarRole {
      display: block;
      color: var(--grey-text);
      font-family: var(--sans);
      font-size: 9.5px;
      line-height: 1.2;
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: none;
    }

    .account-exit {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #778195;
    }

    .account-exit svg {
      width: 16px;
      height: 16px;
    }

    .account-menu:hover .account-exit {
      color: var(--navy);
      background: #E8EDF5;
    }

    @media(max-width:600px) {
      .topbar {
        padding: 10px 12px;
      }

      .topbar .brand img {
        height: 23px !important;
        max-width: 115px;
      }

      .topbar-actions {
        gap: 6px;
      }

      .topbar-trash-btn {
        display: none !important;
      }

      .topbar-trash-btn .trash-text {
        display: none;
      }

      .topbar-trash-count {
        position: absolute;
        right: -4px;
        top: -4px;
        border: 2px solid #fff;
      }

      .account-menu {
        min-width: 0;
        max-width: 190px;
        grid-template-columns: 30px minmax(0, 1fr) 26px;
        gap: 8px;
        padding: 6px;
      }

      .account-avatar {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        font-size: 9px;
      }

      .account-exit {
        display: flex;
        width: 26px;
        height: 26px;
      }

      #topbarUser {
        font-size: 10.5px;
      }

      #topbarRole {
        font-size: 8.5px;
      }
    }

    .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
    }

    /* Home panel is click-only: no text-selection caret / I-beam cursor */
    #view-home,
    #view-home * {
      -webkit-user-select: none;
      -moz-user-select: none;
      user-select: none;
      cursor: default;
    }

    #view-home .audit-card,
    #view-home .btn-new,
    #view-home .audit-delete-btn {
      cursor: pointer;
    }

    #view-report,
    #view-report * {
      -webkit-user-select: none;
      -moz-user-select: none;
      user-select: none;
      caret-color: transparent;
      cursor: default;
    }

    #view-report button,
    #view-report .backbtn,
    #view-report .report-edit-button {
      cursor: pointer;
    }

    #view-trash,
    #view-trash * {
      -webkit-user-select: none;
      -moz-user-select: none;
      user-select: none;
      caret-color: transparent;
      cursor: default;
    }

    #view-trash button {
      cursor: pointer;
    }

    /* ---------- Views ---------- */
    .view {
      display: none;
      max-width: 720px;
      margin: 0 auto;
      padding: 16px;
    }

    .view.active {
      display: block;
    }

    #view-home {
      max-width: 1120px;
    }

    #view-pdf-preview {
      max-width: 1180px;
    }

    .pdf-preview-pages {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      padding: 12px;
      background: #E8EDF4;
      border: 1px solid #D6DEEA;
      border-radius: 14px;
      min-height: 560px
    }

    .pdf-preview-page {
      display: block;
      width: 100%;
      height: auto;
      max-width: 900px;
      background: #fff;
      box-shadow: 0 3px 16px rgba(21, 42, 79, .14)
    }

    .pdf-preview-loading {
      padding: 42px 18px;
      color: var(--grey-text);
      font-size: 13px;
      text-align: center
    }

    .pdf-preview-fallback {
      width: 100%;
      height: calc(100vh - 170px);
      min-height: 560px;
      border: 0;
      background: #fff
    }

    .home-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 24px;
      align-items: start;
    }

    .home-grid>.home-col-left,
    .home-grid>.home-col-right {
      min-width: 0;
      width: 100%;
    }

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

    /* ---------- Home / list ---------- */
    .hero {
      background: linear-gradient(135deg, var(--navy) 0%, var(--gradient-end) 100%);
      color: #EFEAE0;
      margin: 0 0 18px 0;
      padding: 26px 20px 34px 20px;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
      position: relative;
      overflow: hidden;
    }

    .hero:before {
      content: "";
      position: absolute;
      right: -40px;
      top: -40px;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(91, 143, 227, .45), transparent 70%);
    }

    .hero h1 {
      font-size: 22px;
      margin: 0 0 4px 0;
      font-weight: 700;
    }

    .hero p {
      margin: 0;
      color: #B7C8E8;
      font-size: 13px;
    }

    .btn-new {
      margin-top: 16px;
      background: linear-gradient(135deg, var(--champagne), var(--champagne-2));
      color: var(--navy);
      border: none;
      font-family: var(--sans);
      font-weight: 700;
      font-size: 14px;
      padding: 13px 20px;
      border-radius: var(--radius);
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      cursor: pointer;
    }

    .btn-new:active {
      transform: scale(.98);
    }

    .section-label {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--grey-text);
      margin: 22px 0 10px 2px;
    }

    .audit-card {
      background: var(--paper-raised);
      border: 1px solid #DDE3EC;
      border-radius: 14px;
      box-shadow: 0 3px 12px rgba(24, 40, 73, .055);
      padding: 16px 17px;
      margin-bottom: 11px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
      cursor: pointer;
      transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .audit-card:hover {
      border-color: #B9C5D7;
      box-shadow: 0 8px 22px rgba(24, 40, 73, .09);
      transform: translateY(-1px);
    }

    .audit-card .info {
      min-width: 0;
      flex: 1;
      overflow: hidden;
    }

    .audit-title-row {
      display: flex;
      align-items: center;
      gap: 9px;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }

    .audit-card .info b {
      font-size: 15px;
      color: var(--navy);
      line-height: 1.2;
    }

    .audit-result {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 7px;
      border-radius: 20px;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .audit-result::before {
      content: "";
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: currentColor;
    }

    .audit-result.good {
      background: #E4F1E8;
      color: var(--green);
    }

    .audit-result.bad {
      background: #F7E4DF;
      color: var(--red);
    }

    .audit-result.draft {
      background: #EEF1F5;
      color: var(--grey-text);
    }

    .audit-result.locked,
    .score-chip.locked {
      background: #FFF1C7;
      color: #946200;
    }

    .score-chip.locked,
    .score-chip.ready {
      max-width: 112px;
      font-size: 10.5px;
      line-height: 1.25;
    }

    .audit-result.ready,
    .score-chip.ready {
      background: #E4F1E8;
      color: var(--green);
    }

    .audit-card.edit-locked {
      cursor: not-allowed;
      border-color: #E7C96E;
      background: #FFFCF3;
    }

    .audit-card.edit-locked:hover {
      transform: none;
      box-shadow: 0 3px 12px rgba(24, 40, 73, .055);
    }

    .audit-card.edit-ready {
      border-color: #83C99F;
      animation: editReadyPulse 1.6s ease 2;
    }

    .audit-lock-note {
      display: block;
      margin-top: 7px;
      color: #946200;
      font-size: 10.5px;
      font-weight: 700;
    }

    .audit-ready-note {
      display: block;
      margin-top: 7px;
      color: var(--green);
      font-size: 10.5px;
      font-weight: 700;
    }

    @keyframes editReadyPulse {
      0%, 100% { box-shadow: 0 3px 12px rgba(24, 40, 73, .055); }
      50% { box-shadow: 0 0 0 5px rgba(45, 154, 96, .14), 0 8px 22px rgba(24, 40, 73, .09); }
    }

    .audit-details {
      display: flex;
      align-items: center;
      gap: 7px 14px;
      flex-wrap: wrap;
    }

    .audit-detail {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #667085;
      font-family: var(--sans);
      font-size: 10.5px;
      font-weight: 500;
    }

    .audit-detail svg {
      width: 13px;
      height: 13px;
      color: #8B96A8;
      flex-shrink: 0;
    }

    .audit-updated {
      margin-top: 7px;
      color: #98A1B0;
      font-family: var(--sans);
      font-size: 9.5px;
    }

    .password-input-wrap {
      position: relative
    }

    .password-input-wrap input {
      padding-right: 54px
    }

    .password-toggle {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 38px;
      height: 38px;
      border: 0;
      background: transparent;
      color: var(--navy);
      padding: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .password-toggle svg {
      width: 21px;
      height: 21px
    }

    .form-preview-actions {
      position: static;
      width: 100%;
      margin: 0;
      display: none;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      padding: 0 0 10px;
      background: var(--paper-raised);
      border-bottom: 1px solid var(--grey-line);
    }

    .form-preview-actions .btn {
      min-width: 0;
      background: var(--navy);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .form-preview-actions .btn:disabled {
      opacity: .48;
      cursor: not-allowed;
      background: #6F7D96;
    }

    .approval-preview-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin: 16px 0 10px;
    }

    .approval-preview-actions .btn {
      width: 100%;
      min-width: 0;
      min-height: 46px;
      border: 1px solid var(--navy);
      background: var(--navy);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .approval-card .approval-actions .btn {
      background: var(--navy);
      border-color: var(--navy);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px
    }

    .approval-preview-actions svg,
    .approval-actions .btn svg {
      width: 17px;
      height: 17px;
      flex: 0 0 auto
    }

    .approval-preview-actions .preview-label span+span::before {
      content: " "
    }

    .completed-pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      flex-wrap: nowrap;
      width: 100%;
      margin: 18px 0 8px
    }

    .completed-pagination button {
      min-width: 38px;
      height: 38px;
      padding: 0 11px;
      border: 1px solid #D6DEEA;
      border-radius: 10px;
      background: #fff;
      color: var(--navy);
      font-weight: 750;
      cursor: pointer;
      flex: 0 0 auto
    }

    .completed-pagination button.active {
      background: var(--navy);
      border-color: var(--navy);
      color: #fff
    }

    .completed-pagination button:disabled {
      opacity: .42;
      cursor: not-allowed
    }

    .completed-pagination .pagination-status {
      min-width: 48px;
      color: var(--grey-text);
      font-size: 12px;
      font-weight: 750;
      text-align: center;
      white-space: nowrap;
    }

    @media (max-width: 700px) {
      .completed-pagination { gap: 4px; }
      .completed-pagination button {
        min-width: 34px;
        height: 36px;
        padding: 0 7px;
        border-radius: 9px;
      }
      .completed-pagination .pagination-label { display: none; }
    }

    @media (max-width: 380px) {
      .completed-pagination { gap: 3px; }
      .completed-pagination button {
        min-width: 29px;
        height: 34px;
        padding: 0 5px;
        font-size: 12px;
      }
      .completed-pagination .pagination-status {
        min-width: 38px;
        font-size: 10px;
      }
    }

    .audit-card-side {
      display: flex;
      align-items: center;
      gap: 9px;
      flex-shrink: 0;
    }

    .audit-delete-btn {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: 1px solid transparent;
      color: #98A1B0;
      padding: 0;
      border-radius: 9px;
      flex-shrink: 0;
    }

    .audit-delete-btn svg {
      width: 15px;
      height: 15px;
    }

    .audit-delete-btn:hover {
      color: var(--red);
      background: #F7E4DF;
      border-color: #EFCFC7;
    }

    .score-chip {
      font-family: var(--sans);
      font-weight: 800;
      font-size: 17px;
      padding: 8px 10px;
      border-radius: 10px;
      min-width: 64px;
      text-align: center;
    }

    .score-chip.good {
      background: #E4F1E8;
      color: var(--green);
    }

    .score-chip.mid {
      background: #FBEEDD;
      color: var(--amber);
    }

    .score-chip.bad {
      background: #F7E4DF;
      color: var(--red);
    }

    .score-chip.draft {
      background: #EDEBE4;
      color: var(--grey-text);
    }

    .empty-note {
      text-align: center;
      padding: 30px 10px;
      color: var(--grey-text);
      font-size: 13.5px;
    }

    .completed-panel-header {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 2px 2px 14px;
      margin-bottom: 4px;
      border-bottom: 1px solid #DDE3EC;
    }

    .completed-panel-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      background: linear-gradient(135deg, #197A48, #43A66F);
      box-shadow: 0 4px 12px rgba(24, 40, 73, .16);
    }

    .completed-panel-icon svg {
      width: 18px;
      height: 18px;
    }

    .completed-panel-copy {
      min-width: 0;
      flex: 1;
    }

    .completed-panel-copy h2 {
      margin: 0;
      color: var(--navy);
      font-size: 16px;
      line-height: 1.2;
    }

    .completed-panel-copy p {
      margin: 3px 0 0;
      color: var(--grey-text);
      font-size: 10.5px;
    }

    .completed-total {
      padding: 5px 9px;
      border-radius: 20px;
      background: #EEF2F8;
      color: var(--navy);
      font-size: 10px;
      font-weight: 750;
      white-space: nowrap;
    }

    .completed-filters {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin: 10px 0 8px;
    }

    .completed-filters select {
      min-width: 0;
      height: 38px;
      padding: 0 34px 0 11px;
      border: 1px solid #D8E0EB;
      border-radius: 10px;
      background: #fff;
      color: var(--navy);
      font-size: 11px;
      font-weight: 650;
    }

    .completed-filters .analytics-month-picker summary {
      height: 38px;
      padding: 0 11px;
      border-color: #D8E0EB
    }

    .completed-filters .analytics-month-options {
      top: 44px;
      min-width: 100%
    }

    .ongoing-panel-header {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 2px 2px 14px;
      margin: 22px 0 4px;
      border-bottom: 1px solid #E4D9B8;
    }

    .ongoing-panel-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--navy);
      background: linear-gradient(135deg, #F2B819, #F5D466);
      box-shadow: 0 4px 12px rgba(218, 161, 20, .16);
    }

    .ongoing-panel-icon svg {
      width: 18px;
      height: 18px;
    }

    .ongoing-panel-copy {
      min-width: 0;
      flex: 1;
    }

    .ongoing-panel-copy h2 {
      margin: 0;
      color: var(--navy);
      font-size: 16px;
      line-height: 1.2;
    }

    .ongoing-panel-copy p {
      margin: 3px 0 0;
      color: var(--grey-text);
      font-size: 10.5px;
    }

    .ongoing-total {
      padding: 5px 9px;
      border-radius: 20px;
      background: #FFF3CE;
      color: #8A6400;
      font-size: 10px;
      font-weight: 750;
      white-space: nowrap;
    }

    .pending-panel-header {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 2px 2px 14px;
      margin: 24px 0 4px;
      border-bottom: 1px solid #C9D8EB;
    }

    .pending-panel-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      background: linear-gradient(135deg, #183A6B, #4D7FBE);
      box-shadow: 0 4px 12px rgba(35, 76, 130, .18);
      font-size: 18px;
      font-weight: 800;
    }

    .pending-panel-copy {
      min-width: 0;
      flex: 1
    }

    .pending-panel-copy h2 {
      margin: 0;
      color: var(--navy);
      font-size: 16px;
      line-height: 1.2
    }

    .pending-panel-copy p {
      margin: 3px 0 0;
      color: var(--grey-text);
      font-size: 10.5px
    }

    .pending-total {
      padding: 5px 9px;
      border-radius: 20px;
      background: #E8F0FA;
      color: #244D82;
      font-size: 10px;
      font-weight: 750;
      white-space: nowrap;
    }

    .home-col-left .audit-card {
      border-left: 4px solid #E9B322;
      background: linear-gradient(90deg, #FFFCF2 0, #fff 22%);
    }

    .home-col-left .audit-card.audit-pending {
      border-left: 4px solid #3973B7;
      background: linear-gradient(90deg, #F2F7FD 0, #fff 22%);
    }

    .home-col-right .audit-card.audit-success {
      border-left: 4px solid #2D9A5F;
      background: linear-gradient(90deg, #F2FBF5 0, #fff 22%);
    }

    .home-col-right .audit-card.audit-failed {
      border-left: 4px solid #D4513D;
      background: linear-gradient(90deg, #FFF5F2 0, #fff 22%);
    }

    .month-group {
      margin: 0 0 20px;
    }

    .month-group-title {
      font-family: var(--sans);
      font-size: 11px;
      font-weight: 750;
      color: var(--navy);
      background: transparent;
      padding: 13px 3px 8px;
      border-radius: 0;
      margin-bottom: 2px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .month-group-title .cnt {
      color: var(--grey-text);
      font-size: 9.5px;
      font-weight: 650;
      background: #F0F2F5;
      border-radius: 20px;
      padding: 3px 7px;
    }

    .trash-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 16px;
      padding: 16px 18px;
      border: 1px solid #DDE3EC;
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 3px 12px rgba(24, 40, 73, .055);
    }

    .trash-header-main {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .trash-header-icon {
      width: 38px;
      height: 38px;
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      background: linear-gradient(135deg, var(--navy), var(--gradient-end));
    }

    .trash-header-icon svg {
      width: 18px;
      height: 18px;
    }

    .trash-header h2 {
      margin: 0;
      color: var(--navy);
      font-size: 17px;
    }

    .trash-header p {
      margin: 3px 0 0;
      color: var(--grey-text);
      font-size: 10.5px;
    }

    .trash-back-btn {
      flex-shrink: 0;
      padding: 9px 12px;
      border: 1px solid #D7DEE9;
      border-radius: 9px;
      background: #F7F8FA;
      color: var(--navy);
      font-family: var(--sans);
      font-size: 10.5px;
      font-weight: 750;
      cursor: pointer;
    }

    .trash-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 16px 17px;
      margin-bottom: 10px;
      background: #fff;
      border: 1px solid #DDE3EC;
      border-radius: 14px;
      box-shadow: 0 3px 12px rgba(24, 40, 73, .045);
    }

    .trash-card-info {
      min-width: 0;
      flex: 1;
    }

    .trash-card-info b {
      display: block;
      color: var(--navy);
      font-size: 14px;
      margin-bottom: 5px;
    }

    .trash-card-meta {
      color: #667085;
      font-size: 10.5px;
      line-height: 1.55;
    }

    .trash-expiry {
      margin-top: 6px;
      color: var(--red);
      font-size: 9.5px;
      font-weight: 700;
    }

    .trash-actions {
      display: flex;
      align-items: center;
      gap: 7px;
      flex-shrink: 0;
    }

    .trash-action-btn {
      padding: 8px 10px;
      border-radius: 9px;
      font-family: var(--sans);
      font-size: 10px;
      font-weight: 750;
      cursor: pointer;
    }

    .trash-action-btn.restore {
      border: 1px solid #BFDAC9;
      background: #EAF5EE;
      color: var(--green);
    }

    .trash-action-btn.remove {
      border: 1px solid #EBCBC4;
      background: #FBEEEB;
      color: var(--red);
    }

    .trash-empty {
      text-align: center;
      padding: 46px 16px;
      color: var(--grey-text);
      border: 1px dashed #CDD5E1;
      border-radius: 14px;
      background: #FAFBFC;
      font-size: 12px;
    }

    @media(max-width:600px) {
      .audit-card {
        padding: 14px;
        align-items: flex-start;
      }

      .completed-filters {
        grid-template-columns: 1fr 1fr
      }

      .audit-card-side {
        flex-direction: column;
        align-items: flex-end;
      }

      .audit-details {
        gap: 6px 10px;
      }

      .score-chip {
        font-size: 15px;
        min-width: 58px;
        padding: 7px 8px;
      }

      .trash-header {
        align-items: flex-start;
        padding: 14px;
      }

      .trash-header p {
        max-width: 190px;
      }

      .trash-card {
        align-items: flex-start;
        flex-direction: column;
      }

      .trash-actions {
        width: 100%;
      }

      .trash-action-btn {
        flex: 1;
      }
    }

    /* ---------- Form header ---------- */
    .form-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
    }

    .backbtn {
      background: none;
      border: 1px solid var(--grey-line);
      border-radius: 8px;
      width: 36px;
      height: 36px;
      font-size: 18px;
      cursor: pointer;
      color: var(--teal-900);
      flex-shrink: 0;
    }

    .form-header h2 {
      font-size: 17px;
      margin: 0;
    }

    .form-header .sub {
      font-size: 12px;
      color: var(--grey-text);
      font-family: var(--mono);
    }

    .card {
      background: var(--paper-raised);
      border: 1px solid var(--grey-line);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow);
      padding: 16px;
      margin-bottom: 14px;
    }

    label.field-label {
      display: block;
      font-size: 12.5px;
      font-weight: 700;
      color: var(--teal-900);
      margin-bottom: 6px;
    }

    .required-mark {
      color: var(--red);
      font-weight: 700;
    }

    .field-note {
      font-size: 11px;
      color: var(--grey-text);
      margin-top: 4px;
    }

    input[type=text],
    input[type=password],
    input[type=date],
    input[type=time],
    select,
    textarea {
      width: 100%;
      padding: 11px 12px;
      border: 1px solid var(--grey-line);
      border-radius: 8px;
      font-size: 14.5px;
      font-family: var(--sans);
      background: #FCFBF8;
      color: var(--ink);
    }

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

    .grid2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .field {
      margin-bottom: 12px;
    }

    /* ---------- Section nav (A B C D) ---------- */
    .tabs {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 14px;
    }

    .tab {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      font-family: var(--sans);
      font-size: 13.5px;
      font-weight: 600;
      padding: 13px 15px;
      border-radius: var(--radius);
      border: 1px solid var(--grey-line);
      background: var(--paper-raised);
      color: var(--ink);
      cursor: pointer;
    }

    .tab.active {
      border-color: var(--teal-900);
      border-width: 2px;
      padding: 12px 14px;
    }

    .tab .n {
      font-family: var(--mono);
      font-size: 12px;
      font-weight: 700;
      color: var(--grey-text);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .tab.complete {
      background: #E4F1E8;
      border-color: var(--green);
      color: #1F5C38;
    }

    .tab.complete .n {
      color: var(--green);
    }

    .section-block {
      display: none;
    }

    .section-block.active {
      display: block;
    }

    .section-title {
      font-size: 14.5px;
      font-weight: 700;
      color: var(--teal-900);
      margin-bottom: 8px;
      padding-bottom: 8px;
      border-bottom: 2px solid var(--teal-900);
    }

    .section-desc {
      font-size: 12px;
      color: var(--grey-text);
      margin-bottom: 14px;
    }

    .analytics-year-group {
      margin-bottom: 14px;
    }

    .analytics-year-group:last-child {
      margin-bottom: 0;
    }

    .analytics-year-group h4 {
      font-size: 12.5px;
      font-weight: 700;
      color: var(--teal-900);
      margin: 0 0 8px;
      text-transform: uppercase;
      letter-spacing: .02em;
    }

    .section-questions-box {
      border: 1.5px solid var(--grey-line);
      border-radius: var(--radius-lg);
      padding: 14px 14px 4px;
      margin-bottom: 10px;
      background: rgba(0, 0, 0, 0.012);
    }

    .section-questions-box .qcard:last-child {
      margin-bottom: 0;
    }

    .qcard {
      background: var(--paper-raised);
      border: 1px solid var(--grey-line);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow);
      padding: 14px;
      margin-bottom: 10px;
    }

    .qcard .qid {
      font-family: var(--mono);
      font-size: 11.5px;
      color: var(--teal-500);
      font-weight: 700;
    }

    .qcard .qtext {
      font-size: 14px;
      line-height: 1.42;
      margin: 4px 0 12px 0;
      white-space: pre-line;
    }

    .answer-row {
      display: flex;
      gap: 8px;
      margin-bottom: 8px;
    }

    .ans-btn {
      flex: 1;
      padding: 10px 4px;
      border-radius: 8px;
      border: 1.5px solid var(--grey-line);
      background: #FCFBF8;
      font-family: var(--sans);
      font-weight: 700;
      font-size: 12.5px;
      cursor: pointer;
      text-align: center;
      color: var(--grey-text);
    }

    .ans-btn[data-v="uygun"].sel,
    .ans-btn[data-v="tam"].sel {
      background: var(--green);
      border-color: var(--green);
      color: #fff;
    }

    .ans-btn[data-v="degil"].sel,
    .ans-btn[data-v="minor"].sel {
      background: var(--red);
      border-color: var(--red);
      color: #fff;
    }

    .ans-btn[data-v="dd"].sel {
      background: #8B8778;
      border-color: #8B8778;
      color: #fff;
    }

    .ans-btn[data-v="kritik"].sel,
    .ans-btn[data-v="major"].sel {
      background: #7A1F14;
      border-color: #7A1F14;
      color: #fff;
    }

    .obs-toggle {
      font-size: 12px;
      color: var(--teal-500);
      cursor: pointer;
      font-weight: 600;
      margin-top: 2px;
      display: inline-block;
    }

    .obs-label {
      font-size: 12px;
      color: var(--teal-500);
      font-weight: 600;
      margin-top: 8px;
      display: inline-block;
    }

    .obs-box {
      display: block;
      margin-top: 8px;
    }

    .obs-box.open {
      display: block;
    }

    .obs-item {
      position: relative;
      margin-bottom: 8px;
    }

    .obs-item-title {
      font-size: 11px;
      color: var(--grey-text);
      font-weight: 700;
      margin: 0 0 4px 2px;
    }

    .obs-item textarea {
      padding-right: 38px;
      min-height: 72px;
    }

    .obs-item-remove {
      position: absolute;
      right: 8px;
      top: 28px;
      width: 26px;
      height: 26px;
      border: 1px solid #E5B9B2;
      border-radius: 7px;
      background: #FFF3F0;
      color: var(--red);
      cursor: pointer;
      font-size: 17px;
      line-height: 22px;
      font-weight: 700;
    }

    .obs-add-btn {
      width: 100%;
      padding: 9px 12px;
      border: 1.5px dashed #AEBBCF;
      border-radius: 9px;
      background: #F7F9FC;
      color: var(--navy);
      font-family: var(--sans);
      font-size: 12.5px;
      font-weight: 750;
      cursor: pointer;
    }

    .subfields {
      display: none;
      margin-top: 10px;
      border-top: 1px dashed var(--grey-line);
      padding-top: 10px;
    }

    .subfields.open {
      display: block;
    }

    .subfields .field {
      margin-bottom: 8px;
    }

    .subfields .field label {
      font-size: 11.5px;
      color: var(--grey-text);
      display: block;
      margin-bottom: 3px;
    }

    .subfields .field input {
      padding: 8px 10px;
      font-size: 13px;
    }

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

    .photo-thumb {
      width: 56px;
      height: 56px;
      border-radius: 8px;
      object-fit: cover;
      border: 1px solid var(--grey-line);
      display: block;
    }

    .photo-thumb-wrap {
      position: relative;
      width: 56px;
      height: 56px;
    }

    .photo-thumb-wrap .photo-thumb {
      cursor: pointer;
    }

    .photo-remove {
      position: absolute;
      top: -6px;
      right: -6px;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--red);
      color: #fff;
      font-size: 12px;
      line-height: 16px;
      text-align: center;
      cursor: pointer;
      border: 2px solid #fff;
      font-weight: 700;
    }

    .photo-add {
      width: 56px;
      height: 56px;
      border-radius: 8px;
      border: 1.5px dashed var(--grey-line);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--grey-text);
      font-size: 20px;
      cursor: pointer;
    }

    .crop-modal {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(9, 20, 42, .78);
    }

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

    .crop-dialog {
      width: min(620px, 100%);
      max-height: calc(100vh - 36px);
      overflow: auto;
      background: #fff;
      border-radius: 16px;
      padding: 16px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    }

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

    .crop-head h3 {
      margin: 0;
      color: var(--navy);
      font-size: 18px;
    }

    .crop-head p {
      margin: 3px 0 0;
      color: var(--grey-text);
      font-size: 11.5px;
    }

    .crop-close {
      border: 0;
      background: #EEF2F8;
      color: var(--navy);
      width: 34px;
      height: 34px;
      border-radius: 9px;
      font-size: 20px;
      cursor: pointer;
    }

    .crop-stage {
      width: 100%;
      background: #111827;
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      touch-action: none;
    }

    #cropCanvas {
      display: block;
      width: 100%;
      height: auto;
      max-height: 58vh;
      touch-action: none;
      cursor: grab;
    }

    #cropCanvas.dragging {
      cursor: grabbing;
    }

    .crop-zoom-row {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 8px;
      margin: 13px 0 10px;
    }

    .crop-zoom-row span {
      font-size: 12px;
      font-weight: 700;
      color: var(--navy);
    }

    #cropZoom {
      width: 100%;
      accent-color: var(--navy);
    }

    .crop-zoom-btn {
      width: 34px;
      height: 34px;
      border: 1px solid var(--grey-line);
      border-radius: 9px;
      background: #F7F9FC;
      color: var(--navy);
      font-size: 20px;
      font-weight: 800;
      cursor: pointer;
    }

    .crop-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .crop-btn {
      border: 1px solid var(--grey-line);
      border-radius: 10px;
      padding: 11px 10px;
      background: #F7F8FA;
      color: var(--navy);
      font-family: var(--sans);
      font-weight: 700;
      cursor: pointer;
    }

    .crop-btn.primary {
      background: var(--navy);
      color: #fff;
      border-color: var(--navy);
    }

    .crop-btn.danger {
      background: #FFF0EC;
      color: var(--red);
      border-color: #F2C4B8;
    }

    @media(max-width:600px) {
      .crop-modal {
        padding: 10px;
      }

      .crop-dialog {
        padding: 12px;
        border-radius: 14px;
      }

      .crop-actions {
        grid-template-columns: 1fr 1fr;
      }
    }

    /* ---------- Score summary card ---------- */
    .score-card {
      background: linear-gradient(135deg, var(--navy), var(--gradient-end));
      color: #EFEAE0;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
      padding: 18px;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .score-card .big {
      font-family: var(--mono);
      font-size: 34px;
      font-weight: 700;
    }

    .score-card .lbl {
      font-size: 11px;
      color: #A9C0E8;
      text-transform: uppercase;
      letter-spacing: .06em;
    }

    .score-card .stats {
      display: flex;
      gap: 16px;
      font-family: var(--mono);
      font-size: 12px;
    }

    .score-card .stats div b {
      display: block;
      font-size: 16px;
    }

    /* ---------- footer actions ---------- */
    .footer-actions {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 40;
      background: var(--paper-raised);
      border-top: 1px solid var(--grey-line);
      padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
      display: none;
      flex-direction: column;
      gap: 10px;
      max-width: 720px;
      margin: 0 auto;
    }

    .footer-main-actions {
      display: flex;
      gap: 10px;
      width: 100%
    }

    .footer-actions .btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px
    }

    .btn {
      flex: 1;
      padding: 13px;
      border-radius: var(--radius);
      border: none;
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
      font-family: var(--sans);
    }

    .btn.secondary {
      background: #EDEBE4;
      color: var(--teal-900);
    }

    .btn.primary {
      background: var(--teal-900);
      color: #fff;
    }

    .btn.finish {
      background: var(--navy);
      color: #fff;
    }

    .btn .btn-icon {
      width: 18px;
      height: 18px;
      flex: 0 0 18px;
      vertical-align: middle
    }

    .toast {
      position: fixed;
      bottom: 92px;
      left: 50%;
      transform: translate(-50%, 14px);
      width: min(440px, calc(100vw - 28px));
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      background: #fff;
      color: var(--navy);
      padding: 13px 15px;
      border: 1px solid #DCE3ED;
      border-left: 5px solid #3D78C5;
      border-radius: 16px;
      box-shadow: 0 16px 45px rgba(20, 38, 70, .2);
      font-size: 13px;
      z-index: 9999;
      opacity: 0;
      pointer-events: none;
      transition: opacity .25s, transform .25s;
    }

    .toast.show {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    .toast.success { border-left-color: #2D9A60; }
    .toast.error { border-left-color: #D84A3A; }
    .toast.warning { border-left-color: #E4A719; }
    .toast.info { border-left-color: #3D78C5; }

    .toast-icon {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: #EAF2FD;
      color: #2E67B1;
    }

    .toast.success .toast-icon { background: #E4F1E8; color: #237A4A; }
    .toast.error .toast-icon { background: #FBE8E4; color: #C13D2F; }
    .toast.warning .toast-icon { background: #FFF1C7; color: #946200; }
    .toast-icon svg { width: 22px; height: 22px; }
    .toast-copy { min-width: 0; }
    .toast-title {
      display: block;
      margin-bottom: 2px;
      font-size: 13px;
      font-weight: 800;
      color: var(--navy);
    }
    .toast-message {
      display: block;
      color: #667085;
      font-size: 12.5px;
      line-height: 1.4;
    }

    /* ---------- Yeni yönetici özeti ekranı ---------- */

    .report-view {
      max-width: 760px;
    }

    .report-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 18px;
    }

    .report-head-info {
      flex: 1;
      min-width: 0;
    }

    .report-head-info h2 {
      margin: 0 0 4px;
      color: var(--navy);
      font-size: 21px;
    }

    .report-head-info .sub {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .report-status-badge {
      flex-shrink: 0;
      padding: 7px 11px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase;
      background: #F2F4F7;
      color: var(--grey-text);
      border: 1px solid var(--grey-line);
    }

    .report-status-badge.is-success {
      color: var(--green);
      background: #EDF8F1;
      border-color: #B8DEC5;
    }

    .report-status-badge.is-warning {
      color: #9A6700;
      background: #FFF7E0;
      border-color: #EBD290;
    }

    .report-status-badge.is-danger {
      color: var(--red);
      background: #FFF0EE;
      border-color: #E9B9B3;
    }

    .report-status-badge.is-period {
      color: var(--navy);
      background: #EEF3FA;
      border-color: #CAD6E8;
    }

    .report-score-card {
      padding: 22px;
      margin-bottom: 16px;
      border-radius: 18px;
      color: #fff;
      background: linear-gradient(135deg, var(--navy), var(--gradient-end));
      box-shadow: var(--shadow-md);
    }

    .report-score-main {
      margin-bottom: 20px;
    }

    .report-score-overview {
      display: grid;
      grid-template-columns: minmax(0, .9fr) minmax(200px, 1.25fr) minmax(0, 1fr);
      gap: 20px;
      align-items: start;
      margin-bottom: 14px
    }

    .report-score-overview-item {
      display: grid;
      grid-template-rows: auto 62px auto;
      text-align: center;
      min-width: 0
    }

    .report-score-overview-item:first-child {
      text-align: left
    }

    .report-score-overview-item:last-child {
      text-align: right
    }

    .report-score-overview-item strong {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: clamp(25px, 3vw, 42px);
      line-height: 1.05;
      color: #fff;
      overflow-wrap: normal;
      word-break: normal;
      hyphens: none;
      min-width: 0
    }

    .report-score-overview-item:first-child strong {
      justify-content: flex-start
    }

    .report-score-overview-item:last-child strong {
      justify-content: flex-end;
      text-transform: uppercase;
      font-size: clamp(22px, 2.5vw, 36px);
      white-space: nowrap
    }

    #liveScoreBranch {
      font-size: clamp(24px, 3vw, 40px);
      text-align: center
    }

    #reportScoreResult.is-success,
    #liveScoreResult.is-success {
      color: #6ED493
    }

    #reportScoreResult.is-danger,
    #liveScoreResult.is-danger {
      color: #FF8C7D
    }

    .report-score-overview-item small {
      display: block;
      margin-top: 5px;
      color: #C8D5E9;
      font-size: 10px;
      line-height: 1.35
    }

    #liveScoreCard .report-score-overview {
      grid-template-columns: minmax(130px, .9fr) minmax(220px, 1.2fr) minmax(170px, 1fr);
      gap: 24px;
    }

    #liveScoreCard .report-score-overview-item strong {
      height: 62px;
      font-size: clamp(24px, 2.25vw, 34px);
      line-height: 1.04;
      overflow-wrap: normal;
      word-break: keep-all;
    }

    #liveScoreCard .report-score-overview-item:last-child strong {
      font-size: clamp(21px, 2vw, 31px);
      white-space: nowrap;
    }

    .report-eyebrow,
    .report-card-kicker {
      margin-bottom: 5px;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .11em;
      text-transform: uppercase;
    }

    .report-eyebrow {
      color: #BFD0EC;
    }

    .report-card-kicker {
      color: var(--grey-text);
    }

    .report-score-value {
      margin: 0;
      font-family: var(--mono);
      font-size: 46px;
      font-weight: 800;
      line-height: 1;
    }

    .report-score-track {
      width: 100%;
      height: 8px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(255, 255, 255, .2);
    }

    .report-score-fill {
      width: 0;
      height: 100%;
      border-radius: inherit;
      background: #E7C77C;
      transition: width .4s ease;
    }

    .report-stat-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }

    .report-stat {
      padding: 11px 12px;
      border-radius: 12px;
      background: rgba(255, 255, 255, .09);
      border: 1px solid rgba(255, 255, 255, .12);
    }

    .report-stat b {
      display: block;
      margin-bottom: 3px;
      font-family: var(--mono);
      font-size: 19px;
    }

    .report-stat span {
      color: #CBD7EA;
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    .report-summary-card,
    .report-result-card,
    .report-output-card {
      margin-bottom: 14px;
      padding: 20px;
      border: 1px solid var(--grey-line);
      border-radius: 16px;
      background: var(--paper-raised);
      box-shadow: var(--shadow-sm);
    }

    .report-summary-card h3,
    .report-result-card h3,
    .report-output-card h3 {
      margin: 0;
      color: var(--navy);
      font-size: 16px;
    }

    .report-card-heading {
      margin-bottom: 15px;
    }

    .performance-row {
      padding: 12px 0;
      border-bottom: 1px solid var(--grey-line);
    }

    .performance-row:last-child {
      padding-bottom: 0;
      border-bottom: none;
    }

    .performance-row-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 8px;
    }

    .performance-row-title {
      color: var(--ink);
      font-size: 13px;
      font-weight: 650;
    }

    .performance-row-value {
      flex-shrink: 0;
      font-family: var(--mono);
      font-size: 13px;
      font-weight: 800;
    }

    .performance-track {
      width: 100%;
      height: 7px;
      overflow: hidden;
      border-radius: 999px;
      background: #E9EDF2;
    }

    .performance-fill {
      height: 100%;
      border-radius: inherit;
    }

    .performance-fill.good {
      background: var(--green);
    }

    .performance-fill.medium {
      background: #D99A24;
    }

    .performance-fill.bad {
      background: var(--red);
    }

    .report-result-card {
      display: flex;
      align-items: flex-start;
      gap: 14px;
    }

    .report-result-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 38px;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      color: #fff;
      background: var(--navy);
      font-size: 17px;
      font-weight: 800;
    }

    .report-result-card p {
      margin: 7px 0 0;
      color: var(--grey-text);
      font-size: 13px;
      line-height: 1.55;
    }

    .report-output-help {
      margin: 8px 0 16px;
      color: var(--grey-text);
      font-size: 12px;
      line-height: 1.5;
    }

    .report-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .report-actions .btn {
      width: 100%;
      min-height: 46px;
      padding: 12px;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: #fff !important;
      background: var(--navy) !important;
      border-color: var(--navy) !important;
    }

    .report-actions .report-preview-button {
      border: 1px solid var(--navy);
      background: var(--navy);
      color: #fff;
    }

    .report-actions .btn-icon,
    .report-edit-button .btn-icon {
      width: 17px;
      height: 17px;
      flex: 0 0 auto
    }

    .report-edit-button {
      width: 100%;
      min-height: 48px;
      margin-bottom: 18px;
      border: 1px solid var(--grey-line);
      border-radius: 13px;
      color: #fff;
      background: var(--navy);
      font-family: var(--sans);
      font-size: 13px;
      font-weight: 750;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    @media (max-width:600px) {
      .report-head {
        align-items: flex-start;
      }

      .report-head-info h2 {
        font-size: 18px;
      }

      .report-status-badge {
        padding: 6px 8px;
        font-size: 9px;
      }

      .report-score-card,
      .report-summary-card,
      .report-result-card,
      .report-output-card {
        padding: 16px;
        border-radius: 14px;
      }

      .report-score-value {
        font-size: 39px;
      }

      .report-score-overview {
        grid-template-columns: minmax(0, .85fr) minmax(105px, 1.25fr) minmax(0, 1fr);
        gap: 7px
      }

      .report-score-overview-item {
        grid-template-rows: auto 44px auto
      }

      .report-score-overview-item strong {
        font-size: clamp(18px, 6vw, 27px)
      }

      .report-score-overview-item:last-child strong {
        font-size: clamp(15px, 4.6vw, 21px);
        white-space: normal
      }

      #liveScoreBranch {
        font-size: clamp(18px, 5.5vw, 25px)
      }

      .report-score-overview-item small {
        font-size: 8px
      }

      .report-stat-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px
      }

      .approval-preview-actions .preview-label {
        display: flex;
        flex-direction: column;
        line-height: 1.18
      }

      .approval-preview-actions .preview-label span+span::before {
        content: ""
      }

      .report-stat {
        padding: 10px 8px;
      }

      .report-stat b {
        font-size: 17px;
      }

      .report-stat span {
        font-size: 7px;
      }

      .report-actions {
        grid-template-columns: 1fr;
      }
    }

    /* ---------- print-only report container (Klasik Kurumsal) ---------- */
    .print-container {
      display: none;
      font-family: var(--sans);
      color: #242424;
    }

    .pr-crest {
      text-align: center;
      margin-bottom: 18px;
    }

    .pr-crest img {
      height: 30px;
      width: auto;
      display: block;
      margin: 0 auto 6px auto;
    }

    .pr-crest small {
      display: block;
      font-size: 10px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--champagne);
      font-weight: 600;
    }

    .pr-brandbar {
      display: flex;
      justify-content: flex-start;
      margin-bottom: 10px;
    }

    .pr-brandbar img {
      height: 14px;
      width: auto;
      display: block;
    }

    .pr-client-logo {
      text-align: center;
      margin-bottom: 12px;
    }

    .pr-client-logo img {
      height: 44px;
      width: auto;
      display: block;
      margin: 0 auto;
    }

    .pr-rule {
      border: none;
      border-top: 1px solid var(--navy);
      border-bottom: 1px solid var(--navy);
      height: 3px;
      margin: 0 0 22px 0;
    }

    .pr-doctitle {
      text-align: center;
      margin-bottom: 22px;
    }

    .pr-doctitle h1 {
      font-family: 'Source Serif 4', serif;
      font-size: 18px;
      font-weight: 700;
      margin: 0;
      color: var(--ink);
    }

    .pr-doctitle .pr-no {
      font-size: 11px;
      color: var(--grey-text);
      margin-top: 6px;
      letter-spacing: .04em;
    }

    .pr-doctitle .pr-sub {
      font-size: 10px;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--champagne);
      font-weight: 600;
      margin-top: 6px;
    }

    .pr-no-topright {
      text-align: right;
      font-size: 11px;
      color: var(--grey-text);
      letter-spacing: .04em;
      margin: 0 0 14px 0;
    }

    table.pr-meta-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 26px;
      font-size: 12px;
    }

    table.pr-meta-table td {
      padding: 7px 4px;
      border-bottom: 1px solid var(--grey-line);
    }

    table.pr-meta-table td.k {
      color: var(--grey-text);
      width: 150px;
    }

    table.pr-meta-table td.v {
      font-weight: 600;
    }

    table.pr-meta-table td.status {
      font-weight: 700;
      color: var(--red);
      text-align: right;
    }

    table.pr-meta-table td.status.ok {
      color: var(--green);
    }

    .pr-verdict {
      text-align: center;
      margin: 0 0 30px 0;
      padding: 18px 0;
      border-top: 1px solid var(--grey-line);
      border-bottom: 1px solid var(--grey-line);
    }

    .pr-verdict .pr-num {
      font-family: 'Source Serif 4', serif;
      font-size: 36px;
      font-weight: 700;
      color: var(--navy);
    }

    .verdict-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .verdict-row .verdict-sube {
      font-family: 'Source Serif 4', serif;
      font-size: 15px;
      font-weight: 700;
      color: var(--navy);
      text-align: left;
      flex: 1;
      min-width: 0;
      overflow-wrap: break-word;
      line-height: 1.2;
    }

    .verdict-row .verdict-pct {
      font-family: 'Source Serif 4', serif;
      font-size: 28px;
      font-weight: 700;
      text-align: center;
      flex: 0 0 auto;
      white-space: nowrap;
    }

    .verdict-row .verdict-durum {
      font-family: 'Source Serif 4', serif;
      font-size: 15px;
      font-weight: 700;
      text-align: right;
      flex: 1;
      min-width: 0;
      white-space: nowrap;
    }

    .pr-verdict .pr-lbl {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .14em;
      color: var(--grey-text);
      margin-top: 4px;
    }

    .pr-verdict .pr-breakdown {
      margin-top: 16px;
      display: flex;
      justify-content: center;
      gap: 26px;
      flex-wrap: wrap;
      font-size: 11px;
      color: var(--grey-text);
    }

    .pr-verdict .pr-breakdown b {
      color: var(--ink);
      display: block;
      font-size: 13.5px;
      font-weight: 700;
      margin-bottom: 2px;
    }

    .pr-verdict .pr-subline {
      margin-top: 14px;
      font-size: 11.5px;
      color: var(--grey-text);
    }

    .pr-section-title {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      font-family: 'Source Serif 4', serif;
      font-weight: 700;
      font-size: 13.5px;
      color: var(--navy);
      padding-bottom: 6px;
      margin: 26px 0 12px 0;
      border-bottom: 1px solid var(--navy);
    }

    .pr-section-title span:last-child {
      font-family: var(--sans);
      font-weight: 700;
      font-size: 11.5px;
      color: var(--brand);
    }

    table.pr-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11.5px;
      margin-bottom: 6px;
      table-layout: fixed;
    }

    table.pr-table th {
      text-align: left;
      padding: 7px 8px;
      border-bottom: 1px solid var(--navy);
      font-size: 9.5px;
      text-transform: uppercase;
      letter-spacing: .05em;
      color: var(--grey-text);
      font-weight: 600;
    }

    table.pr-table td {
      padding: 8px 8px;
      border-bottom: 1px solid var(--grey-line);
      vertical-align: top;
      word-wrap: break-word;
      overflow-wrap: break-word;
      white-space: pre-line;
    }

    table.pr-table td.qid {
      font-family: 'Source Serif 4', serif;
      font-weight: 700;
      color: var(--navy);
      white-space: nowrap;
    }

    table.pr-table td.result {
      font-weight: 600;
      text-align: left;
      white-space: nowrap;
      font-size: 10.5px;
    }

    .r-uygun {
      color: var(--green);
    }

    .r-degil {
      color: var(--red);
    }

    .r-dd {
      color: var(--grey-text);
    }

    .r-kritik {
      color: #7A1F14;
      font-weight: 700;
    }

    .pr-photos {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin: 10px 0 4px 0;
    }

    .pr-photos img {
      width: 90px;
      height: 90px;
      object-fit: cover;
      border-radius: 6px;
      border: 1px solid var(--grey-line);
    }

    .aksiyon-photos {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin: 10px 0 4px 0;
    }

    .aksiyon-photos img {
      width: 100%;
      aspect-ratio: 1/1;
      object-fit: cover;
      border-radius: 6px;
      border: 1px solid var(--grey-line);
      page-break-inside: avoid;
      break-inside: avoid;
    }

    .pr-photo-block {
      page-break-inside: auto;
      break-inside: auto;
    }

    .pr-footer {
      margin-top: 24px;
      font-size: 10px;
      color: var(--grey-text);
      border-top: 1px solid var(--grey-line);
      padding-top: 8px;
      display: flex;
      justify-content: space-between;
      page-break-inside: avoid;
      break-inside: avoid;
    }

    @media print {
      @page {
        size: A4;
        margin: 14mm 12mm 18mm 12mm;

        @bottom-left {
          content: "Copyright ©KaliteSAN Tüm hakları saklıdır.";
          font-family: 'Noto Sans', sans-serif;
          font-size: 9px;
          color: #6B7280;
        }

        @bottom-right {
          content: counter(page) "/" counter(pages);
          font-family: 'Noto Sans', sans-serif;
          font-size: 9px;
          color: #6B7280;
        }
      }

      .topbar,
      .footer-actions {
        display: none !important;
      }

      body {
        background: #fff;
        padding-bottom: 0;
      }

      body.print-mode>.view {
        display: none !important;
      }

      body.print-mode .print-container {
        display: block !important;
      }

      .print-container {
        padding: 0;
        max-width: 100%;
      }

      table.pr-table {
        page-break-inside: auto;
      }

      table.pr-table tr {
        page-break-inside: avoid;
      }

      .pr-section-title {
        page-break-after: avoid;
      }
    }

    /* ---------- COVER PAGE (kapak) — Klasik Kurumsal ---------- */
    .cover-page {
      max-width: 800px;
      margin: 0 auto;
    }

    .cover-photo-row {
      page-break-inside: avoid;
      break-inside: avoid;
    }

    .cover-genelgorsel-block {
      page-break-inside: avoid;
      break-inside: avoid;
    }

    .cover-doc-meta {
      text-align: center;
      font-size: 10px;
      color: var(--grey-text);
      letter-spacing: .03em;
      margin-top: 6px;
    }

    table.cover-info-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 14px;
      font-size: 11.5px;
    }

    table.cover-info-table td {
      padding: 5px 4px;
      border-bottom: 1px solid var(--grey-line);
    }

    table.cover-info-table td.k {
      color: var(--grey-text);
      width: 190px;
    }

    table.cover-info-table td.v {
      font-weight: 600;
    }

    .cover-score {
      text-align: center;
      padding: 10px 0;
      margin-bottom: 14px;
      border-top: 1px solid var(--grey-line);
      border-bottom: 1px solid var(--grey-line);
    }

    .cover-score .num {
      font-family: 'Source Serif 4', serif;
      font-size: 32px;
      font-weight: 700;
    }

    .cover-score .lbl {
      font-size: 9.5px;
      text-transform: uppercase;
      letter-spacing: .14em;
      color: var(--grey-text);
      margin-top: 2px;
    }

    table.cover-summary {
      width: 100%;
      border-collapse: collapse;
      font-size: 10.5px;
      margin-bottom: 6px;
    }

    table.cover-summary th {
      text-align: center;
      padding: 5px 6px;
      border-bottom: 1px solid var(--navy);
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: .04em;
      color: var(--grey-text);
      font-weight: 600;
    }

    table.cover-summary th:first-child {
      text-align: left;
    }

    table.cover-summary td {
      padding: 5px 6px;
      text-align: center;
      border-bottom: 1px solid var(--grey-line);
      font-weight: 600;
      color: var(--ink);
    }

    table.cover-summary td:first-child {
      text-align: left;
      font-weight: 700;
    }

    table.cover-summary tr.total td {
      border-top: 1px solid var(--navy);
      border-bottom: none;
      font-weight: 700;
      color: var(--navy);
      padding-top: 6px;
    }

    .cover-section-title {
      font-family: 'Source Serif 4', serif;
      font-weight: 700;
      font-size: 12.5px;
      color: var(--navy);
      padding-bottom: 4px;
      margin: 11px 0 7px 0;
      border-bottom: 1px solid var(--navy);
    }

    .cover-charts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 4px;
    }

    .cover-charts>div {
      text-align: center;
    }

    table.legend-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 10px;
      margin-bottom: 12px;
    }

    table.legend-table td {
      border-bottom: 1px solid var(--grey-line);
      padding: 6px 6px;
      vertical-align: middle;
    }

    table.legend-table td:first-child {
      width: 52%;
    }

    table.legend-table td:last-child {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .legend-grid {
      display: block;
      margin-bottom: 10px;
    }

    .legend-crit .legend-row {
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 8px;
      padding: 6px 0;
      border-bottom: 1px solid var(--grey-line);
      font-size: 10px;
      line-height: 1.5;
    }

    .legend-crit .legend-row span.txt {
      padding-top: 1px;
    }

    .legend-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2px 9px;
      border-radius: 20px;
      font-weight: 700;
      font-size: 9.5px;
      text-align: center;
      width: 84px;
      flex-shrink: 0;
      border: 1px solid var(--grey-line);
      color: var(--ink);
      line-height: 1.6;
    }

    .badge-dd {
      color: var(--grey-text);
      border-color: var(--grey-line);
    }

    .badge-uygun {
      color: var(--green);
      border-color: var(--green);
    }

    .badge-degil {
      color: var(--red);
      border-color: var(--red);
    }

    .badge-kritik {
      color: #7A1F14;
      border-color: #7A1F14;
      font-weight: 800;
    }

    table.cover-guest-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11px;
      margin-bottom: 12px;
    }

    table.cover-guest-table td {
      padding: 5px 4px;
      border-bottom: 1px solid var(--grey-line);
    }

    table.cover-guest-table td:last-child {
      text-align: right;
      font-weight: 600;
      width: 100px;
    }

    .cover-photo-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 10px;
      align-items: stretch;
    }

    .cover-photo-row .ph {
      text-align: center;
      background: var(--gray-50);
      border: 1px solid var(--grey-line);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 95px;
      padding: 6px;
      overflow: hidden;
    }

    .cover-photo-row img {
      max-width: 100%;
      max-height: 95px;
      border-radius: 6px;
    }

    .cover-photo-row .note {
      font-size: 10px;
      background: var(--gray-50);
      border: 1px solid var(--grey-line);
      border-radius: 8px;
      padding: 10px;
      min-height: 95px;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .cover-photo-row .note .lbl {
      font-weight: 700;
      margin-bottom: 4px;
      color: var(--navy);
      text-transform: uppercase;
      letter-spacing: .05em;
      font-size: 9px;
    }

    .print-copyright {
      display: flex;
      justify-content: space-between;
      font-size: 9px;
      color: var(--grey-text);
      margin-top: 10px;
      border-top: 1px solid var(--grey-line);
      padding-top: 10px;
    }

    /* ---------- ÖZET RAPOR (Klasik Kurumsal) ---------- */
    .sm-page {
      font-family: var(--sans);
      font-size: 12.5px;
      color: #242424;
      background: #fff;
      max-width: 800px;
      margin: 0 auto;
      padding: 8px 4px;
    }

    .sm-crest {
      text-align: center;
      margin-bottom: 18px;
    }

    .sm-crest img {
      height: 30px;
      width: auto;
      display: block;
      margin: 0 auto 6px auto;
    }

    .sm-crest small {
      display: block;
      font-size: 10px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--champagne);
      font-weight: 600;
    }

    .sm-rule {
      border: none;
      border-top: 1px solid var(--navy);
      border-bottom: 1px solid var(--navy);
      height: 3px;
      margin: 0 0 22px 0;
    }

    .sm-doctitle {
      text-align: center;
      margin-bottom: 22px;
    }

    .sm-doctitle h1 {
      font-family: 'Source Serif 4', serif;
      font-size: 18px;
      font-weight: 700;
      margin: 0;
      color: var(--ink);
    }

    .sm-doctitle .sm-no {
      font-size: 11px;
      color: var(--grey-text);
      margin-top: 6px;
      letter-spacing: .04em;
    }

    table.sm-meta {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 26px;
      font-size: 12px;
    }

    table.sm-meta td {
      padding: 7px 4px;
      border-bottom: 1px solid var(--grey-line);
    }

    table.sm-meta td.k {
      color: var(--grey-text);
      width: 130px;
    }

    table.sm-meta td.v {
      font-weight: 600;
    }

    table.sm-meta td.status {
      font-weight: 700;
      color: var(--red);
      text-align: right;
    }

    table.sm-meta td.status.ok {
      color: var(--green);
    }

    .sm-verdict {
      text-align: center;
      margin: 0 0 30px 0;
      padding: 18px 0;
      border-top: 1px solid var(--grey-line);
      border-bottom: 1px solid var(--grey-line);
    }

    .sm-verdict .sm-num {
      font-family: 'Source Serif 4', serif;
      font-size: 38px;
      font-weight: 700;
      color: var(--navy);
    }

    .sm-verdict .sm-lbl {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .14em;
      color: var(--grey-text);
      margin-top: 4px;
    }

    .sm-verdict .sm-breakdown {
      margin-top: 16px;
      display: flex;
      justify-content: center;
      gap: 26px;
      flex-wrap: wrap;
      font-size: 11px;
      color: var(--grey-text);
    }

    .sm-verdict .sm-breakdown b {
      color: var(--ink);
      display: block;
      font-size: 13.5px;
      font-weight: 700;
      margin-bottom: 2px;
    }

    .sm-verdict .sm-subline {
      margin-top: 14px;
      font-size: 11.5px;
      color: var(--grey-text);
    }

    .sm-section-title {
      font-family: 'Source Serif 4', serif;
      font-size: 13.5px;
      font-weight: 700;
      color: var(--navy);
      margin: 0 0 14px 0;
      text-align: center;
      position: relative;
    }

    .sm-section-title:after {
      content: "";
      display: block;
      width: 38px;
      height: 2px;
      background: var(--champagne);
      margin: 7px auto 0 auto;
    }

    table.sm-findings {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 32px;
      font-size: 11.5px;
    }

    table.sm-findings th {
      text-align: left;
      font-size: 9.5px;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--grey-text);
      font-weight: 700;
      padding: 8px 8px;
      border-bottom: 1px solid var(--navy);
    }

    table.sm-findings td {
      padding: 10px 8px;
      border-bottom: 1px solid var(--grey-line);
      vertical-align: top;
      line-height: 1.55;
    }

    table.sm-findings td.qid {
      font-weight: 700;
      color: var(--navy);
      white-space: nowrap;
      font-family: 'Source Serif 4', serif;
    }

    table.sm-findings td.result {
      white-space: nowrap;
      color: var(--red);
      font-weight: 600;
      font-size: 10.5px;
    }

    .sm-img-preview {
      width: 110px;
      height: 110px;
      object-fit: cover;
      border-radius: 6px;
      border: 1px solid var(--grey-line);
      margin: 0 6px 6px 0;
    }

    body.print-mode .topbar,
    body.print-mode .footer-actions,
    body.print-mode .toast {
      display: none !important;
    }

    body.print-mode .view {
      display: none !important;
    }

    body.print-mode .print-container {
      display: block !important;
      max-width: 760px;
      margin: 0 auto;
      padding: 0 20px;
    }

    body.print-mode,
    body.print-mode * {
      font-variant-ligatures: none !important;
      -webkit-font-variant-ligatures: none !important;
      font-feature-settings: "liga" 0, "clig" 0, "calt" 0 !important;
    }

    /* ---------- print-mode manuel geri dönüş butonu (mobilde afterprint her zaman güvenilir tetiklenmiyor) ---------- */
    .print-close-bar {
      display: none;
    }

    body.print-mode .print-close-bar {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      padding: 10px 20px 0 20px;
      max-width: 760px;
      margin: 0 auto;
    }

    .print-close-btn {
      background: var(--teal-900);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 10px 16px;
      font-family: var(--sans);
      font-weight: 700;
      font-size: 13px;
      cursor: pointer;
    }

    @media print {
      .print-close-bar {
        display: none !important;
      }
    }

    /* ============================================================
     MOBİL VE TABLET UYUMLULUK EKLERİ
     ============================================================ */
    html,
    body {
      overflow-x: hidden;
    }

    @media (max-width:900px) {
      .view {
        padding: 14px;
      }

      .grid2,
      .grid2>*,
      .field {
        min-width: 0;
        max-width: 100%;
      }

      input,
      select,
      textarea {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
      }

      input[type="date"],
      input[type="time"] {
        -webkit-appearance: none;
        appearance: none;
        inline-size: 100% !important;
        min-inline-size: 0 !important;
        max-inline-size: 100% !important;
        overflow: hidden;
      }

      input[type="date"]::-webkit-date-and-time-value,
      input[type="time"]::-webkit-date-and-time-value {
        min-width: 0;
        max-width: 100%;
      }
    }

    @media (max-width:600px) {
      .topbar {
        padding: 10px 12px;
        flex-wrap: nowrap;
        gap: 10px;
      }

      #topbarLogo {
        height: 24px !important;
      }

      #topbarTitle {
        font-size: 13px !important;
      }

      #topbarUserWrap {
        width: auto;
        justify-content: initial;
      }

      #topbarUser {
        font-size: 10.5px !important;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .hero {
        padding: 22px 16px 28px 16px;
      }

      .hero h1 {
        font-size: 19px;
      }

      .card {
        padding: 14px;
      }

      .grid2 {
        grid-template-columns: 1fr;
      }

      .grid2,
      .grid2>*,
      .field {
        min-width: 0;
        max-width: 100%;
      }

      input,
      select,
      textarea {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px;
      }

      input[type="date"],
      input[type="time"] {
        -webkit-appearance: none;
        appearance: none;
        inline-size: 100% !important;
        min-inline-size: 0 !important;
        max-inline-size: 100% !important;
        overflow: hidden;
      }

      input[type="date"]::-webkit-date-and-time-value,
      input[type="time"]::-webkit-date-and-time-value {
        min-width: 0;
        text-align: left;
      }

      .score-card {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
      }

      .score-card .stats {
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
        justify-content: space-between;
      }

      .footer-actions {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
      }

      .form-preview-actions {
        padding: 0 0 10px;
      }

      .report-actions {
        flex-direction: column;
      }

      .cover-charts {
        grid-template-columns: 1fr;
      }

      .cover-photo-row {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width:380px) {
      .answer-row {
        gap: 6px;
      }

      .ans-btn {
        font-size: 11.5px;
        padding: 9px 3px;
      }

      .score-card .big {
        font-size: 28px;
      }

      .btn {
        font-size: 13px;
        padding: 12px;
      }
    }


    .performance-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 13px 0;
      border-bottom: 1px solid var(--grey-line);
    }

    .performance-row:last-child {
      padding-bottom: 0;
      border-bottom: none;
    }

    .performance-row-title {
      color: var(--ink);
      font-size: 13px;
      font-weight: 650;
    }

    .performance-row-value {
      flex-shrink: 0;
      min-width: 58px;
      padding: 6px 9px;
      border-radius: 9px;
      color: var(--navy);
      background: #EEF2F8;
      border: 1px solid #D9E1ED;
      font-family: var(--mono);
      font-size: 13px;
      font-weight: 800;
      text-align: center;
    }

    .guest-question {
      padding: 13px;
      border: 1px solid var(--grey-line);
      border-radius: 12px;
      background: #fff;
      transition: .2s ease;
    }

    .guest-question.guest-answered {
      border-color: var(--grey-line);
      background: #fff;
      box-shadow: none;
    }

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

    .guest-question-head .field-label {
      margin: 0;
    }

    .guest-complete {
      display: none !important;
    }

    .guest-answered .guest-complete {
      color: #315B96;
    }

    .guest-answer-btn.guest-selected {
      color: #fff !important;
      background: #212121 !important;
      border-color: #212121 !important;
    }

    #view-form,
    #view-form input,
    #view-form select,
    #view-form textarea,
    #view-form button {
      font-family: var(--sans);
    }

    #view-form input,
    #view-form select,
    #view-form textarea {
      font-size: 12.5px;
      line-height: 1.35;
    }

    #view-form input::placeholder,
    #view-form textarea::placeholder {
      font-size: 11.5px;
    }

    #in_genelnot::placeholder {
      font-size: 10.5px;
    }

    #view-form label,
    #view-form .section-title,
    #view-form .section-desc,
    #view-form .field-note,
    #view-form .form-header {
      caret-color: transparent;
    }

    #view-form input,
    #view-form select,
    #view-form textarea {
      caret-color: auto;
    }

    .audit-required-heading {
      margin: 0 0 14px;
      font-size: 16px;
    }

    #draftSaveBtn {
      color: #fff;
      background: var(--navy);
      border-color: var(--navy);
    }

    @media(max-width:700px) {
      #liveScoreCard .report-score-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
      }

      #liveScoreCard .report-score-overview-item {
        grid-template-rows: auto 50px auto;
      }

      #liveScoreCard .report-score-overview-item strong,
      #liveScoreBranch {
        height: 50px;
        font-size: clamp(16px, 5vw, 22px);
        line-height: 1.05;
      }

      #liveScoreCard .report-score-overview-item:last-child strong {
        font-size: clamp(14px, 4.2vw, 19px);
        white-space: normal;
      }

      #liveScoreCard .report-score-overview-item small {
        font-size: 8px;
        overflow-wrap: anywhere;
      }
    }

    .form-question-step {
      display: none;
    }

    #view-form.form-step-questions .form-info-step {
      display: none !important;
    }

    #view-form.form-step-questions .form-question-step {
      display: block;
    }

    #view-form.form-step-questions .tabs.form-question-step {
      display: flex;
    }

    /* Kayıtlı bir denetim düzenlenirken bilgi ve soru alanları tek sayfada gösterilir. */
    #view-form.form-edit-all .form-question-step {
      display: block;
    }

    #view-form.form-edit-all .tabs.form-question-step {
      display: flex;
    }

    .form-step-transition,
    .form-question-back {
      margin: 14px 0;
    }

    .form-step-transition .btn,
    .form-question-back .btn {
      width: 100%;
    }

    .form-step-transition .btn:disabled {
      opacity: .45;
      cursor: not-allowed;
      background: #7B8798;
    }

    /* Ordinary Impala esintili, sadece ekrandaki denetim formuna uygulanan alanlar */
    @media screen {
      #view-form.form-step-questions .section-block,
      #view-form.form-edit-all .section-block {
        display: block;
        margin-bottom: 24px;
        scroll-margin-top: 88px;
      }

      #view-form .card,
      #view-form .qcard,
      #view-form input,
      #view-form select,
      #view-form textarea {
        box-shadow: none !important;
      }
    }

    /* Yanıtlanan denetim sorularının kart renkleri */

    .qcard {
      transition:
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
    }

    /* Yanıtlanmamış soru */
    .qcard.question-unanswered {
      background: #fff;
      border-color: var(--grey-line);
    }

    /* Uygun olarak işaretlenen soru */
    .qcard.question-uygun {
      background: #EDF8F1 !important;
      border-color: #B8DEC5;
      color: var(--ink);
    }

    /* Uygun değil olarak işaretlenen soru */
    .qcard.question-degil {
      background: #FFF0EE !important;
      border-color: #E9B9B3;
      color: var(--ink);
    }

    /* DD veya Bulgu Yok olarak işaretlenen soru */
    .qcard.question-dd {
      background: #F5F6F8 !important;
      border-color: var(--grey-line);
      color: var(--ink);
    }

    .qcard.question-uygun .ans-btn.sel[data-v="uygun"] {
      background: var(--green) !important;
      border-color: var(--green) !important;
      color: #fff !important;
    }

    .qcard.question-degil .ans-btn.sel[data-v="degil"] {
      background: var(--red) !important;
      border-color: var(--red) !important;
      color: #fff !important;
    }

    .qcard.question-dd .ans-btn.sel[data-v="dd"] {
      background: #7B8798 !important;
      border-color: #7B8798 !important;
      color: #fff !important;
    }

    /* Kritik bulgu olarak işaretlenen soru */
    .qcard.question-kritik {
      background: #FFF0EE;
      border-color: #E9B9B3;
    }

    /* ============================================================
     TEMİZ RAPOR ÖNİZLEME VE YAZDIRMA DÜZENİ
     ============================================================ */

    body.print-mode {
      width: 100%;
      margin: 0;
      padding: 0;
      overflow-x: auto;
      background: #DDE2E8;
    }

    body.print-mode>.view,
    body.print-mode>.topbar,
    body.print-mode>.footer-actions,
    body.print-mode>.toast {
      display: none !important;
    }

    /* Bütün rapor alanlarını önce gizle */
    body.print-mode .print-container {
      display: none !important;
    }

    /* Yalnızca içi dolu raporu göster */
    body.print-mode .print-container:not(:empty) {
      display: block !important;
      box-sizing: border-box;
      width: 210mm;
      max-width: none;
      min-height: 297mm;
      height: auto;
      margin: 70px auto 18px;
      padding: 14mm 12mm 18mm;
      overflow: visible;
      background: #fff;
      box-shadow: 0 3px 20px rgba(0, 0, 0, .16);
    }

    /* Boş rapor alanları boş sayfa oluşturmasın */
    body.print-mode .print-container:empty {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
      min-height: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
    }

    /* Önizleme düğmeleri */
    body.print-mode .print-close-bar {
      position: fixed;
      top: 12px;
      right: 12px;
      left: auto;
      z-index: 1000;

      display: flex;
      width: auto;
      max-width: none;
      margin: 0;
      padding: 8px;

      border: 1px solid #D3DAE5;
      border-radius: 11px;
      background: #fff;
      box-shadow: 0 6px 20px rgba(21, 43, 78, .16);
    }

    body.print-mode .print-toolbar-info {
      display: none;
    }

    body.print-mode .print-toolbar-actions {
      display: flex;
      align-items: center;
      gap: 7px;
    }

    body.print-mode .print-again-btn,
    body.print-mode .print-close-btn {
      min-height: 38px;
      padding: 9px 13px;
      border-radius: 8px;
      font-family: var(--sans);
      font-size: 11px;
      font-weight: 750;
      white-space: nowrap;
      cursor: pointer;
    }

    body.print-mode .print-again-btn {
      color: #fff;
      border: 1px solid var(--navy);
      background: var(--navy);
      position: relative;
      z-index: 1002;
      pointer-events: auto !important;
      touch-action: manipulation;
      -webkit-user-select: none;
      user-select: none;
    }

    body.print-mode .print-close-btn {
      color: var(--navy);
      border: 1px solid #CCD4E0;
      background: #F3F5F8;
    }

    @media screen and (max-width:600px) {

      body.print-mode .print-close-bar {
        top: 8px;
        right: 8px;
        left: 8px;
        justify-content: center;
      }

      body.print-mode .print-toolbar-actions {
        width: 100%;
      }

      body.print-mode .print-again-btn,
      body.print-mode .print-close-btn {
        flex: 1;
        min-width: 0;
        padding: 8px 5px;
        font-size: 10px;
      }

      body.print-mode .print-container:not(:empty) {
        margin-top: 64px;
        margin-right: 8px;
        margin-left: 8px;
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        min-height: 0;
        padding: 18px 12px 24px;
        overflow: hidden;
      }

      body.print-mode table.pr-table,
      body.print-mode table.sm-findings {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
      }

      body.print-mode table.pr-table th,
      body.print-mode table.pr-table td,
      body.print-mode table.sm-findings th,
      body.print-mode table.sm-findings td {
        overflow-wrap: anywhere;
        word-break: normal;
      }

      body.print-mode table.pr-table td.result,
      body.print-mode table.sm-findings td.result {
        white-space: normal;
      }
    }

    @media print {

      @page {
        size: A4 portrait;
        margin: 14mm 12mm 18mm;
      }

      html,
      body,
      body.print-mode {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      body.print-mode .print-close-bar {
        display: none !important;
      }

      body.print-mode .print-container {
        display: none !important;
      }

      body.print-mode .print-container:not(:empty) {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
        box-shadow: none !important;
        transform: none !important;
      }

      body.print-mode .print-container:empty {
        display: none !important;
      }

      body.print-mode table.pr-table,
      body.print-mode table.sm-findings {
        width: 100% !important;
        table-layout: fixed !important;
        page-break-inside: auto;
        break-inside: auto;
      }

      body.print-mode table.pr-table thead,
      body.print-mode table.sm-findings thead {
        display: table-header-group;
      }

      body.print-mode table.pr-table tr,
      body.print-mode table.sm-findings tr {
        page-break-inside: avoid;
        break-inside: avoid;
      }

      body.print-mode .pr-section-title,
      body.print-mode .sm-section-title,
      body.print-mode .cover-section-title {
        page-break-after: avoid;
        break-after: avoid;
      }

      body.print-mode .cover-charts,
      body.print-mode .cover-photo-row {
        grid-template-columns: 1fr 1fr !important;
      }
    }

    /* ---------- Yönetim modülleri: onay, analiz, geçmiş, bildirim ---------- */
    .topbar-module-btn {
      height: 42px;
      padding: 0 13px;
      border: 1px solid #D6DEEA;
      border-radius: 13px;
      background: #fff;
      color: var(--navy);
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 7px;
      white-space: nowrap;
      font-family: var(--sans);
    }

    .topbar-module-btn:hover {
      background: #F3F6FA
    }

    .topbar-module-btn svg {
      width: 18px;
      height: 18px
    }

    .topbar-module-count {
      min-width: 20px;
      height: 20px;
      padding: 0 6px;
      border-radius: 999px;
      background: var(--navy);
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 9px;
      font-weight: 800
    }

    .home-module-links {
      display: none;
      grid-template-columns: 1fr 1fr;
      gap: 9px;
      margin: -2px 0 18px
    }

    .home-module-links button {
      border: 1px solid #D6DEEA;
      background: #fff;
      color: var(--navy);
      border-radius: 13px;
      padding: 12px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px
    }

    .home-module-links svg {
      width: 18px;
      height: 18px
    }

    .mobile-module-count {
      min-width: 20px;
      height: 20px;
      padding: 0 5px;
      border-radius: 999px;
      background: var(--navy);
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 10px
    }

    .notification-count {
      min-width: 20px;
      height: 20px;
      padding: 0 5px;
      border-radius: 10px;
      background: var(--navy);
      color: #fff;
      font-size: 11px;
      display: inline-flex;
      align-items: center;
      justify-content: center
    }

    .module-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 20px
    }

    .module-header h2 {
      margin: 0;
      color: var(--navy);
      font-size: 26px
    }

    .module-header p {
      margin: 5px 0 0;
      color: var(--grey-text)
    }

    .module-back {
      border: 1px solid #D6DEEA;
      background: #fff;
      color: var(--navy);
      border-radius: 12px;
      padding: 11px 16px;
      font-weight: 700;
      cursor: pointer
    }

    .analytics-filters {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr auto;
      gap: 10px;
      margin-bottom: 18px;
      background: #fff;
      border-color: #D6DEEA;
    }

    .analytics-filters select {
      min-width: 0;
      background: #fff;
      border-color: #D6DEEA;
    }

    .analytics-filters .btn {
      background: #fff;
      color: var(--navy)
    }

    .analytics-month-picker {
      position: relative;
      min-width: 0
    }

    .analytics-month-picker summary {
      height: 52px;
      padding: 0 15px;
      border: 1px solid #D6DEEA;
      border-radius: 10px;
      background: #fff;
      color: var(--ink);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      cursor: pointer;
      list-style: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .analytics-month-picker summary::-webkit-details-marker {
      display: none
    }

    .analytics-month-picker summary:after {
      content: '⌄';
      color: #64748B;
      font-weight: 800
    }

    .analytics-month-options {
      position: absolute;
      z-index: 80;
      top: 58px;
      left: 0;
      right: 0;
      min-width: 240px;
      padding: 10px;
      border: 1px solid #D6DEEA;
      border-radius: 13px;
      background: #fff;
      box-shadow: 0 16px 35px rgba(17, 36, 67, .18);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px;
    }

    .analytics-month-options label {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 8px;
      border-radius: 8px;
      color: var(--navy);
      font-size: 12px;
      cursor: pointer
    }

    .analytics-month-options label:hover {
      background: #F2F6FC
    }

    .analytics-month-options input {
      width: 16px;
      height: 16px;
      accent-color: #315E9D
    }

    .analytics-report-tools {
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin: -2px 0 18px;
      padding: 18px 20px;
      border: 1px solid #CAD7E9;
      border-radius: 18px;
      background: linear-gradient(135deg, #F8FAFD 0%, #EEF4FC 100%);
      box-shadow: 0 8px 24px rgba(22, 43, 77, .06);
    }

    .analytics-report-copy {
      display: flex;
      align-items: center;
      gap: 13px;
      min-width: 0
    }

    .analytics-report-icon {
      width: 44px;
      height: 44px;
      flex: 0 0 44px;
      border-radius: 13px;
      background: var(--navy);
      color: #fff;
      display: grid;
      place-items: center
    }

    .analytics-report-icon svg {
      width: 22px;
      height: 22px
    }

    .analytics-report-copy b {
      display: block;
      color: var(--navy);
      font-size: 16px;
      margin-bottom: 4px
    }

    .analytics-report-copy span {
      display: block;
      color: var(--grey-text);
      font-size: 12px;
      line-height: 1.45
    }

    .analytics-report-actions {
      display: flex;
      gap: 9px;
      flex: 0 0 auto
    }

    .analytics-report-actions button {
      height: 42px;
      padding: 0 16px;
      border-radius: 12px;
      border: 1px solid var(--navy);
      font-weight: 800;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 7px
    }

    .analytics-report-actions svg {
      width: 17px;
      height: 17px
    }

    .analytics-report-preview {
      background: #fff;
      color: var(--navy)
    }

    .analytics-report-download {
      background: var(--navy);
      color: #fff
    }

    #view-analytics,
    #view-analytics * {
      font-family: var(--sans);
    }

    .analytics-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-bottom: 18px
    }

    .analytics-kpi,
    .analytics-panel,
    .notification-card,
    .history-card,
    .approval-card {
      background: #fff;
      border: 1px solid #D6DEEA;
      border-radius: 18px;
      box-shadow: 0 8px 24px rgba(22, 43, 77, .06)
    }

    .analytics-kpi {
      padding: 18px;
      min-height: 112px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      background: #fff;
      border-color: #D6DEEA;
      box-shadow: 0 8px 24px rgba(22, 43, 77, .06);
    }

    .analytics-kpi span {
      display: block;
      color: var(--grey-text);
      font-size: 12px;
      margin-bottom: 8px
    }

    .analytics-kpi b {
      font-size: 28px;
      color: var(--navy)
    }

    .analytics-kpi b.kpi-good {
      color: var(--green)
    }

    .analytics-kpi b.kpi-bad {
      color: var(--red)
    }

    .analytics-panel-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px
    }

    .analytics-panel-title-row h3 {
      margin: 0
    }

    .analytics-sort-select {
      width: auto;
      min-width: 175px;
      height: 38px;
      padding: 0 34px 0 11px;
      font-size: 11px
    }

    .checkmark-options {
      grid-template-columns: 1fr
    }

    .checkmark-options input {
      position: absolute;
      opacity: 0;
      pointer-events: none
    }

    .checkmark-options label:before {
      content: '';
      width: 17px;
      flex: 0 0 17px;
      color: var(--navy);
      font-weight: 900
    }

    .checkmark-options label:has(input:checked):before {
      content: '✓'
    }

    @media (max-width: 700px) {
      .analytics-filters .analytics-month-options,
      .completed-filters .analytics-month-options {
        left: 0;
        right: auto;
        width: 100%;
        min-width: 0;
        box-sizing: border-box
      }
    }

    .analytics-panels {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px
    }

    .analytics-panel {
      padding: 20px
    }

    .analytics-panel h3 {
      margin: 0 0 14px;
      color: var(--navy)
    }

    .analytics-row {
      display: grid;
      grid-template-columns: minmax(120px, 1fr) 2fr 54px;
      align-items: center;
      gap: 10px;
      padding: 9px 0;
      border-bottom: 1px solid #E7EBF1;
      font-size: 13px
    }

    .analytics-bar {
      height: 8px;
      border-radius: 8px;
      background: #E8EDF5;
      overflow: hidden
    }

    .analytics-bar i {
      display: block;
      height: 100%;
      border-radius: 8px
    }

    .analytics-panel-wide {
      grid-column: 1/-1
    }

    .performance-level-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px
    }

    .performance-level-card {
      min-height: 126px;
      padding: 16px;
      border: 1px solid #D9E1ED;
      border-top: 3px solid #315E9D;
      border-radius: 15px;
      background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      box-shadow: none;
    }

    .performance-level-card span {
      color: #697386;
      font-size: 11px;
      line-height: 1.35
    }

    .performance-level-card b {
      color: var(--navy);
      font-size: 28px;
      line-height: 1;
      margin: 10px 0 7px
    }

    .performance-level-card em {
      font-style: normal;
      color: #315E9D;
      background: #EAF0F8;
      border: 0;
      border-radius: 999px;
      padding: 4px 9px;
      font-size: 11px;
      font-weight: 700;
    }

    .analytics-row-label small {
      display: block;
      margin-top: 3px;
      color: #7A8494;
      font-size: 10px
    }

    .analytics-empty {
      padding: 35px;
      text-align: center;
      color: var(--grey-text)
    }

    .approval-card {
      padding: 18px;
      margin: 16px 0;
      display: none
    }

    .approval-card h3 {
      margin: 0 0 7px;
      color: var(--navy)
    }

    .approval-card p {
      margin: 0 0 12px;
      color: var(--grey-text)
    }

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

    .approval-actions textarea {
      width: 100%;
      min-height: 72px
    }

    .approval-status {
      display: inline-flex;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .04em
    }

    .approval-status.pending {
      background: #FFF4CC;
      color: #8A6200
    }

    .approval-status.returned {
      background: #FBE6E1;
      color: #B83D28
    }

    .approval-status.approved {
      background: #E4F3EA;
      color: #267B4A
    }

    .history-card {
      padding: 18px;
      margin-top: 16px
    }

    .history-card h3 {
      margin: 0 0 12px;
      color: var(--navy)
    }

    .history-item {
      display: grid;
      grid-template-columns: 10px 1fr;
      gap: 10px;
      padding: 9px 0
    }

    .history-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #315E9D;
      margin-top: 5px
    }

    .history-item b {
      display: block;
      color: var(--navy);
      font-size: 13px
    }

    .history-item span {
      display: block;
      color: var(--grey-text);
      font-size: 11px;
      margin-top: 3px
    }

    .notification-card {
      padding: 15px 17px;
      margin-bottom: 10px;
      cursor: pointer
    }

    .notification-card.unread {
      border-left: 4px solid #315E9D;
      background: #F7FAFF
    }

    .notification-card b {
      display: block;
      color: var(--navy);
      margin-bottom: 4px
    }

    .notification-card span {
      font-size: 12px;
      color: var(--grey-text)
    }

    /* Rapor detay ekranı: dengeli tipografi ve Türkçe karakter desteği */
    #view-report {
      --sans: 'Noto Sans', system-ui, "Segoe UI", sans-serif;
      --mono: Arial, "Segoe UI", system-ui, sans-serif;
      font-family: var(--sans);
    }

    #view-report .report-head {
      margin-bottom: 14px
    }

    #view-report .report-head-info h2 {
      font-size: 20px;
      line-height: 1.2
    }

    #view-report .report-head-info .sub {
      font-size: 11px;
      line-height: 1.35
    }

    #view-report .report-score-card {
      padding: 20px
    }

    #view-report .report-score-overview {
      grid-template-columns: .9fr 1.2fr 1.05fr;
      gap: 18px;
    }

    #view-report .report-score-overview-item {
      grid-template-rows: auto 50px auto;
    }

    #view-report .report-score-value {
      display: flex;
      align-items: center;
      font-size: 38px;
    }

    #view-report .report-score-overview-item strong {
      min-width: 0;
      font-size: 30px;
      line-height: 1.05;
      overflow-wrap: normal;
      word-break: keep-all;
      hyphens: none;
    }

    #view-report .report-score-overview-item:last-child strong {
      font-size: 24px
    }

    #view-report .report-score-overview-item small {
      font-size: 10px;
      line-height: 1.3
    }

    #view-report .report-stat b {
      font-size: 18px
    }

    #view-report .report-stat span {
      font-size: 9px
    }

    #view-report .report-summary-card,
    #view-report .report-result-card,
    #view-report .report-output-card {
      padding: 17px
    }

    #view-report .report-summary-card h3,
    #view-report .report-result-card h3,
    #view-report .report-output-card h3 {
      font-size: 16px;
      line-height: 1.3
    }

    #view-report .report-result-card p,
    #view-report .report-output-help {
      font-size: 12px;
      line-height: 1.45
    }

    #view-report .approval-card {
      padding: 16px
    }

    #view-report .approval-card h3 {
      font-size: 17px;
      line-height: 1.3;
      margin-bottom: 5px
    }

    #view-report .approval-card p {
      font-size: 12.5px;
      line-height: 1.45;
      margin-bottom: 10px
    }

    #view-report .approval-status {
      padding: 5px 9px;
      font-size: 10px
    }

    #view-report .approval-preview-actions {
      gap: 8px;
      margin: 12px 0 8px
    }

    #view-report .approval-preview-actions .btn,
    #view-report .approval-actions .btn,
    #view-report .report-actions .btn {
      min-height: 40px;
      padding: 9px 11px;
      font-family: var(--sans);
      font-size: 12px;
      line-height: 1.2;
    }

    #view-report .approval-preview-actions svg,
    #view-report .approval-actions .btn svg,
    #view-report .report-actions .btn-icon,
    #view-report .report-edit-button .btn-icon {
      width: 15px;
      height: 15px;
      flex-basis: 15px
    }

    #view-report .approval-actions textarea {
      min-height: 62px;
      font-size: 12px
    }

    #view-report .report-edit-button {
      min-height: 40px;
      font-size: 12px;
      margin-bottom: 14px
    }

    #view-report .history-card {
      padding: 16px;
      margin-top: 14px
    }

    #view-report .history-card h3 {
      font-size: 17px;
      margin-bottom: 8px
    }

    #view-report .history-item {
      padding: 7px 0;
      gap: 8px
    }

    #view-report .history-item b {
      font-size: 12px;
      line-height: 1.3
    }

    #view-report .history-item span {
      font-size: 10px;
      line-height: 1.35
    }

    @media(max-width:600px) {
      #view-report {
        padding: 12px
      }

      #view-report .report-head {
        gap: 9px;
        margin-bottom: 12px
      }

      #view-report .report-head-info h2 {
        font-size: 17px
      }

      #view-report .report-head-info .sub {
        font-size: 10px
      }

      #view-report .report-status-badge {
        font-size: 8px;
        padding: 5px 7px
      }

      #view-report .report-score-card {
        padding: 14px
      }

      #view-report .report-score-overview {
        grid-template-columns: .82fr 1.18fr 1fr;
        gap: 7px;
        margin-bottom: 11px;
      }

      #view-report .report-score-overview-item {
        grid-template-rows: auto 40px auto
      }

      #view-report .report-score-value {
        font-size: 31px
      }

      #view-report .report-score-overview-item strong {
        font-size: 20px;
        line-height: 1.05
      }

      #view-report .report-score-overview-item:last-child strong {
        font-size: 16px
      }

      #view-report .report-score-overview-item small {
        font-size: 7.5px;
        line-height: 1.25
      }

      #view-report .report-eyebrow,
      #view-report .report-card-kicker {
        font-size: 8px;
        letter-spacing: .08em
      }

      #view-report .report-score-main {
        margin-bottom: 13px
      }

      #view-report .report-score-track {
        height: 6px
      }

      #view-report .report-stat {
        padding: 8px 6px
      }

      #view-report .report-stat b {
        font-size: 15px
      }

      #view-report .report-stat span {
        font-size: 6.8px;
        letter-spacing: 0
      }

      #view-report .report-summary-card,
      #view-report .report-result-card,
      #view-report .report-output-card {
        padding: 13px
      }

      #view-report .report-summary-card h3,
      #view-report .report-result-card h3,
      #view-report .report-output-card h3 {
        font-size: 15px
      }

      #view-report .report-result-card {
        gap: 10px
      }

      #view-report .report-result-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 14px
      }

      #view-report .report-result-card p,
      #view-report .report-output-help {
        font-size: 11px
      }

      #view-report .approval-card {
        padding: 13px
      }

      #view-report .approval-card h3 {
        font-size: 16px
      }

      #view-report .approval-card p {
        font-size: 11px
      }

      #view-report .approval-preview-actions .btn,
      #view-report .approval-actions .btn,
      #view-report .report-actions .btn {
        min-height: 38px;
        padding: 8px;
        font-size: 10.5px;
      }

      #view-report .approval-preview-actions .preview-label {
        line-height: 1.12
      }

      #view-report .approval-actions textarea {
        min-height: 58px;
        font-size: 11px
      }

      #view-report .report-edit-button {
        min-height: 38px;
        font-size: 11px
      }

      #view-report .history-card {
        padding: 13px
      }

      #view-report .history-card h3 {
        font-size: 16px
      }

      #view-report .history-item b {
        font-size: 11px
      }

      #view-report .history-item span {
        font-size: 9px
      }
    }

    @media(max-width:800px) {
      .topbar-module-btn {
        display: none !important
      }

      .home-module-links {
        display: grid
      }

      .analytics-filters {
        grid-template-columns: 1fr 1fr
      }

      .analytics-report-tools {
        align-items: stretch;
        flex-direction: column
      }

      .analytics-report-actions {
        display: grid;
        grid-template-columns: 1fr 1fr
      }

      .analytics-report-actions button {
        justify-content: center;
        padding: 0 10px
      }

      .analytics-grid {
        grid-template-columns: 1fr 1fr
      }

      .analytics-panels {
        grid-template-columns: 1fr
      }

      .performance-level-grid {
        grid-template-columns: 1fr 1fr
      }

      .module-header {
        align-items: flex-start
      }
    }

    .home-search {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 14px 0 4px;
      padding: 10px 14px;
      border: 1px solid var(--grey-line);
      border-radius: 14px;
      background: #fff;
    }

    .home-search svg {
      width: 18px;
      height: 18px;
      flex: 0 0 18px;
      color: var(--grey-text)
    }

    .home-search input {
      width: 100%;
      border: 0;
      outline: 0;
      background: transparent;
      font: inherit;
      color: var(--navy)
    }

    .home-search input::placeholder {
      color: #7B8798
    }

    .home-search input:focus {
      border: 0;
      outline: 0;
      box-shadow: none
    }

    .revision-history-button {
      display: none;
      width: 44px;
      height: 44px;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--grey-line);
      border-radius: 50%;
      background: #fff;
      color: var(--navy);
      padding: 0;
      cursor: pointer
    }

    .revision-history-button svg {
      width: 22px;
      height: 22px
    }

    .revision-list {
      display: grid;
      gap: 12px;
      margin-top: 16px;
      max-height: 60vh;
      overflow: auto
    }

    .revision-item {
      padding: 13px;
      border: 1px solid var(--grey-line);
      border-radius: 12px;
      background: #F8FAFC
    }

    .revision-item h4 {
      margin: 0 0 7px;
      color: var(--navy)
    }

    .revision-item ul {
      margin: 0;
      padding-left: 18px;
      color: var(--grey-text);
      font-size: 13px;
      line-height: 1.55
    }

    /* ============================================================
       DESIGN IMPROVEMENTS — görsel iyileştirmeler
       Sadece CSS, sistem mantığına dokunulmadı
    ============================================================ */

    /* --- Input / textarea / select focus efekti --- */
    input[type=text]:focus,
    input[type=password]:focus,
    input[type=date]:focus,
    input[type=time]:focus,
    input[type=search]:focus,
    select:focus,
    textarea:focus {
      border-color: var(--navy);
      outline: none;
      box-shadow: 0 0 0 3px rgba(24, 40, 73, .10);
      background: #fff;
    }

    /* --- Buton active (tıklama) geri bildirimi --- */
    .btn:active,
    .btn-new:active,
    .crop-btn:active,
    .trash-action-btn:active,
    .obs-add-btn:active {
      transform: scale(.97);
      transition: transform .08s ease;
    }

    /* --- Topbar safe area (notch / Dynamic Island) --- */
    .topbar {
      padding-top: calc(14px + env(safe-area-inset-top));
    }

    @media(max-width:600px) {
      .topbar {
        padding-top: calc(10px + env(safe-area-inset-top));
      }
    }

    /* --- Hero mobil padding düzeltme --- */
    @media(max-width:600px) {
      .hero {
        padding: 18px 16px 22px;
      }

      .hero h1 {
        font-size: 19px;
      }

      .hero p {
        font-size: 12px;
      }
    }

    /* --- qcard sol border ile durum göstergesi --- */
    .qcard.question-unanswered {
      border-left: 3px solid var(--grey-line);
    }

    .qcard.question-uygun {
      border-left: 3px solid var(--green) !important;
    }

    .qcard.question-degil {
      border-left: 3px solid var(--red) !important;
    }

    .qcard.question-dd {
      border-left: 3px solid #8B8778 !important;
    }

    .qcard.question-kritik {
      border-left: 3px solid #7A1F14 !important;
    }

    .qcard.question-missing-highlight {
      animation: missingQuestionPulse 1.8s ease;
      border-color: #E4A719 !important;
      box-shadow: 0 0 0 4px rgba(228, 167, 25, .2) !important;
      scroll-margin-top: 110px;
    }

    @keyframes missingQuestionPulse {
      0%, 100% { background-color: #fff; }
      35%, 70% { background-color: #FFF8DD; }
    }

    .field.field-missing-highlight {
      animation: missingFieldPulse 1.8s ease;
      border-radius: 12px;
      scroll-margin-top: 110px;
    }

    .field.field-missing-highlight input,
    .field.field-missing-highlight select {
      border-color: #E4A719 !important;
      box-shadow: 0 0 0 4px rgba(228, 167, 25, .18) !important;
    }

    @keyframes missingFieldPulse {
      0%, 100% { background: transparent; }
      35%, 70% { background: #FFF8DD; }
    }

    .btn.action-preview,
    .form-preview-actions .btn.action-preview,
    .report-actions .btn.action-preview,
    .approval-preview-actions .btn.action-preview {
      background: #fff !important;
      color: var(--navy) !important;
      border: 1.5px solid var(--navy) !important;
    }

    .btn.action-draft {
      background: #667085 !important;
      color: #fff !important;
    }

    .btn.action-complete,
    .btn.action-approve {
      background: #2F9D69 !important;
      color: #fff !important;
    }

    .btn.action-share {
      background: #315E9D !important;
      color: #fff !important;
    }

    .btn.action-step {
      background: #DCEBFA !important;
      border-color: #AFCBE8 !important;
      color: #1B4E88 !important;
    }

    .btn.action-edit,
    .report-edit-button.action-edit {
      background: #F2B51D !important;
      border-color: #F2B51D !important;
      color: var(--navy) !important;
    }

    .btn.action-return {
      background: #E8751A !important;
      color: #fff !important;
      border-color: #E8751A !important;
    }

    .btn.action-danger,
    .crop-btn.action-danger {
      background: var(--red) !important;
      color: #fff !important;
      border-color: var(--red) !important;
    }

    .btn.action-save,
    .crop-btn.action-save {
      background: #2F9D69 !important;
      color: #fff !important;
      border-color: #2F9D69 !important;
    }

    .btn.action-neutral,
    .crop-btn.action-neutral {
      background: #F3F5F8 !important;
      color: var(--navy) !important;
      border: 1px solid #D7DEE9 !important;
    }

    .crop-btn.action-share {
      background: #315E9D !important;
      color: #fff !important;
      border-color: #315E9D !important;
    }

    .analytics-report-preview {
      background: #fff !important;
      color: var(--navy) !important;
      border: 1.5px solid var(--navy) !important;
    }

    .analytics-report-download {
      background: #315E9D !important;
      color: #fff !important;
      border-color: #315E9D !important;
    }

    /* --- ans-btn (cevap butonları) daha yüksek ve dokunması kolay --- */
    .ans-btn {
      padding: 13px 4px;
      border-radius: 10px;
      font-size: 13px;
      letter-spacing: .01em;
      transition: background .15s ease, border-color .15s ease, transform .08s ease, box-shadow .15s ease;
    }

    .ans-btn:active {
      transform: scale(.96);
    }

    .ans-btn.sel {
      box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    }

    .ans-btn[data-v="uygun"].sel {
      box-shadow: 0 2px 10px rgba(47, 122, 79, .30);
    }

    .ans-btn[data-v="degil"].sel {
      box-shadow: 0 2px 10px rgba(179, 67, 46, .28);
    }

    /* --- Topbar butonları — daha şık ve tutarlı --- */
    .topbar-trash-btn {
      height: 42px;
      border-radius: 10px;
      font-size: 11px;
      font-weight: 700;
      gap: 6px;
      padding: 0 12px;
      border-color: #D5DCE8;
      transition: all .18s ease;
    }

    .topbar-trash-btn:hover {
      background: #E8EDF5;
      border-color: #A8B5C9;
    }

    .topbar-trash-btn:active {
      transform: scale(.96);
    }

    .topbar-module-btn {
      transition: all .18s ease;
    }

    .topbar-module-btn:active {
      transform: scale(.96);
    }

    .revision-history-button {
      border-radius: 10px;
      width: 42px;
      height: 42px;
      transition: all .18s ease;
      border-color: #D5DCE8;
    }

    .revision-history-button:hover {
      background: #EEF2F8;
      border-color: #A8B5C9;
    }

    .revision-history-button:active {
      transform: scale(.96);
    }

    /* --- account-menu hover daha belirgin --- */
    .account-menu {
      transition: all .18s ease;
    }

    .account-menu:active {
      transform: scale(.97);
    }

    /* --- obs-add-btn (Bulgu Ekle) daha belirgin --- */
    .obs-add-btn {
      border-color: var(--navy);
      color: var(--navy);
      background: #F0F4FA;
      font-weight: 700;
      transition: all .15s ease;
      border-radius: 10px;
    }

    .obs-add-btn:hover {
      background: #E3EAF5;
    }

    /* --- Card hover efekti (form kartları) --- */
    .card {
      transition: box-shadow .18s ease;
    }

    /* --- Trash action butonları daha yüksek --- */
    .trash-action-btn {
      padding: 10px 13px;
      font-size: 11px;
      border-radius: 10px;
      transition: all .15s ease;
    }

    .trash-action-btn.restore:hover {
      background: #D5EDDE;
    }

    .trash-action-btn.remove:hover {
      background: #F5D5CE;
    }

    /* --- section-title alt çizgi inceldi, daha modern --- */
    .section-title {
      border-bottom: 1.5px solid rgba(24, 40, 73, .18);
      padding-bottom: 10px;
      margin-bottom: 12px;
    }

    /* --- backbtn daha geniş tıklanabilir alan --- */
    .backbtn {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      transition: all .15s ease;
    }

    .backbtn:hover {
      background: #EEF2F8;
      border-color: #A8B5C9;
    }

    .backbtn:active {
      transform: scale(.95);
    }

    /* --- btn.primary daha belirgin hover --- */
    .btn.primary:hover {
      filter: brightness(1.08);
    }

    .btn.secondary:hover {
      background: #E0DDD6;
    }

    /* --- score-chip border-radius yumuşatma --- */
    .score-chip {
      border-radius: 12px;
    }

    /* --- audit-card daha yumuşak geçiş --- */
    .audit-card {
      transition: border-color .18s ease, box-shadow .22s ease, transform .18s ease;
    }

    @media(hover:hover) {
      .audit-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(24, 40, 73, .11);
      }
    }
  
