/* The site's shared styles, on every page: tokens, type, header and footer, buttons, fields, windows and
   notices, the cookie banner and Berry's chat.
   Split from style.css (16 Nov 2026, C2): each page links css/base.css and its own sheets in <head>, in the order
   base, pattern, marketing, auth, make, library, settings, share, workspace; a rule that came later in style.css still
   comes later where both load. Its dark twin is css/base-dark.css (07_scripts/maintenance/site_dark_css.py).
   An !important left says why, on the line before its rule: what it must win over. */

@import url('../fonts/fonts.css?v=eebf12d01c20');

/* Global and base styles are defined below. */
:root {
  --font-family-inter: 'Inter', sans-serif;
  --font-family-poppins: 'Poppins', sans-serif;
  --font-family-roboto: 'Roboto', sans-serif;
  --font-family-open-sans: 'Open Sans', sans-serif;

  --text-blue: rgba(0, 6, 70, 1);
  --Pure-Blue: rgb(0, 37, 230);
  --Pure-Blue-light: #e9f5ff;

  /* Red palette. */
  --Red: #B3261E; /* one red for errors and deleting (the style system; it was rgba(221, 0, 0)) */
  /* #b71c1c */
  --trial-period-dark-red-colour: #721c24;
  --trial-period-medium-red-colour: #f5c6cb;
  --trial-period-light-red-colour: rgba(248, 215, 218, 0.98);
  --trial-period-box-shadow-colour: rgba(0, 0, 0, 0.55);

  /* Black and dark neutrals. */
  --Black: rgba(0, 0, 0, 1);
  --Box-Shadow: rgba(0, 0, 0, 0.18);
  --text-secondary: #303850;

  /* Whites */
  --White: rgba(255, 255, 255, 1);
  --bg-light: #f3f3f5;

  /* Grays and neutrals. */
  --Dusty-Gray: rgba(225, 225, 225, 1);
  --Sew-Ok: #1e6b34;
  --Sew-Ok-bg: #e4f3e8;
  --Sew-Off: #7a4a00;
  --Sew-Off-bg: #fff1d6;
  --Gray: rgba(130, 130, 130, 1);
  --Boulder: #666;
  --Grid-Gray: rgba(188, 188, 189, 1);
  --Gray-Divider: rgb(171, 171, 171);

  /* Additional colour tokens. */
  --color-text-dark: #1d2d35;
  --color-bg-feature: #fcf4f2;
  --gray-border: #bbb;

  /* Shadows & borders */
  --border-radius: 1.25rem;

  /* Brand font stack. */
  --brand-font: "Inter", Helvetica, Arial, sans-serif;

  /* Miscellaneous tokens. */
  --transition: 0.18s;

  /* The style system (13 Nov 2026, the canvas's "A proposed system"): one blue, one ink, quiet text, one red, two
     typefaces, one type scale, one control height. */
  --ds-brand: #0025E6;
  --ds-brand-hover: #001BB0;
  --ds-brand-pale: #E9F0FF;
  --ds-ring: rgba(0, 37, 230, 0.28);
  --ds-ink: #000646;
  --ds-text: #2B3550;
  --ds-quiet: #4A5868;
  --ds-placeholder: #6B7280;
  --ds-line: #E3E3EA;
  --ds-line-strong: #C9CED9;
  --ds-surface: #FFFFFF;
  --ds-page: #F3F3F5;
  --ds-track: #EEF0F6;
  --ds-danger: #B3261E;
  --ds-danger-pale: #FDECEA;
  --ds-warn: #8A4B00;
  --ds-warn-pale: #FFF4E5;
  --ds-ok: #1E6B34;
  --ds-ok-pale: #E7F4EA;
  --ds-font-head: 'Poppins', 'Open Sans', sans-serif;
  --ds-font-body: 'Open Sans', sans-serif;
  --ds-size-1: 2.5rem;
  --ds-size-2: 1.75rem;
  --ds-size-3: 1.375rem;
  --ds-size-4: 1.125rem;
  --ds-size-5: 1rem;
  --ds-size-6: 0.8125rem;
  --ds-size-7: 0.6875rem;
  --ds-control-h: 40px;
}

/* =======================
   CROSS-BROWSER (Safari, Chrome, Firefox, Edge)
   ======================= */
/* *,
*::before,
*::after {
  box-sizing: border-box;
} */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html,
body {
  -webkit-tap-highlight-color: transparent;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Flex children are allowed to shrink so overflow and layout match across browsers. */
.flex-shrink-fix {
  min-height: 0;
  min-width: 0;
}

/* =====================================================================
                            COMMON PAGE STYLES
   ===================================================================== */
/* Scrollable areas: smooth scrolling on iOS Safari
.overflow-auto,
.overflow-scroll {
  -webkit-overflow-scrolling: touch;
} */

/* The headings (13 Nov 2026, the style system: Poppins for headings, one scale 40 / 28 / 22 / 18 px, the brand's ink).
   Still !important, as before: taking it off is page by page, as each page's own sizes come back into play.
   A page can set the tokens for its own parts (16 Nov 2026: the landing page, Pricing, Log in and Sign up take
   mildbury.com's type, css/marketing.css and css/auth.css): --ds-font-head, --ds-size-1..4, and here --ds-lh-1, 3, 4
   and --ds-weight-3, 4, each defaulting to the scale's own value. */
/* First-level headline. */
/* !important: over .phone-capture-panel h1 (and more) */
h1 {
  font-family: var(--ds-font-head) !important;
  font-weight: var(--ds-weight-1, 500);
  font-size: var(--ds-size-1) !important;
  line-height: var(--ds-lh-1, 1.15) !important;
  margin: 0 0 0.5em 0 !important;
  color: var(--ds-ink) !important;
}

/* Second-level headline. */
/* !important: over .pd-kept h2, .kept-drawings h2 (and more) */
h2 {
  font-family: var(--ds-font-head) !important;
  font-weight: var(--ds-weight-2, 500) !important;
  font-size: var(--ds-size-2) !important;
  line-height: var(--ds-lh-2, 1.2) !important;
  margin: 0 0 0.5em 0 !important;
  color: var(--ds-ink) !important;
}

/* Third-level headline. */
/* !important: over the inline font-family a script sets (and more) */
h3 {
  font-family: var(--ds-font-head) !important;
  font-weight: var(--ds-weight-3, 500) !important;
  font-size: var(--ds-size-3) !important;
  line-height: var(--ds-lh-3, 1.25) !important;
  margin: 0 0 0.5em 0 !important;
  color: var(--ds-ink) !important;
}

/* !important: over h2's !important */
#mobile-block-overlay h2 {
  color: #0025E6 !important;
}

/* Fourth-level headline. */
/* !important: over the New design's .index-hero-content h4 (and more) */
h4 {
  font-family: var(--ds-font-head) !important;
  font-weight: var(--ds-weight-4, 500) !important;
  font-size: var(--ds-size-4) !important;
  line-height: var(--ds-lh-4, 1.3) !important;
  margin: 0 0 0.5em 0 !important;
  color: var(--ds-ink) !important;
}

/* Body text. */
/* !important: a utility: wins wherever it is put */
.body1 {
  font-family: var(--font-family-open-sans) !important;
  font-weight: 400 !important;
  font-size: 1.25rem !important;
  line-height: 1.5 !important;
}

/* Secondary body text. */
/* !important: a utility: wins wherever it is put */
.body2 {
  font-family: var(--font-family-open-sans) !important;
  font-weight: 400 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* Tertiary body text. */
/* !important: a utility: wins wherever it is put */
.body3 {
  font-family: var(--font-family-roboto) !important;
  font-weight: 400 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* !important: over body */
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family-open-sans) !important;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}

/* !important: over .legal-page (and more) */
body {
  min-height: 100vh;
  height: 100vh;
  overflow-y: visible !important;
  /* clip, not hidden: hidden made the body a scroll container (overflow-y then computes to auto), so the
     sticky header scrolled away with the page. Browsers without clip keep hidden. */
  overflow-x: hidden !important;
  overflow-x: clip !important;
  height: auto !important;
  background: var(--bg-light);
}

a {
  text-decoration: none;
}

.container {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

p,
ul {
  margin: 0;
  padding: 0;
}

/* !important: a utility: wins wherever it is put */
.hide-desktop {
  display: none !important;
}

/* !important: a utility: wins wherever it is put */
.hide-mobile {
  display: inline-block !important;
}

/* --- Base main_right styles --- */
#main_right {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-light);
}

#main_right div:not(.label):not(.sub_container) {
  padding: 1%;
}

/* --- Base Rounded Button --- */

/* One main button, one second (outlined) and one quiet (13 Nov 2026, the style system): Open Sans 600, 16 px, 40 px
   high (44 on a touch screen), fully rounded. A page can set its buttons' type for its own parts with --ds-button-font,
   -weight, -size and -lh (16 Nov 2026: mildbury.com's Roboto 500, 18 px, on the landing page, Pricing, Log in and Sign
   up, css/marketing.css and css/auth.css). */
/* !important: over the font-family of a rule loaded later (and more) */
.btn-rounded {
  font-family: var(--ds-button-font, var(--ds-font-body)) !important;
  font-weight: var(--ds-button-weight, 600) !important;
  font-size: var(--ds-button-size, 1rem) !important;
  line-height: var(--ds-button-lh, 1.375rem) !important;
  padding: 0.5625rem 1.25rem;
  min-height: var(--ds-control-h);
  box-sizing: border-box;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background-color var(--transition) ease;
  gap: 0.625rem;
  letter-spacing: 0;
  white-space: nowrap;
  margin: 0rem !important;
}

/* A rounded button with the hidden attribute stays hidden: the display above won, and Settings showed "Cancel
   subscription" to every account without a subscription (4 November 2026). */
.btn-rounded[hidden] {
  display: none;
}

/* --- Primary Button --- */
.btn-primary {
  border: 0.0625rem solid var(--Pure-Blue);
  background-color: var(--Pure-Blue);
  color: var(--White);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ds-brand-hover);
  border-color: var(--ds-brand-hover);
}

/* --- Secondary Button --- */
.btn-secondary {
  border: 0.0625rem solid var(--Pure-Blue);
  background-color: transparent;
  color: var(--Pure-Blue);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--ds-brand-pale);
  color: var(--Pure-Blue);
  border-color: var(--Pure-Blue);
}

/* --- Deleting: the quiet button in red, a question first (never a red block beside Edit) --- */
.btn-danger {
  border: 0.0625rem solid var(--ds-danger);
  color: var(--ds-danger);
  background-color: transparent;
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: var(--ds-danger-pale);
  border-color: var(--ds-danger);
  color: var(--ds-danger);
}

/* =======================
   INFO BUTTON STYLES
   ======================= */

/* !important: over the inline z-index user_tour.js sets (and more) */
#infoBtn {
  z-index: 902 !important;
  pointer-events: auto !important;
  position: relative;
  background: var(--White);
  border: 0.0625rem solid var(--Pure-Blue);
  border-radius: 50%;
  color: var(--Pure-Blue);
  width: 2rem;
  height: 2rem;
  font-size: 1.5em;
  box-shadow: 0 0.125rem 0.3125rem var(--Box-Shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

#infoBtn:hover {
  background: var(--Dusty-Gray);
  border: 0.0625rem solid var(--Pure-Blue);
}

