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

:root {
  --primary: #1a5c3a;
  --primary-light: #e8f5ee;
  --primary-dark: #0e3d25;
  --accent: #2d8a56;
  --surface: #ffffff;
  --surface-dim: #f7f8f9;
  --surface-container: #f0f2f4;
  --on-surface: #1a1c1e;
  --on-surface-variant: #6b7280;
  --outline: #d1d5db;
  --outline-light: #e5e7eb;
  --error: #dc2626;
  --error-light: #fef2f2;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --success: #16a34a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--surface-dim);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}

/* HEADER */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary); color: white;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.app-header h1 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; }
.header-actions { display: flex; gap: 8px; }
.header-btn {
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); font-size: 1.1rem;
}
.header-btn:hover { background: rgba(255,255,255,0.25); }

/* NAVIGATION */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface); border-top: 1px solid var(--outline-light);
  display: flex; z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 14px 0 10px; border: none; background: none;
  color: var(--on-surface-variant); font-size: 0.75rem;
  font-family: var(--font); cursor: pointer; transition: var(--transition);
  position: relative;
}
.nav-item.active { color: var(--primary); }
.nav-item.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 48px; height: 3px; background: var(--primary); border-radius: 0 0 3px 3px;
}
.nav-icon { font-size: 1.6rem; margin-bottom: 4px; }

/* SCREENS */
.screen { display: none; padding: 16px; padding-bottom: 100px; animation: fadeIn 0.25s ease; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* LOGIN */
.login-container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(100dvh - 120px); padding: 24px;
}
.login-subtitle { color: var(--on-surface-variant); font-size: 0.85rem; margin-bottom: 32px; }
.login-form { width: 100%; max-width: 340px; }
.login-form .form-group { margin-bottom: 16px; }
.login-form .form-label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--on-surface-variant); margin-bottom: 6px; }
.login-form .form-input {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--outline);
  border-radius: var(--radius-md); font-size: 1rem; font-family: var(--font);
  color: var(--on-surface); background: var(--surface); transition: var(--transition);
}
.login-form .form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,92,58,0.1); }
.login-btn {
  width: 100%; padding: 14px; background: var(--primary); color: white; border: none;
  border-radius: var(--radius-md); font-family: var(--font); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); box-shadow: 0 2px 8px rgba(26,92,58,0.3); margin-top: 8px;
}
.login-btn:hover { background: var(--primary-dark); }
.login-error { display: none; background: var(--error-light); color: var(--error); font-size: 0.8rem; font-weight: 500; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 12px; text-align: center; }
.login-error.show { display: block; }
.login-remember { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.8rem; color: var(--on-surface-variant); }
.login-remember input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* FORM */
.form-section { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.section-title { font-size: 0.8rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.section-title .icon { font-size: 1rem; }
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--on-surface-variant); margin-bottom: 6px; }
.form-label .required { color: var(--error); font-size: 0.7rem; margin-left: 4px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--outline);
  border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font);
  color: var(--on-surface); background: var(--surface); transition: var(--transition); -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,92,58,0.1); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.form-textarea { resize: vertical; min-height: 80px; }
