* { box-sizing: border-box; }
body.requests-page {
  margin: 0;
  background: #f9f8f4;
  color: #191919;
  font-family: "Yekan Bakh", YekanBakh, Tahoma, sans-serif;
}
.requests-page main { max-width: 720px; margin: auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
.requests-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid #edeae2;
  margin-inline: -16px;
  padding: 9px 16px;
}
.requests-header .vv-brand-strip { margin: 0; padding: 0; border: 0; }
.requests-page a { color: inherit; text-decoration: none; }
.requests-back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff1b6; font-size: 21px; }
.requests-intro { margin: 18px 0 13px; }
.requests-intro h1 { font-size: clamp(22px, 5vw, 28px); margin: 0; }
.requests-intro p { color: #616161; font-size: .85rem; margin: 4px 0 0; }
.requests-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
button, input, select, textarea { font: inherit; border: 1px solid #e5e1d6; border-radius: 12px; padding: 8px 10px; min-height: 44px; color: #191919; }
button { cursor: pointer; background: white; }
.requests-tabs button { flex: 1 0 auto; font-size: .83rem; border-radius: 24px; white-space: nowrap; }
button[aria-current], .primary { background: #ffdb51; border-color: #ffdb51; color: #191919; font-weight: 700; }
button:disabled { opacity: .5; }
#tools { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; margin: 14px 0; }
#search { width: 100%; background: white; }
#filter { background: white; }
.requests-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.card { background: white; padding: 13px; border: 1px solid #eae6dd; border-radius: 17px; margin: 8px 0; }
.card p, #detail-body p { line-height: 1.65; overflow-wrap: anywhere; }
.request-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 8px; }
.request-card h2 { font-size: 1rem; margin: 0; }
.request-badge { background: #fff1b6; padding: 4px 8px; border-radius: 14px; font-size: .75rem; }
.request-badge[data-status="completed"], .request-badge[data-status="cancelled"] { background: #efefed; }
.meta { color: #5e5e5e; font-size: .8rem; }
.request-meta { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 6px 0 0; }
.request-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 3px; }
.request-actions button { border: 0; background: #fff7d7; font-size: .85rem; }
.notice, .request-empty { background: #fff4c9; padding: 12px; border-radius: 12px; }
dialog { border: 1px solid #e5e1d6; border-radius: 20px; width: min(92vw, 620px); max-height: 90dvh; overflow: auto; }
dialog::backdrop { background: #0006; }
form { display: grid; gap: 12px; }
label { font-weight: 600; }
:focus-visible { outline: 3px solid #9b7400; outline-offset: 2px; }
[hidden] { display: none !important; }

@media(max-width:700px) {
  .requests-page main { padding-bottom: calc(105px + env(safe-area-inset-bottom)); }
}
