/* ================================================================== */
/*  iPhone Share — shared styles                                       */
/*  Kept compatible with old iOS Safari (iPhone 5 / iOS 10).           */
/* ================================================================== */

:root {
  --ink: #14211d;
  --muted: #65746e;
  --paper: #f4efe4;
  --card: #fffdf8;
  --line: rgba(20, 33, 29, 0.11);
  --green: #0e6b52;
  --green-dark: #0e3b2e;
  --green-soft: #e7f2ec;
  --orange: #c46427;
  --shadow: 0 20px 50px -30px rgba(20, 33, 29, 0.35);
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(255, 171, 120, 0.22), transparent 38%),
    radial-gradient(circle at 94% 8%, rgba(52, 178, 140, 0.16), transparent 42%),
    radial-gradient(rgba(20, 33, 29, 0.055) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Geeza Pro", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  -webkit-appearance: none;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

code,
.path {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.ic {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------------ */
/*  Top bar                                                            */
/* ------------------------------------------------------------------ */

.topbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 28px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.brand {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.brand-mark {
  width: 46px;
  height: 46px;
  margin-left: 12px;
  border-radius: 15px;
  background: var(--green-dark);
  color: #f4efe4;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  box-shadow: 0 10px 20px -12px rgba(14, 59, 46, 0.7);
}

.brand-mark .ic {
  width: 24px;
  height: 24px;
}

.brand-text strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.topnav {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.topnav a {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin-right: 4px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}

.topnav a:hover {
  background: rgba(14, 59, 46, 0.07);
  color: var(--ink);
}

.topnav .ic {
  width: 17px;
  height: 17px;
  margin-left: 7px;
}

/* ------------------------------------------------------------------ */
/*  Layout                                                             */
/* ------------------------------------------------------------------ */

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 28px 56px;
}

.shell-narrow {
  max-width: 980px;
}

.eyebrow {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(14, 107, 82, 0.14);
  border-radius: 999px;
  background: rgba(14, 107, 82, 0.08);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 800;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-radius: 50%;
  background: #16a374;
  box-shadow: 0 0 0 4px rgba(22, 163, 116, 0.14);
}

h1 {
  margin: 20px 0 16px;
  font-size: 62px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

h1 em {
  font-style: normal;
  color: var(--green);
  background-image: linear-gradient(transparent 64%, rgba(255, 171, 110, 0.55) 64%);
}

.lede {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

/* ------------------------------------------------------------------ */
/*  Buttons                                                            */
/* ------------------------------------------------------------------ */

.btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  -webkit-appearance: none;
  transition: background 0.15s, box-shadow 0.15s, -webkit-transform 0.15s;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn .ic {
  width: 18px;
  height: 18px;
  margin-left: 8px;
}

.btn-primary {
  background: var(--green-dark);
  color: #fdfbf5;
  box-shadow: 0 12px 24px -14px rgba(14, 59, 46, 0.8);
}

.btn-primary:hover {
  background: #155241;
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

.btn-soft {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.btn-soft:hover {
  background: #fff;
}

.btn-tiny {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 12px;
}

.btn-block {
  display: -webkit-flex;
  display: flex;
  width: 100%;
}

/* ------------------------------------------------------------------ */
/*  Dashboard hero                                                     */
/* ------------------------------------------------------------------ */

.hero {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 34px 0 30px;
}

.hero-copy {
  -webkit-flex: 1;
  flex: 1;
  max-width: 690px;
  padding-left: 48px;
}

.hero-actions {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-actions .btn {
  margin-left: 10px;
  margin-bottom: 8px;
}

.hero-stats {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 28px;
}

.stat {
  min-width: 86px;
  margin: 0 0 8px 8px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.55);
}

.stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

/* ------------------------------------------------------------------ */
/*  QR card                                                            */
/* ------------------------------------------------------------------ */

.qr-card {
  -webkit-flex: 0 0 358px;
  flex: 0 0 358px;
  width: 358px;
  padding: 20px;
  border: 1px solid rgba(20, 33, 29, 0.09);
  border-radius: 28px;
  background: var(--card);
  box-shadow:
    0 28px 70px -30px rgba(20, 33, 29, 0.45),
    0 1px 0 #fff inset;
}

.qr-card-top {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-bottom: 14px;
}

.qr-badge {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.qr-badge .ic {
  width: 14px;
  height: 14px;
  margin-left: 5px;
}

.qr-live {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  color: var(--green);
  font-size: 10.5px;
  font-weight: 700;
}

.qr-live i {
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: #19a974;
  box-shadow: 0 0 0 4px rgba(25, 169, 116, 0.12);
}

.qr-frame {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #eee7d8;
  border-radius: 20px;
  background: #fff;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.qr-title {
  margin: 14px 0 11px;
  text-align: center;
  font-size: 15.5px;
  font-weight: 800;
}

.url-box {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  padding: 7px 8px 7px 9px;
  border: 1px solid #e9e2d2;
  border-radius: 12px;
  background: #f6f1e5;
}

.url-box span {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #47554f;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10.5px;
  direction: ltr;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 6px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: var(--green-dark);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.icon-btn .ic {
  width: 15px;
  height: 15px;
}

.qr-note {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  margin: 11px 0 1px;
  color: var(--muted);
  font-size: 10.5px;
}

.qr-note .ic {
  width: 14px;
  height: 14px;
  margin-left: 5px;
}

/* ------------------------------------------------------------------ */
/*  Steps                                                              */
/* ------------------------------------------------------------------ */

.steps-row {
  display: -webkit-flex;
  display: flex;
  margin: 8px 0 24px;
}

.step {
  -webkit-flex: 1;
  flex: 1;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin-left: 10px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.step:last-child {
  margin-left: 0;
}

.step-num {
  -webkit-flex: 0 0 30px;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-left: 11px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.step strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13.5px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

/* ------------------------------------------------------------------ */
/*  Panels                                                             */
/* ------------------------------------------------------------------ */

.panel {
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 16px 40px -34px rgba(20, 33, 29, 0.4);
}

.panel-head {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-bottom: 17px;
}

.panel-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.panel-tag {
  padding: 5px 9px;
  border-radius: 8px;
  background: #f1ead9;
  color: #8a7b5c;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
}

.count-badge {
  display: inline-block;
  min-width: 25px;
  height: 21px;
  margin-right: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  line-height: 21px;
  text-align: center;
  vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/*  Drop zone + upload rows                                            */
/* ------------------------------------------------------------------ */

.dropzone {
  position: relative;
  padding: 29px 18px;
  border: 1.5px dashed #cec4ae;
  border-radius: 18px;
  background: #faf6ec;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #6fbf9e;
  background: #f1f8f3;
}

.dz-icon {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
}

.dz-icon .ic {
  width: 24px;
  height: 24px;
}

.dropzone strong {
  display: block;
  font-size: 14.5px;
}

.dropzone > span:last-of-type {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.device-hint {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin: 11px 2px 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.device-hint .ic {
  -webkit-flex: 0 0 14px;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  margin-top: 2px;
  color: var(--green);
}

.device-hint code {
  margin: 0 3px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #eee8da;
  color: #5c503a;
  font-size: 10px;
  direction: ltr;
  unicode-bidi: embed;
}

.upload-list {
  margin-top: 13px;
}

.up-item {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.up-thumb {
  -webkit-flex: 0 0 44px;
  flex: 0 0 44px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 10px;
  overflow: hidden;
  border-radius: 10px;
  background: #eef3ef;
  color: var(--green);
  font-size: 9.5px;
  font-weight: 800;
}

.up-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.up-main {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
}

.up-name {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  unicode-bidi: plaintext;
}

.up-meta {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  direction: ltr;
  text-align: right;
}

.up-track {
  height: 5px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8da;
}

.up-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #17a673, #0e6b52);
  transition: width 0.2s;
}

.up-state {
  margin-right: 10px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.up-state.error {
  color: #b23b2e;
}

.up-retry {
  margin-right: 8px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: #f7e8e3;
  color: #a33a2c;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

/* ------------------------------------------------------------------ */
/*  Recent mini grid                                                   */
/* ------------------------------------------------------------------ */

.mini-grid {
  display: -webkit-flex;
  display: flex;
  padding: 2px 0 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mini {
  position: relative;
  -webkit-flex: 0 0 124px;
  flex: 0 0 124px;
  display: block;
  width: 124px;
  height: 124px;
  margin-left: 10px;
  overflow: hidden;
  border-radius: 16px;
  background: #e9e3d5;
}

.mini:last-child {
  margin-left: 0;
}

.mini img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-name {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px 8px 7px;
  overflow: hidden;
  background: linear-gradient(transparent, rgba(8, 20, 15, 0.84));
  color: #fff;
  font-size: 9px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  unicode-bidi: plaintext;
}

.mini-kind {
  position: absolute;
  top: 8px;
  right: 8px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(8, 20, 15, 0.45);
  color: #fff;
}

.mini-kind .ic {
  width: 12px;
  height: 12px;
}

.mini-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: radial-gradient(circle at 28% 16%, #2a7a5e, #0e3b2e);
  color: #fff;
}

.mini-play {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.mini-play .ic {
  width: 16px;
  height: 16px;
  margin-right: -2px;
}

.mini-ext {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 8px;
  letter-spacing: 0.5px;
}

.mini-file {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: #f2ecdd;
  color: #7a6a4d;
  font-size: 9px;
  font-weight: 800;
}

.mini-file .ic {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
}

.mini-empty {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 16px;
  border: 1px dashed #d3c8b2;
  border-radius: 16px;
  color: var(--muted);
  font-size: 12px;
}

.mini-empty .ic {
  width: 24px;
  height: 24px;
  margin-left: 10px;
  color: #b3a586;
}

/* ------------------------------------------------------------------ */
/*  Info strip + footer                                                */
/* ------------------------------------------------------------------ */

.info-strip {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin: 4px 0 20px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--green-dark);
  color: #dbe9e2;
}

.info-line {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin: 3px 0;
  font-size: 11px;
  line-height: 1.7;
}

.info-line .ic {
  -webkit-flex: 0 0 16px;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  margin-top: 2px;
  color: #8fd3b8;
}

.path {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  direction: ltr;
  unicode-bidi: embed;
  word-break: break-all;
}

.foot {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 10px 2px 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.foot b {
  color: var(--green);
}

.toast {
  position: fixed;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 200;
  width: 220px;
  margin: 0 auto;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  -webkit-transform: translateY(10px);
  transform: translateY(10px);
  transition: opacity 0.2s, -webkit-transform 0.2s;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/*  Page head (gallery / video)                                        */
/* ------------------------------------------------------------------ */

.page-head {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 26px 0 22px;
}

.page-head h1 {
  margin: 12px 0 7px;
  font-size: 44px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.page-actions {
  display: -webkit-flex;
  display: flex;
  margin-bottom: 5px;
}

.page-actions .btn {
  margin-right: 8px;
}

/* ------------------------------------------------------------------ */
/*  Gallery                                                            */
/* ------------------------------------------------------------------ */

.gallery-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.tile {
  display: block;
  width: calc(25% - 16px);
  margin: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 12px 26px -24px rgba(20, 33, 29, 0.45);
  transition: -webkit-transform 0.16s, box-shadow 0.16s;
  transition: transform 0.16s, box-shadow 0.16s;
}

.tile:hover {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  box-shadow: 0 20px 34px -24px rgba(20, 33, 29, 0.5);
}

.tile-media {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #efe9db;
}

.tile-media img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition: opacity 0.25s;
}

.tile-media img.loaded {
  opacity: 1;
}

.tile-media.broken::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  color: #8a7b5c;
  content: "تعذر عرض الصورة";
  font-size: 10.5px;
  text-align: center;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.tile-media-video {
  background: radial-gradient(circle at 26% 15%, #2f8567, #0c3529 72%);
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.play-badge .ic {
  width: 20px;
  height: 20px;
  margin-right: -2px;
}

.ext-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.video-word {
  position: absolute;
  right: 10px;
  bottom: 9px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9.5px;
}

.tile-media-file {
  background: #f3edde;
}

.file-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 16px;
  background: #e8dfcc;
  color: #7a6a4d;
}

.file-icon .ic {
  width: 26px;
  height: 26px;
}

.tile-info {
  display: block;
  padding: 10px 12px 12px;
}

.tile-name {
  display: block;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  unicode-bidi: plaintext;
}

.tile-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  direction: ltr;
  text-align: right;
}

.meta-line {
  direction: ltr;
  text-align: right;
}

/* ------------------------------------------------------------------ */
/*  Empty states                                                       */
/* ------------------------------------------------------------------ */

.empty {
  padding: 52px 20px;
  border: 1px dashed #d3c8b2;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.8);
  text-align: center;
}

.empty-icon {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: var(--green-soft);
  color: var(--green);
}

.empty-icon .ic {
  width: 32px;
  height: 32px;
}

.empty h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.empty p {
  max-width: 440px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.empty-actions {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: center;
  justify-content: center;
}

.empty-actions .btn {
  margin: 4px;
}

/* ------------------------------------------------------------------ */
/*  Lightbox                                                           */
/* ------------------------------------------------------------------ */

.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  background: rgba(7, 16, 12, 0.96);
  color: #fff;
}

.lb-top {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 14px 16px;
}

.lb-name {
  max-width: 58%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  unicode-bidi: plaintext;
}

.lb-actions {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.lb-btn {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

.lb-btn .ic {
  width: 15px;
  height: 15px;
  margin-left: 6px;
}

.lb-close {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.lb-close .ic {
  width: 17px;
  height: 17px;
}

.lb-stage {
  -webkit-flex: 1;
  flex: 1;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 8px 16px;
  overflow: hidden;
}

.lb-stage img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
}

.lb-hint {
  padding: 10px 16px 22px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10.5px;
  text-align: center;
}

body.no-scroll {
  overflow: hidden;
}

/* ------------------------------------------------------------------ */
/*  Video page                                                         */
/* ------------------------------------------------------------------ */

.back-link {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

.back-link .ic {
  width: 16px;
  height: 16px;
  margin-left: 6px;
}

.page-head-video {
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

.video-title {
  max-width: 820px;
  margin: 10px 0 6px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  font-size: 27px;
  line-height: 1.35;
}

.video-player {
  overflow: hidden;
  border-radius: 22px;
  background: #08120e;
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.6);
}

.video-player video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #000;
}

.video-actions {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 18px;
}

.video-actions .btn {
  margin-left: 10px;
  margin-bottom: 8px;
}

.fine {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

/* ------------------------------------------------------------------ */
/*  QR page                                                            */
/* ------------------------------------------------------------------ */

.page-qr {
  background-color: var(--green-dark);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255, 171, 120, 0.16), transparent 40%),
    radial-gradient(circle at 85% 100%, rgba(52, 178, 140, 0.2), transparent 45%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px;
}

.qr-page {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 100vh;
  padding: 22px 16px;
}

.qr-page .back-link {
  -webkit-align-self: flex-start;
  align-self: flex-start;
  color: rgba(255, 255, 255, 0.6);
}

.qr-page-card {
  width: 100%;
  max-width: 480px;
  margin: 10px 0;
  padding: 26px;
  border-radius: 28px;
  background: var(--card);
  text-align: center;
  box-shadow: 0 34px 90px -34px rgba(0, 0, 0, 0.7);
}

.qr-page-card h1 {
  margin: 14px 0 8px;
  font-size: 40px;
}

.qr-page-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.qr-frame-big {
  max-width: 342px;
  margin: 0 auto;
}

.url-box-big {
  margin: 16px 0;
}

.qr-page-card .btn {
  margin-top: 4px;
}

.qr-page .fine {
  color: #b9c9c2;
}

/* ------------------------------------------------------------------ */
/*  Mobile upload page                                                 */
/* ------------------------------------------------------------------ */

.m-top {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px;
}

.m-back,
.m-qr {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  color: var(--muted);
  font-size: 11.5px;
}

.m-back .ic,
.m-qr .ic {
  width: 16px;
  height: 16px;
  margin-left: 5px;
}

.m-brand {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
}

.m-brand .ic {
  width: 17px;
  height: 17px;
  margin-left: 6px;
  color: var(--green);
}

.m-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}

.m-hero {
  padding: 18px 2px 20px;
}

.m-hero h1 {
  margin: 14px 0 12px;
  font-size: 40px;
}

.m-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.picker {
  margin: 4px 0 10px;
}

.pick {
  position: relative;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin-bottom: 10px;
  padding: 13px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 22px -22px rgba(20, 33, 29, 0.4);
}

.pick:active {
  background: #f8f4e9;
}

.pick input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
  -webkit-appearance: none;
}

.pick-icon {
  -webkit-flex: 0 0 48px;
  flex: 0 0 48px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: 12px;
  border-radius: 14px;
}

.pick-icon .ic {
  width: 23px;
  height: 23px;
}

.pick-photo .pick-icon {
  background: #e7f3ec;
  color: var(--green);
}

.pick-video .pick-icon {
  background: #fdeee2;
  color: var(--orange);
}

.pick-camera .pick-icon {
  background: #e9eef6;
  color: #315c8a;
}

.pick-text {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
}

.pick-text strong {
  display: block;
  font-size: 14.5px;
}

.pick-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.pick-arrow {
  color: #b6ac97;
}

.pick-arrow .ic {
  width: 18px;
  height: 18px;
}

.m-summary {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin: 8px 0 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--green-dark);
  color: #fff;
}

.m-summary-icon {
  -webkit-flex: 0 0 36px;
  flex: 0 0 36px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.m-summary-icon .ic {
  width: 18px;
  height: 18px;
}

.m-summary strong {
  display: block;
  font-size: 12.5px;
}

.m-summary span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
}

.m-summary .btn {
  margin-right: auto;
}

.m-tips {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.m-tips h2 {
  margin: 0 0 8px;
  font-size: 13px;
}

.m-tips ul {
  margin: 0;
  padding: 0 16px 0 0;
}

.m-tips li {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.m-bottom {
  margin-top: 10px;
}

.m-bottom .btn {
  margin-bottom: 9px;
}

.m-fine {
  margin: 12px 0 0;
  color: #8b7f68;
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/*  404                                                                */
/* ------------------------------------------------------------------ */

.empty-page {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.empty-page h1 {
  margin: 12px 0 6px;
  font-size: 34px;
}

.empty-page p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 1080px) {
  h1 {
    font-size: 52px;
  }

  .hero-copy {
    padding-left: 30px;
  }

  .tile {
    width: calc(33.333% - 16px);
  }
}

@media (max-width: 900px) {
  .hero {
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: stretch;
    align-items: stretch;
  }

  .hero-copy {
    max-width: none;
    padding-left: 0;
  }

  .qr-card {
    -webkit-flex: none;
    flex: none;
    width: 100%;
    max-width: 430px;
    margin: 24px auto 0;
  }

  .steps-row {
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .step {
    margin-right: 0;
    margin-bottom: 9px;
    margin-left: 0;
  }

  .page-head {
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: flex-start;
    align-items: flex-start;
  }

  .page-actions {
    margin-top: 14px;
  }
}

@media (max-width: 700px) {
  .topbar {
    padding: 13px 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand-text small {
    display: none;
  }

  .topnav a {
    padding: 8px 9px;
  }

  .topnav a span {
    display: none;
  }

  .topnav .ic {
    margin-left: 0;
  }

  .shell {
    padding: 6px 16px 40px;
  }

  h1 {
    font-size: 42px;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-actions .btn {
    margin-bottom: 8px;
  }

  .qr-card {
    max-width: none;
  }

  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  .info-strip {
    border-radius: 16px;
  }

  .page-head h1 {
    font-size: 34px;
  }

  .page-head p {
    font-size: 12px;
  }

  .tile {
    width: calc(50% - 16px);
  }

  .gallery-grid {
    margin: 0 -6px;
  }

  .tile {
    margin: 6px;
    width: calc(50% - 12px);
  }

  .tile-info {
    padding: 8px 10px 10px;
  }

  .tile-name {
    font-size: 10.5px;
  }

  .qr-page-card {
    padding: 20px;
  }

  .qr-page-card h1 {
    font-size: 34px;
  }

  .lb-name {
    max-width: 46%;
  }
}

.login-wrap {
  min-height: calc(100vh - 76px);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 28px 18px 52px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  padding: 36px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background: rgba(21,27,40,.92);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  text-align: right;
}

.login-mark {
  width: 54px;
  height: 54px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, #715cff, #9b63ff);
}

.login-mark .ic { width: 26px; height: 26px; }
.login-card .eyebrow { color: #a99bff; font-size: 13px; margin: 0 0 8px; }
.login-card h1 { font-size: 30px; margin: 0 0 8px; }
.login-copy, .login-hint { color: #a7afbf; line-height: 1.8; }
.login-copy { margin: 0 0 24px; }
.login-hint { font-size: 12px; margin: 18px 0 0; }
.login-label { display: block; font-size: 14px; margin-bottom: 8px; }
.login-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: #0d111a;
  color: #fff;
  font: inherit;
  direction: ltr;
  text-align: left;
}
.login-input:focus { outline: 2px solid #8573ff; outline-offset: 2px; }
.login-submit { width: 100%; margin-top: 16px; }
.login-error { padding: 11px 13px; border-radius: 10px; color: #ffc4c4; background: rgba(239,68,68,.12); }
.logout-form { display: inline-flex; margin-right: 10px; }
.logout-button {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;
  padding: 8px 11px;
  background: transparent;
  color: #ccd1dc;
  font: inherit;
  cursor: pointer;
}
.logout-button:hover { color: #fff; border-color: rgba(255,255,255,.32); }

@media (max-width: 480px) {
  .login-card { padding: 26px 21px; }
  .logout-form { margin-right: 5px; }
  .logout-button { padding: 7px 8px; font-size: 12px; }
}

@media (max-width: 380px) {
  h1 {
    font-size: 36px;
  }

  .m-hero h1 {
    font-size: 36px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .stat {
    -webkit-flex: 1 1 40%;
    flex: 1 1 40%;
  }

  .btn {
    padding: 0 15px;
  }
}

@media (max-width: 340px) {
  h1 {
    font-size: 31px;
  }

  .m-hero h1 {
    font-size: 32px;
  }

  .topnav a {
    padding: 8px 7px;
  }

  .qr-card {
    padding: 15px;
  }

  .tile-name {
    font-size: 9.5px;
  }

  .tile-meta {
    font-size: 8.5px;
  }
}

/* ================================================================== */
/*  Browser gateway                                                    */
/* ================================================================== */

/* CTA on the mobile upload page */
.m-browser {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin: 0 0 16px;
  padding: 13px 14px;
  border-radius: 18px;
  background: var(--green-dark);
  color: #f4efe4;
  box-shadow: 0 16px 30px -22px rgba(14, 59, 46, 0.9);
}

.m-browser-icon {
  width: 40px;
  height: 40px;
  margin-left: 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.m-browser-icon .ic {
  width: 22px;
  height: 22px;
}

.m-browser-text {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
}

.m-browser-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.m-browser-text small {
  display: block;
  color: rgba(244, 239, 228, 0.68);
  font-size: 10.5px;
  line-height: 1.4;
}

.m-browser-go {
  color: rgba(244, 239, 228, 0.6);
}

.m-browser-go .ic {
  width: 18px;
  height: 18px;
}

/* Remote browser page */
.page-browser {
  background: #0b1512;
  background-image: none;
}

.b-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 6px 6px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.b-bar {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.b-btn {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: 0 2px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-appearance: none;
}

.b-btn .ic {
  width: 18px;
  height: 18px;
}

.b-btn:active {
  background: rgba(14, 59, 46, 0.12);
}

.b-btn[disabled] {
  opacity: 0.28;
}

.b-addr {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  margin: 0 2px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.b-addr input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 0 10px 10px 0;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 32px;
  direction: ltr;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.b-addr button {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--green-dark);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: var(--green-dark);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  -webkit-appearance: none;
}

.b-sites {
  display: -webkit-flex;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 5px 2px 6px;
  -webkit-overflow-scrolling: touch;
}

.b-chip {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: 5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--green-dark);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  -webkit-appearance: none;
}

.b-chip:active {
  background: var(--green-soft);
}

.b-stage {
  position: fixed;
  top: 80px;
  bottom: 44px;
  left: 0;
  right: 0;
  padding: 4px;
  overflow: hidden;
  background: #0b1512;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.page-browser.kb-open .b-stage {
  top: 180px;
}

.b-shot {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  background: #fff;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.b-empty {
  max-width: 300px;
  padding: 18px;
  text-align: center;
  color: #e9f1ed;
}

.b-empty-icon {
  display: -webkit-inline-flex;
  display: inline-flex;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4efe4;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.b-empty-icon .ic {
  width: 28px;
  height: 28px;
}

.b-empty h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 26px;
  line-height: 1.2;
}

.b-empty p {
  margin: 0 0 8px;
  color: rgba(233, 241, 237, 0.7);
  font-size: 12.5px;
  line-height: 1.55;
}

.b-empty .b-empty-note {
  color: rgba(233, 241, 237, 0.5);
  font-size: 10.5px;
}

.b-busy {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 6;
  width: 150px;
  margin-left: -75px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 21, 18, 0.82);
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  pointer-events: none;
}

.b-busy span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b-spinner {
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  -webkit-animation: b-spin 0.8s linear infinite;
  animation: b-spin 0.8s linear infinite;
}

@-webkit-keyframes b-spin {
  to { -webkit-transform: rotate(360deg); }
}

@keyframes b-spin {
  to { transform: rotate(360deg); }
}

.b-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 5px 6px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.b-tools {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.b-status {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  margin-right: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 10px;
}

.b-status-bad {
  color: #a33a1e;
  font-weight: 700;
}

.b-keyboard {
  position: fixed;
  left: 0;
  right: 0;
  top: 80px;
  z-index: 45;
  padding: 8px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.45);
}

.b-kb-row {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.b-kb-row + .b-kb-row {
  margin-top: 6px;
}

.b-keyboard input {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  direction: rtl;
  -webkit-appearance: none;
  appearance: none;
}

.b-keyboard button {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  height: 38px;
  margin-right: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: var(--green-dark);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  -webkit-appearance: none;
}

.b-kb-keys button {
  -webkit-flex: 1;
  flex: 1;
  margin-right: 0;
  margin-left: 4px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
}

.b-kb-keys button:last-child {
  margin-left: 0;
}

@media (min-width: 720px) {
  .b-top,
  .b-bottom {
    padding-left: 24px;
    padding-right: 24px;
  }

  .b-shot {
    max-width: 460px;
  }

  .b-keyboard {
    left: 50%;
    right: auto;
    width: 520px;
    margin-left: -260px;
    top: 80px;
    border: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
  }
}