.contact-hint { font-size: 0.73rem; color: var(--accent); margin-top: 6px; line-height: 1.5; }
.contact-hint.warn { color: var(--error); font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* TAG */
.tag-container { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 8px 14px; border: 1.5px solid var(--outline); border-radius: 20px;
  font-size: 0.8rem; font-family: var(--font); font-weight: 500; cursor: pointer;
  transition: var(--transition); background: var(--surface); color: var(--on-surface);
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.tag.selected { background: var(--primary); color: white; border-color: var(--primary); }
.tag:active { transform: scale(0.95); }

/* TOGGLE */
.toggle-group { display: flex; gap: 8px; }
.toggle-btn {
  flex: 1; padding: 10px; border: 1.5px solid var(--outline); border-radius: var(--radius-sm);
  background: var(--surface); font-family: var(--font); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: var(--transition); text-align: center;
}
.toggle-btn.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* EXPENSE */
.expense-item { background: var(--surface-dim); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; }
.expense-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.expense-label { font-size: 0.8rem; font-weight: 600; }
.expense-accordion { margin-bottom: 8px; }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: var(--surface-dim); border: 1.5px solid var(--outline-light);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.85rem; font-weight: 600;
  color: var(--on-surface); cursor: pointer; transition: var(--transition);
}
.accordion-trigger:hover { background: var(--primary-light); }
.accordion-trigger.open { border-color: var(--primary); background: var(--primary-light); color: var(--primary); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.accordion-arrow { font-size: 0.65rem; transition: transform 0.2s ease; }
.accordion-trigger.open .accordion-arrow { transform: rotate(180deg); }
.accordion-content { border: 1.5px solid var(--outline-light); border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 12px; background: var(--surface); }

/* PHOTO */
.photo-upload { border: 2px dashed var(--outline); border-radius: var(--radius-md); padding: 24px; text-align: center; cursor: pointer; transition: var(--transition); background: var(--surface-dim); }
.photo-upload:hover { border-color: var(--primary); background: var(--primary-light); }
.photo-upload .icon { font-size: 2rem; margin-bottom: 4px; }
.photo-upload .text { font-size: 0.8rem; color: var(--on-surface-variant); }
.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--outline-light); position: relative; }
.photo-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: var(--error); color: white; border: none; border-radius: 50%; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-item { position: relative; display: inline-block; }

/* SIGNATURE */
.sign-section { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.sign-pad-wrapper { position: relative; border: 2px solid var(--outline); border-radius: var(--radius-md); overflow: hidden; background: #fafbfc; }
.sign-pad { width: 100%; height: 200px; pointer-events: none; }
.sign-placeholder { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--outline); font-size: 0.9rem; pointer-events: none; transition: var(--transition); }
.sign-placeholder.hidden { opacity: 0; }
.sign-line { position: absolute; bottom: 40px; left: 24px; right: 24px; height: 1px; background: var(--outline-light); pointer-events: none; }
.sign-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.sign-clear { background: none; border: 1px solid var(--outline); color: var(--on-surface-variant); padding: 6px 16px; border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.8rem; cursor: pointer; }

/* サイン全画面モーダル */
.sign-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #fff; z-index: 9999; display: flex; flex-direction: column; }
.sign-modal-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f5f5f5; border-bottom: 1px solid #ddd; flex-shrink: 0; }
.sign-modal-btn { background: #fff; border: 1px solid #ccc; border-radius: 8px; padding: 8px 14px; font-size: 0.85rem; font-family: var(--font); cursor: pointer; color: #333; }
.sign-modal-btn:active { background: #eee; }
.sign-modal-btn:disabled { opacity: 0.35; pointer-events: none; }
.sign-modal-done { margin-left: auto; background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 8px 20px; font-size: 0.9rem; font-weight: 600; font-family: var(--font); cursor: pointer; }
.sign-modal-done:active { opacity: 0.8; }
#signModalCanvas { flex: 1; touch-action: none; cursor: crosshair; background: #fafbfc; }
.sign-modal-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #ccc; font-size: 1.2rem; pointer-events: none; }

/* CUSTOMER */
.customer-section { background: linear-gradient(135deg, #f0f9f4, #e8f5ee); border: 1px solid rgba(26,92,58,0.15); }
.customer-notice { background: rgba(26,92,58,0.08); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px; font-size: 0.8rem; color: var(--primary-dark); text-align: center; line-height: 1.5; }

/* BUTTONS */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; border: none; border-radius: var(--radius-md); font-family: var(--font); font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 2px 8px rgba(26,92,58,0.3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--on-surface); border: 1.5px solid var(--outline); }
.btn-draft { background: var(--surface-container); color: var(--on-surface-variant); }
.btn-group { display: flex; gap: 12px; margin-top: 8px; }
.btn-group .btn { flex: 1; }

/* STEP INDICATOR */
.step-indicator { display: flex; align-items: center; justify-content: center; padding: 16px 0 8px; gap: 0; }
.step { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--on-surface-variant); font-weight: 500; }
.step.active { color: var(--primary); font-weight: 600; }
.step.done { color: var(--success); }
.step-dot { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; background: var(--surface-container); color: var(--on-surface-variant); }
.step.active .step-dot { background: var(--primary); color: white; }
.step.done .step-dot { background: var(--success); color: white; }
.step-line { width: 32px; height: 2px; background: var(--outline-light); margin: 0 4px; }
.step-line.done { background: var(--success); }

/* PREVIEW */
.preview-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 16px; }
.preview-header { background: var(--primary-dark); color: white; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.preview-title { font-weight: 600; font-size: 0.95rem; }
.preview-date { font-size: 0.8rem; opacity: 0.8; }
.preview-body { padding: 20px; }
.preview-row { display: flex; padding: 8px 0; border-bottom: 1px solid var(--outline-light); font-size: 0.85rem; }
.preview-row:last-child { border-bottom: none; }
.preview-label { width: 120px; flex-shrink: 0; color: var(--on-surface-variant); font-weight: 500; }
.preview-value { flex: 1; font-weight: 400; }
.preview-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.preview-tag { background: var(--primary-light); color: var(--primary); padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 500; }
.preview-sign { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--outline); }
.preview-sign img { max-height: 80px; border: 1px solid var(--outline-light); border-radius: var(--radius-sm); }

/* AFTER PDF CHECKBOX */
.after-check { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff8e1; border: 1.5px solid #ffd54f; border-radius: var(--radius-sm); margin-bottom: 12px; }
.after-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--warning); }
.after-check label { font-size: 0.85rem; font-weight: 600; color: #6d4c00; }

/* ROOM CARDS (アフターモード) */
.room-card {
  background: var(--surface-dim); border: 1.5px solid var(--outline-light);
  border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px;
  transition: var(--transition);
}
.room-card:hover { border-color: var(--outline); }
.room-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--outline-light);
}
.room-title { font-size: 0.9rem; font-weight: 700; color: var(--primary); }
.room-remove-btn {
  width: 28px; height: 28px; border: 1.5px solid var(--error);
  border-radius: 50%; background: var(--error-light); color: var(--error);
  font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); line-height: 1;
}
.room-remove-btn:hover { background: var(--error); color: white; }
.room-tag-container { display: flex; flex-wrap: wrap; gap: 6px; }
.room-tag-container .tag { font-size: 0.75rem; padding: 6px 10px; }
.add-room-btn {
  width: 100%; padding: 12px; border: 2px dashed var(--primary);
  border-radius: var(--radius-md); background: var(--primary-light);
  color: var(--primary); font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); margin-top: 4px;
}
.add-room-btn:hover { background: var(--primary); color: white; }
.add-room-btn:active { transform: scale(0.98); }

