/* Loaded only with Grapevine Theme and the My Space integration enabled.
   Shared interface tokens are owned by Design Studio. Content colours, chart
   geometry, icon glyphs and animation timing retain their own meaning. */
body{--qms-theme-page:var(--dt-ui-page);--qms-theme-surface:var(--dt-ui-surface);--qms-theme-surface-muted:var(--dt-ui-surface-muted);--qms-theme-text:var(--dt-ui-text);--qms-theme-muted:var(--dt-ui-muted);--qms-theme-border:var(--dt-ui-border);--qms-theme-accent:var(--dt-ui-accent);--qms-theme-on-accent:var(--dt-ui-on-accent);--qms-theme-accent-hover:var(--dt-ui-accent-hover);--qms-theme-accent-pressed:var(--dt-ui-accent-pressed);--qms-theme-secondary-surface:var(--dt-ui-secondary-surface);--qms-theme-danger:var(--dt-ui-danger);--qms-theme-success:var(--dt-ui-success);--qms-theme-warning:var(--dt-ui-warning);--qms-theme-font-body:var(--dt-ui-font-body);--qms-theme-font-heading:var(--dt-ui-font-heading);--qms-theme-font-button:var(--dt-ui-font-button);--qms-theme-font-greeting:var(--dt-ui-font-greeting);--qms-theme-size-base:var(--dt-ui-size-base);--qms-theme-size-heading:var(--dt-ui-size-heading);--qms-theme-size-greeting:var(--dt-ui-size-greeting);--qms-theme-button-radius:var(--dt-ui-button-radius);--qms-theme-field-radius:var(--dt-ui-field-radius);--qms-theme-card-radius:var(--dt-ui-card-radius);--qms-theme-card-shadow:var(--dt-ui-card-shadow);--qms-theme-size-small:calc(var(--dt-ui-size-base) * .875);--qms-theme-size-caption:calc(var(--dt-ui-size-base) * .8125);}
:is(.ms2-app,.ms2-tour,.ms2-guide-caption,.mc-dashboard,.mc-qi-modal,.mc-assess-modal){--ms2-text:var(--dt-ui-text) !important;--ms2-text-secondary:var(--dt-ui-text) !important;--ms2-text-muted:var(--dt-ui-muted) !important;--ms2-text-muted-large:var(--dt-ui-muted) !important;--ms2-icon:var(--dt-ui-text) !important;--ms2-on-dark:var(--dt-ui-on-nav) !important;--ms2-navy:var(--dt-ui-nav) !important;--ms2-blue:var(--dt-ui-cyan) !important;--ms2-green:var(--dt-ui-success) !important;--ms2-mustard:var(--dt-ui-accent) !important;--ms2-lavender:var(--dt-ui-accent) !important;--ms2-bg:var(--dt-ui-page) !important;--ms2-surface:var(--dt-ui-surface) !important;--ms2-surface-subtle:var(--dt-ui-surface-muted) !important;--ms2-border:var(--dt-ui-border) !important;--ms2-border-subtle:var(--dt-ui-border) !important;--ms2-action:var(--dt-ui-accent) !important;--ms2-action-hover:var(--dt-ui-accent-hover) !important;--ms2-action-tint:var(--dt-ui-secondary-surface) !important;--ms2-action-tint-border:var(--dt-ui-button-border) !important;--ms2-action-ink:var(--dt-ui-text) !important;--ms2-action-ink-strong:var(--dt-ui-text) !important;--ms2-icon-chip:var(--dt-ui-cyan) !important;--ms2-icon-on-chip:var(--dt-ui-on-cyan) !important;--ms2-icon-chip-alt:var(--dt-ui-secondary) !important;--ms2-cta:var(--dt-ui-accent) !important;--ms2-cta-hover:var(--dt-ui-accent-hover) !important;--ms2-on-cta:var(--dt-ui-on-accent) !important;--ms2-cta-edge:var(--dt-ui-button-border) !important;--ms2-danger:var(--dt-ui-danger) !important;--ms2-success:var(--dt-ui-success) !important;--ms2-warn-border:var(--dt-ui-warning) !important;--ms2-warn-text:var(--dt-ui-warning) !important;--ms2-t-body:var(--dt-ui-size-base) !important;--ms2-t-cardhead:var(--dt-ui-size-heading) !important;--ms2-t-subhead:var(--dt-ui-size-greeting) !important;--ms2-t-h3:var(--dt-ui-size-subheading) !important;
--ms2-danger-tint:color-mix(in srgb,var(--dt-ui-danger) 10%,var(--dt-ui-surface));
--ms2-danger-border:color-mix(in srgb,var(--dt-ui-danger) 35%,var(--dt-ui-border));
--ms2-success-tint:color-mix(in srgb,var(--dt-ui-success) 10%,var(--dt-ui-surface));
--ms2-warn-tint:color-mix(in srgb,var(--dt-ui-warning) 10%,var(--dt-ui-surface));
--ms2-t-small:calc(var(--dt-ui-size-base) * .875);--ms2-t-micro:calc(var(--dt-ui-size-base) * .75);
--ms2-t-caption:calc(var(--dt-ui-size-base) * .8125);--ms2-t-label:calc(var(--dt-ui-size-base) * .8125);
--ms2-t-body-lh:1.5;--ms2-t-subhead-lh:1.3;--ms2-t-cardhead-lh:1.4;
--mc-bg:var(--dt-ui-page);--mc-bg-card:var(--dt-ui-surface);--mc-sidebar:var(--dt-ui-surface-muted);
--mc-panel:var(--dt-ui-surface-muted);--mc-accent:var(--dt-ui-accent);--mc-accent-text:var(--dt-ui-on-accent);
--mc-border:var(--dt-ui-border);--mc-text:var(--dt-ui-text);--mc-text-muted:var(--dt-ui-muted);
--mc-radius-lg:var(--dt-ui-card-radius);--mc-radius-md:var(--dt-ui-card-radius);--mc-radius-sm:var(--dt-ui-field-radius);
--mc-shadow:var(--dt-ui-card-shadow);
font-family:var(--dt-ui-font-body);color:var(--dt-ui-text);line-height:var(--dt-ui-body-line-height);
}
html body :is(.ms2-app,.ms2-tour,.ms2-guide-caption,.mc-dashboard,.mc-qi-modal,.mc-assess-modal) :is(h1,h2,h3,h4,h5,h6){font-family:var(--dt-ui-font-heading) !important;color:var(--dt-ui-heading-text) !important;font-weight:var(--dt-ui-heading-weight);}
html body .ms2-app .ms2-greeting h1{font-family:var(--dt-ui-font-greeting) !important;font-size:var(--dt-ui-size-greeting) !important;font-weight:var(--dt-ui-greeting-weight) !important;}
.ms2-app :is(.ms2-card,.ms2-scout),.ms2-tour-pop{border-radius:var(--dt-ui-card-radius);box-shadow:var(--dt-ui-card-shadow);}
html body :is(.ms2-app,.ms2-tour) :is(button,.ms2-btn-primary,.ms2-btn-outline,.ms2-rec-action){font-family:var(--dt-ui-font-button) !important;font-size:var(--dt-ui-button-text-size);font-weight:var(--dt-ui-button-weight);border-radius:var(--dt-ui-button-radius);}
html body :is(.ms2-btn-primary,.ms2-tour-next){background:var(--dt-ui-accent);color:var(--dt-ui-on-accent);border:var(--dt-ui-filled-border-width) solid var(--dt-ui-button-border);padding:var(--dt-ui-button-padding-y) var(--dt-ui-button-padding-x);min-height:var(--dt-ui-button-height);}
html body :is(.ms2-btn-primary,.ms2-tour-next):hover:not(:disabled){background:var(--dt-ui-accent-hover);}
html body :is(.ms2-btn-primary,.ms2-tour-next):active:not(:disabled){background:var(--dt-ui-accent-pressed);}
html body :is(.ms2-tour-back,.ms2-btn-outline){background:var(--dt-ui-secondary-surface);color:var(--dt-ui-text);border:var(--dt-ui-button-border-width) solid var(--dt-ui-button-border);padding:var(--dt-ui-button-padding-y) var(--dt-ui-button-padding-x);min-height:var(--dt-ui-button-height);}
html body :is(.ms2-tour-back,.ms2-btn-outline):hover:not(:disabled){background:var(--dt-ui-surface-muted);}
/* Clear all removes every task, so its hover keeps the functional red rather than the neutral outline wash. */
html body .ms2-app .ms2-btn-outline.ms2-reset-tasks:hover:not(:disabled):not([aria-disabled="true"]){color:var(--dt-ui-danger, var(--ms2-danger)) !important;border-color:var(--ms2-danger-border) !important;background:var(--ms2-danger-tint) !important;}
html body :is(.ms2-app,.ms2-tour) button:disabled{background:var(--dt-ui-disabled) !important;color:var(--dt-ui-disabled-text) !important;cursor:not-allowed;}
html body :is(.ms2-app,.ms2-tour) :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--dt-ui-focus);outline-offset:2px;}
html body .ms2-app .ms2-view-btn.is-active{background:var(--dt-ui-nav) !important;color:var(--dt-ui-on-nav) !important;}
/* Figma 6110:25279 "Toggle states": selected pills are Navy with a Mustard label. */
html body .ms2-app :is(.ms2-task-tab,.ms2-time-tab).is-active{background:var(--dt-ui-nav, #002a40) !important;color:var(--dt-ui-accent, #fdc872) !important;}
.ms2-tour-spot{box-shadow:0 0 0 9999px var(--dt-ui-scrim);border-radius:var(--dt-ui-card-radius);}
.ms2-tour-spot::after{border-color:var(--dt-ui-focus);box-shadow:none;}
.ms2-tour-pop{background:var(--dt-ui-surface);border:var(--dt-ui-border-width) solid var(--dt-ui-border);padding:var(--dt-ui-card-padding);}
.ms2-tour-pop::after,.ms2-guide-caption::before{background:var(--dt-ui-surface);}
.ms2-guide-caption{background:var(--dt-ui-surface);color:var(--dt-ui-text);font-family:var(--dt-ui-font-body);border:var(--dt-ui-border-width) solid var(--dt-ui-border);}
.ms2-tour-title{font-size:var(--dt-ui-size-heading);}.ms2-tour-body{font-size:var(--dt-ui-size-base);}
html body .ms2-app .ms2-addform :is(input,select){font-size:var(--dt-ui-size-base);}
html body .ms2-app :is(.ms2-task-tab,.ms2-time-tab,.ms2-scout-source){font-size:var(--dt-ui-button-text-size);}
.ms2-app .ms2-grid{gap:var(--dt-ui-layout-gap);}
.ms2-app :is(.ms2-wrap,.ms2-grid > *, .ms2-card,.ms2-scout){min-width:0;}
.ms2-app :is(.ms2-task-text,.ms2-task-title,.ms2-tour-body){overflow-wrap:anywhere;}
@media(max-width:600px){.ms2-app{padding:16px 12px 40px;}.ms2-app .ms2-addform{flex-wrap:wrap;}.ms2-app .ms2-addform input[type=text]{min-width:0;flex-basis:100%;}.ms2-tour-foot{flex-wrap:wrap;}.ms2-tour-nav{flex-wrap:wrap;}}

/* Keep help and long greetings readable at enlarged type sizes. */
.ms2-greeting{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;}
.ms2-greeting h1{grid-column:1;overflow-wrap:anywhere;}.ms2-greeting p{grid-column:1;}
.ms2-greeting .ms2-guide-open{position:static;grid-column:2;grid-row:1 / span 2;align-self:start;}
@media(max-width:768px){.ms2-greeting{display:block;}.ms2-greeting .ms2-guide-open{position:static;margin:0 0 20px;}.ms2-greeting p{margin-bottom:12px;}.ms2-task-group-head{flex-wrap:wrap;}.ms2-task-group-toggle{flex:1 1 calc(100% - 32px);}.ms2-task-group-progress{order:3;flex-basis:100%;}.ms2-task-group-name{white-space:normal;overflow-wrap:anywhere;}}

/* Figma 6077:39867: explanatory copy uses the body role. */
html body .ms2-app .ms2-scout-helper{font-size:var(--dt-ui-size-base);line-height:1.3;color:var(--dt-ui-muted);}
.ms2-guide-focus-veil{background:var(--dt-ui-scrim);}

/* Interactive labels use the primary text role on configurable surfaces. */
html body .ms2-app .ms2-guide-open{color:var(--dt-ui-text) !important;}
/* Unselected pills: muted label, then Navy on the light mustard hover (Figma 6110:25279). */
html body .ms2-app :is(.ms2-task-tab,.ms2-time-tab){font-weight:500 !important;}
html body .ms2-app :is(.ms2-task-tab,.ms2-time-tab):not(.is-active){color:var(--ms2-text-muted) !important;}
html body .ms2-app :is(.ms2-task-tab,.ms2-time-tab):not(.is-active):hover{color:var(--dt-ui-nav, #002a40) !important;background:var(--ms2-toggle-hover) !important;}

.ms2-app :is(.ms2-focus-scheduler-panel,.ms2-rec-menu,.ms2-task-group-menu,.ms2-focus-added){border-radius:var(--dt-ui-card-radius);box-shadow:var(--dt-ui-card-shadow);}
.ms2-app .ms2-focus-scheduler-backdrop{background:var(--dt-ui-scrim);}
@media(max-width:768px){.ms2-task-group-head{display:grid;grid-template-columns:minmax(0,1fr) auto;}.ms2-task-group-toggle{grid-column:1;grid-row:1;}.ms2-task-group-menu-wrap{grid-column:2;grid-row:1;}.ms2-task-group-progress{grid-column:1 / -1;grid-row:2;}}

/* Task rows follow Figma 6183:40565 rather than the generic Studio field and
   button sizing: 32px tonal dropdowns and 18px micro icons with 4px corners. */
html body .ms2-app .ms2-task-row :is(.ms2-freq,.ms2-status){min-height:32px !important;height:32px;}
html body .ms2-app .ms2-task-row :is(.ms2-task-clone,.ms2-task-edit,.ms2-task-del){border-radius:4px !important;min-height:18px !important;}
html body .ms2-app .ms2-task-group-add-btn:hover:not(:disabled){background:var(--ms2-toggle-hover) !important;}
html body .ms2-app .ms2-scout-source:hover{background:var(--ms2-toggle-hover) !important;border-color:transparent !important;color:var(--dt-ui-nav, #002a40) !important;}
html body .ms2-app .ms2-ask:is(:hover,:focus-within){border-color:var(--ms2-action) !important;box-shadow:inset 0 0 0 1px var(--ms2-action) !important;}
/* An expanded group reads as one box: only its outer corners round, so the header's bottom edge runs straight into the task rows. */
html body .ms2-app .ms2-task-group-head:not(.is-collapsed){border-radius:var(--dt-ui-field-radius) var(--dt-ui-field-radius) 0 0;}
html body .ms2-app .ms2-task-group-add{border-radius:0 0 var(--dt-ui-field-radius) var(--dt-ui-field-radius);}

/* Heading sizes: section headers 18px, task-group headers 16px (were 20-21px
   from --dt-ui-size-heading / --dt-ui-size-subheading). */
html body .ms2-app.ms2-app :is(.ms2-card-head h2, .ms2-scout-head h3, .ms2-section-title h2) { font-size: 18px !important; line-height: 1.3 !important; }
html body .ms2-app.ms2-app .ms2-task-group-name { font-size: 16px !important; line-height: 1.3 !important; }
