:root {
    --advent-scheduler-plum:#75437f;
    --advent-scheduler-plum-hover:#5b3065;
    --advent-scheduler-day-ink:#29445c;
    --advent-scheduler-day-edge:#dbe5ee;
    --advent-scheduler-booked-fill:#e9f3fd;
    --advent-scheduler-booked-edge:#8eb7dc;
    --advent-scheduler-selected-fill:#edf6fc;
    --advent-scheduler-selected-edge:#3d78af;
    --advent-scheduler-day-dot:#397eb7;
    --advent-account-header-shadow:0 0 6px 1px #3a224d32,0 0 21px 3px #3a224d30;
}
#advent-account-management { --am-edge:#d8e5f1; --am-blue:#135791; --am-muted:#526b80; }
#advent-account-management [hidden] { display:none !important; }
#advent-account-management .panel { min-width:0; border-radius:16px; }
.app>main:has(>#root>#advent-account-management)>.top,
.advent-live-shell .content:has(>#advent-account-management)>.page-heading {
    box-shadow:var(--advent-account-header-shadow) !important;
}
.app>main:has(>#root>#advent-account-management>:is(.am-directory,.am-directory-workspace))>.top,
.advent-live-shell .content:has(>#advent-account-management>:is(.am-directory,.am-directory-workspace))>.page-heading {
    background:var(--advent-dashboard-summary-gradient) !important;
}
.app>main:has(>#root>#advent-account-management>:is(.am-directory,.am-directory-workspace))>.top {
    padding-block:20px !important;
}
.advent-live-shell .content:has(>#advent-account-management>:is(.am-directory,.am-directory-workspace))>.page-heading {
    padding-block:var(--am-directory-heading-padding,22px);
}
@media(max-width:650px) {
    .advent-live-shell .page-heading { --am-directory-heading-padding:16px; }
}
:is(.advent-live-shell .page-heading, .app > main > .top)>div:has(>.am-directory-metrics) { flex:1; min-width:0; width:100%; }
.am-directory { margin-inline:auto; }
.am-directory-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem 1rem; align-items:center; width:100%; min-width:0; }
.am-directory-current { grid-column:1; min-width:0; display:flex; align-items:center; gap:.65rem; }
.am-directory-totals { display:grid; gap:.35rem; margin:.3rem 0; }
.am-directory-metrics > .am-week-overview { grid-column:1 / -1; grid-row:2; justify-self:center; width:min(100%,17rem); box-sizing:border-box; }
.am-directory-metrics dl>div { display:flex; align-items:baseline; gap:.4rem; }
.am-directory-metrics dt { color:#526b80; font-weight:650; }
.am-directory-totals dt { font-size:.85rem; }
.am-directory-metrics dd { margin:0; color:#274862; font-weight:750; font-variant-numeric:tabular-nums; }
.am-directory-periods {grid-column:2; grid-row:1; justify-self:end; display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:flex-end; gap:.4rem 1rem; min-width:0}
.am-directory-periods > .am-directory-totals {margin:0}
.am-directory-previous { font-size:.72rem; line-height:1.25; }
.am-directory-previous h2 { margin:0 0 .2rem; font-size:15px!important; color:#274862; }
.am-directory-previous dl { display:grid; gap:.15rem; margin:0; }
@media(min-width:760px) {
    .am-directory-metrics { grid-template-columns:minmax(0,1fr) minmax(0,17rem) minmax(0,1fr); }
    .am-directory-metrics > .am-week-overview { grid-column:2; grid-row:1; }
    .am-directory-periods { grid-column:3; }
}
.am-bar { display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; margin-bottom:1rem; }
.am-bar h2 { margin:0; }
.am-bar label { min-width:min(18rem,100%); font-weight:600; }
.am-bar input { margin-top:.25rem; }
.am-directory-search { display:grid; gap:.55rem; max-width:100%; }
.am-directory-search input { width:100%; margin-top:0; }
.sidebar .am-sidebar-folder button { width:100%; }
.sidebar .am-sidebar-folder .files-nav-toggle { display:flex; justify-content:space-between; align-items:center; gap:.45rem; }
.sidebar .am-sidebar-folder .files-nav-children:not([hidden]) { display:grid; gap:.2rem; margin-left:.75rem; }
.sidebar .am-sidebar-folder .files-nav-children button { font-size:.93em; }
.am-directory-actions { display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; }
.am-directory .am-directory-actions [data-am-action="delete-directory"] { color:#a32935; }
.am-directory [data-am-status]:empty { display:none; }
.am-table { overflow:auto; max-height:23rem; border:1px solid var(--am-edge); border-radius:10px; background:#fff; }
.am-directory .am-table,#am-documents .am-table { max-height:none; scrollbar-gutter:stable; }
.am-table table { width:100%; border-collapse:collapse; }
.am-table th { position:sticky; top:0; z-index:1; text-align:left; background:#edf4fc; }
.am-table :is(th,td) { padding:.7rem .85rem; border-bottom:1px solid var(--am-edge); overflow-wrap:anywhere; }
.am-table tr:last-child td { border-bottom:0; }
.am-table tr:hover td { background:#f6faff; }
.am-table [data-am-directory-row] { cursor:pointer; }
.am-account-link { color:var(--am-blue); text-align:left; font-weight:700; }
.am-type { color:#244e77; font-weight:650; font-size:.85rem; }
.am-empty,.am-status { color:var(--am-muted); margin:.5rem 0; }
.am-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(16rem,22rem); align-items:start; gap:1rem; }
.am-main,.am-side { min-width:0; }
.am-side { display:grid; gap:1rem; width:auto; height:auto; padding:0; background:none; border:0; }
.am-account-header dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(8rem,1fr)); gap:1rem; margin:0; }
.am-account-header dt { color:var(--am-muted); font-weight:600; }
.am-account-header dd { margin:0; overflow-wrap:anywhere; }
.am-tabs { display:flex; gap:.5rem; margin:.85rem 0; }
.am-month { display:flex; justify-content:space-between; align-items:center; gap:.35rem; margin-bottom:.6rem; }
.am-month strong { text-align:center; }
.am-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:.2rem; text-align:center; }
.am-days small { color:var(--am-muted); }
.am-days [data-am-day] { min-height:2rem; }
.am-appointments article,.am-task-list article { border:1px solid var(--am-edge); border-radius:8px; padding:.55rem .7rem; margin:.35rem 0; }
.am-appointments article p,.am-task-list article p { margin:.3rem 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.am-item-actions { display:flex; flex-wrap:wrap; gap:.3rem; }
.am-appointments .am-item-actions,.am-task-list .am-item-actions { margin-top:.45rem; }
.am-tasks details { margin-top:.7rem; }
.am-tasks summary { cursor:pointer; font-weight:600; }
dialog.am-editor { width:min(38rem,calc(100% - 2rem)); max-height:90vh; padding:1.25rem; background:#fff; border:1px solid #d8e5f1; border-radius:16px; color:#183e62; }
dialog.am-editor::backdrop { background:#17324d54; }
.am-editor h2 { margin:0; }
.am-form-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem 1rem; }
.am-form-fields label { display:block; }
.am-form-fields :is(input,textarea) { width:100%; margin-top:.25rem; }
.am-form-fields label:has(textarea),.am-form-fields label:has([type=file]),.am-form-fields > small { grid-column:1 / -1; }
.am-editor-actions { display:flex; justify-content:flex-end; gap:.5rem; }
.am-error { color:#a02733; }
@media(max-width:850px) { .am-detail-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:480px) { .am-form-fields { grid-template-columns:minmax(0,1fr); } }

/* Match the Claimant Details palette in each frontend. */
#advent-account-management {
    --am-plum:var(--advent-scheduler-plum);
    --am-deep-plum:var(--advent-scheduler-plum-hover);
    --am-light-plum:#f1e6f5;
    --am-yellow:#fff4bf;
    --am-yellow-ink:#555d25;
    --am-yellow-edge:#e5d58c;
    --am-log-header:#f5f8fc;
    --am-editor-fill:#fffbe6;
    --am-panel-shadow:0 0 8px 1px #17324d1f,0 2px 8px #17324d1f;
}
.advent-live-shell #advent-account-management {
    --am-log-header:#fafcfd;
    --am-editor-fill:#fff;
}
#advent-account-management :is(.am-directory,.am-account-header) {
    background:linear-gradient(to right,#fbf8fc,#e9d9ee) !important;
    border-inline-start:4px solid var(--am-plum) !important;
    box-shadow:0 4px 18px #3a224d16 !important;
}
#advent-account-management .am-welcome { margin:0 0 .8rem; color:var(--am-plum); font-weight:650; overflow-wrap:anywhere; }
#advent-account-management :is(.am-account-header [data-am-action=back],[data-am-return-top]) {
    background:var(--am-yellow) !important;
    color:var(--am-yellow-ink) !important;
    border-color:var(--am-yellow-edge) !important;
}
#advent-account-management .am-side { grid-template-columns:minmax(0,1fr); }
#advent-account-management :is(.am-calendar,.am-tasks,.am-pane) { box-shadow:var(--am-panel-shadow) !important; }
#advent-account-management #am-documents { width:50%; min-width:min(100%,20rem); box-sizing:border-box; }
#am-documents .am-table :is(th,td) { padding:.55rem .5rem; }
#am-documents .am-document-link { padding:0; border:0; background:transparent; color:var(--am-blue); text-align:left; text-decoration:underline; white-space:normal; overflow-wrap:anywhere; }
#advent-account-management #am-documents .btn {
    background:var(--am-light-plum) !important;
    border-color:#d8c5df !important;
    color:#542b60 !important;
    padding:.35rem .6rem;
}
#advent-account-management #am-documents .btn:hover { background:#e9d9ee !important; }
#advent-account-management :is(.am-calendar,.am-tasks) { position:relative; overflow:visible; padding:10px 12px; }
#advent-account-management :is(.am-calendar,.am-tasks) > .am-bar { margin-bottom:.45rem; }
#advent-account-management :is(.am-calendar,.am-tasks) > .am-bar h2,
.advent-live-shell :is(.claimant-live-grid,.dashboard-live-grid) :is(.live-calendar,.live-todos) h2 {
    color:var(--advent-scheduler-plum) !important;
}
#advent-account-management :is(.am-calendar,.am-tasks) > .am-bar h2 { font-size:1rem; }
#advent-account-management :is(.am-calendar,.am-tasks) > .am-bar .btn,
.advent-live-shell :is(.claimant-live-grid,.dashboard-live-grid) :is(.live-calendar,.live-todos) :is([data-action=new-appointment],[data-action=new-task]) {
    background:var(--advent-scheduler-plum) !important;
    border-color:var(--advent-scheduler-plum) !important;
    color:#fff !important;
}
#advent-account-management :is(.am-calendar,.am-tasks) > .am-bar .btn { padding:.35rem .65rem; }
#advent-account-management :is(.am-calendar,.am-tasks) > .am-bar .btn:hover,
.advent-live-shell :is(.claimant-live-grid,.dashboard-live-grid) :is(.live-calendar,.live-todos) :is([data-action=new-appointment],[data-action=new-task]):hover {
    background:var(--advent-scheduler-plum-hover) !important;
    border-color:var(--advent-scheduler-plum-hover) !important;
}
#advent-account-management :is(.am-calendar,.am-tasks):has(.am-popup) { z-index:5; }
#advent-account-management .am-month .btn { padding:0; width:28px; min-width:28px; height:28px; }
#advent-account-management .am-days small { color:#69798a; }
#advent-account-management .am-days [data-am-day],
.advent-live-shell :is(.claimant-live-grid,.dashboard-live-grid) .live-calendar .calendar-day {
    background:#fff !important;
    color:var(--advent-scheduler-day-ink) !important;
    border:1px solid var(--advent-scheduler-day-edge) !important;
}
#advent-account-management .am-days [data-am-day] {
    box-shadow:none;
    position:relative;
    padding:.2rem 0 .35rem !important;
}
#advent-account-management .am-days [data-am-has-appointments],
.advent-live-shell :is(.claimant-live-grid,.dashboard-live-grid) .live-calendar .calendar-day:has(>i) {
    background:var(--advent-scheduler-booked-fill) !important;
    border-color:var(--advent-scheduler-booked-edge) !important;
    font-weight:700;
}
.am-days [data-am-has-appointments]::after { content:''; position:absolute; width:5px; height:5px; left:calc(50% - 2.5px); bottom:3px; background:var(--advent-scheduler-day-dot); border-radius:50%; }
.advent-live-shell :is(.claimant-live-grid,.dashboard-live-grid) .live-calendar .calendar-day>i {
    background:var(--advent-scheduler-day-dot);
}
#advent-account-management .am-days [data-am-day]:is(:hover,[aria-pressed=true]),
.advent-live-shell :is(.claimant-live-grid,.dashboard-live-grid) .live-calendar .calendar-day:is(:hover,.selected) {
    background:var(--advent-scheduler-selected-fill) !important;
    border-color:var(--advent-scheduler-selected-edge) !important;
}
.am-tabs { flex-wrap:wrap; }
.am-tabs [data-am-add-activity] { margin-inline-start:auto; }
.am-legend { display:grid; gap:4px; color:#000; font-size:.8rem; }
.am-legend span::before { content:''; display:inline-block; width:.65rem; height:.65rem; margin-inline-end:.4rem; border-radius:50%; background:var(--am-status-color); }
[data-am-task-status=today] { --am-status-color:#d93025; --am-status-bg:#fcebed; --am-status-ink:#a12d36; }
[data-am-task-status=week] { --am-status-color:#e7ac16; --am-status-bg:#fff4d7; --am-status-ink:#735109; }
[data-am-task-status=later] { --am-status-color:#228a5b; --am-status-bg:#e8f5ed; --am-status-ink:#23734d; }
.am-task-triggers { display:grid; margin-top:.6rem; }
#advent-account-management .am-task-triggers .btn { border:0 !important; background:transparent !important; box-shadow:none; text-align:left; padding:.4rem .1rem; color:#000 !important; font-weight:650; }
#advent-account-management .am-task-triggers .btn + .btn { border-top:1px solid #e2e8ef !important; }
#advent-account-management .am-task-triggers .btn:first-child { color:var(--advent-scheduler-plum) !important; }
.am-task-triggers .btn::before { content:'▸ '; }
.am-task-triggers .btn[aria-expanded=true]::before { content:'▾ '; }
.am-popup { position:fixed; inset:0 auto auto 0; width:min(22rem,calc(100vw - 16px)); box-sizing:border-box; z-index:20; display:flex; flex-direction:column; overflow:hidden; padding:4px 5px 8px; border:1px solid #cbb8d3; border-radius:14px; background:white; box-shadow:0 12px 34px #3323472b,0 2px 6px #33234714; animation:am-slide-in .24s ease-out both; --am-slide:12px; }
.am-popup[data-am-popup=appointments] { border-color:var(--am-deep-plum); border-bottom-width:3px; border-radius:12px; box-shadow:0 4px 22px #2d1c3940; }
@keyframes am-slide-in { from { opacity:0; transform:translateX(var(--am-slide)); } to { opacity:1; transform:translateX(0); } }
.am-popup-heading { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.4rem; background:linear-gradient(110deg,#fff,#f6effa); border-radius:8px; color:#38254a; cursor:grab; touch-action:none; user-select:none; }
#advent-account-management .am-popup-heading h3 { margin:0; font-size:.9rem; color:inherit !important; }
#advent-account-management .am-popup-heading .btn { background:var(--am-light-plum) !important; border-color:#d8c5df !important; color:#542b60 !important; font-size:.75rem; padding:.25rem .55rem; }
#advent-account-management .am-appointments .am-item-actions {
    background:var(--am-light-plum);
    border-top:1px solid #d8c5df;
    border-radius:0 0 6px 6px;
    padding:.35rem;
}
#advent-account-management .am-appointments .am-item-actions .btn {
    background:var(--advent-scheduler-plum) !important;
    border-color:var(--advent-scheduler-plum) !important;
    color:#fff !important;
}
.am-popup-list { min-height:0; margin-top:0; padding:4px 5px 8px; overflow:auto; overscroll-behavior:contain; }
.am-appointments article { background:#fff; border-color:#d6c9df; box-shadow:0 3px 8px #37285433; color:#000; }
.am-appointment-when { font-size:.84rem; }
.am-appointment-when span { display:inline-block; background:#fff1b4; color:var(--am-plum); border-radius:5px; padding:.16rem .3rem; }
.am-appointment-account { text-align:center; color:var(--modern-accent,var(--teal,#2864c5)); font-weight:700; }
.am-task-group { border:1px solid #e2e5ef; border-radius:8px; overflow:hidden; margin:.35rem 0; }
.am-task-list article { background:var(--am-status-bg); border-color:#e2e5ef; box-shadow:0 2px 6px #37285420; overflow-wrap:anywhere; }
.am-task-toggle { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.5rem; width:100%; border:0; border-radius:0; background:var(--am-status-bg); box-shadow:inset 3px 0 var(--am-status-ink); color:#26364c; text-align:left; padding:.5rem .65rem; }
.am-task-toggle span { white-space:nowrap; font-size:.8rem; color:var(--am-status-ink); background:#ffffffb3; border-radius:20px; padding:2px 7px; }
.am-task-count { border-radius:20px; padding:2px 7px; color:#59356b; background:#e8d9f2; font-size:.72rem; }
.am-task-list [data-am-action=toggle] { background:#edf6f1 !important; border-color:#cfe4d9 !important; color:#256c4b !important; }
.am-task-content { padding:0 .65rem .5rem; }
.am-log-heading { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.am-log-heading .btn { font-size:.75rem; padding:.25rem .5rem; }
.am-log-heading input { width:min(13rem,100%); margin:0; }
.am-log-totals { display:grid; grid-template-columns:max-content max-content; gap:.2rem .5rem; margin:0; font-size:.8rem; color:var(--am-muted); }
.am-log-totals dd { margin:0; font-weight:650; font-variant-numeric:tabular-nums; color:var(--am-blue); }
.am-activity-scroll { overscroll-behavior:contain; }
#advent-account-management .am-activity-scroll th { background:var(--am-log-header) !important; color:#000 !important; }
#advent-account-management .am-activity-scroll th:first-child .btn { padding:0 !important; border:0 !important; background:transparent !important; font:inherit; color:inherit !important; text-decoration:underline dotted; }
.am-activity-scroll td { vertical-align:top; }
.am-activity-scroll td:first-child,.am-activity-scroll td:nth-child(4) { white-space:nowrap; }
#advent-account-management .am-activity-scroll [data-am-important] td { background:#fff4c2; }
.am-note { white-space:pre-wrap; min-width:min(12rem,25vw); }
.am-note > div { white-space:normal; margin-top:.25rem; }
.am-expense,.am-activity-flag { display:block; }
.am-activity-scroll .am-center,.am-activity-end td { text-align:center; }
.am-activity-scroll input[type=checkbox] { width:auto; }
#advent-account-management .am-activity-scroll .am-important-column { text-align:left; }
#advent-account-management .am-important-column [data-am-flag] { display:block; margin:0; }
#advent-account-management .am-activity-end .btn { background:#e1f0fa !important; color:#06659f !important; border-color:#c9e2f3 !important; opacity:1; margin:.15rem; }
#advent-account-management [data-am-return-top] { margin:.65rem auto 0; display:block; }
.am-history > div { padding:.35rem .5rem; border-top:1px solid var(--am-edge); }
.am-history strong,.am-history small { display:block; }
.am-history p { white-space:pre-wrap; }
.am-activity-scroll [data-am-date-handle] { cursor:grab; }
.am-activity-scroll [data-am-date-handle]:active { cursor:grabbing; }
.am-activity-scroll .am-dragging { opacity:.45; }
.am-activity-scroll .am-drop-target td { box-shadow:inset 0 2px #2864c5; }
dialog.am-editor { background:#fff9df; box-shadow:0 7px 30px #31284135; }
dialog.am-scheduler-editor { background:#fff9df !important; border-color:#eedfa6 !important; }
dialog.am-editor[open] { overscroll-behavior:contain; }
dialog.am-side-editor { position:fixed; margin:0; right:auto; bottom:auto; width:min(25rem,calc(100vw - 1rem)); max-height:calc(100dvh - 16px); box-sizing:border-box; z-index:60; transition:left .24s ease-out; }
dialog.am-side-editor.am-editor-overlapped { z-index:4; }
.am-window-dragging { transition:none !important; animation:none !important; }
dialog.am-side-editor h2 { cursor:grab; touch-action:none; user-select:none; }
dialog.am-side-editor[data-am-editor=appointments] { padding:.75rem; }
.am-side-editor[data-am-editor=appointments] h2 { font-size:1.15rem; line-height:1.2; }
.am-side-editor[data-am-editor=appointments] h2 + p { margin:.2rem 0 .5rem; font-size:.8rem; }
.am-side-editor[data-am-editor=appointments] .am-form-fields { gap:.4rem .6rem; font-size:.8rem; }
.am-side-editor[data-am-editor=appointments] .am-form-fields :is(input,textarea) { box-sizing:border-box; min-width:0; margin-top:.15rem; padding:.25rem .4rem; }
.am-side-editor[data-am-editor=appointments] .am-form-fields input { min-height:0; height:2rem; }
.am-side-editor[data-am-editor=appointments] .am-form-fields textarea { min-height:2.75rem; height:2.75rem; resize:vertical; }
.am-side-editor[data-am-editor=appointments] .am-error:empty { display:none; }
.am-side-editor[data-am-editor=appointments] .am-editor-actions { margin-top:.45rem; }
.am-appointment-date-row { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:12px; align-items:center; }
.am-appointment-date-fields { display:grid; gap:.35rem; min-width:0; }
.am-appointment-picker { border:1px solid #dce3ee; border-radius:10px; padding:6px; background:#f8fafc; }
.am-picker-month { display:grid; grid-template-columns:1.5rem minmax(0,1fr) 1.5rem; align-items:center; gap:2px; margin-bottom:2px; font-size:.75rem; text-align:center; }
.am-picker-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); grid-auto-rows:1.25rem; gap:2px; text-align:center; font-variant-numeric:tabular-nums; }
.am-appointment-picker button { display:grid; place-items:center; box-sizing:border-box; padding:0; min-width:0; min-height:0; width:100%; height:1.25rem; border:0; border-radius:4px; background:transparent; color:#17365d; font-size:.72rem; line-height:1; }
.am-appointment-picker button:hover { background:#e2eafa; }
.am-picker-grid button[aria-pressed=true] { background:#2864c5; color:white; }
.am-picker-grid small { align-self:center; color:#526479; font-size:.65rem; line-height:1; }
.am-editor :is(input,select,textarea) { width:100%; }
.am-editor [type=checkbox] { width:auto; margin-inline-start:.4rem; }
.am-editor [hidden] { display:none!important; }
.am-editor fieldset { border:1px solid #e5d58c; border-radius:8px; margin:0 0 .65rem; padding:.7rem; min-width:0; }
.am-editor legend { color:#d82d1c; font-weight:700; }
.am-editor [data-am-remove-row] { justify-self:end; }
.am-editor .am-editor-actions { justify-content:flex-start; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
    .am-appointments article,.am-task-list article,.am-days button,.am-task-triggers button { transition:transform .16s ease,box-shadow .16s ease; }
    .am-appointments article:hover,.am-task-list article:hover,.am-days button:hover,.am-task-triggers button:hover { transform:translateY(-2px); }
    .am-activity-scroll [data-am-activity-id]:hover td { box-shadow:0 2px 6px #17324d17; }
}
@media (max-width:390px) { .am-appointment-date-row { grid-template-columns:minmax(0,1fr); } }
@media (prefers-reduced-motion:reduce) { .am-popup,dialog.am-side-editor { animation:none; transition:none; } }

/* Inline account activity composer, using the Claimant Details activity palette. */
.am-log-workspace { min-width:0; }
.am-log-workspace [data-am-inline-slot] { display:contents; }
.am-log-workspace:has(.am-inline-activity.panel) > .am-activity {
    transform:translateY(calc(-1 * var(--am-log-glide,0px)));
}
#advent-account-management .am-inline-activity { background:var(--am-editor-fill) !important; border:1px solid var(--modern-border,var(--line,#dce7ee)); border-radius:14px; padding:.45rem clamp(.8rem,2vw,1.7rem) .6rem; }
#advent-account-management .am-inline-activity.panel { position:sticky; top:6px; z-index:4; margin:0 0 .75rem; box-shadow:var(--am-panel-shadow) !important; }
#advent-account-management .am-inline-activity-edit { box-shadow:none; }
.am-inline-activity-heading { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem .65rem; padding-bottom:.2rem; }
#advent-account-management .am-inline-activity-heading h2 { margin:0; color:var(--modern-accent,var(--teal,#2864c5)) !important; }
.am-activity-account { color:#244e77; font-size:.8rem; font-weight:650; }
.am-draft { display:inline-flex; align-items:center; margin-inline-start:auto; padding:.25rem .55rem; border-radius:999px; background:#dbf4fc; color:#0b6e99; font-weight:650; font-size:.75rem; }
.am-inline-activity [data-am-entry-forms] { overflow-anchor:none; }
.am-inline-activity [data-am-entry-forms]:has(>.activity-entry+.activity-entry) {
    max-height:min(var(--am-entry-height,22rem),max(160px,calc(100dvh - 235px)));
    overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-gutter:stable;
}
#advent-account-management .am-inline-activity .activity-entry { position:relative; background:none; border:0; border-radius:0; margin:0; padding:.25rem 0 .35rem; }
.am-inline-activity .activity-entry + .activity-entry { border-top:1px solid #d8e6f2 !important; }
.am-inline-activity .entry-heading { color:#d93025; margin:.2rem 0 .4rem; }
.am-inline-activity .am-activity-primary { display:grid; grid-template-columns:minmax(6.5rem,.8fr) minmax(10rem,2fr) minmax(4rem,.85fr) auto; align-items:end; gap:.35rem .65rem; }
.am-activity-type-fields { display:contents; }
.am-activity-type-fields:has(>:is([data-am-mileage-label],[data-am-expense-label]):not([hidden])) { display:flex; grid-column:span 2; flex-wrap:wrap; align-items:end; gap:.35rem 2cm; }
/* Use one third of the former 2fr Activity Type and .85fr Mileage tracks. */
.am-activity-type-fields > label { flex:0 0 max(calc(10rem / 3),calc((100% - .65rem) * 2 / 2.85 / 3)); white-space:nowrap; }
.am-activity-type-fields > :is([data-am-mileage-label],[data-am-expense-label]) { flex-basis:max(calc(4rem / 3),calc((100% - .65rem) * .85 / 2.85 / 3)); }
.am-inline-activity label { color:#53667b; font-size:.84rem; font-weight:650; }
.am-inline-activity label { min-width:0; }
.am-inline-activity label > :is(input:not([type=checkbox]),textarea),.am-activity-date-control input[data-am-date-display] { display:block; width:100%; margin-top:.2rem; box-sizing:border-box; }
.am-inline-activity .am-activity-type-fields input { min-width:0; }
.am-inline-activity .am-activity-type-fields:not(:has(>:is([data-am-mileage-label],[data-am-expense-label]):not([hidden]))) [data-am-field=type] { width:calc(100% / 3); }
.am-inline-activity [data-am-field=miles] { padding-inline:.2rem; }
.am-activity-currency { display:block; position:relative; margin-top:.2rem; }
.am-activity-currency > span { position:absolute; inset-inline-start:.25rem; top:50%; transform:translateY(-50%); pointer-events:none; }
.am-inline-activity .am-activity-currency input { display:block; width:100%; box-sizing:border-box; padding-inline:.85rem .2rem; }
.am-inline-activity input:not([type=checkbox]) { min-height:38px; }
.am-inline-activity input[type=number] { appearance:textfield; }
.am-inline-activity input[type=number]::-webkit-inner-spin-button,.am-inline-activity input[type=number]::-webkit-outer-spin-button { appearance:none; }
.am-activity-date-control { display:block; position:relative; }
.am-activity-date-control input[data-am-date-display] { padding-inline-end:1.5rem; font-variant-numeric:tabular-nums; }
.am-activity-date-control [type=date] { position:absolute; left:0; bottom:0; width:1px; height:1px; min-height:0!important; opacity:0; pointer-events:none; }
.am-activity-date-control [data-am-date-picker] { position:absolute; right:4px; top:50%; transform:translateY(-50%); background:none; border:0; padding:2px; color:#536480; cursor:pointer; line-height:1; }
.am-activity-note { display:grid; grid-template-columns:minmax(0,1fr) max-content; align-items:center; gap:.15rem .35rem; margin-top:.25rem; }
.am-activity-note textarea { min-height:calc(60px + .3cm); resize:vertical; }
.am-activity-note label:has(textarea) { grid-column:1; grid-row:1; }
.am-activity-note .am-important { grid-column:2; grid-row:1; display:flex; align-items:center; gap:.25rem; white-space:nowrap; padding-top:.7rem; color:#000 !important; }
.am-activity-note .am-important input { width:auto; margin:0; }
.am-note-controls { display:flex; flex-direction:column; align-items:flex-end; gap:.15rem; grid-column:1; grid-row:2; margin:0; }
#advent-account-management .am-note-controls .btn { font-size:.74rem; color:#fff !important; background:#8e304a !important; border-color:#8e304a !important; padding:.2rem .5rem; }
#advent-account-management .am-note-controls .btn:hover { background:#74243b !important; border-color:#74243b !important; }
.am-note-controls small { color:#526b80; line-height:1.1; }
#advent-account-management .am-inline-activity [data-am-add-row] { display:block; margin:.3rem 0 0; background:#dbf4fc !important; color:#000 !important; border-color:#dbf4fc !important; }
.am-inline-activity .am-editor-actions { justify-content:flex-start; border-top:1px solid #d8e6f2; margin-top:.4rem; padding-top:.4rem; }
#advent-account-management .am-inline-activity.panel {
    padding-block:.35rem .35rem;
    --am-field-inset:clamp(0px,calc(100% - 26rem),2.5cm);
}
.am-inline-activity.panel .am-activity-fields { padding-inline-start:var(--am-field-inset); }
.am-inline-activity.panel .am-activity-note textarea { height:52px; min-height:52px; }
.am-inline-activity.panel .am-important { padding-top:0; }
#advent-account-management .am-inline-activity.panel [data-am-add-row] {
    margin-block-start:.5cm;
    margin-inline-start:var(--am-field-inset);
}
.am-inline-activity.panel .am-editor-actions { margin-top:.15rem; padding-top:.2rem; }
/* Use the open space to the left of Delete and its tip on wider forms. */
@media (min-width:701px) {
    #advent-account-management .am-inline-activity.panel [data-am-add-row] {
        position:relative;
        margin-block-start:calc(.5cm - 1cm);
    }
}
.am-inline-activity .am-error:not([hidden]) { margin:.45rem 0; }
.am-activity-scroll tbody tr.am-editing-row > td { background:var(--am-editor-fill); padding:.3rem; white-space:normal; }
.am-activity-scroll .am-editing-row :is(input,textarea) { font-family:inherit; }
@media(max-width:1050px) {
    .am-inline-activity .am-activity-primary { grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr)); }
}
@media(max-width:600px) {
    .am-inline-activity .am-activity-primary:has([data-am-mileage-label]:not([hidden])) { grid-template-columns:minmax(6.5rem,.8fr) minmax(0,2.85fr); }
    .am-activity-type-fields:has(>[data-am-mileage-label]:not([hidden])) { grid-column:auto; }
}
@media(max-width:520px) {
    .am-activity-note { grid-template-columns:minmax(0,1fr); }
    .am-activity-note .am-important { grid-column:1; grid-row:3; }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
    .am-table :is([data-am-directory-row],[data-am-activity-id]):not(.am-editing-row) { transition:transform .16s ease,box-shadow .16s ease; }
    .am-table :is([data-am-directory-row],[data-am-activity-id]):not(.am-editing-row):hover { transform:translateY(-1px); box-shadow:0 2px 6px #17324d17; }
}

/* Place the account-wide schedule beside the directory on the main page. */
#advent-account-management .am-directory-workspace {
    display:grid;
    grid-template-columns:minmax(15rem,20rem) minmax(0,1fr);
    gap:1rem;
    align-items:start;
}
.am-directory-workspace > .am-directory { width:100%; min-width:0; margin:0; box-sizing:border-box; }
.am-directory-workspace .am-directory .am-table :is(th,td):last-child {
    padding-inline:max(0px, calc(.85rem - .25cm));
    text-align:left;
}
.am-directory-workspace .am-directory .am-table td .am-directory-actions { justify-content:flex-start; }
#advent-account-management section.panel.am-directory {
    background:transparent !important;
    border-inline-start:1px solid var(--am-edge) !important;
    box-shadow:none !important;
}
.am-directory > .am-bar { cursor:grab; touch-action:none; }
.am-directory > .am-bar:active { cursor:grabbing; }
.am-directory > .am-bar :is(label,input,button) { touch-action:auto; }
.am-directory [data-am-directory-scroll] { overscroll-behavior:contain; overflow-anchor:none; }
.am-directory [data-file-list-end-row] .btn {
    background:#e1f0fa !important; border-color:#c9e2f3 !important; color:#06659f !important;
    opacity:1; cursor:default;
}
.am-directory-navigation { display:flex; justify-content:center; padding:14px 0 4px; }
#advent-account-management .am-directory-navigation .btn {
    background:var(--am-yellow) !important;
    color:var(--am-yellow-ink) !important;
    border-color:var(--am-yellow-edge) !important;
}
.am-directory-workspace .am-task-account { color:var(--am-muted); font-size:.8rem; }
.am-editor .am-form-fields label:has([name=accountIndex]) { grid-column:1 / -1; }
@media(max-width:850px) {
    #advent-account-management .am-directory-workspace { grid-template-columns:minmax(0,1fr); }
}

.am-totals-user {display:flex; align-items:center; flex:0 1 auto; min-width:0; gap:.4rem; font-size:.85rem; font-weight:650}
.am-totals-user select {max-width:min(9rem, 100%); min-width:0}
.am-week-overview {padding:.35rem .55rem; color:#0b183b}
.am-week-overview .advent-attention-heading {margin:0 0 .25rem; text-align:center; font:750 10px/16px Arial,sans-serif; text-transform:uppercase; color:#31729d}
.am-week-overview .advent-attention-body {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.15cm; width:100%; margin-inline:auto}
.am-week-overview .advent-attention-group {overflow:hidden; border:1px solid #dce3ec; border-radius:10px; background:transparent}
.am-week-overview .advent-attention-group-label {display:flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:29px; padding:7px 3px; background:#eeeafa; color:#0b183b; font:700 10px/1.25 Arial,sans-serif}
.am-week-overview .advent-attention-pairs {display:grid !important; grid-template-columns:minmax(0,1fr); gap:0 !important; padding:0 5px}
.am-week-overview .advent-attention-row {display:flex; align-items:center; justify-content:flex-start; gap:.5em; padding:.1rem 0; font:600 10px/1.2 Arial,sans-serif; color:#5a6374}
.am-week-overview .advent-attention-row + .advent-attention-row {border-top:1px solid #e3e6ec}
.am-week-overview button.advent-attention-count {flex:none; min-width:0; min-height:0; margin:0; padding:0; border:0; border-radius:5px; background:transparent; box-shadow:none; color:#0b183b; font:700 17px/1 Arial,sans-serif; font-variant-numeric:tabular-nums; cursor:pointer; transition:transform .16s ease, box-shadow .16s ease}
.am-week-overview button.advent-attention-alert {color:#d93025}
.am-week-overview button.advent-attention-count:is(:hover,:focus-visible) {transform:translateY(-1px); box-shadow:0 0 10px 1px #17324d29,0 3px 10px #17324d29; text-decoration:underline}
.am-week-overview button.advent-attention-count:focus-visible {outline:2px solid #0879bf; outline-offset:2px}
@media(max-width:1045px) {
    .am-week-overview .advent-attention-group-label, .am-week-overview .advent-attention-row {font-size:13px}
}

@media(min-width:1000px) {
    body:not(.portal-locked) .app > main > .top:has(.am-directory-metrics) {
        grid-template-columns:minmax(0,1fr) minmax(0,17rem) minmax(16rem,1.35fr) auto !important;
        grid-template-rows:auto auto;
        row-gap:.2rem !important;
    }
    body:not(.portal-locked) .app > main > .top:has(.am-directory-metrics) > #advent-account-menu {
        grid-column:4;
    }
    .advent-live-shell .page-heading > div:has(>.am-directory-metrics) {
        display:grid;
        grid-template-columns:minmax(0,1fr) minmax(0,17rem) minmax(16rem,1.35fr);
        column-gap:1rem;
        align-items:center;
    }
    .page-heading > div:has(>.am-directory-metrics) > .advent-page-title-line {grid-column:1; grid-row:1}
    .page-heading > div:has(>.am-directory-metrics) > .muted {grid-column:1; grid-row:3}
    .am-directory-metrics {display:contents}
    .am-directory-metrics > .am-directory-current {grid-column:1; grid-row:2}
    .am-directory-metrics > .am-week-overview {grid-column:2; grid-row:1 / span 2; align-self:start}
    .am-directory-metrics > .am-directory-periods {grid-column:3; grid-row:1 / span 2}
    .am-directory-metrics > .am-week-overview,
    .am-directory-periods > .am-directory-totals {transform:translateX(-3cm)}
}


.am-dashboard-subtitle {display:block; font-size:.85em}

/* AM-only Edit controls: clear yellow. */
#advent-account-management button[data-am-action="edit-directory"],
#advent-account-management button[data-am-action="edit"] {
 background:#fffbea!important;
 border-color:#eee4bb!important;
 color:#67521d!important;
}

/* Compact AM Dashboard headings and content-sized Weekly Overview. */
.am-compact-dashboard-title{font-size:var(--am-compact-title-size)!important}
.am-compact-dashboard-title>.am-dashboard-subtitle{font-size:var(--am-compact-subtitle-size)!important}
.am-week-overview .advent-attention-heading{font-size:13px!important}
.am-directory-metrics>.am-week-overview{width:max-content!important;max-width:100%;min-width:0}
.am-week-overview .advent-attention-body{grid-template-columns:repeat(2,max-content);width:max-content;max-width:100%}
.am-week-overview .advent-attention-row{justify-content:space-between;gap:.5em}
.am-week-overview .advent-attention-group-label{padding-inline:8px}

/* Move AM Weekly Overview 1.5 centimetres right without shifting other metrics. */
.am-directory-metrics>.am-week-overview{position:relative;left:1.5cm}

.am-compact-dashboard-title{text-transform:none!important}

.am-week-overview button.advent-attention-count{font-size:16px!important}

/* AM Dashboard greeting and user controls above the summary box. */
.am-dashboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px;width:100%;min-width:0}
.am-dashboard-toolbar>.am-welcome{margin:0;color:#75437f;font-weight:650;text-shadow:none}
.am-dashboard-toolbar-controls{display:flex;align-items:center;gap:12px;margin-left:auto}
body:not(.portal-locked) .am-dashboard-toolbar #advent-account-menu{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;flex-wrap:nowrap!important;justify-content:flex-end}
.am-dashboard-toolbar~.top .am-directory-previous,
.am-dashboard-toolbar~.page-heading .am-directory-previous{position:relative;left:1.5cm}

/* AM toolbar dropdown overlays the page instead of increasing header height. */
body:not(.portal-locked) .am-dashboard-toolbar #advent-account-menu{position:relative!important}
body:not(.portal-locked) .am-dashboard-toolbar #advent-account-dropdown{
 position:absolute!important;top:calc(100% + 10px)!important;right:0!important;
 left:auto!important;bottom:auto!important;width:260px!important;
 max-width:min(260px,calc(100vw - 32px))!important;min-width:0!important;
 box-sizing:border-box;z-index:10050;
}
/* Keep previous-month content within the summary and bring monthly totals left. */
.am-dashboard-toolbar~.top .am-directory-previous,
.am-dashboard-toolbar~.page-heading .am-directory-previous{
 left:0;min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;
}
.am-dashboard-toolbar~.top .am-directory-periods,
.am-dashboard-toolbar~.page-heading .am-directory-periods{max-width:100%;box-sizing:border-box;padding-right:.5cm}
@media(min-width:1000px){
 .am-dashboard-toolbar~.top .am-directory-periods>.am-directory-totals,
 .am-dashboard-toolbar~.page-heading .am-directory-periods>.am-directory-totals{transform:translateX(-3.5cm)}
}

/* Allow AM tables to scroll horizontally with no visible scrollbar. */
#advent-account-management .am-table{
 overflow-x:auto!important;overscroll-behavior-x:contain;
 scrollbar-width:none!important;-ms-overflow-style:none;
}
#advent-account-management .am-table::-webkit-scrollbar{display:none!important}

/* Compact only AM account directory columns; retain the current text sizes. */
#advent-account-management [data-am-directory-scroll] :is(th,td){
 padding-left:6px!important;padding-right:6px!important;min-width:0!important;
 white-space:normal!important;overflow-wrap:anywhere;box-sizing:border-box;
}
#advent-account-management [data-am-directory-scroll] .am-account-link{
 max-width:100%;white-space:normal!important;overflow-wrap:anywhere;text-align:left;
}
#advent-account-management [data-am-directory-scroll] .am-directory-actions{
 display:flex;flex-wrap:wrap;gap:4px;min-width:0;
}
#advent-account-management [data-am-directory-scroll] .am-directory-actions>.btn{
 padding-inline:6px!important;min-width:0;
}

/* Inset account names within their existing column on every AM directory. */
#advent-account-management [data-am-directory-scroll] :is(th,td):first-child{
 padding-left:12px!important;
}

/* The AM End / Return to Top footer travels with the rows like Open Files. */
#advent-account-management .am-directory-scroll-footer{
 display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px 0;
}
#advent-account-management button[data-am-action="return-directory-top"],
#advent-account-management button[data-am-action="return-top"]{
 background:#fff4bf!important;color:#555d25!important;border-color:#e5d58c!important;
}
#advent-account-management button[data-am-action="return-directory-top"]:hover,
#advent-account-management button[data-am-action="return-top"]:hover{
 background:#ffed9c!important;box-shadow:0 3px 8px #17324d26!important;
}

/* Match the compact Demographics Edit style throughout Account Management. */
#advent-account-management button[data-am-action="edit-directory"],
#advent-account-management button[data-am-action="edit"],
#advent-account-management button[data-am-action="delete-directory"],
#advent-account-management button[data-am-action="delete"]{
 font-size:11px!important;line-height:normal!important;padding:6px 10px!important;height:auto!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important;vertical-align:middle!important;
}

/* New Activity: align Save's left edge with Add Another Activity. */
#advent-account-management .am-inline-activity.panel .am-editor-actions{
 display:flex;justify-content:flex-start;align-items:center;gap:.5rem;
 padding-inline-start:var(--am-field-inset);box-sizing:border-box;flex-wrap:wrap;
}
#advent-account-management .am-inline-activity.panel .am-editor-actions>[type="submit"]{order:0;margin-inline:0}
#advent-account-management .am-inline-activity.panel .am-editor-actions>[data-am-cancel]{order:1;margin-inline:0}

/* AM Dashboard and both account directories: clear-yellow delete controls. */
#advent-account-management button:is([data-am-action="delete-directory"],[data-am-action="delete"],[data-am-remove-row]),
.am-editor button[data-am-remove-row],
.am-popup button[data-am-action="delete"],
dialog.am-side-editor button:is([data-am-action="delete"],[data-am-remove-row]){
 background:#fffbea!important;
 background-image:none!important;
 border-color:#eee4bb!important;
 color:#67521d!important;
 font-size:11px!important;
 line-height:normal!important;
 padding:6px 10px!important;
 height:auto!important;
 min-height:0!important;
 max-height:none!important;
 box-sizing:border-box!important;
 vertical-align:middle!important;
}
#advent-account-management button:is([data-am-action="delete-directory"],[data-am-action="delete"],[data-am-remove-row]):hover,
.am-editor button[data-am-remove-row]:hover,
.am-popup button[data-am-action="delete"]:hover{
 background:#fff6d8!important;
}

/* Match the Dashboard appointment cards and calendar feedback. */
#advent-account-management .am-appointments article {
    display:grid; grid-template-columns:minmax(0,1fr); justify-items:stretch;
    min-width:0; box-sizing:border-box;
    box-shadow:0 0 10px 1px rgba(55,40,84,.22),0 5px 12px rgba(55,40,84,.24) !important;
}
#advent-account-management .am-appointments article>.am-item-actions {
    grid-column:1/-1; justify-self:stretch; align-self:stretch;
    width:100%; min-width:0; max-width:100%; box-sizing:border-box;
    justify-content:flex-end; background:#f1e6f5;
}
#advent-account-management .am-popup-list.am-appointments { padding:9px 10px 13px; }
#advent-account-management .am-appointments article + article { margin-top:14px; }
#advent-account-management .am-days [data-am-day]:is(:hover,:focus-visible) {
    box-shadow:0 0 10px 1px rgba(23,50,77,.16),0 3px 10px rgba(23,50,77,.16) !important;
}
#advent-account-management .am-days [data-am-day]:focus-visible {
    outline:2px solid var(--modern-accent,#2864c5); outline-offset:-2px;
}
@media (hover:hover) {
    #advent-account-management .am-appointments article:hover {
        box-shadow:0 0 13px 2px rgba(55,40,84,.26),0 8px 18px rgba(55,40,84,.29) !important;
    }
}
@media (prefers-reduced-motion:no-preference) {
    #advent-account-management .am-days [data-am-day] { transition:transform .16s ease,box-shadow .16s ease; }
    #advent-account-management .am-days [data-am-day]:is(:hover,:focus-visible) { transform:translateY(-2px); }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
    #advent-account-management .am-appointments article { transition:transform .16s ease,box-shadow .16s ease; }
    #advent-account-management .am-appointments article:hover { transform:translateY(-4px); }
}
@media (prefers-reduced-motion:reduce) {
    #advent-account-management .am-days [data-am-day],
    #advent-account-management .am-appointments article { transform:none !important; transition:none !important; }
}

/* Saved AM records use the same blue fill as the normal row hover. */
#advent-account-management tr.am-recent-edit>td,
#advent-account-management article.am-recent-edit,
#advent-account-management .am-account-header.am-recent-edit {
 background:#f6faff!important;
}

/* Clear cards: consistent appointment layout on Dashboard, claimant details, and AM. */
html body .app>main #root article.advent-clear-appointment-card,
html body #app .live-calendar article.advent-clear-appointment-card,
html body #advent-account-management .am-appointments article.advent-clear-appointment-card {
 display:block!important;padding:0!important;margin:0!important;gap:0!important;overflow:hidden!important;
 border:1px solid #dce4ee!important;border-radius:13px!important;background:#fff!important;color:#193a59!important;
 box-shadow:0 0 9px 1px #37285425,0 4px 11px #37285424!important;
}
html body .advent-clear-appointment-card .advent-clear-appointment-body {padding:16px!important;display:grid!important;gap:11px!important}
html body .advent-clear-appointment-card .advent-clear-appointment-when {display:flex!important;align-items:center!important;gap:12px!important}
html body .advent-clear-appointment-card .advent-clear-appointment-date {display:grid!important;place-items:center!important;min-width:43px!important;padding:6px 10px!important;border-radius:9px!important;background:#eaf4fd!important;color:#205783!important;font-size:10px!important;text-transform:uppercase!important;line-height:1.2!important}
html body .advent-clear-appointment-card .advent-clear-appointment-date b {font-size:21px!important;font-weight:700!important;line-height:1.2!important}
html body .advent-clear-appointment-card time {font-size:16px!important;font-weight:700!important;color:#193a59!important}
html body .advent-clear-appointment-card .advent-clear-appointment-provider {font-size:14px!important;font-weight:700!important;color:#193a59!important;overflow-wrap:anywhere}
html body .advent-clear-appointment-card .advent-clear-appointment-provider :is(a,button) {font-size:inherit!important;font-weight:inherit!important;text-align:left!important}
html body .advent-clear-appointment-card .advent-clear-appointment-identity,
html body .advent-clear-appointment-card .advent-clear-appointment-identity .advent-upcoming-claimant-name {font-size:12px!important;color:#2864c5!important;text-align:left!important;margin:0!important;padding:0!important;min-height:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
html body .advent-clear-appointment-card .advent-clear-appointment-location {display:grid!important;gap:3px!important;font-size:12px!important;color:#607387!important;overflow-wrap:anywhere}
html body .advent-clear-appointment-card .advent-clear-appointment-location small {font-size:10px!important;font-weight:650!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:#607387!important}
html body .app>main #root article.advent-clear-appointment-card>.appointment-review-actions,
html body #app .live-calendar article.advent-clear-appointment-card>.appointment-review-actions,
html body #advent-account-management .am-appointments article.advent-clear-appointment-card>.am-item-actions {
 display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;
 width:100%!important;margin:0!important;padding:8px 11px!important;gap:6px!important;border:0!important;border-top:1px solid #e2d6e8!important;border-radius:0!important;background:#f3ecf6!important;box-sizing:border-box!important;
}
html body .app>main #root .advent-clear-appointment-card>.appointment-review-actions button,
html body #app .live-calendar .advent-clear-appointment-card>.appointment-review-actions button,
html body #advent-account-management .am-appointments .advent-clear-appointment-card>.am-item-actions button {
 font-size:11px!important;font-weight:650!important;padding:6px 5px!important;min-width:0!important;background:transparent!important;border:0!important;color:#75437f!important;box-shadow:none!important;
}
html body .advent-clear-appointment-card [data-clear-appointment-details] {margin-right:auto!important}
html body .app>main #root .advent-clear-appointment-card [data-appointment-delete-action],
html body #advent-account-management .advent-clear-appointment-card [data-am-action="delete"] {color:#ac3947!important}
html body .advent-clear-appointment-card .advent-clear-appointment-extra {padding:14px 16px!important;display:grid;gap:7px;background:#f7f9fc!important;border-top:1px solid #e2e8ef!important;font-size:12px!important;color:#607387!important;white-space:pre-wrap;overflow-wrap:anywhere}
html body .advent-clear-appointment-card .advent-clear-appointment-extra[hidden] {display:none!important}
html body .advent-clear-appointment-card .advent-clear-appointment-extra p {margin:0!important}
html body .advent-clear-appointment-card .advent-clear-appointment-extra strong {font-weight:650!important;color:#193a59!important}
html body #advent-account-management .am-popup-list.am-appointments {display:grid!important;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;align-content:start;gap:14px!important;padding:9px 10px 13px!important}

html body #app .live-calendar .calendar-appointment-scroll:has(>.advent-clear-appointment-card){display:grid;gap:14px;padding:9px 10px 13px;overflow-y:auto;align-content:start;grid-auto-rows:max-content}

/* Compact the two claimant-calendar views; keep the Dashboard name in the upper right. */
html body :is(.dashboard-appt-panel,.claimant-appointments,.live-calendar) .advent-clear-appointment-body {padding:14px!important;gap:10px!important}
html body :is(.dashboard-appt-panel,.claimant-appointments,.live-calendar) .advent-clear-appointment-date b {font-size:20px!important}
html body :is(.dashboard-appt-panel,.claimant-appointments,.live-calendar) .advent-clear-appointment-card time {font-size:15px!important}
html body :is(.dashboard-appt-panel,.claimant-appointments,.live-calendar) .advent-clear-appointment-provider {font-size:13px!important}
html body :is(.dashboard-appt-panel,.claimant-appointments,.live-calendar) .advent-clear-appointment-location,
html body :is(.dashboard-appt-panel,.claimant-appointments,.live-calendar) .advent-clear-appointment-extra {font-size:11px!important}
html body .app>main #root :is(.dashboard-appt-panel,.claimant-appointments) .advent-clear-appointment-card>.appointment-review-actions button,
html body #app .live-calendar .advent-clear-appointment-card>.appointment-review-actions button {font-size:10px!important}
html body :is(.dashboard-appt-panel,.live-calendar:not(.claimant-calendar)) .advent-clear-appointment-body {grid-template-columns:minmax(125px,.95fr) minmax(0,1.05fr)!important;align-items:start!important}
html body :is(.dashboard-appt-panel,.live-calendar:not(.claimant-calendar)) .advent-clear-appointment-when {grid-column:1!important;grid-row:1!important;gap:9px!important}
html body :is(.dashboard-appt-panel,.live-calendar:not(.claimant-calendar)) .advent-clear-appointment-provider {grid-column:1/-1!important;grid-row:2!important}
html body :is(.dashboard-appt-panel,.live-calendar:not(.claimant-calendar)) .advent-clear-appointment-location {grid-column:1/-1!important;grid-row:3!important}
html body :is(.dashboard-appt-panel,.live-calendar:not(.claimant-calendar)) .advent-clear-appointment-identity {
 grid-column:2!important;grid-row:1!important;justify-self:end!important;align-self:start!important;min-width:0!important;max-width:100%!important;
 text-align:right!important;font-size:11px!important;color:var(--modern-accent,var(--teal,#2864c5))!important;overflow-wrap:anywhere!important;
}
html body :is(.dashboard-appt-panel,.live-calendar:not(.claimant-calendar)) .advent-clear-appointment-identity :is(button,a,span) {
 color:#2864c5!important;text-align:right!important;font-size:11px!important;white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important;
}

/* Apply the Open Files blue directly to both the claimant link and its visible text. */
html body .app>main #root .dashboard-appt-panel article.advent-clear-appointment-card .advent-clear-appointment-identity .advent-upcoming-claimant-name,
html body .app>main #root .dashboard-appt-panel article.advent-clear-appointment-card .advent-clear-appointment-identity .advent-upcoming-claimant-name-text,
html body #app .live-calendar:not(.claimant-calendar) .advent-clear-appointment-identity :is(a,button,span) {
 color:#2864c5!important;
 -webkit-text-fill-color:#2864c5!important;
}

/* The same clear task cards and in-place status tabs across Account Management. */
#advent-account-management [data-am-popup="tasks"] {padding:0;background:#fff;border:1px solid #c7dff1;border-radius:14px;box-shadow:0 6px 25px #17324d30}
#advent-account-management [data-am-popup="tasks"]>.am-popup-heading {padding:15px 15px 9px;margin:0;border-radius:0;background:#eaf4fd;color:#193a59;flex:0 0 auto}
#advent-account-management [data-am-popup="tasks"]>.am-popup-heading h3 {font-size:16px;color:#193a59!important}
#advent-account-management .am-clear-task-context {padding:0 15px 12px;background:#eaf4fd;color:#607387;font-size:11px;flex:0 0 auto}
#advent-account-management .am-clear-task-toolbar {display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:9px 13px;border-bottom:1px solid #dce4ee;background:#fff;flex:0 0 auto}
#advent-account-management .am-clear-task-toolbar>.btn {font-size:11px!important;padding:5px 7px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:#607387!important;box-shadow:none!important}
#advent-account-management .am-clear-task-toolbar>.btn[aria-pressed="true"] {color:#2864b9!important;border-bottom-color:#2864b9!important;font-weight:700!important}
#advent-account-management .am-clear-task-toolbar>[data-am-action="add"] {margin-left:auto;background:#eaf4fd!important;color:#2864b9!important;border-radius:7px!important;border:1px solid #c7dff1!important}
#advent-account-management .am-task-list {display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;align-content:start;gap:12px;padding:13px!important;margin:0!important;overscroll-behavior:contain}
#advent-account-management .am-task-list article.am-clear-task {padding:0!important;margin:0!important;border:1px solid #dce4ee!important;border-radius:11px!important;background:#fff!important;color:#193a59!important;overflow:hidden;box-shadow:0 2px 6px #17324d14}
#advent-account-management .am-clear-task-body {display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;padding:13px}
#advent-account-management .am-clear-task-title {display:block;font-size:13px!important;font-weight:650!important;line-height:1.5;color:#193a59;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 6px}
#advent-account-management .am-clear-task-body>[data-am-action="toggle"] {width:23px!important;min-width:23px!important;height:23px!important;min-height:23px!important;padding:0!important;margin:2px 0 0!important;display:grid;place-items:center;border:1px solid #c9cddd!important;border-radius:6px!important;background:#fff!important;color:#2864b9!important;box-shadow:none!important;font-size:14px!important}
#advent-account-management .am-clear-task-body>[data-am-action="toggle"]>span {opacity:0}
#advent-account-management .am-clear-task-body>[data-am-action="toggle"]:is(:hover,:focus-visible)>span {opacity:1}
#advent-account-management .am-clear-task-body>[data-am-action="toggle"][aria-pressed="true"] {background:#eaf4fd!important;border-color:#2864b9!important}
#advent-account-management .am-clear-task-due {display:flex;flex-wrap:wrap;gap:2px 8px;font-size:11px;color:#64748b}
#advent-account-management .am-clear-task-overdue {color:#ac3343}
#advent-account-management .am-clear-task .am-task-account {margin-top:6px;font-size:11px;color:#2864c5;overflow-wrap:anywhere}
#advent-account-management .am-clear-task-actions {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;border-top:1px solid #c7dff1;background:#eaf4fd;padding:7px 10px}
#advent-account-management .am-clear-task-actions>div {display:flex;gap:10px;align-items:center}
#advent-account-management .am-clear-task-actions button {font-size:11px!important;padding:4px 3px!important;background:transparent!important;border:0!important;color:#2864b9!important;box-shadow:none!important}
#advent-account-management .am-clear-task-extra {padding:11px 13px;font-size:11px;color:#607387;background:#f7f9fc;line-height:1.7;border-top:1px solid #e2e8ef;overflow-wrap:anywhere}
#advent-account-management .am-clear-task-extra p {white-space:pre-wrap}
#advent-account-management .am-clear-task-bottom {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;flex:0 0 auto;padding:9px 13px;font-size:10px;color:#607387;background:#f7f9fc;border-top:1px solid #dce4ee}
#advent-account-management .am-clear-task-bottom>.btn {font-size:11px!important;padding:3px 6px!important;background:#eaf4fd!important;color:#2864b9!important;border-color:#c7dff1!important}
#advent-account-management .am-task-list article.am-clear-task.am-recent-edit {background:#f6faff!important}
@media(hover:hover) and (prefers-reduced-motion:no-preference){#advent-account-management .am-task-list .am-clear-task:hover {transform:translateY(-2px);box-shadow:0 5px 14px #17324d24}}

/* Give AM appointment/task editors separate heading, label, and field spacing. */
html body dialog#account-management-editor.am-scheduler-editor {
 padding:18px!important;box-sizing:border-box!important;overflow-y:auto!important;
}
html body dialog#account-management-editor.am-scheduler-editor>form[data-am-form] {
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;min-width:0!important;
}
html body dialog#account-management-editor.am-scheduler-editor h2 {
 margin:0!important;line-height:1.35!important;
}
html body dialog#account-management-editor.am-scheduler-editor h2+p {
 margin:0!important;line-height:1.5!important;overflow-wrap:anywhere;
}
html body dialog#account-management-editor.am-scheduler-editor .am-form-fields {
 min-width:0!important;row-gap:16px!important;column-gap:12px!important;margin:0!important;
}
html body dialog#account-management-editor.am-scheduler-editor .am-form-fields label {
 display:flex!important;flex-direction:column!important;gap:8px!important;min-width:0!important;
 margin:0!important;line-height:1.45!important;align-self:start!important;
}
html body dialog#account-management-editor.am-scheduler-editor .am-form-fields label:has([name="accountIndex"]) {
 grid-column:1/-1!important;margin-bottom:4px!important;
}
html body dialog#account-management-editor.am-scheduler-editor .am-form-fields :is(input,select,textarea) {
 width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
 margin:0!important;padding:8px 10px!important;line-height:1.4!important;
}
html body dialog#account-management-editor.am-scheduler-editor .am-form-fields :is(input,select) {
 min-height:38px!important;height:auto!important;
}
html body dialog#account-management-editor.am-scheduler-editor .am-form-fields textarea {
 min-height:64px!important;height:auto!important;
}
html body dialog#account-management-editor.am-scheduler-editor .am-appointment-date-row {
 min-width:0!important;gap:14px!important;align-items:start!important;
}
html body dialog#account-management-editor.am-scheduler-editor .am-appointment-date-fields {
 gap:16px!important;align-self:center!important;
}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="tasks"] .am-form-fields {
 grid-template-columns:minmax(0,1fr)!important;
}
html body dialog#account-management-editor.am-scheduler-editor .am-error:empty {display:none!important}
html body dialog#account-management-editor.am-scheduler-editor .am-editor-actions {
 display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:0!important;
}
@media(max-width:520px){
 html body dialog#account-management-editor.am-scheduler-editor .am-appointment-date-row {grid-template-columns:minmax(0,1fr)!important}
}

/* Keep task checkbox content and status navigation contained in their own rows. */
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-toolbar {
 position:static!important;inset:auto!important;margin:0!important;padding:9px 13px!important;
 min-height:0!important;display:flex!important;gap:6px!important;line-height:1.4!important;
}
html body #advent-account-management .am-task-list article.am-clear-task {
 display:block!important;overflow:hidden!important;height:auto!important;min-height:0!important;max-height:none!important;
}
html body #advent-account-management .am-clear-task-body {
 display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;gap:10px!important;padding:13px!important;
 min-width:0!important;box-sizing:border-box!important;align-items:start!important;
}
html body #advent-account-management .am-clear-task-body>div {min-width:0!important}
html body #advent-account-management .am-clear-task-check {overflow:hidden!important;line-height:1!important}
html body #advent-account-management .am-clear-task-check>span {display:block!important;font-size:14px!important;line-height:1!important;opacity:0}
html body #advent-account-management .am-clear-task-check[aria-pressed="true"]>span,
html body #advent-account-management .am-clear-task-check:is(:hover,:focus-visible)>span {opacity:1}
html body #advent-account-management .am-clear-task-actions {margin:0!important;min-width:0!important;box-sizing:border-box!important}
html body #advent-account-management .am-clear-task-actions>div {flex-wrap:wrap;min-width:0}

/* Light blue task-window frames and controls, with existing dimensions and behavior. */
html body .app>main #root [data-task-list-floating].advent-clear-task-window {
 border-color:#c7dff1!important;
}
html body .app>main #root [data-task-list-floating].advent-clear-task-window>.advent-upcoming-drag-heading .advent-upcoming-close,
html body #advent-account-management [data-am-popup="tasks"]>.am-popup-heading>.btn {
 background:#fff!important;color:#2864b9!important;border-color:#c7dff1!important;
}
html body .app>main #root [data-task-list-floating].advent-clear-task-window .task-window-count,
html body #advent-account-management [data-am-popup="tasks"] .am-task-count {
 background:#fff!important;color:#2864b9!important;
}

/* Give individual task rows more definition while preserving their size and lift. */
html body .app>main #root .todo-panel .advent-clear-task-window .advent-clear-task,
html body #advent-account-management .am-task-list article.am-clear-task {
 box-shadow:0 0 7px 1px #17324d26,0 4px 10px #17324d2b!important;
}
@media(hover:hover){
 html body .app>main #root .todo-panel .advent-clear-task-window .advent-clear-task:hover,
 html body #advent-account-management .am-task-list article.am-clear-task:hover {
  box-shadow:0 0 9px 2px #17324d2e,0 7px 15px #17324d35!important;
 }
}

/* Due-date text follows the task legend: today/this week gold, next week green. */
html body .app>main #root .todo-panel .advent-task-due.advent-task-due-soon,
html body .app>main #root .todo-panel .advent-task-due.advent-task-due-soon :is(time,span),
html body #advent-account-management .am-clear-task-due.am-clear-task-due-soon,
html body #advent-account-management .am-clear-task-due.am-clear-task-due-soon>span {
 color:#9a6b00!important;
}
html body .app>main #root .todo-panel .advent-task-due.advent-task-due-later,
html body .app>main #root .todo-panel .advent-task-due.advent-task-due-later :is(time,span),
html body #advent-account-management .am-clear-task-due.am-clear-task-due-later,
html body #advent-account-management .am-clear-task-due.am-clear-task-due-later>span {
 color:#21875a!important;
}

/* Keep every AM Edit control yellow, including task and appointment cards. */
html body #advent-account-management button:is([data-am-action="edit-directory"],[data-am-action="edit"],[data-am-action="reschedule"][data-am-collection="appointments"]) {
 background:#fffbea!important;
 background-image:none!important;
 border:1px solid #eee4bb!important;
 border-radius:8px!important;
 color:#67521d!important;
 padding:6px 10px!important;
}
html body #advent-account-management button:is([data-am-action="edit-directory"],[data-am-action="edit"],[data-am-action="reschedule"][data-am-collection="appointments"]):hover {
 background:#fff6d8!important;
 border-color:#e5d8a5!important;
}

/* Task action bars follow the Today/Past, This week and Next week legend. */
[data-task-footer-tone="red"]{--task-footer-fill:linear-gradient(90deg,#d93025 0%,#f7c8c3 42%,#fff1f0 100%);--task-footer-ink:#923440;--task-footer-edge:#f0cdd2}
[data-task-footer-tone="yellow"]{--task-footer-fill:linear-gradient(90deg,#e7ac16 0%,#f8e4a5 42%,#fff9e6 100%);--task-footer-ink:#785919;--task-footer-edge:#eddfac}
[data-task-footer-tone="green"]{--task-footer-fill:linear-gradient(90deg,#228a5b 0%,#bde3ce 42%,#effaf4 100%);--task-footer-ink:#236e50;--task-footer-edge:#c5e4d5}
[data-task-footer-tone="neutral"]{--task-footer-fill:linear-gradient(90deg,#d1e0ec 0%,#e4edf5 48%,#f5f9fc 100%);--task-footer-ink:#526b80;--task-footer-edge:#d5e1eb}
html body .app>main #root .todo-panel .advent-clear-task[data-task-footer-tone]>.todo-task-actions,
html body #advent-account-management .am-clear-task[data-task-footer-tone]>.am-clear-task-actions,
html body .todo-group article[data-task-footer-tone]>.actions{
 background:var(--task-footer-fill)!important;border-top-color:var(--task-footer-edge)!important;color:var(--task-footer-ink)!important;
}
html body .app>main #root .todo-panel .advent-clear-task[data-task-footer-tone]>.todo-task-actions button,
html body #advent-account-management .am-clear-task[data-task-footer-tone]>.am-clear-task-actions button:not([data-am-action="edit"]){color:var(--task-footer-ink)!important}

/* Task rows keep their action bars with the remaining actions aligned right. */
html body .app>main #root .todo-panel .advent-clear-task>.todo-task-actions,
html body #advent-account-management .am-clear-task>.am-clear-task-actions{justify-content:flex-end!important}

/* Greeting matches the Today is label blue. */
html body:not(.portal-locked) .app>main.advent-dashboard-wine>.top #advent-header-welcome:not([hidden]),
html body:not(.portal-locked) #advent-first-welcome,
html body #advent-account-management .am-welcome{color:#405f83!important;-webkit-text-fill-color:#405f83!important}

/* Blue-gradient appointment row footers only; window and button colors stay intact. */
html body .app>main #root :is(.dashboard-appt-panel,.claimant-appointments) article.upcoming-professional-card.advent-clear-appointment-card>.appointment-review-actions,
html body #app .live-calendar article.upcoming-professional-card.advent-clear-appointment-card>.appointment-review-actions,
html body #advent-account-management .am-appointments article.upcoming-professional-card.advent-clear-appointment-card>.am-item-actions{
 background:linear-gradient(90deg,#b9dcfa 0%,#cde7fc 45%,#e5f3ff 100%)!important;
 border-top-color:#bfd8ee!important;
}

/* Keep appointment actions visible at the bottom of every AM calendar card. */
html body #advent-account-management .am-appointments article.advent-clear-appointment-card>.am-appointment-row-actions{display:flex!important;visibility:visible!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;height:auto!important;min-height:38px!important;overflow:visible!important}
html body #advent-account-management .am-appointment-row-actions>.am-appointment-readonly{flex-basis:100%;font-size:11px}
html body #advent-account-management .am-appointment-row-actions>button{display:inline-flex!important;visibility:visible!important;align-items:center!important;white-space:nowrap!important}

/* Appointment actions: neutral Reschedule/Edit and consistent plum Delete. */
html body :is(.app>main #root,#app .live-calendar,#advent-account-management .am-appointments) article.upcoming-professional-card.advent-clear-appointment-card :is(.appointment-review-actions,.am-item-actions)>button:is([data-appointment-reschedule-action],[data-am-action="reschedule"],[data-action="edit-appointment"]){
 background:transparent!important;background-image:none!important;border:0!important;color:#243653!important;-webkit-text-fill-color:#243653!important;box-shadow:none!important;
}
html body :is(.app>main #root,#app .live-calendar,#advent-account-management .am-appointments) article.upcoming-professional-card.advent-clear-appointment-card :is(.appointment-review-actions,.am-item-actions)>button:is([data-appointment-delete-action],[data-am-action="delete"],[data-action="delete-appointment"]){
 background:#75437f!important;background-image:none!important;border:1px solid #75437f!important;border-radius:7px!important;color:#fff!important;-webkit-text-fill-color:#fff!important;padding:6px 10px!important;
}
html body :is(.app>main #root,#app .live-calendar,#advent-account-management .am-appointments) article.upcoming-professional-card.advent-clear-appointment-card :is(.appointment-review-actions,.am-item-actions)>button:is([data-appointment-delete-action],[data-am-action="delete"],[data-action="delete-appointment"]):hover:not(:disabled){background:#5b3065!important;border-color:#5b3065!important}

/* Delete remains an accessible action, styled as dark-red text only. */
html body :is(.app>main #root,#app .live-calendar,#advent-account-management .am-appointments) article.upcoming-professional-card.advent-clear-appointment-card :is(.appointment-review-actions,.am-item-actions)>button:is([data-appointment-delete-action],[data-am-action="delete"],[data-action="delete-appointment"]),
html body :is(.app>main #root,#app .live-calendar,#advent-account-management .am-appointments) article.upcoming-professional-card.advent-clear-appointment-card :is(.appointment-review-actions,.am-item-actions)>button:is([data-appointment-delete-action],[data-am-action="delete"],[data-action="delete-appointment"]):hover:not(:disabled){
 background:transparent!important;background-image:none!important;border:0!important;color:#8f2432!important;-webkit-text-fill-color:#8f2432!important;box-shadow:none!important;
}

/* Pronounced hover lift for upcoming appointment text actions. */
html body :is(.app>main #root,#app .live-calendar,#advent-account-management .am-appointments) article.upcoming-professional-card.advent-clear-appointment-card :is(.appointment-review-actions,.am-item-actions)>button:is([data-appointment-reschedule-action],[data-appointment-delete-action],[data-am-action="reschedule"],[data-am-action="delete"],[data-action="edit-appointment"],[data-action="delete-appointment"]):not(:disabled){transition:transform .16s ease,text-shadow .16s ease!important;transform:translateY(0);}
@media(hover:hover){
html body :is(.app>main #root,#app .live-calendar,#advent-account-management .am-appointments) article.upcoming-professional-card.advent-clear-appointment-card :is(.appointment-review-actions,.am-item-actions)>button:is([data-appointment-reschedule-action],[data-appointment-delete-action],[data-am-action="reschedule"],[data-am-action="delete"],[data-action="edit-appointment"],[data-action="delete-appointment"]):not(:disabled):hover{transform:translateY(-4px)!important;text-shadow:0 3px 5px #17324d40!important;}
}
html body :is(.app>main #root,#app .live-calendar,#advent-account-management .am-appointments) article.upcoming-professional-card.advent-clear-appointment-card :is(.appointment-review-actions,.am-item-actions)>button:is([data-appointment-reschedule-action],[data-appointment-delete-action],[data-am-action="reschedule"],[data-am-action="delete"],[data-action="edit-appointment"],[data-action="delete-appointment"]):not(:disabled):focus-visible{transform:translateY(-4px)!important;text-shadow:0 3px 5px #17324d40!important;}
@media(prefers-reduced-motion:reduce){
html body :is(.app>main #root,#app .live-calendar,#advent-account-management .am-appointments) article.upcoming-professional-card.advent-clear-appointment-card :is(.appointment-review-actions,.am-item-actions)>button:is([data-appointment-reschedule-action],[data-appointment-delete-action],[data-am-action="reschedule"],[data-am-action="delete"],[data-action="edit-appointment"],[data-action="delete-appointment"]):not(:disabled){transition:none!important;}
html body :is(.app>main #root,#app .live-calendar,#advent-account-management .am-appointments) article.upcoming-professional-card.advent-clear-appointment-card :is(.appointment-review-actions,.am-item-actions)>button:is([data-appointment-reschedule-action],[data-appointment-delete-action],[data-am-action="reschedule"],[data-am-action="delete"],[data-action="edit-appointment"],[data-action="delete-appointment"]):not(:disabled):is(:hover,:focus-visible){transform:none!important;}
}

/* Override legacy filled Delete rules in every upcoming appointment footer. */
html body :is(.app>main #root,#app .live-calendar,#advent-account-management .am-appointments) article.appointment-item.upcoming-professional-card.advent-clear-appointment-card :is(.appointment-review-actions,.am-item-actions)>button.btn.secondary:is([data-appointment-delete-action],[data-am-action="delete"],[data-action="delete-appointment"]),
html body :is(.app>main #root,#app .live-calendar,#advent-account-management .am-appointments) article.appointment-item.upcoming-professional-card.advent-clear-appointment-card :is(.appointment-review-actions,.am-item-actions)>button.btn.secondary:is([data-appointment-delete-action],[data-am-action="delete"],[data-action="delete-appointment"]):is(:hover,:focus-visible,:active){
 background:transparent!important;background-color:transparent!important;background-image:none!important;
 border:0!important;border-color:transparent!important;box-shadow:none!important;
 color:#8f2432!important;-webkit-text-fill-color:#8f2432!important;
 padding:6px 5px!important;border-radius:0!important;
}

/* Lift the appointment name without changing its color or navigation. */
html body article.advent-clear-appointment-card>.advent-clear-appointment-body>.advent-clear-appointment-identity{transition:transform .16s ease,text-shadow .16s ease!important;}
@media(hover:hover){
html body article.advent-clear-appointment-card>.advent-clear-appointment-body>.advent-clear-appointment-identity:hover{transform:translateY(-4px)!important;text-shadow:0 3px 5px #17324d40!important;}
}
html body article.advent-clear-appointment-card>.advent-clear-appointment-body>.advent-clear-appointment-identity:focus-within{transform:translateY(-4px)!important;text-shadow:0 3px 5px #17324d40!important;}
@media(prefers-reduced-motion:reduce){
html body article.advent-clear-appointment-card>.advent-clear-appointment-body>.advent-clear-appointment-identity{transition:none!important;}
html body article.advent-clear-appointment-card>.advent-clear-appointment-body>.advent-clear-appointment-identity:is(:hover,:focus-within){transform:none!important;}
}

/* Weekly Overview Appts and Tasks headers match appointment footer gradients. */
html body .app>main.advent-dashboard-wine #root .advent-dashboard-attention-summary .advent-attention-group>.advent-attention-group-label,
html body #advent-account-management .am-week-overview .advent-attention-group>.advent-attention-group-label{
 background:linear-gradient(90deg,#d4eafa 0%,#deeffc 45%,#e8f5ff 100%)!important;
}

/* AM moves summary and greeting outside its host; style their mounted locations. */
html body .am-directory-metrics .am-week-overview .advent-attention-group>.advent-attention-group-label{
 background:linear-gradient(90deg,#d4eafa 0%,#deeffc 45%,#e8f5ff 100%)!important;
}
html body .am-dashboard-toolbar>.am-welcome{color:#405f83!important;-webkit-text-fill-color:#405f83!important}

/* Compact, quiet appointment-deletion confirmation. */
html body dialog.advent-appointment-discard.advent-appointment-delete-confirm{
 width:min(280px,calc(100vw - 32px))!important;padding:16px!important;border-radius:12px!important;
 border:1px solid #d9e2ec!important;background:#fff!important;color:#243653!important;
 box-shadow:0 5px 20px #17324d26!important;
}
html body dialog.advent-appointment-delete-confirm>h2{font:600 14px/1.5 Arial,sans-serif!important;color:#243653!important;text-align:left!important;margin:0 0 14px!important;overflow-wrap:anywhere!important}
html body dialog.advent-appointment-delete-confirm>form{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;margin:0!important}
html body dialog.advent-appointment-delete-confirm>form>button{font:600 12px/1.35 Arial,sans-serif!important;padding:7px 12px!important;min-height:30px!important;border-radius:7px!important}

/* Open and Completed task windows match the Upcoming Appointments plum frame. */
html body .app>main #root [data-task-list-floating].advent-clear-task-window,
html body #advent-account-management [data-am-popup="tasks"]{background:#fff!important;border-color:#5b3065!important}
html body .app>main #root [data-task-list-floating].advent-clear-task-window>.advent-upcoming-drag-heading,
html body #advent-account-management [data-am-popup="tasks"]>.am-popup-heading{background:linear-gradient(110deg,#fff,#f6effa)!important;color:#38254a!important}
html body #advent-account-management [data-am-popup="tasks"]>.am-popup-heading h3{color:#38254a!important}
html body .app>main #root [data-task-list-floating].advent-clear-task-window>.advent-upcoming-drag-heading .advent-upcoming-close,
html body #advent-account-management [data-am-popup="tasks"]>.am-popup-heading>.btn{background:#f1e6f5!important;color:#542b60!important;border-color:#d8c5df!important}
html body .app>main #root [data-task-list-floating].advent-clear-task-window .task-window-count,
html body #advent-account-management [data-am-popup="tasks"] .am-task-count{background:#fff!important;color:#75437f!important}

/* Carry the task-window plum gradient through its context and Add Task control. */
html body .app>main #root [data-task-list-floating].advent-clear-task-window>.advent-clear-task-context,
html body #advent-account-management [data-am-popup="tasks"]>.am-clear-task-context{
 background:linear-gradient(110deg,#fff,#f6effa)!important;color:#67516f!important;
}
html body .app>main #root .advent-clear-task-toolbar>.advent-clear-task-add,
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-toolbar>[data-am-action="add"]{
 background:linear-gradient(110deg,#f8f1fb,#ecdef3)!important;color:#542b60!important;border-color:#d8c5df!important;
}

/* AM Upcoming Appointments: roughly one fifth smaller, retaining measured 1.5 rows. */
html body #advent-account-management [data-am-popup="appointments"]{width:min(17.6rem,calc(100vw - 16px))!important;padding:3px 4px 6px!important}
html body #advent-account-management [data-am-popup="appointments"]>.am-popup-heading{padding:5px!important;gap:6px!important}
html body #advent-account-management [data-am-popup="appointments"]>.am-popup-heading h3{font-size:12px!important}
html body #advent-account-management [data-am-popup="appointments"]>.am-popup-heading>.btn{font-size:11px!important;padding:4px 7px!important}
html body #advent-account-management .am-popup-list.am-appointments{gap:11px!important;padding:7px 8px 10px!important}
html body #advent-account-management .am-appointments article.advent-clear-appointment-card{border-radius:10px!important}
html body #advent-account-management .am-appointments .advent-clear-appointment-body{padding:13px!important;gap:9px!important}
html body #advent-account-management .am-appointments .advent-clear-appointment-when{gap:9px!important}
html body #advent-account-management .am-appointments .advent-clear-appointment-date{min-width:34px!important;padding:5px 8px!important;font-size:9px!important;border-radius:7px!important}
html body #advent-account-management .am-appointments .advent-clear-appointment-date b{font-size:17px!important}
html body #advent-account-management .am-appointments .advent-clear-appointment-card time{font-size:13px!important}
html body #advent-account-management .am-appointments .advent-clear-appointment-provider{font-size:11px!important}
html body #advent-account-management .am-appointments .advent-clear-appointment-identity,
html body #advent-account-management .am-appointments .advent-clear-appointment-location{font-size:11px!important}
html body #advent-account-management .am-appointments .advent-clear-appointment-location small{font-size:9px!important}
html body #advent-account-management .am-appointments article.advent-clear-appointment-card>.am-item-actions{padding:6px 9px!important;gap:5px!important;min-height:30px!important}
html body #advent-account-management .am-appointments article.advent-clear-appointment-card>.am-item-actions>button{font-size:10px!important}

/* AM task windows and their rows: approximately one fifth more compact. */
html body #advent-account-management [data-am-popup="tasks"]{border-radius:11px!important}
html body #advent-account-management [data-am-popup="tasks"]>.am-popup-heading{padding:12px 12px 7px!important}
html body #advent-account-management [data-am-popup="tasks"]>.am-popup-heading h3{font-size:13px!important}
html body #advent-account-management [data-am-popup="tasks"]>.am-popup-heading>.btn{font-size:10px!important;padding:4px 7px!important}
html body #advent-account-management [data-am-popup="tasks"]>.am-clear-task-context{padding:0 12px 10px!important;font-size:10px!important}
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-toolbar{padding:7px 10px!important;gap:5px!important}
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-toolbar>.btn{font-size:10px!important;padding:4px 5px!important}
html body #advent-account-management [data-am-popup="tasks"] .am-task-list{padding:10px!important;gap:10px!important}
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-body{grid-template-columns:19px minmax(0,1fr)!important;gap:8px!important;padding:10px!important}
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-title{font-size:11px!important;margin-bottom:5px!important}
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-body>[data-am-action="toggle"]{width:19px!important;min-width:19px!important;height:19px!important;min-height:19px!important;border-radius:5px!important}
html body #advent-account-management [data-am-popup="tasks"] :is(.am-clear-task-due,.am-task-account){font-size:10px!important}
html body #advent-account-management [data-am-popup="tasks"] .am-task-account{margin-top:5px!important}
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-actions{padding:6px 8px!important;gap:5px!important}
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-actions button{font-size:10px!important;padding:4px 8px!important}
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-bottom{padding:7px 10px!important;font-size:10px!important}

/* Dashboard and claimant details: about one seventh less appointment-row height. */
html body .app>main #root :is(.dashboard-appt-panel,.claimant-appointments) article.appointment-item.upcoming-professional-card.advent-clear-appointment-card>.advent-clear-appointment-body,
html body #app .live-calendar article.appointment-item.upcoming-professional-card.advent-clear-appointment-card>.advent-clear-appointment-body{padding:12px 14px!important;gap:8px!important}
html body .app>main #root :is(.dashboard-appt-panel,.claimant-appointments) article.appointment-item.upcoming-professional-card.advent-clear-appointment-card .advent-clear-appointment-when,
html body #app .live-calendar article.appointment-item.upcoming-professional-card.advent-clear-appointment-card .advent-clear-appointment-when{gap:10px!important}
html body .app>main #root :is(.dashboard-appt-panel,.claimant-appointments) article.appointment-item.upcoming-professional-card.advent-clear-appointment-card .advent-clear-appointment-date,
html body #app .live-calendar article.appointment-item.upcoming-professional-card.advent-clear-appointment-card .advent-clear-appointment-date{padding:5px 9px!important;font-size:9px!important}
html body .app>main #root :is(.dashboard-appt-panel,.claimant-appointments) article.appointment-item.upcoming-professional-card.advent-clear-appointment-card .advent-clear-appointment-date b,
html body #app .live-calendar article.appointment-item.upcoming-professional-card.advent-clear-appointment-card .advent-clear-appointment-date b{font-size:17px!important}
html body .app>main #root :is(.dashboard-appt-panel,.claimant-appointments) article.appointment-item.upcoming-professional-card.advent-clear-appointment-card time,
html body #app .live-calendar article.appointment-item.upcoming-professional-card.advent-clear-appointment-card time{font-size:13px!important}
html body .app>main #root :is(.dashboard-appt-panel,.claimant-appointments) article.appointment-item.upcoming-professional-card.advent-clear-appointment-card .advent-clear-appointment-provider,
html body #app .live-calendar article.appointment-item.upcoming-professional-card.advent-clear-appointment-card .advent-clear-appointment-provider{font-size:12px!important;line-height:1.4!important}
html body .app>main #root :is(.dashboard-appt-panel,.claimant-appointments) article.appointment-item.upcoming-professional-card.advent-clear-appointment-card .advent-clear-appointment-location,
html body #app .live-calendar article.appointment-item.upcoming-professional-card.advent-clear-appointment-card .advent-clear-appointment-location{font-size:11px!important;line-height:1.4!important;gap:2px!important}
html body .app>main #root :is(.dashboard-appt-panel,.claimant-appointments) article.appointment-item.upcoming-professional-card.advent-clear-appointment-card .advent-clear-appointment-location small,
html body #app .live-calendar article.appointment-item.upcoming-professional-card.advent-clear-appointment-card .advent-clear-appointment-location small{font-size:9px!important}
html body .app>main #root :is(.dashboard-appt-panel,.claimant-appointments) article.appointment-item.upcoming-professional-card.advent-clear-appointment-card>.appointment-review-actions,
html body #app .live-calendar article.appointment-item.upcoming-professional-card.advent-clear-appointment-card>.appointment-review-actions{padding:6px 11px!important}
html body .app>main #root :is(.dashboard-appt-panel,.claimant-appointments) article.appointment-item.upcoming-professional-card.advent-clear-appointment-card>.appointment-review-actions>button.btn.secondary,
html body #app .live-calendar article.appointment-item.upcoming-professional-card.advent-clear-appointment-card>.appointment-review-actions>button.btn.secondary{font-size:10px!important;line-height:1.3!important;padding:5px!important}

/* AM account names sit at the upper-right of task and appointment rows. */
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-body>div:has(>.am-task-account){display:grid!important;grid-template-columns:minmax(0,1fr)!important}
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-body .am-task-account{grid-row:1!important;justify-self:end!important;text-align:right!important;margin:0 0 5px!important;max-width:100%!important;overflow-wrap:anywhere!important}
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-body>div:has(>.am-task-account)>.am-clear-task-title{grid-row:2!important}
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-body>div:has(>.am-task-account)>.am-clear-task-due{grid-row:3!important}
html body #advent-account-management .am-appointments .advent-clear-appointment-body:has(>.advent-clear-appointment-identity){grid-template-columns:minmax(0,1fr)!important}
html body #advent-account-management .am-appointments .advent-clear-appointment-body>.advent-clear-appointment-identity{grid-row:1!important;grid-column:1!important;justify-self:end!important;align-self:start!important;text-align:right!important;margin:0!important;max-width:100%!important;overflow-wrap:anywhere!important}
html body #advent-account-management .am-appointments .advent-clear-appointment-body:has(>.advent-clear-appointment-identity)>.advent-clear-appointment-when{grid-row:2!important;grid-column:1!important}
html body #advent-account-management .am-appointments .advent-clear-appointment-body:has(>.advent-clear-appointment-identity)>.advent-clear-appointment-provider{grid-row:3!important;grid-column:1!important}
html body #advent-account-management .am-appointments .advent-clear-appointment-body:has(>.advent-clear-appointment-identity)>.advent-clear-appointment-location{grid-row:4!important;grid-column:1!important}

/* Task-row text matches corresponding Upcoming Appointment text sizes. */
html body .app>main #root .todo-panel .advent-clear-task .todo-task-title{font-size:12px!important}
html body .app>main #root .todo-panel .advent-clear-task .advent-task-due{font-size:11px!important}
html body .app>main #root .todo-panel .advent-clear-task .task-claimant-name{font-size:11px!important}
html body .app>main #root .todo-panel .advent-clear-task>.todo-task-actions button{font-size:10px!important}
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-title{font-size:11px!important}
html body #advent-account-management [data-am-popup="tasks"] :is(.am-clear-task-due,.am-task-account){font-size:11px!important}
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task-actions button{font-size:10px!important}

/* Schedule names open the matching AM account using the existing directory action. */
html body #advent-account-management :is(.am-task-account,.advent-clear-appointment-identity)>.am-schedule-account-link{
 display:inline!important;max-width:100%!important;padding:0!important;margin:0!important;
 border:0!important;background:transparent!important;color:#2864c5!important;-webkit-text-fill-color:#2864c5!important;
 font-size:inherit!important;font-weight:650!important;line-height:inherit!important;text-align:right!important;
 white-space:normal!important;overflow-wrap:anywhere!important;text-decoration:underline!important;box-shadow:none!important;
}

/* Carrier and Employer/Client search starts at the same left inset as Claimants. */
html body .app>main #root :is(.advent-carrier-directory,.advent-employer-directory)>.advent-directory-tools{margin-left:0!important;margin-right:0!important;width:100%!important;box-sizing:border-box!important;justify-content:space-between!important;flex-wrap:wrap!important}
html body .app>main #root :is(.advent-carrier-directory,.advent-employer-directory)>.advent-directory-tools>[data-directory-add-new]{margin-left:auto!important}

/* Add/Edit Appointment windows: 1.5 cm narrower, with fields fitting their columns. */
html body dialog#appointmentReviewDialog{width:min(calc(460px - 1.5cm),calc(100vw - 32px))!important;min-width:0!important;box-sizing:border-box!important}
html body dialog#appointmentReviewDialog.appointment-provider-expanded{width:min(calc(920px - 1.5cm),calc(100vw - 32px))!important}
html body dialog#appointmentReviewDialog #appointmentReviewEditForm{min-width:0!important}
html body dialog#appointmentReviewDialog #appointmentReviewEditForm label{min-width:0!important;max-width:100%!important;font-size:11px!important}
html body dialog#appointmentReviewDialog #appointmentReviewEditForm :is(input,select,textarea){min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;font-size:12px!important}
html body dialog#appointmentReviewDialog .advent-appointment-date-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important;gap:12px!important}
html body dialog#appointmentReviewDialog .advent-mini-date-picker{padding:8px!important;min-width:0!important}
html body dialog#appointmentReviewDialog .mini-date-heading{gap:4px!important;font-size:11px!important}
html body dialog#appointmentReviewDialog .mini-date-heading button{padding:4px!important}
html body dialog#appointmentReviewDialog .mini-date-grid{font-size:11px!important;gap:2px!important}
html body dialog#appointmentReviewDialog :is(.advent-appointment-provider-search,.advent-appointment-location-controls){min-width:0!important;max-width:100%!important}
html body dialog#appointmentReviewDialog .appointment-review-actions{flex-wrap:wrap!important}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="appointments"]{width:min(calc(25rem - 1.5cm),calc(100vw - 16px))!important;min-width:0!important;box-sizing:border-box!important}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="appointments"] .am-form-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:10px!important}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="appointments"] .am-form-fields label{min-width:0!important;max-width:100%!important;font-size:12px!important}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="appointments"] :is(input,select,textarea){min-width:0!important;max-width:100%!important;width:100%!important;font-size:12px!important;box-sizing:border-box!important}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="appointments"] .am-appointment-date-row{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)!important;gap:10px!important}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="appointments"] .am-editor-actions{flex-wrap:wrap!important}
@media(max-width:380px){
 html body dialog#appointmentReviewDialog .advent-appointment-date-row,
 html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="appointments"] :is(.am-form-fields,.am-appointment-date-row){grid-template-columns:minmax(0,1fr)!important}
}

/* Add/Edit Task windows: 1.5 cm narrower with comfortably fitted fields. */
html body dialog:is(#dashboardTaskModal,#claimantTaskModal,#editTodoDialog){width:min(calc(375px - 1.5cm),calc(100vw - 32px))!important;min-width:0!important;box-sizing:border-box!important}
html body dialog:is(#dashboardTaskModal,#claimantTaskModal,#editTodoDialog)>.task-modal-content{min-width:0!important;box-sizing:border-box!important}
html body dialog:is(#dashboardTaskModal,#claimantTaskModal,#editTodoDialog) .task-modal-content>label{min-width:0!important;max-width:100%!important;font-size:11px!important}
html body dialog:is(#dashboardTaskModal,#claimantTaskModal,#editTodoDialog) .task-modal-content :is(input:not([type="hidden"]):not([type="checkbox"]),select,textarea){width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;font-size:12px!important}
html body dialog:is(#dashboardTaskModal,#claimantTaskModal,#editTodoDialog) .task-modal-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="tasks"]{width:min(calc(25rem - 1.5cm),calc(100vw - 16px))!important;min-width:0!important;box-sizing:border-box!important}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="tasks"] .am-form-fields{grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="tasks"] .am-form-fields label{font-size:12px!important;min-width:0!important;max-width:100%!important}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="tasks"] :is(input:not([type="checkbox"]),select,textarea){width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;font-size:12px!important}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="tasks"] .am-editor-actions{flex-wrap:wrap!important}

/* Keep the chosen appointment day solid blue, including while hovered or focused. */
html body dialog#appointmentReviewDialog .mini-date-grid>button:is(.selected,[aria-pressed="true"]),
html body dialog#appointmentReviewDialog .mini-date-grid>button:is(.selected,[aria-pressed="true"]):is(:hover,:focus,:active),
html body dialog#account-management-editor[data-am-editor="appointments"] .am-picker-grid>button[aria-pressed="true"],
html body dialog#account-management-editor[data-am-editor="appointments"] .am-picker-grid>button[aria-pressed="true"]:is(:hover,:focus,:active),
html body dialog#editor .appointment-picker-row .mini-grid>button.selected,
html body dialog#editor .appointment-picker-row .mini-grid>button.selected:is(:hover,:focus,:active){
 background:#2864c5!important;background-color:#2864c5!important;background-image:none!important;
 color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#2864c5!important;
}

/* Shared appointment delete/discard confirmation: small pale-yellow centered dialog. */
html body dialog.advent-appointment-discard.advent-appointment-delete-confirm{
 position:fixed!important;inset:0!important;margin:auto!important;width:min(280px,calc(100vw - 32px))!important;
 height:max-content!important;max-height:calc(100dvh - 32px)!important;box-sizing:border-box!important;
 padding:18px!important;background:#fff9df!important;border:1px solid #eedfa6!important;border-radius:12px!important;
 color:#243653!important;box-shadow:0 6px 24px #17324d30!important;
}
html body dialog.advent-appointment-discard.advent-appointment-delete-confirm>h2{font:600 14px/1.5 Arial,sans-serif!important;margin:0 0 14px!important;text-align:center!important;color:#243653!important}
html body dialog.advent-appointment-discard.advent-appointment-delete-confirm>form{display:flex!important;justify-content:center!important;gap:8px!important}
html body dialog.advent-appointment-discard.advent-appointment-delete-confirm>form>button{font:600 12px/1.35 Arial,sans-serif!important;padding:7px 12px!important;border-radius:7px!important}

/* AM Open/Completed task Edit matches the Dashboard's plain text action. */
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task .am-clear-task-actions button[data-am-action="edit"],
html body #advent-account-management [data-am-popup="tasks"] .am-clear-task .am-clear-task-actions button[data-am-action="edit"]:is(:hover,:focus-visible,:active){
 background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;color:var(--task-footer-ink,#526b80)!important;-webkit-text-fill-color:var(--task-footer-ink,#526b80)!important;
 padding:4px 3px!important;
}

/* AM task account names lift on hover and keyboard focus. */
html body #advent-account-management [data-am-popup="tasks"] .am-task-account>.am-schedule-account-link{display:inline-block!important;transition:transform .16s ease,text-shadow .16s ease!important}
@media(hover:hover){
 html body #advent-account-management [data-am-popup="tasks"] .am-task-account>.am-schedule-account-link:hover{transform:translateY(-4px)!important;text-shadow:0 3px 5px #17324d40!important}
}
html body #advent-account-management [data-am-popup="tasks"] .am-task-account>.am-schedule-account-link:focus-visible{transform:translateY(-4px)!important;text-shadow:0 3px 5px #17324d40!important}
@media(prefers-reduced-motion:reduce){
 html body #advent-account-management [data-am-popup="tasks"] .am-task-account>.am-schedule-account-link{transition:none!important}
 html body #advent-account-management [data-am-popup="tasks"] .am-task-account>.am-schedule-account-link:is(:hover,:focus-visible){transform:none!important}
}

/* Edit Account follows the Employer/Client or Insurance Carrier label by 1.5 cm. */
html body #advent-account-management .am-account-header .am-account-type-line{display:flex;align-items:center;flex-wrap:wrap;column-gap:1.5cm;row-gap:6px;min-width:0}
html body #advent-account-management .am-account-header .am-account-type-line>button[data-am-action="edit-directory"][data-am-value="current"],
html body #advent-account-management .am-account-header .am-account-type-line>button[data-am-action="edit-directory"][data-am-value="current"]:is(:hover,:focus-visible,:active){background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#2864c5!important;-webkit-text-fill-color:#2864c5!important;margin:0!important;padding:0!important;white-space:nowrap!important}

/* AM Activity Log note editing and left-aligned mileage. */
html body #advent-account-management .am-activity-scroll td.am-miles{text-align:left!important}
html body #advent-account-management .am-note>.am-note-display{white-space:pre-wrap;margin:0;overflow-wrap:anywhere}
html body #advent-account-management .am-note>.am-note-display[data-am-note-edit][tabindex]{cursor:text}

/* Give appointment calendars 0.5 cm from the adjacent date/time column. */
html body dialog#appointmentReviewDialog .advent-appointment-date-row{
 grid-template-columns:minmax(0,calc((100% - 12px) * 6 / 11 + .5cm)) minmax(0,1fr)!important;
}
html body dialog#appointmentReviewDialog .mini-date-heading>button[data-mini-month]{font-size:15px!important;line-height:1!important}
html body dialog#appointmentReviewDialog .advent-appointment-date-time{min-width:0!important}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="appointments"] .am-appointment-date-row{
 grid-template-columns:minmax(0,calc((100% - 10px) * 13 / 23 + .5cm)) minmax(0,1fr)!important;
}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="appointments"] .am-picker-month>button[data-picker-month]{font-size:16px!important;line-height:1!important}
html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="appointments"] .am-appointment-date-fields :is(input[type="date"],input[type="time"]){font-size:11px!important;padding-inline:6px!important}
@media(max-width:420px){
 html body dialog#appointmentReviewDialog #appointmentReviewEditForm .advent-appointment-date-time :is(input[type="date"],input[type="time"]){font-size:11px!important;padding-inline:6px!important}
}
@media(max-width:380px){
 html body dialog#appointmentReviewDialog .advent-appointment-date-row,
 html body dialog#account-management-editor.am-scheduler-editor[data-am-editor="appointments"] .am-appointment-date-row{grid-template-columns:minmax(0,1fr)!important}
}

/* Appointment provider choices use clear blue; saved addresses highlight only on hover. */
html body .advent-appointment-provider-options[aria-label="Providers and clinics"]>button[aria-current="true"]{
 background:#e5f2fc!important;color:#17365d!important;border-color:#bfdcf1!important;
}
html body .advent-appointment-provider-options[aria-label="Saved addresses"]>button:is([aria-current="true"],:focus,:active){
 background:#fff!important;color:#243653!important;border-color:#e3dce9!important;
 transform:none!important;box-shadow:0 2px 4px rgba(35,54,83,.13)!important;
}
html body .advent-appointment-provider-options:is([aria-label="Providers and clinics"],[aria-label="Saved addresses"])>button{
 position:relative;transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease!important;
}
html body .advent-appointment-provider-options[aria-label="Providers and clinics"]>button:is(:hover,:focus-visible),
html body .advent-appointment-provider-options[aria-label="Saved addresses"]>button:hover{
 z-index:2!important;transform:translateY(-4px)!important;background:#e5f2fc!important;
 color:#17365d!important;border-color:#bfdcf1!important;box-shadow:0 6px 10px rgba(35,74,112,.25)!important;
}
html body .advent-appointment-provider-options[aria-label="Saved addresses"]>button:focus-visible{
 outline:2px solid #79b7e5!important;outline-offset:-2px!important;
}
html body .advent-appointment-location-controls>.advent-appointment-address-toggle,
html body .advent-appointment-location-controls>.advent-appointment-address-toggle:is(:focus,:active){
 background:#fff!important;background-image:none!important;color:#243653!important;
 transform:none!important;box-shadow:none!important;border-color:#d4dfeb!important;
 transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease!important;
}
html body .advent-appointment-location-controls>.advent-appointment-address-toggle:hover{
 background:#e5f2fc!important;color:#17365d!important;transform:translateY(-3px)!important;
 border-color:#bfdcf1!important;box-shadow:0 5px 9px rgba(35,74,112,.22)!important;
}
html body .advent-appointment-location-controls>input[name="location"]:hover{background:#e5f2fc!important}
html body .advent-appointment-location-controls>input[name="location"]:focus:not(:hover){background:#fff!important}
@media(prefers-reduced-motion:reduce){
 html body .advent-appointment-provider-options:is([aria-label="Providers and clinics"],[aria-label="Saved addresses"])>button:is(:hover,:focus-visible,[aria-current="true"],:focus,:active),
 html body .advent-appointment-location-controls>.advent-appointment-address-toggle:is(:hover,:focus-visible,:focus,:active){transition:none!important;transform:none!important}
}

/* Stable appointment hover targets: elevation changes without moving the hit area. */
html body :is(dialog#appointmentReviewDialog,dialog#account-management-editor,dialog#editor,#dashboardNewAppointmentForm,#appointmentForm)
 :is(.advent-appointment-provider-search>button,.advent-appointment-address-toggle,.advent-appointment-provider-options>button),
html body :is(dialog#appointmentReviewDialog,dialog#account-management-editor,dialog#editor,#dashboardNewAppointmentForm,#appointmentForm)
 :is(.advent-appointment-provider-search>button,.advent-appointment-address-toggle,.advent-appointment-provider-options>button):is(:hover,:focus,:focus-visible,:active,[aria-expanded="true"]){
 transform:none!important;translate:none!important;scale:none!important;
 transition:box-shadow .16s ease,background-color .16s ease,border-color .16s ease!important;
}
html body :is(dialog#appointmentReviewDialog,dialog#account-management-editor,dialog#editor,#dashboardNewAppointmentForm,#appointmentForm)
 :is(.advent-appointment-provider-search>button,.advent-appointment-address-toggle,.advent-appointment-provider-options>button):hover{
 box-shadow:0 5px 10px rgba(35,74,112,.25)!important;
}
@media(prefers-reduced-motion:reduce){
 html body :is(dialog#appointmentReviewDialog,dialog#account-management-editor,dialog#editor,#dashboardNewAppointmentForm,#appointmentForm)
 :is(.advent-appointment-provider-search>button,.advent-appointment-address-toggle,.advent-appointment-provider-options>button):is(:hover,:focus,:focus-visible,:active,[aria-expanded="true"]){transition:none!important}
}

/* Forward hover grows around the original row, keeping its pointer area covered. */
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 html body :is(dialog#appointmentReviewDialog,dialog#account-management-editor,dialog#editor,#dashboardNewAppointmentForm,#appointmentForm)
  .advent-appointment-provider-options:is([aria-label="Providers and clinics"],[aria-label="Saved addresses"])>button{
  transform-origin:center center!important;
  transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease!important;
 }
 html body :is(dialog#appointmentReviewDialog,dialog#account-management-editor,dialog#editor,#dashboardNewAppointmentForm,#appointmentForm)
  .advent-appointment-provider-options:is([aria-label="Providers and clinics"],[aria-label="Saved addresses"])>button:hover{
  transform:scale(1.015)!important;translate:none!important;z-index:3!important;
  background:#e5f2fc!important;color:#17365d!important;border-color:#bfdcf1!important;
  box-shadow:0 5px 10px rgba(35,74,112,.25)!important;
 }
}

/* Selection confirmation belongs to the clicked list row, not the form field. */
html body :is(dialog#appointmentReviewDialog,dialog#account-management-editor,dialog#editor,#dashboardNewAppointmentForm,#appointmentForm)
 .advent-appointment-provider-options:is([aria-label="Providers and clinics"],[aria-label="Saved addresses"])>button.advent-appointment-option-confirmed,
html body :is(dialog#appointmentReviewDialog,dialog#account-management-editor,dialog#editor,#dashboardNewAppointmentForm,#appointmentForm)
 .advent-appointment-provider-options:is([aria-label="Providers and clinics"],[aria-label="Saved addresses"])>button.advent-appointment-option-confirmed:is(:hover,:focus,:focus-visible,:active){
 background:#17365d!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 border-color:#17365d!important;transform:none!important;translate:none!important;scale:none!important;
 box-shadow:0 3px 8px rgba(23,54,93,.28)!important;transition:none!important;
}

/* Claimant Monthly Reports and Documents: four-sided elevation and forward hover. */
html body .app>main #root .claimant-report-attachments .report-attachment-card,
html body #app .report-attachments tbody>tr{
 position:relative;box-shadow:0 0 5px 1px rgba(23,50,77,.10),0 2px 4px rgba(23,50,77,.10)!important;
 transform-origin:center center!important;transition:transform .16s ease,box-shadow .16s ease!important;
}
/* Documents retain a lighter resting shadow than Monthly Reports. */
html body .app>main #root .claimant-documents-panel table tbody>tr,
html body #app .panel:has(>.panel-header>.document-naming-hint) tbody>tr{
 box-shadow:0 0 3px rgba(23,50,77,.07),0 1px 3px rgba(23,50,77,.07)!important;
 transform:none!important;translate:none!important;scale:none!important;animation:none!important;transition:none!important;
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 html body .app>main #root .claimant-report-attachments .report-attachment-card:is(:hover,:focus-within),
 html body #app .report-attachments tbody>tr:is(:hover,:focus-within){
  transform:scale(1.012)!important;z-index:2!important;
  box-shadow:0 0 7px 1px rgba(23,50,77,.14),0 3px 7px rgba(23,50,77,.15)!important;
 }
 html body .app>main #root .claimant-documents-panel table tbody>tr:is(:hover,:focus-within),
 html body #app .panel:has(>.panel-header>.document-naming-hint) tbody>tr:is(:hover,:focus-within){
  transform:none!important;translate:none!important;scale:none!important;animation:none!important;transition:none!important;
  box-shadow:0 0 3px rgba(23,50,77,.07),0 1px 3px rgba(23,50,77,.07)!important;
 }
}
html body .app>main #root .claimant-report-attachments .report-attachment-card.advent-report-download-feedback,
html body #app .report-attachments tbody>tr.advent-report-download-feedback,
html body #app .report-attachments tbody>tr.advent-report-download-feedback>td{
 background:#17365d!important;color:#fff!important;transform:none!important;
}
html body .app>main #root .claimant-report-attachments .report-attachment-card.advent-report-download-feedback>.doc-name-download,
html body #app .report-attachments .advent-report-download-feedback button[data-action="download-doc"]{
 background:transparent!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}
@media(prefers-reduced-motion:reduce){
 html body .app>main #root .claimant-report-attachments .report-attachment-card,
 html body #app .report-attachments tbody>tr{transition:none!important;transform:none!important}
}

/* Pale-yellow document action windows centered in the viewport. */
html body dialog.advent-document-action-dialog{
 position:fixed!important;inset:0!important;margin:auto!important;box-sizing:border-box!important;
 width:min(340px,calc(100vw - 32px))!important;height:max-content!important;max-height:calc(100dvh - 32px)!important;
 padding:20px!important;border:1px solid #eedfa6!important;border-radius:12px!important;background:#fff9df!important;
 color:#243653!important;box-shadow:0 6px 24px #17324d30!important;
}
html body dialog.advent-document-action-dialog::backdrop{background:#17365d30!important}
html body dialog.advent-document-action-dialog>h2{margin:0 0 16px!important;color:#243653!important;font:600 16px/1.4 Arial,sans-serif!important;text-align:center!important}
html body dialog.advent-document-action-dialog form{display:grid!important;gap:12px!important;margin:0!important}
html body dialog.advent-document-action-dialog label{font:600 12px/1.4 Arial,sans-serif!important;color:#52657a!important}
html body dialog.advent-document-action-dialog input{width:100%!important;box-sizing:border-box!important;margin-top:5px!important;padding:9px 10px!important;min-width:0!important;border:1px solid #cddce8!important;border-radius:7px!important;background:#fff!important;color:#243653!important;font:13px/1.4 Arial,sans-serif!important}
html body dialog.advent-document-action-dialog p{margin:0!important;font:12px/1.5 Arial,sans-serif!important;color:#52657a!important}
html body dialog.advent-document-action-dialog .advent-document-action-error{color:#a52c35!important}
html body dialog.advent-document-action-dialog .advent-document-action-buttons{display:flex!important;justify-content:center!important;gap:8px!important}
html body dialog.advent-document-action-dialog button{padding:7px 12px!important;border:1px solid #e3d49c!important;border-radius:7px!important;background:#fffdf3!important;color:#243653!important;font:600 12px/1.4 Arial,sans-serif!important}
html body dialog.advent-document-action-dialog button[type="submit"]{
 background:#2864c5!important;border-color:#2864c5!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 position:relative;transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease!important;
}
html body dialog.advent-document-action-dialog button[type="submit"]:is(:hover,:focus-visible){
 background:#2056ad!important;border-color:#2056ad!important;box-shadow:0 4px 8px #17365d35!important;
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 html body dialog.advent-document-action-dialog button[type="submit"]:is(:hover,:focus-visible){transform:translateY(-2px)!important}
 /* Keep the original lower edge clickable while the button lifts. */
 html body dialog.advent-document-action-dialog button[type="submit"]::after{content:"";position:absolute;inset:0 0 -2px;background:transparent}
}
@media(prefers-reduced-motion:reduce){
 html body dialog.advent-document-action-dialog button[type="submit"]{transition:none!important;transform:none!important}
}
html body dialog.advent-document-action-dialog [hidden]{display:none!important}

/* Cancel shares the document action buttons' gentle hover lift. */
html body dialog.advent-document-action-dialog button[data-document-action-cancel]{
 position:relative;transition:transform .16s ease,box-shadow .16s ease!important;
}
html body dialog.advent-document-action-dialog button[data-document-action-cancel]:is(:hover,:focus-visible){box-shadow:0 4px 8px #17365d25!important}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 html body dialog.advent-document-action-dialog button[data-document-action-cancel]:is(:hover,:focus-visible){transform:translateY(-2px)!important}
 html body dialog.advent-document-action-dialog button[data-document-action-cancel]::after{content:"";position:absolute;inset:0 0 -2px;background:transparent}
}
@media(prefers-reduced-motion:reduce){
 html body dialog.advent-document-action-dialog button[data-document-action-cancel]{transition:none!important;transform:none!important}
}

/* Document actions stay separated; pointer focus does not leave a selection outline. */
html body .app>main #root .claimant-documents-panel table button[data-docrename]{margin-right:8px!important}
html body #app .panel:has(>.panel-header>.document-naming-hint) tbody>tr>td:last-child>button+button{margin-left:8px!important}
html body .app>main #root .claimant-documents-panel table button:is([data-docrename],[data-docdelete]):focus:not(:focus-visible),
html body #app .panel:has(>.panel-header>.document-naming-hint) button:is([data-action="rename-doc"],[data-action="delete-doc"]):focus:not(:focus-visible){outline:none!important;box-shadow:none!important}

/* AM Weekly Overview: equal columns, each 0.2 cm wider than its content fit. */
html body #advent-account-management .am-week-overview .advent-attention-body{
 grid-template-columns:repeat(2,1fr)!important;
 width:max-content!important;
 max-width:100%;
}
html body #advent-account-management .am-week-overview .advent-attention-pairs{
 padding-inline:calc(5px + .1cm)!important;
}

/* Read-only AM monthly expense history; five month rows remain visible. */
#advent-account-management .am-log-summary{display:flex;align-items:flex-start;justify-content:flex-end;gap:12px;flex-wrap:wrap}
#advent-account-management .am-log-summary>[data-am-action="expense-history"]{margin:0;font-size:12px;padding:6px 10px}
html body dialog.am-expense-history-window{position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;width:min(400px,calc(100vw - 32px))!important;height:max-content!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;padding:0!important;overflow:auto!important;box-sizing:border-box!important;background:#fffdf3!important;color:#17365d!important;border:1px solid #e8e1c9!important;border-radius:15px!important;box-shadow:0 9px 28px #17365d26!important;zoom:1!important}
html body dialog.am-expense-history-window>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px 14px}
html body dialog.am-expense-history-window h2{font-size:18px!important;font-weight:650!important;margin:0!important;color:#17365d!important;line-height:1.3!important}
html body dialog.am-expense-history-window header p{margin:3px 0 0!important;font-size:11px!important;color:#62738a!important}
html body dialog.am-expense-history-window button{font-size:12px!important;padding:7px 11px!important;background:#fff!important;color:#17365d!important;border:1px solid #dce5ef!important;border-radius:8px!important;box-shadow:none!important}
html body dialog.am-expense-history-window .am-expense-history-list{max-height:243px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
html body dialog.am-expense-history-window table{display:table!important;width:100%!important;min-width:0!important;max-width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;margin:0!important;font-size:12px!important}
html body dialog.am-expense-history-window th{position:sticky;top:0;background:#f5f8fc!important;color:#62738a!important;font-size:11px!important;font-weight:600!important;height:33px!important;box-sizing:border-box;padding:0 18px!important;border-bottom:1px solid #e1e8f1!important;text-align:left}
html body dialog.am-expense-history-window td{height:42px!important;box-sizing:border-box;padding:0 18px!important;border-bottom:1px solid #e1e8f1!important;background:#fff!important;color:#17365d!important}
html body dialog.am-expense-history-window :is(th,td):last-child{text-align:right;font-variant-numeric:tabular-nums}
html body dialog.am-expense-history-window tbody tr:hover td{background:#e5f2fc!important}
html body dialog.am-expense-history-window>footer{padding:10px 18px;font-size:11px;color:#62738a}
html body dialog.am-expense-history-window .am-expense-history-empty{padding:18px;margin:0;font-size:13px;color:#62738a}
html body dialog.am-expense-history-window::backdrop{background:#17365d30}

/* Isolate the two history columns from the full-page activity table defaults. */
html body dialog.am-expense-history-window :is(th,td){min-width:0!important;max-width:none!important;width:50%!important;box-sizing:border-box!important}
html body dialog.am-expense-history-window :is(th,td):last-child{display:table-cell!important;visibility:visible!important;white-space:nowrap!important}
html body dialog.am-expense-history-window .am-expense-history-list{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow-x:hidden}

/* AM document columns fit their panel instead of inheriting full-page table widths. */
html body #advent-account-management #am-documents .am-table{width:100%!important;min-width:0!important;max-width:100%!important;overflow-x:auto!important}
html body #advent-account-management #am-documents table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse!important}
html body #advent-account-management #am-documents :is(th,td){min-width:0!important;max-width:none!important;padding:10px 7px!important;overflow-wrap:anywhere;white-space:normal!important;font-size:12px!important}
html body #advent-account-management #am-documents :is(th,td):nth-child(1){width:74%!important}
html body #advent-account-management #am-documents :is(th,td):nth-child(2){width:26%!important}
html body #advent-account-management #am-documents[data-am-document-actions="true"] :is(th,td):nth-child(1){width:calc(100% - 190px)!important}
html body #advent-account-management #am-documents[data-am-document-actions="true"] :is(th,td):nth-child(2){width:80px!important}
html body #advent-account-management #am-documents[data-am-document-actions="true"] :is(th,td):nth-child(3){width:110px!important;position:sticky!important;right:0!important;z-index:2;background:#fff!important}
html body #advent-account-management #am-documents[data-am-document-actions="true"] th:nth-child(3){background:#f7f9fb!important;z-index:3}
html body #advent-account-management #am-documents .am-item-actions{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-start}
html body #advent-account-management #am-documents .am-item-actions .btn{font-size:11px!important;padding:5px 7px!important;margin:0!important;max-width:100%;min-width:0}
html body #advent-account-management #am-documents .am-document-link{max-width:100%!important;min-width:0!important;width:auto!important;font-size:12px!important;overflow-wrap:anywhere!important;white-space:normal!important}
@media(max-width:600px){html body #advent-account-management #am-documents{width:100%!important}html body #advent-account-management #am-documents table{min-width:280px!important}}

/* Modern attachment window; native file input and original submit/cancel remain. */
html body dialog#account-management-editor.am-attachment-editor{position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;width:min(480px,calc(100vw - 32px))!important;height:max-content!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;padding:20px!important;overflow:auto!important;box-sizing:border-box!important;background:#fffdf3!important;color:#17365d!important;border:1px solid #e8e1c9!important;border-radius:16px!important;box-shadow:0 10px 28px #17365d26!important;zoom:1!important}
html body dialog#account-management-editor.am-attachment-editor h2{margin:0 0 5px!important;font-size:20px!important;font-weight:650!important;line-height:1.3!important;color:#17365d!important}
html body dialog#account-management-editor.am-attachment-editor h2+p{margin:0 0 17px!important;font-size:12px!important;line-height:1.5!important;color:#62738a!important;overflow-wrap:anywhere}
html body dialog#account-management-editor.am-attachment-editor .am-form-fields{display:block!important;margin:0!important}
html body dialog#account-management-editor.am-attachment-editor .am-upload-picker{padding:17px 15px;background:#fff;border:1px dashed #adc5de;border-radius:11px}
html body dialog#account-management-editor.am-attachment-editor .am-upload-picker label{display:flex;flex-direction:column;gap:9px;font-size:13px!important;font-weight:600;color:#17365d!important;margin:0!important;min-width:0}
html body dialog#account-management-editor.am-attachment-editor input[type="file"]{width:100%!important;min-width:0!important;max-width:100%!important;padding:0!important;border:0!important;background:transparent!important;font-size:12px!important;box-shadow:none!important;color:#62738a!important}
html body dialog#account-management-editor.am-attachment-editor input[type="file"]::file-selector-button{border:1px solid #c7daef;border-radius:7px;padding:8px 11px;margin-right:9px;background:#eaf4fd;color:#17365d;font:600 12px Arial,sans-serif;cursor:pointer}
html body dialog#account-management-editor.am-attachment-editor .am-upload-picker>small{display:block;margin-top:11px;font-size:11px;color:#62738a;line-height:1.5}
html body dialog#account-management-editor.am-attachment-editor .am-upload-selection{margin-top:10px;max-height:160px;overflow:auto}
html body dialog#account-management-editor.am-attachment-editor .am-upload-file{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e8e1c9;font-size:12px;color:#17365d}
html body dialog#account-management-editor.am-attachment-editor .am-upload-file>span{min-width:0;overflow-wrap:anywhere}
html body dialog#account-management-editor.am-attachment-editor .am-upload-file>small{flex-shrink:0;color:#62738a;font-size:11px}
html body dialog#account-management-editor.am-attachment-editor .am-error:empty{display:none!important}
html body dialog#account-management-editor.am-attachment-editor .am-error{font-size:12px;color:#b52d37}
html body dialog#account-management-editor.am-attachment-editor .am-editor-actions{display:flex!important;justify-content:flex-end!important;gap:9px!important;margin:17px 0 0!important;padding-top:13px!important;border-top:1px solid #e8e1c9}
html body dialog#account-management-editor.am-attachment-editor .am-editor-actions button{padding:8px 13px!important;font-size:12px!important;border-radius:8px!important;box-shadow:none!important;background:#fff!important;color:#17365d!important;border:1px solid #dce5ef!important}
html body dialog#account-management-editor.am-attachment-editor .am-editor-actions button[type="submit"]{background:#2864c5!important;color:#fff!important;border-color:#2864c5!important}
html body dialog#account-management-editor.am-attachment-editor [hidden]{display:none!important}

html body #advent-account-management #am-documents[data-am-document-actions="true"] table{min-width:280px!important}
html body #advent-account-management #am-documents .am-item-actions{justify-content:flex-end!important}

/* AM activity logs shrink to the available panel width, like claimant logs. */
html body #advent-account-management #am-activities .am-activity-scroll{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important}
html body #advent-account-management #am-activities .am-activity-scroll table{width:100%!important;min-width:520px!important;max-width:none!important;table-layout:fixed!important}
html body #advent-account-management #am-activities .am-activity-scroll :is(th,td){min-width:0!important;max-width:none!important;padding:9px 6px!important;box-sizing:border-box!important;overflow-wrap:anywhere!important;white-space:normal!important}
html body #advent-account-management #am-activities .am-activity-scroll :is(th,td):nth-child(1){width:76px!important;white-space:nowrap!important}
html body #advent-account-management #am-activities .am-activity-scroll :is(th,td):nth-child(2){width:16%!important}
html body #advent-account-management #am-activities .am-activity-scroll :is(th,td):nth-child(3){width:auto!important;min-width:0!important}
html body #advent-account-management #am-activities .am-activity-scroll :is(th,td):nth-child(4){width:52px!important}
html body #advent-account-management #am-activities .am-activity-scroll :is(th,td):nth-child(5){width:18%!important}
html body #advent-account-management #am-activities .am-activity-scroll :is(th,td):nth-child(6){width:38px!important}
html body #advent-account-management #am-activities[data-am-activity-actions="true"] .am-activity-scroll :is(th,td):nth-child(7){width:82px!important}
html body #advent-account-management #am-activities .am-activity-scroll .am-item-actions{display:flex!important;flex-wrap:wrap!important;gap:4px!important}
html body #advent-account-management #am-activities .am-activity-scroll .am-item-actions button{padding:4px 6px!important;font-size:11px!important;min-width:0!important;max-width:100%!important;margin:0!important}