/* NAV BADGE */
.nav-badge {
  position: absolute; top: 4px; right: calc(50% - 24px);
  background: var(--error); color: white; font-size: 0.6rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}

/* DASHBOARD */
.year-selector { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; }
.year-btn { background: none; border: 1px solid var(--outline); border-radius: var(--radius-sm); padding: 4px 12px; cursor: pointer; font-size: 0.9rem; color: var(--on-surface); }
.year-btn:hover { background: var(--primary-light); }
#dashYear { font-size: 1.1rem; font-weight: 700; color: var(--primary); min-width: 60px; text-align: center; }

.month-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 16px; }
.month-btn {
  padding: 8px 4px; border: 1.5px solid var(--outline-light); border-radius: var(--radius-sm);
  background: var(--surface); font-family: var(--font); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; text-align: center; transition: var(--transition); position: relative;
}
.month-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.month-btn .month-dot { display: none; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; margin: 2px auto 0; }
.month-btn.has-data .month-dot { display: block; }
.month-btn.active .month-dot { background: white; }

.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.stat-card {
  background: var(--surface-dim); border-radius: var(--radius-sm); padding: 12px; text-align: center;
}
.stat-value { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.7rem; color: var(--on-surface-variant); margin-top: 2px; }

.dash-job-list { max-height: 400px; overflow-y: auto; }
.job-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--outline-light); cursor: pointer;
  transition: var(--transition);
}
.job-item:hover { background: var(--surface-dim); }
.job-item:last-child { border-bottom: none; }
.job-info { flex: 1; }
.job-date { font-size: 0.7rem; color: var(--on-surface-variant); }
.job-title { font-size: 0.85rem; font-weight: 600; }
.job-meta { font-size: 0.7rem; color: var(--on-surface-variant); }
.job-status { font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.job-status.sent { background: var(--primary-light); color: var(--primary); }
.job-status.cancelled { background: var(--error-light); color: var(--error); }

/* DRAFT LIST */
.draft-item {
  padding: 12px 0; border-bottom: 1px solid var(--outline-light);
  display: flex; justify-content: space-between; align-items: center;
}
.draft-item:last-child { border-bottom: none; }
.draft-info { flex: 1; }
.draft-title { font-size: 0.85rem; font-weight: 600; }
.draft-meta { font-size: 0.7rem; color: var(--on-surface-variant); margin-top: 2px; }
.draft-actions { display: flex; gap: 6px; }
.draft-btn { padding: 6px 12px; border: 1px solid var(--outline); border-radius: var(--radius-sm); background: var(--surface); font-family: var(--font); font-size: 0.75rem; cursor: pointer; }
.draft-btn.edit { color: var(--primary); border-color: var(--primary); }
.draft-btn.delete { color: var(--error); border-color: var(--error); }

/* JOB DETAIL MODAL */
.job-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 9000;
  display: flex; align-items: flex-end; justify-content: center;
}
.job-modal-content {
  background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%; max-width: 480px; max-height: 80vh; overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.job-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--outline-light);
  font-weight: 600; font-size: 0.95rem;
}
.job-modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--on-surface-variant); padding: 4px; }
.job-modal-body { padding: 16px 20px; font-size: 0.85rem; }
.job-modal-body .detail-row { display: flex; padding: 6px 0; border-bottom: 1px solid var(--outline-light); }
.job-modal-body .detail-row:last-child { border-bottom: none; }
.job-modal-body .detail-label { width: 100px; flex-shrink: 0; color: var(--on-surface-variant); font-weight: 500; }
.job-modal-body .detail-value { flex: 1; }
.job-modal-actions { padding: 12px 20px 24px; display: flex; gap: 8px; }
.job-modal-actions .btn { font-size: 0.85rem; padding: 10px; }

