/* ==========================================================================
   UNIXGO RESOURCE PRINTING & DESIGN - Jadual Bertugas Kedai
   Ultra-Clean, Responsive & Phone-Friendly Design
   ========================================================================== */

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Primary & Palette */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #2563eb;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --primary: #1e40af;       /* Deep navy blue Unixgo */
  --primary-hover: #1e3a8a;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --amber-rest: #b45309;
  --amber-rest-bg: #fffbeb;
  --amber-rest-border: #fde68a;
  
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-light: #fef2f2;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-modal: 0 20px 30px -10px rgba(15, 23, 42, 0.25);
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 12px;
  box-sizing: border-box;
}

/* Header */
.header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}

.icon-badge {
  font-size: 24px;
  background: #f0fdf4;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid #bbf7d0;
  flex-shrink: 0;
}

.header h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #64748b;
  transition: var(--transition);
}

.sync-status.online {
  background: #dcfce7;
  color: #15803d;
}

.sync-status.offline {
  background: #fef3c7;
  color: #b45309;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-icon-only {
  padding: 8px 10px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
}

.btn-danger {
  background-color: var(--danger-light);
  color: var(--danger);
  border-color: #fecaca;
}

.btn-danger:hover {
  background-color: var(--danger);
  color: #ffffff;
}

.btn-text-danger {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-text-danger:hover {
  background-color: var(--danger-light);
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.8rem;
}

.btn-link:hover {
  color: var(--danger);
}

.rotating {
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Operating Hours Banner */
.hours-banner {
  margin-bottom: 12px;
}

.hours-summary-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}

.banner-top-row {
  margin-bottom: 6px;
}

.banner-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px 12px;
}

