/* ===========================================================
   90 Gün Oyun Planı — Brand Identity
   Base: OneTeam navy | Accent: amber (progress/motivation)
   =========================================================== */

:root {
  /* Core palette — OneTeam: black + gold */
  --g90-bg: #F8F6F0;                /* Warm ivory (gold tint) */
  --g90-surface: #FFFFFF;
  --g90-surface-2: #F5F1E6;         /* Cream */
  --g90-border: #E8E1CE;            /* Soft gold-tinted border */
  --g90-border-strong: #CFC4A1;

  /* Text */
  --g90-text: #0A0A0A;
  --g90-text-muted: #5C5650;
  --g90-text-soft: #8C8578;

  /* Brand — OneTeam */
  --g90-primary: #0A0A0A;           /* Pure black — OneTeam base */
  --g90-primary-2: #1A1A1A;
  --g90-accent: #C9A14A;            /* Gold — premium */
  --g90-accent-hot: #E6B862;        /* Light gold — highlight */
  --g90-accent-deep: #8B6A2D;       /* Deep gold — depth */
  --g90-accent-glow: #F4D484;       /* Bright gold — shine */

  /* Stage / Feedback */
  --g90-success: #10B981;
  --g90-warning: #C9A14A;
  --g90-danger: #B91C1C;
  --g90-info: #1E3A8A;

  /* Kategori renkleri */
  --g90-cat-ust-profil: #1E3A8A;
  --g90-cat-musteri: #10B981;
  --g90-cat-is-ortagi: #C9A14A;
  --g90-cat-dormant: #7C3AED;
  --g90-cat-taze: #64748B;
  --g90-cat-referans: #D97706;

  /* Funnel aşama renkleri */
  --g90-stage-havuz: #94A3B8;
  --g90-stage-davet: #8B6A2D;
  --g90-stage-gorusme: #C9A14A;
  --g90-stage-takip: #7C3AED;
  --g90-stage-karar: #E6B862;
  --g90-stage-kayit: #10B981;
  --g90-stage-aktif: #059669;
  --g90-stage-kapali: #CBD5E1;

  /* Geometry */
  --g90-radius: 12px;
  --g90-radius-sm: 8px;
  --g90-radius-lg: 16px;

  /* Elevation */
  --g90-shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.06);
  --g90-shadow: 0 4px 14px rgba(10, 10, 10, 0.08);
  --g90-shadow-lg: 0 12px 32px rgba(10, 10, 10, 0.14);

  /* Motion */
  --g90-ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Gradient — gold shine */
  --g90-gradient: linear-gradient(135deg, #8B6A2D 0%, #C9A14A 40%, #F4D484 70%, #C9A14A 100%);
  --g90-gradient-soft: linear-gradient(135deg, #C9A14A 0%, #E6B862 100%);
  --g90-gradient-cool: linear-gradient(135deg, #1A1A1A 0%, #0A0A0A 100%);
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto',
    system-ui, sans-serif;
  color: var(--g90-text);
  background: var(--g90-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

a {
  color: var(--g90-info);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ========== Layout ========== */
.g90-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.g90-topbar {
  background: var(--g90-primary);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--g90-shadow);
  position: sticky;
  top: 0;
  z-index: 40;
}

.g90-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.1s var(--g90-ease);
}

.g90-brand:hover {
  opacity: 0.85;
  text-decoration: none;
}

.g90-brand .logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.g90-brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

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

.g90-brand .brand-text .oneteam {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  background: var(--g90-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.g90-brand .brand-text .product {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.g90-topnav {
  display: flex;
  gap: 4px;
}

.g90-topnav button {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s var(--g90-ease);
}

.g90-topnav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.g90-topnav button.active {
  color: var(--g90-accent);
  background: rgba(245, 158, 11, 0.12);
}

.g90-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.g90-user-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--g90-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--g90-primary);
  font-size: 12px;
}

.g90-main {
  flex: 1;
  padding: 24px 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ========== Kart & Yüzey ========== */
.g90-card {
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: var(--g90-radius);
  padding: 20px;
  box-shadow: var(--g90-shadow-sm);
}

.g90-card-lg {
  padding: 24px;
  border-radius: var(--g90-radius-lg);
  box-shadow: var(--g90-shadow);
}

.g90-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g90-text-muted);
  margin: 0 0 12px;
}

/* ========== Button ========== */
.g90-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--g90-radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s var(--g90-ease);
  background: var(--g90-surface-2);
  color: var(--g90-text);
}

.g90-btn:hover {
  background: var(--g90-border);
}

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

.g90-btn-primary:hover {
  background: var(--g90-primary-2);
}

.g90-btn-accent {
  background: var(--g90-gradient);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.g90-btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

.g90-btn-ghost {
  background: transparent;
  color: var(--g90-text-muted);
  border-color: var(--g90-border);
}

.g90-btn-ghost:hover {
  background: var(--g90-surface-2);
  color: var(--g90-text);
}

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

/* ========== Form ========== */
.g90-input,
.g90-select,
.g90-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--g90-text);
  background: var(--g90-surface);
  border: 1px solid var(--g90-border-strong);
  border-radius: var(--g90-radius-sm);
  transition: border-color 0.15s var(--g90-ease), box-shadow 0.15s var(--g90-ease);
}

.g90-input:focus,
.g90-select:focus,
.g90-textarea:focus {
  outline: none;
  border-color: var(--g90-info);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.g90-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--g90-text);
  display: block;
  margin-bottom: 6px;
}

