:root {
  --shell-bg: #06111b;
  --shell-panel: #0a1d2b;
  --shell-card: #0d2232;
  --shell-line: rgba(109, 190, 231, .24);
  --shell-blue: #2ebdf4;
  --shell-blue-strong: #109af0;
  --shell-text: #edf7fc;
  --shell-muted: #9fb2c1;
  --shell-good: #72e7a5;
  --shell-warn: #ffc34d;
}

body {
  background: radial-gradient(circle at 50% -10%, #123850 0, #071621 35%, #040b12 76%);
}

.app {
  width: min(100%, 820px);
  padding: max(12px, env(safe-area-inset-top)) 14px calc(112px + env(safe-area-inset-bottom));
}

.jarvisTopbarV19 {
  min-height: 76px;
  padding: 4px 2px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jarvisBrandV19 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.jarvisBrandV19 .orb {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-width: 2px;
}

.jarvisBrandTextV19 h1 {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 2rem);
  letter-spacing: .18em;
  line-height: 1;
}

.jarvisBrandTextV19 small {
  display: block;
  margin-top: 7px;
  color: #8fb9d0;
  font-size: .7rem;
  letter-spacing: .23em;
  font-weight: 800;
  white-space: nowrap;
}

.jarvisHeaderActionsV19 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shellStatusV19 {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 7px;
  align-items: center;
  min-width: 88px;
}

.shellStatusV19 > span {
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7b8f9b;
  box-shadow: 0 0 12px rgba(123, 143, 155, .7);
}

.shellStatusV19 > span.live {
  background: #71df73;
  box-shadow: 0 0 13px rgba(113, 223, 115, .8);
}

.shellStatusV19 b {
  font-size: .76rem;
  letter-spacing: .06em;
}

.shellStatusV19 small {
  color: var(--shell-muted);
  font-size: .68rem;
  white-space: nowrap;
}

#topMoreButtonV19 {
  width: 48px;
  height: 48px;
  border: 1px solid var(--shell-line);
  border-radius: 14px;
  background: rgba(7, 24, 36, .88);
  color: #a9c3d3;
  font-size: 1.25rem;
}

#topMoreButtonV19.active {
  border-color: var(--shell-blue);
  color: var(--shell-blue);
}

.hero {
  padding: 18px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 16px;
  border-radius: 20px;
}

.hero .accent,
.hero h2,
.hero .voiceState,
.hero #status,
.hero .heard,
.hero .actionRow,
.hero .wakeHelp {
  grid-column: 1;
}

.hero .accent {
  margin: 0 0 2px;
  font-size: .83rem;
}

.hero h2 {
  font-size: clamp(1.35rem, 5vw, 1.9rem);
}

.hero .voiceState {
  margin: 8px 0 2px;
}

.hero #status {
  margin: 2px 0;
  font-size: .84rem;
  line-height: 1.35;
}

.hero .mic {
  grid-column: 2;
  grid-row: 1 / span 6;
  width: 102px;
  height: 102px;
  margin: 0;
  box-shadow: 0 0 0 7px rgba(54, 200, 255, .04), 0 0 25px rgba(54, 200, 255, .2);
}

.hero .mic span { font-size: 1.55rem; }
.hero .mic b { font-size: .8rem; }
.hero .mic small { display: none; }
.hero .actionRow { justify-content: flex-start; }
.hero .wakeHelp { display: none; }

.privacy {
  position: relative;
  grid-template-columns: auto 1fr auto;
  margin: 12px 0;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(13, 50, 55, .74);
}

.privacy > span { font-size: 1.7rem; }
.privacy > div > b { font-size: .95rem; }
.privacy > div > small { font-size: .78rem; }
.privacy #privacyToggleV19 {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #b8cfdb;
  font-size: 1.8rem;
}

.privacyDetailsV19 {
  grid-column: 1 / -1;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(111, 194, 161, .2);
  color: #a5c8b8;
  font-size: .78rem;
  line-height: 1.45;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}

.metrics article {
  min-height: 108px;
  padding: 13px 5px;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(18, 50, 72, .95), rgba(8, 25, 37, .96));
}

.metrics article span { font-size: 1.35rem; }
.metrics article b { font-size: 1.45rem; }
.metrics article small { font-size: .72rem; }

body:not([data-jarvis-section="home"]) .hero,
body:not([data-jarvis-section="home"]) .privacy,
body:not([data-jarvis-section="home"]) .metrics {
  display: none;
}

body:not([data-jarvis-section="home"]) .jarvisTopbarV19 {
  position: sticky;
  top: 0;
  z-index: 60;
  margin: -12px -14px 10px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: rgba(4, 13, 21, .94);
  border-bottom: 1px solid rgba(99, 180, 222, .16);
  backdrop-filter: blur(18px);
}

