/* ============================================================
   NexArtTime — Mobile-First PWA Styles
   Design system matching NexArtWo (R.C Art Construction)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============ DESIGN TOKENS ============ */
:root {
  /* Surface */
  --bg-app:        #0b0d12;
  --bg-card:       #13151c;
  --bg-card-hover: #191c25;
  --bg-elevated:   #1a1d27;
  --bg-input:      #181b24;

  /* Borders */
  --border:        rgba(255,255,255,0.06);
  --border-focus:  rgba(245,158,11,0.4);

  /* Text */
  --text-primary:   #f0f1f5;
  --text-secondary: #8b90a0;
  --text-muted:     #555968;

  /* Brand — Amber (matching NexArtWo) */
  --accent:        #d97706;
  --accent-bright: #f59e0b;
  --accent-hover:  #b45309;
  --accent-glow:   rgba(217,119,6, 0.15);
  --accent-soft:   rgba(217,119,6, 0.08);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

  /* Semantic */
  --success:     #16a34a;
  --success-bg:  rgba(22,163,74, 0.12);
  --success-glow: rgba(22,163,74, 0.25);
  --warning:     #d97706;
  --warning-bg:  rgba(217,119,6, 0.12);
  --danger:      #dc2626;
  --danger-bg:   rgba(220,38,38, 0.12);
  --danger-glow: rgba(220,38,38, 0.25);
  --info:        #2563eb;
  --info-bg:     rgba(37,99,235, 0.12);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow-accent: 0 0 30px rgba(245,158,11, 0.15);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transition */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.25s var(--ease);

  /* Safe area */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============ RESET ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
select, textarea, input { font-family: inherit; }

/* ============ SPLASH SCREEN ============ */
.splash {
  position: fixed; inset: 0;
  background: var(--bg-app);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
  animation: splashFadeOut 0.5s ease 2s forwards;
}
.splash-logo { text-align: center; animation: splashPulse 2s ease infinite; }
.splash-icon { margin-bottom: 16px; }
.splash-title {
  font-size: 28px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.splash-title span { color: var(--accent-bright); }
.splash-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }
.splash-loader {
  position: absolute; bottom: 80px;
  width: 120px; height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.splash-loader-bar {
  width: 40%; height: 100%;
  background: var(--gradient-accent);
  border-radius: 3px;
  animation: splashLoad 1.5s ease infinite;
}

@keyframes splashPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes splashLoad { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
@keyframes splashFadeOut { to { opacity: 0; pointer-events: none; } }

/* ============ SCREENS ============ */
.screen {
  min-height: 100vh; min-height: 100dvh;
  padding: calc(16px + var(--safe-top)) 20px calc(80px + var(--safe-bottom)) 20px;
  animation: screenIn 0.3s var(--ease);
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ LOGIN SCREEN ============ */
.login-container {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: calc(100vh - 40px);
  min-height: calc(100dvh - 40px);
}

.login-logo { text-align: center; margin-bottom: 32px; }
.login-icon { margin: 0 auto 12px; }
.login-title {
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.5px;
}
.login-title span { color: var(--accent-bright); }
.login-prompt {
  font-size: 14px; color: var(--text-secondary);
  margin-bottom: 28px; text-align: center;
}

/* PIN display */
.pin-display {
  display: flex; gap: 16px;
  margin-bottom: 8px;
}
.pin-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  transition: var(--transition);
}
.pin-dot.filled {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 0 12px rgba(245,158,11, 0.4);
}
.pin-dot.error {
  border-color: var(--danger);
  animation: pinShake 0.4s ease;
}

.login-error {
  color: var(--danger);
  font-size: 12px; font-weight: 500;
  height: 20px; line-height: 20px;
  margin-bottom: 12px;
  text-align: center;
}

/* PIN pad */
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 280px;
  width: 100%;
}
.pin-key {
  width: 80px; height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 24px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  justify-self: center;
  -webkit-tap-highlight-color: transparent;
}
.pin-key:active {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: scale(0.95);
}
.pin-key--empty { visibility: hidden; }
.pin-key--del { color: var(--text-muted); }
.pin-key--del:active { color: var(--danger); }

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ============ APP STATUS BAR ============ */
.app-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 12px;
}
.status-left, .status-right { display: flex; align-items: center; gap: 6px; }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}
.status-dot.online { background: var(--success); box-shadow: 0 0 8px var(--success-glow); }
.status-dot.offline { background: var(--danger); }
.status-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.sync-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--warning-bg);
  color: var(--warning);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
}