/* ========== Etiket ========== */
.g90-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--g90-surface-2);
  color: var(--g90-text-muted);
  border: 1px solid var(--g90-border);
}

.g90-tag-ust-profil { background: #EBF2FF; color: var(--g90-cat-ust-profil); border-color: #BFDBFE; }
.g90-tag-musteri    { background: #ECFDF5; color: var(--g90-cat-musteri);    border-color: #A7F3D0; }
.g90-tag-is-ortagi  { background: #FEF3C7; color: #92400E;                   border-color: #FDE68A; }
.g90-tag-dormant    { background: #F3E8FF; color: var(--g90-cat-dormant);    border-color: #DDD6FE; }
.g90-tag-taze       { background: var(--g90-surface-2); color: var(--g90-text-muted); }
.g90-tag-referans   { background: #FFEDD5; color: #9A3412;                   border-color: #FED7AA; }

/* ========== Progress bar (rank) ========== */
.g90-progress {
  height: 10px;
  background: var(--g90-border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.g90-progress-fill {
  height: 100%;
  background: var(--g90-gradient);
  border-radius: 999px;
  transition: width 0.6s var(--g90-ease);
  position: relative;
}

.g90-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: g90-shimmer 2.4s infinite;
}

@keyframes g90-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========== Auth ekranı ========== */
.g90-auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at top, #1A1A1A 0%, #000 70%);
  position: relative;
  overflow: hidden;
}

.g90-auth-wrap::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 161, 74, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.g90-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--g90-surface);
  border-radius: var(--g90-radius-lg);
  padding: 36px 32px;
  box-shadow: var(--g90-shadow-lg);
  text-align: center;
}

.g90-auth-card .hero-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 30px rgba(201, 161, 74, 0.45));
}

.g90-auth-card .hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.g90-auth-card .product-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--g90-accent-deep);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.g90-auth-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.g90-auth-card .subtitle {
  color: var(--g90-text-muted);
  margin: 0 0 24px;
  font-size: 14px;
}

.g90-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.g90-auth-footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--g90-text-soft);
}

/* ========== Yardımcı ========== */
.g90-row { display: flex; gap: 12px; align-items: center; }
.g90-col { display: flex; flex-direction: column; gap: 12px; }
.g90-grid { display: grid; gap: 16px; }
.g90-grid-2 { grid-template-columns: repeat(2, 1fr); }
.g90-grid-3 { grid-template-columns: repeat(3, 1fr); }
.g90-grid-4 { grid-template-columns: repeat(4, 1fr); }

.g90-text-muted { color: var(--g90-text-muted); }
.g90-text-accent { color: var(--g90-accent); }
.g90-text-success { color: var(--g90-success); }
.g90-text-lg { font-size: 16px; }
.g90-text-xl { font-size: 20px; }
.g90-text-2xl { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }

.g90-gap-sm { gap: 8px; }
.g90-mt-1 { margin-top: 8px; }
.g90-mt-2 { margin-top: 16px; }
.g90-mt-3 { margin-top: 24px; }

