/* Pracownia — konto (sign in / up), pracownia (the account), projekt (a
   project shared with a client). Graphite and rose of the main menu, quiet
   surfaces, rounded controls, Inter for the interface. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #111315; --surface: #17191c; --surface2: #1c1f23; --hover: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.07); --border2: rgba(255,255,255,.12);
  --text: #ecebe8; --muted: #8e9196; --faint: #5f6267;
  --accent: #d69b85; --accent-soft: rgba(214,155,133,.12);
  --ok: #7cc79a; --err: #e8907f; --radius: 16px;
}
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', Helvetica, sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
[hidden] { display: none !important; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header: the wordmark, the account on the right */
header.top { position: sticky; top: 0; z-index: 20; height: 64px; padding: 0 32px; display: flex; align-items: center; gap: 16px; background: rgba(17,19,21,.82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
header.top .back { font-size: 13px; color: var(--muted); }
header.top .back:hover { color: var(--text); }
header.top .sep { width: 1px; height: 16px; background: var(--border2); color: transparent; overflow: hidden; }
header.top .site { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--text); }
header.top .right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); }
header.top .right a { color: var(--muted); }
header.top .right a:hover { color: var(--text); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; }

h1, h2, h3 { font-weight: 400; letter-spacing: -.015em; }
.kicker { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.muted { color: var(--muted); }

/* fields */
.f { display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.f input, .f textarea, .f select { font: inherit; font-size: 15px; color: var(--text); background: rgba(255,255,255,.035); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .15s, background .15s; width: 100%; }
.f input::placeholder { color: var(--faint); }
.f input:hover, .f textarea:hover { border-color: var(--border2); }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--accent); background: rgba(255,255,255,.05); }
.f input:disabled { color: var(--muted); background: transparent; }
.f textarea { min-height: 80px; resize: vertical; }

/* buttons: rose pill, quiet pill, plain link */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--accent); color: #1a120d; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background .15s, opacity .15s, transform .1s; }
.btn:hover { background: #e2ad98; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn--ghost { background: var(--hover); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.danger:hover { color: var(--err); }
.icon-btn svg { width: 17px; height: 17px; }
.link { background: none; border: 0; font: inherit; font-size: 13.5px; color: var(--accent); cursor: pointer; padding: 0; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.msg { font-size: 13px; min-height: 1.2em; color: var(--err); }
.msg.ok { color: var(--ok); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--hover); color: var(--muted); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill--ok { color: var(--ok); background: rgba(124,199,154,.1); }
.pill--wait { color: var(--accent); background: var(--accent-soft); }

@media (max-width: 760px) {
  header.top { height: 56px; padding: 0 16px; gap: 12px; }
  header.top .back { font-size: 0; }
  header.top .back::before { content: '←'; font-size: 18px; }
  header.top .sep { display: none; }
  header.top .site { font-size: 15px; letter-spacing: .18em; }
  header.top .right #who { display: none; }
  /* 16 px: smaller fields make iOS zoom the page in on tap */
  .f input, .f textarea, .f select, .share input { font-size: 16px; }
}
