    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --primary: #854fff;
      --primary-hover: #7040e0;
      --primary-light: #f3edff;
      --primary-bg: #ede5ff;
      --bg: #f5f5f5;
      --surface: #ffffff;
      --text: #1a1a1a;
      --text-secondary: #666;
      --text-muted: #999;
      --border: #e5e5e5;
      --border-light: #f0f0f0;
      --danger: #e74c3c;
      --danger-hover: #c0392b;
      --success: #27ae60;
      --warning: #f39c12;
      --sidebar-w: 280px;
      --header-h: 56px;
      --radius: 8px;
      --radius-lg: 12px;
      --shadow: 0 1px 3px rgba(0,0,0,0.08);
      --shadow-lg: 0 4px 12px rgba(0,0,0,0.12);
    }

    html, body {
      height: 100%;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: var(--bg);
      color: var(--text);
      overflow: hidden;
    }

    /* ===== HEADER ===== */
    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: var(--header-h);
      padding: 0 20px;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .header-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 20px;
      font-weight: 700;
      color: var(--primary);
    }
    .header-icon {
      width: 32px;
      height: 32px;
    }
    .header-tabs {
      display: flex;
      gap: 4px;
    }
    .header-tab {
      padding: 8px 16px;
      border: none;
      background: transparent;
      color: var(--text-secondary);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      border-radius: var(--radius);
      transition: all 0.15s;
      position: relative;
    }
    .header-tab:hover { background: var(--primary-light); color: var(--primary); }
    .header-tab.active { background: var(--primary); color: white; }
    .tab-badge {
      position: absolute;
      top: 2px;
      right: 2px;
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      border-radius: 9px;
      background: var(--danger);
      color: white;
      font-size: 11px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }
    .tab-badge.hidden { display: none; }

    /* ===== MAIN LAYOUT ===== */
    /* 서버가 <html data-authed="1">을 주입하기 전까지는 메인 앱을 숨겨서
       로그인 UI 깜빡임(FOUAC)을 방지한다. 인라인 style은 로그인/로그아웃
       런타임 전환(showMainApp/showAuthScreen)에서 설정되므로 CSS보다 우선한다. */
    #mainApp {
      display: none;
    }
    html[data-authed="1"] #authScreen {
      display: none;
    }
    html[data-authed="1"] #mainApp {
      display: flex;
    }
    .app {
      display: flex;
      flex-direction: column;
      height: 100vh;
    }
    .main {
      display: flex;
      flex: 1;
      overflow: hidden;
    }

    /* ===== SIDEBAR ===== */
    .sidebar {
      width: var(--sidebar-w);
      background: var(--surface);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }
    .sidebar.hidden { display: none; }
    .sidebar-header {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border-light);
    }
    .btn-new-chat {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      width: 100%;
      padding: 10px;
      border: 1px dashed var(--border);
      border-radius: var(--radius);
      background: transparent;
      color: var(--text-secondary);
      font-size: 14px;
      cursor: pointer;
      transition: all 0.15s;
    }
    .btn-new-chat:hover {
      border-color: var(--primary);
      color: var(--primary);
      background: var(--primary-light);
    }
    .session-list {
      flex: 1;
      overflow-y: auto;
      padding: 8px;
    }
    .sidebar-footer {
      padding: 12px 16px;
      border-top: 1px solid var(--border-light);
    }
    .changelog-link {
      display: block;
      text-align: center;
      font-size: 12px;
      color: var(--text-muted);
      text-decoration: none;
      padding: 4px;
      transition: color 0.15s;
    }
    .changelog-link:hover { color: var(--primary); }
    .sidebar-version {
      text-align: center;
      font-size: 11px;
      color: var(--text-muted);
      padding: 2px 0 0;
      letter-spacing: 0.3px;
    }

    .session-item {
      display: flex;
      align-items: flex-start;
      padding: 10px 12px;
      border-radius: var(--radius);
      cursor: pointer;
      transition: background 0.15s;
      position: relative;
    }
    .session-item:hover { background: var(--bg); }
    .session-item.active { background: var(--primary-light); }
    .session-info {
      flex: 1;
      min-width: 0;
    }
    .session-title {
      font-size: 13px;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .session-preview {
      font-size: 12px;
      color: var(--text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 2px;
    }
    .session-delete {
      opacity: 0;
      border: none;
      background: transparent;
      color: var(--text-muted);
      cursor: pointer;
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 16px;
      flex-shrink: 0;
      transition: all 0.15s;
    }
    .session-item:hover .session-delete { opacity: 1; }
    .session-delete:hover { background: #fee; color: var(--danger); }

    /* ===== CHAT CONTENT ===== */
    .content {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .chat-area { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
    .chat-area.hidden { display: none; }

    .messages {
      flex: 1;
      overflow-y: auto;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .messages-empty {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      font-size: 15px;
    }
    .msg {
      max-width: 75%;
      padding: 10px 14px;
      border-radius: var(--radius-lg);
      font-size: 14px;
      line-height: 1.6;
      word-break: break-word;
      white-space: pre-wrap;
    }
    .msg-user {
      align-self: flex-end;
      background: var(--primary);
      color: white;
      border-bottom-right-radius: 4px;
    }
    .msg-assistant {
      align-self: flex-start;
      background: var(--surface);
      border: 1px solid var(--border);
      border-bottom-left-radius: 4px;
    }
    .msg-tool {
      align-self: flex-start;
      background: var(--primary-light);
      color: var(--primary);
      font-size: 13px;
      padding: 6px 12px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .tool-spinner {
      width: 14px;
      height: 14px;
      border: 2px solid var(--primary-bg);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .thinking-indicator {
      align-self: flex-start;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      background: var(--surface);
      border-radius: 16px;
      border-bottom-left-radius: 4px;
      font-size: 13px;
      color: var(--text-muted);
      animation: fadeInUp 0.3s ease;
    }
    .thinking-dots {
      display: flex;
      gap: 3px;
    }
    .thinking-dots span {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--primary);
      animation: bounce 1.4s ease-in-out infinite;
    }
    .thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
    .thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
    @keyframes bounce {
      0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
      40% { transform: scale(1); opacity: 1; }
    }
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .msg-error {
      align-self: flex-start;
      background: #fef2f2;
      color: var(--danger);
      border: 1px solid #fecaca;
      border-bottom-left-radius: 4px;
    }

    /* ===== INPUT BAR ===== */
    .input-bar {
      padding: 12px 20px 16px;
      background: var(--surface);
      border-top: 1px solid var(--border);
    }
    .input-wrap {
      display: flex;
      align-items: flex-end;
      gap: 8px;
      max-width: 800px;
      margin: 0 auto;
    }
    .input-wrap textarea {
      flex: 1;
      padding: 10px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      font-size: 14px;
      font-family: inherit;
      resize: none;
      outline: none;
      min-height: 42px;
      max-height: 120px;
      line-height: 1.5;
      transition: border-color 0.15s;
    }
    .input-wrap textarea:focus { border-color: var(--primary); }
    .input-wrap textarea:disabled { background: var(--bg); }
    .btn-send {
      width: 42px;
      height: 42px;
      border: none;
      border-radius: var(--radius-lg);
      background: var(--primary);
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.15s;
    }
    .btn-send:hover { background: var(--primary-hover); }
    .btn-send:disabled { background: var(--border); cursor: not-allowed; }
    .btn-send svg { width: 18px; height: 18px; }

    /* ===== SCHEDULE AREA ===== */
    .schedule-area { display: none; flex-direction: column; flex: 1; overflow: hidden; }
    .schedule-area.active { display: flex; }

    .schedule-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 24px;
      border-bottom: 1px solid var(--border);
      background: var(--surface);
    }
    .schedule-toolbar h2 {
      font-size: 18px;
      font-weight: 600;
    }
    .btn-primary {
      padding: 8px 16px;
      border: none;
      border-radius: var(--radius);
      background: var(--primary);
      color: white;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.15s;
    }
    .btn-primary:hover { background: var(--primary-hover); }

    .schedule-table-wrap {
      flex: 1;
      overflow: auto;
      padding: 16px 24px;
    }
    .schedule-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      font-size: 14px;
    }
    .schedule-table th {
      text-align: left;
      padding: 10px 12px;
      background: var(--bg);
      font-weight: 600;
      font-size: 13px;
      color: var(--text-secondary);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 1;
    }
    .schedule-table td {
      padding: 10px 12px;
      border-bottom: 1px solid var(--border-light);
      vertical-align: top;
    }
    .schedule-table tr:hover td { background: #fafafa; }
    .badge {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 500;
    }
    .badge-active { background: #e8f5e9; color: var(--success); }
    .badge-inactive { background: #fafafa; color: var(--text-muted); }
    .badge-success { background: #e8f5e9; color: var(--success); }
    .badge-failed { background: #fef2f2; color: var(--danger); }
    .badge-skipped { background: #fff8e1; color: var(--warning); }
    .badge-recurring { background: var(--primary-light); color: var(--primary); }
    .badge-once { background: #e3f2fd; color: #1565c0; }
    .badge-creator { background: #f3e8ff; color: #7c3aed; font-size: 11px; }
    .cron-info {
      display: inline-flex; align-items: center; justify-content: center;
      width: 16px; height: 16px; border-radius: 50%; background: var(--border);
      color: var(--text-muted); font-size: 10px; font-weight: 700;
      cursor: help; vertical-align: middle; margin-left: 4px;
      position: relative;
    }
    .cron-info .cron-tooltip {
      display: none; position: absolute; bottom: calc(100% + 6px); left: 50%;
      transform: translateX(-50%); background: #1f2937; color: #fff;
      font-size: 11px; font-weight: 400; padding: 5px 10px; border-radius: 6px;
      white-space: nowrap; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .cron-info:hover .cron-tooltip { display: block; }

    .day-selector { display: flex; gap: 6px; }
    .day-btn {
      width: 40px; height: 36px; border: 1.5px solid var(--border); border-radius: 8px;
      background: #fff; color: var(--text-primary); font-size: 14px; font-weight: 500;
      cursor: pointer; transition: all 0.15s;
    }
    .day-btn:hover { border-color: var(--primary); }
    .day-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }

    .slot-selector { display: flex; gap: 4px; flex-wrap: wrap; }
    .slot-btn {
      width: 36px; height: 32px; border: 1.5px solid var(--border); border-radius: 6px;
      background: #fff; color: var(--text-primary); font-size: 13px; font-weight: 500;
      cursor: pointer; transition: all 0.15s;
    }
    .slot-btn:hover { border-color: var(--primary); }
    .slot-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
    .slot-btn.slot-end { }

    .wizard-progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
    .wizard-dot {
      width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all 0.2s;
    }
    .wizard-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
    .wizard-dot.done { background: var(--primary); }
    .wizard-step { display: none; }
    .wizard-step.active { display: block; }
    .wizard-step h3 { text-align: center; margin: 0 0 20px 0; font-size: 18px; }
    .wizard-summary {
      background: var(--primary-light); border-radius: 8px; padding: 10px 14px;
      font-size: 14px; color: var(--primary); margin-bottom: 16px; text-align: center;
      font-weight: 500;
    }
    .wizard-hint {
      text-align: center; color: var(--primary);
      font-size: 13px; font-weight: 500; margin-top: 8px; min-height: 18px;
    }
    .wizard-preview {
      margin-top: 20px; padding: 14px 16px;
      background: #f8faf7; border: 1px solid #d7e1d3; border-radius: 10px;
      font-size: 13px; line-height: 1.6;
    }
    .wizard-preview .preview-row { display: flex; gap: 8px; }
    .wizard-preview .preview-label { color: var(--text-muted); min-width: 72px; }
    .wizard-preview .preview-badge {
      display: inline-block; margin-top: 10px; padding: 4px 10px;
      border-radius: 999px; font-size: 12px; font-weight: 600;
    }
    .wizard-preview .preview-badge.ok { background: #e8f5e9; color: var(--success); }
    .wizard-preview .preview-badge.mismatch { background: #fff8e1; color: #b26a00; }
    .wizard-preview .preview-badge.weekend { background: #fef2f2; color: var(--danger); }

    .day-selector-wide { gap: 4px; }
    .day-selector-wide .day-btn { width: 36px; }

    .actions {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
    }
    .btn-sm {
      padding: 4px 8px;
      border: 1px solid var(--border);
      border-radius: 4px;
      background: white;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.15s;
      white-space: nowrap;
    }
    .btn-sm:hover { border-color: var(--primary); color: var(--primary); }
    .btn-sm.danger { color: var(--danger); }
    .btn-sm.danger:hover { border-color: var(--danger); background: #fef2f2; }

    .history-row td {
      background: #fafafa;
      padding: 8px 12px 8px 24px;
    }
    .history-list {
      font-size: 13px;
    }
    .history-entry {
      display: flex;
      gap: 12px;
      align-items: center;
      padding: 6px 0;
      border-bottom: 1px solid var(--border-light);
    }
    .history-entry:last-child { border-bottom: none; }
    .history-date { color: var(--text-muted); min-width: 140px; }
    .history-target { color: var(--text-secondary); min-width: 80px; }
    .history-reason { color: var(--text-secondary); flex: 1; }
    .no-data { color: var(--text-muted); padding: 20px; text-align: center; }

    /* ===== MODAL ===== */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.4);
      z-index: 1000;
      align-items: center;
      justify-content: center;
    }
    .modal-overlay.active { display: flex; }
    .modal {
      background: var(--surface);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
      width: 480px;
      max-height: 90vh;
      overflow-y: auto;
      padding: 24px;
    }
    .modal h3 {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 20px;
    }
    .form-group {
      margin-bottom: 16px;
    }
    .form-group label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-secondary);
      margin-bottom: 4px;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      font-size: 14px;
      font-family: inherit;
      outline: none;
      transition: border-color 0.15s;
    }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus { border-color: var(--primary); }
    .form-row {
      display: flex;
      gap: 12px;
    }
    .form-row .form-group { flex: 1; }
    .modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 24px;
    }
    .btn-cancel {
      padding: 8px 16px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: white;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.15s;
    }
    .btn-cancel:hover { background: var(--bg); }

    /* Skip modal */
    .skip-form { display: flex; flex-direction: column; gap: 12px; }

    /* Scrollbar */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: #aaa; }

    /* ===== RESERVATIONS AREA ===== */
    .reservations-area { display: none; flex-direction: column; flex: 1; overflow: hidden; }
    .reservations-area.active { display: flex; }

    .reservations-content-wrap {
      flex: 1;
      overflow: auto;
      padding: 16px 24px;
    }

    .reservations-date-group {
      margin-bottom: 20px;
    }
    .reservations-date-header {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 8px;
    }

    .reservation-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 16px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      margin-bottom: 8px;
      transition: border-color 0.15s;
    }
    .reservation-card:hover { border-color: var(--primary); }
    .reservation-card:last-child { margin-bottom: 0; }

    .reservation-info h4 {
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 4px;
    }
    .reservation-info p {
      font-size: 12px;
      color: var(--text-secondary);
    }

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

    .badge-pending { background: #fff8e1; color: var(--warning); }
    .badge-approved { background: #e8f5e9; color: var(--success); }

    .reservations-loading {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 60px 20px;
      color: var(--text-muted);
      gap: 8px;
    }

    /* Empty state */
    .schedule-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 20px;
      color: var(--text-muted);
    }
    .schedule-empty p { margin-top: 8px; font-size: 15px; }

    /* ===== AUTH ===== */
    .auth-screen {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      background: var(--bg);
    }
    .auth-container {
      max-width: 400px;
      width: 100%;
      padding: 32px;
      background: var(--surface);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
    }
    .auth-icon {
      display: block;
      margin: 0 auto 12px;
      width: 120px;
      height: 120px;
    }
    .auth-title {
      font-size: 28px;
      font-weight: 700;
      color: var(--primary);
      text-align: center;
      margin-bottom: 4px;
    }
    .auth-subtitle {
      text-align: center;
      color: var(--text-muted);
      margin-bottom: 24px;
      font-size: 14px;
    }
    .auth-form .form-group { margin-bottom: 16px; }
    .auth-form .form-group label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 6px;
      color: var(--text);
    }
    .auth-form .form-group input {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      font-size: 14px;
      box-sizing: border-box;
    }
    .auth-form .form-group input:focus {
      outline: none;
      border-color: var(--primary);
    }
    .auth-btn {
      width: 100%;
      padding: 12px;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: var(--radius);
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 8px;
    }
    .auth-btn:hover { opacity: 0.9; }
    .auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .auth-link {
      text-align: center;
      margin-top: 16px;
      font-size: 13px;
      color: var(--text-muted);
    }
    .auth-link a { color: var(--primary); text-decoration: none; cursor: pointer; }
    .auth-error {
      color: var(--danger);
      font-size: 13px;
      margin: 8px 0;
      padding: 8px 12px;
      background: #fff5f5;
      border-radius: var(--radius);
      display: none;
    }
    .auth-section-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-muted);
      margin-bottom: 12px;
    }
    .session-timer {
      font-size: 13px;
      color: var(--text-muted);
    }
    .session-timer.warn { color: var(--danger); }
    .user-info {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .user-name {
      font-size: 14px;
      font-weight: 600;
    }
    .btn-logout {
      padding: 6px 14px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      font-size: 13px;
      cursor: pointer;
      color: var(--text-muted);
    }
    .btn-logout:hover { border-color: var(--text-muted); }

/* ===== Error Toast ===== */
.toast-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}
.toast-container > * {
  pointer-events: auto;
}

.error-toast {
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  animation: toastSlideUp 0.3s ease;
}
.error-toast.toast-success {
  background: #f0fdf4;
  border-color: #86efac;
}
.error-toast.toast-closing {
  animation: toastSlideDown 0.3s ease forwards;
}

.toast-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.toast-icon {
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}
.toast-icon.error { color: #dc2626; }
.toast-icon.success { color: #16a34a; }

.toast-content {
  flex: 1;
  min-width: 0;
}
.toast-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}
.error-toast .toast-title { color: #991b1b; }
.error-toast.toast-success .toast-title { color: #166534; }

.toast-message {
  color: #666;
  font-size: 11px;
  margin-bottom: 10px;
  word-break: break-word;
}
.error-toast.toast-success .toast-message {
  margin-bottom: 0;
}

.toast-close {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.toast-close:hover { color: #666; }

.toast-report-btn {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.toast-report-btn:hover { background: #b91c1c; }
.toast-report-btn:disabled {
  background: #999;
  cursor: not-allowed;
}
.toast-report-btn.retry {
  background: #ea580c;
}
.toast-report-btn.retry:hover {
  background: #c2410c;
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastSlideDown {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

@media (max-width: 600px) {
  .toast-container {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px;
  }
  .error-toast {
    width: 100%;
  }
}
