*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}:root{--bg: #f3f6fb;--card: #ffffff;--line: #d8e1ee;--text: #1f2a37;--muted: #627389;--brand: #2f6feb;--brand-dark: #234fae}.app-shell{min-height:100vh;background:radial-gradient(900px 360px at 10% -10%,#dfeaff 0%,transparent 65%),radial-gradient(760px 340px at 100% 0%,#e9f2ff 0%,transparent 60%),var(--bg);color:var(--text)}.app-header{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1.5rem;border-bottom:1px solid var(--line);background:#ffffffd9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-actions{display:flex;align-items:center;gap:.45rem;flex-wrap:nowrap;justify-content:flex-end;min-width:0}.header-actions>*{flex:0 0 auto}.header-actions .ghost-btn{white-space:nowrap;min-width:88px;height:36px}.project-switcher{min-width:170px;max-width:240px;width:auto;white-space:nowrap}.app-header h1{margin:0;font-size:1.15rem}.sub{margin:.2rem 0 0;color:var(--muted);font-size:.86rem}.page-container{max-width:1120px;margin:0 auto;padding:1.2rem}.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:1rem;box-shadow:0 14px 34px #1f2a3714}.auth-card{max-width:440px;margin:2.2rem auto;padding:1.2rem;background:linear-gradient(180deg,#f8fbff,#fff)}.auth-brand{display:flex;align-items:center;gap:.75rem}.brand-mark{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#4485ff,#7eb1ff);display:grid;place-items:center;box-shadow:0 8px 18px #4485ff47}.brand-mark span{color:#f8fbff;font-weight:800;font-size:.95rem}.auth-head h2{margin:0 0 .35rem;font-size:1.15rem}.auth-head p{margin:0;color:var(--muted);font-size:.88rem}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.stats{display:flex;flex-wrap:wrap;gap:.6rem}.stats span{padding:.36rem .62rem;border-radius:10px;font-size:.9rem;font-weight:700}.stat-total{background:linear-gradient(180deg,#f3f8ff,#e6f0ff);border:1px solid #bfd4fb;color:#1f4ea8}.stat-todo{background:linear-gradient(180deg,#f5f7fb,#e9eef9);border:1px solid #c8d4eb;color:#3d4f73}.stat-doing{background:linear-gradient(180deg,#eef8ff,#dff0ff);border:1px solid #b8daf7;color:#14508f}.stat-blocked{background:linear-gradient(180deg,#fff3f3,#ffe5e5);border:1px solid #f2c2c2;color:#b42323}.stat-done{background:linear-gradient(180deg,#ecfbf3,#daf5e7);border:1px solid #b4e5c8;color:#1f7d47}.form-grid,.create-grid{display:grid;gap:.75rem;margin-top:.85rem}.create-panel{margin-top:1rem;border:1px solid var(--line);border-radius:10px;padding:.85rem .95rem;background:#f8fbff}.create-panel-head{display:flex;justify-content:space-between;align-items:center}.create-panel h3{margin:0;font-size:.98rem}.create-grid{grid-template-columns:1fr 140px 160px}.full-col{grid-column:1 / -1}label{font-size:.94rem;font-weight:600;color:#2f4058}input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%;margin-top:.3rem;padding:.5rem .62rem;font-size:.88rem;border-radius:8px;border:1px solid var(--line);background:#fff;color:#1f2a37}input::placeholder,textarea::placeholder{color:#7d8ea5}textarea{resize:vertical}button{padding:.46rem .8rem;font-size:.84rem;border-radius:8px;border:1px solid var(--brand-dark);background:var(--brand);color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;text-align:center}.action-btn{background:linear-gradient(180deg,#4e84ea,#2f6feb);border-color:#2a5fcb;white-space:nowrap;min-width:56px}button:hover{filter:brightness(.96)}a{color:#1f5fd0;text-decoration:none}a:hover{text-decoration:underline}.ghost-btn{border:1px solid #c7d5ea;background:#fff;color:#2a3f61}.error-tip{margin:0;color:#c02626;font-size:.86rem}.project-hierarchy{margin-top:.9rem;display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}.hierarchy-label{color:#5f7190;font-size:.82rem;font-weight:700}.project-chip{border:1px solid #c5d6f0;background:#fff;color:#2f4e80;border-radius:999px;padding:.28rem .6rem;font-size:.78rem;cursor:pointer}.project-chip.active{background:#e6f0ff;border-color:#aecaef;color:#1d4ea5}.table-toolbar{margin-top:.9rem;display:none;justify-content:flex-end}.task-table{width:100%;margin-top:1rem;border-collapse:collapse;font-size:.9rem}.filter-row th{background:#f7faff;padding:.45rem}.th-filter-input{width:100%;margin:0;padding:.35rem .45rem;font-size:.78rem;border-radius:6px;border:1px solid #c8d5ea;background:#fff;color:#2b3f5f}.th-filter-input::placeholder{color:#7f92b0}.th-reset-btn{width:100%;padding:.35rem .4rem;font-size:.76rem}.task-table th,.task-table td{border-bottom:1px solid var(--line);text-align:center;padding:.52rem;vertical-align:middle}.pager{margin-top:.9rem;display:flex;align-items:center;justify-content:space-between;gap:.6rem;color:#5e718e;font-size:.84rem}.pager-actions{display:flex;gap:.45rem}button:disabled{opacity:.45;cursor:not-allowed}.cell-center{text-align:center}.status-pill{display:inline-block;padding:.24rem .56rem;border-radius:999px;font-weight:700}.status-todo{background:#edf2fa;border:1px solid #c8d4eb;color:#3d4f73}.status-doing{background:#e4f1ff;border:1px solid #b8daf7;color:#14508f}.status-blocked{background:#ffe8e8;border:1px solid #f2c2c2;color:#b42323}.status-done{background:#e0f5ea;border:1px solid #b4e5c8;color:#1f7d47}.inline-desc{margin:.3rem 0 0;color:var(--muted);font-size:.82rem;max-width:420px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.muted{color:#9aa7b5}.modal-mask{position:fixed;inset:0;background:#10182873;display:grid;place-items:center;z-index:20}.modal{width:min(520px,92vw);background:#fff;border-radius:12px;border:1px solid var(--line);box-shadow:0 24px 56px #0f172a38;padding:1rem}.modal h3{margin:0 0 .8rem;font-size:1rem}.modal p{margin:0 0 .85rem;color:#576981}.permission-grid{margin-top:.7rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.permission-grid.single-project{grid-template-columns:minmax(0,1fr)}.permission-card{border:1px solid #d7e2f4;border-radius:10px;padding:.6rem;background:#f7faff}.permission-card h4{margin:0 0 .35rem;font-size:.88rem}.member-adder{display:flex;gap:.5rem;margin-bottom:.7rem}.member-adder select{flex:1}.permission-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;font-size:.84rem;margin:.35rem 0;padding:.35rem .45rem;border:1px solid #d8e2f2;border-radius:8px;background:#fff}.permission-row .ghost-btn{min-width:56px;padding:.32rem .52rem}.mobile-filter-list{display:grid;gap:.6rem}.mobile-filter-item{border:1px solid #d7e2f4;border-radius:10px;padding:.6rem;background:#f7faff}.mobile-filter-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.45rem}.mobile-filter-head span{font-size:.84rem;font-weight:700;color:#314a70}.mobile-filter-head .ghost-btn{font-size:.72rem;padding:.24rem .45rem}.task-detail .detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem}.task-detail .detail-grid{margin-top:.9rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem .8rem}.task-detail .detail-section{margin-top:.95rem;border-top:1px solid var(--line);padding-top:.75rem}.timeline{margin:0;padding-left:1.1rem}.timeline li{margin-bottom:.55rem}.modal-actions{margin-top:.8rem;display:flex;justify-content:flex-end;gap:.6rem;flex-wrap:wrap}@media(max-width:640px){.create-grid{grid-template-columns:1fr}.app-header{flex-direction:column;align-items:stretch;gap:.55rem}.header-actions{gap:.35rem;overflow-x:auto;max-width:100%;width:100%;padding-bottom:.1rem;justify-content:flex-start;flex-wrap:nowrap}.member-adder{flex-direction:column}.header-actions .ghost-btn{min-width:72px}.project-switcher{min-width:142px;flex:0 0 auto}.permission-grid{grid-template-columns:1fr}.panel-head{flex-direction:column}.table-toolbar{display:flex}.pager{flex-direction:column;align-items:flex-start}.filter-row,.task-table thead tr:first-child{display:none}.task-table,.task-table tbody,.task-table tr,.task-table td{display:block;width:100%}.task-table tr{margin-bottom:.7rem;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}.task-table td{border-bottom:1px solid #edf2f9;display:flex;align-items:center;justify-content:space-between;gap:.6rem;text-align:right;padding:.55rem .65rem}.task-table td:last-child{border-bottom:none}.task-table td:before{content:attr(data-label);color:#5d728f;font-size:.78rem;font-weight:700;text-align:left}.inline-desc{text-align:right}.task-detail .detail-grid{grid-template-columns:1fr}}