#mainNav.bottomNavV19 {
  position: fixed;
  left: 50%;
  right: auto;
  top: auto;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 100;
  width: min(100%, 820px);
  min-height: calc(76px + env(safe-area-inset-bottom));
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  border: 1px solid rgba(101, 187, 229, .3);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: rgba(5, 16, 25, .98);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .45);
  backdrop-filter: blur(18px);
  overflow: visible;
}

#mainNav.bottomNavV19 button {
  min-width: 0;
  min-height: 58px;
  padding: 6px 2px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #93aabc;
}

#mainNav.bottomNavV19 button.active {
  color: var(--shell-blue);
  background: rgba(31, 177, 241, .1);
}

.bottomNavIconV19 {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 900;
}

#mainNav.bottomNavV19 small {
  font-size: .68rem;
  font-weight: 800;
}

.panel {
  margin-top: 0;
  padding: 18px;
  border-radius: 24px;
}

body[data-jarvis-section="photos"] .panel,
body[data-jarvis-tab="work-hub"] .panel,
body[data-jarvis-tab="more-hub"] .panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.shellWorkspaceV19,
.photoWorkspaceV19 {
  display: grid;
  gap: 16px;
}

.shellWorkspaceHeadV19,
.photoWorkspaceHeadV19 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.shellWorkspaceHeadV19 small {
  color: var(--shell-blue);
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 900;
}

.shellWorkspaceHeadV19 h2,
.photoWorkspaceHeadV19 h2 {
  margin: 3px 0 0;
  font-size: clamp(2rem, 8vw, 2.7rem);
}

.shellWorkspaceHeadV19 p,
.photoWorkspaceHeadV19 p {
  margin: 6px 0 0;
  color: var(--shell-muted);
  line-height: 1.4;
}

.shellIconButtonV19 {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 1px solid var(--shell-line);
  border-radius: 16px;
  background: rgba(17, 54, 75, .78);
  color: var(--shell-blue);
  font-size: 1.55rem;
}

.shellStatRowV19 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.shellStatRowV19 article {
  padding: 14px 10px;
  border: 1px solid var(--shell-line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(15, 47, 67, .94), rgba(7, 24, 36, .96));
  text-align: center;
}

.shellStatRowV19 small,
.shellStatRowV19 span {
  display: block;
  color: var(--shell-muted);
  font-size: .7rem;
}

.shellStatRowV19 b {
  display: block;
  margin: 4px 0;
  font-size: 1.5rem;
}

.shellToolGridV19 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shellToolGridV19 > button,
.shellRecentItemV19,
.photoReportLauncherV19 {
  border: 1px solid var(--shell-line);
  border-radius: 19px;
  background: linear-gradient(155deg, rgba(15, 48, 68, .95), rgba(7, 23, 34, .96));
  color: var(--shell-text);
}

.shellToolGridV19 > button {
  min-height: 92px;
  padding: 15px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.shellToolGridV19 > button > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(37, 181, 240, .12);
  color: var(--shell-blue);
  font-size: 1.35rem;
}

