[hidden] { display: none !important; }
#projectDialog { width: min(680px,calc(100vw - 24px)); max-height: min(92vh,900px); border: 0; border-radius: 20px; padding: 0; box-shadow: 0 34px 100px #071a3760; }
#projectDialog::backdrop { background: #071529aa; backdrop-filter: blur(4px); }
#tasksGlobalFeedback:empty { display: none; }
.tasks-sidebar-brand small { display: block; font-size: 11px; letter-spacing: .09em; font-weight: 500; color: #aab8d6; margin-top: 4px; }
.tasks-sidebar-brand { min-height: 84px; }
.tasks-header #authAccount { display: block; }
.tasks-sidebar-foot { padding: 16px; }
.tasks-ecosystem { margin-bottom: 19px; }
.tasks-ecosystem summary { color: #bdc9df; cursor: pointer; font-weight: 700; font-size: 11px; padding: 6px 0; }
.tasks-ecosystem p { color: #aab8d0; line-height: 1.6; }
.tasks-ecosystem a, .product-ecosystem a { display: block; padding: 7px 0; color: #bac9ff; text-decoration: none; }
.tasks-product { min-height: 400px; }
.product-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.product-toolbar b { color: #233450; font-size: 15px; }
.product-toolbar small { display: block; margin-top: 5px; color: #63738d; font-size: 12px; }
.product-toolbar > div:last-child { display: flex; gap: 9px; flex-wrap: wrap; }
.product-toolbar .tasks-primary { background: linear-gradient(125deg,#7464ff,#5146df); box-shadow: 0 7px 16px #5a4de42b; }
.product-project-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,290px),1fr)); gap: 19px; }
.product-project-card { padding: 24px; border: 1px solid #dde5f3; border-radius: 19px; background: linear-gradient(150deg,#fff 60%,#f4f2ff); box-shadow: 0 8px 28px #253d6610; transition: transform .2s ease, box-shadow .2s ease; }
.product-project-card:hover { transform: translateY(-3px); box-shadow: 0 15px 35px #253d661c; }
.product-project-top, .product-progress-heading, .product-project-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.product-project-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #eeeaff; color: #6754e8; font-size: 25px; }
.product-tag { font-size: 11px; font-weight: 750; padding: 6px 10px; border-radius: 30px; background: #eeeaff; color: #6854d4; }
.product-tag.done { background: #e4f8ef; color: #087751; }
.product-tag.planned { background: #fff3e5; color: #99500c; }
.product-project-card h2 { margin: 22px 0 10px; font-size: 21px; line-height: 1.3; color: #1e2e4a; overflow-wrap: anywhere; }
.product-project-card p { min-height: 44px; color: #60718c; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.product-project-executors{margin:12px 0;color:var(--tasks-muted,#526580);font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body[data-tasks-theme="dark"] .product-project-executors{color:#afc2e1}
@media(max-width:700px){.product-project-card{padding:16px!important;gap:8px}.product-project-card h2{margin:10px 0 6px;font-size:18px}.product-project-card p{min-height:0;margin:6px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}.product-project-card .product-progress-heading{margin:10px 0 5px;font-size:12px}.product-project-card .product-project-icon{width:34px;height:34px}.product-project-card .product-project-icon img{width:34px;height:34px}.product-project-executors{margin:6px 0;font-size:13px}.product-project-actions{gap:6px;flex-wrap:wrap}.product-project-actions button{padding:9px 10px;font-size:13px}}
.product-progress-heading { font-size: 11px; color: #697b94; margin: 24px 0 9px; }
.product-progress-heading b { color: #344566; }
.product-project-card progress { width: 100%; height: 7px; appearance: none; border: 0; border-radius: 10px; background: #e8edf6; }
.product-project-card progress::-webkit-progress-bar { background: #e8edf6; border-radius: 10px; }
.product-project-card progress::-webkit-progress-value { background: linear-gradient(90deg,#7361ed,#1bb58f); border-radius: 10px; }
.product-project-card progress::-moz-progress-bar { background: #7361ed; border-radius: 10px; }
.product-project-bottom { margin-top: 9px; color: #78879e; font-size: 11px; }
.product-project-bottom b { color: #6152cf; }
.product-project-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.product-project-actions button { flex: 1; font-size: 12px; }
.product-note { color: #61748e; font-size: 12px; line-height: 1.7; margin-bottom: 22px; }
.product-team-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,300px),1fr)); gap: 14px; }
.product-member { display: flex; align-items: center; gap: 14px; padding: 22px; background: #fff; border: 1px solid #dce5f3; border-radius: 16px; box-shadow: 0 7px 19px #23365708; }
.product-member h2 { margin: 0 0 6px; font-size: 15px; overflow-wrap: anywhere; color: #203451; }
.product-member small { color: #6e809a; font-size: 11px; }
.product-avatar { display: grid; place-items: center; flex: none; width: 45px; height: 45px; border-radius: 15px; background: linear-gradient(145deg,#7668fb,#5349c9); color: white; font-size: 14px; font-weight: 750; }
.product-member-dot { margin-left: auto; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #14ac83; }
.product-search input, .product-setting select { border: 1px solid #d5e0ef; border-radius: 10px; padding: 11px 13px; color: #233a59; background: #fff; max-width: 100%; }
.product-settings-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
.product-panel { padding: 28px; border: 1px solid #dce5f2; background: white; border-radius: 20px; box-shadow: 0 9px 30px #2336570c; }
.product-panel h2 { color: #233553; font-size: 23px; margin: 12px 0; }
.product-panel p { color: #64768e; font-size: 13px; line-height: 1.8; }
.product-setting { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px 0; border-top: 1px solid #e8edf5; margin-top: 16px; }
.product-setting b { display: block; color: #2b3b57; font-size: 13px; }
.product-setting small { display: block; max-width: 340px; color: #72839a; font-size: 11px; line-height: 1.7; margin-top: 7px; }
.product-ecosystem { margin-top: 24px; font-size: 12px; }
.product-ecosystem summary { color: #6753d6; cursor: pointer; font-weight: 750; }
.product-ecosystem a { color: #476daf; }
.product-empty { text-align: center; padding: 60px 25px; border: 1px dashed #cfd9eb; background: #ffffff8a; border-radius: 20px; color: #627692; grid-column: 1/-1; }
.product-empty > span { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: #eeeaff; color: #7664ee; font-size: 30px; }
.product-empty h2 { color: #2c3d5a; font-size: 22px; margin: 20px 0 9px; }
.product-empty p { font-size: 13px; line-height: 1.8; }
.product-timeline { list-style: none; padding: 22px 28px; margin: 0; border: 1px solid #dce5f2; border-radius: 19px; background: white; }
.product-timeline li { display: flex; gap: 17px; padding: 17px 0; border-bottom: 1px solid #edf0f7; color: #2d3c56; }
.product-timeline li:last-child { border: 0; }
.product-timeline-dot { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #f0ecff; color: #735bdd; }
.product-timeline b { font-size: 13px; }
.product-timeline p { font-size: 13px; margin: 6px 0; overflow-wrap: anywhere; }
.product-timeline small { color: #71839a; font-size: 11px; }
.tasks-toolbar-actions { display: flex; gap: 9px; }
#taskProjectFilter { max-width: 220px; }
body[data-tasks-density="compact"] .task-row { padding-block: 8px; }
body[data-tasks-density="compact"] .tasks-list { padding-bottom: 5px; }
body[data-tasks-motion="calm"] .product-project-card { transition: none; }
body[data-tasks-motion="calm"] .product-project-card:hover { transform: none; }
@media(max-width:900px) { .tasks-side-nav { overflow-x: auto; scrollbar-width: thin; } .tasks-side-nav button { flex: none; white-space: nowrap; } .product-settings-grid { grid-template-columns: 1fr; } }
@media(max-width:720px) { .product-panel { padding: 22px; } .product-project-card { padding: 22px; } .tasks-toolbar { flex-wrap: wrap; gap: 13px; } .tasks-toolbar-actions { display: flex; width: 100%; } #taskProjectFilter { max-width: 190px; width: 100%; } .tasks-toolbar-actions label { flex: 1; min-width: 0; } .product-toolbar { align-items: flex-start; } .product-timeline { padding: 15px; } }
@media(prefers-reduced-motion:reduce) { .product-project-card { transition: none; } .product-project-card:hover { transform: none; } }
.product-archive-confirm { padding:16px; border:1px solid #f3c8bc; border-radius:12px; background:#fff6f2; color:#55372e; }
.product-archive-confirm p { margin:0 0 12px; }
.product-archive-confirm > div { display:flex; flex-wrap:wrap; gap:10px; }
.product-activity-link { border:0; background:none; color:#5b43ce; padding:0; font:inherit; text-align:left; cursor:pointer; }
.product-activity-link:hover { text-decoration:underline; }

/* A distinctive shell; quiet surfaces keep business content in focus. */
.tasks-main { background:radial-gradient(ellipse at 92% 0,#a899ff12,transparent 48%); }
.tasks-hero h1 { letter-spacing:-1.2px; }
.tasks-sidebar { background:radial-gradient(ellipse at 0 0,#46397955,transparent 50%),#111a2e; }
.tasks-sidebar-brand { border-bottom:1px solid #c4c7ff12; }
.tasks-side-nav button[aria-pressed="true"] { background:linear-gradient(100deg,#7562ef38,#7562ef15); box-shadow:inset 3px 0 #a291ff; }
.tasks-header { background:#ffffffed; box-shadow:0 3px 22px #21355a06; }
.tasks-surface { border-radius:19px; box-shadow:0 12px 35px #23365708; }
.tasks-toolbar { background:linear-gradient(100deg,#f9faff,#fff); border-radius:19px 19px 0 0; }
.product-project-card { position:relative; overflow:hidden; border-top:3px solid #9b8bf1; }
.product-project-icon { background:linear-gradient(140deg,#eee9ff,#eaf4ff); border:1px solid #d7d8fa; box-shadow:0 5px 12px #5c4be214; }
.product-project-card:focus-within { border-color:#8b79e4; }
.task-reminder-form fieldset{border:0;padding:0;margin:18px 0 0;min-width:0}
.task-reminder-option{display:flex;align-items:flex-start;gap:12px;padding:13px 0;cursor:pointer}
.task-reminder-option input[type="checkbox"]{width:19px;height:19px;min-width:19px;padding:0;margin:3px 0 0;accent-color:#7757df}
.task-reminder-option b,.task-reminder-option small{display:block;line-height:1.5}
.task-reminder-option small,.task-reminder-help{color:#65758d;font-size:12px}
.task-reminder-phases{border-top:1px solid #e4e8f2;margin:5px 0 18px;padding-left:10px}
.task-reminder-form fieldset:disabled{opacity:.55}
.task-reminder-status{font-size:13px;min-height:20px;color:#493d7a}
.task-reminder-help{line-height:1.65;margin-bottom:0}
.task-deadline-field{padding:18px;border:1px solid #f2d4b2;border-left:3px solid #ef9b51;border-radius:13px;background:linear-gradient(130deg,#fff7ec,#fff)}
.task-deadline-field h3{margin:0 0 8px;font-size:15px;color:#70421b}
.task-deadline-field p{margin:0 0 14px;font-size:12px;line-height:1.6;color:#775537}
.task-deadline-history{white-space:pre-line;overflow-wrap:anywhere;border-left:2px solid #e9ba88;padding-left:10px;color:#775537;line-height:1.65}
.task-assignment-field{padding:16px;border:1px solid #d8cef4;border-radius:14px;background:#f7f4ff}
.task-assignment-field h3{margin:0 0 8px;font-size:14px;color:#493a78}
.task-assignment-field p{margin:0 0 14px;font-size:12px;line-height:1.6;color:#594d78}
.task-assignment-history{white-space:pre-line;overflow-wrap:anywhere;border-left:2px solid #ad96e7;padding-left:10px;color:#594d78;line-height:1.65}
.tasks-saved-views{margin:0 20px 16px;padding:16px;border:1px solid #e1daf5;border-radius:14px;background:linear-gradient(110deg,#f6f3ff,#fafcff)}
.saved-views-toolbar,.saved-views-actions,.saved-view-form,.saved-view-form>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.saved-views-toolbar{justify-content:space-between}
.saved-views-toolbar b{display:block;font-size:13px;color:#302749}
.saved-views-toolbar small{display:block;margin-top:4px;font-size:11px;color:#65708b}
.saved-views-actions select{max-width:260px;min-width:170px;min-height:36px;border:1px solid #d8d1ec;border-radius:9px;background:#fff;padding:6px 10px;color:#302749}
.saved-views-actions .tasks-secondary,.saved-view-form button,[data-view-undo]{font-size:12px;min-height:36px}
.saved-view-form{margin-top:14px;padding-top:14px;border-top:1px solid #e1daf5}
.saved-view-form label{display:grid;gap:6px;flex:1 1 240px;font-size:12px;color:#514570}
.saved-view-form input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #d8d1ec;border-radius:9px;color:#17263e;background:#fff;min-height:38px}
.saved-view-current,.saved-view-feedback{margin:10px 0 0;font-size:12px;line-height:1.5;overflow-wrap:anywhere;color:#65577e}
.saved-view-feedback:empty{display:none}
[data-view-undo]{margin-top:10px}
@media(max-width:720px){.tasks-saved-views{margin:0 12px 12px;padding:13px}.saved-views-actions{width:100%}.saved-views-actions select{max-width:none;flex:1 1 100%;min-width:0}.saved-views-actions button{flex:1}.saved-view-form>div{width:100%}.saved-view-form>div button{flex:1}}
.product-member { background:linear-gradient(120deg,#fff 65%,#f5f4ff); border-left:3px solid #b3a8ee; }
.product-avatar { border-radius:50%; box-shadow:0 0 0 5px #f1eeff; }
.product-panel { background:radial-gradient(ellipse at 100% 0,#f1eeff,transparent 55%),#fff; border-top:3px solid #ab9cf0; }
.product-panel:nth-child(2) { border-top-color:#89cecf; }
.product-empty { background:radial-gradient(ellipse at 50% 0,#eee9ff99,transparent 70%),#ffffffb0; }
.product-empty > span { border-radius:50%; border:1px solid #d6cef5; box-shadow:0 0 0 10px #efebff70; }
.product-timeline { background:linear-gradient(110deg,#fcfbff,#fff); }
.tasks-app button:focus-visible,.tasks-app a:focus-visible { outline:2px solid #957eea; outline-offset:3px; }
@media(max-width:900px) { .tasks-side-nav button[aria-pressed="true"] { box-shadow:inset 0 -3px #a291ff; } }
.product-team-directory{display:grid;gap:14px}
.product-departments{border:1px solid #d4def0;border-radius:16px;background:#f8faff;overflow:hidden}
.product-departments>summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:16px 20px;color:#243e6a;font-weight:750;list-style:none}
.product-departments>summary::-webkit-details-marker{display:none}
.product-departments>summary::before{content:'›';font-size:22px;line-height:1;transition:transform .18s}
.product-departments[open]>summary::before{transform:rotate(90deg)}
.product-departments>summary b{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 7px;border-radius:10px;background:#e6edff;color:#355caa;font-size:13px}
.product-departments>.product-team-grid{padding:0 14px 14px}
.product-departments>summary:focus-visible{outline:3px solid #9d8ae6;outline-offset:-3px}
@media(prefers-reduced-motion:reduce){.product-departments>summary::before{transition:none}}

[data-team-member]{display:grid;gap:12px;padding:14px 0;max-width:680px}[data-team-member] label{display:grid;gap:6px;font-size:14px;font-weight:600}[data-team-member] input,[data-team-member] select{padding:10px 12px;border:1px solid #c7d2e8;border-radius:10px;font:inherit;min-width:0;width:100%;box-sizing:border-box}#taskCommentComposer input{max-width:100%;box-sizing:border-box;font:inherit;padding:8px}#taskCommentComposer label{display:grid;gap:6px;margin:8px 0}

#tasksInstall{white-space:nowrap;flex:0 0 auto;font-size:13px;padding:10px 12px}.tasks-header-actions{flex-wrap:wrap}.tasks-header-actions .auth-account{min-width:0;max-width:180px}@media(max-width:720px){#tasksInstall{padding:8px;font-size:12px}}

/* Installation help stays outside the header flow, including on small phones. */
.tasks-install-help{width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;box-sizing:border-box;overflow:auto;border:1px solid #c7d2e8;border-radius:22px;background:#fff;color:var(--task-ink,#17365e);box-shadow:0 24px 80px #0c17394d}
.tasks-install-help::backdrop{background:#101a3866}
.tasks-install-help .task-form{padding:24px;gap:16px}.tasks-install-help h2{font-size:23px;line-height:1.2}.tasks-install-help :is(p,li){font-size:16px;line-height:1.55}.tasks-install-help h3{font-size:17px;margin:0 0 8px}.tasks-install-help section{padding:14px;border:1px solid #a9b8d655;border-radius:14px}.tasks-install-help :is(p,ol){margin:0}.tasks-install-help ol{padding-left:20px}.tasks-install-help li+li{margin-top:8px}.tasks-install-help [data-pwa-close]{min-height:44px;min-width:44px}.tasks-install-help .task-form-heading{align-items:start}.tasks-install-help .task-form-actions{margin:0}
@media(max-width:480px){.tasks-install-help .task-form{padding:18px;gap:14px}}
