/* Redesign layer. Presentation only: no storage, Auth or network behaviour.
   Loads after styles.css/palettes.css. The :root body.rd prefix outranks the
   palette projection selectors without !important. */

:root body.rd{
  --rd-page:color-mix(in srgb,var(--palette-canvas) 40%,#1b1b1b);
  --rd-rail:color-mix(in srgb,var(--palette-panel) 65%,var(--rd-page));
  --rd-card:var(--palette-panel);
  --rd-strip:color-mix(in srgb,var(--palette-panel) 95%,#fff);
  --rd-border:color-mix(in srgb,var(--palette-secondary) 24%,transparent);
  --rd-accent:#3fd0b0;
  --rd-tasks:#6aa9ff;--rd-inbox:#b79cff;--rd-projects:#f08bb4;--rd-notes:#b5d86a;--rd-warn:#f5b454;
  --rd-warn-bg:#1f1a10;--rd-warn-line:#8a5f1a;
  background:var(--rd-page);
}
:root[data-palette=midnight] body.rd{--rd-accent:#6aa9ff;--rd-tasks:#7fd0e6}
:root[data-palette=plum] body.rd{--rd-accent:#c9a0ff;--rd-inbox:#8fc9ff}
:root[data-palette=custom] body.rd{--rd-accent:color-mix(in srgb,var(--palette-accent) 55%,#fff)}
:root[data-palette] body.rd{background:var(--rd-page)}

/* Icon colours: icons only, never the page or widget boxes. */
:root body.rd :is([data-nav=calendar],[data-widget=calendar]){--rd-ico:var(--rd-accent)}
:root body.rd :is([data-nav=tasks],[data-widget=tasks]){--rd-ico:var(--rd-tasks)}
:root body.rd :is([data-nav=inbox],[data-widget=inbox]){--rd-ico:var(--rd-inbox)}
:root body.rd :is([data-nav=projects],[data-widget=projects]){--rd-ico:var(--rd-projects)}
:root body.rd :is([data-nav=notes],[data-widget=notes]){--rd-ico:var(--rd-notes)}
:root body.rd :is(.nav-button,.bottom-nav button)>.icon,:root body.rd .more-icon>.icon,:root body.rd .widget>.widget-head>.icon{color:var(--rd-ico,currentColor)}

/* Widgets: more space, stronger border, header strip with an icon badge. */
:root body.rd .widgets{gap:28px}
:root body.rd .widget{background:var(--rd-card);border:1px solid var(--rd-border);border-radius:12px;box-shadow:none}
:root body.rd .widget-head{background:var(--rd-strip);border:0;border-radius:11px 11px 0 0;padding:10px 16px;margin-bottom:12px;align-items:center;gap:10px;flex-wrap:nowrap}
:root body.rd .widget-head>.icon{box-sizing:content-box;width:16px;height:16px;padding:6px;border:1px solid var(--rd-border);border-radius:7px;background:var(--rd-card);flex:0 0 auto}
:root body.rd .widget-head :is(h2,h3){font-size:15px;font-weight:600;line-height:1.3;color:var(--palette-text);margin:0}
:root body.rd .widget-head .head-end{margin-left:auto}

/* Overdue alert and bell indicator. */
:root body.rd .overdue-alert{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 24px;padding:12px 16px;background:var(--rd-warn-bg);border:1px solid var(--rd-warn-line);border-radius:12px;color:var(--palette-text)}
:root body.rd .overdue-alert .overdue-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 auto;border:1px solid var(--rd-warn-line);border-radius:8px;background:var(--rd-card);color:var(--rd-warn)}
:root body.rd .overdue-alert .overdue-copy{flex:1 1 140px;min-width:0;display:flex;flex-direction:column}
:root body.rd .overdue-alert strong{font-weight:600}
:root body.rd .overdue-alert small{color:var(--palette-secondary);font-size:13px;overflow-wrap:anywhere}
:root body.rd .overdue-alert button{min-height:44px;padding:0 14px;border:1px solid var(--rd-warn-line);border-radius:8px;background:var(--rd-card);color:var(--rd-warn);font:inherit;font-weight:600;cursor:pointer}
:root body.rd .notification-button:after{display:none}
:root body.rd .notification-button.has-overdue:after{display:block;width:8px;height:8px;right:5px;top:4px;background:var(--rd-warn);border:2px solid var(--rd-rail)}

/* Floating add button (phone only). */
.fab{display:none}

@media(min-width:761px){
  /* Side rail: icons only, expands on hover or keyboard focus. */
  :root body.rd .sidebar{width:56px;padding:12px 8px;overflow:hidden;background:var(--rd-rail);border-right:1px solid var(--rd-border);transition:width .16s ease,box-shadow .16s ease}
  :root body.rd .sidebar:is(:hover,:focus-within){width:224px;box-shadow:12px 0 32px #0008}
  :root body.rd .main{margin-left:56px}
  :root body.rd .sidebar .brand{padding:0 4px 20px;gap:12px;white-space:nowrap}
  :root body.rd .sidebar .brand img{width:30px;height:30px}
  :root body.rd .sidebar .nav-button{padding:0 9px;min-height:40px;gap:14px;white-space:nowrap;border-radius:8px;color:var(--palette-secondary)}
  :root body.rd .sidebar .nav-button.active{background:var(--rd-strip);box-shadow:none;color:var(--palette-text)}
  :root body.rd .sidebar .nav-button:hover{background:var(--rd-strip)}
  :root body.rd .sidebar:not(:hover):not(:focus-within) :is(.nav-label,.workspace,.nav-count,.profile>div,.profile>.icon-button,.brand div){opacity:0;pointer-events:none}
  :root body.rd .sidebar:not(:hover):not(:focus-within) .nav-button span:not(.nav-count){opacity:0}
  :root body.rd .sidebar:not(:hover):not(:focus-within) .sidebar-line{margin:12px 8px}
  :root body.rd .sidebar .workspace{display:none}
  :root body.rd .sidebar .profile>div{min-width:0;white-space:nowrap;overflow:hidden}
  :root body.rd .sidebar .profile :is(strong,small){display:block;overflow:hidden;text-overflow:ellipsis}
  :root body.rd .topbar{height:56px;background:var(--rd-rail);margin:0 -32px;padding:0 32px;border-bottom:1px solid var(--rd-border)}
  :root body.rd .greeting{padding:36px 0 20px}
  :root body.rd .greeting p{display:none}
  :root body.rd .greeting h1{font-size:28px;font-weight:500;letter-spacing:-.01em}
}

@media(max-width:760px){
  :root body.rd .bottom-nav{background:var(--rd-rail);border-top:1px solid var(--rd-border)}
  :root body.rd .bottom-nav button.active{background:transparent;color:var(--palette-text)}
  :root body.rd .bottom-nav button.active:before{background:var(--rd-accent)}
  :root body.rd .widgets{gap:28px}
  :root body.rd .main{padding-bottom:152px}
  :root body.rd .topbar{background:var(--rd-rail)}
  :root body.rd .fab{display:flex;position:fixed;right:16px;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:30;align-items:center;justify-content:center;width:56px;height:56px;padding:0;border:0;border-radius:50%;background:var(--rd-accent);color:#0b1512;box-shadow:0 8px 24px #0008;cursor:pointer}
  :root body.rd .fab .icon{width:26px;height:26px;stroke-width:2.2;color:inherit}
}

/* Quick add chooser. */
:root body.rd .quick-add-list{display:grid;gap:10px}
:root body.rd .quick-add-list button{display:flex;align-items:center;gap:14px;min-height:56px;padding:0 16px;border:1px solid var(--rd-border);border-radius:10px;background:var(--rd-card);color:var(--palette-text);font:inherit;font-size:15px;text-align:left;cursor:pointer}
:root body.rd .quick-add-list button:hover{background:var(--rd-strip)}

/* Calendar: continuous solid bars, view switch, selected-day panel. */
:root body.rd .c-personal{--cal-c:var(--rd-accent)}
:root body.rd .c-work{--cal-c:#e8c95a}
:root body.rd .c-wellbeing{--cal-c:var(--rd-notes)}
:root body.rd .c-lifeos{--cal-c:#b5b5b5}
:root body.rd .c-task{--cal-c:var(--rd-tasks)}
:root body.rd .c-source{--cal-c:var(--source-color,#bca8eb)}
:root body.rd .cal-layout{display:flex;flex-wrap:wrap;align-items:flex-start;gap:28px;padding:0 16px 16px}
:root body.rd .cal-main{flex:3 1 640px;min-width:0}
:root body.rd .cal-side{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:20px}
:root body.rd .cal-layout.day-only .cal-main{display:none}
:root body.rd .cal-layout.day-only .cal-side{flex-basis:100%}
:root body.rd .cal-grid{overflow:hidden;border:1px solid var(--rd-border);border-radius:10px;background:var(--rd-card)}
:root body.rd .cal-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:var(--rd-strip);font:11px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;color:var(--palette-secondary)}
:root body.rd .cal-weekdays span{padding:10px}
:root body.rd .cal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:32px repeat(var(--lanes),22px) 20px}
:root body.rd .cal-day{display:flex;align-items:flex-start;justify-content:flex-start;min-width:0;padding:5px 8px;border:0;border-top:1px solid var(--rd-border);border-right:1px solid var(--rd-border);border-radius:0;background:transparent;color:var(--palette-text);cursor:pointer}
:root body.rd .cal-day:nth-child(7n){border-right:0}
:root body.rd .cal-day.selected{background:color-mix(in srgb,var(--rd-accent) 9%,transparent)}
:root body.rd .cal-day:hover{background:color-mix(in srgb,var(--rd-accent) 6%,transparent)}
:root body.rd .cal-num{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:999px;font-size:12px;font-weight:500}
:root body.rd .cal-day.other .cal-num{color:var(--palette-secondary);opacity:.7}
:root body.rd .cal-day.today .cal-num{background:var(--rd-accent);color:#0b1512}
:root body.rd .cal-bar{z-index:1;align-self:start;height:20px;min-width:0;margin:1px 4px;padding:0 6px;border:0;border-radius:4px;background:var(--cal-c);color:#0b1512;font-size:12px;line-height:20px;font-weight:600;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
:root body.rd .cal-bar b{font-weight:600;opacity:.75}
:root body.rd .cal-bar.cont{margin-left:0;border-top-left-radius:0;border-bottom-left-radius:0}
:root body.rd .cal-bar.completed-deadline{opacity:.5;text-decoration:line-through}
:root body.rd .cal-more{z-index:1;padding:0 8px;border:0;background:transparent;color:var(--palette-secondary);font-size:11px;text-align:left;cursor:pointer}
:root body.rd .cal-panel{border:1px solid var(--rd-border);border-radius:12px;background:var(--rd-card)}
:root body.rd .cal-panel-head{display:flex;align-items:center;gap:10px;padding:10px 16px;border-radius:11px 11px 0 0;background:var(--rd-strip)}
:root body.rd .cal-panel-head h3{flex:1 1 auto;margin:0;font-size:15px;font-weight:600}
:root body.rd .cal-panel-head span{font-size:12px;color:var(--palette-secondary)}
:root body.rd .day-row{display:flex;align-items:center;gap:10px;padding:6px 16px;min-height:44px;border-top:1px solid var(--rd-border)}
:root body.rd .day-time{flex:0 0 48px;font:12px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--palette-secondary)}
:root body.rd .day-title{flex:1 1 auto;min-width:0;min-height:44px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;overflow-wrap:anywhere;cursor:pointer}
:root body.rd .cal-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--cal-c)}
:root body.rd .cal-panel .empty{padding:16px}

:root body.rd .calendar-toolbar{padding:0 16px 12px;flex-wrap:wrap}
:root body.rd .calendar-toolbar .month-name{font-size:22px;font-weight:500;letter-spacing:-.01em}
:root body.rd .calendar-controls{gap:6px}
:root body.rd .calendar-controls .today-button{min-height:36px;margin:0 6px 0 0;padding:0 14px;font-size:13px;color:var(--palette-text)}
:root body.rd .calendar-controls .icon-button{width:36px;height:36px;border:1px solid var(--rd-border);border-radius:8px}
:root body.rd .calendar-options{padding:0 16px 14px;font-size:12px}
:root body.rd .calendar-options .secondary{min-height:36px;padding:0 12px;font-size:13px}
:root body.rd .calendar-view-switch{padding:0;border-radius:8px;overflow:hidden;margin-left:auto}
:root body.rd .calendar-view-switch button{min-height:36px;padding:0 14px;border-radius:0;font-size:13px}
:root body.rd .calendar-view-switch button+button{border-left:1px solid var(--rd-border)}
:root body.rd .calendar-view-switch button[aria-pressed=true]{background:var(--rd-strip);color:var(--palette-text);font-weight:600}
@media(min-width:761px){:root body.rd .calendar-view-switch [data-calendar-mode=day]{display:none}}
@media(max-width:760px){
  :root body.rd .cal-layout{padding:0 0 16px;gap:16px}
  :root body.rd .cal-week{grid-template-rows:31px repeat(var(--lanes),20px) 18px}
  :root body.rd .cal-weekdays{text-align:center}
  :root body.rd .cal-weekdays span{padding:6px 0}
  :root body.rd .cal-day{padding:4px 2px;justify-content:center}
  :root body.rd .cal-bar{margin:1px 2px;padding:0 3px;border-radius:3px;font-size:11px;line-height:18px;height:18px}
  :root body.rd .cal-bar b{display:none}
  :root body.rd .cal-legend,:root body.rd .cal-more .more-word{display:none}
  :root body.rd .cal-more{padding:0 2px;text-align:center}
  :root body.rd .calendar-view-switch{width:100%;margin-left:0}
  :root body.rd .calendar-view-switch button{flex:1 1 0;min-height:44px;padding:0}
  :root body.rd .calendar-options>span{display:none}
  :root body.rd .calendar-options .secondary,:root body.rd .calendar-controls .today-button,:root body.rd .calendar-controls .icon-button{min-height:44px}
  :root body.rd .calendar-controls .icon-button{width:44px}
}

/* To do: grouped sections. */
:root body.rd .task-group{margin:0 0 20px;border:1px solid var(--rd-border);border-radius:12px;background:var(--rd-card);overflow:hidden}
:root body.rd .task-group-head{display:flex;align-items:center;gap:10px;padding:10px 16px;background:var(--rd-strip)}
:root body.rd .task-group-head h3{flex:1 1 auto;margin:0;font-size:15px;font-weight:600}
:root body.rd .task-group-head span{font:12px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--palette-secondary)}
:root body.rd .task-group .task-row{padding:8px 16px;border-top:1px solid var(--rd-border);border-bottom:0}
:root body.rd .task-group.overdue{background:var(--rd-warn-bg);border-color:var(--rd-warn-line)}
:root body.rd .task-group.overdue .task-group-head{background:transparent}
:root body.rd .task-group.overdue .task-group-head span{color:var(--rd-warn)}
:root body.rd .task-group.overdue .task-row{border-top-color:#4a3410}
:root body.rd [data-widget=tasks] .widget-body{padding-bottom:16px}

@media(max-width:760px){
  :root body.rd .task-group .task-row{padding:4px 8px 4px 4px;gap:2px;align-items:flex-start}
  :root body.rd .task-group .task-row .icon-button[data-edit-task]{display:none}
  :root body.rd .task-group .task-labels{gap:4px 10px}
  :root body.rd .task-group .task-labels .project-link{min-height:0;padding:2px 8px;font-size:12px}
}

/* Notes: compact list, larger writing area. */
@media(min-width:761px){
  :root body.rd .notes-workspace{grid-template-columns:minmax(200px,260px) minmax(0,1fr);align-items:start}
  :root body.rd .full-note{min-height:min(620px,calc(100vh - 300px));font-size:15px;line-height:1.7}
}
:root body.rd .note-text{color:var(--palette-text);font-size:15px;line-height:1.7}
:root body.rd .full-note{border:1px solid var(--rd-border);border-radius:10px;padding:14px 16px;background:color-mix(in srgb,var(--rd-card) 70%,#000)}
:root body.rd .note-list-item{border:1px solid transparent;border-radius:10px}
:root body.rd .note-list-item.selected{background:var(--rd-strip);border-color:var(--rd-border)}
:root body.rd .notes-list .note-list-item span{max-height:2.6em;overflow:hidden}
/* Settings and Profile: stacked cards, a little wider. */
:root body.rd .settings-page{max-width:880px;display:grid;gap:20px}
:root body.rd .settings-card{margin:0;padding:20px 24px}
:root body.rd .settings-card h2{font-size:16px;font-weight:600;margin:0 0 12px}
:root body.rd .setting-row{border-top:1px solid var(--rd-border)}
:root body.rd .more-destination{border:1px solid var(--rd-border);border-radius:12px;min-height:64px}

/* Inbox: compact tabs, list rows. */
:root body.rd .email-tabs{display:flex;flex-wrap:wrap;gap:6px}
:root body.rd .email-tabs button{min-height:36px;padding:0 14px;border-radius:999px;font-size:13px}
:root body.rd .email-tabs button[aria-pressed=true]{background:var(--rd-strip);color:var(--palette-text);border-color:var(--rd-accent)}
:root body.rd .email-scope{font-size:12px;color:var(--palette-secondary)}
:root body.rd .email-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:12px 4px;border-bottom:1px solid var(--rd-border)}
:root body.rd .email-row>:first-child{flex:1 1 260px;min-width:0}
:root body.rd .email-row strong{font-size:15px;font-weight:600}
:root body.rd .email-row .email-category{flex:0 0 auto}
@media(max-width:760px){:root body.rd .email-row{padding:10px 0}}
/* Projects: card strips like the other pages. */
:root body.rd .project-card{border:1px solid var(--rd-border);border-radius:12px;background:var(--rd-card)}
:root body.rd .project-card .project-icon,:root body.rd .project-card [class*=project-initial]{color:var(--rd-projects)}

/* Customise widgets pop-up. */
:root body.rd .widget-picker{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--rd-border)}
:root body.rd .widget-picker>.icon{box-sizing:content-box;flex:0 0 auto;width:18px;height:18px;padding:8px;border:1px solid var(--rd-border);border-radius:8px;background:var(--rd-strip);color:var(--rd-ico,var(--palette-secondary))}
:root body.rd .widget-picker>div{flex:1 1 auto;min-width:0}
:root body.rd .widget-picker p{margin:2px 0 0;font-size:13px;color:var(--palette-secondary)}
:root body.rd .widget-picker button{min-height:44px;min-width:84px;border-radius:8px;font-weight:600}
:root body.rd .widget-picker button[aria-pressed=true]{background:transparent;color:var(--palette-secondary)}
:root body.rd .widget-picker[data-kind=calendar]{--rd-ico:var(--rd-accent)}
:root body.rd .widget-picker[data-kind=tasks]{--rd-ico:var(--rd-tasks)}
:root body.rd .widget-picker[data-kind=inbox]{--rd-ico:var(--rd-inbox)}
:root body.rd .widget-picker[data-kind=notes]{--rd-ico:var(--rd-notes)}
:root body.rd .widget-picker[data-kind=projects],:root body.rd .widget-picker[data-kind^="project:"]{--rd-ico:var(--rd-projects)}

/* Admin and sign-in: same cards, calmer spacing. Content unchanged. */
:root body.rd .account-admin{max-width:none;padding:0;border:1px solid var(--rd-border);border-radius:12px;background:var(--rd-card);overflow:hidden}
:root body.rd .account-admin>:is(h2,h3,p,form,div,details,section){margin-left:24px;margin-right:24px}
:root body.rd .account-admin>h2:first-child{margin-top:0;margin-left:0;margin-right:0;padding:12px 24px;background:var(--rd-strip);font-size:15px}
:root body.rd .account-admin>button{margin:16px 24px 8px}
:root body.rd .account-admin h3{font-size:15px;font-weight:600;margin-top:24px}
:root body.rd .account-admin>form{max-width:480px}
:root body.rd .account-row{border-bottom:1px solid var(--rd-border)}
:root body.rd .account-admin>:last-child{margin-bottom:24px}
:root body.rd .auth-card{border:1px solid var(--rd-border);border-radius:14px;background:var(--rd-card);box-shadow:none}
:root body.rd .auth-page{background:var(--rd-page)}

/* Avatar colour. */
:root body.rd .avatar{background:var(--avatar-color,var(--rd-accent));color:#0b1512}
:root body.rd .avatar.big{width:56px;height:56px;font-size:22px}
:root body.rd .avatar-picker{display:flex;flex-wrap:wrap;align-items:center;gap:16px}
:root body.rd .swatches{display:flex;flex-wrap:wrap;gap:10px}
:root body.rd .swatch{width:44px;height:44px;border-radius:50%;border:2px solid transparent;background:var(--swatch);cursor:pointer}
:root body.rd .swatch[aria-pressed=true]{border-color:var(--palette-text);box-shadow:0 0 0 2px var(--rd-card) inset}
/* Note categories and formatting. */
:root body.rd .category-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
:root body.rd .chip{min-height:36px;padding:0 12px;border:1px solid var(--rd-border);border-radius:999px;background:transparent;color:var(--palette-text);font:inherit;font-size:13px;cursor:pointer}
:root body.rd .chip[aria-pressed=true]{background:var(--rd-strip);border-color:var(--rd-notes)}
:root body.rd .chip-add{color:var(--palette-secondary);border-style:dashed}
:root body.rd .note-cat{display:inline-block;margin:2px 0 0;padding:0 8px;border:1px solid var(--rd-border);border-radius:999px;font-size:11px;color:var(--palette-secondary)}
:root body.rd .rich-toolbar{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:8px;padding:6px;border:1px solid var(--rd-border);border-radius:10px;background:var(--rd-strip)}
:root body.rd .rich-toolbar button{min-width:44px;min-height:44px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--palette-text);font:inherit;cursor:pointer}
:root body.rd .rich-toolbar button:hover{border-color:var(--rd-border)}
:root body.rd .rich-toolbar .text-button{margin-left:auto;font-size:13px;color:var(--palette-secondary)}
:root body.rd .rich-sep{width:1px;height:24px;background:var(--rd-border);margin:0 4px}
:root body.rd .rich-editor{overflow-wrap:anywhere;white-space:pre-wrap;outline:none}
:root body.rd .rich-editor:focus-visible{outline:2px solid var(--palette-focus);outline-offset:2px}
:root body.rd :is(.rich-editor,.rich-view) [data-size=small],:root body.rd .rich-editor font[size="2"]{font-size:.8em}
:root body.rd :is(.rich-editor,.rich-view) [data-size=large]{font-size:1.35em}
:root body.rd :is(.rich-editor,.rich-view) [data-size=huge]{font-size:1.9em;line-height:1.3}
/* Trash dialog. */
:root body.rd .trash-list{display:grid;gap:0}
:root body.rd .trash-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 0;border-top:1px solid var(--rd-border)}
:root body.rd .trash-row>div:first-child{flex:1 1 200px;min-width:0}
:root body.rd .trash-row strong{display:block;overflow-wrap:anywhere}
:root body.rd .trash-row small{display:block;color:var(--palette-secondary)}
:root body.rd .trash-buttons{display:flex;flex-wrap:wrap;gap:8px}
:root body.rd .trash-buttons button{min-height:44px}

/* PIN lock. */
:root body.rd .pin-card{max-width:360px;margin:0 auto;text-align:center}
:root body.rd .pin-dots{display:flex;justify-content:center;gap:16px;margin:20px 0 24px}
:root body.rd .pin-dots span{width:16px;height:16px;border:2px solid var(--palette-secondary);border-radius:50%}
:root body.rd .pin-dots span.on{background:var(--rd-accent);border-color:var(--rd-accent)}
:root body.rd .pin-pad{display:grid;grid-template-columns:repeat(3,72px);justify-content:center;gap:14px}
:root body.rd .pin-pad button{width:72px;height:72px;border:1px solid var(--rd-border);border-radius:50%;background:var(--rd-strip);color:var(--palette-text);font:inherit;font-size:24px;cursor:pointer}
:root body.rd .pin-pad button:hover{border-color:var(--rd-accent)}
:root body.rd .pin-pad .pin-aux{border-color:transparent;background:transparent;font-size:14px;color:var(--palette-secondary)}
:root body.rd .pin-pad [data-pin-back]{border-color:transparent;background:transparent}
:root body.rd .pin-pad .icon{width:24px;height:24px}
:root body.rd .pin-offer{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 24px;padding:12px 16px;border:1px solid var(--rd-border);border-radius:12px;background:var(--rd-card)}
:root body.rd .pin-offer>div{flex:1 1 220px;min-width:0}
:root body.rd .pin-offer strong{display:block}
:root body.rd .pin-offer small{display:block;color:var(--palette-secondary);font-size:13px}
:root body.rd .pin-offer button{min-height:44px}

/* Continue with Google (follows Google's light button guidance). */
:root body.rd .google-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;padding:0 16px;border:1px solid #747775;border-radius:999px;background:#fff;color:#1f1f1f;font:inherit;font-size:15px;font-weight:500;cursor:pointer}
:root body.rd .google-button:hover{background:#f2f2f2}
:root body.rd .google-button:disabled{opacity:.6;cursor:default}
:root body.rd .google-mark{width:20px;height:20px;flex:none}
:root body.rd .auth-divider{font-size:13px}
:root body.rd .auth-card>.form-error{margin:16px 0;padding:10px 12px;border:1px solid var(--rd-warn-line);border-radius:8px;background:var(--rd-warn-bg);color:var(--palette-text)}

@media(prefers-reduced-motion:reduce){:root body.rd .sidebar{transition:none}}