/* ========== Loader ========== */
.g90-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--g90-border);
  border-top-color: var(--g90-accent);
  border-radius: 50%;
  animation: g90-spin 0.8s linear infinite;
}

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

.g90-loader-wrap {
  display: grid;
  place-items: center;
  padding: 80px 20px;
  gap: 14px;
  color: var(--g90-text-muted);
}

/* ========== Boş durum ========== */
.g90-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--g90-text-muted);
}

.g90-empty .emoji {
  font-size: 48px;
  margin-bottom: 12px;
  filter: grayscale(0.3);
}

/* ========== Kontak Havuzu ========== */
.g90-contacts-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.g90-filter-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.g90-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.g90-list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: var(--g90-radius);
  margin-bottom: 10px;
  box-shadow: var(--g90-shadow-sm);
  flex-wrap: wrap;
}

.g90-select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--g90-text);
  user-select: none;
}

.g90-select-all input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--g90-accent);
}

.g90-list-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.g90-select-box {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--g90-accent);
  margin: 0 6px 0 0;
  flex-shrink: 0;
}

.g90-contact-card {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: var(--g90-radius);
  padding: 14px 16px;
  box-shadow: var(--g90-shadow-sm);
  transition: transform 0.1s var(--g90-ease), box-shadow 0.15s var(--g90-ease);
}

.g90-contact-card.selected {
  background: rgba(245, 158, 11, 0.04);
  border-color: var(--g90-accent);
}

.g90-contact-card:hover {
  box-shadow: var(--g90-shadow);
  transform: translateY(-1px);
}

.g90-contact-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--g90-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.5px;
}

.g90-contact-card .row1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.g90-contact-card .name {
  font-weight: 600;
  font-size: 15px;
  color: var(--g90-text);
}

.g90-contact-card .row2 {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.g90-contact-card .row3 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--g90-text-muted);
  font-size: 12px;
}

.g90-contact-card .right {
  display: flex;
  gap: 6px;
}

/* Kategori picker (form içi) */
.g90-cat-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.g90-cat-chip {
  cursor: pointer;
  user-select: none;
}

.g90-cat-chip input {
  display: none;
}

.g90-cat-chip .g90-tag {
  opacity: 0.55;
  transition: opacity 0.15s var(--g90-ease), transform 0.1s var(--g90-ease);
  border-width: 2px;
}

.g90-cat-chip:hover .g90-tag { opacity: 0.8; }
.g90-cat-chip input:checked + .g90-tag { opacity: 1; transform: scale(1.04); }

/* ========== Funnel Kanban ========== */
.g90-funnel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.g90-kanban-scroll {
  padding-bottom: 8px;
}

.g90-kanban-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  min-height: 420px;
}

.g90-kanban-col {
  display: flex;
  flex-direction: column;
  background: var(--g90-surface-2);
  border: 1px solid var(--g90-border);
  border-top: 3px solid var(--col, var(--g90-border));
  border-radius: var(--g90-radius);
  min-height: 400px;
  min-width: 0;
}

.g90-kanban-col-head {
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px solid var(--g90-border);
  background: var(--g90-surface);
  border-radius: var(--g90-radius) var(--g90-radius) 0 0;
}

