/* Workout Tracker — app.css (tách từ index.html ở v2.1.0) */
.top-bar { display:flex; align-items:center; justify-content:space-between; padding:8px 16px; background:#0a1525; border-bottom:1px solid #1e3050; font-family:"Be Vietnam Pro",sans-serif; }
.top-bar .user-info { font-size:13px; color:#8899bb; }
.top-bar .user-info span { color:#f0f4ff; font-weight:600; }
.top-bar .top-actions { display:flex; gap:8px; }
.top-btn { padding:6px 14px; border-radius:8px; border:1px solid #1e3050; background:transparent; color:#8899bb; font-size:12px; cursor:pointer; text-decoration:none; display:inline-block; transition:all 0.2s; }
.top-btn:hover { border-color:#3b82f6; color:#f0f4ff; }
.top-btn.logout { border-color:rgba(239,68,68,0.4); color:#fca5a5; }
.top-btn.logout:hover { background:rgba(239,68,68,0.1); }
#adminLink { display:none; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f172a; color: #e2e8f0;
  overscroll-behavior: none; user-select: none;
}
body {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  min-height: 100vh;
}
.app { max-width: 600px; margin: 0 auto; padding: 16px; }

.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.header h1 { font-size: 20px; margin: 0; font-weight: 600; }

.month-nav {
  display: flex; align-items: center; justify-content: space-between;
  background: #1e293b; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px;
}
.month-nav button {
  background: #334155; border: none; color: #e2e8f0;
  width: 36px; height: 36px; border-radius: 8px;
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.month-nav button:active { background: #475569; }
.month-nav .month-title { font-size: 16px; font-weight: 600; }

.weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 4px; }
.weekday { text-align: center; font-size: 11px; color: #64748b; padding: 6px 0; font-weight: 600; }
.weekday.sunday { color: #f87171; }

.calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.day {
  aspect-ratio: 1; background: #1e293b; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 4px 2px; cursor: pointer; overflow: hidden; transition: background 0.15s;
  position: relative;
}
.day:active { background: #334155; }
.day.empty { background: transparent; cursor: default; }
.day.today { background: #8a8f95; box-shadow: inset 0 0 0 2px #6b7280; }
.day.has-workout { background: #14532d; }
.day.today.has-workout { background: #14532d; box-shadow: inset 0 0 0 2px #a0b4cc; }
.day.has-pt { background: #1e3a8a; }
.day.today.has-pt { background: #1e3a8a; box-shadow: inset 0 0 0 2px #a0b4cc; }
.day-number { font-size: 13px; font-weight: 600; color: #e2e8f0; margin-bottom: 2px; }
.day.sunday .day-number { color: #f87171; }
.day-icons { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; line-height: 1; }
.ai-badge {
  font-size: 8px; line-height: 1; opacity: 0.9;
  margin-left: 2px; vertical-align: middle;
  display: inline;
}
.day-number-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
}
.day-icons span { font-size: 15px; }

.stats { background: #1e293b; border-radius: 12px; padding: 16px; margin-top: 16px; }
.stats-title { font-size: 13px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.stats-total { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.stats-total span { font-size: 14px; color: #94a3b8; font-weight: 400; }
.stats-breakdown { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stat-pill { background: #334155; padding: 6px 12px; border-radius: 20px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.stat-pill .count { font-weight: 600; color: #fff; }
.stat-pill.empty { color: #64748b; font-style: italic; background: transparent; padding: 6px 0; }

/* === MODALS === */
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes slideUp { from { transform:translateY(100%); } to { transform:translateY(0); } }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  display: none; align-items: flex-end; z-index: 100; animation: fadeIn 0.2s;
}
.modal-backdrop.active { display: flex; }

.modal {
  background: #1e293b; width: 100%; max-width: 600px; margin: 0 auto;
  border-radius: 16px 16px 0 0; padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto; animation: slideUp 0.25s ease-out;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.modal-title { font-size: 18px; font-weight: 600; margin: 0; }
.modal-close {
  background: #334155; border: none; color: #e2e8f0;
  width: 32px; height: 32px; border-radius: 8px; font-size: 18px; cursor: pointer; flex-shrink: 0;
}
.date-subtitle { font-size: 13px; color: #94a3b8; margin-bottom: 16px; }

.section-label { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin: 16px 0 8px 0; }

/* 3-col sport grid */
.sport-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.sport-btn {
  background: #334155; border: 2px solid transparent;
  border-radius: 10px; padding: 10px 4px;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; cursor: pointer; color: #e2e8f0; position: relative;
  transition: all 0.15s; overflow: hidden;
}
.sport-btn:active { transform: scale(0.95); }
.sport-btn.has-data { background: #14532d; border-color: #22c55e; }
.sport-btn.has-data.has-pt { background: #1e3a8a; border-color: #3b82f6; }
.sport-icon { font-size: 26px; }
.sport-name { font-size: 11px; font-weight: 500; text-align: center; }

/* Layout khi có data */
.sport-btn.has-data .sport-inner {
  display: flex; width: 100%; align-items: center;
  gap: 20px; justify-content: center;
}
.sport-btn.has-data .sport-left {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  flex-shrink: 0;
}
.sport-btn.has-data .sport-left .sport-icon { font-size: 18px; }
.sport-btn.has-data .sport-left .sport-name { font-size: 9px; }
.sport-detail {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1px; font-size: 9px; color: #86efac; font-weight: 600;
  line-height: 1.3; min-width: 0;
}
.sport-detail .detail-muscles { color: #7dd3fc; font-size: 9px; }
.treadmill-toggle { display:flex; gap:6px; margin-bottom:12px; }
.treadmill-toggle button {
  flex:1; padding:8px; border-radius:10px; border:1px solid #1e3050;
  background:transparent; color:#8899bb; font-size:13px; font-weight:600;
  cursor:pointer; font-family:"Be Vietnam Pro",sans-serif; transition:all 0.2s;
}
.treadmill-toggle button.active {
  background:#1e3a8a; border-color:#3b82f6; color:#fff;
}
.done-badge {
  position: absolute; top: 4px; right: 4px;
  background: #22c55e; color: #fff;
  font-size: 9px; font-weight: 700; border-radius: 8px; padding: 1px 5px;
}

.note-input {
  width: 100%; background: #0f172a; border: 1px solid #334155;
  border-radius: 10px; padding: 12px; color: #e2e8f0; font-size: 14px;
  font-family: inherit; resize: vertical; min-height: 180px; user-select: text;
}
.note-input:focus { outline: none; border-color: #3b82f6; }

.actions { display: flex; gap: 8px; margin-top: 20px; }
.btn { flex: 1; padding: 14px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-primary { background: #3b82f6; color: #fff; }
.btn-primary:active { background: #2563eb; }
.btn-danger { background: #7f1d1d; color: #fecaca; flex: 0 0 auto; padding: 14px 18px; }
.btn-danger:active { background: #991b1b; }

/* === SUB MODAL === */
.sub-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: none; align-items: flex-end; z-index: 200; animation: fadeIn 0.15s;
}
.sub-backdrop.active { display: flex; }
.sub-modal {
  background: #0f172a; width: 100%; max-width: 600px; margin: 0 auto;
  border-radius: 16px 16px 0 0; padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  max-height: 75vh; overflow-y: auto; animation: slideUp 0.2s ease-out;
}
.sub-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; position: relative; }
.sub-title { font-size: 17px; font-weight: 600; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: #94a3b8; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
.input-row { display: flex; align-items: center; gap: 10px; }
.input-row input {
  flex: 1; background: #1e293b; border: 1px solid #334155;
  border-radius: 10px; padding: 13px 14px; color: #e2e8f0;
  font-size: 16px; font-family: inherit; user-select: text;
}
.input-row input:focus { outline: none; border-color: #3b82f6; }
.unit-text { font-size: 13px; color: #64748b; white-space: nowrap; min-width: 36px; }

.muscle-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.muscle-chip {
  background: #1e293b; border: 2px solid #334155;
  border-radius: 20px; padding: 8px 16px; font-size: 14px;
  cursor: pointer; color: #e2e8f0; transition: all 0.15s;
}
.muscle-chip:active { transform: scale(0.95); }
.muscle-chip.selected { background: #1e3a8a; border-color: #3b82f6; color: #fff; font-weight: 600; }

.sub-actions { display: flex; gap: 8px; margin-top: 20px; }
.btn-ghost {
  flex: 0 0 auto; padding: 13px 18px; border: none; border-radius: 10px;
  background: #334155; color: #e2e8f0; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.btn-ghost:active { background: #475569; }
.btn-sm { padding: 13px; font-size: 14px; }

/* Summary metrics */
.summary-grid {
  display: grid; grid-template-columns: repeat(5,1fr);
  gap: 5px; margin-top: 12px;
}
.summary-card {
  background: #0f172a; border-radius: 10px;
  padding: 8px 4px; text-align: center;
}
.summary-val { font-size: 16px; font-weight: 700; color: #fff; }
.summary-unit { font-size: 9px; color: #64748b; margin-top: 1px; }
.summary-label { font-size: 10px; color: #94a3b8; margin-top: 3px; }
.divider { border: none; border-top: 1px solid #334155; margin: 14px 0 0 0; }

/* Stats header row */
.stats-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.stats-header-row .stats-title { margin-bottom: 0; }

.stats-badges { display: flex; gap: 6px; }
.badge-self, .badge-pt {
  padding: 5px 10px; border-radius: 16px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-self { background: #14532d; color: #86efac; }
.badge-pt   { background: #1e3a8a; color: #93c5fd; }
.badge-self span, .badge-pt span { color: #fff; }

/* Profile Modal */
.profile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 200; padding: 16px; overflow-y: auto;
}
.profile-overlay.open { display: flex; }
.profile-modal {
  background: #0f1929; border: 1px solid #1e3050;
  border-radius: 20px; width: 100%; max-width: 420px;
  padding: 24px; margin: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.profile-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.profile-header h2 { font-size: 16px; font-weight: 700; color: #f0f4ff; }
.profile-info-box {
  background: #0a1220; border: 1px solid #1e3050;
  border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
}
.profile-info-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.profile-info-row:last-child { margin-bottom: 0; }
.profile-info-label { font-size: 12px; color: #8899bb; }
.profile-info-value { font-size: 14px; font-weight: 700; color: #f0f4ff; }
.profile-info-value.big { font-size: 22px; color: #3b82f6; }
.section-title-sm {
  font-size: 11px; font-weight: 700; color: #8899bb;
  text-transform: uppercase; letter-spacing: 1px; margin: 16px 0 10px;
}

/* Bảng chỉ số cơ thể */
.body-table { border-collapse: collapse; }
.body-col-metric { width: 100px; min-width: 100px; position: sticky; left: 0; background: #0f1929; z-index: 2; }
.body-col-hist { width: 72px; min-width: 72px; }
.body-col-new  { width: 90px; min-width: 90px; }
.body-table th {
  font-size: 10px; font-weight: 700; color: #8899bb;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 6px 8px; border-bottom: 1px solid #1e3050;
  text-align: center;
}
.body-table th:first-child { text-align: left; }
.body-table td {
  padding: 7px 8px; border-bottom: 1px solid #0a1525;
  vertical-align: middle;
}
.body-table tr:last-child td { border-bottom: none; }
.body-metric-name { font-size: 13px; color: #c4d4f0; font-weight: 500; }
.body-metric-unit { font-size: 10px; color: #8899bb; }
.body-val-prev {
  font-size: 13px; color: #8899bb; text-align: center;
}
.body-val-prev .val-date { font-size: 10px; color: #4a6080; display: block; margin-bottom: 2px; }
.body-input-wrap { display: flex; align-items: center; gap: 6px; }
.body-input {
  width: 64px; padding: 5px 6px; text-align: center;
  background: #0a1220; border: 1px solid #1e3050;
  border-radius: 8px; color: #f0f4ff;
  font-size: 13px; font-weight: 600;
  font-family: "Be Vietnam Pro", sans-serif; outline: none;
}
.body-input:focus { border-color: #3b82f6; }
.body-date-input {
  width: 100%; padding: 5px 8px;
  background: #0a1220; border: 1px solid #1e3050;
  border-radius: 8px; color: #8899bb;
  font-size: 11px; font-family: "Be Vietnam Pro", sans-serif; outline: none;
  margin-bottom: 8px;
}
.body-date-input:focus { border-color: #3b82f6; }
.btn-commit {
  padding: 6px 10px; background: #10b981; border: none;
  border-radius: 8px; color: #fff; font-size: 16px;
  cursor: pointer; font-weight: 700; flex-shrink: 0;
  transition: opacity 0.2s;
}
.btn-commit:hover { opacity: 0.85; }
.col-new-header { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* AI Gemini Panel */
.ai-panel { margin-top: 12px; }
.ai-btn {
  width: 100%; padding: 11px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid #4285f4; border-radius: 12px;
  color: #e8f0fe; font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.ai-btn:hover { background: #1e3a8a; border-color: #7baaf7; }
.ai-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ai-upload-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.ai-upload-label {
  flex: 1; padding: 8px 12px; border-radius: 10px;
  border: 1px dashed #1e3050; color: #8899bb; font-size: 12px;
  cursor: pointer; text-align: center; transition: all 0.2s;
  background: #0a1220;
}
.ai-upload-label:hover { border-color: #4285f4; color: #e8f0fe; }
.ai-upload-label.has-img { border-color: #10b981; color: #6ee7b7; }
#aiImageInput { display: none; }
.ai-response {
  margin-top: 10px; padding: 14px;
  background: #0a1525; border: 1px solid #1e3a8a;
  border-radius: 12px; font-size: 13px; color: #c4d4f0;
  line-height: 1.7; display: none;
  max-height: 55vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: relative; z-index: 1;
}
.ai-response.show { display: block; }
.ai-response-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #1e3050;
  position: sticky; top: 0; background: #0a1525; z-index: 2;
}
.ai-response-header span { font-size: 12px; color: #4285f4; font-weight: 700; }
.ai-response-header button {
  background: none; border: none; color: #8899bb; cursor: pointer;
  font-size: 16px; padding: 0;
}
.ai-response-body { white-space: pre-wrap; padding-bottom: 8px; }
.ai-loading { text-align: center; padding: 16px; color: #8899bb; font-size: 13px; }

/* AI Response Popup - full screen riêng */
.ai-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 9999; display: none; flex-direction: column;
}
.ai-popup-overlay.open { display: flex; }
.ai-popup-box {
  background: #0a1525; flex: 1; display: flex; flex-direction: column;
  margin: 0; padding: 0; overflow: hidden;
}
.ai-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: #0f1929;
  border-bottom: 1px solid #1e3050; flex-shrink: 0;
}
.ai-popup-header-left { display: flex; flex-direction: column; gap: 2px; }
.ai-popup-title { font-size: 14px; font-weight: 700; color: #4285f4; }
.ai-popup-model { font-size: 10px; color: #8899bb; }
.ai-popup-close {
  background: #1e3050; border: none; color: #f0f4ff;
  width: 36px; height: 36px; border-radius: 10px;
  font-size: 18px; cursor: pointer; flex-shrink: 0;
}
.ai-popup-body {
  flex: 1; overflow-y: auto; padding: 20px 16px;
  -webkit-overflow-scrolling: touch;
  font-size: 14px; color: #c4d4f0; line-height: 1.8;
  white-space: pre-wrap;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

/* PT toggle */
/* AI Gemini Panel */
.ai-panel { margin-top: 12px; }
.ai-btn {
  width: 100%; padding: 11px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid #4285f4; border-radius: 12px;
  color: #e8f0fe; font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.ai-btn:hover { background: #1e3a8a; border-color: #7baaf7; }
.ai-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ai-upload-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.ai-upload-label {
  flex: 1; padding: 8px 12px; border-radius: 10px;
  border: 1px dashed #1e3050; color: #8899bb; font-size: 12px;
  cursor: pointer; text-align: center; transition: all 0.2s;
  background: #0a1220;
}
.ai-upload-label:hover { border-color: #4285f4; color: #e8f0fe; }
.ai-upload-label.has-img { border-color: #10b981; color: #6ee7b7; }
#aiImageInput { display: none; }
.ai-response {
  margin-top: 10px; padding: 14px;
  background: #0a1525; border: 1px solid #1e3a8a;
  border-radius: 12px; font-size: 13px; color: #c4d4f0;
  line-height: 1.7; display: none;
  max-height: 55vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: relative; z-index: 1;
}
.ai-response.show { display: block; }
.ai-response-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #1e3050;
  position: sticky; top: 0; background: #0a1525; z-index: 2;
}
.ai-response-header span { font-size: 12px; color: #4285f4; font-weight: 700; }
.ai-response-header button {
  background: none; border: none; color: #8899bb; cursor: pointer;
  font-size: 16px; padding: 0;
}
.ai-response-body { white-space: pre-wrap; padding-bottom: 8px; }
.ai-loading { text-align: center; padding: 16px; color: #8899bb; font-size: 13px; }

/* AI Response Popup - full screen riêng */
.ai-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 9999; display: none; flex-direction: column;
}
.ai-popup-overlay.open { display: flex; }
.ai-popup-box {
  background: #0a1525; flex: 1; display: flex; flex-direction: column;
  margin: 0; padding: 0; overflow: hidden;
}
.ai-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: #0f1929;
  border-bottom: 1px solid #1e3050; flex-shrink: 0;
}
.ai-popup-header-left { display: flex; flex-direction: column; gap: 2px; }
.ai-popup-title { font-size: 14px; font-weight: 700; color: #4285f4; }
.ai-popup-model { font-size: 10px; color: #8899bb; }
.ai-popup-close {
  background: #1e3050; border: none; color: #f0f4ff;
  width: 36px; height: 36px; border-radius: 10px;
  font-size: 18px; cursor: pointer; flex-shrink: 0;
}
.ai-popup-body {
  flex: 1; overflow-y: auto; padding: 20px 16px;
  -webkit-overflow-scrolling: touch;
  font-size: 14px; color: #c4d4f0; line-height: 1.8;
  white-space: pre-wrap;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

/* PT toggle */
.pt-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #0f172a; border-radius: 10px; padding: 12px 14px; margin-top: 4px;
}
.pt-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.pt-label .pt-icon { font-size: 20px; }
.pt-toggle {
  position: relative; width: 48px; height: 26px; cursor: pointer;
}
.pt-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.pt-slider {
  position: absolute; inset: 0; background: #334155;
  border-radius: 13px; transition: background 0.2s;
}
.pt-slider:before {
  content: ''; position: absolute;
  width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform 0.2s;
}
.pt-toggle input:checked + .pt-slider { background: #3b82f6; }
.pt-toggle input:checked + .pt-slider:before { transform: translateX(22px); }
.pt-badge { font-size: 10px; color: #94a3b8; margin-top: 2px; }
/* v2.0.0 — trạng thái lưu, thông báo, phiên bản */
.note-label-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.save-state { font-size:12px; font-weight:600; margin:16px 0 8px 0; white-space:nowrap; }
.save-state.saving { color:#fbbf24; }
.save-state.saved  { color:#4ade80; }
.save-state.error  { color:#f87171; }
.save-state .retry-link { margin-left:6px; color:#93c5fd; text-decoration:underline; cursor:pointer; background:none; border:none; font:inherit; padding:0; }
.app-toast { position:fixed; bottom:80px; left:50%; transform:translateX(-50%); color:#fff; padding:10px 22px; border-radius:20px; font-size:14px; font-weight:700; z-index:9999; transition:opacity .3s; pointer-events:none; max-width:90vw; text-align:center; }
.app-toast.ok  { background:#10b981; box-shadow:0 4px 20px rgba(16,185,129,.4); }
.app-toast.err { background:#dc2626; box-shadow:0 4px 20px rgba(220,38,38,.4); }
.app-version { margin-top:18px; padding-top:12px; border-top:1px solid #1e3050; font-size:12px; color:#8899bb; }
.app-version summary { cursor:pointer; color:#c4d4f0; font-weight:600; }
.app-version ul { margin:8px 0 0 18px; padding:0; line-height:1.6; }

/* ===== v2.1.0 — bài tập & set, chip gợi ý ===== */
button.muscle-chip { font-family: inherit; }
.ex-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: flex-end; animation: fadeIn .15s; }
.ex-backdrop.active { display: flex; }
.ex-sheet { background: #0f172a; width: 100%; max-width: 600px; margin: 0 auto; border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; animation: slideUp .2s ease-out; box-sizing: border-box; }
.ex-sheet .sub-header { margin-bottom: 12px; }
.ex-groups { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; -webkit-overflow-scrolling: touch; }
.ex-groups .muscle-chip { flex: 0 0 auto; padding: 8px 14px; min-height: 40px; }
.ex-search, .ex-input { width: 100%; box-sizing: border-box; background: #1e293b; border: 1px solid #334155; border-radius: 10px;
  padding: 12px 14px; color: #e2e8f0; font-size: 16px; font-family: inherit; margin-bottom: 10px; }
/* v2.4.2: chữ gợi ý trong ô tìm "Có N bài. Tìm bài tên tiếng Anh hoặc tiếng Việt" — chữ thật của placeholder không xuống dòng được,
   nên vẽ lớp chữ đè (không nhận chạm) và tự ẩn khi ô có chữ (:placeholder-shown). Màn 360px: 2 dòng; màn rộng: 1 dòng. */
.pk-search { position: relative; margin-bottom: 10px; }
.pk-search .ex-search { margin-bottom: 0; }
.pk-ph { position: absolute; left: 15px; right: 12px; top: 1px; bottom: 1px; display: flex; flex-wrap: wrap; align-content: center;
  column-gap: .3em; font-size: 14px; line-height: 17px; color: #8a94a6; pointer-events: none; overflow: hidden; }
.pk-ph2 { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ex-search:not(:placeholder-shown) + .pk-ph { display: none; }
.ex-sec { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; margin: 12px 0 6px; }
.ex-item { display: flex; align-items: center; gap: 8px; background: #1e293b; border: 1px solid #334155; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer; min-height: 48px; box-sizing: border-box; }
.ex-item.done { border-color: #22c55e; background: #12301f; }
/* v2.4.2: số thứ tự bài trong danh sách chọn bài — chữ nhỏ, vừa 2 chữ số, sát mép trái, thẳng hàng với dòng tên bài */
.ex-item.numbered { padding-left: 6px; gap: 6px; }
.ex-no { flex: 0 0 auto; min-width: 2ch; align-self: flex-start; font-size: 11px; line-height: 20px; color: #64748b;
  text-align: right; font-variant-numeric: tabular-nums; }
.ex-item-main { flex: 1; min-width: 0; }
.ex-name { font-size: 15px; font-weight: 600; color: #f0f4ff; }
.ex-vi { font-size: 12px; color: #94a3b8; margin-top: 1px; }
.ex-meta { font-size: 12px; color: #7dd3fc; margin-top: 3px; }
.ex-tag { display: inline-block; font-size: 10px; font-weight: 600; color: #fbbf24; border: 1px solid #854d0e; border-radius: 6px;
  padding: 0 5px; margin-right: 4px; vertical-align: middle; }
.ex-empty { font-size: 13px; color: #94a3b8; padding: 8px 0; }
.ex-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ex-actions .btn-ghost, .ex-actions .btn { min-height: 48px; }
.ex-link { background: none; border: none; color: #93c5fd; font-size: 13px; text-decoration: underline; padding: 12px 0; cursor: pointer; font-family: inherit; }
.ex-mini { background: #334155; border: none; color: #e2e8f0; border-radius: 8px; padding: 8px 12px; font-size: 12px; cursor: pointer; font-family: inherit; }
.ex-form label { display: block; font-size: 12px; color: #94a3b8; margin: 4px 0; }
.ex-form .ex-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #e2e8f0; min-height: 44px; }
.ex-err { color: #f87171; font-size: 13px; min-height: 16px; margin-top: 6px; }
.ex-done-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ex-done { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #12301f; border: 1px solid #22c55e;
  border-radius: 10px; padding: 10px 12px; min-height: 48px; color: #f0f4ff; font-family: inherit; text-align: left; cursor: pointer; }
.ex-done .ex-name { font-size: 14px; }
.ex-done .ex-meta { margin: 0; white-space: nowrap; }
.ex-open-btn { width: 100%; min-height: 48px; }
.grid-sub { font-size: 13px; color: #94a3b8; margin: -6px 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grid-last { font-size: 13px; color: #7dd3fc; background: #0a1220; border: 1px solid #1e3050; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.grid-pre { display: block; color: #fbbf24; font-size: 12px; margin-top: 3px; }
.set-head, .set-row { display: flex; align-items: center; gap: 8px; }
.set-head { font-size: 11px; color: #94a3b8; text-transform: uppercase; margin-bottom: 4px; }
.set-row { margin-bottom: 8px; }
.set-no { width: 22px; text-align: center; color: #94a3b8; font-size: 13px; flex: 0 0 auto; }
.set-h { flex: 1; text-align: center; }
.set-in { flex: 1; min-width: 0; background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 10px; color: #f0f4ff;
  font-size: 18px; font-weight: 600; text-align: center; font-family: inherit; min-height: 48px; box-sizing: border-box; }
.set-in:focus { outline: none; border-color: #3b82f6; }
.set-x { width: 12px; text-align: center; color: #64748b; flex: 0 0 auto; }
.set-del, .set-del-sp { width: 44px; flex: 0 0 auto; }
.set-del { height: 44px; border: none; border-radius: 10px; background: #3f1d1d; color: #fca5a5; font-size: 16px; cursor: pointer; }
.grid-tools { display: flex; gap: 8px; margin-top: 4px; }
.grid-tools .btn-ghost { min-height: 48px; }
.grid-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.val-chips { display: flex; gap: 8px; margin-top: 8px; }
.val-chip { flex: 1; min-height: 44px; background: #1e293b; border: 1px solid #334155; border-radius: 10px; color: #cbd5e1;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
.val-chip.on { background: #1e3a8a; border-color: #3b82f6; color: #fff; }
.ex-sheet.picker { display: flex; flex-direction: column; height: 92vh; overflow: hidden; }
.ex-sheet.picker #pkList { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
.ex-sheet.picker .ex-actions { flex: 0 0 auto; padding-top: 8px; border-top: 1px solid #1e3050; }

/* ===== v2.1.1 — chip gọn, nút ▼▲, tự tổng hợp ngày, số phiên bản, báo bản mới ===== */
.val-chips { gap: 6px; }
.val-chip { min-height: 44px; font-size: 13px; padding: 0 2px; min-width: 0; }   /* chữ nhỏ hơn (Harry góp ý 23/11) */
.val-chips.many .val-chip { font-size: 13px; font-weight: 600; }
.input-row { gap: 6px; }
.input-row input { min-width: 0; }
.step-btn { flex: 0 0 auto; width: 44px; min-height: 48px; padding: 0; border: 1px solid #334155; border-radius: 10px;
  background: #1e293b; color: #93c5fd; font-size: 14px; line-height: 1; cursor: pointer; font-family: inherit;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.step-btn:active { background: #334155; color: #fff; }
.grid-tools .grid-step { width: auto; min-width: 72px; padding: 0 10px; font-size: 14px; color: #e2e8f0; border: none; background: #334155; }
.grid-tools .grid-step:active { background: #475569; }
.grid-hint { font-size: 11px; color: #64748b; margin-top: 6px; }
.set-in.tgt:not(:focus) { border-color: #3b82f6; border-style: dashed; }
.day-sum { background: #0a1220; border: 1px solid #1e3050; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px;
  font-size: 13px; line-height: 1.55; color: #cbd5e1; word-break: break-word; }
.day-sum[hidden] { display: none; }
.day-sum .sum-cap { font-size: 11px; color: #64748b; margin-bottom: 2px; }
.day-sum .sum-line { color: #e2e8f0; font-weight: 600; margin-top: 4px; }
.day-sum .sum-sub { padding-left: 14px; color: #94a3b8; font-size: 12.5px; }
.ex-warn { color: #fbbf24; }
.app-ver { font-size: 11px; font-weight: 500; color: #64748b; margin-left: 4px; vertical-align: middle; letter-spacing: 0; }
.upd-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 10000; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #1e3a8a; color: #fff; font-size: 13px; line-height: 1.4; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top));
  box-shadow: 0 2px 12px rgba(0,0,0,.45); }
.upd-bar button { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border: none; border-radius: 10px; background: #fff; color: #1e3a8a;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }

/* ===== v2.1.2 — ⭐ PR, kéo thả đổi thứ tự ===== */
.pr { color: #fbbf24; font-weight: 700; }
.pr-tag { color: #fbbf24; font-weight: 700; white-space: nowrap; }
.set-no { width: 44px; }
.set-star { position: relative; width: 44px; height: 44px; padding: 0; border: none; background: none; cursor: pointer; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.set-star svg { position: absolute; left: 1px; top: 1px; width: 42px; height: 42px; fill: transparent; stroke: #64748b;
  stroke-width: 1.3; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.set-star span { position: relative; font-size: 13px; font-weight: 700; color: #cbd5e1; padding-top: 3px; }
.set-star.on svg { fill: #fbbf24; stroke: #f59e0b; }
.set-star.on span { color: #3b2603; }
.ex-done-row { display: flex; gap: 6px; align-items: stretch; }
.ex-done-row .ex-done { flex: 1; min-width: 0; flex-wrap: wrap; row-gap: 2px; }
.drag-h { flex: 0 0 36px; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px;
  background: #0f1d33; border: 1px solid #1e3050; color: #64748b; font-size: 18px; cursor: grab; touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.drag-item.dragging { position: relative; z-index: 20; opacity: .96; box-shadow: 0 10px 28px rgba(0,0,0,.55); }
.drag-item.dragging .drag-h { cursor: grabbing; color: #93c5fd; border-color: #3b82f6; }
.sort-list { display: flex; flex-direction: column; gap: 8px; }
.sort-item { display: flex; align-items: center; gap: 10px; background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 4px 12px 4px 4px; }
.sort-item .drag-h { min-height: 44px; }
.pk-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 6px; }
.pk-note { font-size: 11px; color: #64748b; }

/* ===== v2.2.0 — Bảo mật tài khoản (Hồ sơ) ===== */
.sec-box { padding: 12px 14px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sec-row-2 { margin-top: 12px; padding-top: 12px; border-top: 1px solid #1e3050; }
.sec-text { min-width: 0; }
.sec-title { font-size: 14px; font-weight: 700; color: #f0f4ff; }
.sec-sub { font-size: 12px; color: #8899bb; margin-top: 2px; line-height: 1.4; }
.sec-warn-t { color: #fbbf24; }
.sec-btn { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #1e3050; background: #0f1d33;
  color: #93c5fd; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
.sec-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.sec-form[hidden], .sec-codes[hidden] { display: none !important; }
.sec-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #8899bb; }
.sec-form input[type=password], .sec-form input[type=text] { min-height: 48px; padding: 0 12px; background: #0f1929; border: 1px solid #1e3050;
  border-radius: 10px; color: #f0f4ff; font-size: 16px; font-family: inherit; outline: none; }
.sec-form input:focus { border-color: #3b82f6; }
.sec-form .sec-show { flex-direction: row; align-items: center; gap: 8px; min-height: 36px; }
.sec-form .sec-show input { width: 20px; height: 20px; }
.sec-hidden-user { display: none; }
.sec-primary { min-height: 48px; padding: 0 16px; border: none; border-radius: 12px; background: linear-gradient(135deg,#3b82f6,#06b6d4);
  color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sec-primary:disabled { opacity: .6; }
.sec-note { font-size: 11px; color: #64748b; line-height: 1.5; }
.sec-msg { font-size: 13px; line-height: 1.45; }
.sec-msg:empty { display: none; }
.sec-msg.err { color: #fca5a5; }
.sec-msg.ok { color: #6ee7b7; }
.sec-codes { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.sec-warn { font-size: 12px; color: #fde68a; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.35); border-radius: 10px; padding: 8px 10px; line-height: 1.5; }
.sec-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sec-code { background: #0f1929; border: 1px solid #1e3050; border-radius: 10px; padding: 10px 4px; text-align: center; white-space: nowrap;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; letter-spacing: .5px; color: #f0f4ff;
  user-select: all; -webkit-user-select: all; }
.sec-code span { color: #64748b; font-size: 11px; margin-right: 4px; letter-spacing: 0; user-select: none; -webkit-user-select: none; }
.sec-code-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sec-code-actions .sec-primary { grid-column: 1 / -1; }
/* v2.2.2: Đăng nhập gần đây */
.sec-logins { margin-top: 8px; display: flex; flex-direction: column; }
.sec-login { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid #1e3050; font-size: 12px; line-height: 1.45; }
.sec-login:first-child { border-top: none; }
.sec-login-time { flex: 0 0 74px; color: #8899bb; }
.sec-login-main { flex: 1; min-width: 0; color: #f0f4ff; overflow-wrap: anywhere; }
.sec-login-ip { color: #8899bb; }
.sec-login-new { color: #fbbf24; font-weight: 600; }
/* v2.3.0: Xác thực 2 lớp + máy tin cậy */
.sec-btn[hidden], .sec-trusted[hidden] { display: none !important; }
.sec-step { font-size: 13px; color: #cbd5e1; line-height: 1.5; }
.sec-qr { width: 216px; max-width: 100%; align-self: center; background: #fff; border-radius: 12px; padding: 6px; }
.sec-qr svg { display: block; width: 100%; height: auto; }
.sec-qr:empty { display: none; }
.sec-link { font-size: 12px; color: #93c5fd; text-align: center; line-height: 1.45; padding: 6px 4px; overflow-wrap: anywhere; }
.sec-key { display: flex; align-items: center; gap: 8px; background: #0f1929; border: 1px solid #1e3050; border-radius: 10px; padding: 6px 6px 6px 12px; }
.sec-key code { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; font-weight: 700; color: #f0f4ff;
  letter-spacing: .5px; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
#secTotpCode { font-size: 22px; letter-spacing: 6px; text-align: center; font-weight: 800; }
.sec-danger { min-height: 48px; padding: 0 16px; border: 1px solid rgba(239,68,68,.5); border-radius: 12px; background: rgba(239,68,68,.12);
  color: #fca5a5; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sec-danger:disabled { opacity: .6; }
.sec-on { color: #6ee7b7; font-weight: 700; }
.sec-trusted { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.sec-trusted > .sec-btn { align-self: flex-start; margin-top: 2px; }
.sec-trust { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #1e3050; font-size: 12px; line-height: 1.45; }
.sec-trust:first-child { border-top: none; }
.sec-trust-main { flex: 1; min-width: 0; color: #f0f4ff; overflow-wrap: anywhere; }
.sec-trust-meta { color: #8899bb; }
.sec-trust-me { color: #6ee7b7; font-weight: 700; }
.sec-trust .sec-btn { min-height: 40px; padding: 0 10px; font-size: 12px; }
.sec-login-bad .sec-login-main { color: #fca5a5; }
.sec-login-bad .sec-login-new { color: #fca5a5; }

/* ===== v2.3.1 (Harry 27/11): nút 📑 chép ghi chú, dòng ⭐ PR, viền vàng ngày/môn có PR ===== */
.note-tools { display: flex; align-items: center; gap: 8px; }
.note-tools .save-state { margin: 0; }
.copy-note-btn { width: 48px; height: 48px; flex: 0 0 48px; margin: 6px 0 4px; padding: 0; border-radius: 12px;
  border: 1px solid #334155; background: #1e293b; color: #e2e8f0; font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.copy-note-btn:active { transform: scale(0.94); background: #334155; }
.ex-pr { font-size: 12px; color: #fbbf24; font-weight: 700; margin-top: 2px; }
.grid-pr { font-size: 13px; color: #fbbf24; font-weight: 700; margin: -2px 0 8px; }
.day.has-pr { box-shadow: inset 0 0 0 2px #fbbf24; }
.day.today.has-pr { box-shadow: inset 0 0 0 2px #fbbf24, inset 0 0 0 4px #a0b4cc; }
.sport-btn.has-data.has-pr { border-color: #fbbf24; }

/* ===== v2.4.0 (Harry 30/11): hướng tay Búa/Ngửa/Úp từng set; giữ số thứ tự set 2 giây rồi kéo đổi chỗ ===== */
.set-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.set-rows .set-row { margin-bottom: 0; border-radius: 12px; }
.set-head.g, .set-row.g { gap: 6px; }
.set-gh { width: 64px; flex: 0 0 auto; text-align: center; }
.set-grip { width: 64px; flex: 0 0 auto; min-height: 48px; box-sizing: border-box; margin: 0; padding: 0 15px 0 4px;
  border: 1px solid #334155; border-radius: 10px; background-color: #1e293b; color: #f0f4ff; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; text-align: center; text-align-last: center;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: right 10px center, right 5px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.set-grip.empty { color: #64748b; }
.set-grip:focus { outline: none; border-color: #3b82f6; }
.grid-legend { font-size: 11px; color: #94a3b8; line-height: 1.5; margin: -2px 0 8px; }
.grid-legend b { color: #cbd5e1; font-weight: 700; }
.ex-mini.on { background: #1e3a8a; color: #dbeafe; box-shadow: inset 0 0 0 1px #3b82f6; }
.set-star { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* đang giữ: vệt xanh chạy ngang dòng, đầy sau đúng 2 giây (0,25s đầu không hiện để chạm nhanh ⭐ không bị nháy) */
.set-row.holding { background-image: linear-gradient(rgba(59,130,246,.24), rgba(59,130,246,.24)); background-repeat: no-repeat;
  background-size: 0% 100%; animation: setHold 1.75s linear .25s forwards; }
@keyframes setHold { to { background-size: 100% 100%; } }
.set-row.dragging { background: #1e293b; outline: 2px solid #3b82f6; outline-offset: 2px; }
.set-row.dragging .set-star span { color: #93c5fd; }

/* ===== v2.5.0 (Harry chốt 03/12): rep hỗ trợ · tổng kg · 1RM ước tính · ⭐ PR tự động ===== */
.set-row.has-sub { flex-wrap: wrap; row-gap: 6px; }
.set-sub { flex: 0 0 100%; display: flex; align-items: center; gap: 6px; padding-left: 50px; box-sizing: border-box; }
.set-sub .sub-l { font-size: 12px; color: #94a3b8; width: 42px; flex: 0 0 auto; }
.set-sub .sub-v { display: flex; flex-direction: column; font-size: 12px; line-height: 16px; color: #94a3b8; min-width: 0; }
.set-sub .sub-v b { color: #86efac; font-weight: 700; }
.set-sub .sub-v b.bad { color: #fca5a5; }
.set-sub .sub-v .tot { color: #e2e8f0; font-weight: 600; }
.set-ast { width: 64px; flex: 0 0 auto; min-height: 48px; box-sizing: border-box; margin: 0; padding: 0 15px 0 4px;
  border: 1px solid #334155; border-radius: 10px; background-color: #1e293b; color: #f0f4ff; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; text-align: center; text-align-last: center;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: right 10px center, right 5px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.set-ast.empty { color: #64748b; }
.set-ast:focus { outline: none; border-color: #3b82f6; }
.set-sub.ast .set-ast { border-color: #b45309; color: #fcd34d; }   /* set có người hỗ trợ: viền cam */
.set-sub.ast .sub-l { color: #fcd34d; }
.set-star.auto svg { fill: #fbbf24; stroke: #f59e0b; }              /* ⭐ app tự tính: giống ⭐ tay */
.set-star.auto span { color: #3b2603; }
.grid-why { font-size: 12px; color: #fcd34d; line-height: 1.45; margin: -2px 0 8px; }
