    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      background: #faf7f8;
      color: #1f2937;
      font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Pretendard,
        sans-serif;
    }

    button,
    input,
    select,
    textarea {
      font-family: inherit;
    }

    button {
      cursor: pointer;
    }

    button:disabled {
      cursor: not-allowed;
      opacity: 0.55;
    }

    .hidden {
      display: none !important;
    }

    .app {
      max-width: 1120px;
      margin: 0 auto;
      padding: 40px 20px 80px;
    }

    /* =====================================================
       Hero
    ===================================================== */

    .hero {
      margin-bottom: 26px;
      padding: 34px 36px 46px;
      border-radius: 28px;
      background: linear-gradient(135deg, #862633, #5f1b25);
      color: white;
      box-shadow: 0 20px 45px rgba(134, 38, 51, 0.24);
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 30px;
    }

    .brand {
      color: rgba(255, 255, 255, 0.92);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.12em;
    }

    .auth-actions,
    .hero-actions,
    .actions,
    .workspace-tabs,
    .tag-row,
    .project-meta,
    .project-dates,
    .forecast-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .auth-actions {
      align-items: center;
      justify-content: flex-end;
    }

    .topbar-btn {
      padding: 9px 14px;
      border: 1px solid rgba(255, 255, 255, 0.32);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.12);
      color: white;
      font-size: 13px;
      font-weight: 800;
    }

    .user-chip {
      display: inline-flex;
      max-width: 240px;
      overflow: hidden;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.16);
      color: white;
      font-size: 13px;
      font-weight: 700;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .school-badge {
      display: inline-flex;
      margin-bottom: 16px;
      padding: 7px 12px;
      border: 1px solid rgba(255, 255, 255, 0.34);
      border-radius: 999px;
      color: #f9e8ec;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.12em;
    }

    .hero h1 {
      margin: 0 0 14px;
      font-size: 42px;
      letter-spacing: -0.04em;
    }

    .hero p {
      max-width: 820px;
      margin: 0;
      color: #e5e7eb;
      font-size: 17px;
      line-height: 1.7;
    }

    .hero-actions {
      margin-top: 28px;
    }

    /* =====================================================
       Buttons
    ===================================================== */

    .hero-primary,
    .hero-secondary,
    .primary-btn,
    .secondary-btn,
    .tab-btn,
    .project-small-btn {
      border-radius: 999px;
      font-weight: 800;
    }

    .hero-primary,
    .hero-secondary,
    .primary-btn,
    .secondary-btn {
      padding: 13px 20px;
      font-size: 15px;
    }

    .hero-primary {
      border: none;
      background: white;
      color: #862633;
    }

    .hero-secondary {
      border: 1px solid rgba(255, 255, 255, 0.32);
      background: rgba(255, 255, 255, 0.12);
      color: white;
    }

    .primary-btn {
      border: none;
      background: #862633;
      color: white;
    }

    .secondary-btn {
      border: none;
      background: #f3e8eb;
      color: #862633;
    }

    .actions {
      margin-top: 22px;
    }

    /* =====================================================
       Common
    ===================================================== */

    .value-grid,
    .form-grid,
    .cards,
    .score-grid,
    .analysis-grid,
    .forecast-factor-grid,
    .forecast-outlook-grid,
    .forecast-scenario-grid {
      display: grid;
      gap: 18px;
    }

    .value-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin-bottom: 24px;
    }

    .panel,
    .value-card,
    .idea-card,
    .analysis-card,
    .forecast-card,
    .status-card {
      border: 1px solid #e5e7eb;
      background: white;
      box-shadow: 0 8px 22px rgba(134, 38, 51, 0.05);
    }

    .panel {
      margin-bottom: 24px;
      padding: 28px;
      border-radius: 24px;
    }

    .panel h2 {
      margin: 0 0 8px;
      font-size: 24px;
      letter-spacing: -0.03em;
    }

    .panel-desc {
      margin: 0 0 22px;
      color: #6b7280;
      line-height: 1.65;
    }

    .value-card {
      padding: 22px;
      border-radius: 22px;
    }

    .value-card h3 {
      margin: 0 0 10px;
      color: #862633;
      font-size: 18px;
    }

    .value-card p {
      margin: 0;
      color: #4b5563;
      font-size: 14px;
      line-height: 1.65;
    }

    /* =====================================================
       Form
    ===================================================== */

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

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

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

    label {
      color: #374151;
      font-size: 14px;
      font-weight: 700;
    }

    input,
    select,
    textarea {
      width: 100%;
      padding: 13px 14px;
      border: 1px solid #d1d5db;
      border-radius: 14px;
      outline: none;
      background: white;
      font-size: 15px;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: #862633;
      box-shadow: 0 0 0 3px rgba(134, 38, 51, 0.12);
    }

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

    .hint {
      margin: 3px 0 0;
      color: #6b7280;
      font-size: 13px;
      line-height: 1.55;
    }

    .checklist {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      padding: 14px;
      border: 1px solid #d1d5db;
      border-radius: 16px;
    }

    .check-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      background: #f9fafb;
      color: #374151;
      font-size: 14px;
    }

    .check-item input {
      width: auto;
      margin: 0;
      accent-color: #862633;
    }

    /* =====================================================
       Status
    ===================================================== */

    .status-card {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 18px 0;
      padding: 17px 19px;
      border-radius: 18px;
      color: #862633;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.6;
    }

    .loader {
      width: 19px;
      height: 19px;
      flex: 0 0 auto;
      border: 3px solid #e7c5cb;
      border-top-color: #862633;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    .complete-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 21px;
      height: 21px;
      flex: 0 0 auto;
      border-radius: 50%;
      background: #862633;
      color: white;
      font-size: 13px;
      font-weight: 900;
    }

    .status-card.complete .loader {
      display: none;
    }

    .status-card:not(.complete) .complete-icon {
      display: none;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* =====================================================
       Ideas
    ===================================================== */

    .cards {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .idea-card {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 20px;
      border-radius: 22px;
    }

    .idea-card h3 {
      margin: 0;
      font-size: 18px;
      letter-spacing: -0.02em;
    }

    .idea-card p {
      margin: 0;
      color: #4b5563;
      font-size: 14px;
      line-height: 1.65;
    }

    .reason-list {
      margin: 0;
      padding-left: 18px;
      color: #4b5563;
      font-size: 14px;
      line-height: 1.65;
    }

    .tag-row {
      margin-top: auto;
    }

    .tag,
    .forecast-meta-chip,
    .impact-tag,
    .direction-tag,
    .project-status,
    .project-score {
      display: inline-flex;
      padding: 6px 9px;
      border-radius: 999px;
      background: #f3e8eb;
      color: #862633;
      font-size: 12px;
      font-weight: 800;
    }

    /* =====================================================
       Workspace top-level tabs
    ===================================================== */

    .workspace-shell {
      margin-bottom: 24px;
      overflow: hidden;
      border: 1px solid #e5e7eb;
      border-radius: 24px;
      background: white;
      box-shadow: 0 8px 22px rgba(134, 38, 51, 0.05);
    }

    .workspace-header {
      padding: 28px 28px 0;
    }

    .workspace-header h2 {
      margin: 0 0 8px;
      font-size: 24px;
      letter-spacing: -0.03em;
    }

    .workspace-tab-nav {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin-top: 22px;
      border-bottom: 1px solid #e5e7eb;
    }

    .tab-btn {
      padding: 16px 18px;
      border: none;
      border-radius: 0;
      background: #f9fafb;
      color: #6b7280;
      font-size: 15px;
    }

    .tab-btn.active {
      background: #862633;
      color: white;
    }

    .tab-badge {
      margin-left: 6px;
      font-size: 12px;
      opacity: 0.88;
    }

    .tab-panel {
      padding: 28px;
    }

    /* =====================================================
       Analysis
    ===================================================== */

    .score-grid,
    .analysis-grid,
    .forecast-factor-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .forecast-outlook-grid,
    .forecast-scenario-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .score-item {
      padding: 15px;
      border: 1px solid #e5e7eb;
      border-radius: 18px;
    }

    .score-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
      font-size: 14px;
      font-weight: 800;
    }

    .score-value {
      color: #862633;
    }

    .score-track,
    .project-progress-track {
      width: 100%;
      height: 10px;
      overflow: hidden;
      border-radius: 999px;
      background: #f3e8eb;
    }

    .score-fill,
    .project-progress-fill {
      height: 100%;
      border-radius: 999px;
      background: #862633;
    }

    .summary-box,
    .forecast-intro,
    .forecast-summary,
    .project-next-action {
      padding: 17px;
      border: 1px solid #e7c5cb;
      border-radius: 16px;
      background: #fbf4f5;
      color: #4b5563;
      font-size: 14px;
      line-height: 1.7;
      white-space: pre-wrap;
    }

    .analysis-grid {
      margin-top: 18px;
    }

    .analysis-card,
    .forecast-card {
      padding: 17px;
      border-radius: 18px;
    }

    .analysis-card h3,
    .forecast-card h4,
    .section-heading {
      margin: 0 0 10px;
      color: #862633;
    }

    .analysis-card p,
    .forecast-card p {
      margin: 0;
      color: #4b5563;
      font-size: 14px;
      line-height: 1.7;
      white-space: pre-wrap;
    }

    .result-box {
      margin-top: 18px;
      padding: 20px;
      border: 1px solid #e5e7eb;
      border-radius: 18px;
      background: #f9fafb;
      line-height: 1.75;
    }

    .result-box h3 {
      margin: 22px 0 8px;
      color: #862633;
      font-size: 18px;
    }

    .result-box p {
      margin: 0 0 12px;
      color: #374151;
      white-space: pre-wrap;
    }

    /* =====================================================
       Forecast
    ===================================================== */

    .forecast-meta {
      margin: 18px 0 14px;
    }

    .section-heading {
      margin-top: 28px;
      font-size: 18px;
    }

    .forecast-card-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-bottom: 9px;
    }

    .forecast-action-list,
    .forecast-source-list {
      display: grid;
      gap: 9px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .forecast-action-item,
    .forecast-source-item {
      padding: 13px 14px;
      border: 1px solid #e5e7eb;
      border-radius: 14px;
      color: #4b5563;
      font-size: 14px;
      line-height: 1.65;
    }

    .forecast-action-item::before {
      content: "✓";
      margin-right: 8px;
      color: #862633;
      font-weight: 900;
    }

    .forecast-source-item a {
      color: #862633;
      font-weight: 800;
      text-decoration: none;
      word-break: break-word;
    }

    /* =====================================================
       Modal and projects
    ===================================================== */

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 22px;
      background: rgba(17, 24, 39, 0.58);
    }

    .modal {
      position: relative;
      width: min(100%, 470px);
      max-height: 82vh;
      overflow-y: auto;
      padding: 30px;
      border-radius: 24px;
      background: white;
      box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
    }

    .projects-modal {
      width: min(100%, 760px);
    }

    .modal-close {
      position: absolute;
      top: 14px;
      right: 16px;
      width: 34px;
      height: 34px;
      border: none;
      border-radius: 50%;
      background: #f3f4f6;
      color: #4b5563;
      font-size: 22px;
    }

    .modal h2 {
      margin: 0 0 10px;
      font-size: 24px;
    }

    .modal p {
      color: #6b7280;
      font-size: 14px;
      line-height: 1.7;
    }

    .google-btn,
    .guest-btn {
      width: 100%;
      padding: 13px 16px;
      border: none;
      border-radius: 14px;
      font-weight: 800;
    }

    .google-btn {
      background: #862633;
      color: white;
    }

    .guest-btn {
      margin-top: 10px;
      background: #f3e8eb;
      color: #862633;
    }

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

    .project-empty {
      padding: 22px;
      border: 1px dashed #d1d5db;
      border-radius: 18px;
      color: #6b7280;
      font-size: 14px;
      line-height: 1.7;
      text-align: center;
    }

    .project-card {
      padding: 18px;
      border: 1px solid #e5e7eb;
      border-radius: 19px;
    }

    .project-card-top {
      display: flex;
      justify-content: space-between;
      gap: 16px;
    }

    .project-card h3 {
      margin: 0 0 8px;
      font-size: 17px;
    }

    .project-selected {
      margin: 0 0 10px;
      color: #4b5563;
      font-size: 13px;
    }

    .project-progress-wrap {
      margin-top: 15px;
    }

    .project-progress-head {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      color: #6b7280;
      font-size: 12px;
      font-weight: 700;
    }

    .project-progress-track {
      height: 8px;
    }

    .project-next-action {
      margin-top: 13px;
      padding: 12px 14px;
      font-size: 13px;
    }

    .project-dates {
      margin-top: 11px;
      color: #9ca3af;
      font-size: 12px;
    }

    .project-small-btn {
      padding: 8px 11px;
      border: none;
      background: #862633;
      color: white;
      font-size: 12px;
    }

    .project-delete-btn {
      background: #f3f4f6;
      color: #6b7280;
    }

    /* =====================================================
       Responsive
    ===================================================== */

    @media (max-width: 900px) {
      .value-grid,
      .form-grid,
      .checklist,
      .cards,
      .score-grid,
      .analysis-grid,
      .forecast-factor-grid,
      .forecast-outlook-grid,
      .forecast-scenario-grid {
        grid-template-columns: 1fr;
      }

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

      .topbar,
      .project-card-top {
        align-items: flex-start;
        flex-direction: column;
      }

      .auth-actions {
        justify-content: flex-start;
      }
    }
