html{min-height:100%;background:var(--background);color:var(--foreground)}
body{margin:0;font-family:system-ui,sans-serif}
#app{max-width:420px;margin:auto;min-height:100dvh;padding-bottom:env(safe-area-inset-bottom)}
.app-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border)}
.app-title{font-size:16px;font-weight:700}
.youmi-theme-toggle{width:44px;height:44px;padding:8px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--foreground);cursor:pointer}
.youmi-theme-toggle svg{width:100%;height:100%}
.preview-note{font-size:12px;color:var(--muted);padding:0 16px;line-height:1.6}

html[data-theme='dark'],html[data-theme='light'],body,#app,.app-header{background:var(--background);color:var(--foreground)}
.app-title{color:var(--foreground)}

.captain-page{padding:16px;display:grid;gap:12px}.captain-page h2,.captain-page h3,.captain-page p{margin:0}.captain-page h2{font-size:21px}.captain-page h3{font-size:15px}.captain-page p{font-size:13px;color:var(--muted);line-height:1.6}.captain-card{display:grid;gap:10px;padding:13px;border:1px solid var(--border);border-radius:17px;background:var(--surface)}.captain-action{font:inherit;font-size:14px;border:1px solid var(--border);border-radius:22px;padding:10px 14px;background:var(--primary-bg);color:var(--primary-fg);cursor:pointer}.captain-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.captain-actions button{background:var(--surface);color:var(--foreground)}.captain-nav{position:sticky;bottom:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--background);border-top:1px solid var(--border);padding:8px 4px calc(8px + env(safe-area-inset-bottom));margin-top:auto;z-index:5}.captain-nav button{display:grid;justify-items:center;gap:4px;border:0;background:none;color:var(--muted);font:inherit;font-size:11px;white-space:nowrap;cursor:pointer;padding:4px}.captain-nav button[aria-current=page]{color:var(--brand)}.captain-nav svg{width:26px;height:26px}#app{display:flex;flex-direction:column}.captain-content{flex:1;min-width:0}
