:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }

.shell { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 236px;
  flex: 0 0 236px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 2px 8px 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 18px;
  background: linear-gradient(135deg, #3b82f6, #6d28d9);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 14px; }
.brand-text small { color: var(--muted); font-size: 11px; }

.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  color: #374151; font-size: 13.5px;
}
.nav-item:hover { background: #f3f4f6; text-decoration: none; }
.nav-item.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.nav-ico { width: 18px; text-align: center; opacity: .85; }
.sidebar-foot {
  margin-top: auto; padding: 12px 10px 2px;
  color: var(--muted); font-size: 11.5px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 7px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px #d1fae5; }

/* Main */
.main { flex: 1; min-width: 0; padding: 26px 34px 70px; max-width: 1240px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.topbar h1 { font-size: 22px; letter-spacing: -0.3px; }
.subtitle { color: var(--muted); margin-top: 4px; font-size: 13px; }
.topbar-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: #1f2937;
  font-size: 13px; font-weight: 500; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: #f9fafb; border-color: #d1d5db; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-soft); border-color: #fecaca; }
.btn.small { height: 30px; padding: 0 10px; font-size: 12px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.link { font-size: 12.5px; color: var(--accent); }
.cell-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 15.5px; }
.muted { color: var(--muted); font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 2px;
}
.stat span { color: var(--muted); font-size: 12px; }
.stat strong { font-size: 24px; letter-spacing: -0.5px; }

/* App grid */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.section-head h2 { font-size: 16px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.app-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
}
.app-card-head { display: flex; align-items: center; gap: 12px; }
.app-card-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.app-card-title a { color: var(--text); font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card-title a:hover { color: var(--accent); text-decoration: none; }
.app-card-title .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid #f3f4f6; }
.inline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.app-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; overflow: hidden;
  color: #fff; font-weight: 700; font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-icon.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 26px; }

.version-chip {
  font-family: var(--mono); font-size: 11.5px;
  background: #f3f4f6; color: #374151;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.tag {
  font-size: 11.5px; color: #4b5563;
  background: #f9fafb; border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 999px;
}

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500;
  padding: 2px 9px; border-radius: 999px;
  background: #f3f4f6; color: #4b5563; white-space: nowrap;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.success { background: var(--green-soft); color: var(--green); }
.badge.failed { background: var(--red-soft); color: var(--red); }
.badge.running { background: var(--accent-soft); color: var(--accent); }
.badge.running i { animation: pulse 1.1s infinite; }
.badge.queued { background: #f9fafb; color: #6b7280; }
.badge.plat.android { background: #ecfdf5; color: #047857; }
.badge.plat.ios { background: #eff6ff; color: #1d4ed8; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Empty */
.empty { text-align: center; padding: 58px 24px; }
.empty-art { font-size: 40px; color: #c7d2fe; margin-bottom: 8px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 18px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; color: #374151; }
.field .req { color: var(--red); font-weight: 600; }
.field input[type="text"],
.field input[type="url"],
.field input[type="number"],
.field input[type="password"],
.field input:not([type]),
.field select {
  height: 38px; padding: 0 11px;
  border: 1px solid #d1d5db; border-radius: 9px;
  font-family: inherit; font-size: 13.5px; color: var(--text);
  background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input[type="color"] {
  width: 100%; height: 38px; padding: 3px;
  border: 1px solid #d1d5db; border-radius: 9px; background: #fff;
}
.field input[type="file"] { font-size: 12.5px; color: var(--muted); }
.field input:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.field em, .check em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.check em { display: block; }
.check input { width: 15px; height: 15px; accent-color: var(--accent); }

.segmented {
  display: inline-flex; padding: 3px; gap: 2px;
  background: #f3f4f6; border-radius: 10px; margin-bottom: 16px;
}
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-block; padding: 6px 16px; border-radius: 8px; font-size: 13px; color: #4b5563; }
.segmented input:checked + span { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.hidden { display: none !important; }

.config-block { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.config-block h3 { font-size: 13.5px; margin-bottom: 12px; color: #374151; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.file-name { font-size: 11.5px; color: var(--accent); }

/* App detail */
.app-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.app-hero-main { display: flex; gap: 16px; align-items: center; }
.app-hero-main h2 { font-size: 20px; }
.app-hero-main .mono { margin: 2px 0 8px; }
.app-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.info-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: #fafbfc; border-radius: 9px; }
.info-item span { color: var(--muted); font-size: 11.5px; }
.info-item strong { font-weight: 500; font-size: 13px; word-break: break-all; }

/* Table */
.table-wrap { overflow-x: auto; margin: 0 -6px; }
.table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.table th {
  text-align: left; font-weight: 500; color: var(--muted);
  font-size: 11.5px; padding: 8px 10px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 10px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.cell-error { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.small { font-size: 11.5px; }

/* Notices */
.notice { border-radius: 12px; padding: 13px 16px; margin-bottom: 18px; font-size: 13px; border: 1px solid; }
.notice strong { display: block; margin-bottom: 2px; }
.notice.warn { background: var(--amber-soft); border-color: #fde68a; color: #92400e; }
.notice.ok { background: var(--green-soft); border-color: #a7f3d0; color: #065f46; }
.notice.info { background: #f8fafc; border-color: var(--line); color: #374151; margin-top: 0; }
.notice a { color: inherit; text-decoration: underline; }
.notice .muted { margin-left: 8px; }

/* Build */
.build-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.build-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 16px; font-weight: 600; }
.error-card { border-color: #fecaca; }
.error-text {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: 10px; padding: 12px 14px; margin: 0;
  font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-word;
  max-height: 320px; overflow: auto;
}
.log {
  background: #0b1220; color: #d1d5db;
  border-radius: 10px; padding: 14px 16px; margin: 0;
  font-family: var(--mono); font-size: 12px; line-height: 1.65;
  height: 440px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}

/* Env */
.env-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.env-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.env-card.ok { border-left: 3px solid #10b981; }
.env-card.fail { border-left: 3px solid #ef4444; }
.env-head { display: flex; gap: 11px; align-items: flex-start; }
.env-icon {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
}
.env-card.ok .env-icon { background: #10b981; }
.env-card.fail .env-icon { background: #ef4444; }
.env-head h3 { font-size: 14px; }
.env-head p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.env-details { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.env-details li { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; border-top: 1px dashed #f1f5f9; padding-top: 6px; }
.env-details span { color: var(--muted); flex-shrink: 0; }
.env-details code { font-family: var(--mono); font-size: 11.5px; color: #334155; word-break: break-all; text-align: right; }
.env-fix { margin-top: 12px; background: #fafafa; border: 1px dashed var(--line); border-radius: 9px; padding: 10px 12px; font-size: 12px; }
.env-fix p { color: var(--muted); margin-bottom: 6px; }
.env-fix pre, code { font-family: var(--mono); }
.env-fix pre { background: #0b1220; color: #d1d5db; padding: 8px 10px; border-radius: 7px; margin: 6px 0; font-size: 11.5px; white-space: pre-wrap; overflow-x: auto; }
.env-fix code, .notice code, .card p code { background: #eef2f7; padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
.code-block { background: #0b1220; color: #d1d5db; padding: 12px 14px; border-radius: 9px; font-family: var(--mono); font-size: 12px; overflow-x: auto; }
.warn-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }

/* WebClip */
.badge.plat.webclip { background: #fefce8; color: #a16207; }
.qr-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.qr-wrap img { width: 188px; height: 188px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.steps { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 7px; font-size: 13px; color: #374151; }

/* ===== 主题色选择器 ===== */
.theme-picker { display: grid; gap: 10px; padding: 2px 0 4px; }
.theme-modes { display: flex; gap: 6px; flex-wrap: wrap; }
.theme-modes input[type="radio"] { display: none; }
.theme-modes .chip {
  cursor: pointer; padding: 7px 13px; border-radius: 999px;
  font-size: 12.5px; background: #f1f5f9; color: #475569;
  border: 1px solid transparent; transition: all .15s ease;
  user-select: none; font-weight: 500;
}
.theme-modes .chip:hover { background: #e2e8f0; }
.theme-modes .chip.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.theme-presets { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 6px 2px 0; }
.theme-presets .swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.12);
  transition: transform .12s ease, border-color .12s ease; position: relative;
}
.theme-presets .swatch:hover { transform: scale(1.1); }
.theme-presets .swatch.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(37,99,235,.2); }
.theme-presets .custom-picker {
  background: conic-gradient(#ef4444 #f59e0b #10b981 #3b82f6 #8b5cf6 #ef4444);
  display: flex; align-items: center; justify-content: center; border: 2px dashed #94a3b8;
  cursor: pointer;
}
.theme-presets .custom-picker input[type="color"] {
  position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer;
}
.theme-presets .custom-plus {
  color: #fff; font-weight: 700; font-size: 16px; text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.theme-hint { font-size: 11.5px; color: var(--muted); padding-top: 2px; }
.steps a { word-break: break-all; }

/* Login & distribution */
.minimal-body { min-height: 100vh; background: radial-gradient(circle at 20% 0%, #e0e7ff 0, transparent 38%), var(--bg); }
.minimal-main { width: 100%; min-height: 100vh; padding: 32px 18px; display: grid; place-items: center; }
.login-card { width: min(100%, 410px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 70px rgba(30, 41, 59, .12); padding: 32px; }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.login-brand .logo { width: 44px; height: 44px; }
.login-brand h1 { font-size: 20px; }
.login-brand p { color: var(--muted); margin-top: 3px; }
.login-form { display: grid; gap: 16px; margin-bottom: 18px; }
.login-submit { width: 100%; height: 42px; margin-top: 4px; }
.distribution-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.share-main { min-width: 0; }
.share-main .inline-actions { margin-top: 12px; }
.share-url { font-family: var(--mono); font-size: 12px !important; }
.share-qr { text-align: center; display: grid; gap: 5px; }
.share-qr img { width: 164px; height: 164px; border: 1px solid var(--line); border-radius: 12px; padding: 5px; }
.ipa-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; border-top: 1px dashed var(--line); padding-top: 18px; margin-top: 18px; }
.ipa-upload .btn { margin-bottom: 23px; }
.distribution-notice { margin: 18px 0 0; }
.public-card { width: min(100%, 590px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 70px rgba(30, 41, 59, .12); padding: 30px; }
.public-app { display: flex; align-items: center; gap: 18px; }
.public-app h1 { font-size: 25px; margin: 7px 0 3px; word-break: break-word; }
.public-app p { color: var(--muted); }
.public-icon { width: 78px; height: 78px; border-radius: 19px; object-fit: cover; flex-shrink: 0; box-shadow: 0 5px 18px rgba(15, 23, 42, .12); }
.public-icon-fallback { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #3b82f6, #6d28d9); font-size: 30px; font-weight: 700; }
.public-file { display: flex; justify-content: space-between; padding: 14px 0; margin: 23px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.public-file strong { color: var(--text); }
.public-actions { display: grid; gap: 9px; }
.public-download, .public-secondary { width: 100%; height: 46px; font-size: 15px; }
.public-instructions { margin-top: 26px; }
.public-instructions h2 { font-size: 16px; margin-bottom: 12px; }
.public-share { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.public-share summary { cursor: pointer; color: var(--accent); }
.public-share .qr-wrap { margin-top: 15px; }
.public-share .mono { word-break: break-all; flex: 1; }
.public-status { text-align: center; }
.public-status h1 { font-size: 22px; margin-bottom: 10px; }
.public-status p { color: var(--muted); }

/* iOS WebClip App Store-style distribution */
.ios-store-body {
  background: #fff;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
.ios-store-body .minimal-main { display: block; min-height: 100vh; padding: 0 22px 42px; }
.ios-store { width: min(100%, 680px); margin: 0 auto; }
.ios-store-product { padding: 46px 0 36px; text-align: center; }
.ios-store-icon {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 29px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.ios-store-icon-fallback {
  display: grid;
  place-items: center;
  background: #0a2540;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
}
.ios-store-product h1 { margin: 18px 0 5px; font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.ios-store-product p { margin: 0; color: #6e6e73; font-size: 14px; line-height: 1.5; }
.ios-store-get {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 42px;
  margin: 22px auto 0;
  border-radius: 21px;
  background: #007aff;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ios-store-get:hover { background: #006ee6; color: #fff; }
.ios-store-get:active { background: #0068d9; transform: scale(.98); }
.ios-store-get:focus-visible { outline: 3px solid rgba(0, 122, 255, .3); outline-offset: 3px; }
.ios-store-section { padding: 25px 0; border-top: 1px solid #d2d2d7; }
.ios-store-section h2 { margin: 0 0 12px; font-size: 19px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.ios-store-description { margin: 0; color: #1d1d1f; font-size: 15px; line-height: 1.7; }
.ios-store-steps { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.ios-store-steps li { display: flex; align-items: flex-start; gap: 11px; }
.ios-store-steps li > span { flex: 0 0 19px; color: #6e6e73; font-size: 15px; line-height: 1.65; text-align: center; }
.ios-store-steps p { margin: 0; color: #1d1d1f; font-size: 15px; line-height: 1.65; }
.ios-store-note { margin: 18px 0 0; color: #6e6e73; font-size: 12px; line-height: 1.6; }

@media (min-width: 768px) {
  .ios-store-product { padding-top: 58px; }
  .ios-store-icon { width: 148px; height: 148px; border-radius: 33px; }
  .ios-store-product h1 { font-size: 30px; }
  .ios-store-section { padding: 29px 0; }
  .ios-store-section h2 { font-size: 21px; }
}

@media (max-width: 380px) {
  .ios-store-body .minimal-main { padding-right: 18px; padding-left: 18px; }
  .ios-store-product { padding-top: 34px; }
  .ios-store-icon { width: 116px; height: 116px; border-radius: 26px; }
  .ios-store-product h1 { font-size: 24px; }
  .ios-store-get { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .ios-store-get:active { transform: none; }
}

/* User wallet & platform administration */
.account-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12.5px; white-space: nowrap; }
.login-register { text-align: center; margin-bottom: 12px; color: var(--muted); }
.login-register a { font-weight: 600; }
.price-notice { margin-bottom: 18px; }
.paid-build-form { display: flex; align-items: center; gap: 7px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.build-hosting { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11.5px; white-space: nowrap; cursor: pointer; }
.build-hosting input { accent-color: var(--accent); }
.wallet-summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px; margin-bottom: 18px; color: #fff; border-radius: var(--radius); background: linear-gradient(135deg, #1d4ed8, #6d28d9); box-shadow: var(--shadow); }
.wallet-summary > div:first-child > span { font-size: 13px; opacity: .85; }
.wallet-summary strong { display: block; margin: 4px 0; font-size: 38px; line-height: 1.2; }
.wallet-summary strong small { font-size: 16px; font-weight: 500; }
.wallet-summary p { font-size: 12px; opacity: .8; }
.wallet-prices { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 18px; font-size: 12.5px; }
.money { font-family: var(--mono); white-space: nowrap; font-weight: 600; }
.money.income { color: var(--green); }
.money.expense { color: var(--red); }
.balance-form { display: flex; align-items: center; gap: 6px; min-width: 490px; }
.balance-form input, .balance-form select { height: 31px; min-width: 0; padding: 0 8px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; font: inherit; font-size: 12px; }
.balance-form input[name="amount"] { width: 90px; }
.balance-form input[name="note"] { width: 130px; }
.admin-user-table td { vertical-align: top; }
.switch-line { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.switch-line input { width: 17px; height: 17px; accent-color: var(--accent); }
.control-stats .stat-text { font-size: 16px; line-height: 1.5; }

@media (max-width: 1000px) {
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .env-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: auto; flex: none; height: auto; position: static;
    padding: 12px 14px; border-right: none; border-bottom: 1px solid var(--line);
    flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap;
  }
  .brand { padding: 0; flex: 1; }
  .nav { flex-direction: row; margin: 0; flex-wrap: wrap; }
  .nav-item { padding: 7px 10px; }
  .nav-ico { display: none; }
  .sidebar-foot { display: none; }
  .main { padding: 18px 16px 50px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .info-grid { grid-template-columns: 1fr; }
  .app-hero { align-items: flex-start; }
  .topbar h1 { font-size: 19px; }
  .log { height: 360px; }
  .share-grid, .ipa-upload { grid-template-columns: 1fr; }
  .share-qr { justify-self: start; }
  .ipa-upload .btn { margin-bottom: 0; justify-self: start; }
  .public-card, .login-card { padding: 24px 20px; }
  .wallet-summary { align-items: flex-start; flex-direction: column; }
  .wallet-prices { grid-template-columns: 1fr; }
  .paid-build-form { align-items: flex-start; flex-direction: column; }
}