.g90-kanban-col-head .label {
  font-weight: 700;
  font-size: 12px;
  color: var(--col, var(--g90-text));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.g90-kanban-col-head .count {
  background: var(--g90-surface-2);
  color: var(--g90-text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.g90-kanban-col-body {
  flex: 1;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 60px;
  transition: background 0.15s var(--g90-ease);
}

.g90-kanban-col-body.drag-over {
  background: rgba(245, 158, 11, 0.08);
  outline: 2px dashed var(--g90-accent);
  outline-offset: -4px;
  border-radius: 0 0 var(--g90-radius) var(--g90-radius);
}

.g90-kanban-empty {
  color: var(--g90-text-soft);
  text-align: center;
  padding: 24px 8px;
  font-size: 12px;
}

.g90-kanban-card {
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: 8px;
  padding: 7px 9px;
  box-shadow: var(--g90-shadow-sm);
  cursor: grab;
  transition: transform 0.1s var(--g90-ease), box-shadow 0.15s var(--g90-ease);
  user-select: none;
  min-width: 0;
}

.g90-kanban-card:hover {
  box-shadow: var(--g90-shadow);
  transform: translateY(-1px);
}

.g90-kanban-card:active {
  cursor: grabbing;
}

.g90-kanban-card.dragging {
  opacity: 0.4;
  transform: scale(0.97);
}

.g90-kc-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  min-width: 0;
}

.g90-kc-head .avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--g90-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 10px;
  flex-shrink: 0;
}

.g90-kc-head .name {
  font-weight: 600;
  font-size: 12px;
  color: var(--g90-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.g90-kc-cats {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.g90-kanban-card .apt {
  font-size: 11px;
  color: var(--g90-info);
  background: #EBF2FF;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 4px;
  display: inline-block;
}

.g90-kc-note {
  color: var(--g90-text-muted);
  font-size: 11px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--g90-border);
  line-height: 1.4;
}

.g90-kanban-closed {
  border-top: 1px solid var(--g90-border);
  padding-top: 16px;
}

.g90-kanban-closed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  background: var(--g90-surface-2);
  border-radius: var(--g90-radius);
  min-height: 80px;
  transition: background 0.15s var(--g90-ease);
}

.g90-kanban-closed-list.drag-over {
  background: rgba(245, 158, 11, 0.08);
  outline: 2px dashed var(--g90-accent);
  outline-offset: -4px;
}

/* ========== Günlük Pano ========== */
.g90-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding: 4px;
}

.g90-counter-card {
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: var(--g90-radius-lg);
  padding: 20px 22px;
  box-shadow: var(--g90-shadow-sm);
  position: relative;
  transition: border-color 0.2s var(--g90-ease);
}

.g90-counter-card.done {
  border-color: var(--g90-success);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04), var(--g90-surface) 40%);
}

.g90-counter-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.g90-counter-card .label {
  font-weight: 700;
  font-size: 14px;
  color: var(--g90-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.g90-counter-card .pct {
  font-weight: 700;
  font-size: 14px;
  color: var(--g90-accent);
}

.g90-counter-card.done .pct {
  color: var(--g90-success);
}

.g90-counter-card .body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.g90-counter-card .actual {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.g90-counter-card .target {
  font-size: 18px;
  font-weight: 500;
  color: var(--g90-text-muted);
}

.g90-counter-card .controls {
  display: flex;
  gap: 6px;
}

.g90-counter-card .badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--g90-success);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.g90-suggest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.1s var(--g90-ease);
}

.g90-suggest-row:hover {
  background: var(--g90-surface-2);
}

.g90-suggest-row .avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--g90-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.g90-suggest-row .name {
  font-weight: 600;
  font-size: 14px;
}

.g90-suggest-row .meta {
  margin-top: 2px;
  display: flex;
  align-items: center;
}

/* ========== Haftalık Planlayıcı ========== */
.g90-week-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.g90-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.g90-week-day {
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: var(--g90-radius);
  padding: 14px 12px;
  box-shadow: var(--g90-shadow-sm);
}

.g90-week-day.today {
  border-color: var(--g90-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.g90-week-day.past {
  background: var(--g90-surface-2);
  opacity: 0.9;
}

.g90-week-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.g90-week-day-head .title {
  font-weight: 700;
  font-size: 13px;
}

.g90-week-day-head .today-badge {
  background: var(--g90-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.g90-week-day .mini-label {
  display: block;
  font-size: 11px;
  color: var(--g90-text-muted);
  margin-bottom: 4px;
}

.g90-week-day .g90-input.mini {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}

.g90-week-day .actual-line {
  font-size: 11px;
  color: var(--g90-text-muted);
  margin-top: 3px;
}

.g90-week-day .actual-line strong {
  color: var(--g90-success);
}

/* ========== Analitik ========== */
.g90-stat-hot {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.06));
  border-color: rgba(245, 158, 11, 0.3);
}

.g90-chart-bars {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  margin-top: 12px;
  align-items: end;
  height: 180px;
}

.g90-chart-bars .bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.g90-chart-bars .bar-track {
  flex: 1;
  width: 100%;
  position: relative;
  background: var(--g90-surface-2);
  border-radius: 4px;
  overflow: hidden;
  min-height: 4px;
}

.g90-chart-bars .bar-planned {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--g90-border);
  transition: height 0.3s var(--g90-ease);
}

.g90-chart-bars .bar-actual {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--g90-gradient);
  transition: height 0.4s var(--g90-ease);
  border-radius: 3px 3px 0 0;
}

.g90-chart-bars .bar-label {
  font-size: 10px;
  color: var(--g90-text-muted);
  font-weight: 600;
}

.g90-chart-bars .bar-val {
  font-size: 10px;
  color: var(--g90-text);
  font-weight: 700;
}

.g90-chart-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--g90-text-muted);
}

