:root{--bg:#f4f5f7;--surface:#fff;--text:#1b1d22;--muted:#646b78;--border:#dcdfe5;--accent:#2459d6;--accent-text:#fff;--danger:#c62f2f;--success:#1d7a46;--radius:12px;--tap:48px;--nav-height:60px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#16181d;--surface:#20232a;--text:#e9ebef;--muted:#9aa1ad;--border:#353943;--accent:#6d95ff;--accent-text:#0e1116;--danger:#ff7b7b;--success:#5fd394;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);margin:0;font-family:system-ui,-apple-system,Hiragino Sans,Noto Sans JP,sans-serif;font-size:16px;line-height:1.6}h1,h2,p{margin:0}h2{margin-bottom:8px;font-size:1.1rem}.app-header{z-index:10;padding:calc(env(safe-area-inset-top) + 12px) 16px 12px;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0}.app-header h1{font-size:1.15rem}.app-main{max-width:720px;padding:16px 16px calc(var(--nav-height) + env(safe-area-inset-bottom) + 24px);margin:0 auto}.bottom-nav{z-index:10;height:calc(var(--nav-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border);grid-template-columns:repeat(4,1fr);display:grid;position:fixed;inset:auto 0 0}.bottom-nav a{color:var(--muted);-webkit-tap-highlight-color:transparent;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:.72rem;text-decoration:none;display:flex}.bottom-nav a.active{color:var(--accent);font-weight:600}.bottom-nav svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.auth-screen{max-width:420px;padding:calc(env(safe-area-inset-top) + 48px) 16px 48px;margin:0 auto}.auth-screen h1{margin-bottom:8px;font-size:1.5rem}.auth-screen .lead{color:var(--muted);margin-bottom:20px}.auth-screen .card{margin-top:16px}.center-screen{text-align:center;place-content:center;gap:16px;min-height:100dvh;padding:16px;display:grid}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.stack{flex-direction:column;gap:16px;display:flex}.stack-lg{flex-direction:column;gap:20px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field label{font-size:.92rem;font-weight:600}.field input{min-height:var(--tap);border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit;border-radius:10px;padding:10px 12px}.field input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:#0000}.hint{color:var(--muted);font-size:.85rem}.error{color:var(--danger);font-weight:600}.success{color:var(--success);font-weight:600}.btn{min-height:var(--tap);border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:10px;padding:0 20px;font-weight:600}.btn.primary{border-color:var(--accent);background:var(--accent);width:100%;color:var(--accent-text)}.btn:disabled{opacity:.6;cursor:default}.card>.hint{margin-bottom:16px}.hint{white-space:pre-line}.hint.center,.center{text-align:center}.spacer{flex:1}.row{align-items:center;gap:8px;display:flex}.row>input,.row>select{flex:1;min-width:0}.field textarea,.row input,.row select,.search,.tag-input{min-height:var(--tap);border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit;border-radius:10px;padding:10px 12px}.field textarea{resize:vertical}.field .label{font-size:.92rem;font-weight:600}.btn{justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.btn.small{min-height:40px;padding:0 14px;font-size:.92rem}.btn.primary-inline{border-color:var(--accent);background:var(--accent);color:var(--accent-text)}.btn.danger{border-color:var(--danger);color:var(--danger)}.icon-btn{width:40px;height:40px;color:var(--text);justify-content:center;align-items:center;margin-left:-8px;font-size:1.8rem;line-height:1;text-decoration:none;display:inline-flex}.segmented{background:var(--border);border-radius:12px;gap:4px;padding:4px;display:flex}.segmented button{min-height:38px;color:var(--muted);font:inherit;background:0 0;border:0;border-radius:9px;flex:1;font-size:.9rem;font-weight:600}.segmented button[aria-selected=true],.segmented button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #0000001f}.fab{right:20px;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 20px);z-index:11;background:var(--accent);width:60px;height:60px;color:var(--accent-text);border-radius:50%;place-items:center;font-size:1.8rem;text-decoration:none;display:grid;position:fixed;box-shadow:0 4px 14px #00000040}.toolbar{gap:8px;display:flex}.search{flex:1;min-width:0}.post-list,.tag-rows{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.post-item{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:inherit;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 16px;text-decoration:none;display:flex}.post-item strong{font-size:1.05rem;line-height:1.45}.post-item .untitled{color:var(--muted)}.post-item .meta{color:var(--muted);font-size:.82rem}.badge{background:var(--border);color:var(--muted);border-radius:999px;padding:1px 8px;font-size:.75rem;font-weight:700;display:inline-block}.badge.published{background:color-mix(in srgb, var(--success) 18%, transparent);color:var(--success)}.badge.scheduled{background:color-mix(in srgb, var(--accent) 18%, transparent);color:var(--accent)}.editor-header{z-index:10;padding:calc(env(safe-area-inset-top) + 8px) 12px 8px 16px;background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:8px;display:flex;position:sticky;top:0}.editor-main{max-width:720px;padding:16px 16px calc(env(safe-area-inset-bottom) + 48px);flex-direction:column;gap:12px;margin:0 auto;display:flex}.editor-main>.error,.editor-main>.success{justify-content:space-between;align-items:center;gap:12px;display:flex}.title-input{border:0;border-bottom:1px solid var(--border);width:100%;color:var(--text);font:inherit;background:0 0;padding:8px 0;font-size:1.4rem;font-weight:700}.title-input:focus{border-bottom-color:var(--accent);outline:none}.body-input{border:1px solid var(--border);background:var(--surface);width:100%;min-height:55dvh;color:var(--text);resize:vertical;border-radius:10px;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:16px;line-height:1.6}.disclosure{width:100%;min-height:32px;color:var(--text);font:inherit;background:0 0;border:0;justify-content:space-between;align-items:center;padding:0;font-weight:700;display:flex}.tag-input{flex-wrap:wrap;align-items:center;gap:6px;padding:6px 8px;display:flex}.tag-input input{min-width:8em;min-height:34px;color:var(--text);font:inherit;background:0 0;border:0;flex:1}.tag-input input:focus{outline:none}.tag-input:focus-within{outline:2px solid var(--accent);outline-offset:1px;border-color:#0000}.chip{background:var(--border);border-radius:999px;align-items:center;gap:2px;padding:2px 4px 2px 10px;font-size:.9rem;display:inline-flex}.chip button{width:28px;height:28px;color:var(--muted);background:0 0;border:0;font-size:1rem}.suggestions{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.suggestions button{border:1px solid var(--border);background:var(--surface);min-height:38px;color:var(--text);font:inherit;border-radius:999px;align-items:center;gap:6px;padding:0 12px;font-size:.9rem;display:inline-flex}.count{color:var(--muted);font-size:.8rem}.tag-rows .card{padding:0}.tag-rows .card>.stack{padding:14px 16px}.tag-row{width:100%;min-height:var(--tap);color:var(--text);font:inherit;text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.editor-toolbar{flex-wrap:wrap;gap:8px;display:flex}.upload-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.upload-list li{border:1px solid var(--border);background:var(--surface);border-radius:10px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px;padding:8px 12px;font-size:.88rem;display:grid}.upload-list .name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.upload-list progress{width:100%;height:6px;accent-color:var(--accent);grid-column:1}.upload-list li.error .error{grid-column:1;font-weight:400}.upload-list li.error .icon-close{grid-area:1/2/span 2}.icon-close{width:40px;height:40px;color:var(--muted);background:0 0;border:0;border-radius:50%;font-size:1.4rem;line-height:1}.media-grid{grid-template-columns:repeat(3,1fr);gap:4px;margin:0;padding:0;list-style:none;display:grid}@media (width>=600px){.media-grid{grid-template-columns:repeat(4,1fr)}}.media-grid button{aspect-ratio:1;background:var(--border);border:0;border-radius:6px;width:100%;padding:0;display:block;position:relative;overflow:hidden}.media-grid img{object-fit:cover;width:100%;height:100%}.media-grid button[aria-pressed=true]{outline:3px solid var(--accent);outline-offset:-3px}.media-grid button[aria-pressed=true]:after{content:"✓";background:var(--accent);width:24px;height:24px;color:var(--accent-text);border-radius:50%;place-items:center;font-size:.85rem;font-weight:700;display:grid;position:absolute;top:6px;right:6px}.media-badge{color:#fff;background:#0009;border-radius:6px;padding:0 6px;font-size:.7rem;position:absolute;bottom:4px;left:4px}.media-preview{object-fit:contain;background:var(--bg);border-radius:10px;width:100%;height:auto;max-height:50dvh;display:block}.link-list{margin:0;padding-left:1.2em}.link-list a{color:var(--accent)}.cover-picker{scroll-snap-type:x proximity;gap:8px;margin:0;padding:2px 2px 6px;list-style:none;display:flex;overflow-x:auto}.cover-picker li{scroll-snap-align:start;flex:none}.cover-picker button{background:var(--border);border:2px solid #0000;border-radius:10px;width:96px;height:72px;padding:0;display:block;position:relative;overflow:hidden}.cover-picker button[aria-checked=true]{border-color:var(--accent)}.cover-picker img{object-fit:cover;width:100%;height:100%}.cover-none{height:100%;color:var(--muted);place-items:center;font-size:.75rem;display:grid}.cover-label{color:#fff;text-align:center;background:#0000008c;padding:1px 0;font-size:.72rem;position:absolute;bottom:0;left:0;right:0}.sheet-backdrop{z-index:100;background:#00000073;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);border-radius:16px 16px 0 0;flex-direction:column;width:100%;max-width:720px;max-height:90dvh;display:flex}.sheet-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:8px 8px 8px 16px;display:flex}.sheet-header h2{margin:0;font-size:1rem}.sheet-body{overscroll-behavior:contain;flex:1;padding:16px;overflow-y:auto}.sheet-footer{padding:12px 16px calc(env(safe-area-inset-bottom) + 12px);border-top:1px solid var(--border)}.sheet .sheet-body:last-child{padding-bottom:calc(env(safe-area-inset-bottom) + 16px)}.sheet-body .sheet-footer{background:var(--surface);margin:16px -16px -16px;position:sticky;bottom:-16px}
