:root {
  --paper: #fff; --soft: #f6f6f6; --ink: #141414; --muted: #646464;
  --line: #eaeaea; --gold-mist: #f0f0f0; --gold-ink: #424242;
  --display: Inter, Arial, sans-serif; --r: 19px; --shadow: none;
}
.workspace { max-width: 1320px; }
.workspace .workspace-brand { display: grid; gap: 3px; }
.workspace-brand small { font: 600 10px/1.15 var(--text); margin-left: 52px; color: var(--muted); }
.workspace>.topbar,.auth-layout>.auth-top {
  position: sticky;
  top: 0;
  z-index: 4;
  isolation: isolate;
  --muted: #484848;
}
.workspace>.topbar { padding-block: 10px 14px; }
.workspace>.topbar::after,.auth-layout>.auth-top::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #f2f2f2;
  border-bottom: .5px solid rgb(0 0 0 / 10%);
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .workspace>.topbar::after,.auth-layout>.auth-top::after {
    background-color: rgb(242 242 239 / 80%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
@supports (animation-timeline: scroll(root block)) and (animation-range: 0px 5px) {
  @keyframes portal-header-glass { from { opacity: 0; } to { opacity: 1; } }
  .workspace>.topbar::after,.auth-layout>.auth-top::after {
    opacity: 0;
    animation: portal-header-glass 1s steps(1, end) both;
    animation-timeline: scroll(root block);
    animation-range: 0px 5px;
  }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  .workspace>.topbar::after,.auth-layout>.auth-top::after {
    background-color: Canvas;
    border-bottom-color: CanvasText;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: none;
    opacity: 1;
  }
}
@media (min-width:721px) {
  html { scroll-padding-top: 96px; }
  .workspace>.rail { top: 96px; }
}
.workspace .brand { font-family: Satoshi, Arial, sans-serif; }
.portrait-image,.profile-picture canvas { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.dossier-avatar { width: 26px; height: 26px; font-size: 10px; font-style: normal; }
.avatar { background: #efefef; color: #444; }
.workspace .hero { background: transparent; color: var(--ink); border-radius: 0; min-height: 0; padding: 16px 0 14px; }
.workspace .hero-copy { max-width: 100%; }
.workspace .hero h1,.workspace .page-head h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -.043em; }
.workspace .hero h1 { margin: 0 0 9px; }
.workspace .hero p { color: var(--muted); font-size: 14px; }
.workspace .hero-button { background: #171717; color: #fff; margin-top: 15px; }
.workspace .stat-grid { background: #f6f6f6; border-radius: 18px; gap: 0; margin: 12px 0 24px; }
.workspace .stat { background: transparent; border: 0; border-radius: 0; }
.workspace .stat+.stat { border-left: 1px solid #e7e7e7; }
.workspace .stat-icon,.workspace .tile-icon,.workspace .empty-symbol { color:#565656; background:#ededed; border-radius: 11px; }
.workspace .stat-text,.workspace h2,.workspace h3 { font-weight: 600; }
.workspace .card-head h2 { font-size: 18px; letter-spacing: -.035em; }
.workspace .panel,.workspace .offer { background: #f7f7f7; border-color: transparent; }
.workspace .circle-link { box-shadow: none; }
.workspace .tag-requested,.workspace .tag-active,.workspace .tag-open { background:#ebebeb; color:#515151; }
.workspace .tag-done,.workspace .tag-paid { background:#e6f5eb; color:#276640; }
.workspace progress { height: 5px; background: #ebebeb; }
.workspace progress::-webkit-progress-bar { background:#ebebeb; }
.workspace progress::-webkit-progress-value { background:#50b573; }
.workspace progress::-moz-progress-bar { background:#50b573; }
.workspace .btn { font-weight:600; }
.workspace .btn:not(.subtle):not(.compact) { border-radius:100px; }
.workspace :focus-visible,dialog :focus-visible { outline: 2px solid #555; outline-offset: 3px; }
#portal-dialog[data-kind="guide"] { max-width: min(540px,calc(100vw - 28px)); padding: clamp(22px,4vw,40px); }
.guide-top { display:flex; justify-content:space-between; align-items:center; gap:16px; color:var(--muted); font-size:13px; }
.guide-ring { width:40px; height:40px; flex:none; }
.guide-title { font-size:clamp(24px,4vw,30px); line-height:1.16; font-weight:600; letter-spacing:-.04em; margin:4px 0 8px; }
.guide-title:focus { outline: none; }
.guide-intro { line-height:1.55; color:var(--muted); }
.guide-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; list-style:none; margin:25px 0; padding:0; }
.guide-steps li { border-top:4px solid #eaeaea; padding-top:7px; color:#746f70; font-size:12px; }
.guide-steps .reached { border-color: #191919; color: #191919; }
.client-guide-steps { grid-template-columns:1fr 1fr; }
.client-guide-next { display:flex; align-items:flex-start; gap:13px; padding:18px; background:var(--soft); border-radius:16px; }
.client-guide-next>.ico { margin-top:2px; color:var(--muted); }
.client-guide-next p { margin-top:4px; font-size:13px; color:var(--muted); }
.guide-image-field { display:grid; grid-template-columns:46px minmax(0,1fr); align-items:center; gap:12px; }
.guide-image-field .profile-picture { width:46px; height:46px; font-size:15px; }
.client-guide-profile .guide-controls { margin-top:4px; }
.client-guide-profile .guide-controls .btn { width:auto; }
.guide-choices { background:#f6f6f6; border-radius:17px; }
.guide-choices button { width:100%; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:16px; text-align:left; }
.guide-choices button:hover { background:#eee; border-radius:inherit; }
.guide-choices small,.profile-identity small { display:block; line-height:1.45; color:var(--muted); margin-top:3px; overflow-wrap:anywhere; }
.guide-choices button>.ico:first-child { color:#777; }
.guide-choices button>.ico:last-child { width:16px; }
.client-list button+button { border-top:1px solid #e7e7e7; }
.client-list strong { overflow-wrap:anywhere; }
.guide-controls,.profile-links { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:23px; }
.guide-controls button { min-height:44px; }
.guide-later { padding:5px 0; color:var(--muted); }
.profile-identity { display:flex; align-items:center; gap:14px; }
.profile-picture { height:60px;width:60px;overflow:hidden; font-size:20px; }
.profile-fields input[type=file] { width:100%; font-size:13px; padding:8px; }
.profile-fields input::file-selector-button { border:0; border-radius:14px; background:#ededed; padding:6px 10px; margin-right:8px; }
.fields .profile-remove { display:flex; flex-direction:row; align-items:center; gap:8px; font-weight:400; }
.profile-remove input { width:18px; height:18px; }
.profile-links { border-top:1px solid var(--line); padding-top:12px; flex-wrap:wrap; }
.profile-links button { display:flex; align-items:center; gap:6px; min-height:42px; padding:0; font-size:12px; }
.profile-links .ico { width:15px; }
@media(max-width:720px) {
  .workspace-brand small { margin-left:0; font-size:10px; }
  .workspace .switch-client { padding:0 5px; gap:2px; max-width:min(36vw,165px); }
  .workspace .switch-client .dossier-avatar { display:grid; width:21px; height:21px; }
  .workspace .hero { padding:5px 0 9px; }
  .workspace .topbar { margin-bottom:16px; }
  .workspace .stat { padding:12px 9px; }
}
@media(max-width:365px) {
  .workspace .top-tools>[data-action="install"] { display:none; }
}
@media (max-width:720px), (max-height:560px) and (pointer:coarse) {
  html { scroll-padding-top:calc(76px + env(safe-area-inset-top,0px)); }
  .workspace,.auth-layout {
    --shell-left:max(12px,env(safe-area-inset-left,0px));
    --shell-right:max(12px,env(safe-area-inset-right,0px));
    min-height:100dvh;
    padding-top:0;
    padding-left:var(--shell-left);
    padding-right:var(--shell-right);
  }
  .workspace>.topbar,.auth-layout>.auth-top {
    margin-left:calc(0px - var(--shell-left));
    margin-right:calc(0px - var(--shell-right));
    padding:calc(8px + env(safe-area-inset-top,0px)) var(--shell-right) 8px var(--shell-left);
  }
  .workspace>.topbar { display:grid;grid-template-columns:auto minmax(0,1fr) auto; }
  .workspace .header-center,.workspace .switch-client { min-width:0; }
  .workspace .switch-client { max-width:100%; }
  .workspace>.topbar::before,.auth-layout>.auth-top::before {
    content:"";position:absolute;inset:0 0 auto;height:env(safe-area-inset-top,0px);
    background:#fff;pointer-events:none;
  }
}
@media (display-mode:fullscreen), (display-mode:standalone) {
  .top-tools>[data-action="install"] { display:none; }
}