/* TOAST */
.toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: #333; color: white; padding: 10px 20px; border-radius: 20px; font-size: 0.85rem; z-index: 10000; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.toast.show { opacity: 1; }

/* LOADING OVERLAY */
.loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9998; display: none; align-items: center; justify-content: center; }
.loading-overlay.show { display: flex; }
.loading-box { background: white; border-radius: var(--radius-lg); padding: 32px; text-align: center; box-shadow: var(--shadow-lg); }
.loading-spinner { width: 40px; height: 40px; border: 3px solid var(--outline-light); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* EDIT/DELETE BUTTONS */
.btn-edit {
  background: #2563eb; color: white; font-size: 0.85rem; padding: 10px;
  border: none; border-radius: var(--radius-md); font-family: var(--font);
  font-weight: 600; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1;
}
.btn-edit:hover { background: #1d4ed8; }
.btn-delete {
  background: var(--error); color: white; font-size: 0.85rem; padding: 10px;
  border: none; border-radius: var(--radius-md); font-family: var(--font);
  font-weight: 600; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1;
}
.btn-delete:hover { background: #b91c1c; }

/* PIN CONFIRMATION MODAL */
.pin-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 9500;
  display: flex; align-items: center; justify-content: center;
}
.pin-modal-content {
  background: var(--surface); border-radius: var(--radius-lg);
  width: 90%; max-width: 360px; overflow: hidden;
  box-shadow: var(--shadow-lg); animation: fadeIn 0.2s ease;
}
.pin-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--outline-light);
  font-weight: 600; font-size: 0.95rem;
}
.pin-modal-body { padding: 20px; }
.pin-modal-desc { font-size: 0.85rem; color: var(--on-surface-variant); margin-bottom: 16px; text-align: center; }
.pin-input {
  width: 100%; padding: 14px; text-align: center; font-size: 1.3rem;
  letter-spacing: 0.5em; border: 2px solid var(--outline);
  border-radius: var(--radius-md); font-family: var(--font);
}
.pin-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(26,92,58,0.1); }
.pin-error {
  color: var(--error); font-size: 0.8rem; text-align: center;
  margin-top: 8px; font-weight: 500;
}
.pin-modal-actions {
  padding: 12px 20px 20px; display: flex; gap: 8px;
}
.pin-modal-actions .btn { flex: 1; font-size: 0.9rem; padding: 12px; }

