Download web/app.css from Affaad/birdie: direct link, hf CLI and curl.
- Browser
- Download file 24.3 kB
-
https://huggingface.co/spaces/Affaad/birdie/resolve/main/web/app.css
- Command line
-
hf download hf://spaces/Affaad/birdie/web/app.css
-
curl -L -o app.css https://huggingface.co/spaces/Affaad/birdie/resolve/main/web/app.css
24.3 kB
| /* Birdie mobile app. | |
| * | |
| * Layout patterns borrowed from the delivery apps people in Doha already use (Talabat): a coloured header | |
| * with a wavy edge, a pill search, category tiles with badges, an outlined suggestion card and a floating | |
| * tab bar. Brand colour is Qatar maroon (change --brand to re-theme). Seat colours were checked for | |
| * colour-blind separation; held seats are also striped. | |
| */ | |
| :root { | |
| --brand: #8A1538; | |
| --brand-deep: #5A0F24; | |
| --brand-soft: #F7E4E9; | |
| --on-brand: #FFFFFF; | |
| --on-brand-dim: #F4DCE2; | |
| --paper: #FFFFFF; | |
| --cream: #F5EFE7; /* tiles, surfaces */ | |
| --cream-deep: #E9E0D4; /* hairlines, outlines */ | |
| --ink: #1F2328; | |
| --muted: #6B6560; /* 5.7:1 on white */ | |
| --badge: #1F2328; | |
| /* Seat states */ | |
| --free: #17804F; | |
| --held: #D08A1C; | |
| --held-stripe: #A9690C; | |
| --taken: #353A42; | |
| --held-fill: repeating-linear-gradient(135deg, var(--held) 0 3px, var(--held-stripe) 3px 5px); | |
| --safe-top: env(safe-area-inset-top, 0px); | |
| --safe-bottom: env(safe-area-inset-bottom, 0px); | |
| --frame: 430px; | |
| --gutter: 20px; | |
| --tabbar-space: calc(var(--safe-bottom) + 104px); | |
| --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif; | |
| --ease-out: cubic-bezier(0.23, 1, 0.32, 1); | |
| --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); | |
| } | |
| * { box-sizing: border-box; } | |
| html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } | |
| body { | |
| margin: 0; | |
| background: var(--paper); | |
| color: var(--ink); | |
| font: 400 15px/1.45 var(--font); | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| } | |
| button, a { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; } | |
| a { text-decoration: none; } | |
| :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; } | |
| .band :focus-visible { outline-color: var(--paper); } | |
| ::-webkit-scrollbar { display: none; } | |
| .app { | |
| position: relative; | |
| max-width: var(--frame); | |
| min-height: 100vh; | |
| min-height: 100dvh; | |
| margin: 0 auto; | |
| background: var(--paper); | |
| overflow-x: hidden; | |
| } | |
| @media (min-width: 560px) { | |
| body { background: var(--cream); } | |
| .app { box-shadow: 0 0 0 1px var(--cream-deep), 0 24px 70px rgba(31, 35, 40, 0.10); } | |
| } | |
| .press { transition: transform 160ms var(--ease-out); } | |
| .press:active { transform: scale(0.97); } | |
| .rail { display: flex; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; } | |
| .screen { padding-bottom: var(--tabbar-space); } | |
| /* ---------- Header band with a wavy edge ---------- */ | |
| .band { | |
| position: relative; | |
| background: var(--brand); | |
| color: var(--on-brand); | |
| padding: calc(var(--safe-top) + 22px) var(--gutter) 34px; | |
| } | |
| .band::after { | |
| content: ''; | |
| position: absolute; left: 0; right: 0; bottom: -1px; height: 16px; | |
| background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 16' preserveAspectRatio='none'%3E%3Cpath d='M0 7C38 11 74 3 122 6S196 13 246 9 330 2 400 8V16H0Z' fill='%23FFFFFF'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; | |
| pointer-events: none; | |
| } | |
| .loc { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 21px; font-weight: 400; color: var(--on-brand-dim); } | |
| .loc b { font-weight: 600; color: var(--on-brand); } | |
| .search { | |
| display: flex; align-items: center; gap: 12px; | |
| height: 54px; margin-top: 18px; padding: 0 18px; | |
| background: var(--paper); border-radius: 999px; | |
| box-shadow: inset 0 0 0 1px var(--cream-deep); | |
| color: var(--muted); | |
| } | |
| .search svg { flex-shrink: 0; } | |
| .search input { | |
| flex: 1; min-width: 0; height: 100%; | |
| border: none; background: transparent; outline: none; | |
| font: 500 17px var(--font); color: var(--ink); | |
| -webkit-appearance: none; appearance: none; | |
| } | |
| .search input::placeholder { color: var(--ink); opacity: 0.85; } | |
| .search input::-webkit-search-cancel-button { display: none; } | |
| .band-title h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; } | |
| .band-title p { margin: 6px 0 0; font-size: 15px; color: var(--on-brand-dim); } | |
| /* ---------- Category tiles ---------- */ | |
| .tiles { gap: 10px; padding: 26px var(--gutter) 4px; } | |
| .tile { | |
| position: relative; flex-shrink: 0; | |
| display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; | |
| width: 86px; height: 92px; padding: 0 4px 12px; | |
| border: none; border-radius: 20px; background: var(--cream); | |
| color: var(--ink); cursor: pointer; | |
| transition: box-shadow 160ms ease, transform 160ms var(--ease-out); | |
| } | |
| .tile svg { color: var(--brand); } | |
| .tile-label { font-size: 13px; font-weight: 600; white-space: nowrap; } | |
| .tile-badge { | |
| position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); | |
| height: 22px; padding: 0 8px; border-radius: 7px; | |
| display: inline-flex; align-items: center; | |
| background: var(--badge); color: var(--paper); | |
| font-size: 12px; font-weight: 600; white-space: nowrap; | |
| } | |
| .tile.is-on { box-shadow: inset 0 0 0 2px var(--brand); } | |
| .tile.is-on .tile-label { color: var(--brand); } | |
| /* ---------- Greeting and the suggestion card ---------- */ | |
| .intro { padding: 26px var(--gutter) 0; } | |
| .intro[hidden] { display: none; } | |
| .hello { margin: 0 0 14px; font-size: 27px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; } | |
| .hello span { color: var(--brand); } | |
| .best { | |
| display: flex; flex-direction: column; gap: 14px; | |
| padding: 16px 18px 18px; border-radius: 22px; | |
| box-shadow: inset 0 0 0 1.5px var(--cream-deep); | |
| } | |
| .best-head { display: flex; align-items: center; gap: 12px; } | |
| .best-icon { | |
| display: flex; align-items: center; justify-content: center; flex-shrink: 0; | |
| width: 40px; height: 40px; border-radius: 999px; | |
| background: var(--brand-soft); color: var(--brand); | |
| } | |
| .best-name { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; line-height: 1.25; } | |
| .best-name small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); } | |
| .best-body { display: flex; align-items: center; gap: 14px; } | |
| .best-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); } | |
| .best-text strong { font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--ink); text-wrap: balance; } | |
| .btn { | |
| flex-shrink: 0; height: 46px; padding: 0 18px; | |
| border: none; border-radius: 999px; | |
| background: var(--brand); color: var(--on-brand); | |
| font-size: 16px; font-weight: 600; cursor: pointer; | |
| } | |
| /* ---------- Seat dots (one per seat: free, held, taken) ---------- */ | |
| .dots { display: grid; gap: 3px; } | |
| .dots i { display: block; aspect-ratio: 1; border-radius: 999px; background: var(--taken); } | |
| .dots .d-free { background: var(--free); } | |
| .dots .d-held { background: var(--held); } | |
| .thumb { | |
| display: flex; align-items: center; justify-content: center; flex-shrink: 0; | |
| width: 72px; height: 72px; padding: 10px; | |
| border-radius: 18px; background: var(--cream); | |
| } | |
| .thumb .dots { width: 100%; } | |
| .thumb.is-photo { padding: 0; overflow: hidden; } | |
| .thumb img, .card-photo img, .hero img { display: block; width: 100%; height: 100%; object-fit: cover; } | |
| /* ---------- Free right now ---------- */ | |
| .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); } | |
| .sec-head h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; } | |
| .free-now { padding-top: 30px; } | |
| .free-now[hidden] { display: none; } | |
| .cards { gap: 10px; padding: 12px var(--gutter) 2px; } | |
| .card { | |
| display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; | |
| width: 164px; padding: 14px; | |
| border: none; border-radius: 20px; | |
| background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--cream-deep); | |
| text-align: left; cursor: pointer; color: var(--ink); | |
| } | |
| .card .dots { grid-template-columns: repeat(12, 8px); } | |
| .card-photo { display: block; height: 84px; border-radius: 12px; overflow: hidden; background: var(--cream); } | |
| .card-count { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; } | |
| .card-count span { margin-left: 4px; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; } | |
| .card-name { font-size: 15px; font-weight: 600; line-height: 1.25; } | |
| .card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; } | |
| /* ---------- List ---------- */ | |
| .list { padding: 30px var(--gutter) 0; } | |
| .list .sec-head { padding: 0; } | |
| .sorts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; } | |
| .sort { | |
| height: 36px; padding: 0 14px; | |
| border: 1.5px solid var(--cream-deep); border-radius: 999px; | |
| background: var(--paper); color: var(--ink); | |
| font-size: 14px; font-weight: 500; cursor: pointer; | |
| transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out); | |
| } | |
| .sort.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); } | |
| .rows { display: flex; flex-direction: column; margin-top: 6px; } | |
| .row { | |
| display: flex; align-items: center; gap: 14px; | |
| padding: 14px 0; border: none; border-bottom: 1px solid var(--cream); | |
| background: transparent; text-align: left; cursor: pointer; color: var(--ink); | |
| } | |
| .row:last-child { border-bottom: none; } | |
| .row.is-full .thumb { opacity: 0.6; } | |
| .row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } | |
| .row-name { font-size: 16px; font-weight: 600; line-height: 1.3; } | |
| .row-kind { font-size: 14px; color: var(--muted); } | |
| .row-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 4px; font-size: 14px; } | |
| .row-free { font-weight: 600; } | |
| .row.is-full .row-free { color: var(--brand); } | |
| .fact { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); white-space: nowrap; } | |
| .fact svg { flex-shrink: 0; } | |
| .empty { padding: 28px 0; text-align: center; font-size: 15px; color: var(--muted); } | |
| .empty strong { display: block; margin-bottom: 4px; font-size: 17px; color: var(--ink); } | |
| .note { margin: 20px 0 0; padding: 0 var(--gutter); text-align: center; font-size: 13px; color: var(--muted); } | |
| /* ---------- Floating tab bar ---------- */ | |
| .tabbar { | |
| position: fixed; z-index: 20; | |
| left: 50%; bottom: calc(var(--safe-bottom) + 14px); | |
| transform: translateX(-50%); | |
| display: flex; gap: 4px; padding: 6px; | |
| border-radius: 999px; | |
| background: rgba(255, 255, 255, 0.86); | |
| -webkit-backdrop-filter: blur(16px) saturate(1.4); | |
| backdrop-filter: blur(16px) saturate(1.4); | |
| box-shadow: 0 0 0 1px rgba(31, 35, 40, 0.08), 0 10px 30px rgba(31, 35, 40, 0.16); | |
| } | |
| .tab { | |
| display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; | |
| width: 92px; height: 56px; border-radius: 999px; | |
| font-size: 12px; font-weight: 600; color: var(--ink); | |
| transition: background-color 160ms ease, color 160ms ease; | |
| } | |
| .tab.is-on { background: var(--cream); color: var(--brand); } | |
| /* ---------- About ---------- */ | |
| .about { padding: 26px var(--gutter) 0; display: flex; flex-direction: column; gap: 28px; } | |
| .about h2 { margin: 0 0 12px; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; } | |
| .about p { margin: 0; color: var(--muted); max-width: 60ch; } | |
| .steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; } | |
| .steps li { display: flex; gap: 14px; align-items: flex-start; } | |
| .steps b { | |
| display: flex; align-items: center; justify-content: center; flex-shrink: 0; | |
| width: 30px; height: 30px; border-radius: 999px; | |
| background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; | |
| } | |
| .steps span { padding-top: 4px; } | |
| .states { display: flex; flex-direction: column; gap: 12px; } | |
| .state { display: flex; gap: 14px; align-items: center; } | |
| .state i { flex-shrink: 0; width: 26px; height: 20px; border-radius: 7px; } | |
| .state strong { display: block; font-weight: 600; } | |
| .state span { font-size: 14px; color: var(--muted); } | |
| .panel { padding: 18px; border-radius: 20px; background: var(--cream); } | |
| .panel p { color: var(--ink); } | |
| /* ---------- Place ---------- */ | |
| .place { padding-bottom: 40px; } | |
| .place.has-sheet { padding-bottom: 230px; } | |
| .place .band { padding-top: calc(var(--safe-top) + 12px); padding-bottom: 36px; } | |
| .hero { position: relative; height: 250px; background: var(--cream); } | |
| .hero .place-top { position: absolute; top: calc(var(--safe-top) + 12px); left: var(--gutter); right: var(--gutter); } | |
| .hero .round-btn { box-shadow: 0 4px 14px rgba(31, 35, 40, 0.2); } | |
| .place .band.under-hero { margin-top: -26px; padding-top: 6px; border-radius: 26px 26px 0 0; } | |
| .place-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; } | |
| .round-btn { | |
| display: flex; align-items: center; justify-content: center; flex-shrink: 0; | |
| width: 44px; height: 44px; padding: 0; | |
| border: none; border-radius: 999px; | |
| background: var(--paper); color: var(--brand); cursor: pointer; | |
| } | |
| .round-btn[aria-pressed="true"] svg path { fill: currentColor; } | |
| .place-head { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; } | |
| .place-head h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; } | |
| .place-kind { font-size: 15px; color: var(--on-brand-dim); } | |
| .place-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; } | |
| .place-facts .fact { color: var(--on-brand-dim); } | |
| .chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; } | |
| .chip { | |
| display: inline-flex; align-items: center; | |
| height: 28px; padding: 0 11px; border-radius: 999px; | |
| background: rgba(255, 255, 255, 0.15); color: var(--on-brand); | |
| font-size: 13px; font-weight: 500; | |
| } | |
| .place-body { display: flex; flex-direction: column; gap: 16px; padding: 4px var(--gutter) 0; } | |
| .count h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; } | |
| .count p { margin: 4px 0 0; font-size: 15px; color: var(--muted); } | |
| /* ---------- Forecast ---------- */ | |
| .eta, .best-eta { display: flex; align-items: center; gap: 7px; } | |
| .eta svg, .best-eta svg { flex: none; color: var(--muted); } | |
| .count .eta { margin-top: 10px; font-size: 15px; color: var(--ink); } | |
| .eta b { font-weight: 700; } | |
| .best-eta { margin-top: 2px; font-size: 13px; } | |
| .fc { padding: 16px 16px 12px; border: 1.5px solid var(--cream-deep); border-radius: 18px; background: var(--paper); } | |
| .fc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } | |
| .fc-head h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; } | |
| .fc-trend { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--cream); color: var(--muted); } | |
| .fc-trend.is-up { background: #E3F3EA; color: var(--free); } | |
| .fc-trend.is-down { background: #FBEBD3; color: #8A5A0C; } | |
| .fc-hero { display: flex; align-items: center; gap: 14px; margin: 12px 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--cream); min-height: 64px; } | |
| .fc-big { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--free); font-variant-numeric: tabular-nums; } | |
| .fc-hero-txt { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); } | |
| .fc-hero-txt b { font-size: 15px; font-weight: 600; color: var(--ink); } | |
| .fc-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; } | |
| .fc-bar { | |
| display: flex; flex-direction: column; align-items: center; gap: 6px; | |
| min-height: 44px; padding: 4px 0; border: 0; border-radius: 10px; background: none; | |
| font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; | |
| transition: background 160ms ease; | |
| } | |
| .fc-bar.is-sel { background: var(--cream); } | |
| .fc-val { font-size: 12px; font-weight: 600; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; } | |
| .fc-bar.is-sel .fc-val { color: var(--ink); font-weight: 700; } | |
| .fc-track { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 76px; } | |
| .fc-col { | |
| width: 58%; max-width: 28px; border-radius: 6px; | |
| background: var(--free); opacity: 0.3; | |
| transition: opacity 160ms ease, transform 160ms var(--ease-out); | |
| transform-origin: bottom; | |
| } | |
| .fc-bar.is-now .fc-col { background: var(--brand); opacity: 0.45; } | |
| .fc-bar.is-sel .fc-col { opacity: 1; } | |
| .fc-bar.is-arrive .fc-col { opacity: 0.65; } | |
| .fc-bar.is-arrive.is-sel .fc-col { opacity: 1; } | |
| .fc-bar:active .fc-col { transform: scaleY(0.96); } | |
| .fc-t { font-size: 12px; color: var(--muted); white-space: nowrap; } | |
| .fc-bar.is-sel .fc-t, .fc-bar.is-arrive .fc-t { color: var(--ink); font-weight: 600; } | |
| .fc-bar:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; } | |
| .seg { | |
| display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; | |
| padding: 3px; border-radius: 999px; background: var(--cream); | |
| } | |
| .seg button { | |
| height: 38px; border: none; border-radius: 999px; | |
| background: transparent; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; | |
| transition: background-color 160ms ease, box-shadow 160ms ease; | |
| } | |
| .seg button.is-on { background: var(--paper); font-weight: 600; box-shadow: 0 1px 3px rgba(31, 35, 40, 0.14); } | |
| .plan-wrap { position: relative; width: 100%; } | |
| .plan { | |
| position: absolute; top: 0; left: 0; | |
| background: var(--cream); border-radius: 24px; overflow: hidden; | |
| transform-origin: 0 0; | |
| } | |
| .window-strip { position: absolute; top: 0; left: 28px; right: 28px; height: 5px; border-radius: 0 0 4px 4px; background: var(--paper); } | |
| .fixture { | |
| position: absolute; display: flex; align-items: center; justify-content: center; | |
| border: 1.5px dashed var(--muted); border-radius: 10px; opacity: 0.6; | |
| font-size: 12px; font-weight: 500; color: var(--muted); | |
| } | |
| .table { | |
| position: absolute; display: flex; align-items: center; justify-content: center; | |
| background: var(--paper); box-shadow: inset 0 0 0 1px var(--cream-deep); | |
| font-size: 13px; font-weight: 600; color: var(--muted); | |
| } | |
| .chair { | |
| --c: var(--taken); | |
| position: absolute; width: 34px; height: 34px; padding: 0; | |
| border: none; background: transparent; cursor: default; | |
| transition: opacity 200ms ease; | |
| } | |
| .chair-in { | |
| display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; | |
| width: 100%; height: 100%; | |
| transition: transform 160ms var(--ease-out); | |
| } | |
| .chair-back, .chair-seat { background: var(--c); transition: background-color 300ms ease; } | |
| .chair-back { width: 18px; height: 5px; border-radius: 3px; } | |
| .chair-seat { width: 22px; height: 16px; border-radius: 6px; } | |
| .chair.is-free { --c: var(--free); cursor: pointer; } | |
| .chair.is-held { --c: var(--held); cursor: pointer; } | |
| .chair.is-held .chair-seat { background: var(--held-fill); } | |
| .chair.is-checking { --c: var(--muted); cursor: pointer; } | |
| .chair.is-free:active .chair-in, .chair.is-held:active .chair-in { transform: scale(0.88); } | |
| .chair.is-dim { opacity: 0.2; cursor: default; } | |
| .chair.is-sel .chair-seat { box-shadow: 0 0 0 2.5px var(--cream), 0 0 0 5px var(--brand); } | |
| .chair.is-changed::after { | |
| content: ''; | |
| position: absolute; inset: 3px; | |
| border: 2px solid var(--c); border-radius: 12px; | |
| animation: ring 900ms var(--ease-out) forwards; | |
| pointer-events: none; | |
| } | |
| @keyframes ring { from { opacity: 0.9; transform: scale(0.7); } to { opacity: 0; transform: scale(1.7); } } | |
| .entrance { | |
| position: absolute; left: 0; right: 0; bottom: 10px; | |
| display: flex; align-items: center; justify-content: center; gap: 5px; | |
| font-size: 12px; font-weight: 500; color: var(--muted); | |
| } | |
| .legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 13px; color: var(--muted); } | |
| .legend span { display: inline-flex; align-items: center; gap: 7px; } | |
| .legend i, .state i { display: inline-block; } | |
| .legend i { width: 14px; height: 11px; border-radius: 4px; } | |
| .sw-free { background: var(--free); } | |
| .sw-taken { background: var(--taken); } | |
| .sw-held { background: var(--held-fill); } | |
| .sw-checking { background: var(--muted); } | |
| /* ---------- Seat sheet ---------- */ | |
| .sheet { | |
| position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; | |
| max-width: var(--frame); margin: 0 auto; | |
| display: flex; flex-direction: column; gap: 14px; | |
| padding: 10px var(--gutter) calc(var(--safe-bottom) + 28px); | |
| background: var(--paper); border-radius: 28px 28px 0 0; | |
| box-shadow: 0 -12px 40px rgba(31, 35, 40, 0.16); | |
| transform: translateY(0); | |
| transition: transform 340ms var(--ease-drawer); | |
| } | |
| @starting-style { .sheet { transform: translateY(100%); } } | |
| .sheet.is-closing { transform: translateY(100%); transition: transform 220ms var(--ease-out); } | |
| .sheet-handle { align-self: center; width: 36px; height: 5px; border-radius: 999px; background: var(--cream-deep); } | |
| .sheet-row { display: flex; align-items: flex-start; gap: 14px; } | |
| .sheet-tile { | |
| display: flex; align-items: center; justify-content: center; flex-shrink: 0; | |
| width: 56px; height: 56px; border-radius: 18px; | |
| font-size: 19px; font-weight: 700; color: var(--paper); | |
| } | |
| .sheet-tile.is-free { background: var(--free); } | |
| .sheet-tile.is-held { background: var(--held); color: var(--ink); } | |
| .sheet-tile.is-checking { background: var(--muted); } | |
| .sheet-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; } | |
| .sheet-title { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; } | |
| .sheet-sub { font-size: 14px; color: var(--muted); } | |
| .sheet-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; } | |
| .sheet-chips span { | |
| display: inline-flex; align-items: center; height: 28px; padding: 0 11px; | |
| border-radius: 999px; background: var(--cream); font-size: 13px; font-weight: 500; | |
| } | |
| .sheet-close { | |
| display: flex; align-items: center; justify-content: center; flex-shrink: 0; | |
| width: 44px; height: 44px; margin: -4px -6px 0 0; padding: 0; | |
| border: none; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; | |
| } | |
| .sheet-close span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--cream); } | |
| /* ---------- Splash ---------- */ | |
| .splash { | |
| position: fixed; inset: 0; z-index: 100; | |
| max-width: var(--frame); margin: 0 auto; | |
| display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; | |
| background: var(--brand); color: var(--on-brand); cursor: pointer; | |
| transition: opacity 280ms var(--ease-out); | |
| } | |
| .splash img { | |
| width: 120px; height: 120px; margin-bottom: 14px; | |
| border-radius: 23%; | |
| box-shadow: 0 18px 40px rgba(40, 6, 16, 0.35); | |
| opacity: 0; transform: scale(0.9); | |
| transition: opacity 450ms var(--ease-out), transform 550ms var(--ease-out); | |
| } | |
| .splash.is-in img { opacity: 1; transform: none; } | |
| .splash-word { | |
| font-size: 54px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; | |
| opacity: 0; transform: scale(0.94); | |
| transition: opacity 450ms var(--ease-out), transform 550ms var(--ease-out); | |
| } | |
| .splash-line { font-size: 16px; color: var(--on-brand-dim); opacity: 0; transition: opacity 450ms var(--ease-out) 150ms; } | |
| .splash.is-in .splash-word { opacity: 1; transform: none; } | |
| .splash.is-in .splash-line { opacity: 1; } | |
| .splash.is-out { opacity: 0; } | |
| .offline { | |
| position: fixed; z-index: 60; left: 50%; top: calc(var(--safe-top) + 10px); | |
| transform: translateX(-50%); | |
| padding: 8px 14px; border-radius: 999px; | |
| background: var(--ink); color: var(--paper); | |
| font-size: 13px; font-weight: 500; | |
| box-shadow: 0 8px 24px rgba(31, 35, 40, 0.2); | |
| } | |
| .offline[hidden] { display: none; } | |
| .loading { padding: calc(var(--safe-top) + 120px) var(--gutter); text-align: center; color: var(--muted); } | |
| @media (hover: hover) and (pointer: fine) { | |
| .row:hover .row-name, .card:hover .card-name { color: var(--brand); } | |
| .tab:not(.is-on):hover { background: rgba(31, 35, 40, 0.05); } | |
| .sort:not(.is-on):hover { border-color: var(--muted); } | |
| .sheet-close:hover span { background: var(--cream-deep); } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .press:active, .chair:active .chair-in { transform: none; } | |
| .chair.is-changed::after { animation: none; } | |
| .sheet, .sheet.is-closing { transition: opacity 200ms ease; } | |
| @starting-style { .sheet { transform: none; opacity: 0; } } | |
| .sheet.is-closing { transform: none; opacity: 0; } | |
| .splash-word, .splash img { transform: none; } | |
| } | |