.g90-chart-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}

.g90-chart-legend .swatch.actual { background: var(--g90-gradient); }
.g90-chart-legend .swatch.planned { background: var(--g90-border); }

.g90-funnel-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 10px;
}

.funnel-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--g90-text);
}

.funnel-bar-wrap {
  background: var(--g90-surface-2);
  border-radius: 6px;
  overflow: hidden;
  height: 28px;
  position: relative;
}

.funnel-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  border-radius: 6px;
  transition: width 0.5s var(--g90-ease);
  min-width: 28px;
}

.funnel-bar-val {
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.g90-cat-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.cat-row {
  display: grid;
  grid-template-columns: 160px 1fr 100px;
  align-items: center;
  gap: 10px;
}

.cat-bar-wrap {
  height: 14px;
  background: var(--g90-surface-2);
  border-radius: 7px;
  overflow: hidden;
}

.cat-bar {
  height: 100%;
  background: var(--g90-gradient);
  border-radius: 7px;
  transition: width 0.5s var(--g90-ease);
}

.cat-val {
  font-size: 12px;
  color: var(--g90-text-muted);
  text-align: right;
}

/* ========== Onboarding Wizard ========== */
.g90-ob-wrap {
  max-width: 720px;
  margin: 20px auto;
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: var(--g90-radius-lg);
  padding: 32px 28px;
  box-shadow: var(--g90-shadow);
}

.g90-ob-header {
  margin-bottom: 24px;
}

.g90-ob-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--g90-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.g90-ob-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.g90-ob-subtitle {
  font-size: 14px;
  color: var(--g90-text-muted);
  margin-top: 4px;
}

.g90-ob-body {
  padding: 20px 0;
  min-height: 200px;
}

.g90-ob-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--g90-border);
}

.g90-ob-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.g90-ob-chip {
  padding: 10px 18px;
  background: var(--g90-surface);
  border: 2px solid var(--g90-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--g90-text-muted);
  transition: all 0.15s var(--g90-ease);
}

.g90-ob-chip:hover {
  border-color: var(--g90-border-strong);
  color: var(--g90-text);
}

.g90-ob-chip.active {
  border-color: var(--g90-accent);
  color: var(--g90-accent);
  background: rgba(245, 158, 11, 0.08);
}

.g90-ob-motcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.g90-ob-motcard {
  padding: 18px 14px;
  background: var(--g90-surface);
  border: 2px solid var(--g90-border);
  border-radius: var(--g90-radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s var(--g90-ease);
}

.g90-ob-motcard:hover {
  border-color: var(--g90-border-strong);
  transform: translateY(-2px);
}

.g90-ob-motcard.active {
  border-color: var(--g90-accent);
  background: rgba(245, 158, 11, 0.05);
}

.g90-ob-motcard .emoji {
  font-size: 32px;
  margin-bottom: 8px;
}

.g90-ob-motcard .label {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.g90-ob-motcard .desc {
  font-size: 11px;
  color: var(--g90-text-muted);
  line-height: 1.4;
}

/* Rank picker (step 1 ve 2) — 2 sütun kompakt */
.g90-rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--g90-surface-2);
  border-radius: var(--g90-radius);
  border: 1px solid var(--g90-border);
}

.g90-rank-row {
  display: grid;
  grid-template-rows: auto auto;
  gap: 4px;
  padding: 7px 10px;
  background: var(--g90-surface);
  border: 2px solid transparent;
  border-radius: var(--g90-radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.1s var(--g90-ease);
  min-width: 0;
}

.g90-rank-row:hover {
  border-color: var(--g90-border-strong);
  box-shadow: var(--g90-shadow-sm);
}

.g90-rank-row.active {
  border-color: var(--g90-accent);
  background: rgba(245, 158, 11, 0.06);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Hedef rank picker — yeşil/emerald vurgu */
.g90-rank-list.target {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04), transparent);
  border-color: rgba(16, 185, 129, 0.20);
}