/* ============ WORKER CARD ============ */
.worker-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}
.worker-avatar {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  color: #000;
  font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.worker-info { flex: 1; min-width: 0; }
.worker-name {
  font-size: 16px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.worker-role {
  font-size: 12px; color: var(--text-secondary); font-weight: 500;
  text-transform: capitalize;
}
.btn-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.btn-icon:active { background: var(--bg-elevated); color: var(--danger); }

/* ============ TIME DISPLAY ============ */
.time-display { text-align: center; padding: 16px 0 20px; }
.current-time {
  font-size: 56px; font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 0%, #a0a4b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.current-date {
  font-size: 14px; color: var(--text-secondary);
  margin-top: 4px; font-weight: 500;
}

/* ============ TIMER ============ */
.timer-container {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.timer-label {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  font-weight: 600; margin-bottom: 6px;
}
.timer-value {
  font-size: 42px; font-weight: 800;
  color: var(--success);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.timer-meta {
  display: flex; gap: 20px;
  justify-content: center;
  margin-top: 12px;
}
.timer-meta-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-muted); font-weight: 500;
}
.timer-meta-item svg { color: var(--text-muted); }

/* ============ WO SELECTOR ============ */
.wo-selector { margin-bottom: 20px; }
.wo-selector-label {
  display: block;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 600; margin-bottom: 6px;
}
.wo-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px; font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555968' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: var(--transition);
}
.wo-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.wo-select option { background: var(--bg-card); color: var(--text-primary); }

/* ============ CLOCK BUTTON ============ */
.clock-btn-container {
  display: flex; justify-content: center;
  padding: 12px 0 16px;
}
.clock-btn {
  position: relative;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s var(--ease);
}
.clock-btn:active { transform: scale(0.94); }

.clock-btn-inner {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
}

.clock-btn--in .clock-btn-inner {
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(22,163,74, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.clock-btn--out .clock-btn-inner {
  background: linear-gradient(145deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(220,38,38, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

#btn-clock-label {
  font-size: 14px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
}

/* Pulse animation */
.clock-btn-pulse {
  position: absolute; inset: -8px;
  border-radius: 50%;
  z-index: 1;
}
.clock-btn--in .clock-btn-pulse {
  animation: pulseGreen 2s ease infinite;
  background: rgba(22,163,74, 0.2);
}
.clock-btn--out .clock-btn-pulse {
  animation: pulseRed 2s ease infinite;
  background: rgba(220,38,38, 0.2);
}

@keyframes pulseGreen {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}
@keyframes pulseRed {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ============ NOTES ============ */
.notes-container { margin-bottom: 16px; }
.clock-notes {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  resize: none;
  outline: none;
  transition: var(--transition);
}
.clock-notes::placeholder { color: var(--text-muted); }
.clock-notes:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 6px 0 calc(6px + var(--safe-bottom));
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-tab {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 10px; font-weight: 600;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-tab.active { color: var(--accent-bright); }
.nav-tab:active { color: var(--accent); }

/* ============ SCREEN HEADER ============ */
.screen-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.screen-title {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.5px;
}

/* Week nav */
.week-nav { display: flex; align-items: center; gap: 8px; }
.btn-icon-sm {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.btn-icon-sm:active { border-color: var(--accent); color: var(--accent); }
.week-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); min-width: 90px; text-align: center; }

/* ============ WEEK SUMMARY ============ */
.week-summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.week-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
}
.week-stat-value {
  display: block;
  font-size: 24px; font-weight: 800;
  color: var(--accent-bright);
  line-height: 1;
  margin-bottom: 4px;
}
.week-stat-label {
  font-size: 10px; color: var(--text-muted);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ HISTORY LIST ============ */
.history-list { display: flex; flex-direction: column; gap: 8px; }

.history-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  transition: var(--transition);
}
.history-entry:active { background: var(--bg-card-hover); }

.history-date-col {
  width: 48px; text-align: center;
  flex-shrink: 0;
}
.history-day { font-size: 22px; font-weight: 800; line-height: 1; color: var(--text-primary); }
.history-month { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.history-weekday { font-size: 9px; color: var(--text-muted); font-weight: 500; }

.history-details { flex: 1; min-width: 0; }
.history-times {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 2px;
}
.history-wo {
  font-size: 11px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.history-hours {
  text-align: right; flex-shrink: 0;
}
.history-hours-value {
  font-size: 18px; font-weight: 800;
  color: var(--accent-bright);
}
.history-hours-label {
  font-size: 9px; color: var(--text-muted);
  font-weight: 600; text-transform: uppercase;
}

/* Status chip for active */
.history-entry.active-entry {
  border-color: rgba(22,163,74, 0.3);
  background: rgba(22,163,74, 0.06);
}
.history-entry.active-entry .history-hours-value { color: var(--success); }

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state p { margin-top: 12px; font-size: 14px; }

/* ============ PROFILE ============ */
/* Tarjeta de presentación: foto grande, puesto, antigüedad */
.profile-hero {
  position: relative;
  text-align: center;
  padding: 26px 16px 22px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(245,158,11,0.18) 0%, rgba(245,158,11,0.04) 45%, transparent 70%),
    var(--bg-card);
  overflow: hidden;
}
.profile-avatar-wrap { position: relative; width: 104px; height: 104px; margin: 0 auto 14px; }
.profile-avatar {
  width: 104px; height: 104px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #111;
  font-size: 34px; font-weight: 800; letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--bg-card), 0 0 0 6px rgba(245,158,11,0.55), var(--shadow-glow-accent);
}
.avatar-camera {
  position: absolute; right: 0; bottom: 2px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); color: var(--accent-bright);
  border: 2px solid var(--bg-card);
  box-shadow: var(--shadow-md);
}
.avatar-camera:active { transform: scale(0.94); }
.profile-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
.profile-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.05); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.pchip.accent { background: var(--accent-glow); color: var(--accent-bright); border-color: rgba(245,158,11,0.3); }
.pchip.ok { color: #22c55e; background: var(--success-bg); border-color: rgba(22,163,74,0.3); }
.pchip.off { color: var(--text-muted); }
.pchip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.profile-since { margin-top: 10px; font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.profile-since:empty { display: none; }

/* Números */
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pstat {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 14px 6px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border);
}
.pstat-value { font-size: 20px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.pstat-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
#profile-docs-stat { cursor: pointer; }
#profile-docs-stat:active { transform: scale(0.98); }

/* Tarjetas de datos */
.pcard {
  margin-bottom: 14px; padding: 14px 16px 6px;
  border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  scroll-margin-top: 12px;
}
.pcard-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 6px;
}
.pcard-title svg { color: var(--accent-bright); }
.pcard.emergency .pcard-title svg { color: #ef4444; }
.pline {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--border);
}
.pcard-title + .pline { border-top: none; }
.pline.compact { padding: 9px 0; }
.pline-icon { color: var(--text-muted); flex-shrink: 0; }
.pline-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pline-text.row { flex-direction: row; align-items: center; justify-content: space-between; }
.pline-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pline-text.row .pline-label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text-secondary); }
.pline-value { font-size: 14px; font-weight: 600; color: var(--text-primary); overflow-wrap: anywhere; }
.pline-sub { font-size: 12px; color: var(--text-secondary); }
.pline-sub:empty { display: none; }
.pline-ok { color: #22c55e; font-weight: 700; }
.pline-muted { color: var(--text-muted); font-weight: 600; font-size: 12px; }
.pline-action {
  padding: 6px 14px; border: none; border-radius: var(--radius-full);
  background: var(--info); color: #fff; font-size: 12px; font-weight: 700;
}
.pcall {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--success-bg); color: #22c55e; border: 1px solid rgba(22,163,74,0.3);
}
.pcall:active { transform: scale(0.95); }

/* Mis documentos */
.pdocs { padding-bottom: 8px; }
.pdocs-group {
  margin: 12px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
}
.pdocs-empty { font-size: 13px; color: var(--text-secondary); padding: 10px 0 12px; line-height: 1.5; }
.pdocs-note { font-size: 12px; color: var(--text-muted); margin: 6px 0; }
.pdocs-alert {
  margin: 6px 0 4px; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--warning-bg); border: 1px solid rgba(217,119,6,0.35);
  color: var(--accent-bright); font-size: 12px; font-weight: 600; line-height: 1.4;
}
.pdoc { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.pdocs-group + .pdoc { border-top: none; }
.pdoc.waiting { opacity: 0.6; }
.pdoc-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); color: var(--text-secondary);
}
.pdoc-icon.pdf { background: rgba(220,38,38,0.12); color: #f87171; }
.pdoc-icon.image { background: var(--info-bg); color: #93c5fd; }
.pdoc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pdoc-title { font-size: 14px; font-weight: 600; color: var(--text-primary); overflow-wrap: anywhere; }
.pdoc-sub { font-size: 11px; color: var(--text-muted); }
.pdoc-exp { font-size: 11px; font-weight: 700; }
.pdoc-exp.ok { color: #22c55e; }
.pdoc-exp.soon { color: var(--accent-bright); }
.pdoc-exp.expired { color: #ef4444; }
.pdoc-actions { display: flex; gap: 6px; flex-shrink: 0; }
.pdoc-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border);
}
.pdoc-btn:active { transform: scale(0.95); background: var(--accent-glow); }
.pdoc-btn:disabled { opacity: 0.35; }

.readonly-lock { color: var(--text-muted); opacity: 0.5; flex-shrink: 0; }
.status-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700;
}
.status-chip.active { background: var(--success-bg); color: var(--success); }
.status-chip.inactive { background: var(--danger-bg); color: var(--danger); }

/* Logout button */
.btn-logout {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 14px;
  background: var(--danger-bg);
  border: 1px solid rgba(220,38,38, 0.2);
  border-radius: var(--radius-lg);
  color: var(--danger);
  font-size: 14px; font-weight: 700;
  transition: var(--transition);
  margin-bottom: 80px;
}
.btn-logout:active { background: rgba(220,38,38, 0.2); }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  top: calc(16px + var(--safe-top));
  left: 50%; transform: translateX(-50%) translateY(-120%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transition: transform 0.35s var(--ease);
  white-space: nowrap;
  max-width: 90%;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(22,163,74,0.3); color: var(--success); }
.toast.error { border-color: rgba(220,38,38,0.3); color: var(--danger); }
.toast.warning { border-color: rgba(217,119,6,0.3); color: var(--warning); }

/* ============ FIELD REPORT ============ */
.report-form-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px;
}
.report-form-title {
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.report-photo-preview {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  margin-bottom: 12px; border: 1px solid var(--border);
}
.report-photo-preview img {
  width: 100%; height: 200px; object-fit: cover; display: block;
}
.report-remove-photo {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(0,0,0,0.7); color: white;
  border: none; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.report-photo-actions {
  display: flex; gap: 10px; margin-bottom: 12px;
}
.btn-report-action {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
}
.btn-report-action:active {
  background: var(--accent-glow); border-color: var(--accent);
  transform: scale(0.97);
}
.report-note-input {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary); padding: 12px;
  font-size: 14px; font-family: inherit; resize: vertical; min-height: 70px;
  margin-bottom: 12px; box-sizing: border-box;
}
.report-note-input:focus { outline: none; border-color: var(--border-focus); }
.btn-submit-report {
  width: 100%; padding: 14px; background: var(--gradient-accent);
  border: none; border-radius: var(--radius-md); color: #000;
  font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s ease;
}
.btn-submit-report:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-submit-report:not(:disabled):active { transform: scale(0.97); }
.report-history { margin-bottom: 100px; }
.report-history-title {
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.report-list { display: flex; flex-direction: column; gap: 10px; }
.report-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.report-item-photo img {
  width: 100%; height: 160px; object-fit: cover; display: block;
  border-bottom: 1px solid var(--border);
}
.report-item-body { padding: 12px; }
.report-item-note { font-size: 13px; color: var(--text-primary); line-height: 1.5; margin-bottom: 8px; }
.report-item-meta { display: flex; align-items: center; justify-content: space-between; }
.report-item-time { font-size: 11px; color: var(--text-muted); }
.report-status-badge {
  padding: 2px 8px; border-radius: 99px; font-size: 10px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.report-status-badge.pending { background: rgba(245,158,11,0.15); color: #f59e0b; }
.report-status-badge.reviewed { background: rgba(34,197,94,0.15); color: #22c55e; }
.report-status-badge.archived { background: rgba(148,163,184,0.15); color: #94a3b8; }

/* ============ PROFILE EDIT ============ */
.btn-edit-profile {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: var(--accent-glow);
  border: 1px solid rgba(245,158,11,0.3); border-radius: var(--radius-full);
  color: var(--accent-bright); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
}
.btn-edit-profile:active { background: var(--accent-soft); transform: scale(0.95); }
.screen-header { display: flex; align-items: center; justify-content: space-between; }
.profile-edit-form { padding: 0 4px; }
.edit-field { margin-bottom: 14px; }
.edit-field label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 6px;
}
.edit-input {
  width: 100%; padding: 10px 12px; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 14px; font-family: inherit;
  box-sizing: border-box; transition: border-color 0.2s ease;
  -webkit-appearance: none;
}
.edit-input:focus { outline: none; border-color: var(--border-focus); }
select.edit-input { cursor: pointer; }
.edit-row { display: flex; gap: 10px; }
.edit-section-title {
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  margin: 20px 0 12px; display: flex; align-items: center; gap: 8px;
}
.edit-actions { display: flex; gap: 10px; margin-top: 20px; margin-bottom: 20px; }
.btn-cancel-edit {
  flex: 1; padding: 12px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text-secondary); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
}
.btn-cancel-edit:active { background: var(--bg-card-hover); }
.btn-save-profile {
  flex: 1; padding: 12px; background: var(--gradient-accent);
  border: none; border-radius: var(--radius-md); color: #000;
  font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s ease;
}
.btn-save-profile:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-save-profile:not(:disabled):active { transform: scale(0.97); }
.spinner-small {
  width: 16px; height: 16px; border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000; border-radius: 50%;
  animation: spin 0.6s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ GEOFENCE ============ */
.geofence-status {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 14px; margin-top: 10px;
}
.geofence-distance-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
}
.geofence-badge {
  padding: 3px 10px; border-radius: 99px; font-size: 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.geofence-badge.inside { background: rgba(22,163,74,0.15); color: #22c55e; }
.geofence-badge.near { background: rgba(245,158,11,0.15); color: #f59e0b; }
.geofence-badge.outside { background: rgba(220,38,38,0.15); color: #ef4444; }
.geofence-badge.auto_exit { background: rgba(220,38,38,0.25); color: #ef4444; }
.geofence-warning {
  background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.3);
  border-radius: var(--radius-md); padding: 10px 14px; margin-top: 8px;
  font-size: 12px; font-weight: 600; color: #ef4444; text-align: center;
}

.break-alarm-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin-top: 10px;
  background: rgba(220,38,38,0.15); border: 1px solid rgba(220,38,38,0.4);
  border-radius: var(--radius-md); color: #ef4444;
  font-size: 13px; font-weight: 700;
  animation: alarmPulse 1s ease-in-out infinite alternate;
}
.break-alarm-banner.soft {
  background: var(--warning-bg); border-color: rgba(217,119,6,0.35); color: var(--accent-bright);
  animation: none;
}
.break-alarm-banner .alarm-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.break-alarm-banner .alarm-text span { font-weight: 500; font-size: 12px; opacity: 0.9; }
.break-alarm-banner .alarm-close {
  background: none; border: none; color: inherit; font-size: 16px; padding: 4px 6px; cursor: pointer;
}
@keyframes alarmPulse {
  0% { background: rgba(220,38,38,0.1); }
  100% { background: rgba(220,38,38,0.25); }
}

/* ============ MY CONTROL (EARNINGS) ============ */
.earnings-period-tabs {
  display: flex; gap: 6px; margin-bottom: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 4px;
}
.earnings-period-tab {
  flex: 1; padding: 8px; background: transparent; border: none;
  border-radius: var(--radius-md); color: var(--text-muted);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease; text-align: center;
}
.earnings-period-tab.active {
  background: var(--gradient-accent); color: #000;
}
.earnings-period-tab:not(.active):active {
  background: var(--bg-elevated);
}
.earnings-hero {
  text-align: center; padding: 24px 16px; margin-bottom: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-image: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, rgba(217,119,6,0.04) 100%);
}
.earnings-hero-amount {
  font-size: 42px; font-weight: 900; color: var(--accent-bright);
  line-height: 1; margin-bottom: 6px;
  text-shadow: 0 0 30px rgba(245,158,11,0.2);
}
.earnings-hero-label {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.earnings-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.earnings-stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 12px; text-align: center;
}
.earnings-stat-value {
  font-size: 22px; font-weight: 800; color: var(--text-primary); line-height: 1.2;
}
.earnings-stat-label {
  font-size: 10px; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px;
}
.earnings-progress-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px; margin-bottom: 16px;
}
.earnings-progress-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.earnings-progress-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.earnings-progress-value { font-size: 12px; font-weight: 700; color: var(--accent-bright); }
.earnings-progress-bar {
  height: 8px; background: var(--bg-elevated); border-radius: 99px; overflow: hidden;
}
.earnings-progress-fill {
  height: 100%; background: var(--gradient-accent); border-radius: 99px;
  transition: width 0.5s ease;
}
.earnings-daily-title {
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.earnings-daily-list {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 100px;
}
.earnings-daily-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 14px;
}
.earnings-daily-day {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
}
.earnings-daily-info {
  display: flex; gap: 12px; align-items: center;
}
.earnings-daily-hours {
  font-size: 12px; color: var(--text-secondary); font-weight: 500;
}
.earnings-daily-pay {
  font-size: 13px; font-weight: 700; color: var(--accent-bright);
}
.earnings-loading {
  text-align: center; padding: 40px; color: var(--text-muted);
  font-size: 13px; display: flex; align-items: center;
  justify-content: center; gap: 8px;
}

/* ============ UTILITIES ============ */
.hidden { display: none !important; }

/* ============ GPS PERMISSION NOTICE CARD ============ */
.gps-permission-card {
  background: rgba(245, 158, 11, 0.06);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gps-permission-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-bright);
}
.gps-permission-card p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}
.clock-btn--disabled {
  opacity: 0.35;
  filter: grayscale(1);
  cursor: not-allowed;
}
.clock-btn--disabled .clock-btn-pulse {
  display: none !important;
}

/* ============ RESPONSIVE ============ */
@media (min-width: 480px) {
  .screen { max-width: 420px; margin: 0 auto; }
  .bottom-nav { max-width: 420px; left: 50%; transform: translateX(-50%); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .clock-btn { width: 180px; height: 180px; }
  .current-time { font-size: 64px; }
}

/* Tablet vertical: más ancho y botones más grandes para usar con guantes */
@media (min-width: 768px) {
  .screen { max-width: 640px; }
  .bottom-nav { max-width: 640px; }
  .clock-btn { width: 220px; height: 220px; }
  .current-time { font-size: 76px; }
  .pin-pad { max-width: 360px; }
  .pin-key { width: 100px; height: 76px; font-size: 28px; }
  .wo-select { font-size: 16px; padding-top: 14px; padding-bottom: 14px; }
}

/* Tablet horizontal / pantallas grandes */
@media (min-width: 1024px) {
  .screen { max-width: 760px; }
  .bottom-nav { max-width: 760px; }
}

/* ============ OVERTIME ============ */
.ot-banner {
  margin-top: 10px; padding: 12px 14px;
  border-radius: var(--radius-md); font-size: 12px; font-weight: 600;
}
.ot-banner.info   { background: var(--accent-soft); border: 1px solid rgba(245,158,11,0.25); color: var(--accent-bright); }
.ot-banner.ok     { background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.25); color: #22c55e; }
.ot-banner.warn   { background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.35); color: #f59e0b; }
.ot-banner.danger { background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.4); color: #ef4444; }
.ot-banner-text { line-height: 1.4; }
.ot-banner-note { margin-top: 6px; font-weight: 500; opacity: 0.8; }
.ot-reason {
  width: 100%; margin-top: 10px; padding: 10px 12px; resize: none;
  background: var(--bg-card); color: var(--text-primary, #e5e7eb);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font: inherit; font-weight: 500; font-size: 14px;
}
.ot-reason:focus { outline: none; border-color: var(--border-focus); }
.ot-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.ot-btn {
  margin-top: 10px; min-height: 40px; padding: 0 16px;
  border: none; border-radius: var(--radius-md);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
}
.ot-actions .ot-btn { margin-top: 0; }
.ot-btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text-secondary, #9ca3af); }
.ot-btn:disabled { opacity: 0.5; }
.ot-btn:not(:disabled):active { transform: scale(0.97); }


/* ============ SELFIE ============ */
.profile-photo-status { margin-top: 10px; font-size: 12px; font-weight: 600; }
.profile-photo-status.ok { color: #22c55e; }
.profile-photo-status.todo { color: #f59e0b; }
.has-photo { background-size: cover; background-position: center; color: transparent !important; }
.selfie-sheet {
  position: fixed; inset: 0; z-index: 1000;
  align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,0.6); padding: 16px;
}
.selfie-card {
  width: 100%; max-width: 420px; padding: 22px 20px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
@media (min-width: 600px) { .selfie-sheet { align-items: center; } }
.selfie-title { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.selfie-text { margin-top: 6px; font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.selfie-placeholder, .selfie-preview {
  width: 140px; height: 140px; margin: 18px auto; border-radius: 50%;
  border: 3px solid var(--border-focus);
}
.selfie-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-bright); font-size: 40px; font-weight: 800;
}
.selfie-preview { object-fit: cover; display: block; }
.selfie-actions { display: flex; gap: 10px; }
.selfie-btn {
  flex: 1; min-height: 48px; border: none; border-radius: var(--radius-md);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
}
.selfie-btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.selfie-btn:disabled { opacity: 0.5; }
.selfie-btn:not(:disabled):active { transform: scale(0.97); }

/* ============ DESCANSOS Y LONCHE ============ */
.breaks-card { margin-bottom: 16px; }
.break-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.break-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 12px 14px; min-height: 64px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text-secondary); text-align: left; transition: var(--transition);
}
.break-btn.ready { border-color: rgba(22,163,74,0.45); background: var(--success-bg); color: var(--text-primary); }
.break-btn.lunch.ready { border-color: rgba(245,158,11,0.5); background: var(--warning-bg); }
.break-btn:disabled { opacity: 0.55; }
.break-btn:not(:disabled):active { transform: scale(0.98); }
.break-btn-title { font-size: 15px; font-weight: 700; }
.break-btn-sub { font-size: 11px; font-weight: 500; color: var(--text-secondary); }
.break-chips { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.break-chip {
  font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: var(--radius-full);
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
}
.break-chip em { font-style: normal; font-weight: 500; }
.break-chip.taken { color: #22c55e; border-color: rgba(22,163,74,0.3); }
.break-chip.open, .break-chip.last { color: var(--accent-bright); border-color: rgba(245,158,11,0.4); }
.break-chip.missed { color: #ef4444; border-color: rgba(220,38,38,0.25); }

.break-live {
  text-align: center; padding: 16px; border-radius: var(--radius-md);
  background: var(--warning-bg); border: 1px solid rgba(217,119,6,0.35);
}
.break-live.over { background: var(--danger-bg); border-color: rgba(220,38,38,0.45); animation: alarmPulse 1s ease-in-out infinite alternate; }
.break-live-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-bright); }
.break-live.over .break-live-label, .break-live.over .break-live-timer { color: #ef4444; }
.break-live-timer { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-primary); line-height: 1.1; margin: 4px 0; }
.break-live-sub { font-size: 12px; color: var(--text-secondary); }
.break-end-btn {
  width: 100%; margin-top: 10px; padding: 14px; border: none; border-radius: var(--radius-md);
  background: var(--gradient-accent); color: #111; font-size: 15px; font-weight: 800;
}
.break-end-btn:active { transform: scale(0.99); }

.alerts-card {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--info-bg); border: 1px solid rgba(37,99,235,0.3); color: #93c5fd;
}
.alerts-text { flex: 1; font-size: 12px; line-height: 1.4; }
.alerts-btn {
  flex-shrink: 0; padding: 8px 14px; border: none; border-radius: var(--radius-full);
  background: var(--info); color: #fff; font-size: 13px; font-weight: 700;
}

/* ============ MIS ÓRDENES DE TRABAJO ============ */
.wo-selector-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.wo-selector-head .wo-selector-label { margin-bottom: 0; }
.wo-refresh {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--radius-full);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--accent-bright); font-size: 12px; font-weight: 700;
}
.wo-refresh:active { transform: scale(0.96); }
.wo-refresh.spinning svg { animation: woSpin 0.8s linear infinite; }
@keyframes woSpin { to { transform: rotate(360deg); } }
.wo-hint { margin-top: 6px; font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.wo-hint:empty { display: none; }
.wo-hint.warn { color: var(--accent-bright); font-weight: 600; }
.wo-find-link {
  margin-top: 6px; padding: 4px 0; background: none; border: none;
  color: var(--text-secondary); font-size: 12px; font-weight: 600; text-decoration: underline;
}
.wo-find { margin-top: 8px; padding: 12px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border); }
.wo-find-row { display: flex; gap: 8px; }
.wo-find-input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--bg-input); border: 1px solid var(--border); color: var(--text-primary); font-size: 16px;
}
.wo-find-input:focus { outline: none; border-color: var(--accent); }
.wo-find-btn {
  padding: 0 16px; border: none; border-radius: var(--radius-md);
  background: var(--gradient-accent); color: #111; font-size: 14px; font-weight: 800;
}
.wo-find-result { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.wo-find-result:empty { display: none; }
.wo-find-result.ok { color: #22c55e; font-weight: 600; }
.wo-find-result.warn { color: var(--accent-bright); font-weight: 600; }
.wo-find-result.bad { color: #ef4444; font-weight: 600; }