/* --- Pop Up Overlay --- */
/* !important: over the inline z-index homepage-page.js sets */
.modal {
  position: fixed;
  /* Above the sticky header (9999): under it, a window's close button hid behind the header at 200% zoom, so the
     window couldn't be closed (UAT ACS-03, 2 November 2026). The cookie banner and workspace notices stay above. */
  z-index: 10000 !important;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Pop Up Close Icon --- */
/* (Inside the window's rounded corner, as the dialogs' × is: at 0 it sat on the top edge, its focus ring over it. 21 Nov
   2026, Israa: "make sure the pop up and their spacing are all correct".) */
/* !important: over the inline position library-page.js sets (and more) */
.modal-close {
  position: absolute !important;
  top: 0.5rem !important;
  right: 0.5rem !important;
  background: none;
  border: none !important;
  font-size: 2em !important;
  color: var(--Black);
  cursor: pointer !important;
  font-weight: normal !important;
  z-index: 100000;
}

/* --- Pop Up Title --- */
.modal-title {
  font-size: 2rem;
  font-weight: bold;
  font-family: var(--font-family-roboto);
  margin-bottom: 1rem;
  margin-top: 0rem;
}

/* --- Pop Up Content --- */
.modal-content {
  background: var(--White);
  border-radius: 1.25rem;
  box-shadow: 0 0.25rem 2rem rgba(0, 0, 0, 0.12);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  width: 15.9375rem;
  height: 20.3125rem;
  text-align: center;
  position: relative;
  flex-direction: column;
  display: flex;
  align-items: center;
}

/* A window over the page holds the page still (21 Nov 2026, Israa: "fix any double scroll"): the page behind it doesn't
   scroll as well. html.window-open: a .modal window showing (site_chrome.js); dialog:modal, a <dialog> window. The
   room kept for the page's scrollbar stays on a computer (nothing behind the window moves); on a phone's width it goes,
   so a window the screen's width fills it (a blank strip down its side till then). */
html.window-open,
html.window-open body,
html:has(dialog:modal),
html:has(dialog:modal) body { overflow: hidden; }
/* (:root and :not(): over new_design/bar.css's html[data-nd-bar]:not(.workspace-body), which keeps the room.) */
@media (max-width: 600px) {
  :root.window-open:not(.workspace-body),
  :root:has(dialog:modal):not(.workspace-body) { scrollbar-gutter: auto; }
}

/* In a short browser window (200% zoom on a laptop: 360-500 px) a window starts at the top, its close button on
   screen, and the backdrop scrolls to the rest of it: centred, a taller one's top was cut off (UAT ACS-03). */
/* !important: over the inline align-items library-page.js sets (and more) */
@media (max-height: 560px) {
  .modal {
    align-items: flex-start !important;
    overflow-y: auto;
    padding: 0.5rem 0 !important;
    box-sizing: border-box;
  }
  .modal-content {
    flex-shrink: 0;
  }
}

/* =======================
   NAVIGATION BAR STYLES
   ======================= */
/* !important: over the New design's .outside-main-nav-header-section (and more) */
.outside-main-nav-header-section {
  /* Its buttons in mildbury.com's type (16 Nov 2026: Roboto 500 at 18 px; the links' rule is with the style system's). */
  --ds-button-font: var(--font-family-roboto);
  --ds-button-weight: 500;
  --ds-button-size: 1.125rem;
  --ds-button-lh: 1.35rem;
  background-color: rgba(255, 255, 255, 0.8) !important;
  padding: 1.3125rem 0;
  position: sticky !important;
  top: 0;
  z-index: 9999;
  -webkit-backdrop-filter: blur(0.25rem) !important;  /* Safari before 18 (B-DP8) */
  backdrop-filter: blur(0.25rem) !important;
}

.outside-main-nav-header-container {
  /* background-color: rgba(255, 255, 255, 0.8) !important; */
  max-width: 100vw;
  padding: 0 5.5%;
  padding-left: calc(5.5% + env(safe-area-inset-left));
  padding-right: calc(5.5% + env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* !important: over the New design's .outside-main-nav-logo */
.outside-main-nav-logo {
  /* (as mildbury.com draws it: Poppins 500 made bold by the browser; fonts/fonts.css 'Poppins Logo', 17 Nov 2026) */
  font-family: 'Poppins Logo', var(--font-family-poppins) !important;
  font-synthesis: weight !important;
  font-weight: 700 !important;
  font-size: 1.375rem !important;
  color: var(--Pure-Blue) !important;
}

.outside-main-nav {
  display: flex;
  align-items: center;
  gap: 1.5625rem;
}

.nav-link {
  font-family: var(--font-family-roboto);
  font-size: 1.125rem;
  color: var(--Black);
  font-weight: 500;
}
.model-tab-btn.active {
  border-bottom-color: var(--Pure-Blue);
}
.other-versions-toggle .ov-thumb svg { display: block; width: 100%; height: 100%; }
.pattern-sheet-wrap { width: 100%; }
.pattern-sheet-wrap svg.pattern-sheet { display: block; width: 100%; height: auto; max-height: 520px; }
/* !important: over svg.pattern-sheet path[data-interna… (and more) */
svg.pattern-sheet path:not(.sheet-fill):not(.sheet-grid-line) {
  stroke: #1d2a4d !important;
  stroke-width: 1.3px !important;
  vector-effect: non-scaling-stroke;
  fill: none;
}
/* !important: over body[data-canvas-look="dark"] .icon… (and more) */
svg.pattern-sheet path[data-internal]:not([data-internal="buttonhole"]) {
  stroke: #8d98b4 !important;
  stroke-width: 1px !important;
  stroke-dasharray: 5 4;
}
svg.pattern-sheet text:not(.sheet-label), svg.pattern-sheet .seg-lbl, svg.pattern-sheet [id*="construction" i], svg.pattern-sheet .seg-construction { display: none; }
.user-profile {
  position: relative;
  display: flex;
  align-items: center;
}

#userProfileBtn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: box-shadow 0.15s;
  box-shadow: 0 0.125rem 0.125rem var(--Box-Shadow);
  background: var(--Pure-Blue);
  outline: none;
}

/* !important: over the New design's #userProfileBtn */
#userProfileBtn,
.user-profile .user-avatar,
.user-profile .avatar-bg,
.user-profile .avatar-initial {
  width: 2.875rem !important;
  height: 2.875rem !important;
  min-width: 2.875rem !important;
  min-height: 2.875rem !important;
  max-width: 2.875rem;
  max-height: 2.875rem;
  border-radius: 50%;
  box-sizing: border-box;
  transition: none;
}

/* !important: over the New design's #userProfileBtn */
#userProfileBtn:active,
#userProfileBtn:focus {
  width: 2.875rem !important;
  height: 2.875rem !important;
}

.user-profile .user-avatar {
  position: relative;
  width: 2.875rem;
  height: 2.875rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.user-profile .avatar-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 50%;
  background: var(--Pure-Blue);
  border: none;
  z-index: 1;
  justify-content: center;
  align-items: center;
  transition: none;
  /* Prevent unwanted animation */
}

.user-profile .avatar-initial {
  position: relative;
  color: var(--White);
  font-family: var(--font-family-roboto);
  font-weight: bold;
  font-size: 1.45rem;
  z-index: 2;
  width: 2.875rem;
  height: 2.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.user-profile .avatar {
  display: none;
}

.user-profile .avatar:hover {
  border: none;
}

.user-dropdown {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 3.5rem;
  right: 0;
  min-width: 11.25rem;
  background: var(--White);
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 1.5rem var(--Box-Shadow);
  z-index: 999999;
  padding: 0.75rem 0 0.375rem 0;
  animation: fadeIn 0.18s;
  border: 0.0625rem solid var(--White);
}

.user-dropdown-header {
  padding: 0.625rem 1.125rem 0.5rem 1.125rem;
  font-weight: 700;
  font-family: var(--font-family-open-sans);
  font-size: 1rem;
  color: var(--Black);
  font-size: 1.1em;
  border-bottom: 0.0625rem solid var(--White);
  margin-bottom: 0.375rem;
  position: relative;
}

.user-dropdown-header::after {
  content: "";
  display: block;
  position: absolute;
  left: 1.125rem;
  right: 1.125rem;
  bottom: 0;
  height: 0.125rem;
  background: linear-gradient(60deg, var(--Pure-Blue), var(--Pure-Blue));
  border-radius: 0.125rem;
  opacity: 0.7;
}

.user-dropdown-link {
  padding: 0.625rem 1.125rem;
  color: var(--Black);
  font-weight: normal;
  font-family: var(--font-family-open-sans);
  font-size: 1rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1em;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0.375rem;
  text-decoration: none;
  display: block;
}

.user-dropdown-link:hover,
.user-dropdown-link:focus {
  color: var(--Pure-Blue);
}

/* =======================
   FOOTER STYLES
   ======================= */
/* (Its room tighter, 16 Nov 2026, Israa: "make the footer height less so it doesnt have alot of white space at the
   bottom": 40 px over it, 32 under the copyright line; it was 48 and 48 + 84 for Help.) */
/* !important: over the New design's .site-outside-main-footer (and more) */
.site-outside-main-footer {
  background-color: var(--White) !important;
  padding: 2.5rem 0 2rem !important;
  color: var(--text-secondary) !important;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  position: static;
  display: block !important;
  background: var(--White) !important;
}

.outside-main-footer-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 2.5rem;
  border-bottom: 0.0625rem solid #e0e0e0;
}

.outside-main-footer-cta-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.outside-main-footer-cta-text {
  font-family: var(--font-family-inter);
  font-size: 1rem;
  margin: 0;
}

.btn-outside-main-footer-cta {
  display: inline-block;
  border: 0.0625rem solid var(--Pure-Blue);
  color: var(--Pure-Blue);
  font-family: var(--font-family-roboto);
  font-weight: 500;
  font-size: 1.125rem;
  padding: 0.5625rem 1.375rem;
  border-radius: 1.25rem;
  text-align: center;
  max-width: 11.6875rem;
}

.outside-main-footer-links-block {
  display: flex;
  gap: 1.5rem;
}

.outside-main-footer-links-column {
  display: flex;
  flex-direction: column;
}

.outside-main-footer-links-title {
  font-family: var(--font-family-inter);
  font-weight: 500;
  font-size: 0.625rem;
  line-height: 0.875rem;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  /* (Readable: at half strength it was about 2.8:1, 13 Nov 2026.) */
  color: #4a5868;
  margin: 0 0 1rem 0;
}

.outside-main-footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* !important: over .outside-main-footer-legal-links a */
.outside-main-footer-links-list a {
  font-family: var(--font-family-inter);
  font-size: 1rem !important;
  font-weight: normal;
  color: #303850;
  transition: color 0.18s, text-decoration-color 0.18s;
}

.outside-main-footer-links-list a:hover,
.outside-main-footer-links-list a:focus,
.outside-main-footer-links-list a:active {
  color: var(--Pure-Blue);
  text-decoration: underline;
  text-decoration-color: var(--Pure-Blue);
}

.outside-main-footer-legal-links {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.outside-main-footer-legal-links a {
  font-family: var(--font-family-inter);
  font-size: 0.75rem;
  /* (Readable: half strength was about 2.8:1, 13 Nov 2026.) */
  color: #4a5868;
  transition: color 0.18s, text-decoration-color 0.18s;
}

.outside-main-footer-legal-links a:hover,
.outside-main-footer-legal-links a:focus,
.outside-main-footer-legal-links a:active {
  color: var(--Pure-Blue);
  text-decoration: underline;
  text-decoration-color: var(--Pure-Blue);
  opacity: 1;
}

.outside-main-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
}

.copyright-text {
  font-family: var(--font-family-inter);
  font-size: 0.75rem;
  color: #4a5868;
  margin: 0;
}

.social-links img {
  width: 1rem;
  height: 1rem;
  opacity: 0.75;
}

/* =======================
   SVG STYLES
   ======================= */

svg {
  display: block;
  width: 100%;
  height: 90%;
  margin: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
}

/* =======================
   INDEX STYLES
   ======================= */

.index-hero-image-wrapper {
  flex: 1;
  position: relative;
  min-height: 45rem;
  background-color: var(--bg-light);
  margin-left: 0%;
  /* The picture is as tall as the hero and centred: in a narrower window (200% zoom) it spread left over the title and
     hid "Generator" (UAT ACS-03). Kept to its own half; at desktop widths it fits there anyway. */
  overflow: hidden;
}

/* =======================
   LOGIN / SIGNUP / RESET PASSWORD STYLES
   ======================= */

.name-row {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  width: 100%;
}

.auth-input-wrapper {
  display: flex;
  width: 100%;
  height: 2.5rem;
  align-items: center;
  gap: 0.625rem;
  padding: 0 0.625rem;
  border-radius: 1.25rem;
  border: 0.0625rem solid var(--Dusty-Gray);
  margin-bottom: 0.5rem;
  background-color: var(--White);
}

/* (The sign-in page's Or line and Google, Apple and Microsoft buttons, never shown, went on 15 Nov 2026: C12.) */

/* One field (13 Nov 2026, the style system): the label above (it was inside, and went as you typed), a 40 px box with
   8 px corners and a grey line that turns blue with a 2 px ring when chosen. The label comes after the field in the
   page, so the wrapper is a reversed column. */
.floating-input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 6px;
  height: auto;
  background: transparent;
  border-radius: 0;
  border: 0;
  padding: 0;
  box-sizing: border-box;
}

