/* Mobile CSS — phone shell, app chrome, screen styles for blankcollar.ai mobile. */

.m-shell {
  width: 390px;
  height: 844px;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
  border-radius: 47px;
  box-shadow:
    0 0 0 12px #1A1A1F,
    0 0 0 13px #2A2A30,
    0 40px 100px -20px rgba(0,0,0,0.6);
}

/* Status bar */
.m-statusbar {
  height: 44px;
  padding: 14px 24px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
}
.m-time { letter-spacing: -0.01em; }
.m-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #000;
  border-radius: 999px;
}
.m-statusicons {
  display: flex; gap: 6px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-family: var(--font-mono);
}
.m-batt {
  width: 22px; height: 11px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  position: relative;
  display: inline-block;
}
.m-batt::after {
  content: ""; position: absolute;
  inset: 1.5px;
  background: var(--ink);
  border-radius: 1px;
}
.m-batt::before {
  content: ""; position: absolute;
  right: -3px; top: 3px;
  width: 2px; height: 5px;
  background: var(--ink);
  border-radius: 0 1px 1px 0;
}

/* Top bar */
.m-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  flex-shrink: 0;
}
.m-topleft {
  display: flex; align-items: center; gap: 12px;
}
.m-logo {
  height: 30px; width: auto; display: block;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
}
.m-org { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.m-meta {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 1px;
}
.m-iconbtn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
}
.m-iconbtn::after {
  content: "";
  position: absolute;
  top: 8px; right: 9px;
  width: 6px; height: 6px;
  background: var(--warn);
  border-radius: 50%;
  border: 1.5px solid var(--bg);
}

/* Page area */
.m-page {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 100px;
}
.m-page::-webkit-scrollbar { width: 0; }

/* Hero */
.m-hero {
  padding: 24px 20px 16px;
}
.m-hello {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 10px;
  margin-bottom: 10px;
}
.m-helloSub {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 320px;
}

/* Briefing card */
.m-briefing {
  margin: 0 20px 24px;
  padding: 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Section */
.m-section {
  padding: 16px 20px 8px;
}
.m-section-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 12px;
}
.m-section-head > span:first-child { color: var(--ink-2); }
.m-link {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
}

/* Stats grid */
.m-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.m-stat {
  background: var(--bg);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Card list */
.m-card-list {
  display: flex; flex-direction: column;
  gap: 2px;
}
.m-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
  width: 100%;
  text-align: left;
}
.m-card:last-child { border-bottom: 0; }
.m-card-body { flex: 1; min-width: 0; }
.m-card-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-card-sub {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Feed */
.m-feed { display: flex; flex-direction: column; }
.m-feed-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.m-feed-row:last-child { border-bottom: 0; }
.m-feed-text {
  font-size: 13px;
  line-height: 1.4;
}

/* Decide cards */
.m-decide-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 10px;
  position: relative;
}
.m-urgent-pip {
  color: var(--warn);
  font-size: 8px;
}
.m-actbtn {
  flex: 1;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
}
.m-actbtn.primary {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

/* CTA button */
.m-cta {
  width: 100%;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 0 14px;
}
.m-cta.primary {
  background: var(--pink); color: #fff; border-color: var(--pink);
}

/* Segmented */
.m-segwrap {
  display: flex; gap: 6px;
  padding: 4px 20px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.m-segwrap::-webkit-scrollbar { display: none; }
.m-seg {
  flex-shrink: 0;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.m-seg .num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}
.m-seg.on {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}
.m-seg.on .num { color: #fff; opacity: 0.7; }
.m-seg.warn .num { color: var(--neg); }

/* Board card */
.m-board-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
}
.m-blocker {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: rgba(255,67,24,0.08);
  border: 1px solid rgba(255,67,24,0.28);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--ember);
  margin-bottom: 10px;
}

/* Department label */
.m-dept {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.m-dept .num { color: var(--ink-2); }

/* Search */
.m-search {
  margin: 0 20px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.m-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
}
.m-search input::placeholder { color: var(--muted); }
.m-mic-inline {
  width: 28px; height: 28px;
  border-radius: 0;
  background: var(--pink);
  color: #fff;
  border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Suggestions */
.m-suggestions { display: flex; flex-direction: column; gap: 4px; }
.m-suggest {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

/* Tab bar */
.m-tabbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 84px;
  padding: 8px 8px 28px;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  z-index: 10;
}
html[data-theme="light"] .m-tabbar {
  background: rgba(244,242,236,0.9);
}
.m-tab {
  flex: 1;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: var(--muted);
  padding: 6px 4px;
}
.m-tab.on { color: var(--ink); }
.m-tab-ico-wrap { position: relative; }
.m-tab-label {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.m-badge {
  position: absolute;
  top: -3px; right: -7px;
  min-width: 14px; height: 14px;
  padding: 0 4px;
  background: var(--warn);
  color: #000;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bg);
}

/* Home indicator */
.m-homeind {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 134px; height: 5px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.9;
  z-index: 11;
}

/* FAB */
.m-fab {
  position: absolute;
  bottom: 100px; right: 20px;
  width: 54px; height: 54px;
  border-radius: 0;
  background: var(--pink);
  color: #fff;
  border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
  z-index: 9;
}

/* Sheet */
.m-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 30;
  display: flex;
  align-items: flex-end;
  border-radius: 47px;
  overflow: hidden;
}
.m-sheet {
  width: 100%;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  max-height: 80%;
  overflow-y: auto;
  animation: sheet-up 0.25s ease-out;
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.m-sheet-handle {
  width: 40px; height: 4px;
  background: var(--line-2);
  border-radius: 999px;
  margin: 8px auto 0;
}
.m-sheet-content { padding: 16px 20px 32px; }

/* Voice orb */
.m-voice-orb {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  margin: 24px auto 20px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--ink);
}
.m-voice-orb-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  opacity: 0.3;
  animation: orb-pulse 2s ease-out infinite;
}
@keyframes orb-pulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0; }
}
.m-voice-routing {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Surface mode toggle (host) */
.surface-toggle {
  position: fixed;
  bottom: 16px; left: calc(var(--side-w) + 20px);
  z-index: 50;
  display: inline-flex;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 0;
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}
.surface-toggle button {
  padding: 7px 14px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  border-radius: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.surface-toggle button.on {
  background: var(--pink);
  color: #fff;
}

/* Mobile mode page chrome */
.mobile-stage {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #0E0E10 0%, #1A1A1E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 40px 20px;
}
html[data-theme="light"] .mobile-stage {
  background: linear-gradient(160deg, #E8E5DC 0%, #C9C5B8 100%);
}
