/* Guest app (iPad) */

.wrap { max-width: 760px; margin: 0 auto; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px;
}
.topbar .brand { font-size: 20px; }

/* welcome */
.welcome { max-width: 440px; width: 100%; }
.welcome .brand { font-size: 18px; color: var(--muted); margin-bottom: 18px; }
.welcome h1 { font-size: 44px; margin-bottom: 10px; }
.welcome p { margin: 0 0 28px; }
.welcome form { display: flex; flex-direction: column; gap: 14px; }
.welcome .field { text-align: center; font-size: 22px; padding: 16px; }

/* home */
.hello { margin: 36px 0 28px; }
.hello h1 { font-size: 40px; }
.hello p { margin: 8px 0 0; font-size: 20px; }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: 24px; min-height: 172px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color .15s, background-color .15s, transform .1s;
}
.tile:hover { border-color: var(--accent); }
.tile:active { transform: scale(.985); }
.tile .ic {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.tile .ic svg { width: 28px; height: 28px; }
.tile .t { font-size: 22px; font-weight: 600; }
.tile .d { font-size: 16px; color: var(--muted); margin-top: 2px; }

.section-title { margin: 40px 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.req-list { display: flex; flex-direction: column; gap: 10px; }
.req {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 16px 18px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.req:hover { border-color: var(--accent); }
.req .ic { color: var(--accent); flex: none; }
.req .ic svg { width: 26px; height: 26px; }
.req .main { flex: 1; min-width: 0; }
.req .title { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.req .preview { color: var(--muted); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.req .chev { color: var(--muted); flex: none; }
.req .chev svg { width: 20px; height: 20px; }

.footer-note { text-align: center; margin: 40px 0 8px; font-size: 15px; }

/* new request */
.compose { display: flex; flex-direction: column; gap: 18px; padding-bottom: 20px; }
.compose h1 { margin-top: 8px; }
.compose .label { font-weight: 600; margin-bottom: -6px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.voice-box {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.voice-box .grow { flex: 1; min-width: 0; }
.rec-big {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 64px; border-radius: var(--radius);
  border: 1px dashed var(--border); background: var(--surface);
  font-weight: 600; font-size: 18px;
}
.rec-big:hover { border-color: var(--accent); color: var(--accent); }
.rec-big svg { width: 24px; height: 24px; }
.rec-big.recording { border-style: solid; border-color: var(--danger); color: var(--danger); }

.send-big { min-height: 60px; font-size: 19px; }

/* chat screen */
.chat-screen {
  display: flex; flex-direction: column;
  height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.chat-head .grow { flex: 1; min-width: 0; }
.chat-head h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-screen .chat-log { padding-left: 0; padding-right: 0; }