.g90-rank-row.target.active {
  border-color: #059669;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(5, 150, 105, 0.04));
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
}

.g90-rank-row.target.active .dot {
  border-color: #059669;
  background: #059669;
}

.g90-rank-row.target.active .fig.avg {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12), rgba(16, 185, 129, 0.22));
  border-color: rgba(5, 150, 105, 0.45);
}

.g90-rank-row.target.active .fig.avg .label,
.g90-rank-row.target.active .fig.avg .val {
  color: #065F46;
}

.g90-rank-row .rank-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
  color: var(--g90-text);
  line-height: 1.15;
}

.g90-rank-row .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--g90-border-strong);
  background: var(--g90-surface);
  flex-shrink: 0;
}

.g90-rank-row.active .dot {
  border-color: var(--g90-accent);
  background: var(--g90-accent);
  box-shadow: inset 0 0 0 1.5px var(--g90-surface);
}

.g90-rank-row .rank-figures {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr 0.85fr;
  gap: 4px;
  align-items: center;
}

.g90-rank-row .fig {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 2px 3px;
  border-radius: 4px;
  background: var(--g90-surface-2);
  min-width: 0;
}

.g90-rank-row .fig.avg {
  background: linear-gradient(135deg, rgba(139, 106, 45, 0.10), rgba(244, 212, 132, 0.18));
  border: 1px solid rgba(201, 161, 74, 0.35);
  padding: 3px 3px 4px;
  box-shadow: 0 1px 2px rgba(201, 161, 74, 0.12);
}

.g90-rank-row.active .fig {
  background: rgba(255, 255, 255, 0.65);
}

.g90-rank-row.active .fig.avg {
  background: linear-gradient(135deg, rgba(139, 106, 45, 0.14), rgba(244, 212, 132, 0.28));
  border-color: rgba(201, 161, 74, 0.55);
}

