/* Domivka phone home. The role-filtered snapshot and desktop DOM stay shared. */
html:not([data-skin="mobile"]) .mobile-intro,
html:not([data-skin="mobile"]) .mobile-section { display: none; }

html[data-skin="mobile"] body {
  font-family: Roboto, "Droid Sans", system-ui, sans-serif;
  background: #080c0b;
  color: #e8f2ed;
}
html[data-skin="mobile"] .screen {
  background: #080c0b;
  color: #e8f2ed;
}
html[data-skin="mobile"] .statusbar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 26px;
  padding: 0 15px;
  flex: none;
  background: #030605;
  color: #9cbaaa;
  border-bottom: 1px solid #183126;
  font: 11px/1 system-ui, sans-serif;
  letter-spacing: .02em;
}
html[data-skin="mobile"] .statusbar .clock { margin-left: auto; color: #e6f5ec; }
html[data-skin="mobile"] .surface {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 24px;
  background:
    radial-gradient(90% 28% at 50% 0%, rgba(60, 188, 112, .22), transparent 80%),
    linear-gradient(145deg, #101e1a 0%, #080d0b 42%, #09110e 100%);
}
html[data-skin="mobile"] .mobile-intro {
  display: block;
  padding: 27px 18px 23px;
  border-bottom: 1px solid #2a5140;
  background:
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(98, 212, 139, .025) 27px 28px),
    linear-gradient(180deg, rgba(26, 75, 50, .5), rgba(13, 31, 22, .12));
}
html[data-skin="mobile"] .mobile-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 25px;
  line-height: 1;
  letter-spacing: .1em;
  font-weight: 600;
  color: #f5fff8;
  text-shadow: 0 0 18px rgba(69, 232, 129, .18);
}
html[data-skin="mobile"] .mobile-brand img { width: 42px; height: 42px; object-fit: contain; }
html[data-skin="mobile"] .mobile-brand small { color: #79df9c; font-size: 10px; vertical-align: top; }
html[data-skin="mobile"] .mobile-intro p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
  color: #e2f4e9;
  font-size: 18px;
  font-weight: 500;
}
html[data-skin="mobile"] #mobile-role {
  color: #9adcb2;
  border: 1px solid #427956;
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[data-skin="mobile"] .mobile-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8fb5a0;
  font-size: 11px;
}
html[data-skin="mobile"] .mobile-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65d78b;
  box-shadow: 0 0 9px #65d78b;
}
html[data-skin="mobile"] .mobile-section {
  display: block;
  margin: 0;
  padding: 22px 17px 11px;
  color: #a1bfae;
  font: 600 11px/1.2 system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  scroll-margin-top: 14px;
}
html[data-skin="mobile"] .widgets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px;
  margin: 0;
}
html[data-skin="mobile"] .win {
  position: static;
  width: 100%;
  height: auto;
  min-width: 0;
  flex: none;
  border: 1px solid #315342;
  border-radius: 4px;
  background: linear-gradient(155deg, #16271e, #101a15 75%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2), inset 0 1px rgba(181, 255, 202, .08);
  overflow: hidden;
}
html[data-skin="mobile"] .win-power { order: 1; }
html[data-skin="mobile"] .win-contacts { order: 2; }
html[data-skin="mobile"] .win-system { order: 3; }
html[data-skin="mobile"] .win-title {
  display: flex;
  align-items: center;
  padding: 11px 13px 9px;
  border-bottom: 1px solid #2b4d3a;
  color: #8ce5a9;
  font: 600 11px/1.2 system-ui, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}
html[data-skin="mobile"] .title-bar-controls,
html[data-skin="mobile"] .win-resize { display: none; }
html[data-skin="mobile"] .win-body { padding: 10px 13px 12px; }
html[data-skin="mobile"] .win-system .sysprop,
html[data-skin="mobile"] .win-system .sysprop-rule,
html[data-skin="mobile"] .win-system .disk { display: none; }
html[data-skin="mobile"] .stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #243c2e;
  font-size: 13px;
}
html[data-skin="mobile"] .stat:last-of-type { border: 0; }
html[data-skin="mobile"] .stat dt { color: #95b39f; }
html[data-skin="mobile"] .stat dd { margin: 0; color: #f1fff5; font-variant-numeric: tabular-nums; }
html[data-skin="mobile"] .bar { height: 3px; background: #254130; margin-top: 9px; }
html[data-skin="mobile"] .bar > i { display: block; height: 100%; background: #69d98a; }
html[data-skin="mobile"] .win-age { margin-top: 7px; color: #71977e; font-size: 10px; }
html[data-skin="mobile"] .icq-head,
html[data-skin="mobile"] .icq-body,
html[data-skin="mobile"] .icq-grp {
  background: transparent;
  color: #dcefe1;
  border: 0;
}
html[data-skin="mobile"] .icq-head { padding: 1px 0 8px; border-bottom: 1px solid #243c2e; }
html[data-skin="mobile"] .icq-status { color: #81dc9d; }
html[data-skin="mobile"] .icq-body { padding: 0; max-height: none; overflow: visible; }
html[data-skin="mobile"] .icq-grp { padding: 9px 0 2px; font-size: 12px; }
html[data-skin="mobile"] .icq-body ul { padding: 0 0 2px; }
html[data-skin="mobile"] .icq-body li { padding: 2px 0; color: #a9c8b4; font-size: 12px; }
html[data-skin="mobile"] .icq-foot { display: none; }
html[data-skin="mobile"] .shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 4px;
  list-style: none;
  margin: 0;
  padding: 2px 10px 12px;
}
html[data-skin="mobile"] .shortcuts li { min-width: 0; }
html[data-skin="mobile"] .shortcut {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 80px;
  padding: 8px 2px 5px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #e4f2e8;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
html[data-skin="mobile"] .shortcut:active,
html[data-skin="mobile"] .shortcut:focus-visible { background: rgba(105, 217, 138, .13); }
html[data-skin="mobile"] .shortcut .icon { width: 44px; height: 44px; object-fit: contain; }
html[data-skin="mobile"] .shortcut .lamp {
  position: absolute;
  top: 6px;
  left: calc(50% + 17px);
  box-shadow: 0 0 0 2px #0a120d;
}
html[data-skin="mobile"] .dock {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 58px;
  padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
  border-top: 1px solid #33684a;
  background: #050a07;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .35);
}
html[data-skin="mobile"] .dock-start,
html[data-skin="mobile"] .dock-tray { display: none; }
html[data-skin="mobile"] .dock-items { display: flex; width: 100%; gap: 5px; }
html[data-skin="mobile"] .dock-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 43px;
  padding: 7px 4px;
  border: 0;
  border-radius: 3px;
  background: #17251b;
  color: #b9dcc4;
  font: 600 12px/1 system-ui, sans-serif;
  text-decoration: none;
}
html[data-skin="mobile"] .dock-item:first-child { color: #112318; background: #78dc98; }
html[data-skin="mobile"] .dock-item:active { filter: brightness(1.2); }

@media (max-width: 340px) {
  html[data-skin="mobile"] .mobile-brand { font-size: 22px; }
  html[data-skin="mobile"] .shortcut { font-size: 10px; }
}

/* Launcher: the wallpaper and icons are the home screen. Details live on
   separate views opened by a tap. Desktop layout remains untouched. */
html:not([data-skin="mobile"]) .mobile-home,
html:not([data-skin="mobile"]) .mobile-panel-head,
html:not([data-skin="mobile"]) .mobile-minecraft { display: none; }

html[data-skin="mobile"] .statusbar {
  height: 28px;
  padding: 0 10px;
  background: linear-gradient(#303331, #111412);
  color: #fff;
  border-bottom: 1px solid #4b514e;
  font-size: 12px;
  text-shadow: 0 1px #000;
}
html[data-skin="mobile"] #sb-host { font-weight: 700; letter-spacing: .06em; }
html[data-skin="mobile"] .statusbar .clock { color: #fff; font-weight: 700; font-size: 15px; }
html[data-skin="mobile"] .surface {
  padding: 0;
  background: #162d50 url("/static/mobile-wallpaper.svg") center center / cover no-repeat;
}
html[data-skin="mobile"] .mobile-home {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 12px 14px 0;
}
html[data-skin="mobile"] .mobile-quickbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 91px;
  border: 1px solid #1b2127;
  border-radius: 5px;
  background: linear-gradient(#50565b, #2b3035 48%, #171b20);
  box-shadow: 0 5px 11px #0009, inset 0 1px #ffffff50;
  overflow: hidden;
}
html[data-skin="mobile"] .mobile-quickbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 2px;
  color: #eef5f6;
  background: transparent;
  border: 0;
  border-right: 1px solid #69707870;
  border-bottom: 4px solid #83bd32;
  font: 11px/1.1 system-ui, sans-serif;
  text-shadow: 0 1px #000;
}
html[data-skin="mobile"] .mobile-quickbar button:last-child { border-right: 0; }
html[data-skin="mobile"] .mobile-quickbar button:active,
html[data-skin="mobile"] .mobile-quickbar button:focus-visible { background: #667178; }
html[data-skin="mobile"] .mobile-quickbar .icon { width: 31px; height: 31px; object-fit: contain; }
html[data-skin="mobile"] .mobile-favorites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(100px, auto);
  align-content: center;
  justify-items: center;
  gap: clamp(6px, 2.2vh, 22px) 20px;
  flex: 1;
  min-height: 0;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
html[data-skin="mobile"] .mobile-favorites li { width: 100%; min-width: 0; }
html[data-skin="mobile"] .mobile-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 88px;
  padding: 5px 3px;
  color: #fff;
  background: transparent;
  border: 0;
  text-decoration: none;
  text-shadow: 0 1px 3px #000, 0 2px 5px #000;
  font: 14px/1.15 system-ui, sans-serif;
}
html[data-skin="mobile"] .mobile-icon-art {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 4px 3px #0008);
}
html[data-skin="mobile"] .mobile-icon-art .icon { width: 54px; height: 54px; object-fit: contain; }
html[data-skin="mobile"] .mobile-icon-label {
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 4px;
  background: #101b2c9c;
  overflow-wrap: anywhere;
}
html[data-skin="mobile"] .mobile-icon:active,
html[data-skin="mobile"] .mobile-icon:focus-visible { background: #ffffff24; outline: 1px solid #fff7; }
html[data-skin="mobile"] .mobile-pages {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 3px 0 12px;
}
html[data-skin="mobile"] .mobile-pages i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5efff82;
  box-shadow: 0 1px 2px #000;
}
html[data-skin="mobile"] .mobile-pages i:first-child { background: #fff; }
html[data-skin="mobile"] .mobile-panel-head {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  padding: 0 15px;
  background: #172634;
  border-bottom: 1px solid #465b69;
  color: #fff;
  font: 600 18px/1.1 system-ui, sans-serif;
}
html[data-skin="mobile"] .mobile-back {
  width: 36px;
  height: 36px;
  border: 1px solid #5b7281;
  border-radius: 5px;
  background: #2b4051;
  color: #fff;
  font: 30px/1 system-ui, sans-serif;
}
html[data-skin="mobile"] .mobile-section,
html[data-skin="mobile"] .widgets,
html[data-skin="mobile"] .shortcuts,
html[data-skin="mobile"] .mobile-minecraft { display: none; }
html[data-skin="mobile"][data-mobile-view="status"] .mobile-home,
html[data-skin="mobile"][data-mobile-view="services"] .mobile-home,
html[data-skin="mobile"][data-mobile-view="minecraft"] .mobile-home { display: none; }
html[data-skin="mobile"][data-mobile-view="status"] .surface,
html[data-skin="mobile"][data-mobile-view="services"] .surface,
html[data-skin="mobile"][data-mobile-view="minecraft"] .surface {
  background: linear-gradient(#253a4c, #101b29 33%, #0c1420);
}
html[data-skin="mobile"][data-mobile-view="status"] .mobile-panel-head,
html[data-skin="mobile"][data-mobile-view="services"] .mobile-panel-head,
html[data-skin="mobile"][data-mobile-view="minecraft"] .mobile-panel-head { display: flex; }
html[data-skin="mobile"][data-mobile-view="status"] .widgets { display: flex; padding: 16px 14px 25px; }
html[data-skin="mobile"][data-mobile-view="services"] .shortcuts { display: grid; padding: 18px 10px 25px; }
html[data-skin="mobile"][data-mobile-view="minecraft"] .mobile-minecraft { display: block; }
html[data-skin="mobile"] .mobile-minecraft { padding: 38px 20px; text-align: center; }
html[data-skin="mobile"] .mobile-mc-icon .icon { width: 76px; height: 76px; }
html[data-skin="mobile"] .mobile-minecraft h2 { margin: 12px 0; font-size: 25px; }
html[data-skin="mobile"] .mobile-minecraft p { color: #c1d2dd; font-size: 14px; }
html[data-skin="mobile"] .mobile-mc-address { margin-top: 25px; padding: 13px; background: #253b4a; border: 1px solid #577281; }
html[data-skin="mobile"] .dock {
  min-height: 63px;
  padding: 3px 12px calc(4px + env(safe-area-inset-bottom));
  background: linear-gradient(#273849cc, #0c1521ed);
  border-top: 1px solid #ffffff69;
}
html[data-skin="mobile"] .dock-items { justify-content: space-around; gap: 4px; }
html[data-skin="mobile"] .dock-item,
html[data-skin="mobile"] .dock-item:first-child {
  flex: 0 0 60px;
  min-height: 52px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 8px;
}
html[data-skin="mobile"] .dock-item:nth-child(2) {
  border: 1px solid #a9bac8;
  background: linear-gradient(#738698, #334759 50%, #1a2c3e);
  box-shadow: 0 2px 5px #0009, inset 0 1px #fff8;
}
html[data-skin="mobile"] .dock-glyph { font: 37px/1 system-ui, sans-serif; text-shadow: 0 2px 2px #000b; }
@media (max-height: 650px) {
  html[data-skin="mobile"] .mobile-quickbar { min-height: 72px; }
  html[data-skin="mobile"] .mobile-favorites { grid-auto-rows: minmax(75px, auto); gap: 0 12px; }
  html[data-skin="mobile"] .mobile-icon-art { width: 43px; height: 43px; }
  html[data-skin="mobile"] .mobile-icon-art .icon { width: 41px; height: 41px; }
}