.banner-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banner-day-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.banner-day-desc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.banner-time {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.banner-time.highlight-halfday {
  color: #b45309;
  background: #fef3c7;
}

.banner-time.highlight-open {
  color: #1e40af;
  background: #dbeafe;
}

.banner-time.highlight-closed {
  color: #dc2626;
  background: #fee2e2;
}

.rest-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Days Scroll Bar (Ahad - Sabtu) */
.days-nav {
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

.days-nav::-webkit-scrollbar {
  display: none;
}

.days-scroll {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
  width: max-content;
  min-width: 100%;
}

.day-tab {
  flex: 0 0 78px;
  padding: 8px 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  text-align: center;
}

.day-tab:hover {
  background: var(--bg-card-hover);
  border-color: #cbd5e1;
}

.day-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(30, 64, 175, 0.25);
  transform: translateY(-2px);
}

.day-tab .tab-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.day-tab .tab-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

.day-tab .tab-badge.badge-halfday {
  background: #fef3c7;
  color: #b45309;
}

.day-tab .tab-badge.badge-open {
  background: #dbeafe;
  color: #1e40af;
}

.day-tab .tab-badge.badge-closed {
  background: #fee2e2;
  color: #dc2626;
}

.day-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.day-tab .tab-count {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.day-tab.active .tab-count {
  color: rgba(255, 255, 255, 0.9);
}

/* Day View Section */
.day-view-section {
  flex: 1;
}

.day-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 2px;
}

.day-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.status-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.status-pill.halfday {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-pill.open {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.status-pill.closed {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.day-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Slots List */
.slots-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.slot-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.slot-card.filled {
  border-left-width: 6px;
  background: #ffffff;
}

.slot-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.slot-time-pill {
  min-width: 130px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.slot-time-pill .time-icon {
  font-size: 0.85rem;
  opacity: 0.7;
}

.slot-person-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.person-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.person-details {
  min-width: 0;
  overflow: hidden;
}

.person-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.person-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empty Slot */
.slot-card.empty {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.75);
}

.slot-card.empty:hover {
  background: #ffffff;
  border-color: var(--primary);
}

.empty-placeholder {
  color: var(--text-subtle);
  font-size: 0.8rem;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-add-person {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.slot-card.empty:hover .btn-add-person {
  background: var(--primary);
  color: #ffffff;
}

.slot-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.action-icon-btn {
  background: none;
  border: none;
  color: var(--text-subtle);
  padding: 5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.action-icon-btn:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
}

/* Rest Slot Card Styling */
.slot-card.rest-card {
  background: var(--amber-rest-bg);
  border: 1px dashed var(--amber-rest-border);
  border-left: 6px solid var(--amber-rest);
  cursor: default;
}

.slot-card.rest-card:hover {
  box-shadow: none;
  border-color: var(--amber-rest-border);
}

.rest-time-pill {
  min-width: 130px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber-rest);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.rest-card-content {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rest-badge-pill {
  font-size: 0.7rem;
  font-weight: 800;
  background: #fde68a;
  color: #92400e;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.rest-card-note {
  font-size: 0.75rem;
  color: #78350f;
  font-weight: 600;
}

/* Closed State Card (Saturday) */
.closed-card {
  background: #ffffff;
  border: 1px dashed #fca5a5;
  border-radius: var(--radius-lg);
  padding: 30px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
}

.closed-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.closed-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 6px;
}

.closed-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

.closed-subtext {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-style: italic;
}

/* Table / Grid View (Weekly Table) */
.full-grid-view-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-legend {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
}

.legend-dot.active {
  background: #2563eb;
}

.legend-dot.rest {
  background: #f59e0b;
}

.legend-dot.closed {
  background: #cbd5e1;
}

.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
  min-width: 650px; /* Ensures minimum readable columns on small screens without cramped squishing */
}

.schedule-table th, 
.schedule-table td {
  padding: 8px 8px;
  border: 1px solid var(--border-color);
  min-width: 92px;
}

.schedule-table th {
  background: var(--bg-main);
  font-weight: 700;
  color: var(--text-main);
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: center;
}

.th-day-title {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
}

.th-day-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.schedule-table .time-col-header,
.schedule-table .time-cell {
  position: sticky;
  left: 0;
  background: var(--bg-main);
  z-index: 3;
  font-weight: 700;
  min-width: 80px;
  max-width: 90px;
  white-space: nowrap;
  text-align: center;
  font-size: 0.75rem;
  box-shadow: 2px 0 4px rgba(0,0,0,0.04);
}

.grid-slot-cell {
  cursor: pointer;
  transition: var(--transition);
}

.grid-slot-cell:hover {
  background: var(--bg-card-hover);
}

.grid-slot-cell.cell-closed {
  background: repeating-linear-gradient(
    45deg,
    #f8fafc,
    #f8fafc 8px,
    #f1f5f9 8px,
    #f1f5f9 16px
  );
  cursor: not-allowed;
  color: #94a3b8;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.grid-slot-cell.cell-rest {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: default;
}

.grid-slot-badge {
  display: block;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid-slot-empty {
  color: var(--primary);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px;
  border: 1px dashed var(--primary-border);
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}

/* Modal / Bottom Sheet */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  padding: 24px;
  position: relative;
  animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.modal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-main);
}

.required {
  color: var(--danger);
}

.form-group input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: var(--transition);
}

.form-group input[type="text"]:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Color Palette */
.color-palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.color-option {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-option:hover {
  transform: scale(1.08);
}

.color-option.selected {
  border-color: #0f172a;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-option.selected::after {
  content: '✓';
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.custom-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.custom-color-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

input[type="color"] {
  -webkit-appearance: none;
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  padding: 0;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.custom-color-hex {
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--text-muted);
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
  padding: 11px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 16px 10px;
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: auto;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  animation: toastIn 0.25s ease-out;
  white-space: nowrap;
  max-width: 90vw;
  text-overflow: ellipsis;
  overflow: hidden;
}

@keyframes toastIn {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   MOBILE PHONE VIEW SPECIFIC OPTIMIZATIONS (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .app-container {
    padding: 8px 6px;
  }

  .header {
    padding: 10px 12px;
    border-radius: var(--radius-md);
  }

  /* Stack header neatly: top row logo + title, bottom row actions toolbar */
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .icon-badge {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .header h1 {
    font-size: 1.1rem;
    line-height: 1.15;
  }

  .brand-tag {
    font-size: 0.62rem;
  }

  .subtitle {
    font-size: 0.72rem;
    margin-top: 2px;
  }

  /* Full width button toolbar that fits completely without horizontal overflow */
  .header-actions {
    display: flex;
    width: 100%;
    gap: 6px;
    justify-content: space-between;
  }

  .header-actions #refreshBtn {
    flex: 0 0 38px;
    height: 36px;
    padding: 0;
  }

  .header-actions #viewToggleBtn {
    flex: 1;
    height: 36px;
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .header-actions #shareBtn {
    flex: 1;
    height: 36px;
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .hours-summary-card {
    padding: 8px 10px;
  }

  .banner-badge {
    font-size: 0.65rem;
  }

  .banner-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .banner-day-title {
    font-size: 0.75rem;
  }

  .banner-day-desc {
    gap: 4px;
  }

  .banner-time, .rest-tag {
    font-size: 0.72rem;
    padding: 1px 6px;
  }

  /* Days Scroll */
  .days-scroll {
    gap: 6px;
  }

  .day-tab {
    flex: 0 0 72px;
    padding: 7px 3px;
  }

  .day-tab .tab-name {
    font-size: 0.78rem;
  }

  .day-tab .tab-badge {
    font-size: 0.62rem;
  }

  .day-tab .tab-count {
    font-size: 0.65rem;
  }

  /* Slot Card in Phone View */
  .slot-card {
    padding: 10px 10px;
    gap: 8px;
  }

  .slot-time-pill {
    min-width: 105px;
    font-size: 0.75rem;
    gap: 3px;
  }

  .rest-time-pill {
    min-width: 105px;
    font-size: 0.75rem;
    gap: 3px;
  }

  .person-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .person-name {
    font-size: 0.82rem;
  }

  .person-role {
    font-size: 0.68rem;
  }

  .empty-placeholder {
    font-size: 0.74rem;
  }

  .btn-add-person {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .rest-badge-pill {
    font-size: 0.65rem;
    padding: 1px 6px;
  }

  .rest-card-note {
    font-size: 0.7rem;
  }

  /* Bottom sheet behavior on phone */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 18px 16px 24px 16px;
  }
}
