/* Settings (design S 3), loaded after /site/site.css and /suite/suite.css. The layout is the suite's own
   (/suite/suite.css, "Settings"); this file gives it the design's sizes in rem (16 design pixels at 1440 x 900, see
   the scale rule there) so nothing from the older kit sets a size here. */

/* ---- the page frame (the same lines open reports.css and settings.css) */
#main.wrap { --ease: cubic-bezier(.2, .8, .2, 1); max-width: 90rem; margin: 0 auto; padding: 2.5rem 7.5rem 6rem; font-size: .9375rem; line-height: 1.5; }
#main.wrap h1 { margin: 0; font-size: 1.625rem; font-weight: 500; line-height: 2rem; letter-spacing: 0; text-wrap: initial; }
#main.wrap h1:focus { outline: none; } /* it takes the focus when a part of the page is swapped; it is not a control */
:where(#main) p { margin: 0; }
#main.wrap > * { animation: e3-in 300ms var(--ease) both; }
@keyframes e3-in { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }
#main .s-mono { font-size: .6875rem; line-height: .875rem; letter-spacing: .1375rem; }
#main .s-btn { min-height: 0; padding: .625rem 1.125rem; border: 0; box-shadow: inset 0 0 0 1px var(--l20); font: 600 .875rem/1.0625rem var(--sans); white-space: nowrap; transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease); }
#main .s-btn:hover { background-color: rgba(232, 238, 248, .08); box-shadow: inset 0 0 0 1px rgba(232, 238, 248, .4); }
#main .s-btn.main { box-shadow: none; background: #fff; color: #000; }
#main .s-btn.main:hover { background-color: #e9eef8; box-shadow: 0 .375rem 1.375rem rgba(143, 184, 255, .25); }
#main .s-btn:active { transform: scale(.97); }
#main .s-link { font-size: .875rem; line-height: 1.0625rem; transition: color 160ms var(--ease); }
#main :focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
@media (max-width: 1023px) { #main.wrap { padding: 2rem 1.25rem 4rem; } }
@media (prefers-reduced-motion: reduce) { #main *, #main *::before { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---- S 3 sizes */
#main.wrap { padding-top: 3rem; }
#main .set-head { margin: 0 0 3rem; }
#main .set-head .eyebrow { font-size: .75rem; } /* the line itself is the suite's (/suite/suite.css); the older kit gave it a fixed size */
#main.wrap .set-head h1 { font-size: 2.75rem; line-height: 1.2; letter-spacing: -.06875rem; }
@media (min-width: 1024px) {
  #main .set { grid-template-columns: 13.75rem minmax(0, 1fr); gap: 5rem; }
  #main .set-nav { top: 6rem; gap: .125rem; }
}
@media (max-width: 1023px) { #main.wrap .set-head h1 { font-size: 2.125rem; letter-spacing: -.03em; } }
#main .set-nav a { padding: .5625rem .875rem; border-radius: .5rem; font-size: .875rem; line-height: 1.0625rem; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
#main .set-nav a[href="#leave"] { color: var(--warn-ink); }
#main .set-sec { padding: 0 0 3.5rem; margin: 0 0 3.5rem; scroll-margin-top: 6rem; }
#main .set-sec:last-child { padding-bottom: 0; margin-bottom: 0; }
#main .set-sec > h2 { margin: 0 0 .375rem; font-size: 1.375rem; font-weight: 500; line-height: 1.625rem; letter-spacing: 0; }
#main .set-sec > .lead { max-width: none; margin: 0 0 1.25rem; color: var(--i42); font-size: .875rem; line-height: 1.3125rem; }
#main .set-sec p { font-size: .875rem; line-height: 1.3125rem; }
#main .set-sec p + p, #main .set-sec .row, #main .set-sec div + p { margin-top: .875rem; }
#main .set-fields { gap: 1.25rem; }
#main .set-fields dt { margin: 0 0 .5rem; font-size: .8125rem; line-height: 1rem; }
#main .set-fields dd { padding: .75rem .875rem; border-radius: .5rem; font-size: .9375rem; line-height: 1.125rem; }
#main .set-fields .wide dd { padding: 0; gap: .5rem; }
#main .s-chip { padding: .4375rem .75rem; font-size: .8125rem; line-height: 1rem; }
#main .s-chip::before { margin-right: .375rem; font-size: .75rem; }
#main .set table { font-size: .875rem; }
#main .set table th { padding: 0 .75rem .625rem 0; font-size: .8125rem; line-height: 1rem; letter-spacing: 0; }
#main .set table td { padding: .8125rem .75rem .8125rem 0; line-height: 1.3125rem; }
#main .set table td:first-child { font-size: .9375rem; }
@media (min-width: 1024px) { #main .set table td:first-child { white-space: nowrap; } }
@media (max-width: 640px) { #main .set table.stack td { padding: .1875rem 0; border: 0; line-height: 1.3125rem; } #main .set table.stack tr { padding: .75rem 0; } }
#main .set-sec button, #main .set-sec select { min-height: 2.1875rem; padding: .5625rem 1rem; font-size: .875rem; line-height: 1.0625rem; }
#main .set-sec td button, #main .set-sec td select { min-height: 2rem; padding: .25rem .75rem; font-size: .8125rem; }
#main .set-sec .row { gap: .625rem 1rem; }
#main .set-sec pre.code { margin: .5rem 0 .75rem; padding: 1rem 1.125rem; border-radius: .5rem; font-size: .8125rem; line-height: 1.65; }

/* ---- the buttons of a part: Save is white; a quiet one is text only; a warning one is outlined in orange, filled when it acts */
.set-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.25rem; }
#main .set-sec button.set-act { border: 0; border-radius: 999px; background: #fff; color: #000; box-shadow: none; font-weight: 600; }
#main .set-sec button.set-act.is-quiet { padding-left: 0; padding-right: 0; background: none; color: var(--i68); }
#main .set-sec button.set-act.is-warn { background: none; box-shadow: inset 0 0 0 1px rgba(232, 105, 42, .6); color: var(--warn-ink); }
#main .set-sec button.set-act.is-danger { background: var(--warn); color: #000; }
#main .set-sec button.set-act.is-quiet:hover { color: #fff; }
#main .set-sec button.set-act.is-warn:hover { box-shadow: inset 0 0 0 1px rgba(232, 105, 42, .9); }
#main .set-sec button.set-act[hidden] { display: none; }
#main .set-fields dt label { color: inherit; font: inherit; }
#main .set-fields dd.set-in { padding: 0; background: none; border: 0; }
#main .set-in input { box-sizing: border-box; width: 100%; min-height: 2.75rem; padding: .75rem .875rem; background: var(--f04); border: 1px solid var(--l15); border-radius: .5rem; color: var(--i100); font: inherit; font-size: .9375rem; line-height: 1.125rem; color-scheme: dark; }
#main .set-in input:focus-visible { outline: 2px solid var(--i68); outline-offset: 2px; }
/* ---- Company: the sign-up paths as ticks; the hint under the fields */
#main .set-fields dd.set-paths { display: flex; flex-wrap: wrap; padding: 0; background: none; border: 0; }
#main .set-sec .set-fields + .set-hint { margin-top: .875rem; }
/* ---- Delete this company: what happens, the name to type, and the two buttons */
.set-del { margin-top: 1rem; padding: 1.25rem 1.5rem; border: 1px solid rgba(232, 105, 42, .45); border-radius: .75rem; background: rgba(232, 105, 42, .04); }
.set-del[hidden] { display: none; }
#main .set-del-list { margin: 0 0 1.25rem; padding-left: 1.125rem; color: var(--i68); font-size: .875rem; line-height: 1.3125rem; }
#main .set-del-list li + li { margin-top: .375rem; }
#main .set-del-list code { font: 500 .8125rem/1.3125rem var(--mono); color: var(--i100); }
#main .set-del-in { display: flex; flex-direction: column; gap: .5rem; max-width: 24rem; }
#main .set-del-in label { color: var(--i68); font-size: .8125rem; line-height: 1rem; }
#main .set-del-in label b { color: #fff; font-weight: 600; }
#main .set-del .set-acts { margin-top: 1rem; }
.set-one { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.25rem; }
.set-one .set-fields { flex: 1 1 20rem; max-width: 20rem; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1023px) { .set-one .set-fields { max-width: none; } }
.set-one .set-acts { margin: 0 0 .25rem; }
#main .set-hint { color: var(--i42); font-size: .8125rem; line-height: 1.25rem; }
.set-danger { display: flex; align-items: center; gap: 1rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--l12); }
.set-danger > div:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
#main .set-danger .t { color: #fff; font-size: 1rem; font-weight: 500; line-height: 1.1875rem; }
#main .set-danger .b { margin: 0; color: var(--i42); font-size: .875rem; line-height: 1.3125rem; }
.set-danger .set-acts { flex: none; margin: 0; }
@media (max-width: 640px) { .set-danger { flex-wrap: wrap; } }

/* ---- tables: a key's start in the mono face; a time in words; the audit keeps each line to one row from 1024px up
   (who and what never break; a long detail is cut with its whole text as the title) */
#main .set .set-mono { padding: 0; background: none; border: 0; color: inherit; font: 500 .8125rem/1.3125rem var(--mono); }
#main .set .set-when[title] { cursor: default; }
@media (min-width: 1024px) {
  #main .set table.audit td { white-space: nowrap; }
  #main .set table.audit td:last-child { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
#main .set button:disabled { opacity: .55; cursor: default; }

/* ---- the wait before the first answer (role="status" in index.html): bars where the title and the parts come, at their size;
   the room for the bar is kept by #top:empty (/suite/suite.css), so nothing moves when the page arrives */
.w-settings .sk.e { width: 14rem; height: .875rem; margin: 0 0 .625rem; }
.w-settings .sk.h { width: 22rem; max-width: 100%; height: 3.3rem; }
.w-settings .sk.n { width: 9rem; height: 2.1875rem; border-radius: .5rem; }
.w-settings .set-secs { display: flex; flex-direction: column; gap: 3.5rem; min-width: 0; }
.w-settings .sk.b { height: 11rem; border-radius: .75rem; }
@media (max-width: 1023px) { .w-settings .sk.h { height: 2.55rem; } .w-settings .sk.n { width: 6rem; } }

/* ---- phone: no small print under 12px (the page is not scaled below 1024px, so 1rem is 16px there) */
@media (max-width: 1023px) { #main .s-mono { font-size: .75rem; } #main .set-sec select, #main .set-sec td select { min-height: 2.5rem; } }
