/* polish3.css -- goes after polish.css and polish2.css. Styles only.
   A. Dashboard: the card of somebody who offers several services opens in front of the page -- the card
      itself, large, in its own colour -- with each service on a sheet of paper (A4) carrying its amount.
      The cards on the page keep their places. (dashboard.js opens it; here is only how it looks.)
   B. The sign-in page.
   Taking this file away gives back both as polish2.css left them. */

/* ---- A. a person's services, in front of the page ---- */
.modal-overlay.svc-pop-ov { align-items: center; padding: 24px 20px; background: rgba(19,42,58,.62); }
.modal.svc-pop { --tone:#2563EB;--deep:#1A3F9C;--tint:#E7EFFF;--edge:#BFD2FA;--glow:rgba(37,99,235,.22);
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: calc(var(--n, 4) * 200px + 24px);
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); background: #fff; border: 1px solid var(--tone); border-radius: 16px;
  box-shadow: 0 0 0 4px var(--glow), 0 30px 60px -16px rgba(11,27,38,.7); overflow: hidden; outline: 0; }
.svc-pop.is-in { animation: svc-pop-in .28s cubic-bezier(.2,.85,.3,1.12) both; }
@keyframes svc-pop-in { from { opacity: 0; transform: scale(.35); } }
.svc-pop-head { flex: none; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 15px 60px 14px 16px; background: #fff; border-bottom: 1px solid var(--edge); }
.svc-pop-head .svc-group-head { flex: 1 1 auto; gap: 12px; }
.svc-pop-head .svc-prov-av { width: 46px; height: 46px; border-radius: 13px; border: 0; background: var(--tone); color: #fff; font-size: 17px; }
.svc-pop-head .svc-prov-name { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; }
.svc-pop-head .svc-count { align-self: center; padding: 6px 11px; font-size: 12px; background: var(--tint); border-color: var(--edge); color: var(--deep); }
.svc-pop-head .svc-head-facts { flex: 1 1 100%; margin: 0; }
.svc-pop-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--edge); border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 21px; line-height: 1; cursor: pointer; }
.svc-pop-x:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }

