/* iPhone / browser layout — loaded after style.css, active when <body class="web"> */
html, body { background: var(--bg); height: 100%; }
body.web { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }

body.web .shell {
  inset: 0; border: 0; border-radius: 0; box-shadow: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
body.web .top { -webkit-app-region: none; padding: 10px 12px 4px; }
body.web .brand { font-size: 17px; }
body.web .brand img { width: 26px; height: 26px; }
body.web #btnPin, body.web #btnClose { display: none; }
body.web .icon-btn { width: 40px; height: 40px; }
body.web .icon-btn svg { width: 22px; height: 22px; }

/* 16px stops iPhone from zooming into inputs */
body.web input, body.web textarea, body.web select { font-size: 16px !important; }
body.web .search-wrap input { padding: 12px 40px 12px 36px; }

/* on the phone categories are one row you swipe sideways */
body.web .chips { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; max-height: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
body.web .chips::-webkit-scrollbar { display: none; }
body.web .chip { padding: 7px 13px; font-size: 14px; }

body.web .list { -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
body.web .card { padding: 12px 14px; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
body.web .card:active { background: var(--hover); }
body.web .card-title { padding-left: 84px; font-size: 15px; }
body.web .card-text { font-size: 14px; }
body.web .card-tools { display: flex; top: 8px; gap: 4px; }
body.web .card-tools button { width: 34px; height: 34px; }
body.web .card-tools button svg { width: 16px; height: 16px; }
body.web .card-tools .del { display: none; }
body.web .card-tools .grip { display: grid; font-size: 20px; touch-action: none; cursor: grab; }
body.web .card.dragging { opacity: .5; transform: scale(.98); }
body.web .thumb { height: 72px; max-width: 150px; }

body.web .foot { padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); font-size: 12px; justify-content: center; }

body.web .modal {
  inset: 0; border-radius: 0; padding: 0; align-items: stretch;
}
body.web .sheet {
  border-radius: 0; border: 0; max-height: none; height: 100%;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
}
body.web .sheet.small { margin: auto 16px; height: auto; border-radius: 14px; border: 1px solid var(--line); padding: 18px; max-width: none; }
body.web #confirm { align-items: center; background: rgba(0,0,0,.6); }
body.web .btn { padding: 10px 16px; }
body.web .btn.small { padding: 9px 12px; }
body.web .img-head { flex-direction: column; align-items: stretch; }
body.web .thumbs.edit .thumb { height: 90px; }
body.web .thumb .rm { width: 26px; height: 26px; line-height: 26px; font-size: 13px; }

body.web .empty.first-run { text-align: right; padding: 24px 20px; color: var(--text); font-size: 15px; }
body.web .empty.first-run ol { color: var(--muted); padding-right: 20px; margin: 10px 0 16px; }
body.web .empty.first-run #emptyPaste { width: 100%; font-size: 16px; padding: 14px; }
body.web .empty.first-run .ghost { margin-top: 10px; }

.add-hint {
  position: fixed; left: 12px; right: 12px; bottom: calc(52px + env(safe-area-inset-bottom)); z-index: 30;
  background: var(--accent); color: #fff; border-radius: 14px; padding: 14px 16px 14px 40px;
  font-size: 15px; line-height: 1.7; box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.add-hint small { opacity: .85; }
.add-hint button { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.25); color: #fff; border: 0; border-radius: 50%; width: 26px; height: 26px; }
.app-version { font-size: 11px; color: var(--muted); opacity: .6; text-align: center; margin-top: 14px; direction: ltr; }

body.web .desktop-only { display: none !important; }
body.web kbd { display: none; }
body.web .web-only { display: block; }
body.web .toast { bottom: calc(56px + env(safe-area-inset-bottom)); max-width: 90%; text-align: center; }