.g90-rank-row .fig .label {
  font-size: 7px;
  font-weight: 600;
  color: var(--g90-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.75;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g90-rank-row .fig.avg .label {
  font-size: 8px;
  font-weight: 800;
  color: var(--g90-accent-deep);
  opacity: 1;
  letter-spacing: 0.08em;
}

.g90-rank-row .fig .val {
  font-size: 9px;
  font-weight: 600;
  color: var(--g90-text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g90-rank-row .fig.avg .val {
  color: var(--g90-accent-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-top: 1px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  line-height: 1.05;
}

/* Scenarios (step 7) figures */
.scen-fig-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr 0.85fr;
  gap: 6px;
  padding: 6px 0;
  align-items: center;
}

.scen-fig-grid .fig {
  text-align: center;
  padding: 5px 4px;
  background: var(--g90-surface-2);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

.scen-fig-grid .fig.accent {
  padding: 8px 4px 9px;
  background: linear-gradient(135deg, rgba(139, 106, 45, 0.12), rgba(244, 212, 132, 0.24));
  border: 1px solid rgba(201, 161, 74, 0.4);
  box-shadow: 0 2px 6px rgba(201, 161, 74, 0.15);
}

.scen-fig-grid .fig .label {
  font-size: 8px;
  font-weight: 600;
  color: var(--g90-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.scen-fig-grid .fig.accent .label {
  font-size: 9px;
  font-weight: 800;
  color: var(--g90-accent-deep);
  opacity: 1;
  letter-spacing: 0.12em;
}

.scen-fig-grid .fig .val {
  font-size: 11px;
  font-weight: 600;
  color: var(--g90-text-muted);
  margin-top: 1px;
}

.scen-fig-grid .fig.accent .val {
  color: var(--accent);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-top: 2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.g90-ob-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.g90-ob-scen {
  padding: 20px 18px;
  background: var(--g90-surface);
  border: 2px solid var(--g90-border);
  border-radius: var(--g90-radius-lg);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--g90-ease);
  --accent: var(--g90-accent);
}

.g90-ob-scen:hover {
  transform: translateY(-3px);
  box-shadow: var(--g90-shadow);
}

.g90-ob-scen.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.g90-ob-scen .scen-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.g90-ob-scen .scen-head .emoji {
  font-size: 28px;
}

.g90-ob-scen .scen-head .title {
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
}

.g90-ob-scen .scen-head .subtitle {
  font-size: 11px;
  color: var(--g90-text-muted);
  line-height: 1.4;
  margin-top: 3px;
}

.g90-ob-scen .scen-body .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
}

.g90-ob-scen .scen-body .k {
  color: var(--g90-text-muted);
}

.g90-ob-scen .scen-body .v {
  font-weight: 700;
  color: var(--g90-text);
}

.g90-ob-scen .scen-body .v.accent {
  color: var(--accent);
}

.g90-ob-scen .scen-sep {
  height: 1px;
  background: var(--g90-border);
  margin: 8px 0;
}

.g90-ob-scen .scen-pace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.g90-ob-scen .pace-item {
  background: var(--g90-surface-2);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.g90-ob-scen .pace-item .num {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}

.g90-ob-scen .pace-item .lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--g90-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.g90-ob-scen .scen-week {
  text-align: center;
  font-size: 11px;
  color: var(--g90-text-muted);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--g90-border);
}

@media (max-width: 640px) {
  .g90-ob-motcards,
  .g90-ob-scenarios {
    grid-template-columns: 1fr;
  }
  .g90-ob-wrap {
    padding: 22px 16px;
  }
  .g90-rank-list {
    grid-template-columns: 1fr;
  }
}

/* ========== Modal ========== */
.g90-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: grid;
  place-items: center;
  z-index: 500;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.g90-modal {
  background: var(--g90-surface);
  border-radius: var(--g90-radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--g90-shadow-lg);
}

.g90-modal h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

/* ========== Koç FAB + Panel ========== */
#g90-coach-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--g90-gradient);
  color: #0A0A0A;
  border: 2px solid #0A0A0A;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(201, 161, 74, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  z-index: 400;
  transition: transform 0.15s var(--g90-ease);
}

#g90-coach-fab:hover {
  transform: scale(1.08);
}

#g90-coach-panel {
  position: fixed;
  right: 16px;
  bottom: 90px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  background: var(--g90-surface);
  border-radius: var(--g90-radius-lg);
  border: 1px solid var(--g90-border);
  box-shadow: var(--g90-shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 401;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s var(--g90-ease), opacity 0.2s var(--g90-ease);
}

#g90-coach-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.g90-coach-head {
  padding: 14px 16px;
  background: var(--g90-primary);
  color: #fff;
  border-radius: var(--g90-radius-lg) var(--g90-radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g90-coach-title {
  font-weight: 700;
  font-size: 16px;
}

.g90-coach-sub {
  font-size: 12px;
  opacity: 0.75;
}

.g90-coach-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.g90-coach-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.g90-coach-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.g90-msg {
  display: flex;
}

.g90-msg-user {
  justify-content: flex-end;
}

.g90-msg-assistant {
  justify-content: flex-start;
}

.g90-msg .bubble {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.g90-msg-user .bubble {
  background: var(--g90-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.g90-msg-assistant .bubble {
  background: var(--g90-surface-2);
  color: var(--g90-text);
  border-bottom-left-radius: 4px;
}

.g90-msg .bubble.typing {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
}

.g90-msg .bubble.typing span {
  width: 6px;
  height: 6px;
  background: var(--g90-text-soft);
  border-radius: 50%;
  animation: g90-typing 1.1s infinite;
}

.g90-msg .bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.g90-msg .bubble.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes g90-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.g90-coach-quick {
  padding: 8px 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.g90-coach-chip {
  background: var(--g90-surface-2);
  border: 1px solid var(--g90-border);
  color: var(--g90-text);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.1s var(--g90-ease);
}

.g90-coach-chip:hover {
  background: var(--g90-border);
}

.g90-coach-form {
  padding: 10px 12px 12px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--g90-border);
}

.g90-coach-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--g90-border-strong);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.g90-coach-input:focus {
  border-color: var(--g90-info);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.g90-coach-send {
  padding: 0 16px;
  background: var(--g90-gradient);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ========== Bulk import (dosya yükleme) ========== */
.g90-bulk-tabs {
  display: flex;
  gap: 6px;
  margin: 8px 0;
  border-bottom: 1px solid var(--g90-border);
}

.g90-bulk-tab {
  background: transparent;
  border: 0;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--g90-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.g90-bulk-tab:hover {
  color: var(--g90-text);
}

.g90-bulk-tab.active {
  color: var(--g90-accent);
  border-bottom-color: var(--g90-accent);
}

.g90-file-dropzone {
  border: 2px dashed var(--g90-border-strong);
  border-radius: var(--g90-radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s var(--g90-ease);
  background: var(--g90-surface-2);
  margin-top: 12px;
}

.g90-file-dropzone:hover,
.g90-file-dropzone.hover {
  border-color: var(--g90-accent);
  background: rgba(245, 158, 11, 0.04);
}

.g90-file-dropzone .icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.g90-file-dropzone .main {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.g90-file-dropzone .formats {
  color: var(--g90-text-muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  margin-top: 4px;
}

.g90-format-guides {
  display: grid;
  gap: 6px;
}

.g90-format-guide {
  background: var(--g90-surface);
  border: 1px solid var(--g90-border);
  border-radius: var(--g90-radius-sm);
  padding: 0;
  overflow: hidden;
}

.g90-format-guide summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  transition: background 0.1s var(--g90-ease);
}

.g90-format-guide summary:hover {
  background: var(--g90-surface-2);
}

.g90-format-guide summary::-webkit-details-marker { display: none; }
.g90-format-guide summary::marker { display: none; content: ''; }

.g90-format-guide summary::after {
  content: '▼';
  margin-left: auto;
  color: var(--g90-text-soft);
  font-size: 10px;
  transition: transform 0.15s var(--g90-ease);
}

.g90-format-guide[open] summary::after { transform: rotate(180deg); }

.g90-format-guide summary .emoji {
  font-size: 18px;
  width: 26px;
  text-align: center;
}

.g90-format-guide ol {
  margin: 0;
  padding: 10px 20px 12px 38px;
  background: var(--g90-surface-2);
  border-top: 1px solid var(--g90-border);
}

.g90-format-guide ol li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--g90-text);
  margin-bottom: 4px;
}

.g90-format-guide ol li:last-child {
  margin-bottom: 0;
}

.g90-format-guide ol a {
  color: var(--g90-info);
  font-weight: 600;
}

.g90-format-guide ol code {
  background: var(--g90-surface);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid var(--g90-border);
}

.g90-format-guide .hint {
  padding: 8px 20px 12px 38px;
  background: var(--g90-surface-2);
  font-size: 12px;
  color: var(--g90-text-muted);
  font-style: italic;
}

.g90-file-preview {
  background: var(--g90-surface-2);
  border-radius: var(--g90-radius);
  padding: 16px;
  border: 1px solid var(--g90-border);
}

.g90-file-preview-list {
  margin-top: 10px;
  background: var(--g90-surface);
  border-radius: 8px;
  border: 1px solid var(--g90-border);
  max-height: 240px;
  overflow-y: auto;
}

.g90-file-preview-list .preview-row {
  padding: 6px 10px;
  border-bottom: 1px solid var(--g90-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.g90-file-preview-list .preview-row:last-child {
  border-bottom: 0;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .g90-topbar {
    padding: 10px 14px;
  }

  .g90-topnav button {
    padding: 6px 10px;
    font-size: 13px;
  }

  .g90-main {
    padding: 16px 14px 32px;
  }

  .g90-grid-2,
  .g90-grid-3,
  .g90-grid-4 {
    grid-template-columns: 1fr;
  }

  .g90-auth-card {
    padding: 28px 22px;
  }

  .g90-filter-row {
    grid-template-columns: 1fr;
  }

  .g90-contact-card {
    grid-template-columns: auto 1fr;
  }

  .g90-contact-card .right {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 4px;
  }

  .g90-week-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .g90-kanban-scroll {
    overflow-x: auto;
    margin-left: -4px;
    margin-right: -4px;
  }

  .g90-kanban-board {
    grid-template-columns: repeat(7, 200px);
    grid-auto-flow: column;
  }
}

@media (max-width: 480px) {
  .g90-week-grid {
    grid-template-columns: 1fr;
  }
}
