/* Swytch design system: dark, rounded, Apple-style. Shared by home, camera and studio. */
:root { color-scheme: dark; --bg: #060a13; --panel: #0d1422; --card: #161e2e; --card2: #212c40; --line: #ffffff1a; --text: #f4f6fa; --dim: #8e99ab;
  --blue: #3d8bff; --blue-deep: #11284d; --red: #ff3b30; --green: #30d158; --amber: #ffb020; --glass: #101826cc;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.35 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[data-icon] { display: inline-flex; }
[data-icon] svg { width: 24px; height: 24px; display: block; }
.dim { color: var(--dim); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--card2); font-weight: 600; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); }
.btn.primary, .btn[aria-pressed="true"] { background: var(--blue); color: #fff; }
.btn.danger { background: var(--red); color: #fff; }
.btn.outline { background: #ffffff0d; box-shadow: inset 0 0 0 1.5px #ffffffb0; }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn.big { min-height: 56px; font-size: 17px; width: 100%; }
.btn:disabled { opacity: .4; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--card); flex: none; }
.icon-btn:hover { background: var(--card2); }
.icon-btn[aria-pressed="true"] { background: var(--blue); color: #fff; }

/* iOS-style grouped lists */
.group-title { margin: 22px 6px 8px; color: var(--dim); font-size: 15px; font-weight: 600; }
.group { background: var(--card); border-radius: 16px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 16px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--line); }
.row > :first-child { flex: 1; min-width: 0; }
.row small { display: block; color: var(--dim); font-size: 12px; }
.row select, .row input[type="text"], .row input:not([type]) { background: none; border: 0; text-align: right; color: var(--dim); max-width: 60%; min-height: 34px; }
.row select { appearance: none; -webkit-appearance: none; padding-right: 16px; background: no-repeat right center / 9px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 2l6 6-6 6' fill='none' stroke='%238e99ab' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); text-align-last: right; }
input.switch { appearance: none; -webkit-appearance: none; flex: none; width: 51px; height: 31px; border-radius: 999px; background: #39424f; position: relative; transition: background .2s; cursor: pointer; margin: 0; }
input.switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px #0006; transition: translate .2s; }
input.switch:checked { background: var(--blue); }
input.switch:checked::before { translate: 20px; }
input[type="range"] { accent-color: var(--blue); width: 100%; }
.field { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; min-height: 44px; }
.seg { display: flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--card); }
.seg > button { flex: 1; min-height: 34px; padding: 0 10px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--dim); white-space: nowrap; }
.seg > button[aria-pressed="true"] { background: var(--card2); color: var(--text); box-shadow: 0 1px 3px #0006; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 24px; width: min(460px, 94vw); padding: 20px; box-shadow: 0 30px 80px #000a; }
dialog::backdrop { background: #0009; backdrop-filter: blur(6px); }
dialog h2 { margin: 0; font-size: 19px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* ---- Home ---- */
.home { display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); gap: 14px; max-width: 560px; margin: auto; }
.home header { display: flex; align-items: center; justify-content: space-between; }
.home h1 { font-size: 22px; margin: 0 0 0 6px; letter-spacing: -.01em; }
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 26px 26px; border-radius: 30px; text-align: center;
  background: radial-gradient(120% 70% at 20% 0%, #2456b8 0%, transparent 60%), radial-gradient(90% 60% at 100% 30%, #6a2fb0 0%, transparent 65%), linear-gradient(180deg, #121a2c, #0a0f1a); }
.hero .mark { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: #ffffff1f; backdrop-filter: blur(10px); }
.hero .mark svg { width: 40px; height: 40px; }
.hero h2 { font-size: 27px; line-height: 1.15; margin: 10px 0 0; letter-spacing: -.02em; }
.hero p { margin: 0; }
.hero .spacer { flex: 1; min-height: 20px; }
.hero .warn { background: #ffb02026; color: #ffd98a; border-radius: 14px; padding: 12px 14px; font-size: 14px; }