.floating-input {
  height: var(--ds-control-h);
  width: 100%;
  display: block;
  border: 1px solid var(--ds-line-strong);
  background: var(--ds-surface);
  font-size: 1rem;
  color: var(--ds-ink);
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
  box-sizing: border-box;
  font-family: var(--ds-font-body);
  font-weight: normal;
  margin-left: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

/* !important: over .floating-input-wrapper label */
.floating-input-wrapper label {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  color: var(--ds-text);
  /* (--ds-label-size: a page's own, css/auth.css, 16 Nov 2026) */
  font-size: var(--ds-label-size, 0.875rem) !important;
  /* font-weight: 400; */
  pointer-events: none;
  background: transparent;
  transition: color var(--transition), font-size var(--transition),
    top var(--transition), transform var(--transition),
    background var(--transition), padding var(--transition);
  padding: 0 0.125rem;
  z-index: 2;
  font-family: var(--font-family-open-sans);
  font-weight: normal;
}

.floating-input:focus+label,
.floating-input:not(:placeholder-shown)+label {
  top: auto;
  left: auto;
  font-size: 0.875rem;
  color: var(--ds-text);
  background: transparent;
  padding: 0 0.125rem;
  transform: none;
  font-family: var(--font-family-open-sans);
  font-weight: normal;
}

.floating-input:-webkit-autofill+label {
  top: auto;
  left: auto;
  font-size: 0.875rem;
  color: var(--ds-text);
  background: transparent;
  padding: 0 0.125rem;
  transform: none;
  font-family: var(--font-family-open-sans);
  font-weight: normal;
}

.floating-input:focus {
  outline: none;
  border-color: var(--Pure-Blue);
  box-shadow: 0 0 0 2px var(--ds-ring);
}

.floating-input:focus~label,
.floating-input:not(:placeholder-shown)~label {
  color: var(--ds-text);
}

.floating-input-wrapper:focus-within {
  border-color: transparent;
  background: transparent;
}

/* !important: over the inline color websocket_utils.js sets (and more) */
input:-webkit-autofill,
input:-webkit-autofill-strong-password,
input:-webkit-autofill-strong-password-viewable,
input:-webkit-autofill-and-obscured {
  background-color: var(--White);
  background-image: none;
  color: var(--Black) !important;
  -webkit-box-shadow: 0 0 0 62.5rem var(--White) inset !important;
  box-shadow: 0 0 0 62.5rem var(--White) inset !important;
  -webkit-text-fill-color: var(--Black);
  transition: background-color 5000s ease-in-out 0s;
}

/* =======================
   HOMEPAGE STYLES
   ======================= */

.garment-size-grid label {
  font-size: 1rem;
  font-family: var(--font-family-open-sans);
  font-weight: normal;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.garment-size-actions,
.save-agreement-actions,
#exportPopupModal .actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2rem;
  gap: 1.25rem;
}

.homepage-upload-guide-popup-content-body ul,
#homepage-upload-guide-popup-content ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  list-style: disc inside;
  text-align: left;
}

.homepage-upload-guide-popup-content-body ul li,
#homepage-upload-guide-popup-content ul li {
  font-size: 1rem;
  font-family: var(--font-family-open-sans);
  margin-bottom: 0.5rem;
  text-align: left;
  width: 100%;
}

input:focus {
  outline: none;
}

#continue.button.disabled {
  pointer-events: none;
  opacity: 0.9;
  cursor: not-allowed;
}

#continue.button:hover {
  background-color: var(--Pure-Blue);
  color: var(--White);
}

.save-agreement-modal-pop-up label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: normal;
  font-family: var(--font-family-open-sans);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.save-agreement-modal-pop-up label>input.auth-checkbox {
  vertical-align: top;
  margin-top: -1.375rem;
}

/* =======================
   LIBRARY STYLES
   ======================= */

.library_page-view-btn.active {
  background: var(--Pure-Blue);
  color: var(--White);
}

.library_page-list-view .library_page-pattern-card button {
  margin-top: 0.5rem;
  background: var(--Pure-Blue);
  color: var(--White);
  border: none;
  border-radius: 0.25rem;
  padding: 0.375rem 1rem;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.15s;
}

.library_page-list-view .library_page-pattern-buttons-list button {
  background: var(--Pure-Blue);
  color: var(--White);
  border: none;
  border-radius: 0.25rem;
  padding: 0.5625rem 1.375rem;
  margin-left: 0.375rem;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.0625rem;
  position: relative;
}

.library_page-grid-view .library_page-pattern-card button {
  margin-top: 0.5rem;
  background: var(--Pure-Blue);
  color: var(--White);
  border: none;
  border-radius: 0.25rem;
  padding: 0.375rem 1rem;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.15s;
}

/* !important: over h2's !important (and more) */
.version-header {
  font-weight: bold !important;
  font-size: 1.25rem !important;
  font-family: var(--font-family-open-sans) !important;
}

/* =======================
   SETTINGS STYLES
   ======================= */

.settings-page .settings-sidebar a {
  text-decoration: none;
  color: var(--Black);
  font-weight: 500;
  font-family: var(--font-family-roboto);
  font-size: 1.125rem;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: background 0.15s, color 0.15s;
}

/* =======================
   WORKSPACE STYLES
   ======================= */

#trial-pattern-count {
  z-index: 1000;
  pointer-events: auto;
}

/* --- INSTRUCTIONS POPUP STYLES --- */

.instructions-tab.active {
  color: var(--black);
  background: var(--White);
}

.instructions-section button {
  background: #d2ecff;
  border: none;
  border-radius: 0.3125rem;
  padding: 0.5625rem 1.375rem;
  margin-right: 0.5rem;
  font-weight: bold;
  color: #007bff;
}

.workspace-body .toolbar-btn.active,
.workspace-body .toolbar-btn.active:hover,
.workspace-body .toolbar-btn.active:focus {
  background-color: var(--White);
  color: var(--Black);
  text-decoration: underline;
  text-underline-offset: 0.375rem;
  text-decoration-thickness: 0.1875rem;
  text-decoration-color: var(--Pure-Blue);
}

/* --- EXPORT POPUP STYLES --- */

/* !important: over .workspace-body .fullscreen-active… */
.canvas-container,
#canvas {
  touch-action: none !important;
  /* Prevent browser pinch-zoom and pan */
}

/* !important: over .workspace-body .canvas-tool-btn:ho… (and more) */
.workspace-body .canvas-tool-btn.active,
.canvas-tool-btn.active,
.workspace-body .canvas-tool-btn:active,
.canvas-tool-btn:active {
  background: #e7f1fb !important;
  border-color: var(--Pure-Blue) !important;
  color: var(--Pure-Blue) !important;
  box-shadow: 0 0 0 0.125rem rgba(0, 123, 255, 0.2) !important;
}

/* A width box with its way back (to the book's widths, or the seams' width) */
.seam-size-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seam-size-row input {
  flex: 1;
  min-width: 0;
}

/* Add facing, on while the next click picks the edge to face. */
.seam-size-reset.active {
  background: #1d3a5f;
  border-color: #1d3a5f;
  color: var(--White, #fff);
}

.workspace-tab.active {
  background: var(--White);
  color: var(--Black);
}

.workspace-tab-section input[type="range"] {
  width: 100%;
}

.workspace-tab-section input[type="number"] {
  width: 5rem;
  margin-right: 0.5rem;
  border-radius: 0.375rem;
  border: 0.0625rem solid var(--Dusty-Gray);
  padding: 0.375rem;
}

.workspace-tab-section select {
  width: 100%;
  padding: 0.375rem;
  border-radius: 0.375rem;
  border: 0.0625rem solid var(--Dusty-Gray);
}

.workspace-body .control-group label {
  display: block;
  margin-bottom: 0.3125rem;
  font-size: 0.9em;
}

.parametric-pattern-editor-section input[type="number"],
.parametric-pattern-editor-section select {
  width: 100%;
  padding: 0.0625rem;
}

.parametricPanelResetBtn,
.parametricPanelSaveBtn,
.parametric-pattern-editor-section button {
  padding: 0.5625rem 1.375rem;
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
  margin-left: 0.3125rem;
  margin-right: 0.3125rem;
  background-color: var(--Pure-Blue);
  border: 0.0625rem solid var(--Pure-Blue);
  border-radius: 1.25rem;
  color: var(--White);
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  font-family: var(--font-family-roboto);
  font-weight: 500;
}

.parametric-pattern-editor-section button:hover {
  background-color: var(--Pure-Blue);
}

/* --- Parametric panel input/select style --- */
.parametric-pattern-editor-section input[type="number"],
.parametric-pattern-editor-section input[type="text"],
.parametric-pattern-editor-section select {
  box-sizing: border-box;
  border-radius: 0.125rem;
  border-width: 0.0625rem;
  border-style: solid;
  border-color: #ccc;
  color: var(--black);
  background-color: var(--White);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
  text-align: left;
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
}

/* Remove custom background and arrow for select, use native look */
/* !important: over .workspace-body #main_right */
.parametric-pattern-editor-section select {
  background-image: none !important;
  cursor: default;
}

/* !important: over .parametric-pattern-editor-section… */
input::-webkit-inner-spin-button {
  appearance: auto;
  display: block;
  position: relative;
  cursor: default;
  height: 1.5em;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
  -webkit-user-select: none;
  background: transparent !important;
  border-radius: 0% !important;
  transition: background 0.18s;

}

/* !important: over .workspace-body #main_right */
select[disabled] {
  background: var(--White);
  color: var(--black);
  border: 0.0625rem solid #ccc;
  pointer-events: none;
  opacity: 1;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important;
  padding-left: 0.3125rem;
}

/* Every drop-down's arrow the same in every browser (16 Nov 2026, Israa's boss: "in chrome the drop down arrows seem too
   close to the border"): each browser drew its own, Chrome's about 4 px from the right edge. Now the browser's arrow is
   off and one is drawn, 12 px in from the right edge, with room for it (34 px) in the padding: the same in Chrome,
   Firefox and Safari, a light one where the page or the workspace is dark. Not on a list box, a disabled drop-down
   (shown without an arrow, above) or the New Library's pills, which draw theirs at the same inset
   (new_design/library.css). In forced colours (Windows' high contrast) the browser's own arrow, in the system's colours.
   !important: over each drop-down's own background and padding (shorthands in their rules, and inline styles). */
select:not([multiple]):not(:disabled):not(.nd-lib-select) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-arrow, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.25 1.5 6 6.25 10.75 1.5' fill='none' stroke='%234A5868' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")) !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px 8px !important;
  padding-right: 34px !important;
}
html[data-site-dark]:not(.workspace-body) select,
body[data-canvas-look="dark"] select {
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.25 1.5 6 6.25 10.75 1.5' fill='none' stroke='%23A9B1C6' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* !important: over the drawn arrow's !important above */
@media (forced-colors: active) {
  select:not([multiple]):not(:disabled):not(.nd-lib-select) {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: auto;
    background-image: none !important;
  }
}

/* =======================
   LEGAL PAGE STYLES
   ======================= */

.legal-page .section a {
  color: var(--Pure-Blue-green);
  text-decoration: underline;
}

/* !important: over #userProfileBtn:active */
#data-sources details>div {
  width: 100% !important;
  box-sizing: border-box;
}

