:root{--bg: #1b6aa3;--bg-2: #0e4f80;--header: rgba(0, 0, 0, .18);--column: #ebecf0;--card: #fff;--text: #172b4d;--muted: #5e6c84;--primary: #0079bf;--danger: #c9372c;--shadow: 0 1px 3px rgba(9, 30, 66, .18);--radius: 12px;font-family:Segoe UI,system-ui,sans-serif}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{color:var(--text);background:linear-gradient(160deg,var(--bg),var(--bg-2))}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{min-height:100vh;display:flex;flex-direction:column}.splash,.board-status{min-height:100vh;display:grid;place-items:center;color:#fff;font-size:1.1rem}.board-status.error{color:#ffd4d0}.app-header{display:flex;align-items:center;gap:12px;padding:10px 16px;background:#00000038;color:#fff;position:sticky;top:0;z-index:20;min-height:56px}.header-left{display:flex;align-items:center;gap:12px;min-width:0}.brand{font-weight:800;letter-spacing:.02em;font-size:1.05rem;white-space:nowrap}.board-switcher{display:flex;align-items:center;min-width:0;max-width:280px;background:#ffffff29;border-radius:8px}.board-title,.board-title-input,.board-select{border:0;background:transparent;color:#fff;padding:8px 10px;min-width:0}.board-title{font-weight:700;font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.board-title-input{width:220px}.board-select{width:34px;flex-shrink:0;padding:8px 4px;cursor:pointer;appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='white' d='M1 1l5 5 5-5'/></svg>");background-repeat:no-repeat;background-position:center;color:transparent;text-indent:-999px}.search,.app-header .header-actions button{border:0;border-radius:8px;background:#ffffff29;color:#fff;padding:8px 10px}.search{min-width:160px;max-width:280px;flex:1}.search::placeholder{color:#ffffffbf}.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}.user-chip{display:flex;align-items:center;gap:8px;font-size:.9rem;max-width:160px}.user-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-chip img{width:28px;height:28px;border-radius:50%}.danger-outline{background:transparent!important;color:#ffd7d2;border:1px solid rgba(255,215,210,.5)!important}.label-filter{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:10px 16px 0}.label-filter-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}.label-filter-title{color:#ffffffd9;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.label-filter-hint{color:#ffffffa6;font-size:.75rem;font-weight:500}.label-filter-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.label-filter-chip{border:0;border-radius:999px;padding:5px 10px;font-size:.78rem;font-weight:700;opacity:1;box-shadow:0 1px 2px #091e4238;transition:opacity .15s ease,transform .15s ease,box-shadow .15s ease}.label-filter-chip.dimmed{opacity:.45}.label-filter-chip.active{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px #091e4259,0 1px 2px #091e4238;transform:translateY(-1px)}.label-filter-clear{border:0;background:transparent;color:#fff;font-size:.8rem;font-weight:600;text-decoration:underline;padding:4px 6px;opacity:.9}.label-filter-combo{margin:0;color:#ffffffe6;font-size:.78rem;font-weight:600}.board{display:flex;align-items:flex-start;gap:12px;overflow-x:auto;padding:12px 16px 16px;flex:1}.column,.add-column{width:280px;min-width:280px;max-height:calc(100vh - 130px);display:flex;flex-direction:column;background:var(--column);border-radius:var(--radius);padding:10px;box-shadow:var(--shadow)}.column-header,.checklist-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.column-header h2{margin:0;font-size:.98rem;flex:1;min-width:0;cursor:grab;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.column-title-input,.add-column input,.add-card-form textarea,.modal input:not([type=checkbox]),.modal textarea,.modal select{width:100%;border:1px solid #dfe1e6;border-radius:8px;padding:8px}.column-actions{display:flex;align-items:center;gap:2px;color:var(--muted);flex-shrink:0}.column-actions span{min-width:22px;padding:2px 6px;border-radius:999px;background:#dfe1e6;color:#5e6c84;font-size:.75rem;text-align:center}.icon-action,.icon-btn{border:0;background:transparent;color:#6b778c;border-radius:6px;width:28px;height:28px;padding:0;display:grid;place-items:center}.icon-action svg,.icon-btn svg{width:16px;height:16px}.icon-action:hover,.icon-btn:hover{background:#dfe1e6;color:#172b4d}.icon-action.danger{color:#c9372c}.icon-action.danger:hover{background:#fce8e6}.column-cards{display:flex;flex-direction:column;gap:8px;min-height:24px;margin:8px 0;overflow-y:auto}.card{width:100%;text-align:left;background:var(--card);border:0;border-radius:10px;padding:10px;box-shadow:var(--shadow)}.card-covered .due,.card-covered .meta-chip{background:#ffffff47;color:inherit}.card-light .due,.card-light .meta-chip{background:#172b4d1f;color:inherit}.card-covered .progress-track{background:#0003}.card strong{display:block;font-size:.94rem}.card-labels{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}.card-label-chip{display:inline-block;font-size:.68rem;font-weight:700;line-height:1;padding:4px 6px;border-radius:4px}.card-label-chip-contrast{padding-left:8px;letter-spacing:.01em}.card-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.due,.meta-chip{font-size:.75rem;background:#f4f5f7;border-radius:999px;padding:2px 8px;color:var(--muted)}.meta-chip.done{background:#e3fcef;color:#164b35}.progress-track{height:6px;background:#dfe1e6;border-radius:99px;margin-top:8px;overflow:hidden}.progress-track.large{height:10px}.progress-fill{height:100%;background:#61bd4f}.add-card-btn,.add-column button{width:100%;border:0;background:transparent;color:var(--muted);text-align:left;padding:8px;border-radius:8px}.add-card-btn:hover,.add-column button:hover{background:#dfe1e6}.form-row{display:flex;gap:8px;margin-top:8px}.primary{background:var(--primary);color:#fff;border:0;border-radius:8px;padding:8px 12px}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(440px,100%);background:#fff;border-radius:20px;padding:36px 32px;box-shadow:0 20px 50px #0000002e}.login-brand{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:16px}.login-logo{width:88px;height:88px;object-fit:contain;display:block}.login-mark{display:inline-block;background:var(--primary);color:#fff;font-weight:800;padding:6px 10px;border-radius:8px}.login-card h1{margin:0 0 10px;font-size:1.6rem}.login-card p{color:var(--muted);line-height:1.5}.login-error{color:var(--danger);margin:0;font-size:.9rem}.login-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:18px 0 14px;padding:4px;background:#f4f5f7;border-radius:10px}.login-tabs button{border:0;background:transparent;color:var(--muted);border-radius:8px;padding:8px 10px;font-weight:700}.login-tabs button.active{background:#fff;color:var(--text);box-shadow:var(--shadow)}.login-form{display:grid;gap:12px}.login-form label{display:grid;gap:6px;font-size:.85rem;font-weight:700;color:var(--muted)}.login-form input{width:100%;border:1px solid #dfe1e6;border-radius:8px;padding:10px;font-weight:400;color:var(--text)}.login-form input:focus{outline:2px solid #4c9aff;border-color:transparent}.login-submit{margin:4px 0 0}.login-divider{display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--muted);font-size:.85rem}.login-divider:before,.login-divider:after{content:"";flex:1;height:1px;background:#dfe1e6}.google-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;padding:12px;border:1px solid #dfe1e6;border-radius:10px;background:#fff;font-weight:600}.google-btn:disabled,.login-submit:disabled{opacity:.65;cursor:not-allowed}.google-btn svg{width:18px;height:18px}.modal-backdrop{position:fixed;inset:0;background:#00000073;display:grid;place-items:center;padding:16px;z-index:20}.dialog-layer{z-index:30}.dialog{width:min(420px,100%);background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 50px #00000038}.dialog h2{margin:0 0 8px;font-size:1.2rem}.dialog p{margin:0 0 16px;color:var(--muted);line-height:1.45}.dialog label{display:block;font-size:.85rem;font-weight:700;color:var(--muted)}.dialog label input{display:block;width:100%;margin-top:6px;font-weight:400;color:var(--text);border:1px solid #dfe1e6;border-radius:8px;padding:10px}.dialog label input:focus{outline:2px solid #4c9aff;border-color:transparent}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.btn-ghost{background:#f4f5f7;color:var(--text);border:0;border-radius:8px;padding:8px 14px;font-weight:600}.btn-danger{background:var(--danger);color:#fff;border:0;border-radius:8px;padding:8px 14px;font-weight:600}.modal{width:min(860px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:20px}.modal-header{display:flex;gap:8px}.modal-title{font-size:1.2rem;font-weight:700}.modal-grid{display:grid;grid-template-columns:1fr 240px;gap:20px;margin-top:16px}.modal aside{max-height:min(70vh,640px);overflow-y:auto;padding-right:4px}.modal label{display:block;margin-bottom:12px;font-size:.85rem;font-weight:700;color:var(--muted)}.modal label input:not([type=checkbox]),.modal label select,.modal label textarea{margin-top:6px;font-weight:400;color:var(--text)}.checklist-block{margin-top:4px}.field-block{margin-bottom:14px}.field-label{display:block;margin-bottom:6px;font-size:.85rem;font-weight:700;color:var(--muted)}.richtext{border:1px solid #dfe1e6;border-radius:8px;overflow:hidden;background:#fff}.richtext-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:6px;border-bottom:1px solid #ebecf0;background:#f4f5f7}.richtext-toolbar button{border:0;background:transparent;border-radius:6px;padding:4px 8px;font-size:.8rem;color:var(--text);cursor:pointer}.richtext-toolbar button:hover{background:#e4e6ea}.richtext-editor{min-height:120px;max-height:220px;overflow:auto;padding:10px 12px;font-size:.95rem;line-height:1.45;color:var(--text);outline:none}.richtext-editor:empty:before{content:attr(data-placeholder);color:#a5adba;pointer-events:none}.richtext-editor ul,.richtext-editor ol{margin:.4em 0;padding-left:1.4em}.richtext-editor a{color:var(--primary)}.attachments-block{margin:16px 0 18px}.attachment-open-btn{display:grid;gap:4px;width:100%;text-align:left;min-height:72px;margin-bottom:8px;padding:14px 12px;border:1.5px dashed #c1c7d0;border-radius:12px;background:#fafbfc;color:var(--muted);cursor:pointer}.attachment-open-btn strong{color:var(--text);font-size:.95rem}.attachment-open-btn span{font-size:.78rem;line-height:1.35}.attachment-open-btn:hover:not(:disabled),.attachment-open-btn:focus-visible{border-color:var(--primary);background:#e9f2ff;color:var(--primary)}.attachment-open-btn:hover:not(:disabled) strong,.attachment-open-btn:focus-visible strong{color:var(--primary)}.attachment-open-btn:disabled{opacity:.55;cursor:not-allowed}.attachment-dropzone{display:grid;gap:4px;place-items:center;text-align:center;min-height:140px;padding:18px 12px;border:1.5px dashed #c1c7d0;border-radius:12px;background:#fafbfc;color:var(--muted);cursor:pointer;outline:none;transition:border-color .15s ease,background .15s ease,color .15s ease}.attachment-dropzone strong{color:var(--text);font-size:.95rem}.attachment-dropzone span{font-size:.78rem;line-height:1.35}.attachment-dropzone:hover,.attachment-dropzone:focus-visible,.attachment-dropzone.active{border-color:var(--primary);background:#e9f2ff;color:var(--primary)}.attachment-dropzone.active strong,.attachment-dropzone:focus-visible strong{color:var(--primary)}.attach-dialog{width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;color:var(--text);border-radius:14px;box-shadow:0 18px 50px #091e4259;display:flex;flex-direction:column}.attach-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;background:#f4f5f7;border-bottom:1px solid #ebecf0}.attach-dialog-header strong{color:var(--text);font-size:1rem}.attach-dialog-header .icon-btn{color:var(--muted)}.attach-dialog-body{padding:14px}.imgur-setup-steps{margin:0 0 12px;padding-left:18px;color:var(--text);font-size:.85rem;line-height:1.45}.imgur-setup-steps a{color:var(--primary);font-weight:600}.imgur-setup-label{display:grid;gap:6px;margin-bottom:8px;font-size:.85rem;font-weight:700;color:var(--muted)}.imgur-setup-label input{width:100%;border:1px solid #dfe1e6;border-radius:8px;padding:8px;font-weight:400;color:var(--text)}.attach-dialog-error{margin:0 0 10px}.attach-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.attach-dialog-actions button{border:1px solid #dfe1e6;background:#fff;color:var(--text);border-radius:8px;padding:8px 14px;font-weight:700}.attach-dialog-actions button.primary{background:var(--primary);color:#fff;border-color:var(--primary)}.attach-dialog-actions button:disabled{opacity:.65;cursor:not-allowed}.attachment-confirm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;max-height:min(50vh,420px);overflow:auto}.attachment-confirm-item{margin:0;min-width:0;border:1px solid #ebecf0;border-radius:12px;overflow:hidden;background:#091e4208}.attachment-confirm-item img,.attachment-confirm-item video{display:block;width:100%;aspect-ratio:4 / 3;object-fit:contain;background:#0f1c2e}.attachment-confirm-item figcaption{display:grid;gap:2px;padding:8px 10px}.attachment-confirm-item figcaption span{font-size:.8rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-confirm-item figcaption small{color:var(--muted);font-size:.72rem}.attachments-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-top:10px}.attachment-item{min-width:0}.attachment-preview{position:relative;display:block;width:100%;aspect-ratio:4 / 3;border:0;border-radius:10px;overflow:hidden;padding:0;background:#091e420a;cursor:zoom-in}.attachment-preview img,.attachment-preview video{width:100%;height:100%;object-fit:cover;display:block}.attachment-badge{position:absolute;left:8px;bottom:8px;background:#091e42c7;color:#fff;font-size:.7rem;font-weight:700;padding:2px 6px;border-radius:999px}.attachment-meta{display:flex;align-items:center;gap:4px;margin-top:4px}.attachment-meta span{flex:1;min-width:0;font-size:.75rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-lightbox{position:fixed;inset:0;z-index:80;background:#091e42d1;display:grid;place-items:center;padding:20px}.media-lightbox-body{width:min(960px,100%);max-height:90vh;background:#0f1c2e;border-radius:14px;overflow:hidden;color:#fff;display:flex;flex-direction:column}.media-lightbox-body header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#ffffff0f}.media-lightbox-body header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-lightbox-body .icon-btn{color:#fff}.media-lightbox-body img,.media-lightbox-body video{width:100%;max-height:calc(90vh - 52px);object-fit:contain;background:#000;display:block}.checklist-head h3{margin:0;font-size:.95rem;color:var(--text)}.checklist-head span{font-size:.85rem;font-weight:700;color:var(--muted)}.checklist-block .progress-track.large{margin:8px 0 10px}.checklist{list-style:none;padding:0;margin:0 0 12px}.checklist li{display:flex;align-items:center;gap:4px;margin:0;padding:6px 4px 6px 2px;border-radius:8px}.checklist li:hover{background:#f4f5f7}.checklist li label{display:flex;align-items:center;gap:10px;margin:0;flex:1;min-width:0;font-size:.95rem;font-weight:400;color:var(--text);cursor:pointer}.checklist li input[type=checkbox]{width:16px;height:16px;margin:0;flex-shrink:0;accent-color:var(--primary)}.checklist li label span{flex:1;min-width:0;line-height:1.35;overflow-wrap:anywhere}.checklist li .icon-btn{flex-shrink:0;width:28px;height:28px;font-size:1.1rem;line-height:1}.checklist .done{text-decoration:line-through;color:var(--muted)}.checklist-block .form-row{margin-top:0;align-items:center}.checklist-block .form-row input{flex:1;width:auto;min-width:0}.modal aside h3{margin:0 0 4px;font-size:.85rem}.field-hint{margin:0 0 8px;font-size:.75rem;font-weight:400;color:var(--muted);line-height:1.35}.label-picker{display:grid;gap:8px;margin-bottom:18px}.label-edit{display:flex;align-items:center;gap:6px;border-radius:8px;padding:4px 6px 4px 4px;box-shadow:inset 0 0 0 1px #00000014}.label-edit.active{box-shadow:inset 0 0 0 2px #172b4d}.label-check{width:28px;height:28px;flex-shrink:0;border:0;border-radius:6px;background:#ffffff47;color:inherit;font-weight:800;line-height:1}.modal .label-edit input{flex:1;min-width:0;width:auto;margin:0;border:0;background:transparent;color:inherit;font-weight:700;padding:6px 4px;border-radius:6px}.modal .label-edit input:focus{outline:0;background:#ffffff59;border-radius:6px}.cover-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:18px}.cover-swatches button{width:100%;aspect-ratio:1;height:auto;min-height:28px;border:0;border-radius:8px;box-shadow:inset 0 0 0 1px #0000001f;padding:0}.cover-swatches button.active{outline:2px solid #172b4d;outline-offset:1px}.cover-swatches .none{background:#fff;color:var(--muted);font-size:.85rem;font-weight:700}.btn-delete{background:#fff;color:var(--danger);border:1px solid #eb5a46;border-radius:8px;padding:8px 12px;font-weight:700}.btn-delete:hover{background:#fce8e6}.full{width:100%;margin-bottom:8px}.empty-hero{margin:48px auto;width:min(480px,calc(100% - 32px));background:#ffffff1f;color:#fff;padding:28px;border-radius:16px;text-align:center}.empty-hero button{margin-top:12px;background:#fff;color:var(--primary);border:0;border-radius:8px;padding:10px 16px;font-weight:700}@media(max-width:900px){.modal-grid{grid-template-columns:1fr}.app-header{flex-wrap:wrap}.search{max-width:none;order:3;width:100%;flex:1 0 100%}.header-actions{margin-left:0}.user-chip span{display:none}}
