    :root {
      --bg: #f4f1ec;
      --paper: #fffaf3;
      --ink: #151515;
      --muted: #6e6860;
      --line: #ded5c8;
      --accent: #b64222;
      --accent-dark: #843119;
      --accent-soft: #f1d9cf;
      --green: #30b86f;
      --red-soft: #9a4a3f;
      --green-soft: #30b86f;
      --progress-rest: #30b86f;
      --shadow: 0 24px 70px rgba(33, 25, 18, .12);
      --radius-xl: 34px;
      --radius-lg: 24px;
      --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
      --sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: var(--sans);
      color: var(--ink);
      background:
        radial-gradient(circle at 82% 18%, rgba(182, 66, 34, .12), transparent 30%),
        radial-gradient(circle at 10% 78%, rgba(0, 0, 0, .05), transparent 34%),
        var(--bg);
    }

    .page {
      width: min(1180px, calc(100vw - 44px));
      margin: 0 auto;
      padding: 24px 0 24px;
    }

    .site-footer {
      width: 100%;
      min-height: 50px;
      padding: 16px 22px;
      background: #000000;
      color: #bbbbbb;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 15px;
      line-height: 1.55;
      text-align: center;
    }

    .site-footer a {
      color: #bbbbbb;
      text-decoration: none;
      margin-left: 22px;
      white-space: nowrap;
    }

    .site-footer a:hover {
      color: #ffffff;
      text-decoration: underline;
    }

    header {
      display: grid;
      grid-template-columns: minmax(360px, 1fr) minmax(450px, 450px);
      align-items: center;
      gap: 24px;
      margin-bottom: 22px;
    }

    .brand-kicker {
      font-family: var(--mono);
      font-size: 18px;
      font-weight: 900;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 12px;
    }

    h1 {
      margin: 0;
      font-size: clamp(42px, 5.8vw, 76px);
      line-height: .92;
      letter-spacing: -0.055em;
      font-weight: 820;
      white-space: nowrap;
    }

    .dashboard-home-link {
      color: inherit;
      text-decoration: none;
    }

    .dashboard-home-link:hover,
    .dashboard-home-link:focus-visible {
      color: var(--accent);
      outline: none;
    }

    .rename-under-title {
      margin-top: 18px;
      padding-left: clamp(132px, 18vw, 300px);
    }

    .rename-under-title button {
      min-height: 28px;
      padding: 5px 12px;
      font-size: 12px;
      line-height: 1;
    }

    .dev-logout {
      display: inline-flex;
      margin-top: 8px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      text-decoration: none;
    }

    .dev-logout:hover {
      color: var(--accent-dark);
    }

    .logout-link {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 5px 12px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fffdf9;
      color: var(--ink);
      font-size: 12px;
      font-weight: 800;
      line-height: 1;
      text-decoration: none;
    }

    .logout-link:hover {
      color: var(--ink);
      border-color: rgba(182, 66, 34, .45);
    }

    .login-dialog-backdrop {
      position: fixed;
      inset: 0;
      z-index: 30;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(21, 21, 21, .34);
    }

    .login-dialog-backdrop.is-visible {
      display: flex;
    }

    .login-dialog {
      width: min(420px, 100%);
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fffaf3;
      box-shadow: var(--shadow);
      padding: 22px;
    }

    .project-dialog {
      width: min(760px, 100%);
      max-height: min(86vh, 760px);
      overflow: auto;
    }

    .notice-dialog {
      width: min(420px, 100%);
    }

    .dialog-close-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      min-height: 34px;
      flex: 0 0 auto;
      border-radius: 8px;
      padding: 0;
      font-size: 24px;
      font-weight: 700;
      line-height: 1;
    }

    .notice-dialog p {
      margin: 0;
      color: var(--muted);
      line-height: 1.45;
    }

    .consent-credit-option {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin: 2px 0;
      color: var(--text);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.4;
    }

    .consent-credit-option input {
      width: 18px;
      height: 18px;
      margin-top: 1px;
      accent-color: #2563eb;
      flex: 0 0 auto;
    }

    .notice-dialog .consent-credit-note {
      color: #475569;
      font-size: 13px;
    }

    .notice-dialog ol {
      margin: 0;
      padding-left: 22px;
      color: var(--muted);
      line-height: 1.5;
    }

    .notice-dialog li + li {
      margin-top: 8px;
    }

    .project-switch-list {
      display: grid;
      gap: 10px;
      margin-top: 8px;
    }

    .project-switch-item {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 12px;
      background: #fffdf9;
      color: var(--ink);
      text-align: left;
      box-shadow: none;
    }

    .project-switch-item.is-active {
      border-color: rgba(182, 66, 34, .75);
      background: var(--accent-soft);
    }

    .project-switch-title {
      display: block;
      font-weight: 900;
      line-height: 1.25;
    }

    .project-switch-meta {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      line-height: 1.35;
    }

    .project-switch-local-setup {
      display: block;
      margin-top: 5px;
      color: #9a5a16;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.35;
    }

    .project-overview-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .project-overview-title {
      font-size: 18px;
      font-weight: 850;
      letter-spacing: -0.02em;
      color: var(--ink);
    }

    .project-overview-count {
      color: var(--muted);
      font-family: var(--mono);
      font-size: 12px;
      font-weight: 800;
    }

    .project-overview-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 10px;
    }

    .project-overview-list.is-empty {
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

    .project-overview-item {
      width: 100%;
      min-height: 84px;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 12px;
      background: #fffdf9;
      color: var(--ink);
      text-align: left;
      box-shadow: none;
    }

    .project-overview-item.is-active {
      border-color: rgba(182, 66, 34, .75);
      background: var(--accent-soft);
    }

    .customer-overview-item {
      border-color: rgba(96, 165, 250, .72);
      background: #eff6ff;
      position: relative;
    }

    .customer-overview-actions {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .customer-add-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 28px;
      min-height: 28px;
      border-radius: 8px;
      padding: 0;
      border: 1px solid #60a5fa;
      background: #dbeafe;
      color: #0f3057;
      font-size: 20px;
      font-weight: 900;
      line-height: 1;
    }

    .customer-card-head {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .customer-card-main {
      flex: 1;
      min-width: 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: inherit;
      text-align: left;
      box-shadow: none;
    }

    .customer-card-main:hover {
      background: transparent;
      color: inherit;
    }

    .customer-employee-add-button {
      flex: 0 0 auto;
      width: 26px;
      height: 26px;
      min-height: 26px;
      border-radius: 6px;
      font-size: 17px;
    }

    .customer-employees {
      margin-top: 9px;
      color: #334155;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.4;
    }

    .customer-employee-link {
      display: inline;
      padding: 0;
      border: 0;
      background: transparent;
      color: #1d4ed8;
      font: inherit;
      text-decoration: underline;
      box-shadow: none;
    }

    .customer-employee-separator {
      color: #64748b;
    }

    .project-overview-name {
      display: block;
      font-weight: 900;
      line-height: 1.22;
    }

    .project-overview-meta,
    .project-overview-status {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      line-height: 1.3;
    }

    .project-overview-status {
      color: #9a5a16;
      font-weight: 800;
    }

    .login-dialog-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 16px;
    }

    .login-dialog h2 {
      margin: 0;
      font-size: 24px;
      letter-spacing: 0;
      color: #374151;
    }

    .login-dialog label {
      display: block;
      margin: 13px 0 6px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .login-dialog input {
      width: 100%;
      min-height: 42px;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 10px 12px;
      background: #fffdf9;
      color: var(--ink);
      font: inherit;
    }

    .password-field {
      position: relative;
    }

    .password-field input {
      padding-right: 46px;
    }

    .password-toggle {
      position: absolute;
      right: 7px;
      top: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      transform: translateY(-50%);
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: transparent;
      color: #1d4ed8;
      cursor: pointer;
    }

    .password-toggle:hover,
    .password-toggle:focus-visible,
    .password-toggle[aria-pressed="true"] {
      background: rgba(29, 78, 216, .08);
    }

    .password-toggle:focus-visible {
      outline: 2px solid rgba(29, 78, 216, .35);
      outline-offset: 2px;
    }

    .password-toggle-icon {
      width: 20px;
      height: 20px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .login-inline-link {
      display: inline-flex;
      align-items: center;
      margin: 8px 0 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: #1d4ed8;
      font: inherit;
      font-size: 14px;
      font-weight: 800;
      text-decoration: underline;
      cursor: pointer;
    }

    .login-inline-link:focus-visible {
      outline: 2px solid rgba(29, 78, 216, .35);
      outline-offset: 3px;
    }

    .login-dialog-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 18px;
    }

    .project-dialog .login-dialog-actions {
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
    }

    .dialog-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0 14px;
    }

    .dialog-span {
      grid-column: 1 / -1;
    }

    .dialog-note {
      grid-column: 1 / -1;
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 6px;
      margin-top: 12px;
      padding: 4px 0 6px;
      border: 0;
      background: transparent;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.4;
    }

    .dialog-note-text {
      display: inline-flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }

    .dialog-note-line {
      display: block;
      flex-basis: 100%;
    }

    .dialog-note-action-line {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: nowrap;
    }

    .dialog-note.is-ok {
      color: #147a2e;
    }

    .dialog-note.is-error {
      color: var(--red-soft);
    }

    .dialog-note-action {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 30px;
      height: 34px;
      margin-left: 6px;
      padding: 7px 16px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
      line-height: 1;
      vertical-align: middle;
      white-space: nowrap;
    }

    .dialog-note-action-line .dialog-note-action {
      margin-left: 0;
    }

    .dialog-note-action-text {
      white-space: nowrap;
    }

    .jira-status-row {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 260px)) !important;
      gap: 0 14px;
      align-items: end;
    }

    .jira-status-field {
      min-width: 0;
    }

    .field-label-row {
      display: flex;
      align-items: center;
      gap: 7px;
      margin: 13px 0 6px;
    }

    .token-label-row {
      justify-content: space-between;
      align-items: flex-end;
      gap: 8px;
    }

    .token-label-main {
      flex: 0 0 92px;
      white-space: nowrap;
    }

    .field-label-row label {
      margin: 0;
    }

    .info-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      min-height: 20px;
      border: 0;
      border-radius: 999px;
      padding: 0;
      background: #2563eb;
      color: #fff;
      font-size: 13px;
      font-weight: 900;
      line-height: 1;
      box-shadow: none;
    }

    .conditional-field.is-hidden {
      display: none;
    }

    .project-dialog-tabs {
      display: inline-flex;
      gap: 6px;
      padding: 4px;
      margin: 4px 0 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #f7efe3;
    }

    .project-dialog-tab {
      min-height: 34px;
      border: 0;
      border-radius: 6px;
      padding: 7px 16px;
      background: transparent;
      color: var(--muted);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0;
      box-shadow: none;
    }

    .project-dialog-tab.is-active {
      background: #fffdf9;
      color: var(--ink);
      box-shadow: 0 1px 4px rgba(33, 25, 18, .08);
    }

    .project-dialog-tab-check {
      display: none;
      margin-right: 6px;
      color: #15803d;
      font-weight: 900;
    }

    .project-dialog-tab-warning {
      display: none;
      margin-right: 6px;
      color: #b45309;
      font-weight: 900;
    }

    .project-dialog-tab.is-ok .project-dialog-tab-check {
      display: inline;
    }

    .project-dialog-tab.is-warning .project-dialog-tab-warning {
      display: inline;
    }

    .project-tab-panel {
      display: none;
    }

    .project-tab-panel.is-active {
      display: block;
    }

    .project-settings-list {
      display: grid;
      gap: 10px;
      padding-top: 4px;
    }

    .login-dialog .project-setting-option {
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      align-items: center;
      gap: 10px;
      min-height: 34px;
      margin: 0;
      padding: 4px 0;
      color: var(--ink);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.25;
      text-transform: none;
    }

    .login-dialog .project-setting-option input {
      width: 18px;
      height: 18px;
      margin: 0;
      align-self: center;
    }

    .login-dialog .project-setting-option span {
      align-self: center;
      line-height: 1.25;
    }

    .login-dialog .project-setting-select-option {
      grid-template-columns: minmax(220px, 1fr) minmax(320px, 380px);
      align-items: center;
    }

    .login-dialog .project-setting-select-option select {
      width: 100%;
      min-width: 0;
    }

    @media (max-width: 680px) {
      .login-dialog .project-setting-select-option {
        grid-template-columns: 1fr;
      }
    }

    .login-dialog select {
      width: 100%;
      min-height: 42px;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 10px 12px;
      background: #fffdf9;
      color: var(--ink);
      font: inherit;
    }

    .token-test-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      gap: 10px;
      align-items: end;
    }

    .token-test-row button {
      min-height: 42px;
      margin-left: 0;
      padding: 10px 14px;
      white-space: nowrap;
    }

    .token-test-row .info-button {
      width: 20px;
      min-width: 20px;
      height: 20px;
      min-height: 20px;
      padding: 0;
      border-radius: 50%;
      font-size: 13px;
      line-height: 1;
      white-space: normal;
    }

    .stored-token-hint {
      display: none;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.32;
      text-transform: none;
      font-weight: 500;
      text-align: left;
      max-width: 520px;
      flex: 1 1 auto;
    }

    .stored-token-hint.is-visible {
      display: block;
    }

    @media (max-width: 680px) {
      .token-label-row {
        align-items: flex-start;
        flex-direction: column;
      }

      .stored-token-hint {
        text-align: left;
        max-width: none;
      }
    }

    .test-ok-check {
      display: none;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 42px;
      color: #15803d;
      font-size: 20px;
      font-weight: 900;
      line-height: 1;
    }

    .test-ok-check.is-visible {
      display: inline-flex;
    }

    .test-warning-check {
      display: none;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 42px;
      color: #b45309;
      font-size: 20px;
      font-weight: 900;
      line-height: 1;
    }

    .test-warning-check.is-visible {
      display: inline-flex;
    }

    .token-input-help-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
    }

    .git-email-help-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto auto;
      gap: 8px;
      align-items: center;
    }

    .git-email-action {
      min-height: 36px;
      padding: 8px 12px;
      white-space: nowrap;
    }

    @media (max-width: 680px) {
      .token-test-row {
        grid-template-columns: 1fr;
      }

      .git-email-help-row {
        grid-template-columns: minmax(0, 1fr) auto;
      }

      .git-email-action {
        grid-column: span 2;
      }

      .test-ok-check {
        height: 24px;
      }

      .test-warning-check {
        height: 24px;
      }
    }

    .login-error {
      display: none;
      margin-top: 12px;
      padding: 9px 10px;
      border: 1px solid rgba(154, 74, 63, .25);
      border-radius: 8px;
      background: #fff0ec;
      color: var(--red-soft);
      font-size: 13px;
      font-weight: 800;
    }

    .login-error.is-visible {
      display: block;
    }

    .login-success {
      display: none;
      margin-top: 12px;
      padding: 9px 10px;
      border: 1px solid rgba(21, 128, 61, .24);
      border-radius: 8px;
      background: #ecfdf3;
      color: #15803d;
      font-size: 13px;
      font-weight: 800;
    }

    .login-success.is-visible {
      display: block;
    }

    .login-hint {
      margin: 0 0 14px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.45;
    }

    @media (max-width: 680px) {
      .dialog-grid {
        grid-template-columns: 1fr;
      }

      .dialog-span {
        grid-column: auto;
      }
    }

    .hide-ai-costs .ai-only {
      display: none !important;
    }

    .project-summary {
      justify-self: end;
      width: 100%;
      background: rgba(255, 250, 243, .78);
      border: 1px solid var(--line);
      border-radius: 24px;
      box-shadow: 0 12px 42px rgba(33, 25, 18, .08);
      padding: 18px 20px;
    }

    .project-summary-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin: 0 0 10px;
      flex-wrap: nowrap;
    }

    .project-summary-title {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .project-summary-label {
      display: block;
      font-family: var(--mono);
      font-size: 17px;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0;
    }

    .project-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: nowrap;
      justify-content: flex-end;
    }

    .project-actions button {
      flex: 0 0 auto;
    }

    .project-summary-work-row {
      display: flex;
      align-items: center;
      gap: 10px;
      justify-content: center;
      margin-top: 8px;
      margin-bottom: -4px;
    }

    .auto-ticket-toggle {
      display: none;
      align-items: center;
      gap: 6px;
      min-height: 28px;
      padding: 4px 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fffdf9;
      color: var(--ink);
      font-size: 12px;
      font-weight: 800;
      line-height: 1;
      white-space: nowrap;
      cursor: pointer;
    }

    .auto-ticket-toggle.is-visible {
      display: inline-flex;
    }

    .auto-ticket-toggle input {
      width: 14px;
      height: 14px;
      margin: 0;
      accent-color: var(--accent);
    }

    .project-work-button {
      display: none;
      min-height: 30px;
      padding: 6px 13px;
      font-size: 13px;
      white-space: nowrap;
      align-items: center;
      justify-content: center;
      line-height: 1.15;
      text-align: center;
      background: #2563eb;
      color: #fff;
      box-shadow: 0 10px 22px rgba(37, 99, 235, .25);
    }

    .project-work-button.is-not-ready {
      background: #d1d5db;
      color: #4b5563;
      box-shadow: none;
    }

    .project-work-button.is-visible {
      display: inline-flex;
    }

    .project-setup-warning-button {
      display: none;
      align-items: center;
      justify-content: center;
      width: 28px;
      min-width: 28px;
      height: 28px;
      min-height: 28px;
      padding: 0;
      border: 1px solid rgba(180, 83, 9, .28);
      border-radius: 999px;
      background: #facc15;
      color: #7c2d12;
      box-shadow: 0 8px 18px rgba(250, 204, 21, .24);
      font-size: 16px;
      line-height: 1;
    }

    .project-setup-warning-button.is-visible {
      display: inline-flex;
    }

    #projectDialogWorkButton {
      min-width: 310px;
      min-height: 50px;
      padding: 15px 22px;
      font-size: 15px;
      flex: 0 0 auto;
    }

    .project-access-status {
      display: none;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      width: 28px;
      height: 28px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: #fffdf9;
      font-size: 16px;
      font-weight: 900;
      line-height: 1;
    }

    .project-access-status.is-visible {
      display: inline-flex;
    }

    .project-access-status.is-ready {
      color: #15803d;
      border-color: rgba(21, 128, 61, .28);
      background: #ecfdf3;
    }

    .project-access-status.is-warning {
      color: #b45309;
      border-color: rgba(180, 83, 9, .28);
      background: #fff7ed;
    }

    .project-access-status.is-working {
      color: #2563eb;
      border-color: rgba(37, 99, 235, .24);
      background: #eff6ff;
    }

    .project-link-check {
      display: none;
      margin-left: 6px;
      color: #15803d;
      font-size: 15px;
      font-weight: 900;
      line-height: 1;
    }

    .project-link-check.is-visible {
      display: inline;
    }

    .project-switch-title .project-access-status,
    .project-overview-name .project-access-status {
      display: inline-flex;
      width: 22px;
      height: 22px;
      margin-right: 7px;
      font-size: 13px;
      vertical-align: -4px;
    }

    .project-title {
      color: var(--ink);
      font-size: 20px;
      font-weight: 720;
      letter-spacing: -0.02em;
      line-height: 1.2;
      margin-bottom: 12px;
    }

    .project-title-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
    }

    .project-title-row .project-title {
      margin-bottom: 0;
    }

    .project-id-badge {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
    }

    .project-local-setup {
      color: #9a5a16;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.35;
      margin-top: 8px;
    }

    .project-local-setup.is-ready {
      color: #24764a;
    }

    .project-local-setup.is-error {
      color: #a83a2a;
    }

    .project-edit-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      min-height: 28px;
      flex: 0 0 auto;
      border-radius: 8px;
      padding: 0;
      font-size: 16px;
      line-height: 1;
      transform: scaleX(-1);
    }

    .project-add-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      min-height: 28px;
      border-radius: 8px;
      padding: 0;
      font-size: 18px;
      line-height: 1;
    }

    .project-more-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 28px;
      min-height: 28px;
      border-radius: 8px;
      padding: 0;
      font-size: 18px;
      line-height: 1;
      letter-spacing: 1px;
    }

    .switch-button {
      min-height: 28px;
      padding: 5px 12px;
      font-size: 12px;
      line-height: 1;
      white-space: nowrap;
    }

    .project-links {
      display: grid;
      gap: 8px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.35;
    }

    .project-links div {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .project-links strong {
      color: var(--ink);
      font-weight: 760;
    }

    .dashboard {
      background: rgba(255, 250, 243, .88);
      border: 1px solid rgba(222, 213, 200, .9);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .dashboard-main {
      padding: 28px 46px 16px;
    }

    .section-label {
      font-family: var(--sans);
      font-size: 20px;
      font-weight: 850;
      letter-spacing: -0.03em;
      text-transform: none;
      color: var(--ink);
      margin-bottom: 20px;
    }

    .budget-line {
      display: grid;
      grid-template-columns: minmax(250px, 1fr) minmax(250px, 1fr) minmax(270px, .9fr);
      gap: 22px;
      align-items: stretch;
      margin-bottom: 14px;
    }

    .budget-block {
      background: #fffdf9;
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 24px 24px 22px;
      box-shadow: 0 12px 34px rgba(33, 25, 18, .055);
      min-height: 156px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .budget-label,
    .price-label {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 12px;
    }

    .budget-label {
      letter-spacing: .22em;
      text-transform: uppercase;
    }

    .price-label {
      letter-spacing: .06em;
      text-transform: none;
    }

    .budget-number {
      display: flex;
      align-items: baseline;
      gap: 12px;
      line-height: .9;
    }

    .budget-number strong {
      font-size: clamp(54px, 6.5vw, 88px);
      font-weight: 860;
      letter-spacing: -0.075em;
    }

    .budget-number span {
      font-size: 25px;
      font-weight: 820;
      letter-spacing: -0.04em;
    }

    .used-number { color: var(--red-soft); }
    .available-number-green { color: var(--green-soft); }
    .available-number-green.is-empty,
    .available-number-green.is-overdrawn {
      color: var(--red-soft);
    }
    .budget-warning {
      display: none;
      margin-top: 10px;
      max-width: 280px;
      color: #991b1b;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.3;
    }
    .budget-warning.is-visible {
      display: block;
    }

    .price-box {
      background: #fffdf9;
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 24px 24px 22px;
      box-shadow: 0 12px 34px rgba(33, 25, 18, .07);
      min-height: 156px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .price-number {
      font-size: clamp(49px, 5.85vw, 79px) !important;
      font-weight: 860;
      letter-spacing: -0.075em;
      line-height: .9;
      display: flex;
      align-items: baseline;
      gap: 5px;
    }

    .price-number .euro {
      order: 1;
      font-size: 25px;
      font-weight: 820;
      letter-spacing: -0.04em;
      position: static;
    }

    .price-number sup {
      order: 2;
      font-size: .52em;
      font-weight: 850;
      line-height: 1;
      align-self: flex-start;
      margin-top: 0;
      margin-left: -2px;
      transform: translateY(-.08em);
      color: var(--ink);
      letter-spacing: 0;
    }

    .price-note {
      margin-top: 10px;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.35;
    }

    .progress-wrap {
      margin-top: 4px;
    }

    .progress-head {
      display: grid;
      grid-template-columns: minmax(250px, 1fr) minmax(250px, 1fr) minmax(270px, .9fr);
      justify-content: stretch;
      align-items: baseline;
      gap: 22px;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 18px;
      letter-spacing: .12em;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .progress-percent {
      grid-column: 3;
      justify-self: end;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 18px;
      font-weight: 400;
      letter-spacing: .12em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .progress-percent-number {
      color: var(--red-soft);
      font-family: var(--sans);
      font-size: 32px;
      font-weight: 850;
      letter-spacing: -0.04em;
      text-transform: none;
    }

    .quota-row {
      display: contents;
    }

    .quota-highlight {
      grid-column: 2;
      justify-self: start;
      display: inline-flex;
      align-items: baseline;
      gap: 10px;
      padding-left: 24px;
      position: relative;
      color: var(--progress-rest);
      font-family: var(--sans);
      font-size: clamp(54px, 6.5vw, 88px);
      font-weight: 860;
      letter-spacing: -0.075em;
      line-height: 1;
      text-transform: none;
      white-space: nowrap;
    }

    .quota-unit {
      color: var(--ink);
      font-size: 25px;
      font-weight: 820;
      letter-spacing: -0.04em;
      margin-left: 0;
    }

    .buy-extra-button {
      position: absolute;
      left: calc(100% + 14px);
      top: auto;
      bottom: .08em;
      transform: none;
      min-height: 30px;
      margin-left: 0;
      padding: 5px 10px;
      border-radius: 999px;
      font-size: 12px;
      line-height: 1;
      letter-spacing: 0;
      text-transform: none;
      vertical-align: middle;
      flex: 0 0 auto;
    }

    .hc-purchase-dialog {
      width: min(680px, 100%);
      max-height: min(92vh, 860px);
      overflow: auto;
    }

    .hc-package-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 10px;
    }

    .hc-package-option,
    .hc-payment-option {
      display: flex;
      align-items: center;
      gap: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 10px 12px;
      background: #fffdf9;
      cursor: pointer;
    }

    .hc-package-option.is-selected,
    .hc-payment-option.is-selected {
      border-color: rgba(182, 66, 34, .75);
      background: var(--accent-soft);
    }

    .hc-package-option input,
    .hc-payment-option input {
      width: auto;
      min-height: auto;
      margin: 3px 0 0;
    }

    .hc-package-main {
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }

    .hc-package-head {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .hc-package-head input {
      flex: 0 0 auto;
    }

    .hc-package-size {
      font-weight: 900;
      line-height: 1.2;
    }

    .hc-package-option.is-offer .hc-package-size {
      color: #8b1e1e;
    }

    .hc-package-total {
      color: var(--ink);
      font-size: 15px;
      font-weight: 900;
      line-height: 1.2;
    }

    .hc-package-price,
    .hc-summary-note {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .hc-package-total small,
    .hc-package-price small {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .hc-package-note {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.3;
    }

    .hc-package-option.is-offer .hc-package-note {
      color: #8b1e1e;
      font-weight: 700;
    }

    .hc-voucher-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      margin-top: 8px;
    }

    .hc-voucher-row button {
      min-height: 42px;
      white-space: nowrap;
    }

    #hcVoucherMessage {
      min-height: 18px;
      margin-top: 6px;
    }

    #hcVoucherMessage.is-valid {
      color: #166534;
      font-weight: 800;
    }

    #hcVoucherMessage.is-invalid {
      color: #b91c1c;
      font-weight: 800;
    }

    .hc-billing-section {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
    }

    .hc-billing-section.is-hidden {
      display: none;
    }

    .hc-billing-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 8px;
    }

    .hc-billing-grid input {
      min-width: 0;
    }

    .hc-billing-wide {
      grid-column: 1 / -1;
    }

    .hc-check-list {
      display: grid;
      gap: 9px;
      margin-top: 12px;
    }

    .hc-check-option {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: var(--ink);
      font-size: 13px;
      line-height: 1.35;
    }

    .hc-check-option input {
      width: auto;
      min-height: auto;
      margin: 3px 0 0;
      flex: 0 0 auto;
    }

    .hc-check-option a {
      color: #2563eb;
      font-weight: 800;
      text-decoration: none;
    }
    .hc-summary {
      margin-top: 14px;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      padding: 12px 0;
    }

    .hc-summary-row {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
    }

    .hc-summary-row strong {
      font-size: 24px;
    }

    .hc-payment-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 8px;
    }

    .hc-credit-row {
      display: flex;
      justify-content: flex-end;
      margin-top: 10px;
    }

    .hc-credit-button {
      width: min(240px, 100%);
      min-height: 58px;
      margin-left: 0;
      text-align: left;
      justify-content: flex-start;
    }

    .hc-credit-button .hc-package-main {
      gap: 2px;
    }

    .progress {
      height: 30px;
      border-radius: 999px;
      background: var(--progress-rest);
      overflow: hidden;
      border: 1px solid rgba(0, 0, 0, .05);
    }

    .progress > span {
      display: block;
      height: 100%;
      width: 43.3%;
      border-radius: inherit;
      background: var(--red-soft);
    }

    .progress-caption {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      margin-top: 11px;
      color: var(--muted);
      font-size: 15px;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      padding: 10px 46px 16px;
      border-top: 1px solid var(--line);
      align-items: center;
      justify-content: flex-start;
    }

    .actions-copy {
      color: var(--muted);
      font-size: 15px;
      line-height: 1.45;
    }

    .ticket-metrics {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      color: var(--muted);
      font-size: 14px;
      flex: 0 0 100%;
    }

    .dashboard-stats-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 12px;
      align-items: center;
      flex: 0 0 100%;
    }

    .ticket-metric,
    .actions-copy {
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fffdf9;
      padding: 7px 12px;
      white-space: nowrap;
    }

    .actions-copy {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .first-ticket-hint {
      color: #9a5a16;
      font-size: 15px;
      font-weight: 800;
      line-height: 1.45;
    }

    .ticket-metric strong,
    .actions-copy strong {
      color: var(--ink);
    }

    .actions .primary {
      min-height: 34px;
      height: 34px;
      padding: 8px 16px;
      font-size: 13px;
      background: #2563eb;
      box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1.1;
    }

    .project-summary .project-summary-work-row {
      justify-content: center;
      margin-top: 7px;
      margin-bottom: -15px;
    }

    button {
      border: 0;
      border-radius: 999px;
      padding: 15px 22px;
      font-size: 15px;
      font-weight: 800;
      letter-spacing: -0.01em;
      cursor: pointer;
      min-height: 50px;
    }


    .login-dialog .password-field .password-toggle {
      position: absolute;
      right: 7px;
      top: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      min-width: 32px;
      height: 32px;
      min-height: 32px;
      transform: translateY(-50%);
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: transparent;
      color: #1d4ed8;
      font-size: 0;
      line-height: 1;
      letter-spacing: 0;
    }

    .login-dialog .password-field .password-toggle-icon {
      display: block;
      width: 20px;
      height: 20px;
      pointer-events: none;
    }
    .info-button {
      width: 20px;
      min-width: 20px;
      height: 20px;
      min-height: 20px;
      aspect-ratio: 1 / 1;
      border-radius: 50%;
      padding: 0;
      font-size: 13px;
      line-height: 1;
      letter-spacing: 0;
    }

    .primary {
      background: #2563eb;
      color: white;
      box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
    }

    .project-summary #projectWorkButton.project-work-button {
      min-height: 28px;
      height: 28px;
      padding: 5px 14px;
      font-size: 12px;
      background: #2563eb !important;
      color: #fff !important;
      box-shadow: 0 8px 18px rgba(37, 99, 235, .24) !important;
    }

    button.primary#projectWorkButton.project-work-button,
    button.primary#projectDialogWorkButton.project-work-button {
      background: #2563eb !important;
      color: #fff !important;
      box-shadow: 0 8px 18px rgba(37, 99, 235, .24) !important;
    }

    .project-summary #projectWorkButton.project-work-button.is-not-ready {
      background: #d1d5db !important;
      color: #4b5563 !important;
      box-shadow: none !important;
    }

    .secondary {
      background: #fffdf9;
      border: 1px solid var(--line);
      color: var(--ink);
      margin-left: 8px;
    }

    .question-alert,
    .support-alert,
    .dashboard-pill-button,
    .tickets-title-badge {
      min-height: 34px;
      height: 34px;
      padding: 8px 16px;
      border-radius: 999px;
      box-shadow: none;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.1;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .dashboard-pill-button {
      margin-left: 0;
    }

    .question-alert,
    .tickets-title-badge.is-question {
      border: 1px solid #d7a71c;
      background: #ffd85a;
      color: #3f2d00;
      box-shadow: 0 10px 24px rgba(147, 103, 0, .26);
    }

    .support-alert,
    .tickets-title-badge.is-support {
      /* Alte Support-Farbe zum Zurücksetzen:
      border: 1px solid #b42318;
      background: #f97066;
      box-shadow: 0 10px 24px rgba(180, 35, 24, .22);
      */
      border: 1px solid #b67868;
      background: #d9a195;
      color: var(--ink);
      box-shadow: 0 10px 24px rgba(154, 74, 63, .18);
    }

    .projects-button {
      border: 1px solid #8b5cf6;
      background: #c4b5fd;
      color: #24104f;
      box-shadow: 0 10px 24px rgba(124, 58, 237, .22);
    }

    .customers-button {
      border: 1px solid #60a5fa;
      background: #bfdbfe;
      color: #0f3057;
      box-shadow: 0 10px 24px rgba(37, 99, 235, .16);
    }

    .customers-button.is-hidden {
      display: none;
    }

    .support-done-button {
      min-height: 30px;
      padding: 6px 12px;
      border: 1px solid #2f855a;
      border-radius: 999px;
      background: #9ae6b4;
      color: #10351f;
      box-shadow: none;
      font-size: 12px;
      font-weight: 850;
      line-height: 1.1;
      white-space: nowrap;
    }

    .ticket-run-report-button {
      min-height: auto;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: #1d4ed8;
      font: inherit;
      font-weight: 800;
      text-decoration: underline;
      box-shadow: none;
    }

    .ticket-agent-runs-button {
      min-height: auto;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: #047857;
      font: inherit;
      font-weight: 850;
      text-decoration: underline;
      box-shadow: none;
    }

    .ticket-agent-runs-row td {
      padding: 0 10px 12px;
      background: #f8fafc;
    }

    .agent-runs-inline {
      border: 1px solid rgba(15, 23, 42, .12);
      border-radius: 8px;
      padding: 12px;
      background: #ffffff;
      box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
    }

    .agent-runs-inline-title {
      margin-bottom: 10px;
      color: var(--ink);
      font-size: 13px;
      font-weight: 900;
    }

    .agent-runs-inline-scroll {
      overflow-x: auto;
    }

    .agent-runs-inline-table {
      width: 100%;
      min-width: 920px;
      border-collapse: collapse;
      font-size: 12px;
    }

    .agent-runs-inline-table th,
    .agent-runs-inline-table td {
      padding: 7px 8px;
      border-bottom: 1px solid rgba(15, 23, 42, .10);
      text-align: left;
      vertical-align: top;
      white-space: nowrap;
    }

    .agent-runs-inline-table th {
      color: var(--muted);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0;
    }

    .agent-runs-inline-table tbody tr:last-child td {
      border-bottom: 0;
    }

    .agent-runs-inline-empty,
    .agent-runs-inline-error {
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
    }

    .agent-runs-inline-error {
      color: #b42318;
    }

    .consent-primary {
      background: #2563eb;
      color: #fff;
      box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
    }

    .consent-secondary {
      border-color: rgba(37, 99, 235, .28);
      color: #1d4ed8;
      background: #eff6ff;
    }

    #helpDialog #okHelpDialogButton,
    #helpDialog .login-dialog-actions button {
      background: #2563eb !important;
      color: #fff !important;
      box-shadow: 0 10px 24px rgba(37, 99, 235, .24) !important;
    }

    #unsavedProjectDialog #saveUnsavedProjectButton {
      background: #2563eb !important;
      color: #fff !important;
      box-shadow: 0 10px 24px rgba(37, 99, 235, .24) !important;
    }

    #submitProjectButton {
      background: #2563eb !important;
      color: #fff !important;
      box-shadow: 0 10px 24px rgba(37, 99, 235, .24) !important;
    }

    .ticket-pr-state {
      display: inline-block;
      margin-left: 4px;
      font-weight: 850;
      white-space: nowrap;
    }

    .ticket-pr-state.is-merged {
      color: #147a2e;
    }

    .ticket-pr-state.is-closed {
      color: #b42318;
    }

    .ticket-pr-merge-button {
      min-height: 24px;
      margin-left: 7px;
      padding: 3px 8px;
      border: 1px solid #2563eb;
      border-radius: 6px;
      background: #2563eb;
      color: #fff;
      box-shadow: none;
      font-size: 12px;
      font-weight: 850;
      line-height: 1.1;
      white-space: nowrap;
      vertical-align: middle;
    }

    .ticket-pr-merge-button:disabled {
      opacity: .62;
      cursor: wait;
    }

    .run-report-dialog {
      width: min(760px, 100%);
      max-height: min(82vh, 760px);
      overflow: auto;
    }

    .run-report-list {
      display: grid;
      gap: 12px;
      margin-top: 8px;
    }

    .run-report-item {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 12px;
      background: #fffdf9;
    }

    .run-report-meta {
      margin-bottom: 8px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .run-report-text {
      margin: 0;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      font-family: var(--mono);
      font-size: 13px;
      line-height: 1.45;
    }

    .support-toggle {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .support-toggle input {
      width: auto;
      min-height: auto;
      margin: 0;
    }

    .tickets-title-badge.is-ticket {
      border: 1px solid #1d4ed8;
      background: #3b82f6;
      color: #ffffff;
    }

    .question-alert.is-empty,
    .support-alert.is-empty {
      color: var(--ink);
    }

    .tickets {
      display: none;
      border-top: 1px solid var(--line);
      padding: 28px 46px 38px;
      background: rgba(255, 253, 249, .58);
    }

    .tickets.is-visible {
      display: block;
      margin-top: 14px;
    }

    .tickets h2 {
      margin: 0 0 16px;
      font-size: 26px;
      letter-spacing: -0.04em;
    }

    .tickets-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 16px;
    }

    .tickets-head h2 {
      margin: 0;
    }

    .tickets-title-row {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .tickets-title-badge {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      width: 390px;
      max-width: 100%;
      box-sizing: border-box;
      border-radius: 999px;
      padding: 9px 18px;
      justify-content: center;
      font-family: var(--font);
      font-size: 24px;
      font-weight: 800;
      letter-spacing: 0;
      text-transform: none;
    }

    .ticket-reload-button {
      width: 38px;
      min-width: 38px;
      min-height: 38px;
      height: 38px;
      margin-left: 0;
      padding: 0;
      border-radius: 999px;
      border-color: #1d4ed8;
      color: #1d4ed8;
      font-size: 21px;
      font-weight: 900;
      line-height: 1;
    }

    .ticket-reload-button:disabled {
      opacity: .62;
      cursor: progress;
    }

    .ticket-filter {
      width: min(320px, 45vw);
      min-height: 38px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fffdf9;
      color: var(--ink);
      font: inherit;
      font-size: 14px;
      padding: 8px 14px;
      outline: none;
    }

    .ticket-filter:focus {
      border-color: var(--accent-dark);
      box-shadow: 0 0 0 3px rgba(122, 85, 46, .13);
    }

    table {
      width: 100%;
      table-layout: fixed;
      border-collapse: collapse;
      overflow: hidden;
      border-radius: 18px;
      background: #fffdf9;
      border: 1px solid var(--line);
    }

    th, td {
      text-align: left;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
      font-size: 14px;
    }

    th {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--muted);
      background: #f8f1e9;
    }

    .tickets th,
    .tickets td {
      padding-left: 10px;
      padding-right: 10px;
    }
    .tickets .col-start { width: 82px; }
    .tickets .col-ticket { width: 124px; }
    .tickets .col-pr { width: 76px; }
    .tickets .col-status { width: 106px; }
    .tickets .col-summary { width: auto; }
    .tickets .col-hours { width: 72px; }
    .tickets .col-runtime { width: 76px; }
    .tickets .col-money { width: 68px; }
    .tickets .col-model { width: 92px; }
    .tickets td:first-child {
      white-space: nowrap;
    }
    .tickets .ticket-issue-key,
    .tickets .ticket-issue-key a {
      display: block;
      max-width: 100%;
      line-height: 1.25;
      overflow-wrap: anywhere;
      white-space: normal;
      word-break: break-word;
    }
    .tickets .ticket-start {
      line-height: 1.25;
    }
    .tickets td:nth-child(4) {
      overflow-wrap: anywhere;
    }
    .tickets td:nth-child(6),
    .tickets td:nth-child(7),
    .tickets td:nth-child(8),
    .tickets td:nth-child(9),
    .tickets td:nth-child(10),
    .tickets td:nth-child(11) {
      font-size: 13px;
      white-space: nowrap;
    }
    .tickets td:nth-child(12) {
      font-size: 12px;
      line-height: 1.25;
      overflow-wrap: anywhere;
      white-space: normal;
    }
    .harry-status {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      min-height: 22px;
      border-radius: 999px;
      padding: 2px 8px;
      font-size: 12px;
      font-weight: 700;
      background: #eef2f7;
      color: #111827;
      white-space: nowrap;
    }
    .harry-status-button {
      border: 0;
      cursor: pointer;
      font: inherit;
      appearance: none;
    }
    .harry-status-button:hover,
    .harry-status-button:focus-visible {
      box-shadow: 0 0 0 2px rgba(37, 99, 235, .22);
      outline: none;
    }
    .harry-status.is-done { background: #e8f6ee; color: #14532d; }
    .harry-status.is-working { background: #e8f0ff; color: #1d4ed8; }
    .harry-status.is-running { background: #e8f0ff; color: #1d4ed8; }
    .harry-status.is-queued { background: #fff7dd; color: #8a5800; }
    .harry-status.is-estimate_requested,
    .harry-status.is-estimating { background: #ecfeff; color: #0e7490; }
    .harry-status.is-estimate_ready { background: #eff6ff; color: #1d4ed8; }
    .harry-status.is-estimate_rejected { background: #f1f5f9; color: #64748b; }
    .harry-status.is-estimate_too_large { background: #fff7ed; color: #c2410c; }
    .harry-status.is-question { background: #fff7dd; color: #8a5800; }
    .harry-status.is-support { background: #fdecea; color: #991b1b; }
    .harry-status.is-paused { background: #f4ece3; color: #7c3f18; }
    .ticket-status-cell {
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
      white-space: normal;
    }
    .ticket-status-cell.has-cancel {
      display: inline-flex;
      gap: 4px;
      align-items: center;
    }
    .ticket-status-cell.has-cancel .ticket-cancel-button {
      margin-top: 0;
      background: #e5e7eb;
      border-color: #d1d5db;
      color: #64748b;
      box-shadow: none;
    }

    .ticket-status-cell.has-cancel .ticket-cancel-button:hover {
      background: #dc2626;
      border-color: #dc2626;
      color: #fff;
      box-shadow: 0 5px 12px rgba(220, 38, 38, .18);
    }
    .ticket-queue-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      min-height: 24px;
      padding: 0;
      border-radius: 999px;
      font-size: 13px;
      line-height: 1;
    }
    .ticket-queue-button[data-ticket-queue-action="queue"] {
      background: transparent;
      border-color: transparent;
      color: #15803d;
      box-shadow: none;
      font-size: 18px;
      width: 20px;
      height: 20px;
      min-height: 20px;
      padding: 0;
    }
    .ticket-queue-button[data-ticket-queue-action="queue"]:hover {
      color: #166534;
      background: transparent;
      transform: translateY(-1px);
    }
    .ticket-cancel-button {
      background: #dc2626;
      border-color: #dc2626;
      color: #fff;
      width: 15px;
      height: 15px;
      min-height: 15px;
      font-size: 10px;
      font-weight: 900;
      box-shadow: 0 5px 12px rgba(220, 38, 38, .18);
    }
    .ticket-cancel-button:hover {
      background: #b91c1c;
      border-color: #b91c1c;
      color: #fff;
    }
    .ticket-start-estimate {
      display: grid;
      gap: 4px;
      margin: 12px 0;
      padding: 12px 14px;
      border: 1px solid #bfdbfe;
      border-radius: 8px;
      background: #eff6ff;
      color: #1e3a8a;
    }
    .ticket-start-estimate span {
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0;
    }
    .ticket-start-estimate strong {
      font-size: 18px;
      line-height: 1.25;
    }
    .ticket-start-detail {
      display: grid;
      gap: 4px;
      margin: 4px 0 12px;
      padding: 12px 14px;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      background: #f9fafb;
      color: #000;
    }
    .ticket-start-key {
      font-size: 16px;
      line-height: 1.2;
      color: #8b1e0f;
    }
    .ticket-start-summary {
      margin: 0;
      font-size: 18px;
      font-weight: 800;
      line-height: 1.32;
      color: #000;
    }
    .ticket-start-detail p {
      color: #000;
    }
    .agent-rename-dialog {
      display: grid;
      gap: 8px;
      margin-top: 4px;
    }
    .agent-rename-dialog label {
      margin: 0;
      color: #374151;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .agent-rename-dialog input {
      width: 100%;
      box-sizing: border-box;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      padding: 12px 14px;
      font: inherit;
      font-weight: 800;
      color: #111827;
      background: #fff;
    }
    .agent-rename-dialog input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(46, 106, 159, .16);
      outline: none;
    }
    .agent-rename-dialog p {
      margin: 0;
      color: #6b7280;
      line-height: 1.4;
    }
    .ticket-estimate {
      display: inline-flex;
      align-items: center;
      margin-left: 2px;
      color: #1d4ed8;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }
    .ticket-queue-button:disabled {
      opacity: .6;
      cursor: default;
    }
    .working-dots {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      width: 18px;
      justify-content: center;
    }
    .working-dots span {
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: currentColor;
      opacity: .28;
      animation: workingDotPulse 1.15s ease-in-out infinite;
    }
    .working-dots span:nth-child(2) {
      animation-delay: .18s;
    }
    .working-dots span:nth-child(3) {
      animation-delay: .36s;
    }
    @keyframes workingDotPulse {
      0%, 80%, 100% {
        opacity: .28;
        transform: translateY(0);
      }
      40% {
        opacity: 1;
        transform: translateY(-2px);
      }
    }
    .tickets-pager {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-top: 14px;
    }

    .tickets-pager.is-hidden {
      display: none;
    }

    .tickets-pager button {
      min-height: 34px;
      padding: 8px 14px;
      font-size: 13px;
    }

    .page-size-menu {
      display: none;
      flex-wrap: wrap;
      gap: 8px;
    }

    .page-size-menu.is-visible {
      display: flex;
    }

    tr:last-child td { border-bottom: 0; }

    .explanation {
      margin-top: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: rgba(255, 250, 243, .7);
      padding: 18px 24px;
      color: var(--muted);
      line-height: 1.55;
      font-size: 14px;
    }

    .explanation strong { color: var(--ink); }

    .definition-title {
      font-family: var(--mono);
      font-size: 12px;
      letter-spacing: .22em;
      margin-bottom: 8px;
      color: var(--accent-dark);
    }

    @media (max-width: 980px) {
      header { grid-template-columns: 1fr; }
      h1 { white-space: normal; }
      .project-summary { justify-self: stretch; }
      .budget-line {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
      }
      .budget-block, .price-box {
        padding: 20px 18px 18px;
        min-height: 142px;
      }
      .budget-number strong { font-size: clamp(42px, 6.2vw, 66px); }
      .budget-number span { font-size: 20px; }
      .price-number { font-size: clamp(49px, 5.85vw, 79px) !important; }
      .price-note { font-size: 13px; }
      .progress-head { font-size: 15px; }
      .progress-percent { font-size: 15px; }
      .progress-percent-number { font-size: 25px; }
      .progress-head { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
      .actions { align-items: center; }
      button { flex: 1; }
      .buy-extra-button { flex: 0 0 auto; }
      .secondary { margin-left: 0; }
    }

    @media (max-width: 680px) {
      .page { width: min(100vw - 24px, 1180px); padding-top: 18px; }
      .dashboard-main, .actions, .tickets { padding-left: 24px; padding-right: 24px; }
      .budget-line { grid-template-columns: 1fr; }
      .progress-head { grid-template-columns: 1fr; }
      .progress-percent { grid-column: auto; justify-self: start; }
      .quota-row { display: block; }
      .quota-highlight { grid-column: auto; padding-left: 0; }
      .buy-extra-button { position: static; transform: none; margin-left: 8px; }
      .hc-package-grid,
      .hc-payment-grid,
      .hc-billing-grid { grid-template-columns: 1fr; }
      .budget-number strong { font-size: 64px; }
      .budget-number span { font-size: 24px; }
      .price-number { font-size: 58px !important; }
      th, td { padding: 12px 10px; font-size: 13px; }
      .site-footer a {
        display: inline-block;
        margin: 6px 10px 0;
      }
    }
    /* Keep the password reveal icon inside the input even after global/mobile button rules. */
    .login-dialog .password-field {
      position: relative !important;
      display: block !important;
    }

    .login-dialog .password-field input#loginPassword {
      padding-right: 46px !important;
    }

    .login-dialog .password-field button#toggleLoginPassword.password-toggle {
      position: absolute !important;
      right: 7px !important;
      top: 50% !important;
      display: inline-flex !important;
      flex: 0 0 32px !important;
      align-items: center !important;
      justify-content: center !important;
      width: 32px !important;
      min-width: 32px !important;
      max-width: 32px !important;
      height: 32px !important;
      min-height: 32px !important;
      max-height: 32px !important;
      margin: 0 !important;
      padding: 0 !important;
      transform: translateY(-50%) !important;
      border: 0 !important;
      border-radius: 50% !important;
      background: transparent !important;
      color: #1d4ed8 !important;
      font-size: 0 !important;
      line-height: 1 !important;
      letter-spacing: 0 !important;
    }

    .login-dialog .password-field button#toggleLoginPassword.password-toggle:hover,
    .login-dialog .password-field button#toggleLoginPassword.password-toggle:focus-visible,
    .login-dialog .password-field button#toggleLoginPassword.password-toggle[aria-pressed="true"] {
      background: rgba(29, 78, 216, .08) !important;
    }

    .login-dialog .password-field button#toggleLoginPassword.password-toggle .password-toggle-icon {
      display: block !important;
      width: 20px !important;
      height: 20px !important;
      pointer-events: none !important;
    }