/* =======================
   CHATBOT STYLES
   ======================= */

/* !important: over the New design's .help-menu-on #chatbot-button.help-… */
#chatbot-button {
  position: fixed;
  bottom: 0.625rem;
  right: 0.625rem;
  z-index: 9999;
  background: var(--Pure-Blue);
  border: none;
  outline: none;
  cursor: grab;
  border-radius: 50%;
  box-shadow: 0 0.125rem 0.75rem var(--Box-Shadow);
  transition: box-shadow var(--transition);
  width: 3.5rem !important;
  height: 3.5rem !important;
  min-width: 3.5rem !important;
  min-height: 3.5rem !important;
  max-width: 3.5rem;
  max-height: 3.5rem !important;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  border: transparent 0.3125rem solid;
}

#chatbot-button:active {
  cursor: grabbing;
}

#chatbot-popup {
  position: fixed;
  bottom: 0.625rem;
  right: 0.625rem;
  width: 32.5rem;
  /* (100%, not 95vw: the window less its scroll bar, so the chat keeps 10 px from each side; 95vw ran 2 px off the left
     of a narrow window with a scroll bar. 21 Nov 2026.) */
  max-width: calc(100% - 1.25rem);
  height: 26.25rem;
  background: var(--White);
  border-radius: 1rem;
  box-shadow: 0 0.25rem 2rem var(--Box-Shadow);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  animation: fadeIn var(--transition);
}

/* How chats are used and kept (chatbot_utils.js puts it under the header). In the window, so that a page's own
   paragraph style (Settings: 1rem) doesn't make it bigger there (UAT CHT-01). */
#chatbot-popup .chatbot-privacy-note {
  margin: 0;
  padding: 6px 12px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #555;
  background: #f6f7fb;
  border-bottom: 1px solid #e3e5ee;
}
#chatbot-popup .chatbot-privacy-note a { color: inherit; text-decoration: underline; }
.chatbot-header {
  background: var(--Pure-Blue);
  color: var(--White);
  font-weight: bold;
  padding: 0.875rem 1rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbot-close {
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--White);
  cursor: pointer;
  font-weight: bold;
  align-items: flex-end;
  justify-content: flex-end;
  margin: 0%;
}

#chatbot-new {
  background: none;
  border: none;
  color: var(--Pure-Blue);
  cursor: pointer;
  font-size: 0.85em;
  padding: 0.5rem;
  text-align: center;
  width: 100%;
}

#chatbot-new:hover {
  text-decoration: underline;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: var(--White);
  font-size: 1em;
}

.chatbot-message {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.chatbot-message.user {
  text-align: right;
  color: var(--text-blue);
  font-weight: 500;
  border: 0.0625rem solid var(--Dusty-Gray);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--Dusty-Gray);
  width: fit-content;
  margin-left: auto;
  margin-right: 0%;
}

.chatbot-message.bot {
  text-align: left;
  color: var(--Black);
  font-weight: 500;
}

#chatbot-form {
  display: flex;
  border-top: 0.0625rem solid var(--Dusty-Gray);
  padding: 0.625rem;
  background: var(--White);
  border-radius: 0 0 1rem 1rem;
}

#chatbot-input {
  flex: 1;
  border: 0.0625rem solid var(--Dusty-Gray);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 1em;
  outline: none;
  margin-right: 0.5rem;
}

#chatbot-form button {
  background: var(--Pure-Blue);
  color: var(--White);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1.125rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  transition: background var(--transition);
}

#chatbot-form button:hover {
  background: var(--Pure-Blue);
}

[data-custom-class="body"],
[data-custom-class="body"] * {
  background: transparent;
}

/* !important: over h2's !important (and more) */
[data-custom-class="title"],
[data-custom-class="title"] * {
  font-family: Arial !important;
  font-size: 1.625rem !important;
  color: var(--Black) !important;
}

/* !important: over h2's !important (and more) */
[data-custom-class="subtitle"],
[data-custom-class="subtitle"] * {
  font-family: Arial !important;
  color: var(--Boulder) !important;
  font-size: 0.875rem !important;
}

/* !important: over h2's !important (and more) */
[data-custom-class="heading_1"],
[data-custom-class="heading_1"] * {
  font-family: Arial !important;
  font-size: 1.1875rem !important;
  color: var(--Black) !important;
}

/* !important: over h2's !important (and more) */
[data-custom-class="heading_2"],
[data-custom-class="heading_2"] * {
  font-family: Arial !important;
  font-size: 1.0625rem !important;
  color: var(--Black) !important;
}

/* !important: over h1's !important (and more) */
[data-custom-class="body_text"],
[data-custom-class="body_text"] * {
  color: #595959 !important;
  font-size: 0.875rem !important;
  font-family: Arial !important;
}

/* !important: over h1's !important (and more) */
[data-custom-class="link"],
[data-custom-class="link"] * {
  color: var(--Pure-Blue) !important;
  font-size: 0.875rem !important;
  font-family: Arial !important;
  word-break: break-word !important;
}

/* =======================
   TRIAL BANNER STYLES
   ======================= */

.trial-pattern-count {
  display: none;
  margin-left: 9.5%;
  margin-top: 1rem;
  margin-bottom: 0rem;
  gap: 0.25rem;
}

.trial-pattern-count-content {
  position: static;
  transform: none;
  color: var(--Red);
  background: var(--White);
  padding: 0.375rem 1rem;
  border-radius: 0.625rem;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.06);
  text-align: center;
  pointer-events: none;
  width: fit-content;
  font-size: 1rem;
  font-weight: normal;
  font-family: var(--font-family-open-sans);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* space between count and info icon */
}

.trial-pattern-count-info-popup-message {
  font-size: 1rem;
  font-family: var(--font-family-open-sans);
  font-weight: normal;
  color: var(--Black);
  margin-bottom: 1rem;
}

/* Show when needed */
.trial-pattern-count.active {
  display: block;
}
body.trial-banner-shown #chatbot-button { bottom: calc(var(--trial-banner-height, 0px) + 0.625rem); }

.trial-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  /* (The window's width, its padding inside: 100vw and the padding on top of it ran Close 13-32 px off the window's
     right side, and the words off a phone's. 21 Nov 2026.) */
  box-sizing: border-box;
  width: 100%;
  min-height: 3.5rem;
  background: var(--trial-period-light-red-colour);
  color: var(--Black);
  /* (As much room above its words as below its buttons: they sat 7 px under its top edge. 21 Nov 2026.) */
  padding: 0.75rem 2rem 0.875rem 2rem;
  z-index: 999999;
  -webkit-backdrop-filter: blur(0.0625rem);
  backdrop-filter: blur(0.0625rem);
  border-top: 0.0625rem solid var(--trial-period-medium-red-colour);

  /* Flex row alignment */
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
}

/* (1.25rem since 22 Nov 2026, Lucy: at 2rem it took two big lines on tablets and small laptops.) */
.trial-banner-message {
  font-family: var(--font-family-roboto);
  font-weight: bold;
  font-size: 1.25rem;
  text-align: center;
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 0;
}

/* =======================
   MEDIA QUERIES
   ======================= */

/* 992px and below: Tablets */
/* !important: over .auth-body .form-inner > * */
@media (max-width: 992px) {

  /* Its column's width: the window's (100vw) pushed the log-in form 70 px off the left edge from 769 to 992 px wide,
     where the page still has its picture beside the form (UAT ACS-03, 200% zoom). */
  .form-inner {
    width: 100% !important;
  }
}

/* 768px and below: Tablets/large phones */
@media (max-width: 768px) {

  .outside-main-nav {
    gap: 0.75rem;
  }

  .nav-button-secondary,
  .nav-button-primary {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  /* !important: over the New design's .index-hero-image-wrapper */
  .index-hero-image-wrapper {
    display: flex !important;
    position: relative;
    min-height: 25.1875rem;
  }

  /* !important: over .auth-body .form-inner > * */
  .form-inner {
    width: 100vw !important;
    min-width: 0;
    max-width: 100vw !important;
  }

  .user-profile {
    margin-top: 0.625rem;
  }

  .outside-main-footer-top {
    flex-direction: column;
    padding-bottom: 2rem;
    /* gap: 3rem;
    padding-bottom: 2.5rem; */
  }

  .outside-main-footer-links-block {
    flex-direction: column;
    padding: 1.5rem 0 0 0;
    /* font-size: 0.85rem;
    max-width: 6.6875rem;
    padding: 0.5625rem 0.875rem; */
  }
}

/* 600px and below: Phones */
@media (max-width: 600px) {
  /* The type scale a step down on a phone (13 Nov 2026, the style system): the headings were larger here than on a
     laptop (64 / 36 / 30 / 24 px, the last in Roboto bold). Now 32 / 24 / 20 / 17 px, in the headings' own font. */
  :root {
    --ds-size-1: 2rem;
    --ds-size-2: 1.5rem;
    --ds-size-3: 1.25rem;
    --ds-size-4: 1.0625rem;
  }

  /* !important: over new_design/settings's .nd-title */
  h1 {
    font-size: var(--ds-size-1) !important;
  }

  /* !important: over make_help's body.homepage .mk-guide-title */
  h2 {
    font-size: var(--ds-size-2) !important;
  }

  /* !important: over make_help's body.homepage .mk-guide-head */
  h3 {
    font-size: var(--ds-size-3) !important;
  }

  /* !important: over the New design's .index-hero-content h4 (and more) */
  h4 {
    font-size: var(--ds-size-4) !important;
    margin: 0rem !important;
  }

  /* !important: a utility: wins wherever it is put */
  .body1 {
    font-size: 1rem !important;
  }

  /* !important: a utility: wins wherever it is put */
  .body2 {
    font-size: 1rem !important;
  }

  /* !important: a utility: wins wherever it is put */
  .hide-desktop {
    display: inline-block !important;
  }

  /* !important: a utility: wins wherever it is put */
  .hide-mobile {
    display: none !important;
  }

  .outside-main-nav-header-section {
    padding: 0.8125rem 0rem;
  }

  /* !important: over the New design's .outside-main-nav-logo */
  .outside-main-nav-logo {
    font-weight: 500 !important;
    font-size: 1.25rem !important;
  }

  /* !important: over .settings-page .btn-rounded's !important (and more) */
  .outside-main-nav .btn-rounded.btn-primary,
  .outside-main-nav .btn-rounded.btn-secondary {
    border-radius: 0 !important;
    color: #000 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 1rem !important;
    padding: 0.5625rem 0.3rem !important
  }

  .admin-activity-search {
    max-width: 100%;
    width: 100%;
    font-size: 1em;
    padding: 0.75rem 2.75rem 0.75rem 0.875rem;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    text-align: center;
  }

  /* !important: over .btn-rounded's !important */
  .name-row>div {
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
  }

  #continue.button {
    width: 95vw;
    margin: 0 2vw 2em 2vw;
    min-width: 0;
    max-width: 98vw;
  }

  /* !important: over .auth-body .form-inner > * */
  .form-inner,
  .floating-input-wrapper {
    min-width: 0;
    max-width: 80vw !important;
  }

  .floating-input-wrapper label {
    font-size: 0.775rem;
  }

  #main_right {
    padding: 1rem;
  }

  /* !important: over style-dark's :where(html[data-site-dark]:not(.wo… (and more) */
  .settings-page .btn-rounded,
  .settings-page .btn-primary,
  .settings-page .btn-secondary,
  .settings-page .btn-danger {
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: 0 !important;
    font-size: 1rem !important;
    font-family: var(--font-family-roboto) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    display: inline;
    margin: 0 1rem 0 0 !important;
    text-align: left !important;
  }

  /* A hidden one stays hidden (16 Nov 2026: "display: inline" above showed Settings' hidden buttons on a phone, such as
     "Keep my current plan" with no change waiting). */
  .settings-page :is(.btn-rounded, .btn-primary, .btn-secondary, .btn-danger)[hidden] {
    display: none;
  }

  /* !important: over the New design's .nd-legal .legal-page .nd-legal-tab… (and more) */
  .nav-link {
    white-space: normal !important;
    word-break: break-word;
    font-size: 1rem !important;
    padding: 0.5625rem 0.3rem !important;
    display: block;
    max-width: 100%;
    text-align: center;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popupIn {
  from {
    transform: scale(0.96) translateY(30px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* "How To" button hover (formerly inline onmouseover/onmouseout, which a strict CSP blocks). */
/* !important: over the inline background a script sets (and more) */
#how-to-btn:hover {
    background: #f4f4f4 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14) !important;
}

/* Cookie choices (script/site/gtag-config.js), above the page, Berry's button and the checkout window. */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 10001;
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--White);
  border: 0.125rem solid var(--Pure-Blue);
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.18);
}