.shellToolGridV19 b,
.shellRecentItemV19 b { display: block; }
.shellToolGridV19 small,
.shellRecentItemV19 small { display: block; margin-top: 4px; color: var(--shell-muted); line-height: 1.35; }
.shellToolGridV19 i,
.shellRecentItemV19 i,
.photoReportLauncherV19 i { color: #9fc5d7; font-size: 1.8rem; font-style: normal; }

.shellSectionTitleV19 {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3px;
}

.shellSectionTitleV19 h3 { margin: 0; }
.shellSectionTitleV19 p { margin: 3px 0 0; color: var(--shell-muted); font-size: .8rem; }
.shellSectionTitleV19 button {
  border: 0;
  background: transparent;
  color: var(--shell-blue);
  font-weight: 800;
}

.shellRecentListV19 { display: grid; gap: 9px; }
.shellRecentItemV19 {
  width: 100%;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.shellRecentItemV19 > span { font-size: 1.35rem; }
.shellEmptyV19 {
  padding: 24px;
  border: 1px dashed var(--shell-line);
  border-radius: 18px;
  color: var(--shell-muted);
  text-align: center;
}

.shellPrivacyCardV19,
.shellAboutCardV19 {
  padding: 16px;
  border: 1px solid rgba(96, 221, 153, .24);
  border-radius: 19px;
  background: rgba(15, 67, 51, .25);
}

.shellPrivacyCardV19 {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}
.shellPrivacyCardV19 > span { font-size: 1.7rem; }
.shellPrivacyCardV19 b,
.shellPrivacyCardV19 small { display: block; }
.shellPrivacyCardV19 small { margin-top: 4px; color: #a7cdbb; line-height: 1.4; }
.shellAboutCardV19 { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #cce1eb; }
.shellAboutCardV19 small,
.shellAboutCardV19 > span { display: block; color: var(--shell-muted); font-size: .74rem; }

.shellBackV19 {
  margin: -4px 0 13px;
  padding: 7px 2px;
  border: 0;
  background: transparent;
  color: var(--shell-blue);
  font-weight: 900;
}
.shellBackV19 span { font-size: 1.4rem; vertical-align: -1px; }

.photoWorkspaceHeadV19 p {
  color: var(--shell-good);
  font-size: .82rem;
}

.photoWorkspaceHeadV19 > button {
  border: 1px solid rgba(45, 177, 235, .52);
  border-radius: 13px;
  background: rgba(29, 119, 165, .15);
  color: var(--shell-blue);
  padding: 10px 12px;
  font-weight: 900;
  white-space: nowrap;
}

.photoHelpV19 {
  padding: 14px 16px;
  border: 1px solid var(--shell-line);
  border-radius: 17px;
  background: rgba(11, 34, 49, .85);
}
.photoHelpV19 p { margin: 6px 0 0; color: var(--shell-muted); line-height: 1.45; }

.photoCategoryCardsV19 {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}
.photoCategoryCardsV19::-webkit-scrollbar { display: none; }
.photoCategoryCardV19 {
  min-width: 190px;
  min-height: 95px;
  padding: 14px;
  border: 1px solid var(--shell-line);
  border-radius: 19px;
  background: linear-gradient(155deg, rgba(14, 45, 64, .95), rgba(7, 22, 34, .96));
  color: var(--shell-text);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  text-align: left;
}
.photoCategoryCardV19.active {
  border-color: var(--shell-blue);
  background: linear-gradient(145deg, rgba(13, 93, 144, .88), rgba(7, 45, 72, .96));
  box-shadow: inset 0 0 0 1px rgba(61, 195, 247, .16);
}
.photoCategoryCardV19 > span { font-size: 1.65rem; }
.photoCategoryCardV19 b,
.photoCategoryCardV19 small { display: block; }
.photoCategoryCardV19 small { color: #9db4c4; margin-top: 4px; font-size: .72rem; }
.photoCategoryCardV19 em {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #cbe5f1;
  font-style: normal;
  font-weight: 900;
}

.photoFilterRowV19 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, .52fr);
  gap: 9px;
}
.photoSearchBoxV19,
.photoSelectBoxV19 {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--shell-line);
  border-radius: 17px;
  background: rgba(8, 28, 41, .92);
}
.photoSearchBoxV19 input,
.photoSelectBoxV19 select {
  margin: 0;
  padding: 13px 0;
  border: 0;
  background: transparent;
}
.photoSearchBoxV19 > span,
.photoSelectBoxV19 > span { color: #9eb8c8; font-size: 1.2rem; }

.photoAddPrimaryV19 {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(90deg, var(--shell-blue-strong), #2dbcf2);
  color: #03121c;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(17, 151, 225, .18);
}

.photoReportLauncherV19 {
  width: 100%;
  min-height: 78px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  text-align: left;
}
.photoReportLauncherV19 > span { font-size: 1.55rem; color: #adcee0; }
.photoReportLauncherV19 b,
.photoReportLauncherV19 small { display: block; }
.photoReportLauncherV19 small { margin-top: 4px; color: var(--shell-muted); }

.photoReportDrawerV19 {
  padding: 17px;
  border: 1px solid var(--shell-line);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(12, 39, 56, .98), rgba(6, 21, 32, .98));
}
.photoReportDrawerHeadV19 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.photoReportDrawerHeadV19 small { color: var(--shell-blue); letter-spacing: .12em; font-weight: 900; }
.photoReportDrawerHeadV19 h4 { margin: 4px 0; font-size: 1.25rem; }
.photoReportDrawerHeadV19 p { margin: 0; color: var(--shell-muted); }
.photoReportDrawerHeadV19 button { border: 0; background: transparent; color: #9eb5c3; font-size: 1.8rem; }

.photoListHeaderV19 {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 2px;
}
.photoListHeaderV19 b { font-size: 1.08rem; }
.photoListHeaderV19 small { display: block; color: var(--shell-muted); margin-top: 3px; }
.photoFieldListV19 { display: grid; gap: 11px; }

.photoFieldCardV19 {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  padding: 11px;
  border: 1px solid var(--shell-line);
  border-radius: 21px;
  background: linear-gradient(150deg, rgba(13, 42, 59, .98), rgba(7, 23, 34, .98));
  overflow: hidden;
}

.photoFieldThumbV19 {
  position: relative;
  min-height: 146px;
  border-radius: 16px;
  overflow: hidden;
  background: #06131d;
  display: grid;
  place-items: center;
}
.photoFieldThumbV19 img { width: 100%; height: 100%; object-fit: cover; }
.photoFieldThumbV19 > span { font-size: 2rem; }
.photoFieldThumbV19 > b {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid;
  font-size: .64rem;
  text-transform: uppercase;
  background: rgba(9, 16, 23, .82);
}
.photoFieldThumbV19 > em {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(3, 13, 20, .82);
  color: white;
  font-style: normal;
  font-weight: 900;
}

.photoFieldBodyV19 { min-width: 0; display: grid; align-content: start; }
.photoFieldTitleV19 { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.photoFieldTitleV19 h4 { margin: 2px 0 4px; font-size: 1.08rem; line-height: 1.25; }
.photoFieldTitleV19 p { margin: 0; color: #a6bac8; font-size: .78rem; }
.photoFieldTitleV19 > button {
  width: 36px;
  border: 0;
  background: transparent;
  color: #a7cada;
  font-size: 1.8rem;
}
.photoFieldMetaV19 { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 11px; color: #98adbc; font-size: .75rem; }
.photoFieldActionV19 { margin-top: 11px; color: var(--shell-warn); font-size: .8rem; line-height: 1.4; }
.photoFieldActionsV19 { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.photoFieldActionsV19 button {
  border: 1px solid rgba(85, 165, 205, .25);
  border-radius: 10px;
  background: rgba(13, 52, 73, .64);
  color: #c5e3f1;
  padding: 7px 10px;
  font-size: .7rem;
  font-weight: 800;
}
.photoFieldActionsV19 button:last-child { color: #ffb0be; border-color: rgba(255, 110, 133, .26); }

footer {
  padding-bottom: 4px;
}

@media (max-width: 620px) {
  .app { padding-left: 10px; padding-right: 10px; }
  .jarvisBrandV19 .orb { width: 44px; height: 44px; flex-basis: 44px; }
  .jarvisBrandTextV19 small { letter-spacing: .16em; }
  .shellStatusV19 { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) 86px; padding: 15px; }
  .hero .mic { width: 82px; height: 82px; }
  .hero .mic span { font-size: 1.35rem; }
  .hero .mic b { font-size: .68rem; }
  .metrics article { min-height: 94px; }
  .metrics article span { font-size: 1.15rem; }
  .metrics article b { font-size: 1.25rem; }
  .shellToolGridV19 { grid-template-columns: 1fr; }
  .shellMoreGridV19 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shellMoreGridV19 > button { grid-template-columns: auto 1fr; }
  .shellMoreGridV19 > button i { display: none; }
  .photoCategoryCardsV19 { grid-template-columns: repeat(3, 185px); }
  .photoWorkspaceHeadV19 > button span { display: none; }
  .photoFieldCardV19 { grid-template-columns: 116px minmax(0, 1fr); gap: 11px; }
  .photoFieldThumbV19 { min-height: 128px; }
}

@media (max-width: 440px) {
  .jarvisTopbarV19 { gap: 6px; }
  .jarvisBrandTextV19 h1 { font-size: 1.3rem; }
  .jarvisBrandTextV19 small { font-size: .58rem; }
  #topMoreButtonV19 { width: 43px; height: 43px; }
  .hero .actionRow .secondary { padding: 9px 11px; font-size: .75rem; }
  .metrics { gap: 6px; }
  .metrics article { min-height: 88px; border-radius: 15px; }
  .metrics article small { font-size: .62rem; }
  #mainNav.bottomNavV19 { padding-left: 5px; padding-right: 5px; }
  #mainNav.bottomNavV19 small { font-size: .62rem; }
  .bottomNavIconV19 { font-size: 1.25rem; }
  .shellStatRowV19 { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .shellStatRowV19 article { padding: 11px 5px; }
  .shellStatRowV19 b { font-size: 1.25rem; }
  .shellMoreGridV19 { grid-template-columns: 1fr; }
  .photoFilterRowV19 { grid-template-columns: 1fr; }
  .photoFieldCardV19 { grid-template-columns: 100px minmax(0, 1fr); padding: 9px; }
  .photoFieldThumbV19 { min-height: 116px; }
  .photoFieldTitleV19 h4 { font-size: .95rem; }
  .photoFieldMetaV19 { font-size: .68rem; }
  .photoFieldActionV19 { font-size: .72rem; }
  .photoFieldActionsV19 button { padding: 6px 8px; }
}
