/* Designz team page (team.html): people, brand kit, approvals, company sign-in, activity, usage, data */
:root {
  --paper: #f4f1ea; --paper2: #ebe6da; --card: #fbf9f4; --ink: #151515; --ink2: #4a463f; --mute: #7b766b; --line: #ddd6c8;
  --red: #ff4a1c; --blue: #2f5bea; --green: #1baf7a; --sun: #ffc531;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.t-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 12px 32px; background: rgba(244, 241, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.wordmark { font: 700 26px/1 var(--serif); letter-spacing: -.04em; text-decoration: none; }
.wordmark span { color: var(--red); }
.t-who { flex: 1; display: flex; justify-content: flex-end; }
.t-who select { height: 36px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: var(--card); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ink); background: none; font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--card); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover { background: #000; }
.btn.red { border-color: #c4320e; color: #c4320e; }
.btn.small { height: 30px; padding: 0 12px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: default; }

.t-main { max-width: 1120px; margin: 0 auto; padding: 28px 32px 80px; }
.kicker { margin: 0; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.t-head h1 { font: 700 42px/1.05 var(--serif); letter-spacing: -.03em; margin: 4px 0 6px; }
.sub { margin: 0 0 20px; color: var(--ink2); max-width: 760px; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 22px; }
.tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink2); }
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.tabs button em { font-style: normal; font: 500 11px var(--mono); background: var(--red); color: #fff; border-radius: 999px; padding: 0 6px; margin-left: 6px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 16px; }
.card h2 { font: 600 20px/1.2 var(--serif); margin: 0 0 4px; }
.card > p.note, .note { margin: 0 0 14px; font-size: 13px; color: var(--mute); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.text, .sel { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; min-width: 0; }
textarea.text { height: auto; min-height: 70px; padding: 8px 12px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); cursor: pointer; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--ink); }
.check small { display: block; color: var(--mute); font-weight: 400; }
.empty { padding: 26px; text-align: center; color: var(--mute); border: 1px dashed var(--line); border-radius: 14px; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font: 600 12px var(--sans); color: var(--mute); padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.num { font-family: var(--mono); text-align: right; }
table.list th.num { text-align: right; }
.who b { display: block; }
.who small { color: var(--mute); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--paper2); color: var(--ink2); }
.tag.owner { background: var(--ink); color: var(--paper); }
.tag.pending { background: #fff3c8; color: #7a5a00; }
.tag.approved { background: #e1f2e7; color: #0b6b3a; }
.tag.changes { background: #fbe4e0; color: #a3261b; }
.link-box { display: flex; gap: 8px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; margin-top: 10px; }
.link-box code { flex: 1; font: 12px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Brand kit */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.swatch input[type=color] { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 12px; padding: 0; background: none; cursor: pointer; }
.swatch input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input[type=color]::-webkit-color-swatch { border: 0; border-radius: 11px; }
.swatch code { font: 11px var(--mono); color: var(--ink2); }
.swatch .x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 12px; line-height: 1; padding: 0; }
.swatch.add button { width: 52px; height: 52px; border: 1px dashed var(--mute); border-radius: 12px; background: none; font-size: 22px; color: var(--mute); }
.chip { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); }
.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.logo { width: 120px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; position: relative; text-align: center; font-size: 12px; }
.logo img { width: 100%; height: 70px; object-fit: contain; display: block; margin-bottom: 4px; }
.logo .x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 12px; padding: 0; }
.preview { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.preview .ph { font-size: 30px; line-height: 1.1; margin: 0 0 6px; }
.preview .pb { margin: 0 0 12px; }
.preview .bar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; }
.preview .bar i { flex: 1; }
.lockbox { border: 1.5px solid var(--ink); border-radius: 14px; padding: 14px 16px; background: #fff8e0; }

/* Approvals */
.apr { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.apr:last-child { border-bottom: 0; }
.apr .pic { width: 180px; height: 130px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper2) center/contain no-repeat; display: grid; place-items: center; color: var(--mute); font-size: 12px; text-decoration: none; }
.apr h3 { margin: 0 0 2px; font: 600 17px/1.3 var(--sans); }
.apr .meta { font-size: 13px; color: var(--mute); margin: 0 0 6px; }
.apr blockquote { margin: 0 0 10px; padding: 6px 12px; border-left: 3px solid var(--line); background: var(--paper); border-radius: 0 8px 8px 0; font-size: 14px; }
.apr blockquote.dec { border-left-color: var(--red); }

/* Usage */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.tile span { font-size: 13px; font-weight: 600; color: var(--ink2); }
.tile b { display: block; font: 500 30px/1.15 var(--mono); letter-spacing: -.04em; }
.tile small { font-size: 12px; color: var(--mute); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; padding-top: 8px; }
.bars i { flex: 1; background: var(--blue); border-radius: 3px 3px 0 0; min-height: 1px; position: relative; }
.bars i:hover { background: var(--ink); }
.axis { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--mute); margin-top: 4px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--ink2); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

/* Sign-in */
.dom { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.dom:last-child { border-bottom: 0; }
.dom h3 { margin: 0; font: 600 17px var(--mono); }
.dom .opts { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; font-size: 14px; }
.prove { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.ms-btn { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #8c8c8c; background: #fff; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.ms-btn svg { width: 16px; height: 16px; }

.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; transform: translateY(8px); transition: .2s; }
.toast.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .t-top, .t-main { padding-left: 16px; padding-right: 16px; }
  .t-top > .btn { display: none; }
  .grid2, .tiles { grid-template-columns: 1fr 1fr; }
  .apr { grid-template-columns: 1fr; }
  .apr .pic { width: 100%; }
  table.list .hide-sm { display: none; }
}
@media print {
  .t-top, .tabs, .btn { display: none !important; }
  body { background: #fff; }
}
