.peggy-o-standalone { margin: 0; background: #f5f2eb; }
.po-app { --po-bg: #f5f2eb; --po-panel: #fffcf7; --po-sidebar: #eeeae1; --po-text: #253229; --po-muted: #73796e; --po-line: #dfdfd4; --po-accent: #375e4d; --po-soft: #e8efe5; font: 15px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--po-text); background: var(--po-bg); display: flex; min-height: 100vh; position: relative; isolation: isolate; }
.po-app[data-theme=dark] { --po-bg: #19221e; --po-panel: #222e27; --po-sidebar: #17201b; --po-text: #eff2e9; --po-muted: #a6b4a7; --po-line: #3b483f; --po-accent: #afd0b0; --po-soft: #324c3a; color-scheme: dark; }
.po-app *, .po-app *::before, .po-app *::after { box-sizing: border-box; }
.po-app [hidden] { display: none !important; }
.po-app button, .po-app input, .po-app select, .po-app textarea { font: inherit; }
.po-app button { cursor: pointer; }
.po-app button:disabled { opacity: .55; cursor: default; }
.po-app button:focus-visible, .po-app a:focus-visible { outline: 3px solid #5b9cd3; outline-offset: 3px; }
.po-app a { color: var(--po-accent); }
.po-app h1, .po-app h2, .po-app h3, .po-app p { margin: 0; }
.po-app h1 { font: 500 clamp(28px, 3vw, 42px)/1.2 Georgia, serif; letter-spacing: -.8px; }
.po-app h2 { font: 500 23px/1.3 Georgia, serif; }
.po-app h3 { font-size: 16px; font-weight: 600; }
.po-app input:not([type=checkbox]):not([type=file]), .po-app textarea, .po-app select { width: 100%; padding: 10px 12px; border: 1px solid var(--po-line); border-radius: 8px; background: var(--po-panel); color: var(--po-text); min-height: 42px; }
.po-app input:focus, .po-app textarea:focus, .po-app select:focus { outline: 2px solid var(--po-accent); outline-offset: 1px; }
.po-app input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--po-accent); flex: 0 0 auto; }
.po-app textarea { resize: vertical; }
.po-app label { display: grid; gap: 6px; margin-bottom: 16px; font-size: 14px; }
.po-app .po-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--po-line); border-radius: 8px; padding: 9px 15px; background: var(--po-panel); color: var(--po-text); text-decoration: none; white-space: nowrap; min-height: 40px; }
.po-app .po-button:hover { background: var(--po-soft); }
.po-app .po-primary { background: var(--po-accent); color: var(--po-bg); border-color: var(--po-accent); }
.po-app .po-primary:hover { filter: brightness(.95); background: var(--po-accent); }
.po-app .po-small { padding: 5px 10px; font-size: 13px; min-height: 32px; }
.po-app .po-danger { color: #b64942; margin-right: auto; }
.po-sidebar { width: 265px; flex: 0 0 265px; background: var(--po-sidebar); border-right: 1px solid var(--po-line); padding: 28px 18px 20px; display: flex; flex-direction: column; gap: 25px; }
.po-brand { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; padding: 0 8px; }
.po-brand img { width: 195px; max-width: 100%; height: 36px; object-fit: cover; }
.po-brand span { color: var(--po-muted); font-size: 12px; line-height: 1.25; text-align: center; }
.po-app .po-nav { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; min-height: 40px; background: transparent; color: var(--po-text); border: 0; border-radius: 8px; text-align: left; text-decoration: none; font-size: 13px; margin: 1px 0; }
.po-nav:hover, .po-nav.is-active { background: var(--po-soft); color: var(--po-accent); }
.po-nav > span:first-child { min-width: 18px; font-size: 19px; }
.po-entity-row { display: flex; align-items: center; gap: 4px; padding-inline: min(calc(8px + var(--po-level) * 13px), 55%) 8px; margin: 1px 0; border-radius: 8px; }
.po-entity-row:hover, .po-entity-row.is-active { background: var(--po-soft); color: var(--po-accent); }
.po-app .po-entity { flex: 1; width: auto; min-width: 0; margin: 0; padding-inline: 0; }
.po-entity-row:hover .po-entity, .po-entity-row.is-active .po-entity { background: transparent; color: inherit; }
.po-app .po-entity .po-entity-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: inherit; }
.po-app .po-project-copy { display: grid; place-items: center; flex: 0 0 32px; width: 32px; min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--po-muted); }
.po-app .po-project-copy:hover, .po-app .po-project-copy:focus-visible { background: var(--po-panel); color: var(--po-accent); }
.po-project-copy svg { width: 16px; height: 16px; }
@media (max-width: 900px), (pointer: coarse) {
  .po-app .po-project-copy { flex-basis: 44px; width: 44px; min-height: 44px; }
}
.po-app .po-dot { height: 7px; width: 7px; min-width: 7px !important; border-radius: 50%; background: #809b82; }
.po-app .po-dot.po-business_unit { background: #b69865; }
.po-app .po-dot.po-initiative { background: #7c91b4; }
.po-app .po-dot[data-freshness] { flex: 0 0 7px; background: var(--po-freshness-fill); border: 1px solid var(--po-freshness-edge); }
.po-hierarchy .po-dot[data-freshness] { width: 10px; height: 10px; flex-basis: 10px; }
.po-dot[data-freshness=green] { --po-freshness-fill: #16ca59; --po-freshness-edge: #087538; }
.po-dot[data-freshness=yellow] { --po-freshness-fill: #ffd51f; --po-freshness-edge: #8c6900; }
.po-dot[data-freshness=red] { --po-freshness-fill: #ff3747; --po-freshness-edge: #b6192d; }
.po-project-kicker { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 5px; }
.po-project-kind { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.po-project-kicker :is(.po-eyebrow, .po-project-status) { margin: 0; }
.po-project-timestamp { color: var(--po-muted); font-size: 12px; }
.po-project-title { display: flex; align-items: center; gap: 10px; }
.po-project-title h1 { min-width: 0; overflow-wrap: anywhere; }
.po-project-title .po-dot[data-freshness] { width: 11px; height: 11px; flex-basis: 11px; box-shadow: 0 0 0 4px var(--po-line); }
.po-project-update { margin-top: 8px; }
.po-section-title { display: flex; align-items: center; justify-content: space-between; color: var(--po-muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 0 8px; margin-bottom: 4px; }
.po-project-list-actions { display: flex; align-items: center; gap: 4px; }
.po-app .po-project-list-actions .po-button { min-width: 32px; min-height: 30px; padding: 3px 6px; }
.po-project-filter-button svg { width: 16px; height: 16px; }
.po-app .po-project-filter-button:is([data-filtered=true], [aria-expanded=true]) { background: var(--po-soft); color: var(--po-accent); border-color: var(--po-accent); }
@media (max-width: 900px), (pointer: coarse) {
  .po-app .po-project-list-actions .po-button { min-width: 44px; min-height: 44px; }
}
.po-sidebar-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; display: flex; flex-direction: column; gap: 14px; }
.po-sidebar-content::-webkit-scrollbar { display: none; }
.po-hierarchy { flex: 1 0 auto; }
.po-app .po-project-owner-filter { display: grid; gap: 3px; margin: 0 0 7px; padding: 0 8px; color: var(--po-muted); font-size: 12px; }
.po-app .po-project-owner-filter select { width: 100%; min-width: 0; margin: 0; }
.po-app .po-project-list-empty { padding: 8px 12px; font-size: 13px; }
.po-sidebar-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--po-line); padding: 12px 8px 0; }
.po-app .po-footer-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--po-accent); text-decoration: none; }
.po-footer-icon svg { display: block; }
.po-sidebar-footer button:hover, .po-sidebar-footer a:hover, .po-footer-icon[aria-current=page] { background: var(--po-soft); }
.po-main { flex: 1; min-width: 0; padding: 40px clamp(20px, 4vw, 60px) 60px; }
.po-topbar { display: flex; align-items: flex-start; gap: 24px; justify-content: space-between; padding-bottom: 30px; border-bottom: 1px solid var(--po-line); margin-bottom: 28px; }
.po-heading { min-width: 0; }
.po-heading p { color: var(--po-muted); margin-top: 10px; max-width: 640px; white-space: pre-wrap; overflow-wrap: anywhere; }
.po-eyebrow, .po-project-status { text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; font-weight: 600; color: var(--po-muted); margin-bottom: 9px; }
.po-top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding-top: 18px; }
.po-app .po-search { margin: 0; width: 190px; }
.po-project-search-actions { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.po-app .po-project-search-actions .po-search { flex: 1 1 190px; min-width: 0; }
.po-project-search-actions > .po-button { flex: 0 0 auto; }
@media (max-width: 900px) { .po-project-search-actions { flex: 1 1 0; } }
.po-app .po-menu { display: none; }
.po-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 35px; }
.po-stat { border: 1px solid var(--po-line); background: var(--po-panel); border-radius: 12px; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.po-stat span { color: var(--po-muted); font-size: 12px; }
.po-stat strong { font: 500 34px/1.2 Georgia, serif; }
.po-content-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.po-content-heading p { font-size: 13px; color: var(--po-muted); margin-top: 6px; }
.po-card { min-width: 0; background: var(--po-panel); border: 1px solid var(--po-line); border-radius: 14px; padding: 24px; }
.po-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.po-project-card { display: flex; flex-direction: column; gap: 16px; }
.po-card-top, .po-card-bottom { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 12px; flex-wrap: wrap; }
.po-app h2 > a, .po-item-meta a { background: transparent; padding: 0; border: 0; color: inherit; text-align: left; text-decoration: none; font: inherit; }
.po-project-card p { font-size: 14px; color: var(--po-muted); flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.po-parent { color: var(--po-muted); font-size: 11px; }
.po-progress { background: var(--po-line); height: 5px; border-radius: 8px; overflow: hidden; }
.po-progress span { display: block; height: 100%; background: var(--po-accent); }
.po-badge { display: inline-flex; padding: 3px 9px; font-size: 10px; border-radius: 20px; background: var(--po-soft); color: var(--po-accent); white-space: nowrap; }
.po-app .po-high { color: #a44837; background: #fae6de; }
.po-app .po-medium { color: #8d682c; background: #f4ecd9; }
.po-app .po-on_hold { color: #8d682c; background: #f4ecd9; }
.po-item-list { grid-template-columns: minmax(0, 1fr); display: grid; gap: 14px; }
.po-item-heading { display: flex; align-items: flex-start; gap: 14px; }
.po-item-heading > div { flex: 1; min-width: 0; }
.po-item h3 { overflow-wrap: anywhere; }
.po-item-heading input { margin-top: 4px; }
.po-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 9px; font-size: 11px; color: var(--po-muted); }
.po-item-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 15px !important; color: var(--po-muted); font-size: 14px; }
.po-item-icon { color: var(--po-accent); font-size: 22px; line-height: 1.3; }
.po-item.is-done h3 { text-decoration: line-through; color: var(--po-muted); }
.po-overdue { color: #b64942; }
.po-tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 15px; border-bottom: 1px solid var(--po-line); }
.po-project-tab-links > a:not(.po-button) { padding: 8px 14px; border: 0; border-radius: 8px; color: var(--po-muted); background: transparent; text-decoration: none; }
.po-project-tab-links > a.is-active { color: var(--po-accent); background: var(--po-soft); }
.po-tabs .po-button { margin-left: auto; }
.po-empty { padding: 65px 20px; text-align: center; width: 100%; }
.po-empty > span { font-size: 34px; color: #8aa28c; }
.po-empty h2 { margin: 12px 0; }
.po-empty p { color: var(--po-muted); margin: 0 auto 25px; max-width: 380px; }
.po-manager-report { border: 1px solid var(--po-line); border-radius: 11px; background: var(--po-panel); }
.po-manager-report-summary { padding: 12px 16px; border-bottom: 1px solid var(--po-line); }
.po-manager-report-scroll { overflow: auto; border-radius: 0 0 10px 10px; }
.po-manager-report table { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.po-manager-report :is(th, td) { padding: 12px 16px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.po-manager-report thead { background: var(--po-sidebar); }
.po-manager-report thead th { color: var(--po-muted); font-size: 12px; }
.po-manager-report thead th:nth-child(1) { width: 22%; }
.po-manager-report thead th:nth-child(2) { width: 38%; }
.po-manager-report tbody tr { border-top: 1px solid var(--po-line); }
.po-manager-project { display: flex; align-items: baseline; gap: 7px; }
.po-manager-project .po-dot { flex: 0 0 auto; }
.po-manager-project + span, .po-manager-activity > span { display: block; margin-top: 3px; color: var(--po-muted); font-size: 13px; font-weight: 400; }
.po-manager-summary { white-space: pre-wrap; }
.po-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.po-app .po-check { display: flex; align-items: center; }
.po-images { min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.po-image { margin: 0; border: 1px solid var(--po-line); border-radius: 10px; overflow: hidden; background: var(--po-panel); }
.po-image img { display: block; width: 100%; height: 180px; object-fit: contain; background: var(--po-sidebar); }
.po-image figcaption { padding: 12px; font-size: 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; overflow-wrap: anywhere; }
.po-attached { width: 100%; margin-top: 16px; max-width: 500px; }
.po-app .po-dialog { background: var(--po-panel); color: var(--po-text); border: 1px solid var(--po-line); border-radius: 16px; padding: 28px; width: min(570px, calc(100vw - 28px)); max-height: 90vh; overflow: auto; }
.po-dialog::backdrop { background: rgba(21, 34, 27, .5); backdrop-filter: blur(3px); }
.po-dialog-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 25px; }
.po-form-actions { display: flex; justify-content: flex-end; gap: 10px; align-items: center; margin-top: 25px; }
.po-muted { color: var(--po-muted); font-size: 12px; }
.po-loading { margin: auto; padding: 70px; }
.po-toast { position: fixed; bottom: 24px; right: 24px; max-width: min(440px, calc(100vw - 48px)); background: var(--po-text); color: var(--po-bg); padding: 14px 22px; border-radius: 10px; z-index: 50; box-shadow: 0 5px 25px #0002; }
.po-toast.po-error { background: #963e34; color: #fff; }
.po-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1200px) { .po-topbar { flex-wrap: wrap; } .po-top-actions { justify-content: flex-start; padding: 0; } }
@media (max-width: 760px) { .po-sidebar { width: 220px; flex-basis: 220px; padding: 20px 12px; } .po-brand img { width: 182px; } .po-main { padding: 26px 20px; } .po-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; } .po-stat { padding: 15px; } }
@media (max-width: 600px) { .po-app .po-menu { display: inline-flex; margin-top: 5px; } .po-sidebar { display: none; } .po-sidebar.is-open { display: flex; position: absolute; top: 0; bottom: 0; left: 0; z-index: 20; box-shadow: 8px 0 25px #0003; min-height: 100vh; } .po-topbar { gap: 14px; } .po-heading { flex: 1; } .po-top-actions { width: 100%; } .po-app .po-search { flex: 1; min-width: 120px; width: auto; } .po-card { padding: 18px; } .po-tabs { gap: 3px; } .po-project-tab-links > a:not(.po-button) { padding: 8px; font-size: 13px; } .po-tabs .po-button { margin-left: 0; } .po-form-grid { grid-template-columns: 1fr; } .po-app .po-dialog { padding: 20px; } }
/* Compact workspace with comfortable touch targets on phones and tablets. */
.po-app h1 { font-size: clamp(26px, 2.6vw, 35px); }
.po-app h2 { font-size: 21px; }
.po-sidebar { width: 265px; flex-basis: 265px; padding: 12px 10px; gap: 14px; }
.po-main { padding: 26px clamp(16px, 2.5vw, 36px) 40px; }
.po-topbar { gap: 18px; padding-bottom: 20px; margin-bottom: 20px; }
.po-heading p { margin-top: 6px; }
.po-top-actions { padding-top: 10px; }
.po-stats { gap: 12px; margin-bottom: 22px; }
.po-stat { padding: 12px 16px; gap: 3px; }
.po-stat strong { font-size: 28px; }
.po-card { padding: 18px; border-radius: 11px; }
.po-project-grid { gap: 14px; }
.po-project-card { gap: 12px; }
.po-item-list { gap: 10px; }
.po-item-meta { margin-top: 5px; gap: 7px; }
.po-item-body { margin-top: 10px !important; }
.po-tabs { margin-bottom: 20px; padding-bottom: 10px; }
.po-empty { padding: 40px 16px; }
.po-settings-layout { gap: 16px; }
.po-settings { max-width: 1200px; }
.po-settings-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.po-settings-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--po-line); border-radius: 12px; background: var(--po-panel); }
.po-settings-tabs a { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px; border-radius: 8px; color: var(--po-muted); text-decoration: none; font-weight: 600; }
.po-settings-tabs a:hover, .po-settings-tabs a[aria-current="page"] { color: var(--po-text); background: var(--po-bg); }
.po-settings-tabs a[aria-current="page"] { box-shadow: inset 0 0 0 1px var(--po-line); }
.po-settings-tabs a:only-child { grid-column: 1 / -1; }
#po-general-form { max-width: 540px; }
@media (max-width: 480px) { .po-settings-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.po-settings-layout .po-card > p { margin-bottom: 12px; }
.po-api-reference { min-width: 0; }
.po-api-reference code { overflow-wrap: anywhere; }
.po-api-auth, .po-api-operation { border: 1px solid var(--po-line); border-radius: 8px; }
.po-api-operation { border-color: color-mix(in srgb, var(--po-api-method-color, var(--po-line)) 65%, var(--po-line)); }
.po-api-operation[data-method=GET] { --po-api-method-color: #1b5fa8; }
.po-api-operation[data-method=POST] { --po-api-method-color: #187247; }
.po-api-operation[data-method=PUT] { --po-api-method-color: #a24f0d; }
.po-api-operation[data-method=PATCH] { --po-api-method-color: #087178; }
.po-api-operation[data-method=DELETE] { --po-api-method-color: #b42c3b; }
.po-api-operation[data-method=HEAD] { --po-api-method-color: #7139ad; }
.po-api-operation[data-method=OPTIONS] { --po-api-method-color: #234975; }
.po-api-auth summary, .po-api-operation summary { padding: 10px 12px; cursor: pointer; }
.po-api-operation > summary {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--po-api-method-color, transparent) 12%, var(--po-panel));
}
.po-api-operation[open] > summary { border-radius: 7px 7px 0 0; }
.po-api-operation > summary:focus-visible { outline: 2px solid var(--po-accent); outline-offset: -2px; }
.po-api-method { color: #fff; background: var(--po-api-method-color, #526179); text-align: center; padding: 4px; border-radius: 5px; font-size: .8rem; font-weight: 700; }
.po-api-access { color: var(--po-muted); font-size: .8rem; }
.po-api-details { padding: 12px; border-top: 1px solid var(--po-line); }
.po-api-details p { margin: 0 0 10px; }
.po-api-details pre { margin: 0 0 12px; padding: 10px; overflow: auto; max-height: 20rem; background: var(--po-bg); color: var(--po-text); border: 1px solid var(--po-line); border-radius: 6px; }
.po-api-parameters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 8px; margin-bottom: 10px; }
.po-api-search { margin: 14px 0 10px; }
.po-api-operations { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.po-api-operation[hidden] { display: none; }
.po-type-row { border: 1px solid var(--po-line); border-radius: 8px; padding: 12px; margin-top: 12px; }
.po-type-heading { display: flex; gap: 10px; align-items: center; }
.po-type-heading > label { flex: 1; min-width: 0; }
.po-type-row fieldset { margin: 0; border: 0; padding: 0; }
.po-type-row legend { font-size: 12px; color: var(--po-muted); margin-bottom: 8px; }
.po-app .po-type-row .po-check { font-size: 12px; margin-bottom: 8px; }
.po-parent-options { display: flex; flex-wrap: wrap; gap: 0 16px; }
.po-parent-options label { overflow-wrap: anywhere; }
.po-user-row { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--po-line); padding: 12px 0; margin-bottom: 16px; overflow-wrap: anywhere; }
.po-user-row > div { min-width: 0; }
.po-credentials { border: 1px solid var(--po-accent); border-radius: 8px; padding: 14px; margin: 16px 0; }
.po-credentials h3, .po-credentials > p { margin-bottom: 12px; }
.po-copy-field { display: flex; gap: 8px; min-width: 0; }
.po-copy-field input { min-width: 0; }
.po-settings-layout .po-form-actions { flex-wrap: wrap; }
.po-app .po-nav-close, .po-nav-backdrop { display: none; }
.po-app h2, .po-parent, .po-image figcaption, .po-stat, .po-settings-layout p { overflow-wrap: anywhere; }
.po-app label, .po-form-grid > * { min-width: 0; }
.po-app input:not([type=checkbox]):not([type=file]), .po-app select { min-width: 0; }
.po-app .po-dialog { max-height: 90dvh; }
.po-toast { bottom: max(16px, env(safe-area-inset-bottom)); }
@media (max-width: 1100px) { .po-settings-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .po-sidebar { display: none; }
  .po-sidebar.is-open { display: flex; position: fixed; inset: 0 auto 0 0; width: min(310px, 88vw); height: 100dvh; min-height: 0; overflow: hidden; z-index: 30; padding: max(12px, env(safe-area-inset-top)) 10px max(16px, env(safe-area-inset-bottom)); box-shadow: 8px 0 25px #0003; }
  .po-app .po-menu { display: inline-flex; margin-top: 0; }
  .po-app .po-nav-close { display: inline-flex; align-self: flex-end; }
  .po-app .po-nav-backdrop { display: block; position: fixed; inset: 0; border: 0; background: #0005; z-index: 25; }
  .po-main { padding: 20px 16px 32px; }
  .po-topbar { gap: 12px; }
  .po-heading { flex: 1; }
  .po-top-actions { width: 100%; padding: 0; }
  .po-app .po-search { flex: 1; min-width: 120px; width: auto; }
  .po-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .po-stat { padding: 11px 14px; }
  .po-card { padding: 15px; }
  .po-app .po-button, .po-app .po-small, .po-app .po-nav, .po-project-tab-links > a:not(.po-button) { min-height: 44px; }
  .po-app input:not([type=checkbox]):not([type=file]), .po-app select, .po-app textarea { font-size: 16px; min-height: 44px; }
  .po-app .po-check { min-height: 44px; }
  .po-item-heading { gap: 10px; }
  .po-tabs { gap: 2px; }
  .po-image figcaption { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .po-main { padding: 16px 12px 28px; }
  .po-app .po-dialog { padding: 18px; width: calc(100vw - 20px); max-height: calc(100dvh - 24px); }
  .po-form-grid { grid-template-columns: minmax(0, 1fr); }
  .po-form-actions { flex-wrap: wrap; gap: 8px; }
  .po-type-heading { flex-wrap: wrap; }
  .po-type-heading > label { flex-basis: 140px; }
  .po-credentials { padding: 10px; }
}
.peggy-o-standalone:has(.po-sidebar.is-open) { overflow: hidden; }
.po-app .po-task-toggle { display: flex; align-items: flex-start; justify-content: center; margin: 0; flex: 0 0 auto; }
@media (max-width: 900px) {
  .po-app .po-task-toggle { width: 44px; min-height: 44px; align-items: center; }
  .po-task-toggle input { margin: 0; }
  .po-app h2 > a { display: inline-flex; align-items: center; min-height: 44px; }
}

.po-account-details { max-width: 600px; }
.po-account-details dl { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr); gap: 12px 20px; margin-bottom: 0; }
.po-account-details dt { color: var(--po-muted); }
.po-account-details dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .po-settings-page .po-topbar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: start; }
  .po-settings-page .po-top-actions { width: auto; }
  .po-settings-page .po-top-actions .po-button { width: 44px; }
}
/* Hierarchy guide and draft template selection. */
.po-template-picker > p { margin-bottom: 12px; }
.po-template-picker .po-content-heading { flex-wrap: wrap; gap: 10px; }
.po-template-chain { padding: 12px; border: 1px solid var(--po-line); border-radius: 8px; background: var(--po-bg); overflow-wrap: anywhere; }
.po-template-note { border-left: 3px solid var(--po-accent); padding-left: 12px; margin: 10px 0; }
#po-template-preview p { margin-bottom: 12px; }
.po-template-picker [data-action=load-template] { margin-bottom: 12px; }
#po-template-status:not(:empty) { padding: 10px; background: var(--po-soft); border-radius: 8px; }
.po-guide { max-width: 1050px; display: grid; gap: 16px; }
.po-guide .po-card { min-width: 0; }
.po-guide .po-card > p, .po-guide .po-card > h2, .po-guide .po-card > ol, .po-guide .po-card > dl { margin-bottom: 14px; }
.po-guide h2, .po-guide p, .po-guide td, .po-guide th, .po-guide dd { overflow-wrap: anywhere; }
.po-guide-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.po-guide-table th, .po-guide-table td { padding: 12px 8px; vertical-align: top; border-bottom: 1px solid var(--po-line); }
.po-guide-table thead th { color: var(--po-muted); font-size: 12px; }
.po-guide-table tbody th { width: 24%; font-weight: 600; }
.po-guide-table td:last-child { width: auto; }
.po-guide-table td > p { margin-top: 6px; }
.po-guide-table .po-button { min-height: 44px; }
.po-guide-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.po-guide-examples h3 { margin-bottom: 8px; }
.po-guide-examples ul, .po-guide ol { padding-left: 24px; }
.po-guide li { margin-bottom: 6px; }
.po-guide-concepts dt { font-weight: 600; }
.po-guide-concepts dd { margin: 0 0 12px; }
.po-guide-model { overflow-x: auto; padding: 12px; border-radius: 8px; background: var(--po-bg); font-size: 13px; margin-bottom: 14px; }
@media (max-width: 600px) {
  .po-guide-examples { grid-template-columns: minmax(0, 1fr); }
  .po-guide-table, .po-guide-table tbody { display: block; }
  .po-guide-table thead { display: none; }
  .po-guide-table tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--po-line); gap: 6px; }
  .po-guide-table tbody th, .po-guide-table td { width: auto; padding: 0; border: 0; }
  .po-guide-table .po-button { margin-top: 4px; }
  .po-capabilities td:last-child { color: var(--po-accent); }
}

@media (min-width: 901px) {
  .po-sidebar { position: sticky; top: 0; height: 100dvh; align-self: flex-start; overflow: hidden; }
}
@media (max-width: 600px) {
  .po-capabilities td:last-child::before { content: 'PeggyO today: '; font-weight: 600; }
}

.po-schedule { min-width: 0; }
.po-schedule-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.po-schedule-toolbar h2 { margin-right: auto; }
.po-schedule-controls, .po-schedule-views { display: flex; gap: 4px; }
.po-schedule-toolbar .po-button { min-height: 44px; padding: 8px 12px; }
.po-schedule-calendars { display: flex; gap: 8px 16px; flex-wrap: wrap; }
.po-app .po-schedule-filter { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; max-width: 100%; cursor: pointer; }
.po-schedule-filter > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.po-schedule-filter small { display: block; font-size: 11px; color: var(--po-muted); }
.po-schedule-swatch { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.po-app .po-schedule-hint { font-size: 12px; margin: 10px 0 16px; }
.po-schedule-errors { padding: 12px; border: 1px solid #ba6423; border-radius: 8px; margin-bottom: 12px; overflow-wrap: anywhere; }
.po-app .po-schedule-body { padding: 0; overflow: hidden; }
.po-schedule-weekdays, .po-schedule-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.po-schedule-weekdays { font-size: 11px; text-align: center; color: var(--po-muted); border-bottom: 1px solid var(--po-line); padding: 10px 0; }
.po-schedule-cell { min-height: 126px; padding: 4px; border-right: 1px solid var(--po-line); border-bottom: 1px solid var(--po-line); min-width: 0; }
.po-schedule-cell:nth-child(7n) { border-right: 0; }
.po-schedule-cell.is-outside { background: var(--po-bg); }
.po-schedule-cell.is-selected { box-shadow: inset 0 0 0 2px var(--po-accent); }
.po-app .po-schedule-date { width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--po-text); background: transparent; font-size: 13px; }
.po-app .po-schedule-date.is-today { background: var(--po-accent); color: var(--po-bg); }
.po-app .po-schedule-event { display: grid; width: 100%; min-width: 0; min-height: 44px; gap: 2px; border: 1px solid var(--po-line); border-left: 4px solid var(--po-calendar-color); border-radius: 6px; background: var(--po-panel); color: var(--po-text); padding: 8px 10px; text-align: left; font-size: 13px; margin-top: 6px; }
.po-schedule-event:hover { background: var(--po-soft); }
.po-schedule-event strong, .po-schedule-source { overflow-wrap: anywhere; }
.po-app .po-schedule-chip { padding: 4px 5px; gap: 0; font-size: 11px; min-height: 44px; }
.po-schedule-chip strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.po-schedule-event-time, .po-schedule-source { font-size: 11px; color: var(--po-muted); }
.po-schedule-mobile-dots { display: none; }
.po-schedule-day-list { padding: 16px; border-bottom: 1px solid var(--po-line); }
.po-schedule-day-list:last-child { border-bottom: 0; }
.po-schedule-day-list h3 { margin-bottom: 10px; }
.po-schedule-selected-day { background: var(--po-bg); }
.po-schedule-dialog p { margin-bottom: 14px; overflow-wrap: anywhere; }
.po-schedule-detail-source { border-left: 4px solid var(--po-calendar-color); padding-left: 10px; }
.po-schedule-form-error { color: #b64942; }
@media (max-width: 1100px) {
  .po-schedule-toolbar h2 { width: 100%; }
}
@media (max-width: 600px) {
  .po-schedule-toolbar { gap: 8px; }
  .po-schedule-toolbar .po-button { padding: 8px 10px; font-size: 13px; }
  .po-schedule-controls { margin-right: auto; }
  .po-schedule-views { margin-right: auto; }
  .po-schedule-calendars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .po-schedule-cell { min-height: 64px; padding: 0; text-align: center; }
  .po-app .po-schedule-date { width: min(44px, 100%); height: 44px; }
  .po-schedule-desktop-events { display: none; }
  .po-schedule-mobile-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; min-height: 10px; padding: 2px; }
  .po-schedule-mobile-dots span { width: 5px; height: 5px; border-radius: 50%; }
  .po-schedule-day-list { padding: 12px; }
}

.po-connector-setup { margin: 16px 0; border-top: 1px solid var(--po-line); padding-top: 10px; }
.po-connector-setup summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 600; }
.po-connector-setup > p, .po-connector-setup form > p { margin-bottom: 16px; }
.po-connector-setup form { margin-bottom: 16px; }
.po-connector-setup input[readonly] { font-size: 12px; }

.po-task-table { background: var(--po-panel); border: 1px solid var(--po-line); border-radius: 10px; overflow: hidden; }
.po-task-table-heading { display: grid; grid-template-columns: 90px minmax(0, 1fr) 110px; padding: 8px 16px; background: var(--po-sidebar); font-size: 12px; font-weight: 600; }
.po-task-table-heading span:nth-child(2) { padding-left: 70px; }
.po-task-group { min-width: 0; border-top: 1px solid var(--po-line); }
.po-task-group > summary { padding: 10px 16px; cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.po-task-group > summary .po-muted { margin-inline-start: 8px; font-weight: 400; }
.po-task-project-link { margin: 0 16px 8px 34px !important; font-size: 12px; }
.po-task-group-items { margin-inline-start: 20px; min-width: 0; }
.po-compact-task { border-top: 1px solid var(--po-line); }
.po-compact-row { display: grid; grid-template-columns: 90px 32px 38px minmax(0, 1fr) 110px; align-items: start; min-width: 0; padding: 0 16px 0 0; }
.po-compact-row .po-compact-title { padding-inline-start: calc(var(--po-depth) * 14px); }
.po-id-column { display: inline-flex; align-items: center; gap: 3px; min-width: 0; font-size: 12px; font-weight: 400; color: var(--po-muted); overflow-wrap: anywhere; vertical-align: middle; }
.po-app .po-copy-id { width: 32px; min-width: 32px; min-height: 40px; padding: 0; border: 0; background: transparent; }
.po-copy-id svg { width: 17px; height: 17px; }
.po-tree-control { min-height: 44px; display: flex; align-items: center; justify-content: center; }
.po-app .po-tree-toggle { padding: 0; width: 32px; min-height: 40px; border: 0; background: transparent; }
.po-task-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.po-app .po-compact-row .po-task-toggle { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; }
.po-compact-details { min-width: 0; }
.po-compact-title { cursor: pointer; padding: 10px 6px 10px 0; min-height: 44px; overflow-wrap: anywhere; }
.po-compact-task.is-done .po-compact-title { text-decoration: line-through; color: var(--po-muted); }
.po-compact-due { padding: 11px 0; font-size: 13px; overflow-wrap: anywhere; }
.po-compact-detail-body { grid-area: 2 / 3 / 3 / -1; padding: 0 12px 16px 0; min-width: 0; }
.po-compact-row > .po-compact-detail-body { display: none; }
.po-compact-row:has(> .po-compact-details[open]) > .po-compact-detail-body { display: block; }
.po-compact-detail-body .po-source-details pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.po-source-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; cursor: pointer; color: var(--po-accent); border: 1px solid var(--po-line); border-radius: 8px; list-style: none; }
.po-source-icon::-webkit-details-marker { display: none; }
.po-source-icon:hover { background: var(--po-soft); }
.po-source-icon:focus-visible { outline: 3px solid #5b9cd3; outline-offset: 3px; }
.po-project-template { margin-bottom: 18px; }
.po-project-template > p { margin: 6px 0 12px; }
.po-project-template > label { max-width: 440px; }
@media (max-width: 480px) { .po-task-table-heading { grid-template-columns: 70px minmax(0, 1fr) 75px; padding-left: 8px; } .po-task-table-heading span:nth-child(2) { padding-left: 45px; } .po-task-group-items { margin-inline-start: 8px; } .po-compact-row { grid-template-columns: 70px 28px 32px minmax(0, 1fr) 75px; padding-right: 8px; } .po-compact-row .po-compact-title { padding-inline-start: calc(var(--po-depth) * 7px); } }

.po-source-details pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font:inherit}

/* Compact task workspace shared by all and project to-do pages. */
.po-board-summary { color: var(--po-muted); font-size: 13px; margin: 0 0 10px; }
.po-task-board-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 8px 0; border-block: 1px solid var(--po-line); }
.po-app .po-task-board-toolbar .po-button { min-height: 36px; padding: 5px 9px; background: transparent; border-color: transparent; }
.po-app .po-task-board-toolbar .po-button:hover, .po-app .po-task-board-toolbar .po-hide-completed[aria-pressed=true] { background: var(--po-soft); }
.po-board-filters { align-items: end; padding: 10px 0; }
.po-board-filters label { flex: 1 1 130px; margin: 0; }
.po-board-filters .po-button { margin-bottom: 1px; }
.po-task-table-heading { grid-template-columns: 32px 72px minmax(0, 1fr) 120px 150px 110px; }
.po-task-table-heading span:nth-child(2) { padding: 0; }
.po-task-table-heading span:nth-child(3) { padding-left: 70px; }
.po-task-group > summary { background: var(--po-sidebar); }
.po-task-group > summary::marker { color: var(--po-text); }
.po-task-group > summary::before { content: '▱'; color: var(--po-accent); font-size: 19px; margin-right: 12px; }
.po-task-group-items { margin-inline-start: 0; }
.po-compact-row { grid-template-columns: 32px 72px 32px 38px minmax(0, 1fr) 120px 150px 110px; align-items: start; padding-left: 16px; }
.po-select-task { display: flex !important; align-items: center; justify-content: center; min-height: 44px; margin: 0 !important; }
.po-select-task input { accent-color: var(--po-accent); }
.po-task-project, .po-task-status-cell { padding: 11px 8px; font-size: 13px; overflow-wrap: anywhere; }
.po-task-status-cell { text-transform: capitalize; }
.po-compact-task.is-done .po-task-status-cell { color: var(--po-accent); }
@media (max-width: 900px) {
  .po-task-table-heading { grid-template-columns: 32px 70px minmax(0, 1fr) 100px; }
  .po-task-table-heading span:nth-child(n+5), .po-task-project, .po-task-status-cell { display: none; }
  .po-compact-row { grid-template-columns: 32px 70px 28px 32px minmax(0, 1fr) 100px; }
}
@media (max-width: 480px) {
  .po-task-table-heading { grid-template-columns: 28px 60px minmax(0, 1fr) 75px; padding-left: 8px; }
  .po-task-table-heading span:nth-child(3) { padding-left: 45px; }
  .po-task-group-items { margin: 0; }
  .po-compact-row { grid-template-columns: 28px 60px 24px 28px minmax(0, 1fr) 75px; padding: 0 8px; }
  .po-compact-row .po-compact-title { padding-inline-start: calc(var(--po-depth) * 7px); }
}

/* Task board styling follows the compact PeggyO desktop layout. */
.po-task-page { --po-bg: #f5f2ed; --po-sidebar: #f0ede7; --po-panel: #faf9f7; --po-line: #dedbd5; --po-text: #171a18; --po-soft: #dfebe1; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.po-task-page[data-theme=dark] { --po-bg: #19221e; --po-sidebar: #17201b; --po-panel: #222e27; --po-line: #3b483f; --po-text: #eff2e9; --po-soft: #324c3a; }
.po-task-page .po-nav svg { width: 19px; height: 19px; display: block; }
.po-task-page .po-main { padding: 12px 14px 24px; }
.po-task-page .po-topbar { align-items: center; gap: 12px; padding: 0 0 8px; margin-bottom: 0; }
.po-task-page .po-heading { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.po-task-page .po-heading .po-eyebrow { display: none; }
.po-task-page .po-heading h1 { font: 700 23px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 0; }
.po-task-page .po-heading p { border-left: 1px solid var(--po-line); padding-left: 14px; margin: 0; font-size: 12px; }
.po-task-page .po-top-actions { padding: 0; width: auto; }
.po-task-page .po-task-board-toolbar { gap: 4px; padding: 6px 0; border-top: 0; }
.po-task-page .po-task-board-toolbar .po-button { font-size: 13px; gap: 6px; min-height: 32px; padding: 5px 7px; }
.po-task-board-toolbar svg, .po-advanced-filter svg, .po-board-filters button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.po-task-board-toolbar [data-action=board-indent] svg, .po-task-board-toolbar [data-action=board-outdent] svg { color: #1465a2; }
.po-task-board-toolbar [data-action=board-complete] svg { color: #0a9f27; }
.po-task-board-toolbar [data-action=board-delete] svg { color: #db322c; }
.po-task-board-toolbar [data-action=board-move] svg { color: #866816; }
.po-app.po-task-page .po-task-board-toolbar .po-add-task { background: var(--po-panel); border-color: var(--po-line); }
.po-app.po-task-page .po-task-board-toolbar .po-hide-completed, .po-app .po-overview-task-filters .po-hide-completed { background: var(--po-soft); border: 1px solid #bad1bf; }
.po-task-page .po-board-search { margin: 0 0 0 auto; width: 220px; }
.po-task-page .po-board-search input { height: 32px; min-height: 32px !important; padding: 5px 10px !important; font-size: 13px !important; }
.po-task-page .po-board-filters { gap: 12px 22px; padding: 8px 0 10px; }
.po-task-page .po-board-filters > label { display: flex; align-items: center; flex: 0 1 250px; gap: 12px; font-size: 12px; }
.po-task-page .po-board-filters select { min-height: 32px !important; height: 32px; padding: 4px 8px !important; font-size: 13px !important; }
.po-advanced-filter { position: relative; align-self: center; font-size: 13px; }
.po-advanced-filter > summary { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.po-advanced-filter > div { position: absolute; right: 0; top: 30px; width: 260px; z-index: 10; padding: 12px; border: 1px solid var(--po-line); border-radius: 8px; background: var(--po-panel); box-shadow: 0 4px 16px #0002; }
.po-advanced-filter label { margin: 0 0 8px; }
.po-task-page .po-board-filters > button { margin-left: auto; min-height: 32px; border: 0; background: transparent; padding: 5px; }
.po-task-page .po-task-table { border-radius: 8px; }
.po-task-page .po-task-table-heading { grid-template-columns: 32px minmax(0, 1fr) 120px 150px 100px 74px; background: #eae7e1; padding: 6px 10px; }
.po-task-page .po-task-table-heading span:nth-child(3) { padding: 0; }
.po-task-page .po-task-table-heading span:nth-child(2) { padding-left: 62px; }
.po-task-page .po-task-group > summary { display: list-item; padding: 3px 14px; background: var(--po-sidebar); font-size: 14px; }
.po-task-page .po-task-group > summary::before { content: none; }
.po-task-page .po-task-group > summary > svg { width: 19px; height: 19px; color: var(--po-accent); vertical-align: middle; margin: 0 15px 0 10px; }
.po-task-page .po-compact-row { grid-template-columns: 32px 26px 32px minmax(0, 1fr) 120px 150px 100px 74px; padding: 0 10px; align-items: start; }
.po-task-page .po-compact-task { border-color: #dedbd5; }
.po-task-page .po-select-task, .po-task-page .po-tree-control, .po-task-page .po-compact-row .po-task-toggle { min-height: 28px; }
.po-task-page .po-tree-toggle, .po-task-page .po-copy-id { min-height: 28px; }
.po-task-page .po-compact-title { min-height: 28px; padding-block: 3px; }
.po-task-page .po-compact-due, .po-task-page .po-task-project, .po-task-page .po-task-status-cell { padding: 4px 4px; }
.po-task-page .po-task-folder svg { display: inline-block; width: 18px; height: 18px; color: var(--po-accent); margin-right: 10px; vertical-align: middle; }
.po-task-page .po-id-column { min-height: 28px; }
.po-status-check svg { display: block; width: 18px; height: 18px; color: #278a40; }
@media (max-width: 900px) {
  .po-task-page .po-main { padding: 12px; }
  .po-task-page .po-task-table-heading { grid-template-columns: 28px minmax(0, 1fr) 90px 65px; }
  .po-task-page .po-task-table-heading span:nth-child(4), .po-task-page .po-task-table-heading span:nth-child(5) { display: none; }
  .po-task-page .po-task-table-heading span:nth-child(6) { display: block; }
  .po-task-page .po-compact-row { grid-template-columns: 28px 26px 30px minmax(0, 1fr) 90px 65px; }
  .po-task-page .po-board-search { width: 100%; margin-left: 0; }
}
@media (max-width: 480px) {
  .po-task-page .po-task-table-heading { grid-template-columns: 24px minmax(0, 1fr) 70px 52px; padding-inline: 5px; }
  .po-task-page .po-task-table-heading span:nth-child(2) { padding-left: 45px; }
  .po-task-page .po-compact-row { grid-template-columns: 24px 22px 26px minmax(0, 1fr) 70px 52px; padding-inline: 5px; }
  .po-task-page .po-board-filters > label { flex-basis: 100%; }
  .po-task-page .po-heading h1 { font-size: 20px; }
  .po-task-page .po-heading p { border: 0; padding: 0; }
}
.po-more-actions { position: relative; }
.po-more-actions > summary { display: flex; align-items: center; gap: 6px; padding: 5px 7px; font-size: 13px; cursor: pointer; list-style: none; }
.po-more-actions > summary::-webkit-details-marker { display: none; }
.po-more-actions > div { position: absolute; left: 0; top: 100%; z-index: 11; min-width: 150px; padding: 5px; border: 1px solid var(--po-line); border-radius: 8px; background: var(--po-panel); box-shadow: 0 4px 16px #0002; }
.po-task-page .po-more-actions > div .po-button { display: flex; width: 100%; justify-content: flex-start; }
.po-entity-count { flex: 0 0 auto; padding: 1px 6px; border-radius: 12px; background: var(--po-line); color: var(--po-text); font-size: 11px; }
/* The overview uses the same task rows but does not have a table header. */
.po-app:not(.po-task-page) .po-compact-row { grid-template-columns: 32px 32px 38px minmax(0, 1fr) 110px 150px 100px 74px; padding-left: 10px; }
@media (max-width: 900px) { .po-app:not(.po-task-page) .po-compact-row { grid-template-columns: 28px 28px 32px minmax(0, 1fr) 90px 65px; } }
@media (max-width: 480px) { .po-app:not(.po-task-page) .po-compact-row { grid-template-columns: 24px 24px 28px minmax(0, 1fr) 70px 52px; padding-inline: 5px; } }
.po-task-page .po-heading h1 { display: flex; align-items: center; gap: 12px; }
.po-task-page .po-heading h1 svg { flex: 0 0 auto; width: 24px; height: 24px; }
.po-app .po-select-task input[type=radio] { appearance: auto; width: 16px; height: 16px; min-width: 0; min-height: 0; padding: 0; margin: 0; }
.po-compact-title { list-style: none; }
.po-compact-title::-webkit-details-marker { display: none; }
.po-compact-task.is-selected > .po-compact-row,
.po-note.is-selected > .po-note-row { background: var(--po-soft); box-shadow: inset 3px 0 0 var(--po-accent); }
.po-task-actions .po-source-label { list-style: none; cursor: pointer; }
.po-task-actions .po-source-label::-webkit-details-marker { display: none; }
/* Task selection uses the row itself, without a separate radio control. */
.po-task-page .po-task-table-heading { grid-template-columns: minmax(0, 1fr) 120px 150px 100px 74px; }
.po-task-page .po-task-table-heading span:nth-child(1) { padding-left: 58px; }
.po-task-page .po-task-table-heading span:nth-child(2) { padding-left: 0; }
.po-task-page .po-compact-row { grid-template-columns: 26px 32px minmax(0, 1fr) 120px 150px 100px 74px; cursor: pointer; }
.po-compact-row:focus-visible { outline: 2px solid var(--po-accent); outline-offset: -2px; }
.po-app:not(.po-task-page) .po-compact-row { grid-template-columns: 32px 38px minmax(0, 1fr) 110px 150px 100px 74px; }
@media (max-width: 900px) {
  .po-task-page .po-task-table-heading { grid-template-columns: minmax(0, 1fr) 90px 65px; }
  .po-task-page .po-task-table-heading span:nth-child(3), .po-task-page .po-task-table-heading span:nth-child(4) { display: none; }
  .po-task-page .po-task-table-heading span:nth-child(5) { display: block; }
  .po-task-page .po-compact-row { grid-template-columns: 26px 30px minmax(0, 1fr) 90px 65px; }
  .po-app:not(.po-task-page) .po-compact-row { grid-template-columns: 28px 32px minmax(0, 1fr) 90px 65px; }
}
@media (max-width: 480px) {
  .po-task-page .po-task-table-heading { grid-template-columns: minmax(0, 1fr) 70px 52px; }
  .po-task-page .po-task-table-heading span:nth-child(1) { padding-left: 45px; }
  .po-task-page .po-compact-row { grid-template-columns: 22px 26px minmax(0, 1fr) 70px 52px; }
  .po-app:not(.po-task-page) .po-compact-row { grid-template-columns: 24px 28px minmax(0, 1fr) 70px 52px; }
}
/* Keep task navigation and actions in view while scrolling the list. */
.po-task-sticky { position: sticky; top: 0; z-index: 15; background: var(--po-bg); }
.po-task-page .po-task-board-toolbar { display: flex; flex-wrap: nowrap; gap: 3px; align-items: center; padding: 6px 0; background: var(--po-bg); }
.po-task-page .po-task-board-toolbar .po-button { flex: 0 0 auto; }
.po-task-page .po-task-board-toolbar .po-export-icon { padding: 5px; }
.po-task-page .po-export-icon svg { width: 20px; height: 20px; }
.po-task-board-toolbar .po-inline-filter { flex: 0 1 130px; min-width: 92px; margin: 0 2px; }
.po-task-board-toolbar .po-inline-filter select { min-height: 32px !important; padding: 4px 7px !important; font-size: 12px !important; }
.po-task-page .po-board-search { flex: 1 1 150px; min-width: 100px; max-width: 220px; }
.po-task-board-toolbar .po-advanced-filter > summary { padding: 6px; }
.po-task-page .po-advanced-filter > div { right: 0; }
.po-overview-task-filters { margin-bottom: 12px; }
.po-overview-task-filters .po-advanced-filter > div { left: 0; right: auto; }
.po-task-page .po-tabs { margin-bottom: 0; }
.po-task-page .po-compact-row { grid-template-columns: calc(26px + var(--po-depth) * 14px) 32px minmax(0, 1fr) 120px 150px 100px 74px; }
.po-task-page .po-tree-control { justify-content: flex-end; }
.po-task-page .po-compact-row .po-compact-title { padding-inline-start: 0; }
.po-app:not(.po-task-page) .po-compact-row { grid-template-columns: calc(32px + var(--po-depth) * 14px) 38px minmax(0, 1fr) 110px 150px 100px 74px; }
.po-app:not(.po-task-page) .po-tree-control { justify-content: flex-end; }
.po-app:not(.po-task-page) .po-compact-row .po-compact-title { padding-inline-start: 0; }
@media (max-width: 1500px) { .po-task-page .po-task-board-toolbar { flex-wrap: wrap; } }
@media (max-width: 900px) {
  .po-task-page .po-task-board-toolbar { gap: 2px; }
  .po-task-page .po-board-search { flex: 1 1 140px; width: auto; max-width: none; }
  .po-task-page .po-compact-row { grid-template-columns: calc(26px + var(--po-depth) * 7px) 30px minmax(0, 1fr) 90px 65px; }
  .po-app:not(.po-task-page) .po-compact-row { grid-template-columns: calc(28px + var(--po-depth) * 7px) 32px minmax(0, 1fr) 90px 65px; }
}
@media (max-width: 480px) {
  .po-task-page .po-compact-row { grid-template-columns: calc(22px + var(--po-depth) * 7px) 26px minmax(0, 1fr) 70px 52px; }
  .po-app:not(.po-task-page) .po-compact-row { grid-template-columns: calc(24px + var(--po-depth) * 7px) 28px minmax(0, 1fr) 70px 52px; }
}
/* Each level advances one full tree column: arrow, checkbox, then folder/title. */
.po-task-table { overflow-x: auto; }
.po-task-page .po-task-group > summary { list-style: none; display: flex; align-items: center; padding: 3px 10px; }
.po-task-page .po-task-group > summary::-webkit-details-marker { display: none; }
.po-task-page .po-task-group > summary::before { content: '▸'; display: inline-flex; align-items: center; justify-content: center; width: 32px; flex: 0 0 32px; margin: 0; color: var(--po-text); font-size: 16px; }
.po-task-page .po-task-group[open] > summary::before { content: '▾'; }
.po-task-page .po-task-group > summary > svg { display: block; flex: 0 0 18px; width: 18px; height: 18px; margin: 0 19px 0 7px; }
.po-task-page .po-compact-row { grid-template-columns: calc(32px + var(--po-depth) * 32px) 32px minmax(0, 1fr) 120px 150px 100px 74px; min-width: max(100%, calc(560px + var(--po-depth) * 32px)); }
.po-task-page .po-tree-toggle { width: 32px; font-size: 16px; line-height: 1; }
.po-task-page .po-task-folder svg { width: 18px; height: 18px; margin: 0 14px 0 7px; }
.po-app:not(.po-task-page) .po-compact-row { grid-template-columns: calc(32px + var(--po-depth) * 32px) 32px minmax(0, 1fr) 110px 150px 100px 74px; min-width: max(100%, calc(560px + var(--po-depth) * 32px)); }
.po-app:not(.po-task-page) .po-tree-toggle { width: 32px; font-size: 16px; line-height: 1; }
@media (max-width: 900px) {
  .po-task-page .po-compact-row, .po-app:not(.po-task-page) .po-compact-row { grid-template-columns: calc(32px + var(--po-depth) * 32px) 32px minmax(0, 1fr) 90px 65px; min-width: max(100%, calc(280px + var(--po-depth) * 32px)); }
}
@media (max-width: 480px) {
  .po-task-page .po-compact-row, .po-app:not(.po-task-page) .po-compact-row { grid-template-columns: calc(32px + var(--po-depth) * 32px) 32px minmax(0, 1fr) 70px 52px; }
  .po-task-page .po-task-group > summary { padding-inline: 5px; }
}
.po-task-page { overflow-x: clip; }
.po-group-title { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.po-task-page .po-group-name { min-width: 0; flex: 1 1 auto; }
.po-task-page .po-group-actions { display: inline-flex; flex: 0 0 auto; gap: 2px; }
.po-app .po-group-icon { padding: 3px; border: 0; min-height: 28px; width: 30px; background: transparent; }
.po-group-icon svg { display: block; width: 17px; height: 17px; }
.po-app .po-task-group > summary > .po-id-column { flex: 0 0 auto; margin-inline-start: 6px; white-space: nowrap; }
@media (max-width: 900px) { .po-task-board-toolbar .po-advanced-filter > div { position: fixed; left: 12px; right: 12px; top: max(16px, 20vh); width: auto; max-height: 70vh; overflow-y: auto; } }
.po-compact-row[draggable=true] { cursor: grab; }
.po-compact-row.po-dragging { opacity: .5; cursor: grabbing; }
.po-compact-row.po-drop-target, .po-task-group > summary.po-drop-target { outline: 2px solid var(--po-accent); outline-offset: -2px; background: var(--po-soft); }
.po-source-original { margin-top: 10px; }
/* Priority stays aligned with its own table heading at every nesting level. */
.po-task-page .po-task-table-heading { grid-template-columns: minmax(0, 1fr) 90px 120px 150px 100px 74px; }
.po-task-page .po-compact-row { grid-template-columns: calc(32px + var(--po-depth) * 32px) 32px minmax(0, 1fr) 90px 120px 150px 100px 74px; min-width: max(100%, calc(650px + var(--po-depth) * 32px)); }
.po-task-priority { padding: 4px; }
.po-task-notes { margin-top: 10px; }
.po-app:not(.po-task-page) .po-compact-row { grid-template-columns: calc(32px + var(--po-depth) * 32px) 32px minmax(0, 1fr) 90px 110px 150px 100px 74px; min-width: max(100%, calc(650px + var(--po-depth) * 32px)); }
@media (max-width: 900px) {
  .po-task-page .po-task-table-heading { grid-template-columns: minmax(0, 1fr) 75px 90px 65px; }
  .po-task-page .po-task-table-heading span:nth-child(3), .po-task-page .po-task-table-heading span:nth-child(6) { display: block; }
  .po-task-page .po-task-table-heading span:nth-child(4), .po-task-page .po-task-table-heading span:nth-child(5) { display: none; }
  .po-task-page .po-compact-row, .po-app:not(.po-task-page) .po-compact-row { grid-template-columns: calc(32px + var(--po-depth) * 32px) 32px minmax(0, 1fr) 75px 90px 65px; min-width: max(100%, calc(355px + var(--po-depth) * 32px)); }
}
@media (max-width: 480px) {
  .po-task-page .po-task-table-heading { grid-template-columns: minmax(0, 1fr) 70px 70px 52px; }
  .po-task-page .po-compact-row, .po-app:not(.po-task-page) .po-compact-row { grid-template-columns: calc(32px + var(--po-depth) * 32px) 32px minmax(0, 1fr) 70px 70px 52px; }
}
.po-trash-info { color: var(--po-muted); margin-bottom: 18px !important; }
.po-trash-list { display: grid; gap: 10px; }
.po-trash-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.po-trash-item > div { min-width: 0; overflow-wrap: anywhere; }
/* Project task pages retain the same project header as Overview and other tabs. */
.po-project-task-page { --po-bg: #f5f2eb; --po-panel: #fffcf7; --po-sidebar: #eeeae1; --po-text: #253229; --po-line: #dfdfd4; --po-soft: #e8efe5; }
.po-project-task-page[data-theme=dark] { --po-bg: #19221e; --po-panel: #222e27; --po-sidebar: #17201b; --po-text: #eff2e9; --po-line: #3b483f; --po-soft: #324c3a; }
.po-project-task-page .po-main { padding: 26px clamp(16px, 2.5vw, 36px) 40px; }
.po-project-task-page .po-topbar { align-items: flex-start; gap: 18px; padding: 0 0 20px; margin-bottom: 20px; }
.po-project-task-page .po-heading { display: block; }
.po-project-task-page .po-heading .po-eyebrow { display: block; }
.po-project-task-page .po-heading h1 { display: block; font: 500 clamp(28px, 3vw, 42px)/1.2 Georgia, serif; letter-spacing: -.8px; }
.po-project-task-page .po-heading p { border: 0; padding: 0; margin-top: 6px; font-size: 15px; }
.po-project-task-page .po-top-actions { padding-top: 10px; }
.po-project-task-page .po-tabs { margin-bottom: 20px; }
@media (max-width: 900px) { .po-project-task-page .po-main { padding: 20px 16px 32px; } .po-project-task-page .po-top-actions { width: 100%; padding: 0; } }
@media (max-width: 600px) { .po-project-task-page .po-main { padding: 16px 12px 28px; } }
/* Column visibility is a per-user preference; narrow screens scroll the table. */
.po-app { --po-col-priority: 90px; --po-col-due: 120px; --po-col-entered: 120px; --po-col-modified: 120px; --po-col-project: 150px; --po-col-owner: 140px; --po-col-status: 100px; --po-col-id: 74px; }
.po-app[data-col-priority=off] { --po-col-priority: 0px; }
.po-app[data-col-due=off] { --po-col-due: 0px; }
.po-app[data-col-entered=off] { --po-col-entered: 0px; }
.po-app[data-col-modified=off] { --po-col-modified: 0px; }
.po-app[data-col-project=off] { --po-col-project: 0px; }
.po-app[data-col-owner=off] { --po-col-owner: 0px; }
.po-app[data-col-status=off] { --po-col-status: 0px; }
.po-app[data-col-id=off] { --po-col-id: 0px; }
.po-task-page .po-task-table-heading { grid-template-columns: minmax(0,1fr) var(--po-col-priority) var(--po-col-due) var(--po-col-entered) var(--po-col-modified) var(--po-col-project) var(--po-col-owner) var(--po-col-status) var(--po-col-id); min-width: calc(200px + var(--po-col-priority) + var(--po-col-due) + var(--po-col-entered) + var(--po-col-modified) + var(--po-col-project) + var(--po-col-owner) + var(--po-col-status) + var(--po-col-id)); }
.po-task-page .po-task-group { min-width: calc(200px + var(--po-col-priority) + var(--po-col-due) + var(--po-col-entered) + var(--po-col-modified) + var(--po-col-project) + var(--po-col-owner) + var(--po-col-status) + var(--po-col-id)); }
.po-task-page .po-compact-row, .po-app:not(.po-task-page) .po-compact-row { grid-template-columns: calc(32px + var(--po-depth) * 32px) 32px minmax(0,1fr) var(--po-col-priority) var(--po-col-due) var(--po-col-entered) var(--po-col-modified) var(--po-col-project) var(--po-col-owner) var(--po-col-status) var(--po-col-id); min-width: max(100%, calc(200px + var(--po-depth) * 32px + var(--po-col-priority) + var(--po-col-due) + var(--po-col-entered) + var(--po-col-modified) + var(--po-col-project) + var(--po-col-owner) + var(--po-col-status) + var(--po-col-id))); }
.po-task-owner { padding: 4px; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .po-task-page .po-task-table-heading span:nth-child(n) { display: block; }
  .po-task-project, .po-task-status-cell { display: block; }
}
.po-app[data-col-priority=off] .po-col-priority, .po-app[data-col-priority=off] .po-task-priority,
.po-app[data-col-due=off] .po-col-due, .po-app[data-col-due=off] .po-compact-due,
.po-app[data-col-entered=off] .po-col-entered, .po-app[data-col-entered=off] .po-task-entered,
.po-app[data-col-modified=off] .po-col-modified, .po-app[data-col-modified=off] .po-task-modified,
.po-app[data-col-project=off] .po-col-project, .po-app[data-col-project=off] .po-task-project,
.po-app[data-col-owner=off] .po-col-owner, .po-app[data-col-owner=off] .po-task-owner,
.po-app[data-col-status=off] .po-col-status, .po-app[data-col-status=off] .po-task-status-cell,
.po-app[data-col-id=off] .po-col-id, .po-app[data-col-id=off] .po-compact-row > .po-id-column { visibility: hidden; overflow: hidden; padding: 0; height: 0; min-height: 0; }
.po-project-task-page .po-heading h1 { font-size: clamp(26px, 2.6vw, 35px); }

.po-nav-count { margin-left: auto; }


/* Date shortcuts belong beneath All to-dos in the navigation. */
.po-app .po-nav[data-quick-due] { padding-left: 32px; gap: 8px; }

.po-task-entered, .po-task-modified, .po-note-date, .po-note-modified { padding: 4px; font-size: 13px; }
.po-note-tree-list { border: 1px solid var(--po-line); border-radius: 8px; overflow-x: auto; background: var(--po-panel); }
.po-note-heading { display: grid; grid-template-columns: minmax(200px,1fr) 120px 120px 74px; padding: 6px 10px; background: var(--po-sidebar); font-weight: 600; font-size: 12px; min-width: 570px; }
.po-note-row { display: grid; grid-template-columns: calc(32px * var(--po-note-depth)) 32px minmax(200px,1fr) 120px 120px 74px; align-items: start; border-top: 1px solid var(--po-line); padding: 0 10px; min-width: calc(570px + var(--po-note-depth) * 32px); }
.po-note-tree { min-height: 40px; }
.po-note-details { min-width: 0; }
.po-note-details > summary { cursor: pointer; padding: 9px 4px; overflow-wrap: anywhere; list-style: none; }
.po-note-details > summary::-webkit-details-marker { display: none; }
.po-app .po-note-tree .po-tree-toggle { font-size: 16px; line-height: 1; }
.po-note-content { padding: 0 8px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.po-note-row[draggable=true] { cursor: grab; }
.po-note-row.po-drop-target { outline: 2px solid var(--po-accent); outline-offset: -2px; background: var(--po-soft); }

.po-note-row:focus-visible { outline: 2px solid var(--po-accent); outline-offset: -2px; }

.po-note-toolbar [data-action=note-indent] svg, .po-note-toolbar [data-action=note-outdent] svg { color: #1465a2; }
.po-note-toolbar [data-action=note-delete] svg { color: #db322c; }
.po-note-toolbar [data-action=note-move] svg { color: #866816; }

.po-image-dropzone { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center; border: 2px dashed var(--po-line); border-radius: 10px; background: var(--po-panel); padding: 24px 16px; margin: 0 0 20px; color: var(--po-text); }
.po-image-dropzone span { color: var(--po-muted); font-size: 13px; }
.po-image-dropzone.is-dragover, #po-content.is-dragover, #po-upload-form.is-dragover { outline: 3px solid var(--po-accent); outline-offset: 2px; background: var(--po-soft); }
.po-image-dropzone:focus-visible { outline: 3px solid #5b9cd3; outline-offset: 2px; }

.po-tab-count { display: inline-block; margin-left: 7px; padding: 0 6px; border-radius: 12px; background: var(--po-line); color: var(--po-text); font-size: 11px; line-height: 20px; vertical-align: middle; }

.po-tree-folder { color: var(--po-accent) !important; }
.po-tree-folder svg { display: block; width: 18px; height: 18px; }
.po-empty-folder { display: inline-flex; width: 32px; min-height: 28px; align-items: center; justify-content: center; }
.po-note-tree { display: flex; align-items: center; justify-content: center; }

/* The project folder is the group disclosure control. */
.po-task-page .po-task-group > summary::before { content: none; display: none; }
.po-task-page .po-task-group[open] > summary::before { content: none; }
.po-project-folder { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; flex: 0 0 32px; margin-right: 12px; color: var(--po-accent); }
.po-project-folder svg { display: block; width: 18px; height: 18px; }
.po-project-folder svg:last-child, .po-task-group[open] > summary .po-project-folder svg:first-child { display: none; }
.po-task-group[open] > summary .po-project-folder svg:last-child { display: block; }

/* Keep column headings with the sticky controls and aligned to the scrolling rows. */
.po-table-heading-viewport { overflow: hidden; border: 1px solid var(--po-line); border-bottom: 0; border-radius: 8px 8px 0 0; }
.po-table-heading-viewport > div { width: 100%; }
.po-task-page #po-content > .po-task-table, .po-task-page #po-content > .po-note-tree-list { border-radius: 0 0 8px 8px; }

.po-version { border-bottom: 1px solid var(--po-line); padding: 10px 0; }
.po-version summary { cursor: pointer; }
.po-version-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Project-assigned custom columns share the scrollable table with standard fields. */
.po-app[data-custom=on] .po-task-table-heading { grid-template-columns: minmax(0,1fr) var(--po-col-priority) var(--po-col-due) var(--po-col-entered) var(--po-col-modified) var(--po-col-project) var(--po-col-owner) var(--po-col-status) var(--po-col-id) repeat(var(--po-custom-count),140px); min-width: calc(200px + var(--po-col-priority) + var(--po-col-due) + var(--po-col-entered) + var(--po-col-modified) + var(--po-col-project) + var(--po-col-owner) + var(--po-col-status) + var(--po-col-id) + var(--po-custom-width)); }
.po-app[data-custom=on] .po-task-group { min-width: calc(200px + var(--po-col-priority) + var(--po-col-due) + var(--po-col-entered) + var(--po-col-modified) + var(--po-col-project) + var(--po-col-owner) + var(--po-col-status) + var(--po-col-id) + var(--po-custom-width)); }
.po-app[data-custom=on] .po-compact-row { grid-template-columns: calc(32px + var(--po-depth) * 32px) 32px minmax(0,1fr) var(--po-col-priority) var(--po-col-due) var(--po-col-entered) var(--po-col-modified) var(--po-col-project) var(--po-col-owner) var(--po-col-status) var(--po-col-id) repeat(var(--po-custom-count),140px); min-width: max(100%, calc(200px + var(--po-depth) * 32px + var(--po-col-priority) + var(--po-col-due) + var(--po-col-entered) + var(--po-col-modified) + var(--po-col-project) + var(--po-col-owner) + var(--po-col-status) + var(--po-col-id) + var(--po-custom-width))); }
.po-app[data-custom=on] .po-note-heading { grid-template-columns: minmax(200px,1fr) 120px 120px 74px repeat(var(--po-custom-count),140px); min-width: calc(570px + var(--po-custom-width)); }
.po-app[data-custom=on] .po-note-row { grid-template-columns: calc(32px * var(--po-note-depth)) 32px minmax(200px,1fr) 120px 120px 74px repeat(var(--po-custom-count),140px); min-width: calc(570px + var(--po-note-depth) * 32px + var(--po-custom-width)); }
.po-custom-cell { display: block; padding: 4px; font-size: 13px; overflow-wrap: anywhere; }
.po-taxonomy-form select[multiple] { min-height: 100px; }

.po-taxonomy-row { border-top: 1px solid var(--po-line); padding: 12px 0; }
.po-taxonomy-row p { margin: 4px 0; color: var(--po-muted); font-size: 13px; }
.po-taxonomy-row details, .po-taxonomy-add { margin-top: 10px; }
.po-taxonomy-row summary, .po-taxonomy-add > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.po-taxonomy-row form, .po-taxonomy-add form { margin-top: 10px; }

/* Settings tabs and compact taxonomy lists. */
.po-settings-tabs a { gap: 7px; }
.po-settings-tabs a svg { width: 17px; height: 17px; flex: 0 0 17px; }
.po-taxonomy-page { display: grid; gap: 16px; }
.po-taxonomy-title, .po-taxonomy-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.po-taxonomy-title h2 { display: flex; gap: 9px; align-items: center; }
.po-taxonomy-title h2 svg { width: 23px; height: 23px; }
.po-taxonomy-title p, .po-taxonomy-section-head p { color: var(--po-muted); font-size: 13px; }
.po-taxonomy-section h2 span { color: var(--po-muted); font: 600 13px/1.2 sans-serif; }
.po-taxonomy-section .po-taxonomy-search { margin: 0; width: min(260px,100%); }
.po-taxonomy-section .po-taxonomy-search input { min-height: 38px; }
.po-taxonomy-section .po-taxonomy-list { margin-top: 12px; }
.po-taxonomy-section .po-taxonomy-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 18px; align-items: start; }
.po-taxonomy-section .po-taxonomy-row[hidden] { display: none; }
.po-taxonomy-section .po-taxonomy-row details[open] { grid-column: 1 / -1; width: 100%; }
.po-taxonomy-section .po-taxonomy-row details { margin: 0; }
.po-taxonomy-section .po-taxonomy-row summary { font-size: 13px; color: var(--po-accent); }
.po-taxonomy-add { border-top: 1px solid var(--po-line); padding-top: 8px; }
@media (max-width: 600px) { .po-taxonomy-title, .po-taxonomy-section-head { align-items: stretch; } .po-taxonomy-section .po-taxonomy-search { width: 100%; } }

/* Optional browser-local light and dark palettes. */
.po-app[data-palette=blue] { --po-bg:#edf3fa; --po-panel:#fbfdff; --po-sidebar:#e4edf8; --po-text:#182b43; --po-muted:#53677d; --po-line:#cbd8e8; --po-accent:#195a9e; --po-soft:#dceafa; }
.po-app[data-palette=sand] { --po-bg:#f8f0e4; --po-panel:#fffaf2; --po-sidebar:#f1e3d0; --po-text:#3b2d24; --po-muted:#786557; --po-line:#dfcdb9; --po-accent:#855332; --po-soft:#f4e4d0; }
.po-app[data-palette=midnight] { --po-bg:#111d2d; --po-panel:#1a2a3d; --po-sidebar:#101c2b; --po-text:#edf3fb; --po-muted:#a9bdd3; --po-line:#3a4e64; --po-accent:#9dc9ff; --po-soft:#2b425c; }
.po-app[data-palette=charcoal] { --po-bg:#1c1d20; --po-panel:#292b2f; --po-sidebar:#191a1d; --po-text:#f2f2f2; --po-muted:#c0c1c5; --po-line:#4b4d52; --po-accent:#c2d2ff; --po-soft:#383f4d; }
.po-app[data-palette=blue] .po-task-table-heading, .po-app[data-palette=sand] .po-task-table-heading, .po-app[data-palette=midnight] .po-task-table-heading, .po-app[data-palette=charcoal] .po-task-table-heading { background: var(--po-sidebar); }

.po-pack-usage { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 3px 14px 3px 0; font-size: 13px; }
.po-sidebar-footer { gap: 0; padding-inline: 0; }
@media (min-width: 901px) {
  .po-sidebar { width: 280px; flex-basis: 280px; }
  .po-app[data-sidebar=hidden] .po-sidebar { display: none; }
  .po-app[data-sidebar=hidden] .po-menu { display: inline-flex; }
}

.po-column-summary { min-width: 0; white-space: nowrap; overflow-x: auto; }
.po-column-summary a { color: var(--po-accent); }

.po-column-table-scroll { overflow-x: auto; }
.po-column-table { min-width: 880px; }
.po-column-head, .po-taxonomy-section .po-column-row { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(100px, .8fr) 80px minmax(120px, 1fr) minmax(180px, 2fr) minmax(110px, 1fr) 110px; gap: 12px; align-items: start; }
.po-column-head { padding: 12px 0; font-size: 13px; font-weight: 600; color: var(--po-muted); }
.po-taxonomy-section .po-column-row[hidden] { display: none; }
.po-column-row > [role=cell] { min-width: 0; overflow-wrap: anywhere; }
.po-column-row a { color: var(--po-accent); }
.po-column-row details[open] { min-width: 260px; }
.po-taxonomy-page { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.po-column-table-scroll { max-width: 100%; }

.po-project-columns { min-width: 0; margin: 18px 0; padding: 14px; border: 1px solid var(--po-line); border-radius: 8px; }
.po-project-columns legend { padding: 0 6px; font-weight: 600; }
.po-project-columns select[multiple] { min-height: 100px; }

.po-app .po-dialog:has(.po-column-picker) { width: min(1000px, calc(100vw - 28px)); }
.po-column-picker { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto; gap: 10px; align-items: center; }
.po-column-picker label { min-width: 0; }
.po-column-picker select[multiple] { min-height: 170px; }
.po-column-picker-actions { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 650px) { .po-column-picker { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .po-column-picker-actions { flex-direction: row; flex-wrap: wrap; } .po-column-picker > label, .po-column-picker > .po-column-available { grid-column: 1 / -1; } }

.po-column-available { min-width: 0; align-self: start; }
.po-column-available > label { margin-bottom: 6px; }
.po-column-available-box { border: 1px solid var(--po-line); border-radius: 8px; overflow: hidden; background: var(--po-panel); }
.po-app .po-column-available input[type=search] { min-height: 38px; border: 0; border-bottom: 1px solid var(--po-line); border-radius: 0; }
.po-app .po-column-available select { border: 0; border-radius: 0; display: block; }

.po-availability { border: 1px solid var(--po-line); border-radius: 8px; margin: 12px 0; padding: 10px 12px 0; }
.po-availability legend { padding: 0 5px; font-weight: 600; }
.po-removed-columns { border-top: 1px solid var(--po-line); margin-top: 12px; padding-top: 12px; }
.po-removed-columns summary { cursor: pointer; font-weight: 600; }
.po-removed-column { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; }

.po-project-tab-actions { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.po-app .po-project-tab-actions > .po-button { height: 40px; margin-left: 0; }
.po-app .po-project-settings { width: 40px; padding: 8px; }
.po-project-settings svg { width: 20px; height: 20px; }

.po-settings-version { text-transform: none; }

.po-timezone-field { display: grid; gap: 6px; margin-bottom: 16px; font-size: 14px; }
.po-timezone-picker { position: relative; min-width: 0; }
.po-timezone-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 10px 12px; border: 1px solid var(--po-line); border-radius: 8px; background: var(--po-panel); color: var(--po-text); cursor: pointer; list-style: none; }
.po-timezone-picker summary::-webkit-details-marker { display: none; }
.po-timezone-picker summary:focus-visible { outline: 2px solid var(--po-accent); outline-offset: 1px; }
.po-timezone-popup { position: absolute; z-index: 15; top: calc(100% + 4px); left: 0; width: 100%; background: var(--po-panel); border: 1px solid var(--po-line); border-radius: 8px; padding: 8px; box-shadow: 0 8px 25px #0003; }
.po-timezone-options { max-height: 240px; overflow-y: auto; margin-top: 6px; }
.po-timezone-options button { display: block; text-align: left; width: 100%; border: 0; border-radius: 5px; background: transparent; color: var(--po-text); padding: 7px 9px; }
.po-timezone-options button:hover, .po-timezone-options button[aria-selected=true] { background: var(--po-soft); color: var(--po-text); }
.po-timezone-empty { padding: 8px; }
.po-password-field { margin: -10px 0 16px; }
.po-app .po-password-icon { width: 42px; min-width: 42px; padding: 6px; }

/* Project Overview, fixed Notes sections, and support. */
.po-project-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.po-app .po-project-stats .po-stat { min-width: 0; color: var(--po-text); text-decoration: none; }
.po-project-stats .po-stat:hover { border-color: var(--po-accent); }
.po-project-stats .po-stat:focus-visible { outline: 2px solid var(--po-accent); outline-offset: 2px; }
.po-stat-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.po-stat-label svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 7px; background: var(--po-soft); color: var(--po-accent); }
.po-stat[data-tone=gold] .po-stat-label svg { color: #825309; background: #fff0d4; }
.po-stat[data-tone=violet] .po-stat-label svg { color: #615097; background: #efeafa; }
.po-stat[data-tone=coral] .po-stat-label svg { color: #9b4139; background: #f8e5e1; }
.po-overview-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
.po-overview-grid > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.po-note-section { margin-top: 16px; scroll-margin-top: 160px; }
.po-overview-grid .po-note-section { margin-top: 0; }
.po-fixed-notes-links, .po-row-actions { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.po-fixed-notes-links { margin-bottom: 12px; }
.po-structured-note { padding: 12px; border: 1px solid var(--po-line); border-radius: 9px; overflow-wrap: anywhere; }
.po-structured-note + .po-structured-note { margin-top: 10px; }
.po-structured-note .po-content-heading, .po-checklist-preview .po-content-heading { margin: 0 0 6px; align-items: flex-start; }
.po-structured-note h3, .po-checklist-layout h3 { margin: 0; }
.po-structured-note .po-row-actions, .po-structured-note small { margin-top: 8px; }
.po-structured-note small { display: block; }
.po-structured-body { margin-top: 8px; }
.po-structured-body p, .po-structured-body ul, .po-structured-body ol, .po-structured-body blockquote { margin-block: 0 8px; }
.po-multiline { white-space: pre-wrap; overflow-wrap: anywhere; }
.po-structured-body pre { white-space: pre-wrap; }
.po-contact-email { display: flex; align-items: center; gap: 8px; }
.po-contact-email svg { width: 16px; height: 16px; }
.po-use-case-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin: 8px 0; text-align: center; }
.po-use-case-flow > span:first-child, .po-use-case-flow > span:last-child { background: var(--po-soft); padding: 8px; border-radius: 7px; }
.po-use-case-details { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.po-recent-notes details { padding: 8px 0; border-bottom: 1px solid var(--po-line); }
.po-recent-notes summary { cursor: pointer; font-weight: 600; }
.po-project-pulse dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; margin: 12px 0 0; font-size: 13px; }
.po-project-pulse dt { color: var(--po-muted); }
.po-project-pulse dd { margin: 0; text-align: right; font-weight: 600; }
.po-pulse-progress { display: flex; align-items: center; gap: 10px; }
.po-pulse-ring { flex: none; width: 62px; aspect-ratio: 1; padding: 6px; display: grid; border-radius: 50%; background: conic-gradient(var(--po-accent) var(--po-progress), var(--po-line) 0); }
.po-pulse-ring span { display: grid; place-items: center; border-radius: 50%; background: var(--po-panel); font-weight: 700; }
.po-support-form .po-environment-row { border-bottom: 1px solid var(--po-line); padding-bottom: 10px; margin-bottom: 10px; }
.po-ticket-filters { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 12px; }
.po-ticket-filters label { flex: 0 1 180px; }
.po-ticket-table-wrap { overflow-x: auto; }
.po-ticket-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 14px; }
.po-ticket-table th, .po-ticket-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--po-line); overflow-wrap: anywhere; }
.po-ticket-table th { background: var(--po-sidebar); }
.po-ticket-table th:first-child, .po-ticket-table th:nth-child(3) { min-width: 105px; }
.po-ticket-table th:nth-child(2), .po-ticket-table th:nth-child(5) { min-width: 160px; }
.po-ticket-table small { display: block; color: var(--po-muted); }
.po-ticket-status { display: inline-block; border-radius: 20px; padding: 3px 8px; background: var(--po-soft); color: var(--po-accent); font-size: 12px; font-weight: 700; }
.po-ticket-status[data-status=waiting] { color: #805315; background: #fff0d5; }
.po-ticket-status[data-status=open] { color: #914334; background: #f7e6e0; }
.po-ticket-status[data-status=in_progress] { color: #5e4b9a; background: #eae4f9; }
.po-checklist-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.po-checklist-select { margin-bottom: 16px; }
.po-checklist-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.po-checklist-fields > h3 { margin-top: 14px; }
.po-checklist-evidence { padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--po-line); }
.po-checklist-preview pre { margin: 0; padding: 12px; border: 1px solid var(--po-line); border-radius: 8px; background: var(--po-bg); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
@media (min-width: 1120px) { .po-checklist-preview { position: sticky; top: 16px; } }
@media (max-width: 1100px) { .po-overview-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
@media (max-width: 900px) {
  .po-project-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-overview-grid, .po-checklist-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .po-use-case-flow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .po-use-case-flow > span:nth-child(2) { justify-self: center; transform: rotate(90deg); }
}

/* Shared mobile workspace. The desktop workspace retains its sidebar and tables. */
.po-mobile-header, .po-mobile-nav, .po-mobile-stat-icon, .po-mobile-calendar-mark,
.po-mobile-search-icon, .po-mobile-project-mark, .po-mobile-owner-icon,
.po-mobile-import-icon, .po-mobile-task-details, .po-app .po-task-more,
.po-schedule-week-strip, .po-schedule-mobile-settings, .po-agenda-empty-day { display: none; }
.po-task-secondary, .po-task-filter-row, .po-project-tab-links { display: contents; }
.po-project-card-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.po-project-card-name h2 { flex: 1; min-width: 0; }
.po-project-card-freshness { display: inline-flex; align-items: center; }
.po-home-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(190px,100%),1fr)); gap: 12px; }
.po-home-links a { display: flex; align-items: center; gap: 10px; min-height: 60px; text-decoration: none; }
.po-home-links a > span { margin-inline-start: auto; }
.po-home-links a:hover { background: var(--po-soft); }

@media (max-width: 900px) {
  .po-app {
    --po-mobile-nav-height: calc(66px + env(safe-area-inset-bottom));
    --po-mobile-header-height: calc(61px + env(safe-area-inset-top));
    --po-mobile-shadow: 0 5px 16px color-mix(in srgb, var(--po-text) 7%, transparent);
    --po-mobile-gutter: clamp(12px, 4vw, 32px);
    background: linear-gradient(160deg, var(--po-soft), var(--po-bg) min(420px, 50vh));
    display: block;
    min-height: 100dvh;
    font-size: 15px;
    scroll-margin-top: var(--po-mobile-header-height);
  }
  html:has(.peggy-o-standalone .po-mobile-nav) { scroll-padding-block: calc(68px + env(safe-area-inset-top)) calc(70px + env(safe-area-inset-bottom)); }
  .po-app .po-main { padding: 20px max(var(--po-mobile-gutter), env(safe-area-inset-right)) calc(var(--po-mobile-nav-height) + 24px) max(var(--po-mobile-gutter), env(safe-area-inset-left)); }
  .po-app .po-topbar { display: block; padding: 0; margin: 0 0 18px; border: 0; }
  .po-app .po-topbar > .po-menu, .po-app .po-desktop-theme, .po-top-actions:has(> .po-desktop-theme:only-child),
  .po-topbar .po-eyebrow:not(.po-project-kind .po-eyebrow), .po-heading-caption { display: none; }
  .po-app .po-heading h1 {
    display: flex; align-items: center; gap: 10px;
    font: 750 clamp(27px, 5.6vw, 38px)/1.12 system-ui, sans-serif;
    letter-spacing: -.035em; overflow-wrap: anywhere;
  }
  .po-app h2 { font: 700 20px/1.25 system-ui, sans-serif; letter-spacing: -.018em; }
  .po-app h3 { line-height: 1.28; }
  .po-heading h1 > svg { display: none; }
  .po-heading p { margin-top: 6px; font-size: 14px; }
  .po-app .po-top-actions { justify-content: flex-start; flex-wrap: nowrap; width: 100%; padding: 0; margin-top: 14px; }
  .po-project-search-actions { width: 100%; }
  .po-app .po-top-actions .po-button { width: auto; }
  .po-top-actions .po-primary { font-size: 14px; padding-inline: 12px; }
  .po-app .po-search { min-width: 0; }
  .po-app :is(.po-search,.po-board-search) { position: relative; }
  .po-app :is(.po-search,.po-board-search) input { padding-inline-start: 36px !important; }
  .po-app .po-task-board-toolbar .po-board-search input { height: auto; min-height: 44px !important; font-size: 16px !important; }
  .po-mobile-search-icon { display: block; position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--po-muted); height: 20px; }
  .po-mobile-search-icon svg { width: 19px; height: 19px; }
  .po-mobile-header {
    position: sticky; top: 0; z-index: 22;
    display: grid; grid-template-columns: 44px minmax(0,1fr) 44px 44px; gap: 7px; align-items: center;
    min-height: var(--po-mobile-header-height);
    padding: calc(8px + env(safe-area-inset-top)) max(var(--po-mobile-gutter), env(safe-area-inset-right)) 8px max(var(--po-mobile-gutter), env(safe-area-inset-left));
    background: color-mix(in srgb, var(--po-panel) 94%, var(--po-soft)); border-bottom: 1px solid var(--po-line);
  }
  body:not(.peggy-o-standalone) .po-mobile-header { position: relative; }
  .po-mobile-header > .po-button { width: 44px; height: 44px; padding: 0; border-radius: 13px; box-shadow: var(--po-mobile-shadow); }
  .po-mobile-header .po-mobile-brand {
    display: grid; place-items: center; justify-self: center; width: min(100%, 156px); min-width: 0; min-height: 44px;
    color: var(--po-text); font-weight: 760; letter-spacing: -.03em; font-size: clamp(17px, 4.5vw, 23px); text-decoration: none;
  }
  .po-mobile-brand img { display: block; width: 100%; height: 44px; object-fit: contain; }
  .po-mobile-brand strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .po-mobile-nav {
    position: fixed; bottom: 0; inset-inline: 0; z-index: 23;
    display: flex; justify-content: center; min-height: var(--po-mobile-nav-height);
    padding: 6px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--po-panel) 96%, var(--po-soft)); border-top: 1px solid var(--po-line);
    border-radius: 19px 19px 0 0; box-shadow: 0 -5px 20px color-mix(in srgb,var(--po-text) 8%,transparent);
  }
  .po-mobile-nav > :is(a,button) {
    display: grid; grid-template-rows: 30px auto; justify-items: center; align-items: center;
    flex: 1 1 0; max-width: 145px; min-height: 50px; padding: 0 3px; color: var(--po-muted);
    text-decoration: none; font-size: 12px; font-weight: 600; background: transparent; border: 0; border-radius: 12px;
  }
  .po-mobile-nav > :is(a,button) > span { display: grid; place-items: center; width: min(100%,56px); height: 28px; border-radius: 9px; }
  .po-mobile-nav > [aria-current=page] { color: var(--po-accent); font-weight: 750; }
  .po-mobile-nav > [aria-current=page] > span, .po-mobile-nav button[aria-expanded=true] > span { background: var(--po-soft); }
  .po-app .po-sidebar.is-open { padding-inline-start: max(10px,env(safe-area-inset-left)); }
  .po-app .po-toast { bottom: calc(var(--po-mobile-nav-height) + 8px); }
  .po-app .po-dialog {
    width: min(620px, calc(100vw - 16px)); margin: auto auto max(0px, env(safe-area-inset-bottom));
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px);
    padding: 16px; border-radius: 20px 20px 12px 12px; overscroll-behavior: contain;
  }
  .po-dialog-heading h2 { min-width: 0; }
  .po-app .po-form-actions .po-button { white-space: normal; }
  .po-home-links, .po-project-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .po-workspace-stats { gap: 10px; margin-bottom: 20px; }
  .po-workspace-stats .po-stat {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto;
    align-items: center; gap: 2px 8px; padding: 11px; box-shadow: var(--po-mobile-shadow);
  }
  .po-workspace-stats .po-stat strong { font: 750 25px/1 system-ui,sans-serif; letter-spacing: -.03em; }
  .po-workspace-stats .po-stat-label { line-height: 1.2; }
  .po-workspace-stats .po-mobile-stat-icon, .po-mobile-project-mark, .po-mobile-calendar-mark {
    display: grid; place-items: center; width: 38px; height: 38px; grid-row: 1 / 3; border-radius: 11px;
    background: var(--po-soft); color: var(--po-accent);
  }
  .po-workspace-stats .po-mobile-stat-icon[data-tone=warning] { background: #fff0db; color: #925010; }
  .po-workspace-stats .po-mobile-stat-icon[data-tone=success] { background: #dff3e8; color: #246747; }
  .po-app .po-content-heading { gap: 10px; margin-bottom: 12px; }
  .po-mobile-import-icon, .po-mobile-owner-icon { display: inline-flex; }
  .po-mobile-owner-icon svg { width: 16px; height: 16px; }
  .po-card-owner { display: inline-flex; align-items: center; gap: 5px; }
  .po-app .po-card { border-radius: 16px; }
  .po-project-card { gap: 10px; box-shadow: var(--po-mobile-shadow); }
  .po-project-card h2 a { min-height: 44px; }
  .po-project-card .po-parent { font-size: 12px; }
  .po-project-card .po-progress { height: 6px; }
  .po-project-card .po-card-bottom { font-size: 13px; }
  .po-project-card .po-card-bottom .po-button { background: var(--po-soft); color: var(--po-accent); border-color: transparent; }
  .po-project-card .po-project-card-freshness .po-dot { width: 10px; height: 10px; flex-basis: 10px; }
  .po-app .po-task-sticky { position: static; background: transparent; }
  .po-app .po-tabs {
    flex-wrap: wrap; min-width: 0; max-width: 100%;
    margin-bottom: 14px; padding: 3px 3px 8px; gap: 5px;
  }
  .po-project-tab-links {
    position: relative; display: flex; flex: 1 0 100%; min-width: 0; gap: 5px;
    overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 1px 5px;
  }
  .po-project-tab-links a { flex: 0 0 auto; white-space: nowrap; }
  .po-app .po-project-tab-actions { flex-wrap: wrap; max-width: 100%; }
  .po-app .po-settings-tabs a { padding-inline: 9px; }
  .po-app .po-task-board-toolbar { padding: 0 0 12px; background: transparent; border: 0; gap: 6px; }
  .po-app .po-task-primary-toolbar { position: relative; display: flex; flex-wrap: wrap; }
  .po-app .po-task-board-toolbar .po-button, .po-app .po-task-board-toolbar summary {
    min-height: 44px; border: 1px solid var(--po-line); background: var(--po-panel); border-radius: 11px; padding: 6px 8px; font-size: 13px;
  }
  .po-app .po-task-primary-toolbar > .po-button:is([data-action=board-add-task],[data-action=board-add-subtask],[data-action=board-indent],[data-action=board-outdent]) {
    flex: 1 0 calc(25% - 6px); gap: 5px; min-width: 0;
  }
  .po-task-primary-toolbar > .po-button svg { flex: 0 0 17px; width: 17px; height: 17px; }
  .po-app .po-task-primary-toolbar > .po-add-task { color: var(--po-accent); background: var(--po-soft); }
  .po-app .po-task-primary-toolbar > .po-hide-completed { order: 1; flex: 1 1 calc(100% - 58px); justify-content: flex-start; background: var(--po-soft); border-color: var(--po-line); }
  .po-app .po-task-primary-toolbar .po-task-more { order: 2; display: inline-flex; min-width: 44px; }
  .po-task-filter-row { order: 3; display: flex; flex: 1 0 100%; min-width: 0; gap: 6px; }
  .po-app .po-task-board-toolbar .po-inline-filter { margin: 0; min-width: 0; flex: 1 1 0; grid-template-columns: minmax(0,1fr); }
  .po-app .po-task-board-toolbar .po-inline-filter select { min-height: 44px !important; padding: 5px 8px !important; font-size: 16px !important; }
  .po-app .po-task-board-toolbar .po-advanced-filter { order: 3; }
  .po-app .po-task-board-toolbar .po-advanced-filter summary { min-width: 44px; }
  .po-app .po-task-board-toolbar .po-advanced-filter > div { inset: max(70px,20vh) 12px auto; width: auto; max-height: 62dvh; z-index: 24; }
  .po-app .po-task-primary-toolbar .po-board-search { order: 4; flex: 1 0 100%; max-width: none; margin: 0; }
  .po-task-secondary {
    display: none; position: absolute; z-index: 20; inset-inline-end: 0; top: 94px;
    width: min(100%,330px); padding: 9px; border: 1px solid var(--po-line); border-radius: 13px;
    background: var(--po-panel); box-shadow: var(--po-mobile-shadow);
  }
  .po-task-secondary.is-open { display: flex; flex-wrap: wrap; gap: 6px; }
  .po-task-primary-toolbar:not(:has(.po-add-task)) .po-task-secondary { top: 44px; }
  .po-app .po-task-secondary .po-export-icon { min-width: 44px; }
  .po-app .po-note-toolbar { flex-wrap: wrap; }
  .po-app .po-table-heading-viewport, .po-app .po-task-table-heading, .po-app .po-note-heading { display: none; }
  .po-app .po-task-table { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .po-app .po-task-group {
    min-width: 0; margin-bottom: 11px; border: 1px solid var(--po-line);
    border-radius: 14px; background: var(--po-panel); box-shadow: var(--po-mobile-shadow);
  }
  .po-app .po-task-group > summary { min-height: 44px; padding: 7px 9px; border-radius: 13px; gap: 7px; background: var(--po-soft); }
  .po-app .po-task-group[open] > summary { border-radius: 13px 13px 0 0; }
  .po-task-group .po-project-folder { flex: 0 0 22px; }
  .po-app[data-view="tasks_all"] .po-project-folder { flex-basis: 32px; margin-inline: 0 2px; }
  .po-task-group .po-group-count { flex-shrink: 0; margin-inline-start: auto; font-size: 12px; }
  .po-task-group .po-group-actions { display: none; }
  .po-app .po-task-group > summary > .po-id-column { margin-inline-start: 0; }
  .po-app .po-task-group > summary .po-copy-id { flex-basis: 44px; min-width: 44px; min-height: 44px; }
  .po-app .po-compact-task > .po-compact-row {
    grid-template-columns: 44px 44px minmax(0,1fr) auto auto !important;
    min-width: 0 !important; align-items: start; gap: 0 4px;
    padding: 2px 8px 2px min(calc(3px + var(--po-depth) * 7px),25px); border: 0;
  }
  .po-app .po-task-table > .po-compact-task { background: var(--po-panel); border: 1px solid var(--po-line); border-bottom: 0; }
  .po-app .po-task-table > .po-compact-task:first-child { border-radius: 14px 14px 0 0; }
  .po-app .po-task-table > .po-compact-task:last-child { border-radius: 0 0 14px 14px; border-bottom: 1px solid var(--po-line); }
  .po-app .po-compact-row > .po-tree-control { grid-column: 1; grid-row: 1; min-height: 44px; padding: 0; align-items: center; justify-content: center; }
  .po-app .po-compact-row .po-tree-toggle { min-height: 44px; min-width: 44px; }
  .po-app .po-compact-row > .po-task-toggle { grid-column: 2; grid-row: 1; width: 44px; min-height: 44px; }
  .po-app .po-compact-row > .po-compact-details { grid-column: 3; grid-row: 1; min-width: 0; }
  .po-app .po-compact-row > .po-compact-details[open] { grid-column: 3 / -1; }
  .po-app .po-compact-row .po-compact-title {
    grid-column: 3; grid-row: 1; min-height: 44px; align-content: center; padding: 5px 0;
    font-size: 14px; line-height: 1.25; text-overflow: clip; white-space: normal;
  }
  .po-compact-detail-body { grid-column: 1 / -1; padding: 8px 4px 12px; }
  .po-app .po-compact-row > .po-task-priority { grid-column: 4; grid-row: 1; align-content: center; min-height: 44px; padding: 0; }
  .po-app .po-compact-row > .po-compact-due { grid-column: 5; grid-row: 1; align-content: center; min-height: 44px; padding: 0; white-space: nowrap; font-size: 12px; }
  .po-app .po-compact-row:has(.po-compact-details[open]) > :is(.po-task-priority,.po-compact-due) { grid-row: 2; min-height: 28px; }
  .po-app[data-col-priority=off] .po-compact-row > .po-task-priority, .po-app[data-col-due=off] .po-compact-row > .po-compact-due,
  .po-app .po-compact-row > :is(.po-task-entered,.po-task-modified,.po-task-project,.po-task-owner,.po-task-status-cell,.po-id-column,.po-custom-cell) { display: none !important; }
  .po-mobile-task-details { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding: 8px; border-radius: 9px; background: var(--po-bg); margin-bottom: 8px; }
  .po-mobile-task-details dl { display: grid; flex: 1 1 200px; grid-template-columns: minmax(80px,auto) 1fr; min-width: 0; gap: 4px 10px; margin: 0; font-size: 13px; }
  .po-mobile-task-details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
  .po-mobile-task-details dt { color: var(--po-muted); }
  .po-app .po-mobile-task-details .po-copy-id { width: 44px; height: 44px; }
  .po-note-tree-list { overflow: visible; }
  .po-app .po-note-row {
    grid-template-columns: min(calc(6px * var(--po-note-depth)),24px) 38px minmax(0, 1fr) auto !important;
    min-width: 0 !important; padding-inline: 6px; align-items: start;
  }
  .po-app .po-note-details > summary { min-height: 44px; align-content: center; overflow-wrap: anywhere; }
  .po-app .po-note-row > :is(.po-note-date,.po-note-modified,.po-custom-cell) { display: none !important; }
  .po-item-heading > div { min-width: 0; overflow-wrap: anywhere; }
  .po-app .po-trash-item { align-items: flex-start; }
  .po-trash-item .po-button { flex-shrink: 0; }
  .po-app .po-ticket-filters { justify-content: stretch; }
  .po-ticket-filters label { flex: 1 1 140px; }
  .po-ticket-table-wrap, .po-guide-table-wrap { max-width: 100%; overscroll-behavior-inline: contain; }
}

@media (max-width: 380px) {
  .po-app .po-task-primary-toolbar > .po-button:is([data-action=board-add-task],[data-action=board-add-subtask],[data-action=board-indent],[data-action=board-outdent]) { gap: 3px; padding-inline: 3px; font-size: 12px; }
  .po-app .po-compact-task > .po-compact-row { grid-template-columns: 44px 44px minmax(0,1fr) auto !important; }
  .po-app .po-compact-row > .po-task-priority { grid-row: 2; grid-column: 3; justify-self: start; min-height: 26px; }
  .po-app .po-compact-row > .po-compact-due { grid-row: 2; grid-column: 4; min-height: 26px; }
  .po-app .po-compact-row > .po-compact-details { grid-column: 3 / -1; }
  .po-app .po-trash-item { flex-wrap: wrap; }
}

.po-schedule-actions { display: contents; }
.po-app .po-schedule-mobile-settings { display: none; }
@media (max-width: 900px) {
  .po-app .po-schedule-toolbar {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 6px;
    align-items: center; margin-bottom: 10px;
  }
  .po-schedule-toolbar h2 { width: auto; margin: 0; }
  .po-schedule-toolbar .po-schedule-controls { gap: 4px; margin: 0; }
  .po-app .po-schedule-controls > a { min-width: 44px; padding-inline: 6px; border-radius: 10px; }
  .po-schedule-controls > a:not(.po-schedule-today) { font-size: 23px; line-height: 1; }
  .po-app .po-schedule-today { background: var(--po-soft); color: var(--po-accent); font-weight: 700; }
  .po-schedule-week-strip {
    grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px;
    align-items: stretch; padding: 3px 0;
  }
  .po-schedule-week-strip button {
    display: grid; justify-items: center; grid-template-rows: auto 35px 7px; align-content: center;
    min-height: 62px; min-width: 0; gap: 2px; padding: 2px; border: 0; border-radius: 8px;
    color: var(--po-text); background: transparent; font-size: 12px;
  }
  .po-schedule-week-strip button > span:first-child { color: var(--po-muted); }
  .po-schedule-week-strip button strong { display: grid; place-items: center; border-radius: 10px; width: min(39px, 100%); font-size: 16px; }
  .po-schedule-week-strip button[aria-pressed=true] strong { background: var(--po-accent); color: var(--po-bg); }
  .po-schedule-week-strip button[aria-current=date]:not([aria-pressed=true]) strong { background: var(--po-soft); color: var(--po-accent); }
  .po-schedule-week-dots { display: flex; gap: 3px; overflow: hidden; max-width: 100%; }
  .po-schedule-week-dots i { display: block; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; }
  .po-schedule-toolbar .po-schedule-views {
    grid-column: 1 / -1; display: flex; justify-content: stretch; width: 100%;
    padding: 4px; gap: 3px; background: var(--po-panel); border: 1px solid var(--po-line); border-radius: 13px;
    box-shadow: var(--po-mobile-shadow);
  }
  .po-app .po-schedule-views a { flex: 1 1 0; min-width: 0; padding: 5px; border-color: transparent; text-align: center; }
  .po-app .po-schedule-mobile-settings { display: inline-flex; }
  .po-schedule-actions { grid-column: 1 / -1; display: flex; gap: 6px; }
  .po-schedule-actions :is(a,button) { min-width: 44px; border-radius: 11px; }
  .po-schedule-actions [data-schedule-action=add] { margin-inline-end: auto; }
  .po-schedule-actions [data-schedule-action=refresh], .po-schedule-actions .po-schedule-mobile-settings { font-size: 20px; padding: 4px; }
  .po-schedule-hint a { display: none; }
  .po-schedule-calendars { display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; }
  .po-app .po-schedule-filter {
    min-height: 52px; padding: 8px 11px; border: 1px solid var(--po-line); border-radius: 13px;
    background: var(--po-panel); box-shadow: var(--po-mobile-shadow);
  }
  .po-app .po-agenda-body { background: transparent; border: 0; overflow: visible; }
  .po-schedule-day-list { scroll-margin-top: calc(var(--po-mobile-header-height) + 8px); }
  .po-agenda-body .po-schedule-day-list {
    padding: 12px; margin-bottom: 10px; border: 1px solid var(--po-line); border-radius: 15px;
    background: var(--po-panel); box-shadow: var(--po-mobile-shadow);
  }
  .po-app .po-agenda-empty-day { display: block; }
  .po-schedule-day-list h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 16px; }
  .po-app .po-schedule-day-list .po-schedule-event {
    min-height: 55px; padding: 9px 12px; border-radius: 10px; border-left-width: 5px;
    background: color-mix(in srgb,var(--po-calendar-color) 11%,var(--po-panel));
  }
  .po-schedule-day-list .po-schedule-event strong { font-size: 15px; }
  .po-schedule-day-list :is(.po-schedule-event-time,.po-schedule-source) { font-size: 12px; }
  .po-schedule-cell { min-height: 62px; padding: 0; text-align: center; }
  .po-app .po-schedule-date { width: min(44px,100%); }
  .po-schedule-desktop-events { display: none; }
  .po-schedule-mobile-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; min-height: 10px; padding: 2px; }
  .po-schedule-mobile-dots span { width: 5px; height: 5px; border-radius: 50%; }
}
@media (max-width: 380px) {
  .po-app .po-schedule-toolbar h2 { font-size: 17px; }
  .po-schedule-week-strip button { font-size: 11px; }
}

.po-mobile-ticket-label { display: none; }
@media (max-width: 900px) {
  .po-app .po-tabs { position: relative; }
  .po-ticket-table-wrap { overflow: visible; }
  .po-ticket-table, .po-ticket-table tbody { display: block; min-width: 0; }
  .po-ticket-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    white-space: nowrap; clip-path: inset(50%);
  }
  .po-ticket-table tr {
    display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 10px;
    margin-bottom: 10px; padding: 11px; border: 1px solid var(--po-line); border-radius: 12px;
    background: var(--po-bg);
  }
  .po-ticket-table td { grid-column: 1 / -1; min-width: 0; padding: 0; border: 0; }
  .po-ticket-table .po-ticket-key { grid-area: 1 / 1; font-weight: 700; }
  .po-ticket-table .po-ticket-state { grid-area: 1 / 2; }
  .po-ticket-table .po-ticket-summary { grid-row: 2; }
  .po-mobile-ticket-label { display: block; margin-top: 2px; color: var(--po-muted); font-weight: 650; font-size: 12px; }
  .po-ticket-table a { display: inline-flex; min-height: 30px; align-items: center; }
  .po-ticket-table .po-row-actions { flex-wrap: wrap; }
}

.po-mobile-project-status-icon, .po-mobile-calendar-glyph, .po-mobile-event-more { display: none; }

@media (max-width: 900px) {
  .po-app[data-palette=classic] {
    --po-bg: #edf2fd;
    --po-panel: #f9fbfe;
    --po-sidebar: #f3f6fd;
    --po-text: #0b1835;
    --po-muted: #475573;
    --po-line: #cfdbef;
    --po-accent: #064caf;
    --po-soft: #e2edfe;
    --po-mobile-blue-top: #0863df;
    --po-mobile-blue-bottom: #0343b6;
    --po-mobile-shadow: 0 2px 3px #122d5d09, 0 7px 16px #243d7220;
  }
  .po-app[data-palette=classic] {
    background: radial-gradient(ellipse at top right, #e1eaff66, transparent 70%),
      linear-gradient(160deg, #f0f4ff 0, #eaf0fc 38%, #e6edfc 78%, #eef3fd 100%);
  }
  .po-app[data-palette=classic] .po-mobile-header { background: #edf2fd; border-color: #dce5f5; }
  .po-app[data-palette=classic] .po-mobile-nav { background: #f8faff; }
  .po-mobile-nav { border-radius: 21px 21px 0 0; }
  .po-mobile-nav > :is(a,button) { font-size: 12px; font-weight: 600; }
  .po-mobile-nav > [aria-current=page] { font-weight: 760; }
  .po-mobile-nav > :is(a,button) > span { width: min(100%, 59px); height: 30px; border-radius: 10px; }
  .po-mobile-header .po-mobile-icon > span { height: 22px; }
  .po-mobile-header .po-mobile-sun, .po-app[data-theme=dark] .po-mobile-header .po-mobile-moon { display: none; }
  .po-app[data-theme=dark] .po-mobile-header .po-mobile-sun { display: inline-flex; }
  .po-app[data-palette=classic] .po-schedule-week-strip button[aria-pressed=true] strong {
    background: linear-gradient(155deg, #1584ed, #064aad); color: white;
  }
  .po-app[data-palette=classic] :is(.po-top-actions,.po-schedule-toolbar,.po-dialog,.po-home-links) .po-primary {
    background: linear-gradient(180deg, var(--po-mobile-blue-top), var(--po-mobile-blue-bottom));
    border-color: #0751be; color: white; font-weight: 650;
    box-shadow: 0 2px 1px #193e8026, inset 0 -2px 0 #07329140;
  }
  .po-app .po-heading h1 { font-size: clamp(28px, 7vw, 39px); letter-spacing: -.039em; }
  .po-app .po-heading { display: block; }
  .po-app .po-heading p { color: var(--po-muted); }
  .po-app .po-top-actions :is(.po-button, input) { min-height: 45px; border-radius: 12px; box-shadow: var(--po-mobile-shadow); }
  .po-app .po-top-actions .po-primary { padding-inline: clamp(11px, 3.5vw, 18px); }
  .po-app .po-top-actions #po-search::placeholder, .po-app .po-board-search input::placeholder { color: var(--po-muted); opacity: .92; }
  .po-app .po-workspace-stats .po-stat { min-height: 67px; padding: 11px; }
  .po-app .po-workspace-stats .po-stat strong { font-weight: 780; font-size: 27px; }
  .po-app .po-workspace-stats .po-stat-label { font-size: 12px; font-weight: 540; }
  .po-app :is(.po-mobile-project-mark,.po-mobile-calendar-mark) { background: var(--po-soft); color: var(--po-accent); }
  .po-app[data-palette=classic] :is(.po-mobile-project-mark,.po-mobile-calendar-mark) { background: linear-gradient(145deg,#edf5ff,#cfe1fc); }
  .po-app .po-mobile-calendar-mark { width: 42px; height: 42px; flex: 0 0 42px; }
  .po-app .po-mobile-calendar-mark svg { width: 27px; height: 27px; }
  .po-app #po-content > .po-content-heading [data-action=import-project] { color: var(--po-accent); font-weight: 650; box-shadow: var(--po-mobile-shadow); }
  .po-app[data-view=home] #po-content > .po-content-heading:has([data-action=import-project]) { align-items: flex-start; flex-direction: column; }
  .po-app .po-project-card {
    display: grid; grid-template-columns: 39px minmax(0,1fr);
    gap: 9px 10px; padding: 13px; border-radius: 15px;
  }
  .po-project-card > :not(p) { grid-column: 1 / -1; }
  .po-project-card > p { grid-column: 2; line-height: 1.48; }
  .po-project-card-name { display: grid; grid-template-columns: 39px minmax(0, 1fr) 12px; gap: 10px; }
  .po-project-card-name .po-mobile-project-mark { grid-row: auto; }
  .po-app .po-project-card-name h2 { font-size: 17px; line-height: 1.22; }
  .po-app .po-project-card-name h2 a { width: 100%; min-height: 44px; }
  .po-project-card-freshness { justify-content: center; }
  .po-app .po-project-card-freshness .po-dot { box-shadow: 0 0 0 2px var(--po-panel); }
  .po-project-card .po-card-top { align-items: center; gap: 7px; }
  .po-project-card .po-badge { min-height: 23px; align-items: center; gap: 5px; font-weight: 650; font-size: 11px; }
  .po-mobile-project-status-icon { display: inline-flex; }
  .po-mobile-project-status-icon svg { width: 14px; height: 14px; }
  .po-project-card .po-on_hold { background: #fff1d3; color: #815100; }
  .po-project-card .po-complete { background: #dff3e9; color: #266647; }
  .po-project-card .po-progress span { background: linear-gradient(90deg, var(--po-accent), color-mix(in srgb,var(--po-accent) 83%,var(--po-text))); }
  .po-app .po-project-card .po-parent { margin-top: 2px; }
  .po-app .po-board-search input, .po-app .po-inline-filter select,
  .po-app .po-task-board-toolbar :is(.po-button,summary) { box-shadow: 0 2px 5px color-mix(in srgb,var(--po-text) 7%,transparent); }
  .po-app .po-task-group > summary { min-height: 46px; font-size: 14px; }
  .po-app[data-palette=classic] .po-task-group > summary { background: linear-gradient(100deg, #e5efff, #dce8fb); border-bottom: 1px solid #d2def2; }
  .po-app .po-task-group .po-project-folder { color: var(--po-accent); }
  .po-app .po-compact-row { row-gap: 1px; }
  .po-app .po-compact-row .po-compact-title { line-height: 1.27; font-weight: 520; }
  .po-app .po-task-priority .po-badge { padding: 2px 8px; font-size: 11px; line-height: 1.4; }
  .po-app[data-palette=classic] .po-task-priority .po-low { background: #dfebfe; color: #104d9f; }
  .po-app .po-task-priority .po-medium { background: #fff0d2; color: #6e430e; }
  .po-app .po-task-priority .po-high { background: #fde4e5; color: #a42d35; }
  .po-app .po-schedule-views a { gap: 5px; border-radius: 10px; }
  .po-mobile-calendar-glyph { display: inline-flex; }
  .po-app .po-schedule-views svg, .po-mobile-calendar-glyph svg { flex-shrink: 0; width: 16px; height: 16px; }
  .po-app .po-schedule-today { order: -1; }
  .po-app .po-schedule-toolbar h2 { font-size: clamp(18px,4.8vw,25px); letter-spacing: -.038em; }
  .po-app .po-schedule-week-strip button strong { height: 38px; }
  .po-app .po-schedule-day-list .po-schedule-event { position: relative; display: grid; gap: 3px; padding: 11px 29px 11px 11px; }
  .po-mobile-event-more { display: inline-flex; position: absolute; top: 9px; inset-inline-end: 10px; }
  .po-mobile-event-more svg { width: 19px; height: 19px; }
  .po-app .po-schedule-chip .po-mobile-event-more { display: none; }
  .po-schedule-event-time { display: flex; align-items: center; gap: 6px; }
  .po-app .po-schedule-day-list .po-schedule-event strong { font-size: 16px; line-height: 1.2; }
  .po-app .po-schedule-day-list .po-schedule-event-time { color: var(--po-text); }
  .po-schedule-day-list .po-badge { padding: 3px 10px; font-weight: 660; }
  .po-app .po-schedule-day-list { border-radius: 14px; }
}

@media (max-width: 350px) {
  .po-app .po-schedule-views a { gap: 3px; font-size: 12px; }
  .po-app .po-schedule-views svg { width: 13px; height: 13px; }
}

/* Task columns and private attachments */
.po-column-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.po-column-sort:hover, .po-column-sort:focus-visible { background: var(--po-soft); }
.po-column-sort b { color: var(--po-accent); }
.po-app .po-task-board-toolbar .po-task-columns-control { border-color: var(--po-line); }
.po-app .po-task-board-toolbar .po-task-columns-control[data-filtered=true] { background: var(--po-soft); color: var(--po-accent); }
.po-column-filters { min-width: 0; margin: 12px 0; padding: 12px; border: 1px solid var(--po-line); border-radius: 10px; }
.po-column-filters legend { padding-inline: 5px; font-weight: 600; }
.po-attachment-title { margin: 0 0 12px; font-weight: 600; overflow-wrap: anywhere; }
.po-attachment-list { list-style: none; margin: 0; padding: 0; }
.po-attachment-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-block-end: 1px solid var(--po-line);
}
.po-attachment-list img { width: 42px; height: 42px; border-radius: 6px; object-fit: contain; background: var(--po-soft); }
.po-attachment-list a { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#po-attachment-form { margin-top: 16px; }
#po-attachment-form input { min-width: 0; max-width: 100%; }
.po-attachment-message:not(:empty) { margin-top: 12px; }
.po-attachment-message.is-error { color: #b64942; }
@media (max-width: 900px) {
  .po-app .po-task-primary-toolbar > .po-task-columns-control { order: 4; }
  .po-app .po-task-primary-toolbar .po-board-search { flex: 1 1 130px; min-width: 0; }
  .po-attachments .po-button, .po-attachment-list a { min-height: 44px; }
  .po-attachment-list a { align-content: center; }
}

.po-app .po-settings-feature {
  --po-setting-ink: #142238;
  --po-setting-muted: #4e5f75;
  --po-setting-line: #d9e1ec;
  --po-setting-edge: #bbc7d7;
  --po-setting-panel: #fcfdff;
  --po-setting-band: #f0f4f9;
  --po-setting-header: #dfeaf8;
  --po-setting-link: #0754a3;
  --po-setting-blue: #0755ac;
  padding: 0;
  border-color: var(--po-setting-line);
  border-radius: 0;
  background: var(--po-setting-panel);
  box-shadow: 0 4px 13px #162a491c;
  container-type: inline-size;
}
.po-app[data-theme=dark] .po-settings-feature {
  --po-setting-ink: #edf4ff;
  --po-setting-muted: #b1c1d7;
  --po-setting-line: #364863;
  --po-setting-edge: #607795;
  --po-setting-panel: #1c2a40;
  --po-setting-band: #24354e;
  --po-setting-header: #304968;
  --po-setting-link: #9dd0ff;
  --po-setting-blue: #0d61b6;
}
.po-settings-feature-header,
.po-settings-feature-surface,
.po-mirror-message {
  --po-setting-pad: clamp(12px, 1.52cqi, 20px);
  --po-setting-gap: clamp(10px, 1.25cqi, 16px);
  --po-setting-control: 44px;
  --po-setting-icon: 19px;
}
.po-settings-feature-header {
  position: relative;
  display: grid;
  gap: 6px var(--po-setting-gap);
  align-items: center;
  min-height: 49px;
  padding: 9px var(--po-setting-pad);
  border-bottom: 1px solid var(--po-setting-line);
  background: var(--po-setting-header);
  color: var(--po-setting-ink);
}
.po-app .po-settings-feature-header h2 {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.04cqi, 13px);
  font: 700 clamp(18px, 1.96cqi, 24px)/1.15 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -.025em;
}
.po-settings-feature-header h2 svg { display: block; width: clamp(22px, 2.25cqi, 28px); height: auto; flex: none; }
.po-settings-feature-header p { min-width: 0; color: var(--po-setting-muted); font-size: clamp(12px, 1.23cqi, 15px); line-height: 1.4; }
.po-appearance-card .po-settings-feature-header h2 svg,
.po-mirror-card .po-settings-feature-header h2 { color: var(--po-setting-link); }
.po-mirror-wordmark { color: var(--po-setting-ink); }
.po-settings-feature-header .po-mirror-mark svg { width: clamp(26px, 2.65cqi, 34px); }
.po-app .po-settings-feature-header .po-mirror-help {
  display: grid;
  place-items: center;
  position: absolute;
  top: 2px;
  right: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--po-setting-ink);
}
.po-app .po-settings-feature-header .po-mirror-help:hover { background: var(--po-setting-band); }
.po-mirror-help svg { width: clamp(22px, 2.2cqi, 29px); height: auto; }
.po-settings-feature-surface,
.po-mirror-message {
  padding: var(--po-setting-pad);
  background: linear-gradient(155deg, var(--po-setting-panel) 38%, color-mix(in srgb, var(--po-setting-panel), var(--po-setting-band) 52%));
  color: var(--po-setting-ink);
}
.po-app .po-settings-feature-surface .po-button,
.po-app .po-settings-feature-surface :is(input:not([type=checkbox]):not([type=file]), select, textarea, .po-timezone-picker summary) {
  min-height: var(--po-setting-control);
  min-width: 0;
  border-color: var(--po-setting-edge);
  border-radius: 8px;
  background: var(--po-setting-panel);
  color: var(--po-setting-ink);
}
.po-app .po-settings-feature :is(input, textarea)::placeholder { color: var(--po-setting-muted); opacity: 1; }
.po-app .po-settings-feature-surface .po-button {
  max-width: 100%;
  padding: 6px clamp(11px, 1.15cqi, 16px);
  white-space: normal;
  text-align: center;
  line-height: 1.28;
}
.po-app .po-settings-feature-surface .po-button:hover { background: var(--po-setting-band); }
.po-app .po-settings-feature-surface .po-primary {
  background: var(--po-setting-blue);
  border-color: var(--po-setting-blue);
  color: white;
  font-weight: 650;
}
.po-app .po-settings-feature-surface .po-primary:hover { background: #064690; border-color: #064690; }
.po-settings-feature-surface .po-button svg { width: var(--po-setting-icon); height: auto; flex: none; }
.po-app .po-settings-feature :is(label, .po-timezone-field) {
  margin: 0;
  min-width: 0;
  font-size: clamp(14px, 1.34cqi, 16px);
  font-weight: 650;
}
.po-settings-feature :is(.po-feature-field, .po-mirror-field, .po-theme-field) { min-width: 0; display: grid; gap: 5px; }
.po-settings-feature :is(.po-feature-input, .po-mirror-input, .po-theme-select) { position: relative; min-width: 0; }
.po-settings-feature :is(.po-feature-input, .po-mirror-input) > span {
  position: absolute;
  inset: 0 auto auto clamp(12px, 1.4cqi, 20px);
  height: var(--po-setting-control);
  display: grid;
  align-items: center;
  color: var(--po-setting-muted);
  pointer-events: none;
}
.po-settings-feature :is(.po-feature-input, .po-mirror-input) > span svg { width: var(--po-setting-icon); height: auto; }
.po-app .po-settings-feature :is(.po-feature-input, .po-mirror-input) :is(input:not([type=checkbox]):not([type=file]), textarea) {
  padding-inline-start: clamp(42px, 4.7cqi, 62px);
  font-size: clamp(14px, 1.39cqi, 17px);
}
.po-settings-feature :is(.po-feature-footer, .po-mirror-footer) {
  display: grid;
  align-items: center;
  gap: 12px var(--po-setting-gap);
  margin-top: var(--po-setting-gap);
  padding: 7px 9px;
  border-top: 1px solid var(--po-setting-line);
  border-radius: 0 0 11px 11px;
  background: linear-gradient(105deg, transparent, var(--po-setting-band));
}
.po-settings-feature :is(.po-feature-footer, .po-mirror-footer) > p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--po-setting-muted);
  font-size: clamp(12px, 1.22cqi, 15px);
  line-height: 1.45;
}
.po-settings-feature :is(.po-feature-footer, .po-mirror-footer) > p svg { width: var(--po-setting-icon); height: auto; flex: none; }
.po-settings-feature :is(.po-feature-footer, .po-mirror-footer) .po-form-actions { margin-top: 0; }
.po-general-card:has(.po-timezone-picker[open]) { position: relative; z-index: 2; }
.po-app .po-general-card #po-general-form { max-width: none; }
.po-general-fields,
.po-freshness-card form,
.po-theme-fields,
.po-mirror-fields { display: grid; gap: var(--po-setting-gap); align-items: end; }
.po-app .po-general-card .po-timezone-field { gap: 5px; }
.po-app .po-general-card .po-timezone-picker summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(9px, 1.5cqi, 20px);
  padding: 8px clamp(12px, 1.4cqi, 20px);
  font-size: clamp(14px, 1.39cqi, 17px);
  font-weight: 400;
  line-height: 1.3;
}
.po-timezone-picker summary svg { width: var(--po-setting-icon); height: auto; }
.po-timezone-picker summary span { overflow-wrap: anywhere; }
.po-freshness-card form > button { justify-self: end; }
:is(.po-general-card, .po-backup-card) .po-feature-footer > button { justify-self: end; }
:is(.po-appearance-card, .po-work-settings-card) .po-form-actions { border-top: 1px solid var(--po-setting-line); margin-top: var(--po-setting-gap); padding-top: var(--po-setting-gap); }
.po-app .po-appearance-card .po-button { font-size: clamp(14px, 1.4cqi, 17px); }
.po-app .po-appearance-card .po-theme-select select {
  appearance: none;
  min-height: clamp(50px, 4.85cqi, 60px);
  padding: 8px clamp(34px, 3.9cqi, 49px) 8px clamp(70px, 8.8cqi, 112px);
  font-size: clamp(15px, 1.56cqi, 19px);
  font-weight: 650;
}
.po-theme-chevron { position: absolute; inset: 0 clamp(12px, 1.75cqi, 23px) 0 auto; display: grid; align-items: center; pointer-events: none; }
.po-theme-chevron svg { width: var(--po-setting-icon); height: auto; }
.po-theme-preview {
  --po-thumb-bg: #fbfdff;
  --po-thumb-bar: #0761b6;
  --po-thumb-cell: #e7edf4;
  --po-thumb-dot: #d5eeff;
  position: absolute;
  top: 50%;
  left: clamp(12px, 1.7cqi, 23px);
  transform: translateY(-50%);
  width: clamp(45px, 5.6cqi, 73px);
  aspect-ratio: 1.85;
  display: grid;
  grid-template: repeat(2, 1fr) / repeat(2, 1fr);
  gap: 12%;
  align-content: center;
  padding: clamp(8px, .85cqi, 12px) clamp(4px, .47cqi, 7px) clamp(3px, .4cqi, 6px);
  border: 1px solid color-mix(in srgb, var(--po-thumb-bar) 42%, var(--po-thumb-bg));
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px #10244060;
  background: var(--po-thumb-bg);
  pointer-events: none;
}
.po-theme-preview[data-preview-palette=classic] { --po-thumb-bg: #fffdf8; --po-thumb-bar: #476756; --po-thumb-cell: #e4ece0; }
.po-theme-preview[data-preview-palette=sand] { --po-thumb-bg: #fff6e8; --po-thumb-bar: #865433; --po-thumb-cell: #efdeca; }
.po-theme-preview[data-preview-palette=forest] { --po-thumb-bg: #24322b; --po-thumb-bar: #345646; --po-thumb-cell: #425a4d; }
.po-theme-preview[data-preview-palette=midnight] { --po-thumb-bg: #19263a; --po-thumb-bar: #153967; --po-thumb-cell: #35445b; --po-thumb-dot: #69c4f1; }
.po-theme-preview[data-preview-palette=charcoal] { --po-thumb-bg: #22242b; --po-thumb-bar: #3a4460; --po-thumb-cell: #454e61; }
.po-theme-preview i { position: absolute; inset: 0 0 auto; height: 18%; background: var(--po-thumb-bar); }
.po-theme-preview i::before {
  content: '';
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(2px, .34cqi, 4px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--po-thumb-dot);
  box-shadow: clamp(4px, .53cqi, 6px) 0 var(--po-thumb-dot), clamp(8px, 1.06cqi, 12px) 0 var(--po-thumb-dot);
}
.po-theme-preview b { min-height: 0; border-radius: 2px; background: var(--po-thumb-cell); }
.po-theme-preview b:first-of-type { grid-column: 1 / -1; }
.po-mirror-card .po-settings-feature-header { padding-right: 56px; }
.po-mirror-card .po-settings-feature-surface { padding: clamp(8px, .9cqi, 12px); }
.po-mirror-summary {
  display: grid;
  padding: 5px 8px;
  border-radius: 12px;
  background: linear-gradient(165deg, var(--po-setting-panel), var(--po-setting-band));
}
.po-mirror-summary-item { display: flex; align-items: center; gap: clamp(12px, 1.45cqi, 20px); min-width: 0; padding: clamp(8px, 1.05cqi, 13px); overflow-wrap: anywhere; }
.po-mirror-summary-item + .po-mirror-summary-item { border-top: 1px solid var(--po-setting-line); }
.po-mirror-summary-item strong { font-weight: 700; }
.po-mirror-summary-item > div { min-width: 0; }
.po-mirror-summary-item > div > p { margin-top: 2px; }
.po-mirror-summary-icon { display: grid; flex: none; place-items: center; width: clamp(29px, 3cqi, 38px); aspect-ratio: 1; border-radius: 50%; background: var(--po-setting-band); }
.po-mirror-summary-icon svg { width: 66%; height: auto; }
.po-mirror-guidance { font-size: clamp(13px, 1.27cqi, 15px); }
.po-mirror-guidance svg { width: clamp(23px, 2.65cqi, 35px); height: auto; flex: none; }
.po-app .po-mirror-installation a { color: var(--po-setting-link); font-weight: 650; text-decoration-line: none; }
.po-app .po-mirror-installation a:hover { text-decoration-line: underline; }
.po-mirror-status { display: flex; align-items: baseline; gap: 8px; color: var(--po-setting-muted); }
.po-mirror-status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #929ba9; flex: none; }
.po-mirror-status[data-status=active]::before { background: #179856; }
.po-mirror-status:is([data-status=waiting], [data-status=paused])::before { background: #bb7c12; }
.po-mirror-status:is([data-status=offline], [data-status=identity_changed])::before { background: #c25055; }
.po-mirror-form {
  margin-top: clamp(9px, 1.05cqi, 14px);
  border-top: 1px solid var(--po-setting-line);
  padding: var(--po-setting-gap) clamp(8px, 1.4cqi, 22px) 0;
}
.po-mirror-form > .po-mirror-field { margin-top: var(--po-setting-gap); }
.po-app .po-mirror-card .po-mirror-field label { display: flex; align-items: center; gap: 8px; }
.po-mirror-field-info { display: inline-flex; color: var(--po-setting-muted); }
.po-mirror-field-info svg { width: clamp(15px, 1.42cqi, 19px); height: auto; }
.po-app .po-mirror-select select { appearance: none; padding: 9px 32px 9px clamp(12px, 1.4cqi, 20px); }
.po-mirror-select::after { content: ''; position: absolute; right: 16px; top: calc(50% - 5px); width: 8px; height: 8px; border: solid; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.po-app .po-mirror-card textarea { display: block; min-height: clamp(70px, 6.65cqi, 86px); }
.po-app .po-mirror-card textarea[data-mirror-code] { font-family: monospace; overflow-wrap: anywhere; }
.po-mirror-form > .po-mirror-footer { margin-inline: calc(-1 * clamp(8px, 1.4cqi, 22px)); }
.po-mirror-connection { display: grid; gap: 9px var(--po-setting-gap); margin: var(--po-setting-gap) clamp(8px, 1.4cqi, 22px) 0; }
.po-mirror-connection div { min-width: 0; }
.po-mirror-connection dt { font-weight: 700; }
.po-mirror-connection dd { margin: 0; color: var(--po-setting-muted); overflow-wrap: anywhere; }
.po-app .po-mirror-error, .po-mirror-invite { margin: var(--po-setting-gap) clamp(8px, 1.4cqi, 22px) 0; }
.po-app .po-mirror-error { color: var(--po-setting-ink); border-inline-start: 3px solid #c25055; padding-inline-start: 9px; }
.po-mirror-invite > .po-button { margin-top: 8px; }

@container (min-width: 570px) {
  .po-settings-feature-header { grid-template-columns: auto minmax(0, 1fr); }
  .po-settings-feature-header p { border-inline-start: 1px solid var(--po-setting-edge); padding-inline-start: var(--po-setting-gap); }
  .po-general-fields { grid-template-columns: minmax(0, 4fr) minmax(0, 5.5fr); }
  .po-theme-fields, .po-freshness-card form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-app .po-freshness-card form > button { grid-column: 1 / -1; }
  .po-mirror-fields[data-has-site-id] { grid-template-columns: minmax(0, 1fr) minmax(0, 2.65fr); }
  .po-mirror-connection { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .po-feature-footer { grid-template-columns: minmax(0, 1fr) auto; }
}
@container (min-width: 760px) {
  .po-general-fields, .po-theme-fields, .po-freshness-card form { column-gap: calc(var(--po-setting-gap) * 2); }
  .po-general-fields > :nth-child(2), .po-theme-fields > :nth-child(2), .po-freshness-card form > :nth-child(2) { position: relative; }
  .po-general-fields > :nth-child(2)::before, .po-theme-fields > :nth-child(2)::before, .po-freshness-card form > :nth-child(2)::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 calc(-1 * var(--po-setting-gap));
    width: 1px;
    background: var(--po-setting-line);
  }
  .po-freshness-card form { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; }
  .po-app .po-freshness-card form > button { grid-column: auto; }
  .po-mirror-summary { grid-template-columns: minmax(0, 1.28fr) minmax(0, .94fr) minmax(0, 1.13fr); }
  .po-mirror-summary-item + .po-mirror-summary-item { border-top: 0; border-inline-start: 1px solid var(--po-setting-line); }
  .po-mirror-footer { grid-template-columns: minmax(0, 1fr) auto; }
  .po-mirror-footer.po-mirror-pair-actions { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 460px) {
  .po-mirror-footer .po-form-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-mirror-footer .po-form-actions > .po-primary { grid-column: 1 / -1; }
  .po-mirror-footer.po-mirror-pair-actions .po-form-actions > .po-primary { grid-column: auto; }
}
.po-app .po-setting-number input[type=number] { appearance: textfield; padding-inline-end: 44px; }
.po-setting-number input::-webkit-inner-spin-button,
.po-setting-number input::-webkit-outer-spin-button { appearance: none; }
.po-number-stepper {
  position: absolute;
  inset: 0 7px 0 auto;
  display: grid;
  align-content: center;
}
.po-app .po-number-stepper button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 22px;
  padding: 0;
  border: none;
  background: var(--po-setting-band);
  color: var(--po-setting-ink);
}
.po-number-stepper button:first-child { border-radius: 7px 7px 0 0; }
.po-number-stepper button:last-child { border-radius: 0 0 7px 7px; }
.po-app .po-number-stepper button:hover { background: var(--po-setting-line); }
.po-number-stepper button svg { width: 16px; height: 16px; }
.po-number-stepper button:first-child svg { transform: rotate(180deg); }
.po-work-fields { display: grid; gap: var(--po-setting-gap); }
.po-work-limits { border-top: 1px solid var(--po-setting-line); margin-top: var(--po-setting-gap); padding-top: var(--po-setting-gap); }
.po-app :is(.po-work-toggle, .po-navigation-settings-card) .po-check { gap: clamp(11px, 1.45cqi, 20px); min-height: 40px; cursor: pointer; }
.po-app :is(.po-work-toggle, .po-navigation-settings-card) input[type=checkbox] {
  appearance: none;
  display: grid;
  place-items: center;
  width: clamp(24px, 2.6cqi, 31px);
  height: clamp(24px, 2.6cqi, 31px);
  margin: 0;
  background: var(--po-setting-panel);
  border: 1px solid var(--po-setting-edge);
  border-radius: 5px;
}
.po-app :is(.po-work-toggle, .po-navigation-settings-card) input[type=checkbox]:checked { border-color: var(--po-setting-blue); background: var(--po-setting-blue); }
:is(.po-work-toggle, .po-navigation-settings-card) input[type=checkbox]:checked::before {
  content: '';
  width: 60%;
  height: 32%;
  border: solid white;
  border-width: 0 0 2.5px 2.5px;
  transform: translateY(-10%) rotate(-45deg);
}
.po-app .po-setting-hint { color: var(--po-setting-muted); font-size: clamp(12px, 1.23cqi, 15px); line-height: 1.45; }
.po-work-toggle .po-setting-hint { padding-inline-start: calc(clamp(24px, 2.6cqi, 31px) + clamp(11px, 1.45cqi, 20px)); }
@container (min-width: 570px) {
  .po-work-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--po-setting-gap) * 2); }
  .po-work-fields > :nth-child(2) { position: relative; }
  .po-work-fields > :nth-child(2)::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 calc(-1 * var(--po-setting-gap));
    width: 1px;
    background: var(--po-setting-line);
  }
}
@media (forced-colors: active) {
  .po-app :is(.po-work-toggle, .po-navigation-settings-card) input[type=checkbox] { appearance: auto; }
  :is(.po-work-toggle, .po-navigation-settings-card) input[type=checkbox]:checked::before { content: none; }
}
.po-settings-compact-fields { display: grid; align-items: start; gap: 10px var(--po-setting-gap); }
.po-settings-compact-fields > div { min-width: 0; }
.po-settings-compact-fields .po-muted { font-weight: 400; }
.po-settings-compact-fields label + .po-copy-field { margin-top: 5px; }
.po-settings-links { display: flex; flex-wrap: wrap; gap: 8px; }
.po-account-settings-card .po-settings-links { justify-content: flex-end; }
.po-calendar-connection { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.po-calendar-settings-card .po-connector-setup { margin: 10px 0 0; }
.po-calendar-settings-card .po-connector-setup > summary { min-height: 34px; padding-block: 6px; }
.po-calendar-settings-card .po-connector-setup p,
.po-calendar-settings-card .po-connector-setup form { margin-bottom: 9px; }
.po-calendar-settings-card .po-connector-setup form {
  display: grid;
  gap: 10px var(--po-setting-gap);
  align-items: start;
  margin-top: 10px;
}
.po-settings-feature .po-form-actions { margin-top: 12px; }
.po-settings-feature :is(.po-feature-footer, .po-mirror-footer) .po-form-actions { margin-top: 0; }
.po-app .po-settings-feature-surface .po-button.po-small { min-height: 36px; padding: 5px 10px; }
.po-app .po-settings-feature .po-user-row { margin-bottom: 8px; padding-block: 8px; }
.po-app .po-settings-feature .po-user-row .po-form-actions { margin-top: 0; }
.po-app .po-settings-feature .po-taxonomy-section-head { margin-bottom: 8px; }
.po-app .po-taxonomy-section h2 > span { color: inherit; font: inherit; }
.po-settings-feature-header h2 small { color: var(--po-setting-muted); font-size: .67em; margin-inline-start: 4px; }
.po-app .po-api-base { margin-bottom: 9px; }
.po-app .po-api-reference .po-api-search { margin: 9px 0 7px; }
.po-app .po-api-reference .po-api-details .po-form-actions { margin: 7px 0; }
@container (min-width: 570px) {
  .po-settings-compact-fields,
  .po-calendar-settings-card .po-connector-setup form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-calendar-settings-card .po-connector-setup form > :is(p, button) { grid-column: 1 / -1; }
  .po-calendar-settings-card .po-connector-setup form > button { justify-self: end; }
}
@container (min-width: 760px) {
  .po-navigation-settings-card .po-settings-compact-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 901px) {
  .po-compact-detail-body > .po-task-actions { flex-wrap: nowrap; overflow-x: auto; }
  .po-compact-detail-body > .po-task-actions .po-button { flex: 0 0 auto; }
  .po-app[data-view="tasks_all"] {
    --po-col-id: 108px;
    --po-board-fields: var(--po-col-priority) var(--po-col-due) var(--po-col-entered) var(--po-col-modified) var(--po-col-project) var(--po-col-owner) var(--po-col-status) var(--po-col-id);
    --po-board-width: calc(200px + var(--po-board-tree-indent, 0px) + var(--po-col-priority) + var(--po-col-due) + var(--po-col-entered) + var(--po-col-modified) + var(--po-col-project) + var(--po-col-owner) + var(--po-col-status) + var(--po-col-id) + var(--po-custom-width, 0px));
  }
  .po-app[data-view="tasks_all"] :is(.po-task-table-heading, .po-task-group) { min-width: var(--po-board-width); }
  .po-app[data-view="tasks_all"] .po-task-group > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--po-board-fields);
  }
  .po-app[data-view="tasks_all"][data-custom="on"] .po-task-group > summary {
    grid-template-columns: minmax(0, 1fr) var(--po-board-fields) repeat(var(--po-custom-count), 140px);
  }
  .po-app[data-view="tasks_all"] .po-group-title { grid-column: 1 / 7; }
  .po-app[data-view="tasks_all"] .po-project-folder { margin-inline: 0 26px; }
  .po-app[data-view="tasks_all"] .po-group-count { grid-column: 7; justify-self: end; margin-inline: 0 8px; }
  .po-app[data-view="tasks_all"] .po-group-actions { grid-column: 8; }
  .po-app[data-view="tasks_all"] .po-task-table-heading > .po-col-id { text-align: center; }
  .po-app[data-view="tasks_all"] .po-task-group > summary > .po-id-column {
    grid-column: 9;
    margin: 0;
    white-space: normal;
  }
  .po-app[data-view="tasks_all"] :is(.po-task-group > summary, .po-compact-row) > .po-id-column {
    display: grid;
    grid-template-columns: minmax(5ch, 1fr) 32px;
    gap: 6px;
  }
  .po-app[data-view="tasks_all"] .po-id-value { text-align: end; font-variant-numeric: tabular-nums; }
  .po-app[data-view="tasks_all"] .po-task-group .po-compact-row { min-width: 100%; }
}

.po-app[data-view="tasks_all"][data-task-layout="name-due"] .po-task-table-heading > :not(:first-child, .po-col-due),
.po-app[data-view="tasks_all"][data-task-layout="name-due"] .po-task-group > summary > :is(.po-group-actions, .po-id-column),
.po-app[data-view="tasks_all"][data-task-layout="name-due"] .po-compact-row > :is(.po-task-priority, .po-task-entered, .po-task-modified, .po-task-project, .po-task-owner, .po-task-status-cell, .po-id-column, .po-custom-cell) {
  display: none;
}
.po-app[data-view="tasks_all"] :is(.po-task-project, .po-group-name) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 901px) {
  .po-app[data-view="tasks_all"][data-task-layout="name-due"] {
    --po-board-width: calc(200px + var(--po-board-tree-indent, 0px) + var(--po-col-due));
  }
  .po-app[data-view="tasks_all"][data-task-layout="name-due"] :is(.po-task-table-heading, .po-task-group > summary) {
    grid-template-columns: minmax(0, 1fr) var(--po-col-due);
  }
  .po-app[data-view="tasks_all"][data-task-layout="name-due"] .po-group-title { grid-column: 1; }
  .po-app[data-view="tasks_all"][data-task-layout="name-due"] .po-group-count { grid-column: 2; }
  .po-app[data-view="tasks_all"][data-task-layout="name-due"] .po-task-group .po-compact-row {
    grid-template-columns: calc(32px + var(--po-depth) * 32px) 32px minmax(0, 1fr) var(--po-col-due);
  }
}

.po-overview-task-table .po-id-column { white-space: nowrap; }
@media (min-width: 901px) {
  .po-overview-task-table {
    --po-overview-fields: var(--po-col-priority) var(--po-col-due) var(--po-col-entered) var(--po-col-modified) var(--po-col-owner) var(--po-col-status) var(--po-overview-id) var(--po-overview-custom-tracks, );
    --po-overview-width: calc(200px + var(--po-overview-indent) + var(--po-col-priority) + var(--po-col-due) + var(--po-col-entered) + var(--po-col-modified) + var(--po-col-owner) + var(--po-col-status) + var(--po-overview-id) + var(--po-overview-custom, 0px));
  }
  .po-app .po-overview-task-table :is(.po-task-table-heading, .po-compact-row) {
    min-width: var(--po-overview-width);
    padding-inline: 10px;
  }
  .po-overview-task-table .po-task-table-heading {
    grid-template-columns: minmax(0, 1fr) var(--po-overview-fields);
  }
  .po-overview-task-table .po-task-table-heading > span:first-child { padding-inline-start: 64px; }
  .po-overview-task-table .po-task-table-heading > span:nth-child(2) { padding-inline-start: 0; }
  .po-overview-task-table .po-col-id { text-align: center; }
  .po-app .po-overview-task-table .po-compact-row {
    grid-template-columns: calc(32px + var(--po-depth) * 32px) 32px minmax(0, 1fr) var(--po-overview-fields);
  }
  .po-overview-task-table .po-compact-row > .po-id-column { justify-content: center; }
}
@media (max-width: 900px) {
  .po-app .po-overview-task-table > .po-compact-task:first-of-type { border-radius: 14px 14px 0 0; }
  .po-app .po-overview-task-table > .po-compact-task:only-of-type { border-radius: 14px; }
}

/* Calendar availability */
.po-app[data-view=availability] .po-topbar { align-items: flex-start; }
.po-app[data-view=availability] .po-heading { flex: 1; min-width: 0; }
.po-app[data-view=availability] .po-heading .po-eyebrow { display: none; }
.po-app[data-view=availability] .po-heading h1 { font-family: inherit; font-weight: 750; }
.po-app[data-view=availability] .po-top-actions { align-items: center; flex: 0 0 auto; flex-wrap: nowrap; padding-top: 0; }
.po-app[data-view=availability] .po-availability-search { display: flex; align-items: center; gap: 8px; width: clamp(208px, 18vw, 252px); margin: 0; }
.po-app[data-view=availability] .po-availability-search input { min-width: 0; font-size: 13px; }
.po-availability-search > svg { flex: 0 0 auto; width: 15px; height: 15px; }
.po-calendar-layout { display: grid; gap: 18px; }
.po-availability-scan, .po-availability-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 12px; }
.po-availability-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; margin-top: 12px; }
.po-local-calendar-picker { min-width: 0; margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--po-line); border-radius: 8px; }
.po-local-calendar-picker legend { padding-inline: 4px; font-size: 13px; font-weight: 700; }
#po-local-calendar-choices { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.po-app #po-local-calendar-choices label { gap: 8px; margin: 0; overflow-wrap: anywhere; }
#po-local-calendar-status { margin: 8px 0; font-size: 12px; }
.po-app :is(.po-availability-scan, .po-availability-fields, .po-availability-toolbar) > label { margin: 0; }
.po-app :is(.po-availability-scan, .po-availability-toolbar) > label { color: var(--po-muted); font-size: 11px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.po-app .po-calendar-layout :is(select, input:not([type=checkbox]), .po-button) { min-height: 38px; padding-block: 7px; font-size: 13px; }
.po-availability-options { position: relative; margin-top: 12px; font-size: 12px; }
.po-availability-options p { margin: 0; }
.po-availability-options summary { width: fit-content; color: var(--po-accent); cursor: pointer; font-weight: 600; }
.po-availability-options details:not([open]) > summary { position: absolute; inset: 0 0 auto auto; }
.po-availability-options:has(details:not([open])) > p:first-child { padding-right: 125px; }
.po-app .po-availability-results { padding: 0; }
.po-availability-toolbar { display: grid; grid-template-columns: minmax(135px, 1fr) minmax(125px, 174px) auto; align-items: end; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--po-line); }
.po-availability-toolbar [role=status] > *, .po-slot-day header [data-day-included] { display: block; }
#po-openings-included, .po-slot-day [data-day-included], .po-slot > span { color: var(--po-muted); font-size: 12px; }
.po-availability-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.po-availability-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.po-availability-days:not(:has(.po-slot-day:not([hidden]))) { padding: 0; }
.po-slot-day { min-width: 0; overflow: hidden; border: 1px solid var(--po-line); border-radius: 10px; background: color-mix(in srgb, var(--po-soft) 30%, var(--po-panel)); }
.po-slot-day > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 13px; background: color-mix(in srgb, var(--po-soft) 65%, var(--po-panel)); border-bottom: 1px solid var(--po-line); }
.po-app .po-slot-day h2 { margin: 0; font-family: inherit; font-size: 14px; font-weight: 700; }
.po-app .po-slot-day header .po-button { border-color: transparent; background: transparent; color: var(--po-accent); font-weight: 600; padding-inline: 6px; }
.po-app .po-slot-day header .po-button:hover, .po-app .po-slot:hover { background: var(--po-panel); }
.po-app .po-slot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 8px 13px; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.po-app .po-slot + .po-slot { border-top: 1px solid var(--po-line); }
.po-app .po-slot input { margin: 0; }
.po-slot > span { text-align: right; }
#po-availability-message { margin: 0; padding: 16px; }
@media (max-width: 1060px) {
  .po-availability-toolbar { grid-template-columns: minmax(0, 1fr) minmax(126px, 174px); }
  .po-availability-actions { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .po-app[data-view=availability] .po-top-actions { flex-wrap: wrap; }
  .po-availability-days { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .po-availability-scan, .po-availability-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-app[data-view=availability] .po-availability-search { flex: 1 1 180px; width: auto; }
  .po-availability-toolbar { gap: 10px; padding-inline: 12px; }
  .po-availability-days { padding: 12px; }
  .po-app .po-slot { gap: 7px; padding-inline: 9px; }
  .po-slot > span { max-width: 84px; }
}
