/* Project planning uses the existing studio palette and fixed typography. */
.main,.content,.project-tab-content,.project-insights,.stage-progress{min-width:0}
.page-heading h1{overflow-wrap:anywhere}.content{max-width:1640px}.tools{flex-wrap:wrap}.toolbar .tools{min-width:0}
.board{grid-auto-columns:minmax(240px,290px);grid-auto-flow:column;grid-template-columns:none;justify-content:start}.board-column{min-width:0}.gallery{grid-template-columns:repeat(auto-fill,minmax(240px,310px));justify-content:start}
.project-back{display:inline-block;margin-bottom:20px;color:var(--muted);font-size:12px}.project-back:hover{color:var(--accent)}.project-heading{margin-bottom:20px}.project-heading h1{font-size:30px;letter-spacing:-1px;max-width:840px}
.project-passport{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap;padding-bottom:24px;border-bottom:1px solid var(--border);font-size:12px;color:#697061}.project-passport>span{display:inline-flex;align-items:center;gap:7px}.project-passport b{font-weight:600}.project-team{margin-left:auto}.template-origin{background:var(--bg);padding:7px 9px;border-radius:4px;font-size:11px}
.project-insights{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr);gap:32px;margin:26px 0;padding:26px;border:1px solid var(--border);border-radius:10px;background:linear-gradient(110deg,#fbfaf6,#fff)}
.overall-progress{display:flex;gap:23px;align-items:center}.progress-ring{width:132px;height:132px;flex:0 0 132px;border-radius:50%;background:conic-gradient(var(--accent) var(--completion),#ebece5 0);display:grid;place-items:center}.progress-ring>div{border-radius:50%;width:110px;height:110px;background:#fcfbf8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.progress-ring strong{font-size:29px;line-height:1.2;font-weight:600;letter-spacing:-1px}.progress-ring span{font-size:11px;color:var(--muted)}.overall-progress h2{font-size:16px}.overall-progress p{font-size:12px;margin:9px 0;color:#666e60}.progress-explanation{font-size:11px;color:#7d8276;line-height:1.6;display:block;max-width:210px}
.stage-progress{display:grid;gap:11px;align-content:center}.stage-progress-row{display:grid;grid-template-columns:minmax(110px,1fr) 38px 100px 45px;align-items:center;gap:12px;text-align:left;font-size:11px;padding:5px 7px;border-radius:5px}.stage-progress-row:hover,.stage-progress-row.selected{background:#f1f2eb}.stage-progress-row b{font-weight:600}.stage-progress-row small{font-size:10px;text-align:right;color:#747d6b}.stage-track{height:5px;background:#eceee6;border-radius:5px;overflow:hidden}.stage-track>span{display:block;height:100%;background:#8a9b80;border-radius:5px}.project-about{margin:0 0 25px}.project-about summary,.project-extra summary,.plan-editor summary{cursor:pointer;font-weight:600;font-size:12px}.project-about p{margin-bottom:0}.project-date-warning{margin-bottom:20px}.stage-filter-note{display:flex;gap:15px;align-items:center;margin-bottom:18px;font-size:12px}.project-tab-content> .section-head{margin-top:8px}.project-tab-content .table-scroll{max-width:100%}
.project-wizard{width:min(1020px,calc(100% - 32px));max-height:92dvh;padding:28px 32px}.project-wizard .form-header{margin-bottom:8px}.wizard-intro{margin:0 0 24px;color:#72796b;font-size:13px}.template-choice{border:0;margin:0 0 24px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.template-choice legend{font-size:11px;color:#747c6b;padding:0 0 10px}.template-option{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid var(--border);border-radius:8px;cursor:pointer;min-width:0}.template-option:has(input:checked){border-color:var(--accent);background:#fbf5f0}.template-option input{accent-color:var(--accent);margin:8px 0 0}.template-option strong{font-size:25px;letter-spacing:-.7px;display:inline-block;margin-right:4px;font-weight:600}.template-option span{font-size:12px}.template-option small{display:block;line-height:1.6;color:#7a7f73;font-size:11px;margin-top:7px}.wizard-fields{grid-template-columns:1fr 1fr}.template-summary{padding:18px 20px;background:#f5f6f0;border-radius:7px;margin:20px 0}.template-summary>div:first-child{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.template-summary strong{font-size:17px;font-weight:600}.template-summary span{font-size:12px}.template-summary .summary-label{color:#75806c;font-size:11px}.plan-stage-summary{display:flex;gap:9px 20px;flex-wrap:wrap;margin-top:14px;color:#747d6c}.plan-stage-summary span{font-size:10px}.plan-stage-summary b{font-weight:600;margin-left:3px;color:var(--ink)}.start-notice{font-size:11px;margin:10px 0 0;color:#906c3b}.plan-editor{margin-top:20px}.plan-editor>.rule-hint{margin-bottom:12px}.plan-scroll{overflow:auto;border:1px solid var(--border);border-radius:6px;max-height:355px}.plan-table{min-width:720px;table-layout:fixed}.plan-table th{position:sticky;top:0;z-index:1;padding:10px}.plan-table th:first-child{width:40%}.plan-table th:nth-child(2){width:22%}.plan-table th:nth-child(3){width:12%}.plan-table th:nth-child(4){width:26%}.plan-table td{padding:7px 8px}.plan-table input,.plan-table select{font-size:11px;min-width:0;width:100%;padding:8px;border:1px solid transparent;background:transparent;border-radius:4px}.plan-table input:hover,.plan-table input:focus,.plan-table select:hover,.plan-table select:focus{border-color:#d5d8cb;background:#fff}.plan-table [data-plan-date]{font-size:11px;color:#747c6b}.project-extra{margin-top:22px}.project-extra>.form-grid{margin-top:16px}.team-options{display:flex;flex-wrap:wrap;gap:10px 20px}.team-options label{display:flex;align-items:center;gap:7px;font-size:12px}.team-options input{accent-color:var(--accent)}
.task-layout{grid-template-columns:minmax(0,1fr) minmax(240px,290px);align-items:start}.task-layout>*{min-width:0}.task-layout .panel{width:100%;padding:20px}.props{grid-template-columns:80px minmax(0,1fr)}.task-description{overflow-wrap:anywhere}.dependency-row{flex-wrap:wrap}.dependency-row a{min-width:100px}.comment p{overflow-wrap:anywhere}.project-wizard .form-actions{position:sticky;bottom:-28px;margin-bottom:-28px;padding:16px 0 24px;background:#fff;border-top:1px solid var(--border)}
@media(max-width:1200px){.project-insights{grid-template-columns:1fr;gap:23px;padding:23px}.overall-progress{gap:22px}.progress-ring{width:112px;height:112px;flex-basis:112px}.progress-ring>div{width:92px;height:92px}.stage-progress{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 25px}.stage-progress-row{grid-template-columns:minmax(90px,1fr) 36px;gap:5px 10px}.stage-track{grid-row:2;grid-column:1}.stage-progress-row small{grid-row:2;grid-column:2}.progress-explanation{max-width:330px}}
@media(max-width:760px){.project-heading{flex-wrap:wrap;gap:14px}.project-heading h1{font-size:26px}.project-team{margin-left:0}.project-passport{gap:12px 16px}.project-insights{padding:18px;gap:20px}.project-wizard{padding:20px;width:calc(100% - 20px)}.template-choice{gap:7px}.template-option{padding:10px;gap:5px;flex-wrap:wrap}.template-option strong{font-size:22px;display:block}.template-option small{display:none}.template-option span{font-size:11px}.project-wizard .form-actions{bottom:-20px;margin-bottom:-20px;padding-bottom:20px;flex-wrap:wrap}.task-layout{grid-template-columns:1fr}.overall-progress h2{font-size:15px}.overall-progress{gap:16px}.progress-ring{width:100px;height:100px;flex-basis:100px}.progress-ring>div{width:82px;height:82px}.progress-ring strong{font-size:25px}.stage-progress{gap:9px 15px}.wizard-fields{grid-template-columns:1fr}.toolbar .tools{flex-wrap:wrap}.board{grid-template-columns:none;grid-auto-columns:260px}.project-wizard .form-grid{grid-template-columns:1fr}}
@media(max-width:420px){.stage-progress{grid-template-columns:1fr}.project-passport>span{flex-wrap:wrap}.overall-progress{align-items:center}.template-option{font-size:10px}.project-heading .tools{width:100%}.page-heading .tools{max-width:100%}}

.task-stage-caption{display:block;color:var(--muted);font-size:10px;margin-top:5px;font-weight:400}.task-name>span{min-width:0;overflow-wrap:anywhere}

/* Shared select affordance: a consistent inset on forms, filters and task props. */
select,.filter,.plan-table select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23707869' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:14px;padding-right:36px;min-height:34px}.plan-table select{padding-right:30px;background-position:right 8px center}.plan-table select:hover,.plan-table select:focus{background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23707869' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.brand{gap:10px}.brand>span:last-child{min-width:0;font-size:14px;white-space:nowrap}.brand small{font-size:9px;letter-spacing:.3px;margin-top:6px}.local-data-note{display:block;font-size:10px;margin-top:10px}.review-flag{display:block;font-size:10px;color:#946d31;margin-top:5px}.project-links{border:1px solid var(--border);border-radius:8px;padding:18px 20px;margin:24px 0}.project-links .section-head{margin:0 0 12px}.project-link-grid{display:flex;gap:10px;flex-wrap:wrap}.project-link-grid a{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#f5f5ef;border:1px solid var(--border);border-radius:5px;font-size:12px}.project-links .task-description{font-size:12px;margin-bottom:0}.scope-summary{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.scope-summary span{border:1px solid var(--border);padding:6px 10px;border-radius:5px;font-size:11px;background:#f8f8f4}.scope-editor{margin:22px 0}.scope-editor summary{font-size:12px;font-weight:600;cursor:pointer}.scope-editor>.rule-hint{margin:12px 0}.review-notice{margin:16px 0;padding:14px 16px;background:#fbf4e5;border-radius:6px;font-size:12px;line-height:1.6}.review-notice p{margin:4px 0}.review-notice a{text-decoration:underline}.template-option{align-items:center}.template-option input{margin:0}.template-option strong{line-height:1.2}.project-wizard .form-actions{z-index:5}.brand-mark{flex-shrink:0}

/* Compact, persistent sorting; wrap controls instead of stretching the workspace. */
.sort-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:-6px 0 20px;padding-top:2px}.sort-controls{display:flex;align-items:center;gap:8px;max-width:100%;min-width:0}.sort-controls>label,.sort-hint{font-size:11px;color:var(--muted)}.sort-select{width:auto;max-width:220px;min-width:160px}.sort-direction{min-width:34px;min-height:34px;justify-content:center;padding:5px 10px;font-size:18px}.sort-direction:disabled{opacity:.35;cursor:default}.project-tab-content+.sort-toolbar{margin-top:0}.toolbar{flex-wrap:wrap;gap:12px}.toolbar .search{min-width:0}.sort-controls button:focus-visible,.sort-controls select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:480px){.sort-toolbar{align-items:flex-start;gap:7px}.sort-controls{width:100%}.sort-select{flex:1;min-width:0;max-width:none}.sort-controls>label{flex-shrink:0}.sort-hint{width:100%}.toolbar>.tools{max-width:100%}.toolbar .filter{max-width:100%}}

.sort-toolbar-grouped{justify-content:flex-start;column-gap:28px;row-gap:10px}.sort-toolbar-grouped .sort-controls>label{white-space:nowrap}.sort-toolbar-grouped .sort-select{min-width:150px}
@media(max-width:600px){.sort-toolbar-grouped .sort-controls{width:100%;flex-wrap:wrap}.sort-toolbar-grouped .sort-controls>label{width:100%}.sort-toolbar-grouped .sort-select{flex:1;max-width:none;min-width:0}}