.cookie-banner[hidden] {
  display: none;
}

/* !important: over .cookie-banner .cookie-banner-text a */
.cookie-banner .cookie-banner-text {
  margin: 0;
  font-family: var(--font-family-open-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #222 !important;
  text-align: left;
}

.cookie-banner .cookie-banner-text a {
  color: var(--Pure-Blue);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .cookie-banner-actions > button {
    flex: 1;
  }
}
/* The choices leave the Help button's corner free where they would reach it (16 Nov 2026, Israa: nothing covers Help,
   and Help covers nothing): they end where Help starts, a pill on a laptop or a tablet, a circle on a phone. */
@media (max-width: 1040px) {
  body:has(#chatbot-button.help-fab) .cookie-banner { right: 8.25rem; }
}
@media (max-width: 600px) {
  body:has(#chatbot-button.help-fab) .cookie-banner { right: 4.5rem; }
}
/* While the choices show, the end of the page scrolls clear of them (19 Nov 2026, Israa: "make sure there are no other
   spacing issues": the footer's last links, Cookie policy and Cookie settings among them, and the copyright line were
   under them): the footer's white goes on under the copyright line as far as they reach (--cookie-banner-room,
   script/site/gtag-config.js). The landing page, Pricing, How to use, Log in, Sign up and Reset password; gone with
   the choices.
   !important: over the footer's own padding (.site-outside-main-footer, here and style-new.css) */
html:not(.workspace-body) body:is(.index-page, .pricing-page, .howto-page, .auth-page):has(> .cookie-banner:not([hidden])) .site-outside-main-footer {
  padding-bottom: calc(2rem + var(--cookie-banner-room, 0px)) !important;
}

/* The workspace's short messages (canvasUtils.showNotice), above the canvas and its toolbars. Text only, so the mouse
   goes through it to the canvas: it sits bottom centre, where a skirt's hem often is, and while it said "Click on the
   seam allowance beside the edge to face" it took that click (found filming the how-to videos, 13 Nov 2026). */
.workspace-notice {
  pointer-events: none;
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 10002;
  max-width: min(36rem, calc(100vw - 2rem));
  padding: 0.7rem 1.1rem;
  border-radius: 0.6rem;
  background: #1f2430;
  color: #fff;
  font-family: var(--font-family-open-sans);
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.25);
}

.workspace-notice[hidden] {
  display: none;
}

.workspace-notice[data-tone="error"] {
  background: #b71c1c;
}

.selection-measure-row button:disabled {
  opacity: 0.45;
  cursor: default;
}
.compare-item small { color: #5b6582; }
.pattern-check .check-item button { flex-shrink: 0; padding: 0.1rem 0.55rem; border: 1px solid var(--Pure-Blue); border-radius: 0.3rem; background: #fff; color: var(--Pure-Blue); font: inherit; font-size: 0.75rem; cursor: pointer; }

.selection-measure-row input {
  width: 4.5rem;
  padding: 0.15rem 0.3rem;
  text-align: right;
}

.selection-measure-row button {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--Pure-Blue);
  border-radius: 0.3rem;
  background: var(--Pure-Blue);
  color: var(--White);
  cursor: pointer;
}
.grading-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.size-panel .link-button,
.profile-form .link-button,
.body-profiles-list .link-button {
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--Pure-Blue, #0025e6);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}
/* The window to type measurements in, and the tables: wider than a question. */
dialog.app-dialog:has(.profile-form) { width: min(34rem, calc(100vw - 2rem)); }
.profile-form { display: flex; flex-direction: column; gap: 0.6rem; }
.profile-field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; font-weight: 600; }
.profile-field-hint { font-size: 0.75rem; font-weight: 400; line-height: 1.4; }
.profile-field :is(input, select) {
  font: inherit;
  font-weight: 400;
  padding: 0.45rem 0.6rem;
  border: 1px solid #c9cdd8;
  border-radius: 0.5rem;
  min-height: 2.5rem;
}
.profile-own { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.5rem 0.75rem; }
.profile-more > summary { cursor: pointer; font-size: 0.875rem; padding: 0.25rem 0; }
.profile-more .profile-grid { margin-top: 0.5rem; }
.profile-form-error { margin: 0; min-height: 1.2em; color: var(--Red, #b3261e); font-size: 0.875rem; }
body[data-canvas-look="dark"] :is(.size-table-box, .profile-field :is(input, select)) { border-color: var(--ws-dark-line); }

/* Keyboard focus always shows (several rules took the outline away, so Tab moved through the garment window, the
   upload zones and the menus with nothing marked). :focus-visible: a mouse click on a button shows nothing. */
/* !important: over style-dark's :where(html[data-site-dark]:not(.wo… (and more) */
:where(a, button, select, textarea, summary, [tabindex], [role="button"],
       input:not([type="text"]):not([type="email"]):not([type="password"]):not([type="number"]):not([type="search"])):focus-visible {
  outline: 3px solid var(--Pure-Blue) !important;
  outline-offset: 2px !important;
}

/* =====================================================================
   HOW TO USE PAGE (how-to-use.html)
   A contents list beside white section cards on desktop; one column with a "Jump to" menu on a phone.
   ===================================================================== */

.outside-main-nav .nav-link[aria-current="page"] {
  color: var(--Pure-Blue);
}

.howto-toc a {
  display: flex;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  color: var(--text-blue);
  font-family: var(--font-family-roboto);
  font-size: 0.9375rem;
  line-height: 1.35;
  transition: background var(--transition), color var(--transition);
}

.howto-toc a:hover {
  background: var(--bg-light);
}

.howto-toc a[aria-current="location"] {
  background: var(--Pure-Blue-light);
  color: var(--Pure-Blue);
  font-weight: 500;
}

.howto-jump select {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-weight: 400;
  padding: 0.5rem 0.625rem;
  border: 0.0625rem solid var(--Grid-Gray);
  border-radius: 0.5rem;
  background: var(--White);
  color: var(--text-blue);
}

.howto-section a:not(.btn-rounded) {
  color: var(--Pure-Blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.howto-section strong {
  color: var(--color-text-dark);
}

/* A link to the guide from the app: the homepage's upload guide, the workspace's i panel, the export window. */
/* !important: over make_help's body.homepage .mk-guide-content .ho… */
.howto-link-line {
  margin: 0.5rem 0 0 !important;
}

/* !important: over .outside-main-footer-links-list a:h… */
.howto-link-line a {
  color: var(--Pure-Blue) !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 500;
}

/* ---- Version history (version_history.js, history_drawer.js; 13 Nov 2026) ----
   Saves grouped by day with what each changed, the autosaves before each folded under it, a small picture, one main
   action (Open or Restore) and the rest under "⋯". The same list in the Library's window and the workspace's drawer. */
#versionControlBtn.active {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}
.vh-thumb svg { width: 100%; height: 100%; }

/* ---- Panels with less to read (13 Nov 2026) ----
   The workspace's tabs and piece windows: a title, settings in rows with their units inside the boxes, one line of
   help under a setting (the rest under "More"), pictures for choices that are shapes, and the main button at the foot. */
.icon-choice button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.375rem 0.25rem 0.3125rem;
  border: 1px solid var(--Dusty-Gray);
  border-radius: 0.5rem;
  background: var(--White);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.icon-choice button:hover {
  border-color: var(--Gray-Divider);
}
.icon-choice button[aria-checked="true"] {
  border-color: var(--Pure-Blue);
  background: var(--Pure-Blue-light);
  color: var(--Pure-Blue);
  font-weight: 600;
}
.icon-choice svg {
  width: 2.5rem;
  height: 1.75rem;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.piece-tool-primary.active,
.piece-tool-primary[aria-pressed="true"] {
  background: var(--text-blue);
}
.piece-tool-secondary {
  border: 1px solid var(--Dusty-Gray);
  background: var(--White);
  color: var(--text-blue);
}
.piece-tool-secondary:hover {
  border-color: var(--Pure-Blue);
}

/* The workspace's own questions (app_dialog.js), in place of the browser's alert, confirm and prompt (13 Nov 2026):
   the look of the piece windows, the answer buttons at the foot. */
dialog.app-dialog {
  width: min(28rem, calc(100vw - 2rem));
  box-sizing: border-box;
  padding: 1.25rem 1.4rem 1.1rem;
  border: 1px solid #e3e3ea;
  border-radius: 0.9rem;
  background: var(--White, #fff);
  color: var(--Dark-Blue, #000646);
  font-family: var(--font-family-open-sans, "Open Sans", sans-serif);
  box-shadow: 0 0.75rem 2rem rgba(0, 6, 70, 0.18);
}
dialog.app-dialog::backdrop {
  background: rgba(0, 6, 70, 0.28);
}
dialog.app-dialog form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
}
.app-dialog-title {
  font-family: var(--font-family-poppins, Poppins, sans-serif);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
}
.app-dialog-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #3b4558;
}
.app-dialog-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.app-dialog-input {
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c9cdd8;
  border-radius: 0.5rem;
}
.app-dialog-input:focus-visible {
  outline: 2px solid var(--Blue, #0025e6);
  outline-offset: 1px;
}
.app-dialog-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.35rem;
}
/* !important: over h1's !important */
.app-dialog-buttons .btn-rounded {
  font-size: 1rem !important;
  padding: 0.45rem 1.15rem;
}
/* Several answers of the question's own (askChoice, 16 Nov 2026: "You have a pattern in progress"): one under another,
   the width of the window, the suggested one first. */
.app-dialog-buttons.app-dialog-choices {
  flex-direction: column;
  align-items: stretch;
}
.projector-panel button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  background: #2a2f3c;
  color: #fff;
  border: 1px solid #4a5263;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}
.projector-panel button[aria-pressed="true"] { background: #f2c94c; color: #111; border-color: #f2c94c; }
.projector-panel button:focus-visible { outline: 3px solid #7fb3ff; outline-offset: 2px; }
.piece-menu-note {
  color: #8a93a6;
  font-weight: 600;
}
.piece-menu-item:hover,
.piece-menu-item:focus-visible,
.piece-menu-item.open {
  background: #e3eaff;
  color: #0025e6;
  outline: none;
}
.piece-menu-flyout {
  min-width: 13rem;
}
.piece-menu-flyout .piece-menu-icon {
  display: none;
}
/* The bar above the piece chosen (setting "A bar above the piece"). */
.piece-bar {
  position: fixed;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #1d2a4d;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 6, 70, 0.25);
}
.piece-bar[hidden] {
  display: none;
}
.piece-bar-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.piece-bar-button:hover,
.piece-bar-button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}
.piece-bar-button.off {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ======================================================================================================================
   The workspace's layouts (workspace_theme.js, 13 Nov 2026), on <body data-ws-theme>: "grouped" (as it was, the
   quick tools as one compact icon bar), "curves-a" (A with curves: tabs grow out of the header) and "curves-b" (B with
   curves: a tab above, a tab below); One frame is A underneath. What a layout adds is hidden in the others. (The
   classic layout and Tablet were taken out on 20 Nov 2026.)
   ====================================================================================================================== */
/* (Before workspace_theme.js has measured the page: the header and toolbar as they are at a desktop width.) */
:root {
  --ws-top: 88px;
  --ws-gap: 43px;
  --ws-canvas-top: 131px;
}

/* --- The action tab hanging from the header (A and B): rounded buttons inside it, Save last and blue --- */
.ws-seg.on { background: #fff; color: #0025e6; box-shadow: 0 1px 3px rgba(0, 6, 70, 0.15); }

/* --- A: the quick tools as a rail down the left, grown out of the header with a curved join --- */
/* A: the canvas leaves room for the side panel; the i and chat buttons beside it. */
body[data-ws-theme="curves-a"] #main_right { margin-right: var(--ws-side-w, 340px); }
/* !important: over the New design's .nd-has-tabbar #chatbot-button */
body.trial-banner-shown[data-ws-theme="curves-b"] #chatbot-button { bottom: calc(46px + var(--trial-banner-height, 0px)) !important; }
body[data-ws-theme] .workspace-notice { bottom: calc(56px + var(--trial-banner-height, 0px)); }
body[data-ws-theme="curves-b"] .workspace-notice { bottom: calc(112px + var(--trial-banner-height, 0px)); }
/* A: the notice over the canvas, not under the side panel. */
body[data-ws-theme="curves-a"] .workspace-notice { left: calc(50% - var(--ws-side-w, 340px) / 2); max-width: min(36rem, calc(100vw - var(--ws-side-w, 340px) - 2rem)); }
body[data-ws-theme="curves-a"] #infoBtn:not([data-ws-place]),
body[data-ws-theme="curves-a"] #uploadSvgsBtn:not([data-ws-place]) { visibility: hidden; }

/* --- B: one tab with every action and the menus; the modes and zoom in a dock rising from a status bar --- */
.ws-dock-btn:hover { background: #eef0f4; }
.ws-dock-btn.on { background: #e3eaff; color: #0025e6; }
/* !important: over body.trial-banner-shown[data-ws-the… */
body[data-ws-theme="curves-b"] #chatbot-button { bottom: 46px !important; }
/* Settings: the layouts' radio buttons are what the cards set (layout_picker.js), not shown. */
/* !important: over .settings-page #main_right div.acce… */
.theme_choices[hidden] { display: none !important; }

/* The workspace layouts as cards with pictures (layout_picker.js): Settings > Preferences and the workspace's
   Preferences tab (two to a row there). */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 0.25rem;
  max-width: 52rem;
}
.layout-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.layout-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1.5px solid #e3e3ea;
  border-radius: 0.75rem;
  background: #fff;
  color: #000646;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.layout-card:hover { border-color: #b8c3f5; }
.layout-card:focus-visible { outline: 2px solid #0025e6; outline-offset: 2px; }
.layout-card.on { border-color: #0025e6; background: #f4f6ff; box-shadow: 0 0 0 1px #0025e6 inset; }
.layout-pic { display: block; aspect-ratio: 16 / 10; border-radius: 0.4rem; overflow: hidden; }
.layout-name { font-weight: 600; font-size: 0.875rem; }
.layout-card.on .layout-name { color: #0025e6; }
.layout-note { font-size: 0.75rem; color: #5f6b7a; line-height: 1.35; }
.layout-grid.compact .layout-card { padding: 0.35rem; gap: 0.25rem; }
.layout-grid.compact .layout-name { font-size: 0.75rem; line-height: 1.25; }
/* The recommended layout says so on its card, in words (16 Nov 2026, layout_picker.js). */
.layout-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: #e3eaff;
  color: #0025e6;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: 0.08em;
  white-space: nowrap;
}
.layout-grid.compact .layout-badge { margin-left: 0.25rem; padding: 0 0.35rem; font-size: 0.625rem; }

/* ---- The workspace's recommendations 2, 4, 6, 8, 11 and 12 (13 Nov 2026) ---- */
body[data-canvas-look="dark"] #workspace-tabs-content :is(p, .pref-hint, .panel-lead, .helper_text, .piece-tool-hint, small),
body[data-canvas-look="dark"] #parametricPatternPanel :is(p, small) { color: var(--ws-dark-muted); }

/* 5. Undo on the message after a join, a delete or a move (undo_notice.js, canvas_utils.showNotice). */
.workspace-notice.has-action:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}
.workspace-notice :is(.workspace-notice-undo, .workspace-notice-action) {
  flex: none;
  margin: -4px -6px -4px 0;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b9c8ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.workspace-notice :is(.workspace-notice-undo, .workspace-notice-action):hover { background: rgba(255, 255, 255, 0.12); }
.workspace-notice :is(.workspace-notice-undo, .workspace-notice-action):focus-visible { outline: 2px solid #b9c8ff; outline-offset: 1px; }

/* ---- The redesign review's fixes for every page (13 Nov 2026) ---- */

/* A Menu on a phone (site_chrome.js): the header kept only Log in and Sign up, or the avatar, and hid How to use,
   Pricing, Make a pattern and Library with nothing to show they were there. */
.site-menu-btn,
.site-menu-panel { display: none; }
@media (max-width: 600px) {
  .site-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    margin-left: 2px;
    padding: 0;
    border: 1px solid #D5D8E0;
    border-radius: 10px;
    background: #FFFFFF;
    color: #000646;
    cursor: pointer;
  }
  .site-menu-btn.open { border-color: #0025E6; background: #E9F0FF; color: #0025E6; }
  /* Signed in, Make a pattern and Library are in the Menu: beside the avatar and the Menu they broke ("Libra / ry"),
     as Settings already hides them (hide-mobile). */
  .outside-main-nav:has(.site-menu-btn):has(#userProfile) > .nav-link { display: none; }
  .site-menu-btn:focus-visible { outline: 2px solid #0025E6; outline-offset: 2px; }
  .site-menu-panel:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 8px 16px 14px;
    background: #FFFFFF;
    border-top: 1px solid #E3E3EA;
    box-shadow: 0 12px 24px rgba(0, 6, 70, 0.12);
    z-index: 10050;
  }
  .site-menu-panel a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 10px;
    border-radius: 10px;
    font-family: var(--font-family-roboto);
    font-size: 1.0625rem;
    font-weight: 500;
    color: #000646;
    text-decoration: none;
  }
  .site-menu-panel a:hover,
  .site-menu-panel a:focus-visible { background: #F4F6FF; outline: none; }
  .site-menu-panel a[aria-current="page"] { color: #0025E6; }
  /* The site's look at the foot of the Menu (site_look.js). */
  .site-menu-look {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 10px 10px 0;
    border-top: 1px solid #E3E3EA;
  }
  .site-menu-look-label {
    margin-right: auto;
    font-family: var(--font-family-roboto);
    font-size: 0.9375rem;
    color: #4A5868;
  }
  .site-menu-look button {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #D5D8E0;
    border-radius: 999px;
    background: #FFFFFF;
    color: #000646;
    font-family: var(--font-family-roboto);
    font-size: 0.9375rem;
    cursor: pointer;
  }
  .site-menu-look button[aria-checked="true"] { border-color: #0025E6; background: #E9F0FF; color: #0025E6; font-weight: 600; }
  .site-menu-look button:focus-visible { outline: 2px solid #0025E6; outline-offset: 2px; }
}

/* Berry's round button covered the last buttons and words of a page: room is left under every page (not the
   workspace, which scrolls nothing), and on a phone the button is smaller. */
html:not(.workspace-body) body:has(#chatbot-button)::after {
  content: "";
  display: block;
  height: 84px;
}
/* (A page with the site's footer: the room inside the footer, which showed as a grey band under it, 13 Nov 2026.) */
html:not(.workspace-body) body:has(#chatbot-button):has(.site-outside-main-footer)::after { content: none; }
/* Help's corner kept free at the footer, not 84 px of room under it (16 Nov 2026, Israa: less white space at the
   bottom): the copyright row and the link columns end where Help starts, where the window is narrow enough for Help to
   reach them (the reach: Help's pill and its gap from the side, 8rem; a circle on a phone, 4.5rem). */
html:not(.workspace-body) body:has(#chatbot-button) :is(.outside-main-footer-bottom, .outside-main-footer-links-block) {
  padding-right: max(0px, calc(8rem - (100vw - 100%) / 2));
}
@media (max-width: 600px) {
  html:not(.workspace-body) body:has(#chatbot-button) :is(.outside-main-footer-bottom, .outside-main-footer-links-block) {
    padding-right: max(0px, calc(4.5rem - (100vw - 100%) / 2));
  }
}
/* !important: over the width of a rule loaded later (and more) */
@media (max-width: 600px) {
  #chatbot-button {
    width: 3rem !important;
    height: 3rem !important;
    min-width: 3rem !important;
    min-height: 3rem !important;
    max-width: 3rem !important;
    max-height: 3rem !important;
  }
}

/* The token count isn't an error: ink, then amber with two tokens left, red with none (homepage-page.js and
   settings-page.js set tokens-low / tokens-out). */
.trial-pattern-count-content { color: #000646; }
.trial-pattern-count-content.tokens-low { color: #8A4B00; background: #FFF4E5; }
.trial-pattern-count-content.tokens-out { color: #B3261E; background: #FDECEA; }

/* The site in dark (site_look.js, style-dark.css): the phone's "Use a computer or a tablet" card (websocket_utils.js)
   is drawn on the workspace too, which has its own dark look and not the site's sheet, so it is here. */
/* !important: over .resend-verification-btn's !important */
html[data-site-dark] #mobile-block-overlay,
body[data-canvas-look="dark"] #mobile-block-overlay { background: #12151d !important; }
/* !important: over .resend-verification-btn's !important (and more) */
html[data-site-dark] #mobile-block-overlay > div,
body[data-canvas-look="dark"] #mobile-block-overlay > div { background: #1b1f2a !important; box-shadow: none !important; }
/* !important: over h2's !important. (The light ink: the blue as text read 1.9:1 on the dark box, 16 Nov 2026.) */
html[data-site-dark] #mobile-block-overlay h2,
body[data-canvas-look="dark"] #mobile-block-overlay h2 { color: #e7eaf3 !important; }
/* !important: over .resend-verification-btn's !important */
html[data-site-dark] #mobile-block-overlay p,
body[data-canvas-look="dark"] #mobile-block-overlay p { color: #a9b1c6 !important; }

/* ---- What was left from the redesign review (13 Nov 2026, evening: "fix what is left") ---- */

/* Make a pattern: the token count starts clear of the How To button (they overlapped on any window under ~1370 px);
   on a touch screen the drop zones say a photo of a drawing will do (a tablet's file picker offers its camera). */
.trial-pattern-count { margin-left: max(9.5%, 140px); }

/* ---- Phones (13 Nov 2026, Israa): Make a pattern takes photos of the drawings and keeps them for later
   (script/make/phone_drawings.js); the Library is for looking, downloading and sharing, with no editing. ---- */
/* !important: over .hide-desktop's !important */
html.phone-capture :is(.homepage-main, .homepage-footer-btn, #how-to-btn, #trial-pattern-count) { display: none !important; }
/* !important: over .hide-desktop's !important */
html.phone-library :is(.library_page-open-in-workspace-btn, .library_page-rename-pattern-btn, .library_page-duplicate-pattern-btn, .library_page-version-history-btn, .library_page-more) { display: none !important; }

/* One Help button in place of three (site_chrome.js): Berry's button, in its place in every layout, says Help and
   opens a menu (Ask Berry, How-to videos, Keys and tools, The guide); the How To button and the workspace's i are
   hidden, the menu pressing them. A pill with the word on a laptop or a tablet, a circle on a phone. */
/* !important: over the inline display a script sets */
html.help-menu-on #how-to-btn,
html.help-menu-on.workspace-body #infoBtn { display: none !important; }
/* !important: over html.help-menu-on #how-to-btn's !important */
html.help-menu-on #chatbot-button.help-fab > :not(.help-fab-face) { display: none !important; }
/* !important: over #chatbot-button's !important (and more) */
html.help-menu-on #chatbot-button.help-fab {
  width: auto !important;
  max-width: none !important;
  min-width: 3.5rem !important;
  padding: 0 1.15rem 0 0.95rem;
  border-radius: 999px;
  color: #FFFFFF;
  cursor: pointer;
}
.help-fab-face { display: inline-flex; align-items: center; gap: 8px; pointer-events: none; }
.help-fab-word { font-family: var(--font-family-roboto); font-weight: 500; font-size: 1rem; letter-spacing: 0.01em; }
html.help-menu-on #chatbot-button.help-fab:focus-visible { outline: 3px solid #A8B8FF; outline-offset: 2px; }
/* !important: over the New design's .help-menu-on #chatbot-button.help-… */
@media (max-width: 600px) {
  html.help-menu-on #chatbot-button.help-fab { min-width: 3rem !important; padding: 0; border-radius: 50%; }
  .help-fab-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.help-menu {
  position: fixed;
  z-index: 10060;
  width: 18.5rem;
  max-width: calc(100vw - 16px);
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid #E3E3EA;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(0, 6, 70, 0.18);
}
.help-menu[hidden] { display: none; }
.help-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0025E6;
  text-align: left;
  cursor: pointer;
}
.help-menu-item:hover,
.help-menu-item:focus-visible { background: #F4F6FF; outline: none; }
/* !important: over .other-versions-toggle .ov-thumb svg */
.help-menu-item svg { flex: none; width: 20px !important; height: 20px !important; }
/* !important: over .other-versions-toggle .ov-thumb svg */
.help-fab-face svg { flex: none; width: 22px !important; height: 22px !important; }
.help-menu-item span { display: flex; flex-direction: column; gap: 1px; }
.help-menu-item strong { font-family: var(--font-family-roboto); font-weight: 500; font-size: 0.9875rem; color: #000646; }
.help-menu-item small { font-size: 0.8125rem; color: #4A5868; }

/* ==== The style system (13 Nov 2026, Israa: "do all the other recommendations"): the canvas's Style boards made the
   site's. The tokens are on :root (--ds-*), and the headings, buttons and fields are set where they are defined; here
   the body's type, placeholders, the sizes that had their own, one kind of tab, switches, Legal's text. ==== */
body { font-family: var(--ds-font-body); }
::placeholder { color: var(--ds-placeholder); opacity: 1; }
@media (pointer: coarse) { :root { --ds-control-h: 44px; } }
/* The site header's type is mildbury.com's again on every page, in both designs (16 Nov 2026, Israa: the header and
   footer "get live's type too"): its links in Roboto 500 at 18 px (16 on a phone), and its buttons the same, through
   the button tokens set on the header (above). (From 13 Nov the links were Open Sans 600 at 16 px.) */
.outside-main-nav-header-section .outside-main-nav .nav-link { font-family: var(--font-family-roboto); font-weight: 500; font-size: 1.125rem; }

/* One message (app_dialog.js toast): dark, at the foot of the page, in the middle, above Berry's Help button on a
   phone. An error has a red mark at its start. */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10050;
  display: flex;
  align-items: center;
  gap: 12px;
  /* (The window's width less its scroll bar, padding inside: 100vw took the scroll bar's width too, and the message ran
     off the window's left side on a phone-width window. 21 Nov 2026.) */
  box-sizing: border-box;
  max-width: min(560px, calc(100% - 32px));
  padding: 12px 8px 12px 16px;
  border-radius: 12px;
  background-color: var(--ds-ink);
  color: #FFFFFF;
  font-family: var(--ds-font-body);
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 6, 70, 0.22);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.site-toast.site-toast--on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.site-toast--error { border-left: 4px solid var(--ds-danger); }
.site-toast-text { flex: 1 1 auto; }
.site-toast-close {
  flex: none;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  color: #FFFFFF;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.site-toast-close:hover { background-color: rgba(255, 255, 255, 0.12); }
.site-toast-close:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 1px; }
@media (max-width: 600px) {
  .site-toast { bottom: 88px; width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-toast { transition: none; }
}

/* ==== Layout A: History and Export in the side panel, Seam allowance in its Seams tab, Undo and Redo beside the modes
   (13 Nov 2026, Israa, from the mock-ups she confirmed). workspace_theme.js does the moving. ==== */
/* !important: over h1's !important (and more) */
.ws-export-back { flex: none; margin-left: auto !important; min-height: 34px !important; padding: 5px 16px !important; background: #fff; }

/* The workspace's messages in the site's one message style (13 Nov 2026: the toast of Settings and the Library): the
   ink, 12 px corners, the body font; an error marked red at its start, not a red block. They float over the canvas. */
.workspace-notice {
  background: var(--ds-ink, #000646);
  border-radius: 12px;
  font-family: var(--ds-font-body);
  font-size: 15px;
  line-height: 1.45;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0, 6, 70, 0.22);
}
.workspace-notice[data-tone="error"] { background: var(--ds-ink, #000646); border-left: 4px solid #e75d55; }

/* The trial-ending banner on a phone (Make a pattern and the Library): the words over the two buttons, compact. */
@media (max-width: 600px) {
  .trial-banner { flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px 12px; min-height: 0; }
  .trial-banner .trial-banner-message { flex: 1 0 100%; font-size: 15px; line-height: 1.4; text-align: center; padding: 0; }
}

/* A phone in the workspace: "Use a computer or a tablet" covers the page, and the workspace behind it is wider than
   the phone (its toolbars), so the page scrolled sideways under the message. */
/* !important: over body's !important */
html:has(#mobile-block-overlay),
html:has(#mobile-block-overlay) body { overflow: hidden !important; }

/* ==== One frame (13 Nov 2026, Israa: "make Workspace: one frame that fits the window option 5"; the canvas's board
   "Workspace: one frame that fits the window"). Layout A underneath (data-ws-theme="curves-a": its side panel and tabs),
   arranged its own way on data-ws-layout (workspace_theme.js). (Tablet, added the same day, went on 20 Nov 2026.) ==== */
:root { --ws-bar-h: 52px; --ws-list-w: 0px; }

/* The test site's switch for comparing the designs (and in the workspace its layouts) (13 Nov 2026, Israa: "so my boss
   can see them and decide which one is better"; script/site/site_look.js, never on mildbury.com). Bottom left of a page; in
   the workspace in the middle of the header, where nothing else is. */
.design-compare {
  position: fixed;
  left: 12px;
  bottom: calc(12px + var(--trial-banner-height, 0px));
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 12px;
  border: 1px solid #d5d8e0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 6, 70, 0.16);
  font-family: var(--ds-font-body, "Open Sans", sans-serif);
  font-size: 13px;
  color: #000646;
}
.design-compare-label { font-weight: 700; margin-right: 4px; white-space: nowrap; }
.design-compare-btn {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 15px;
  background: #eef0f4;
  color: #2b3550;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.design-compare-btn[aria-pressed="true"] { background: #0025e6; color: #ffffff; }
.design-compare select { height: 30px; border: 1px solid #d5d8e0; border-radius: 15px; padding: 0 8px; font: inherit; background: #ffffff; color: #000646; }
.design-compare-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #4a5868;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.design-compare-close:hover { background: #eef0f4; }
.design-compare :focus-visible { outline: 2px solid #0025e6; outline-offset: 2px; }
/* (A phone taking photos of drawings needs the whole screen: none there. Sign up, Log in and Reset password have Help
   at the bottom right since 15 Nov 2026, A12, so the switch stays at the bottom left there too.) */
/* !important: over .hide-desktop's !important */
html.phone-capture .design-compare { display: none !important; }
/* On a phone it waits folded as a round button (site_look.js), clear of the page's own buttons at the foot. */
.design-compare-chip { display: none; }
@media (max-width: 600px) {
  html:not(.workspace-body) .design-compare-chip {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer;
  }
  html:not(.workspace-body) .design-compare:not(.open) { padding: 0; gap: 0; }
  html:not(.workspace-body) .design-compare:not(.open) > :not(.design-compare-chip),
  html:not(.workspace-body) .design-compare.open .design-compare-label { display: none; }
  html:not(.workspace-body) .design-compare.open { padding: 0 4px 0 0; }
}
/* The password eye, a button now (site_chrome.js): its focus shown. */
[id$="password-toggle-icon"]:focus-visible { outline: 2px solid #0025e6; outline-offset: 2px; border-radius: 4px; }
html[data-site-dark] .design-compare,
body[data-canvas-look="dark"] .design-compare { background: #1b1f2a; border-color: #343b4d; color: #e7eaf3; }
html[data-site-dark] .design-compare-btn,
body[data-canvas-look="dark"] .design-compare-btn { background: #242a38; color: #e7eaf3; }
html[data-site-dark] .design-compare-btn[aria-pressed="true"] { background: #2f4fe6; color: #ffffff; }
html[data-site-dark] .design-compare select,
body[data-canvas-look="dark"] .design-compare select { background: #242a38; border-color: #343b4d; color: #e7eaf3; }
/* !important: over .hide-desktop's !important */
@media print { .design-compare { display: none !important; } }

/* ---- Skip link and the pages' h1 (M46, 15 Nov 2026) ---- */
/* The first thing Tab reaches on every page: it moves past the header to the page's main part. Shown only while it
   has focus. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 1000000;
  padding: 10px 16px;
  border-radius: 8px;
  background: #0025e6;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}
/* A heading for screen readers and search engines only: the page's one h1 where the page shows its title in another
   way (Library, Settings, the workspace, the sign-in pages). */
/* !important: a utility: wins wherever it is put */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===== Account and Library round, 15 Nov 2026 (site account helper) ===== */
/* The New design draws its own star and Move to folder (script/new_design/library.js). */
html[data-site-design="new"] :is(.library_page-star-btn, .library_page-move-btn, #library_page_filters) { display: none; }
.app-dialog-tags li { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border-radius: 999px; background: #EEF1FF; color: #1A2A8F; }

/* ---- Content pages, the landing's real example, Pricing's promises (15 Nov 2026: M7, M33, M34, M44, M45) ----
   News and its articles, Made with Mildbury, Status, Security and the Accessibility statement (content-page.js) share
   these: a plain head (eyebrow, title, one line) and a 52rem reading column. Colours are written out so that
   07_scripts/maintenance/site_dark_css.py gives each its dark twin. */
.pricing-promises li { background: #f3f3f5; border-radius: 14px; padding: 1rem 1.25rem; margin: 0; font-family: var(--font-family-inter); font-size: 1rem; line-height: 1.55; color: #303850; text-align: left; }

/* --- Plans and billing (15 Nov 2026, billing helper: M28, M30-M33, M41) ------------------------------------------------- */
.vat-field label { font-family: var(--font-family-inter); font-weight: 600; color: #000646; font-size: 0.9375rem; }
/* Change plan's choices, in the site's own dialog (app_dialog.js askWith). */
.plan-choice { border: 1px solid #e1e3ea; border-radius: 10px; margin: 0 0 0.75rem; padding: 0.5rem 0.875rem 0.625rem; }
.plan-choice legend { font-family: var(--font-family-inter); font-weight: 700; color: #000646; padding: 0 0.25rem; }
.plan-choice-option { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; font-family: var(--font-family-inter); color: #1b1f2a; cursor: pointer; }
.plan-choice-option input { width: 18px; height: 18px; margin: 0; }
.email-tips-row label { font-weight: 600; font-family: var(--font-family-inter); color: #000646; cursor: pointer; }
.pricing-currency label { font-weight: 600; }

/* --- Teams and classes (16 Nov 2026, teams helper: M35, M36; script/settings/team_settings.js, script/account/teams_pricing.js) --------- */
.team-status[data-tone="error"] { color: #B3261E; }
.team-status[data-tone="ok"] { color: #1d6b3a; }
.team-card { margin: 0 0 1rem; padding: 1rem 1.125rem; border: 1px solid #e1e3ea; border-radius: 12px; background: #ffffff; max-width: 46rem; font-family: var(--font-family-inter); color: #303850; }
.team-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.team-card-title { margin: 0; font-size: 1.0625rem; font-weight: 700; color: #000646; }
.team-line { margin: 0.375rem 0; line-height: 1.5; }
.team-line--strong { font-weight: 600; color: #000646; }
.team-billing { color: #303850; }
.team-btn { min-height: 44px; }
.team-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.team-members, .team-student-codes, .team-shared-list { list-style: none; margin: 0.75rem 0; padding: 0; }
.team-members li, .team-shared-list li { display: grid; grid-template-columns: minmax(10rem, 1.6fr) minmax(8rem, 1fr) auto; gap: 0.25rem 1rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid #e1e3ea; }
.team-member-name { font-weight: 600; color: #000646; overflow-wrap: anywhere; }
.team-member-state { font-size: 0.9375rem; color: #4a5868; }
.team-member--expired .team-member-state { color: #8a3b00; }
.team-member-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.team-shared-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.625rem; color: #0025E6; font-weight: 600; text-decoration: underline; }
.team-invite-form, .team-seats-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 0.75rem; margin-top: 1rem; }
.team-invite-form label, .team-seats-form label, .team-code-form label { flex-basis: 100%; font-weight: 600; color: #000646; font-size: 0.9375rem; font-family: var(--font-family-inter); }
.team-invite-input { flex: 1 1 20rem; min-height: 64px; padding: 0.5rem 0.75rem; border: 1px solid #8a8fa3; border-radius: 10px; background: #ffffff; color: #1b1f2a; font: inherit; font-size: 1rem; resize: vertical; }
.team-seats-input { width: 6.5rem; min-height: 44px; padding: 0 0.75rem; border: 1px solid #8a8fa3; border-radius: 10px; background: #ffffff; color: #1b1f2a; font-size: 1rem; }
.team-invite-input[aria-invalid="true"], #class_code_input[aria-invalid="true"] { border-color: #B3261E; }
.team-card-foot, .team-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.875rem; }
.team-code-box { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0.75rem 0 0.25rem; padding: 0.75rem; background: #f3f3f5; border-radius: 10px; }
.team-code-label { font-weight: 600; color: #000646; }
.team-code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.08em; color: #000646; }
.team-student-codes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.team-student-codes li { display: inline-flex; gap: 0.5rem; align-items: center; padding: 0.25rem 0.625rem; border: 1px solid #e1e3ea; border-radius: 8px; }
.team-student-codes li code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; color: #000646; letter-spacing: 0.05em; }
.team-student-codes li.used code { text-decoration: line-through; color: #4a5868; }
.team-shared { margin: 1rem 0; max-width: 46rem; }   /* (Room under it too: Class work's card sat on its last line, 21 Nov 2026.) */
/* A person's role (20 Nov 2026, the team workspace): a menu for the Owner and Admins, its name for everyone else. */
.team-members li:has(> .team-member-role) { grid-template-columns: minmax(10rem, 1.5fr) minmax(7rem, 1fr) auto auto; }
/* The people on a team as one table, their columns shared (21 Nov 2026, the gaps and spacing: each row sized its own, so
   "You (owner)" stood 170 px right of the "Joined" under it, and the roles and buttons zigzagged). */
@media (min-width: 601px) {
  .team-members:has(> li > .team-member-role) { display: grid; grid-template-columns: minmax(10rem, 1.5fr) minmax(7rem, 1fr) auto auto; column-gap: 1rem; }
  .team-members:has(> li > .team-member-role) > li { grid-column: 1 / -1; grid-template-columns: subgrid; }
}
.team-member-role { font-size: 0.9375rem; color: #303850; }
.team-role-select { min-height: 44px; padding: 0 0.75rem; border: 1px solid #8a8fa3; border-radius: 10px; background: #ffffff; color: #1b1f2a; font: inherit; font-size: 0.9375rem; }
.team-role-select:focus-visible { outline: 2px solid #1A2A8F; outline-offset: 2px; }
.team-card .team-left { padding: 0.625rem 0.875rem; }   /* (someone who left: keep what they shared? 20 Nov 2026) */
/* The house kit and its drift report (20 Nov 2026, H: script/settings/team_kit_settings.js), in each team's card. */
.team-kit { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid #e1e3ea; }
.team-kit:empty { display: none; }   /* (Not yet loaded, or not offered: no rule and gap with nothing under them.) */
.team-kit-title { margin: 0.75rem 0 0.25rem; font-size: 1rem; font-weight: 700; color: #000646; }
.team-kit-list { margin: 0.5rem 0; }
.team-kit-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 0.625rem 0; border-bottom: 1px solid #e1e3ea; }
.team-kit-label { font-weight: 600; color: #000646; }
.team-kit-value { margin: 0; min-width: 0; }
.team-kit-value .team-line { margin: 0 0 0.375rem; }
.team-kit-value .team-tools { margin-top: 0.25rem; }
.team-kit-lock { display: inline-block; margin-left: 0.5rem; padding: 0 0.5rem; border-radius: 999px; background: #eef0f6; color: #303850; font-size: 0.75rem; font-weight: 600; vertical-align: middle; }
.team-kit-blocks { list-style: none; margin: 0 0 0.25rem; padding: 0; }
.team-kit-blocks li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.375rem 0; }
.team-kit-block { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.team-kit-sub { font-size: 0.875rem; font-weight: 400; color: #4a5868; }
.team-kit-presets { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 0.75rem; margin-top: 0.25rem; }
.team-kit-field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; font-weight: 600; color: #000646; }
.team-kit-input { width: 9.5rem; min-height: 44px; padding: 0 0.625rem; border: 1px solid #8a8fa3; border-radius: 10px; background: #ffffff; color: #1b1f2a; font: inherit; font-size: 0.9375rem; }
.team-kit-input:focus-visible, .team-kit-table-box:focus-visible { outline: 2px solid #1A2A8F; outline-offset: 2px; }
.team-kit-table-box { max-width: 100%; overflow-x: auto; }
.team-kit-table { width: 100%; min-width: 24rem; border-collapse: collapse; font-size: 0.9375rem; }
.team-kit-table th, .team-kit-table td { padding: 0.5rem 0.625rem; text-align: left; vertical-align: top; }
.team-kit-table tr { border-bottom: 1px solid #e1e3ea; }
.team-kit-table thead th { font-size: 0.8125rem; font-weight: 600; color: #4a5868; }
.team-kit-table tbody th { font-weight: 600; color: #000646; }
.team-kit-notes { margin: 0.25rem 0 0.5rem; padding-left: 1.25rem; line-height: 1.5; }
@media (max-width: 600px) {
  .team-kit-row { grid-template-columns: 1fr; }
  .team-kit-field { flex: 1 1 100%; }
  .team-kit-input { width: 100%; }
  /* The report: a card for each block, its numbers named (the table's header said them). */
  .team-kit-table { min-width: 0; }
  .team-kit-table thead { display: none; }
  .team-kit-table tr { display: flex; flex-wrap: wrap; gap: 0.125rem 1rem; padding: 0.5rem 0; }
  .team-kit-table th, .team-kit-table td { display: block; padding: 0; }
  .team-kit-table tbody th { flex-basis: 100%; }
  .team-kit-table td::before { content: attr(data-label) " "; font-size: 0.8125rem; color: #4a5868; }
}
@media (max-width: 600px) {
  .team-members li:has(> .team-member-role) { grid-template-columns: 1fr; }
  .team-members li, .team-shared-list li { grid-template-columns: 1fr; }
  .team-member-actions { justify-content: flex-start; }
}
.teams-card { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid #e1e3ea; border-radius: 16px; background: #ffffff; font-family: var(--font-family-inter); color: #303850; }
/* !important: over h3's margin (19 Nov 2026, Israa: "make sure there are no other spacing issues": h3's 0.5em under the
   name won, 15 px, so "For a studio or a brand." sat far from "Team"; both designs) */
.teams-card-title { margin: 0 !important; font-size: 1.5rem; color: #000646; }
.teams-for { margin: 0.25rem 0 0.75rem; color: #4a5868; }
.teams-price { margin: 0; font-size: 1.25rem; font-weight: 700; color: #000646; }
.teams-price-more { margin: 0.25rem 0 0.75rem; font-size: 0.9375rem; color: #4a5868; }
.teams-price-more:empty { display: none; }
.teams-list { margin: 0 0 1.25rem; padding-left: 1.25rem; line-height: 1.55; flex-grow: 1; }
.teams-list li { margin: 0.25rem 0; }
.teams-action .teams-button { width: 100%; cursor: pointer; }
/* (20 Nov 2026: Buy seats and Try free for 14 days, one under the other) */
.teams-action { display: grid; gap: 0.5rem; }
.teams-code-form { margin: 1.5rem auto 0; max-width: 32rem; font-family: var(--font-family-inter); }
.teams-code-form label { display: block; font-weight: 700; color: #000646; margin-bottom: 0.375rem; }
.teams-code-row { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
#teams-code-input { flex: 1 1 12rem; min-height: 44px; padding: 0 0.75rem; border: 1px solid #8a8fa3; border-radius: 10px; background: #ffffff; color: #1b1f2a; font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
#teams-code-input::placeholder { text-transform: none; letter-spacing: normal; }
#teams-code-input:focus-visible { outline: 2px solid #1A2A8F; outline-offset: 2px; }
#teams-code-input[aria-invalid="true"] { border-color: #B3261E; }
.teams-code-row .btn-rounded { min-height: 44px; }
.teams-code-error { margin: 0.5rem 0 0; color: #B3261E; font-weight: 600; }
.teams-code-done { margin: 0.5rem 0 0; color: #1d6b3a; font-weight: 600; }
.teams-code-error:empty, .teams-code-done:empty { display: none; }
dialog.app-dialog.teams-checkout { width: min(44rem, calc(100vw - 32px)); max-height: 92vh; overflow: auto; }
.teams-checkout-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.teams-checkout-head .btn-rounded { min-height: 44px; }
.teams-checkout-frame { min-height: 120px; }
.teams-total { font-weight: 600; color: #000646; }
.teams-start-now { margin-top: 0.5rem; }

/* On a touch screen every window's close button is 44 px at the least (16 Nov 2026, C11: the message's × was 32 px). */
@media (pointer: coarse) {
  .modal-close, .site-toast-close, .mk-dialog-close, .share-dialog-close, .pi-close, .preview3d-close { min-width: 44px; min-height: 44px; }
}

/* A team payment that didn't go through (Israa, 20 Nov 2026, T6: Stripe's own failed-payment emails off; "an in-site
   notice for the owner; members told to ask the owner"): websocket_utils.js showTeamPaymentNotice puts it at the top of
   Make a pattern, the Library and Settings. The owner's has "Update your card"; a member's is a quieter line. */
.team-payment-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 12px; font-family: var(--font-family-inter); font-size: 0.9375rem; line-height: 1.4; }
.team-payment-notice--owner { background: #fff4e5; border: 1px solid #c77700; color: #3d2600; }
.team-payment-notice--owner > span { flex: 1 1 16rem; font-weight: 600; }
.team-payment-notice .team-payment-notice-action { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.team-payment-notice--member { border: 1px solid #d6d9e3; color: #4a5868; padding: 0.5rem 0.875rem; }
