/* D29 finite roster refinement; native source, commands and guards remain authoritative. */
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr {font:400 14px/1.55 "Plus Jakarta Sans Catalog",sans-serif}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr :is(input,select,textarea) {font-size:16px;line-height:1.5}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-controls-card {gap:20px}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-table th {font-size:12px;font-weight:500;text-transform:none;letter-spacing:0}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-table .native-sticky-name {font-size:14px}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .v2-hr-roster-assigned>span>small {font-size:12px;line-height:1.5}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-cell {min-height:72px}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-agenda-shift strong {font-size:14px}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-agenda-shift small {font-size:12px;line-height:1.5}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-agenda-day>div>button {min-height:76px}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-footer {gap:20px}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-dialog {padding:28px;width:min(560px,calc(100vw - 48px))}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-dialog h3 {font-size:22px;line-height:1.35;font-weight:700;margin:8px 48px 24px 0}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-dialog .native-check {min-height:44px;align-items:center;font-size:14px}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-dialog .native-dialog-close {width:44px;height:44px;top:16px;right:16px}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-dialog .eyebrow {margin:0;font-size:12px;color:var(--n-muted)}
@media(max-width:700px) {
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-actions button {width:100%;margin:0;min-height:48px}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-footer {gap:16px}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-dialog {width:100vw;height:100dvh;max-height:100dvh;padding:24px 16px calc(24px + env(safe-area-inset-bottom))}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-dialog h3 {margin-bottom:24px;font-size:22px}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-dialog .native-dialog-close {top:12px;right:12px}
}

body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-controls :is(input,select) {font:400 16px/24px "Plus Jakarta Sans Catalog",sans-serif;min-height:44px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) #surface-title {font:700 28px/1.25 "Plus Jakarta Sans Catalog",sans-serif;}
@media(max-width:700px) { body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) #surface-title {font-size:22px;} }

/* Compact existing actions/conflicts and guarded cell editor; no new commands. */
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-menu {width:100%;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-menu>summary {display:none;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-conflict-panel {padding:0!important;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-conflict-panel>summary {display:flex;align-items:center;gap:12px;min-height:64px;padding:16px 20px;cursor:pointer;color:var(--n-danger);list-style:none;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-conflict-panel>summary>strong {flex:1;font-size:14px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-conflict-panel>summary>span {display:flex;gap:8px;align-items:center;font-size:12px;white-space:nowrap;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-conflict-panel>ul {padding:0 20px 20px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-cell-close-mobile {display:none;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-dialog h3 {margin-bottom:12px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-cell-date {display:flex;align-items:center;gap:8px;margin:0 0 24px;color:var(--n-muted);font-size:14px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-cell-actions {display:grid;grid-template-columns:minmax(88px,1fr) minmax(0,2fr);gap:12px;margin-top:8px;padding-top:16px;background:var(--n-surface,#fff);position:sticky;bottom:0;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-cell-actions>button {min-height:48px;width:100%;margin:0;}
@media(max-width:700px){
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-controls {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-controls>label {min-width:0;width:auto;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-controls :is(input,select) {width:100%;min-width:0;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-week-nav {justify-content:space-between;gap:4px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-week-nav>span {font-size:12px;white-space:nowrap;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-menu>summary {display:flex;align-items:center;justify-content:space-between;min-height:48px;border:1px solid var(--n-border);border-radius:10px;padding:12px 16px;cursor:pointer;list-style:none;font-weight:600;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-menu[open]>.native-roster-actions {margin-top:12px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-conflict-panel>summary {flex-wrap:wrap;padding:16px;gap:8px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-conflict-panel>summary>span {margin-left:28px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-dialog .eyebrow {display:none;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-dialog h3 {margin:0 0 24px 56px;min-height:44px;display:flex;align-items:center;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-dialog .native-dialog-close {left:12px;right:auto;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-cell-close-desktop {display:none;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-cell-close-mobile {display:flex;}
}

body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-conflict-panel[data-severity="error"] {border-color:color-mix(in srgb,var(--n-danger) 30%,var(--n-border))!important;background:var(--n-danger-soft)!important;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-conflict-panel[data-severity="warning"]>summary {color:var(--n-warning);}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-conflict-panel>ul {padding:0 20px 20px!important;}
@media(min-width:701px){body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-menu:not([open])>summary {display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;}}
@media(max-width:700px){
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-dialog[open] {display:flex;flex-direction:column;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-form {display:flex;flex-direction:column;flex:1;gap:20px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr #native-roster-cell-form>.native-cell-actions {margin-top:auto;flex-shrink:0;}
}

/* Existing roster dialog actions retain their original form association and guards. */
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-conflict-panel li .button {min-height:44px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-dialog[open] {display:flex;flex-direction:column;max-height:calc(100dvh - 48px);gap:16px;padding:28px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-dialog>form[method="dialog"] {display:contents;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-dialog h3 {font-size:22px;line-height:1.35;margin:0 48px 0 0;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-dialog>.eyebrow {margin:0;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-body {min-height:0;overflow:auto;overscroll-behavior:contain;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-dialog-actions {flex-shrink:0;margin:0;padding-top:16px;border-top:1px solid var(--n-border);position:static;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-dialog :is(select,input:not([type="checkbox"]):not([type="radio"])) {min-height:44px;font-size:16px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-dialog .native-dialog-close {width:44px;height:44px;top:12px;right:12px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-preserve-note {padding:12px 16px;border-radius:10px;background:var(--n-warning-soft);color:var(--n-text);font-size:14px;line-height:1.5;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-result-summary {display:flex;align-items:center;gap:12px;margin:0;padding:16px;border-radius:10px;background:var(--n-warning-soft);font-size:16px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-result-summary svg {flex-shrink:0;color:var(--n-warning);}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-result-conflicts {display:grid;gap:12px;margin:0;padding:0;list-style:none;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-result-conflicts>li {display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:16px;padding:16px;border:1px solid var(--n-border);border-radius:10px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-result-conflicts time {display:block;color:var(--n-muted);font-size:12px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-result-conflicts p {margin:0;color:var(--n-danger);font-size:14px;}
@media(max-width:700px){
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-dialog[open] {width:100vw;height:100dvh;max-height:100dvh;max-width:100vw;padding:24px 16px calc(24px + env(safe-area-inset-bottom));gap:16px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-body {flex:1;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-action-dialog .native-rule-settings {gap:16px;}
body.surface-dashboard:has([data-v2-destination="D29"][aria-current="page"]) .v2-hr .native-roster-result-conflicts>li {grid-template-columns:1fr;gap:8px;}
}
