.tp-workspace{--tp-line:var(--line);--tp-muted:var(--muted)}.tp-workspace .heading h1{font-size:28px}.tp-tabs{display:flex;gap:3px;border:1px solid var(--line);border-radius:12px;background:#efefea;padding:4px}.tp-tabs button{border:0;background:transparent;border-radius:9px;padding:8px 17px;font:inherit;font-size:12px;color:var(--muted)}.tp-tabs button.active{background:white;box-shadow:0 2px 6px #00000009;color:var(--ink);font-weight:700}.tp-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:22px}.tp-period{display:flex;align-items:center;gap:5px}.tp-period .btn{min-height:36px;padding:6px 10px;font-size:11px}.tp-date{background:transparent;border:0;font:inherit;min-width:135px;text-align:center;font-weight:700}.tp-search{margin-inline-start:auto;display:flex;align-items:center;gap:8px;background:white;border:1px solid var(--line);border-radius:11px;padding:0 10px;max-width:260px}.tp-search input{border:0;box-shadow:none;outline:none;background:transparent;min-width:0;font-size:12px;padding:8px 0;min-height:36px}.tp-toolbar>select{max-width:190px;min-height:37px;font-size:12px}.tp-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}.tp-summary button{display:flex;align-items:center;gap:9px;padding:16px 18px;border:1px solid var(--line);border-radius:15px;background:white;font:inherit;font-size:12px;text-align:right;color:var(--muted)}.tp-summary b{font-size:24px;font-weight:800;color:var(--ink)}.tp-summary button.active{background:var(--soft);border-color:#e5ca60;color:#705800}.tp-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:start}.tp-person{border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:17px;min-width:0}.tp-person.attention{border-color:#ddce96}.tp-person-head{display:flex;align-items:center;gap:10px}.tp-avatar{width:38px;height:38px;border-radius:13px;background:#f4f1e5;color:#887028;display:grid;place-items:center;flex-shrink:0;font-weight:700}.tp-person h2{font-size:14px;margin:0}.tp-person-head>div{min-width:0}.tp-person-head small{font-size:10px;color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:175px}.tp-place{border-radius:7px;padding:4px 8px;font-size:10px;display:inline-flex;align-items:center;white-space:nowrap;line-height:1.5;background:#f2f2ed;color:#73756e}.tp-person-head>.tp-place{margin-inline-start:auto}.tp-place.remote{background:#fff3bc;color:#8b6900}.tp-place.office{background:#edf1f4;color:#596c7d}.tp-place.leave{background:#f4eff8;color:#846b96}.tp-person-state{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:18px}.tp-state{font-size:10px;color:#787b75}.tp-state.blocked,.tp-state.late{color:#a4553a}.tp-state.review{color:#997900}.tp-state.done{color:var(--green)}.tp-state.progress{color:#5a7e6d}.tp-person-state>small{font-size:9px;color:var(--muted)}.tp-duty-preview{margin:15px 0;display:grid;gap:9px;min-height:44px}.tp-duty-preview>div{display:flex;align-items:center;gap:7px;font-size:11px}.tp-duty-preview>div>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.tp-duty-preview small{font-size:9px;color:var(--muted);white-space:nowrap}.tp-dot{height:6px;width:6px;flex-shrink:0;border-radius:50%;background:#cbcbbd}.tp-dot.done{background:#68967a}.tp-dot.blocked,.tp-dot.late{background:#c68a67}.tp-dot.review,.tp-dot.rework{background:#d8bd56}.tp-nudge{display:flex;align-items:center;gap:6px;font-size:10px;color:#92701e;background:#fffaf0;border-radius:8px;padding:7px 8px;margin-bottom:12px}.tp-followup-preview{font-size:10px;color:#917737;margin:8px 0}.tp-card-actions{display:flex;align-items:center;gap:7px;padding-top:12px;border-top:1px solid #f0eee5}.tp-card-actions .btn{min-height:31px;padding:5px 9px;font-size:10px;font-weight:500}.tp-card-actions .btn:last-child{margin-inline-start:auto}.tp-muted{font-size:11px;line-height:1.9;color:var(--muted)}.tp-footnote{font-size:10px;color:#92958d;margin-top:20px}.tp-empty{grid-column:1/-1;background:white;padding:35px}.tp-pager{display:flex;align-items:center;justify-content:center;gap:14px;font-size:11px;margin-top:20px}.tp-pager .btn{font-size:11px;min-height:32px}.tp-month-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:13px;font-size:11px;color:var(--muted)}.tp-month-meta .btn{min-height:35px;font-size:11px;font-weight:600}.tp-matrix-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px;background:white;max-height:72dvh;isolation:isolate;scrollbar-width:thin}.tp-matrix{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;text-align:center;font-size:11px}.tp-matrix th,.tp-matrix td{padding:5px 4px;border-bottom:1px solid #f0eee8;text-align:center;min-width:45px;height:65px}.tp-matrix thead th{position:sticky;top:0;background:#fcfcf8;z-index:2;font-weight:400;height:58px;border-bottom:1px solid var(--line)}.tp-matrix thead th>span{font-size:9px;color:#9c9d94;display:block}.tp-matrix thead th>b{font-size:13px}.tp-matrix .tp-name-col{position:sticky;right:0;min-width:195px;max-width:195px;text-align:right;background:white;z-index:3;border-left:1px solid var(--line);padding:10px 13px}.tp-matrix thead .tp-name-col{z-index:4;background:#fcfcf8;font-weight:700}.tp-name-col>div{display:flex;align-items:center;gap:9px}.tp-name-col .tp-avatar{width:30px;height:30px;border-radius:10px;font-size:11px}.tp-name-col>div>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600}.tp-name-col small{display:block;font-weight:400;font-size:9px;color:var(--muted);max-width:135px;overflow:hidden;text-overflow:ellipsis}.tp-matrix .is-today{background:#fff6ce}.tp-cell{font:inherit;border:1px solid transparent;border-radius:9px;background:#f8f8f5;width:38px;min-height:43px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;font-size:9px;color:#b0b0a4;cursor:pointer}.tp-cell.remote{background:#fff6ce;color:#967400}.tp-cell.office{background:#f0f3f5;color:#657986}.tp-cell.leave{background:#f6f0f8;color:#977ea6}.tp-cell.off.none{background:#f4f4f0;color:#bbbbae}.tp-cell.draft{border:1px dashed #b69b34}.tp-cell small{font-size:8px;border-radius:4px;padding:0 4px;background:#ffffffbf;line-height:1.6}.tp-cell.needs-duty small{color:#b07248}.tp-cell:hover{box-shadow:inset 0 0 0 1px #c4ae5c}.tp-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-top:13px}.tp-legend>span{display:flex;align-items:center;gap:5px}.tp-legend i{height:9px;width:9px;display:inline-block;border-radius:3px}.tp-legend .remote{background:#ffeb99}.tp-legend .office{background:#dce4e9}.tp-legend .draft{border:1px dashed #b69b34}.tp-editor{min-width:0}.tp-place-select,.tp-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tp-editor-metrics{display:flex;align-items:center;gap:18px;padding:12px 15px;background:#faf9f3;border:1px solid var(--line);border-radius:12px;font-size:11px;color:var(--muted)}.tp-editor-metrics strong{margin-inline-start:5px;color:var(--ink);font-size:16px}.tp-add-duty{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.tp-add-duty>.field{flex:1;min-width:180px}.tp-add-duty .btn{min-height:39px;font-size:11px}.tp-duty{border:1px solid var(--line);border-radius:15px;padding:15px;margin:12px 0;min-width:0;display:grid;gap:12px;background:#fffefa}.tp-duty-top{display:flex;align-items:center;justify-content:space-between;font-size:12px}.tp-duty-top .btn{min-height:26px;font-size:10px;padding:3px 7px;color:var(--muted)}.tp-duty .field{font-size:11px}.tp-duty input,.tp-duty select,.tp-duty textarea{font-size:12px}.tp-duty-conditions{border:1px solid #eeeade;border-radius:10px;padding:10px;font-size:11px}.tp-duty-conditions summary{cursor:pointer;color:var(--muted)}.tp-duty-conditions>.tp-two{margin-top:12px}.tp-checks{display:flex;flex-direction:column;gap:9px;margin:12px 0}.tp-checks>label{display:flex;align-items:center;gap:7px;font-size:11px}.tp-checks input{min-height:17px;min-width:17px;width:17px;height:17px;margin:0;accent-color:#d3ad10}.tp-analysis-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.tp-badge{font-size:10px;line-height:1.5;background:#f0efe8;color:#8c897c;padding:5px 8px;border-radius:7px}.tp-badge.good{background:#edf6ed;color:#5d7a60}.tp-badge.warn{background:#fff3d3;color:#a17e29}.tp-badge.bad{background:#fcf0e9;color:#b0785a}.tp-analysis-note{font-size:11px;line-height:1.9;margin-top:8px;color:#8b7b54}.tp-analysis-note.bad{color:#aa6244}.tp-analysis-note small{display:block;font-size:10px;color:var(--muted)}.tp-duty-analysis .btn{font-size:10px;min-height:28px;padding:3px 8px;margin-top:7px}.tp-basis{font-size:9px;color:var(--muted);margin-top:10px;line-height:1.9}.tp-basis summary{cursor:pointer}.tp-editor-actions{display:flex;gap:9px;flex-wrap:wrap;position:sticky;bottom:-16px;background:#ffffffef;padding:12px 0}.tp-editor-actions .btn{font-size:12px}.tp-people-checks{border:1px solid var(--line);padding:12px;display:flex;gap:12px;flex-wrap:wrap;border-radius:12px;max-height:170px;overflow:auto;font-size:12px}.tp-people-checks label,.tp-weekdays label{display:flex;align-items:center;gap:6px}.tp-people-checks input,.tp-weekdays input{width:16px;height:16px;min-height:16px;accent-color:#d2ac1a}.tp-weekdays{display:flex;flex-wrap:wrap;gap:10px;border:1px solid var(--line);padding:12px;border-radius:12px;font-size:11px}.tp-weekdays legend,.tp-people-checks legend{font-size:11px;color:var(--muted)}.tp-detail-duty{display:grid;gap:9px;border:1px solid var(--line);border-radius:12px;padding:15px;font-size:12px}.tp-detail-duty small{color:var(--muted);font-size:11px}.tp-detail-duty .btn{font-size:11px;min-height:33px}.tp-issues{max-height:370px;overflow:auto;display:grid;gap:8px}.tp-issues>div{display:flex;align-items:center;gap:12px;justify-content:space-between;border:1px solid var(--line);border-radius:10px;padding:11px;font-size:11px}.tp-issues small{display:block;color:#a87c43;line-height:1.8;margin-top:4px}.tp-issues .btn{min-height:30px;font-size:10px}.tp-picker{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;text-align:center}.tp-picker>span{font-size:11px;color:var(--muted)}.tp-picker>button{border:1px solid var(--line);background:white;border-radius:9px;min-height:38px;font:inherit;font-size:12px}.tp-picker>button.today{background:var(--soft);border-color:#d6bc55}.tp-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-size:14px}.tp-history{font-size:12px}.tp-history article{padding:12px 0;border-bottom:1px solid var(--line)}.tp-own-widget{margin-bottom:15px}.tp-own-widget .section-head{align-items:center}.tp-own-widget h2{font-size:16px}.tp-own-widget p{font-size:12px;color:var(--muted);margin-top:10px}.tp-own-widget .btn{font-size:11px}.tp-workspace button:focus-visible,.tp-picker button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media(max-width:1300px){.tp-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-person-head small{max-width:180px}}@media(max-width:900px){.tp-toolbar{gap:9px}.tp-summary{gap:8px}.tp-summary button{padding:12px;font-size:11px}.tp-summary b{font-size:22px}.tp-search{max-width:220px}.tp-workspace .heading{align-items:center}.tp-workspace .heading h1{font-size:23px}}@media(max-width:600px){.tp-workspace .heading{flex-direction:column;align-items:stretch;gap:13px}.tp-tabs{width:100%}.tp-tabs button{flex:1}.tp-toolbar{gap:10px}.tp-period{width:100%;justify-content:space-between}.tp-date{min-width:120px;font-size:13px}.tp-search{margin:0;max-width:none;flex:1}.tp-toolbar>select{max-width:145px;font-size:11px}.tp-summary{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}.tp-summary button{padding:13px;font-size:11px}.tp-summary b{font-size:23px}.tp-cards{grid-template-columns:1fr;gap:12px}.tp-person{padding:15px}.tp-person-head small{max-width:170px}.tp-month-meta{align-items:flex-start;gap:10px}.tp-month-meta>.row{width:100%}.tp-month-meta .btn{font-size:10px;flex:1}.tp-matrix .tp-name-col{min-width:145px;max-width:145px;padding:9px}.tp-name-col>div{gap:6px}.tp-name-col .tp-avatar{display:none}.tp-name-col small{max-width:120px}.tp-matrix-wrap{max-height:65dvh}.tp-two,.tp-place-select{grid-template-columns:1fr}.tp-editor-metrics{font-size:10px;justify-content:space-between;gap:10px;padding:10px}.tp-editor-metrics strong{font-size:15px}.tp-editor-actions .btn{flex:1;font-size:11px}.tp-add-duty>.field{flex-basis:100%}.tp-add-duty>.btn{flex:1}.tp-duty{padding:12px}.tp-duty input,.tp-duty select,.tp-duty textarea{font-size:14px}.tp-duty-conditions>.tp-two{grid-template-columns:1fr 1fr}.tp-own-widget .section-head{align-items:flex-start;flex-direction:column;gap:9px}}
.tp-issues>div{flex-wrap:wrap}.tp-issues>div>span:first-child{flex:1 1 200px;min-width:0}
.tp-day-heading{border:0;background:transparent;font:inherit;color:inherit;width:100%;display:grid;gap:3px;justify-items:center;cursor:pointer;border-radius:7px;padding:4px}.tp-day-heading:hover{background:var(--soft)}.tp-day-heading:focus-visible,.tp-quick-member:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.tp-quick-top,.tp-quick-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.tp-quick-top .btn,.tp-quick-footer .btn{font-size:11px;min-height:33px}.tp-quick-footer{margin-top:7px;margin-bottom:0;padding-top:12px;border-top:1px solid var(--line)}.tp-quick-list{display:grid;gap:7px}.tp-quick-member{display:flex;align-items:center;gap:10px;text-align:start;border:1px solid var(--line);background:white;border-radius:12px;padding:11px;font:inherit;width:100%;min-width:0;cursor:pointer}.tp-quick-member:hover{background:#fffdf4;border-color:#d6c47e}.tp-quick-member>span:nth-child(2){flex:1;min-width:0}.tp-quick-member strong{display:block;font-size:13px}.tp-quick-member small{display:block;color:var(--muted);font-size:10px;overflow-wrap:anywhere}.tp-quick-member-end{display:grid;justify-items:end;gap:5px;flex-shrink:0}.tp-team-day small{color:var(--muted)}.tp-team-day .day-mode{font-size:10px}.tp-quick [type=search]{font-size:13px}.tp-quick [hidden],[data-quick-leave][hidden]{display:none!important}@media(max-width:600px){.tp-team-day{min-height:83px}.tp-team-day small,.tp-team-day .day-mode{font-size:8px}.tp-quick-member{gap:7px;padding:10px}.tp-quick-member .tp-avatar{width:30px;height:30px}.tp-period{flex-wrap:wrap}.tp-period>a{margin-inline-start:auto}}
.tp-calendar-coverage{margin-top:14px}.tp-calendar-coverage>summary{cursor:pointer;font-size:14px;font-weight:700}.tp-calendar-coverage[open]>summary{margin-bottom:12px}

.tp-cell.optional{border:1px dashed #a8985b!important;background:#fffbea}.tp-legend i.optional{background:#fffbea;border:1px dashed #a8985b}.workday-badge{display:inline-block;border-radius:6px;padding:2px 5px;font-size:10px;line-height:1.5}.workday-badge.remote{background:#fff0aa;color:#695300}.workday-badge.office{background:#eaf0f4;color:#3b5366}.workday-badge.optional{background:#fffbea;border:1px dashed #c5af51;color:#6b5817}.tp-team-day .day-mode{white-space:normal;font-size:10px}.tp-person-head .tp-place{white-space:normal;text-align:center;max-width:135px}.tp-people-checks>.btn,.tp-weekdays>.btn{grid-column:1/-1}

.tp-summary{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:750px){.tp-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.workday-short{display:none}.calendar .workday-badge{white-space:nowrap}@media(max-width:580px){.calendar .workday-badge{font-size:9px;padding:2px 1px;line-height:1.6;max-width:100%}.workday-full{display:none}.workday-short{display:inline}.calendar .day small{font-size:8px;line-height:1.5;overflow-wrap:normal}.calendar .day{min-width:0}.calendar .day-mode{overflow-wrap:normal}}
