:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#292622;background:#f6f5f2;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--ink: #292622;--muted: #6b6863;--line: #dfdcd6;--paper: #ffffff;--canvas: #f6f5f2;--accent: #894c35;--accent-dark: #6e3b28;--accent-soft: #eee6e0}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,.dropzone:focus-within{outline:3px solid var(--accent);outline-offset:4px}button,a,input,textarea{transition:background .15s,border-color .15s,color .15s}.icon{flex:0 0 auto;vertical-align:middle}.brand-lockup{display:inline-flex;align-items:center;gap:11px}.brand-logo{width:42px;height:42px;object-fit:contain}.brand-copy{display:flex;flex-direction:column;gap:2px;text-align:left}.brand-copy strong{font-size:15px;font-weight:650;letter-spacing:-.3px}.main-nav .icon{display:none}.brand-copy small{font-size:12px;color:var(--muted)}.brand-button{padding:0;border:0;background:transparent}.app-header{min-height:80px;max-width:1280px;margin:auto;padding:0 40px;display:flex;align-items:center;gap:32px;border-bottom:1px solid var(--line)}.main-nav{display:flex;gap:6px;margin:auto}.nav-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:6px;padding:0 15px;background:transparent;color:var(--muted);font-size:14px;font-weight:550}.nav-button:hover{background:#ece9e4;color:var(--ink)}.nav-button.active{color:var(--accent-dark);background:var(--accent-soft)}.header-user{display:flex;align-items:center;gap:10px}.avatar{flex:0 0 auto;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e9e3d8;color:#63594d;font-size:11px;font-weight:650}.icon-button{width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:var(--muted);border-radius:6px}.icon-button:hover{background:#ece9e4}.main-area{min-height:calc(100svh - 80px)}.content-wrap{width:min(100%,1040px);margin:auto;padding:40px 40px 64px}.mobile-nav{display:none}h1,h2,h3,p{margin-top:0}h1{font-size:28px;line-height:1.25;font-weight:600;letter-spacing:-.7px;margin-bottom:0}h2{font-size:17px;font-weight:600;letter-spacing:-.3px;margin:0}h3{font-size:18px;font-weight:550}p{line-height:1.6}.welcome-row{display:flex;justify-content:space-between;align-items:center;gap:24px}.primary-button,.secondary-button,.google-button{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 20px;border:1px solid transparent;border-radius:6px;font-size:14px;font-weight:550;text-decoration:none}.primary-button{color:var(--paper);background:var(--accent);border-color:var(--accent)}.primary-button:hover:not(:disabled){background:var(--accent-dark);border-color:var(--accent-dark)}.secondary-button{color:var(--ink);background:var(--paper);border-color:var(--line)}.secondary-button:hover:not(:disabled){background:#eee8df;border-color:#bcb0a0}.compact-button{min-height:40px;padding:0 14px}.full-button{width:100%;margin-top:22px}.text-button{min-height:44px;padding:0;border:0;display:inline-flex;align-items:center;gap:10px;background:transparent;color:var(--accent);font-size:14px;font-weight:550}.text-button:hover{color:var(--accent-dark);text-decoration:underline;text-underline-offset:4px}.section-block{margin-top:28px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.activity-count{color:var(--muted);font-size:12px}.empty-state{min-height:200px;padding:32px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid var(--line);border-radius:6px;background:var(--paper)}.empty-state>.icon{width:24px;height:24px;color:var(--muted);margin-bottom:16px}.empty-state h3{margin:0;color:var(--muted);font-size:14px;font-weight:400}.publication-list{border-top:1px solid var(--line)}.publication-row{display:flex;align-items:center;gap:16px;min-height:90px;padding:18px 0;border-bottom:1px solid var(--line)}.publication-thumb{flex:0 0 auto;width:46px;height:46px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:var(--paper)}.publication-description{min-width:0;display:grid;gap:6px}.publication-description strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:550}.publication-description small{font-size:12px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.publication-description .publication-error{color:#9a382c}.publication-link{color:var(--accent);font-size:12px;text-underline-offset:3px}.status-pill{margin-left:auto;flex:0 0 auto;display:flex;align-items:center;gap:6px;border-radius:4px;padding:6px 9px;font-size:12px;color:#65543d;background:#ebe5d9}.status-pill>span{width:5px;height:5px;background:currentColor;border-radius:50%}.status-published{background:#e4e9df;color:#456036}.status-failed{background:#f0ddd6;color:#913b2c}.status-uploading,.status-queued,.status-publishing{background:#eee5d6;color:#705428}.page-intro{margin-bottom:32px}.page-intro h1{margin-bottom:0}.heading-with-action{display:flex;justify-content:space-between;align-items:center;gap:16px}.heading-count{display:inline-block;margin-left:14px;vertical-align:middle;font:400 14px/1 system-ui,sans-serif;color:var(--muted);letter-spacing:0}.create-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.9fr);gap:52px;align-items:start}.form-column{min-width:0;display:grid;gap:28px}.field-label{display:block;margin:0 0 10px;font-size:14px;font-weight:550}.optional-label{margin-left:5px;color:var(--muted);font-weight:400;font-size:12px}.type-fieldset{border:0;min-width:0;margin:0;padding:0}.type-fieldset legend{padding:0}.type-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.type-option{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:8px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--muted);font-size:13px}.type-option .icon{width:17px;height:17px}.type-option.selected{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-dark)}.type-option:hover:not(:disabled){border-color:var(--accent)}.dropzone{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;min-height:188px;padding:24px;border:1px dashed #bcae9e;border-radius:6px;background:var(--paper);cursor:pointer;text-align:center}.dropzone:hover,.dropzone:focus-within{border-color:var(--accent);background:#f2efeb}.dropzone .icon{color:var(--accent);width:26px;height:26px;margin-bottom:3px}.dropzone strong{font-size:15px;font-weight:550}.dropzone small{font-size:12px;color:var(--muted)}.dropzone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.field-hint{margin:9px 0 0;font-size:12px;color:var(--muted);line-height:1.6}.selected-files{display:grid;margin-top:12px;gap:8px}.selected-file{display:flex;align-items:center;gap:10px;min-width:0}.selected-file img,.selected-file video{width:40px;height:40px;object-fit:cover;border-radius:4px}.selected-file>span{min-width:0;display:grid;gap:4px}.selected-file strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500}.selected-file small{font-size:11px;color:var(--muted)}.remove-file{margin-left:auto;flex:0 0 auto;min-width:44px;min-height:44px;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:22px}.remove-file:hover{background:var(--accent-soft);color:var(--accent)}.form-card-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:16px}.caption-field .form-card-heading{margin-bottom:0}.character-count{flex:0 0 auto;color:var(--muted);font-size:11px}.text-input,.caption-input{width:100%;min-width:0;border:1px solid #c9bfb1;border-radius:6px;color:var(--ink);background:var(--paper);font-size:14px;padding:13px}.text-input{min-height:46px}.caption-input{display:block;resize:vertical;line-height:1.6;min-height:130px}input::placeholder,textarea::placeholder{color:#83796e}.form-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:20px;border-top:1px solid var(--line)}.form-actions>span{font-size:12px;color:var(--muted)}.preview-column{position:sticky;top:28px;padding-top:1px}.preview-label{display:block;margin-bottom:16px;font-size:13px;font-weight:500;color:var(--muted)}.preview-card{position:relative;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--paper)}.preview-top{display:flex;align-items:center;gap:10px;padding:16px}.preview-top strong{font-size:13px;font-weight:550}.preview-avatar{width:30px;height:30px;object-fit:contain}.preview-placeholder{aspect-ratio:1;background:#efede9;display:grid;place-items:center;color:#8d8273}.preview-placeholder .icon{width:32px;height:32px}.preview-media{display:block;width:100%;max-height:440px;aspect-ratio:1;object-fit:contain;background:#efede9}.preview-details{padding:16px}.preview-details p{margin:0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.preview-details strong{font-weight:600}.preview-media-count{display:inline-block;margin:12px 16px 0;font-size:12px;color:var(--muted)}.progress-wrap{padding:18px;border:1px solid var(--line);border-radius:6px}.progress-copy{display:flex;justify-content:space-between;font-size:13px;margin-bottom:12px}.progress-track{height:4px;background:var(--line);border-radius:3px;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--accent)}.progress-wrap>small{display:block;margin-top:9px;color:var(--muted);font-size:12px}.notice{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:6px;margin:0 0 22px;padding:13px 16px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.notice-error{border-color:#dab5a5;background:#f4e5dc;color:#813321}.notice-success{border-color:#b8c4aa;background:#e9eddf;color:#3c512c}.notice button{flex:0 0 auto;width:36px;height:36px;margin:-8px;border:0;border-radius:4px;background:transparent;color:inherit;font-size:22px}.muted-copy{font-size:13px;color:var(--muted);line-height:1.6}.admin-grid{display:grid;grid-template-columns:1fr;gap:16px;max-width:760px}.form-card{min-width:0;padding:24px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.form-card-heading p{margin:8px 0 0;font-size:12px;color:var(--muted)}.member-count{font-size:11px;white-space:nowrap;color:var(--muted)}.add-user-form{display:flex;align-items:center;gap:8px;margin-bottom:20px}.add-user-form .primary-button{white-space:nowrap;padding:0 14px}.admin-user-row{display:flex;align-items:center;gap:10px;padding:15px 0;border-top:1px solid var(--line)}.user-details{min-width:0;display:grid;gap:4px}.user-details strong,.user-details small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-details strong{font-size:13px;font-weight:550}.user-details small{font-size:11px;color:var(--muted)}.small-avatar{width:30px;height:30px}.role-label{font-size:10px;color:var(--muted);text-transform:capitalize;margin-left:auto}.role-label.admin{color:var(--accent)}.toggle-button{flex:0 0 auto;width:44px;height:44px;padding:13px 4px;border:0;background:transparent;border-radius:5px}.toggle-button:before{content:"";display:block;width:36px;height:18px;border-radius:20px;background:#c9c0b4}.toggle-button span{position:relative;display:block;width:12px;height:12px;margin-top:-15px;margin-left:3px;border-radius:50%;background:#fff;transition:transform .15s}.toggle-button.enabled:before{background:#697a50}.toggle-button.enabled span{transform:translate(18px)}.admin-detail{border-top:1px solid var(--line);padding:0 2px}.admin-detail summary{min-height:52px;padding:16px 0;cursor:pointer;font-size:14px;font-weight:500}.admin-detail summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.admin-detail[open]{padding-bottom:16px}.audit-row{display:flex;gap:10px;padding:14px 0;border-top:1px solid var(--line)}.audit-row div{min-width:0;display:grid;gap:5px}.audit-row strong{font-size:12px;font-weight:550;text-transform:capitalize}.audit-row small{color:var(--muted);font-size:11px;line-height:1.6;overflow-wrap:anywhere}.audit-dot{flex:0 0 auto;width:5px;height:5px;border-radius:50%;background:var(--accent);margin-top:5px}.integration-row{display:grid;grid-template-columns:6px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:48px;border-top:1px solid var(--line)}.integration-row strong{font-size:12px;font-weight:500}.integration-row small{font-size:11px;color:var(--muted)}.integration-dot{width:6px;height:6px;border-radius:50%;background:#aa753d}.integration-dot.ready{background:#637645}.integration-card .muted-copy{margin:14px 0 0;font-size:12px}.login-page{min-height:100svh;padding:32px 24px;display:grid;place-items:center}.login-logo{width:112px;height:112px;object-fit:contain;display:block;margin:0 auto 24px}.login-copy{width:min(100%,320px);text-align:center;padding:24px 0}.login-copy h1{font-size:23px;font-weight:600;line-height:1.3;margin:0 0 10px;letter-spacing:-.5px}.login-intro{color:var(--muted);font-size:14px;margin:0 0 28px}.google-button{width:100%;min-height:48px;background:var(--paper);border-color:#c9c3bb;color:var(--ink)}.google-button:hover{background:#eee8df;border-color:var(--accent)}.google-mark{width:19px;height:19px;margin-right:3px}.google-button>span{margin:0}.bootstrap-page{display:flex;flex-direction:column;align-items:stretch}.bootstrap-page .login-top{display:flex;align-items:center}.bootstrap-card{margin:auto;padding:32px 0;width:min(100%,400px)}.bootstrap-card h1{font-size:28px;margin-bottom:28px}.setup-error{min-height:100svh;display:flex;flex-direction:column;padding:32px}.setup-error-card{margin:auto;width:min(100%,400px);text-align:center}.setup-error-card h1{font-size:28px;margin-bottom:14px}.setup-error-card p{color:var(--muted);font-size:14px;overflow-wrap:anywhere}.setup-error-icon{width:44px;height:44px;display:grid;place-items:center;margin:0 auto 24px;color:var(--accent);border:1px solid var(--line);border-radius:50%}.loading-screen{min-height:100svh;display:grid;align-content:center;justify-items:center;gap:24px}.spinner{width:22px;height:22px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1000px){.app-header{padding:0 24px;gap:16px}.nav-button{padding:0 12px;gap:6px}.create-layout{gap:28px}.content-wrap{padding:48px 28px 64px}.admin-grid{grid-template-columns:1fr}}@media(max-width:720px){.app-header{min-height:76px;justify-content:space-between;padding:0 20px}.main-nav{display:none}.header-user{gap:4px}.main-area{min-height:calc(100svh - 76px);padding-bottom:76px}.content-wrap{padding:36px 20px 48px}h1{font-size:24px;letter-spacing:-.5px}.welcome-row{gap:12px;align-items:flex-end}.welcome-row .primary-button{padding:0 13px;white-space:nowrap}.section-block{margin-top:24px}.empty-state{min-height:180px}.mobile-nav{position:fixed;z-index:10;inset:auto 0 0;display:flex;padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}.mobile-nav .nav-button{flex:1;flex-direction:column;gap:5px;padding:8px 4px;font-size:11px;min-height:52px}.mobile-nav .icon{width:20px;height:20px}.create-layout{grid-template-columns:1fr;gap:36px}.form-column{gap:24px}.preview-column{position:static;max-width:360px;width:100%;margin:0 auto}.preview-label{margin-bottom:12px}.preview-placeholder{aspect-ratio:4 / 3}.form-actions{align-items:stretch;flex-direction:column;gap:14px}.form-actions>span{order:2;text-align:center}.page-intro{margin-bottom:28px}.type-option{font-size:12px;padding:8px 4px;gap:5px}.publication-row{gap:10px}.publication-thumb{width:38px;height:38px}.publication-description strong{font-size:13px}.publication-description small{font-size:11px}.status-pill{font-size:10px;padding:5px 7px}.form-card{padding:20px 16px}.admin-user-row{gap:8px}.admin-user-row .avatar{display:none}.login-page{padding:24px 24px 20px}.login-copy{padding:24px 0}.login-intro{font-size:13px}}@media(max-width:370px){.brand-logo{width:36px;height:36px}.login-page{padding-left:20px;padding-right:20px}.content-wrap{padding-left:16px;padding-right:16px}.welcome-row{gap:12px}.type-option .icon{display:none}.add-user-form{flex-direction:column;align-items:stretch}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