/* the sheets: A4, the corner turned down, a few ruled lines, the amount at the foot */
.svc-sheets { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); align-content: start; gap: 16px; padding: 20px 18px 22px; background: var(--tint); }
.svc-sheet { display: flex; min-width: 0; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 0 .6px rgba(19,42,58,.5)) drop-shadow(0 7px 7px rgba(19,42,58,.13)); transition: transform .16s, filter .16s; }
.svc-sheet-p { position: relative; flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; min-height: 226px; padding: 13px 13px 12px; background: #fff; border-radius: 4px;
  -webkit-clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
@supports (aspect-ratio: 1) { .svc-sheet-p { min-height: auto; aspect-ratio: 210 / 297; } }      /* A4; taller only when the words need it */
.svc-sheet-fold { position: absolute; top: 0; right: 0; width: 26px; height: 26px; border-bottom-left-radius: 5px; background: linear-gradient(to top right, var(--edge) 50%, transparent 50.5%); }
.svc-sheet-no { align-self: flex-start; min-width: 24px; height: 24px; margin-bottom: 10px; padding: 0 6px; border-radius: 7px; background: var(--tone); color: #fff;
  font: 700 12px/24px var(--font-display); text-align: center; }
.svc-sheet .svc-row-t { flex: none; gap: 5px; }
.svc-sheet .svc-row-name { font-size: 14px; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.svc-sheet .svc-row-desc { font-size: 12px; line-height: 1.42; -webkit-line-clamp: 4; line-clamp: 4; }
.svc-sheet-lines { flex: 1 1 0; min-height: 0; margin: 11px 0 0; background: repeating-linear-gradient(to bottom, var(--tint) 0 2px, transparent 2px 13px); }
.svc-sheet-foot { flex: none; margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.svc-sheet .svc-adv { flex-direction: row; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--tint); color: var(--deep); font-size: 14px; line-height: 1.2; }
.svc-sheet .svc-row-go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tone); color: #fff; font-size: 14px; transition: transform .16s; }
.svc-sheet:focus-visible { outline: 2px solid var(--tone); outline-offset: 3px; border-radius: 4px; }
.svc-sheet.is-going { cursor: progress; }
.svc-sheet.is-going .svc-sheet-p { opacity: .62; }
.svc-pop.is-in .svc-sheet { animation: svc-sheet-in .3s ease-out both; animation-delay: calc(var(--i, 0) * 45ms + 110ms); }
@keyframes svc-sheet-in { from { opacity: 0; transform: translateY(16px) rotate(2.5deg); } }
@media (hover: hover) {
  .svc-sheet:hover { transform: translateY(-5px); filter: drop-shadow(0 0 .6px var(--tone)) drop-shadow(0 0 1px var(--tone)) drop-shadow(0 13px 10px rgba(19,42,58,.2)); }
  .svc-sheet:hover .svc-row-go { transform: translateX(3px); }
  .svc-pop-x:hover { border-color: var(--tone); color: var(--tone); }
}
@media (max-width: 600px) {
  .modal-overlay.svc-pop-ov { padding: 10px; }
  .modal.svc-pop { max-width: 100%; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
  .svc-pop-head { padding: 12px 54px 11px 12px; gap: 6px 10px; }
  .svc-pop-head .svc-prov-av { width: 40px; height: 40px; border-radius: 11px; font-size: 15px; }
  .svc-pop-head .svc-prov-name { font-size: 15px; }
  .svc-pop-x { top: 11px; right: 11px; }
  .svc-sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 12px 16px; }
  .svc-sheet-p { padding: 11px 11px 10px; -webkit-clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
  .svc-sheet-fold { width: 22px; height: 22px; }
  .svc-sheet-no { min-width: 22px; height: 22px; margin-bottom: 8px; font-size: 11.5px; line-height: 22px; }
  .svc-sheet .svc-row-name { font-size: 13px; }
  .svc-sheet .svc-row-desc { font-size: 11.5px; -webkit-line-clamp: 3; line-clamp: 3; }
  .svc-sheet .svc-adv { font-size: 13px; padding: 4px 9px; }
  .svc-sheet .svc-row-go { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-pop.is-in, .svc-pop.is-in .svc-sheet { animation: none; }
  .svc-sheet, .svc-sheet .svc-row-go { transition: none; }
  .svc-sheet:hover { transform: none; }
}

/* ---- B. the sign-in page ---- */
.login-screen { background:
  radial-gradient(circle at 0 0, #E8590C 0 74px, transparent 75px), radial-gradient(circle at 100% 0, #0E9F6E 0 52px, transparent 53px),
  radial-gradient(circle at 100% 100%, #6D3FD6 0 86px, transparent 87px), radial-gradient(circle at 0 100%, #2563EB 0 60px, transparent 61px), var(--ink); }
.login-screen::before { display: none; }
.login-screen > .login-card { max-width: 400px; border-radius: 18px; padding: 34px 30px 26px; box-shadow: 0 26px 50px -22px rgba(4,14,22,.75); }
.login-screen .mark-dot { width: 13px; height: 13px; }
.login-screen .mark-text { font-size: 24px; }
.login-screen .login-sub { margin: 2px 0 22px; }
.login-screen .login-form { gap: 15px; }
.login-screen .login-form input:not([type="checkbox"]) { font-size: 15px; padding: 12px 13px; border: 1.5px solid var(--border-strong); border-radius: 10px; background: #F8FAF9; transition: border-color .12s, box-shadow .12s, background .12s; }
.login-screen .login-form input:not([type="checkbox"]):hover { border-color: #9FB0B6; }
.login-screen .login-form input:not([type="checkbox"]):focus { background: #fff; border-color: var(--marigold); box-shadow: 0 0 0 3px rgba(198,129,30,.2); }
.login-screen .login-form label:has(> #loKeep) { padding: 10px 12px; border: 1px solid #EFD6AE; border-radius: 10px; background: #FDF6EA; }
.login-screen .login-form .btn-primary { padding: 12px 14px; font-size: 15px; border-radius: 10px; border-color: var(--marigold); box-shadow: 0 3px 0 #8F5A12; transition: background .12s, transform .08s, box-shadow .08s; }
.login-screen .login-form .btn-primary:hover { border-color: var(--marigold-dark); }
.login-screen .login-form .btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #8F5A12; }
.login-screen .login-hint { margin-top: 18px; font-size: 0; line-height: 0; }
.login-screen .login-hint a { display: inline-block; margin: 4px; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.login-screen .login-hint a:hover { border-color: var(--marigold); color: var(--marigold-dark); }
.login-screen .form-error, .login-screen .form-ok { padding: 10px 12px; border-radius: 10px; }
.login-screen .top-btn { box-shadow: 0 1px 0 rgba(19,42,58,.08); }
/* a wide screen: the picture of the site at the left, the card at the right */
@media (min-width: 980px) and (min-height: 600px) {
  .login-screen { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: stretch; justify-items: center; padding: 0; overflow: visible; background: var(--paper); }
  .login-screen::before { content: ""; display: block; position: static; width: auto; height: auto; margin: 0; justify-self: stretch;
    background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 440 400%22%3E%3Ccircle cx=%22220%22 cy=%22204%22 r=%22176%22 fill=%22%231B3A50%22/%3E%3Cg transform=%22translate(74 92) rotate(-17 60 85)%22%3E%3Crect width=%22120%22 height=%22170%22 rx=%2210%22 fill=%22%23E8590C%22/%3E%3Crect x=%2216%22 y=%2226%22 width=%2264%22 height=%227%22 rx=%223.5%22 fill=%22%23fff%22 opacity=%22.6%22/%3E%3Crect x=%2216%22 y=%2242%22 width=%2246%22 height=%227%22 rx=%223.5%22 fill=%22%23fff%22 opacity=%22.6%22/%3E%3Crect x=%2216%22 y=%2258%22 width=%2256%22 height=%227%22 rx=%223.5%22 fill=%22%23fff%22 opacity=%22.6%22/%3E%3C/g%3E%3Cg transform=%22translate(250 84) rotate(15 60 85)%22%3E%3Crect width=%22120%22 height=%22170%22 rx=%2210%22 fill=%22%230E9F6E%22/%3E%3Crect x=%2216%22 y=%2226%22 width=%2256%22 height=%227%22 rx=%223.5%22 fill=%22%23fff%22 opacity=%22.6%22/%3E%3Crect x=%2216%22 y=%2242%22 width=%2266%22 height=%227%22 rx=%223.5%22 fill=%22%23fff%22 opacity=%22.6%22/%3E%3Crect x=%2216%22 y=%2258%22 width=%2244%22 height=%227%22 rx=%223.5%22 fill=%22%23fff%22 opacity=%22.6%22/%3E%3C/g%3E%3Cg transform=%22translate(258 196) rotate(24 60 85)%22%3E%3Crect width=%22120%22 height=%22170%22 rx=%2210%22 fill=%22%236D3FD6%22/%3E%3Crect x=%2216%22 y=%2226%22 width=%2260%22 height=%227%22 rx=%223.5%22 fill=%22%23fff%22 opacity=%22.6%22/%3E%3Crect x=%2216%22 y=%2242%22 width=%2240%22 height=%227%22 rx=%223.5%22 fill=%22%23fff%22 opacity=%22.6%22/%3E%3Crect x=%2216%22 y=%2258%22 width=%2252%22 height=%227%22 rx=%223.5%22 fill=%22%23fff%22 opacity=%22.6%22/%3E%3C/g%3E%3Cg transform=%22translate(58 206) rotate(-26 60 85)%22%3E%3Crect width=%22120%22 height=%22170%22 rx=%2210%22 fill=%22%23D6257F%22/%3E%3Crect x=%2216%22 y=%2226%22 width=%2252%22 height=%227%22 rx=%223.5%22 fill=%22%23fff%22 opacity=%22.6%22/%3E%3Crect x=%2216%22 y=%2242%22 width=%2262%22 height=%227%22 rx=%223.5%22 fill=%22%23fff%22 opacity=%22.6%22/%3E%3Crect x=%2216%22 y=%2258%22 width=%2240%22 height=%227%22 rx=%223.5%22 fill=%22%23fff%22 opacity=%22.6%22/%3E%3C/g%3E%3Cg transform=%22translate(135 82) rotate(-3 85 118)%22%3E%3Crect x=%226%22 y=%229%22 width=%22170%22 height=%22236%22 rx=%2214%22 fill=%22%230B1B26%22 opacity=%22.35%22/%3E%3Crect width=%22170%22 height=%22236%22 rx=%2214%22 fill=%22%23fff%22/%3E%3Crect x=%2218%22 y=%2220%22 width=%2230%22 height=%2230%22 rx=%229%22 fill=%22%232563EB%22/%3E%3Crect x=%2258%22 y=%2224%22 width=%2274%22 height=%229%22 rx=%224.5%22 fill=%22%23132A3A%22/%3E%3Crect x=%2258%22 y=%2239%22 width=%2248%22 height=%227%22 rx=%223.5%22 fill=%22%23B9C6CC%22/%3E%3Crect x=%2218%22 y=%2266%22 width=%22134%22 height=%2230%22 rx=%229%22 fill=%22%23EEE8FD%22/%3E%3Ccircle cx=%2235%22 cy=%2281%22 r=%227%22 fill=%22%236D3FD6%22/%3E%3Crect x=%2250%22 y=%2277%22 width=%2270%22 height=%228%22 rx=%224%22 fill=%22%23B7A3EE%22/%3E%3Crect x=%2218%22 y=%22104%22 width=%22134%22 height=%2230%22 rx=%229%22 fill=%22%23E2F7EC%22/%3E%3Ccircle cx=%2235%22 cy=%22119%22 r=%227%22 fill=%22%230E9F6E%22/%3E%3Crect x=%2250%22 y=%22115%22 width=%2254%22 height=%228%22 rx=%224%22 fill=%22%238FD9B9%22/%3E%3Crect x=%2218%22 y=%22142%22 width=%22134%22 height=%2230%22 rx=%229%22 fill=%22%23FFF0E3%22/%3E%3Ccircle cx=%2235%22 cy=%22157%22 r=%227%22 fill=%22%23E8590C%22/%3E%3Crect x=%2250%22 y=%22153%22 width=%2280%22 height=%228%22 rx=%224%22 fill=%22%23F4B58B%22/%3E%3Crect x=%2218%22 y=%22188%22 width=%22134%22 height=%2230%22 rx=%2210%22 fill=%22%23C6811E%22/%3E%3Crect x=%2260%22 y=%22199%22 width=%2250%22 height=%228%22 rx=%224%22 fill=%22%23fff%22/%3E%3C/g%3E%3Cg transform=%22translate(300 40)%22%3E%3Ccircle cx=%2231%22 cy=%2233%22 r=%2230%22 fill=%22%230B1B26%22 opacity=%22.35%22/%3E%3Ccircle cx=%2229%22 cy=%2229%22 r=%2230%22 fill=%22%23FFC83D%22/%3E%3Cpath d=%22M19 17h20M19 26h20M22 17c13 0 13 9 0 9l14 16%22 fill=%22none%22 stroke=%22%23132A3A%22 stroke-width=%224.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%3Cg transform=%22translate(82 292)%22%3E%3Ccircle cx=%2231%22 cy=%2233%22 r=%2230%22 fill=%22%230B1B26%22 opacity=%22.35%22/%3E%3Ccircle cx=%2229%22 cy=%2229%22 r=%2230%22 fill=%22%2337D7A2%22/%3E%3Cpath d=%22M16 30l9 9 19-20%22 fill=%22none%22 stroke=%22%23132A3A%22 stroke-width=%225.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%3C/svg%3E") center / min(76%, 500px) auto no-repeat, var(--ink); }
  .login-screen > .login-card { align-self: center; margin: 32px 24px; box-shadow: 0 1px 2px rgba(19,42,58,.06), 0 22px 44px -24px rgba(19,42,58,.4); }
}
@media (max-width: 600px) {
  .login-screen { background:
    radial-gradient(circle at 0 0, #E8590C 0 46px, transparent 47px), radial-gradient(circle at 100% 0, #0E9F6E 0 32px, transparent 33px),
    radial-gradient(circle at 100% 100%, #6D3FD6 0 54px, transparent 55px), radial-gradient(circle at 0 100%, #2563EB 0 38px, transparent 39px), var(--ink); }
  .login-screen > .login-card { padding: 30px 22px 22px; }
}
@media (max-width: 380px) {
  .login-screen { padding: 16px; background:
    radial-gradient(circle at 0 0, #E8590C 0 30px, transparent 31px), radial-gradient(circle at 100% 0, #0E9F6E 0 22px, transparent 23px),
    radial-gradient(circle at 100% 100%, #6D3FD6 0 36px, transparent 37px), radial-gradient(circle at 0 100%, #2563EB 0 26px, transparent 27px), var(--ink); }
}
