/* upGrad One. Tokens follow the desktop app: dark first, light via prefers-color-scheme. */
:root {
  --bg: #0B0B0C;
  --s1: #141416;
  --s2: #1C1C1F;
  --s3: #26262A;
  --bd: #2A2A2E;
  --bd-hi: #3D3D43;
  --tx: #FFFFFF;
  --mu: #8A8A93;
  --ac: #EE2C3C;
  --ac-hi: #FF4655;
  --am: #FF9F0A;
  --bl: #6BB3FF;
  --gn: #38C76A;
  --ac-t: rgba(238, 44, 60, .16);
  --am-t: rgba(255, 159, 10, .16);
  --bl-t: rgba(107, 179, 255, .16);
  --gn-t: rgba(56, 199, 106, .16);
  --cl: #E58B67;
  --cl-t: rgba(229, 139, 103, .16);
  --field: #0F0F11;
  --scrim: rgba(0, 0, 0, .55);
  --r: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F4F4F6;
    --s1: #FFFFFF;
    --s2: #FFFFFF;
    --s3: #ECECF0;
    --bd: #E1E1E6;
    --bd-hi: #C6C6CE;
    --tx: #111113;
    --mu: #6C6C76;
    --ac: #E32233;
    --ac-hi: #C91A2A;
    --am: #B96300;
    --bl: #1D6FCB;
    --gn: #1B8F4A;
    --ac-t: rgba(227, 34, 51, .10);
    --am-t: rgba(185, 99, 0, .12);
    --bl-t: rgba(29, 111, 203, .10);
    --gn-t: rgba(27, 143, 74, .11);
    --cl: #B5532E;
    --cl-t: rgba(181, 83, 46, .11);
    --field: #FFFFFF;
    --scrim: rgba(20, 20, 24, .38);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--bl); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* wordmark: the logo's "upGrad" cropped, then "One" and the product name as text so it reads in both themes */
.brand { --lh: 22px; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--tx); white-space: nowrap; }
.brand-mark { display: inline-block; height: var(--lh); width: calc(var(--lh) * 3.45); overflow: hidden; flex: none; }
.brand-mark img { display: block; height: var(--lh); width: auto; max-width: none; }
.brand-one { font-size: calc(var(--lh) * .86); font-weight: 400; letter-spacing: -.01em; opacity: .72; }
.brand-sub { font-size: calc(var(--lh) * .62); color: var(--mu); font-weight: 500; letter-spacing: .01em; }

/* buttons and inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--bd);
  background: var(--s2); color: var(--tx); font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { border-color: var(--bd-hi); background: var(--s3); }
.btn[disabled] { opacity: .42; cursor: not-allowed; }
.btn[disabled]:hover { border-color: var(--bd); background: var(--s2); }
.btn-accent { background: var(--ac); border-color: var(--ac); color: #fff; }
.btn-accent:hover { background: var(--ac-hi); border-color: var(--ac-hi); }
.btn-accent[disabled]:hover { background: var(--ac); border-color: var(--ac); }
.btn-green { background: var(--gn); border-color: var(--gn); color: #fff; }
.btn-green:hover { background: var(--gn); border-color: var(--gn); filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--mu); }
.btn-ghost:hover { background: var(--s3); color: var(--tx); border-color: transparent; }
.btn-danger { color: var(--ac); }
.btn-danger-solid { background: var(--ac); border-color: var(--ac); color: #fff; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-icon { width: 34px; padding: 0; }
.btn-sm.btn-icon { width: 28px; }

.input, .select, .textarea {
  width: 100%; min-width: 0; height: 36px; padding: 0 10px; border-radius: 9px;
  border: 1px solid var(--bd); background: var(--field); color: var(--tx); font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 112px; padding: 9px 10px; resize: vertical; line-height: 1.5; }
.select { padding-right: 28px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238A8A93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input::placeholder, .textarea::placeholder { color: var(--mu); opacity: .75; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--bd-hi); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--bl); box-shadow: 0 0 0 3px var(--bl-t); }
.input[aria-invalid="true"] { border-color: var(--ac); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 12px; color: var(--mu); font-weight: 500; }
.hint { font-size: 12px; color: var(--mu); }

.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--s3); color: var(--mu); white-space: nowrap; }
.badge.super { background: var(--ac-t); color: var(--ac); }
.badge.admin { background: var(--bl-t); color: var(--bl); }
.badge.off { background: var(--am-t); color: var(--am); }

.av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 11px; font-weight: 700; color: #fff; background: #5A5A64; text-transform: uppercase; }
.av.lg { width: 30px; height: 30px; font-size: 13px; }
.av-0 { background: #C2414D; } .av-1 { background: #3E7BC4; } .av-2 { background: #B07518; }
.av-3 { background: #2F9A5B; } .av-4 { background: #7C5CC4; } .av-5 { background: #2A94A0; }
.av.none { background: transparent; border: 1.5px dashed var(--bd-hi); color: var(--mu); }

/* shell */
.app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.top {
  display: flex; align-items: center; gap: 22px; min-height: 56px; padding: 0 20px;
  background: var(--bg); border-bottom: 1px solid var(--bd); flex: none; z-index: 20;
}
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.nav a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px;
  color: var(--mu); text-decoration: none; font-weight: 500; font-size: 13.5px; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--tx); background: var(--s3); }
.nav a[aria-current="page"] { color: var(--tx); background: var(--s3); }
.top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.menu-wrap { position: relative; }
.acct { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 5px; border-radius: 999px; border: 1px solid var(--bd); background: var(--s1); }
.acct:hover { border-color: var(--bd-hi); }
.acct-name { font-weight: 600; font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; z-index: 30;
  background: var(--s2); border: 1px solid var(--bd); border-radius: var(--r);
}
.pop-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--bd); margin-bottom: 6px; }
.pop-head b { display: block; font-size: 13px; }
.pop-head .badge { margin-top: 6px; }
.pop-head span { color: var(--mu); font-size: 12px; word-break: break-all; }
.pop a, .pop button {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 8px;
  background: none; text-align: left; text-decoration: none; font-size: 13.5px; font-weight: 500;
}
.pop a:hover, .pop button:hover { background: var(--s3); }

main { flex: 1; min-height: 0; overflow: auto; position: relative; }
main:focus { outline: none; }
.page { max-width: 880px; margin: 0 auto; padding: 28px 20px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; letter-spacing: -.015em; font-weight: 650; }
.page-head p { color: var(--mu); margin-top: 3px; }

/* board */
.board-wrap { height: 100%; display: flex; flex-direction: column; padding: 14px 20px 0; min-height: 0; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; flex: none; }
.search { position: relative; flex: 1 1 220px; max-width: 340px; }
.search .ic { position: absolute; left: 10px; top: 10px; color: var(--mu); pointer-events: none; }
.search .input { padding-left: 32px; }
.toolbar .select { width: auto; min-width: 140px; }
.switch { display: inline-flex; align-items: center; gap: 8px; color: var(--mu); font-size: 13px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 30px; height: 18px; border-radius: 999px; background: var(--s3); border: 1px solid var(--bd); position: relative; transition: background .15s, border-color .15s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--mu); transition: transform .15s, background .15s; }
.switch input:checked + i { background: var(--ac-t); border-color: var(--ac); }
.switch input:checked + i::after { transform: translateX(12px); background: var(--ac); }
.switch input:focus-visible + i { outline: 2px solid var(--bl); outline-offset: 2px; }
.switch:hover { color: var(--tx); }
.tb-end { margin-left: auto; font-size: 12px; color: var(--mu); display: inline-flex; align-items: center; gap: 6px; }
.tb-end.bad { color: var(--am); }
.tb-end .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gn); }
.tb-end.bad .dot { background: var(--am); }

.tabs { display: none; }
.cols { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-bottom: 14px; }
.col { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--s1); border: 1px solid var(--bd); border-radius: var(--r); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; flex: none; }
.col-head h2 { font-size: 13px; font-weight: 650; letter-spacing: .005em; }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--mu); flex: none; }
.s-doing .sdot, .sdot.s-doing { background: var(--bl); }
.s-review .sdot, .sdot.s-review { background: var(--am); }
.s-done .sdot, .sdot.s-done { background: var(--gn); }
.count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--mu); background: var(--s3); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.col-list { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 10px 10px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: var(--bd-hi) transparent; }
.col-foot { padding: 6px 10px 10px; flex: none; }
.col-foot .btn { width: 100%; }
.col-empty { margin: auto; padding: 24px 12px; text-align: center; color: var(--mu); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.col-empty .ic { width: 22px; height: 22px; opacity: .6; }

.card {
  display: flex; flex-direction: column; gap: 9px; padding: 11px 12px 11px; background: var(--s2);
  border: 1px solid var(--bd); border-radius: var(--r); color: inherit; text-decoration: none;
  transition: border-color .15s, transform .15s, background .15s;
}
.card:hover { border-color: var(--bd-hi); transform: translateY(-1px); }
.card.is-archived { opacity: .6; }
.card.is-active { border-color: var(--bl); }
.card-top { display: flex; align-items: center; gap: 6px; color: var(--mu); font-size: 12px; font-variant-numeric: tabular-nums; }
.card-top .tool { margin-left: auto; }
.pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); flex: none; }
.card-title { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; letter-spacing: -.003em; }
.card-meta { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.who { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mu); min-width: 0; }
.who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-icons { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; color: var(--mu); font-size: 12px; }
.card-icons .ic { width: 14px; height: 14px; }
.card-icons .n { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--s3); color: var(--mu); white-space: nowrap; }
.chip.late { background: var(--ac-t); color: var(--ac); }
.chip.today { background: var(--am-t); color: var(--am); }
.tag { font-size: 11.5px; color: var(--mu); border: 1px solid var(--bd); border-radius: 6px; padding: 0 6px; height: 19px; display: inline-flex; align-items: center; }
.tag.arch { color: var(--am); border-color: var(--am-t); background: var(--am-t); }

.skel { height: 92px; border-radius: var(--r); background: var(--s2); border: 1px solid var(--bd); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

.empty { text-align: center; padding: 56px 20px; color: var(--mu); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic { width: 28px; height: 28px; opacity: .55; }
.empty b { color: var(--tx); font-size: 15px; font-weight: 600; }

/* drawer */
.scrim { position: fixed; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .2s; z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100%; z-index: 41; display: flex; flex-direction: column;
  background: var(--s1); border-left: 1px solid var(--bd); box-shadow: -10px 0 36px rgba(0, 0, 0, .28);
  transform: translateX(28px); opacity: 0; transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .18s;
}
.is-open .scrim { opacity: 1; }
.is-open .drawer { transform: none; opacity: 1; }
.dr-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 12px; border-bottom: 1px solid var(--bd); flex: none; }
.dr-id { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--mu); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--s3); color: var(--mu); }
.pill.s-doing { background: var(--bl-t); color: var(--bl); }
.pill.s-review { background: var(--am-t); color: var(--am); }
.pill.s-done { background: var(--gn-t); color: var(--gn); }
.dr-head .btn-icon { margin-left: auto; }
.dr-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px 24px; display: flex; flex-direction: column; gap: 20px; }
.dr-foot { flex: none; display: flex; gap: 8px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--bd); background: var(--s1); }
.dr-foot .grow { flex: 1; }
.title-input { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 9px; padding: 6px 8px; margin: -6px -8px; width: calc(100% + 16px); font-size: 19px; font-weight: 650; letter-spacing: -.012em; line-height: 1.3; }
.title-input:hover { border-color: var(--bd); }
.title-input:focus { outline: none; border-color: var(--bl); background: var(--field); box-shadow: 0 0 0 3px var(--bl-t); }
.byline { color: var(--mu); font-size: 12px; margin-top: 8px; }
.notice { font-size: 12.5px; padding: 8px 10px; border-radius: 9px; background: var(--bl-t); color: var(--bl); }
.notice.arch { background: var(--am-t); color: var(--am); display: flex; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions .select { width: auto; height: 34px; min-width: 116px; color: var(--mu); font-size: 13px; font-weight: 500; margin-left: auto; }
.inline-panel { border: 1px solid var(--bd); background: var(--s2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.inline-panel p { font-size: 13px; }
.inline-panel .row { display: flex; gap: 8px; flex-wrap: wrap; }
.drawer:focus { outline: none; }
.lbl-row { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin-bottom: -2px; }
.lbl-row .btn { margin-right: -8px; }
.link-row { display: flex; gap: 6px; align-items: center; }
.link-row .input { flex: 1; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--mu); margin-bottom: 10px; }
.sec-title span { font-weight: 500; letter-spacing: 0; text-transform: none; }
.notes { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.note { display: flex; gap: 10px; }
.note-body { min-width: 0; flex: 1; }
.note-meta { font-size: 12px; color: var(--mu); }
.note-meta b { color: var(--tx); font-weight: 600; margin-right: 6px; }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.note-text a, .hist a { color: var(--bl); }
.note-add { display: flex; flex-direction: column; gap: 8px; }
.note-add .textarea { min-height: 72px; }
.note-add .row { display: flex; align-items: center; gap: 10px; }
.note-add .hint { margin-left: auto; }
.none-yet { color: var(--mu); font-size: 13px; padding: 2px 0 12px; }
details.hist summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.hist summary::-webkit-details-marker { display: none; }
details.hist summary .ic { transition: transform .15s; }
details.hist[open] summary .ic { transform: rotate(90deg); }
.hist ul { list-style: none; margin: 4px 0 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--bd); margin-left: 6px; }
.hist li { padding-left: 12px; font-size: 13px; position: relative; }
.hist li small { display: block; color: var(--mu); font-size: 11.5px; }
.danger-zone { border-top: 1px solid var(--bd); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.danger-zone .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* modal */
.modal-scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .18s; }
.modal-scrim.is-open { opacity: 1; }
.modal { width: 100%; max-width: 440px; background: var(--s1); border: 1px solid var(--bd); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; transform: translateY(8px); transition: transform .2s; }
.is-open > .modal { transform: none; }
.modal h2 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.modal p { color: var(--mu); }
.modal .actions { justify-content: flex-end; }
.secret { font-family: var(--mono); font-size: 18px; letter-spacing: .02em; padding: 14px; text-align: center; border-radius: 10px; background: var(--field); border: 1px dashed var(--bd-hi); user-select: all; overflow-wrap: anywhere; }

/* tables and lists */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--s1); border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--mu); padding: 10px 14px; border-bottom: 1px solid var(--bd); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--bd); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .num a { color: var(--bl); font-weight: 600; text-decoration: none; }
.tbl .num a:hover { text-decoration: underline; }
.cell-who { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.muted { color: var(--mu); }
.note-box { margin-top: 14px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--bd); background: var(--s1); color: var(--mu); font-size: 13px; }
.note-box.warn { border-color: var(--am-t); background: var(--am-t); color: var(--am); }
.note-box code, .empty code { font-family: var(--mono); font-size: 12.5px; background: var(--s3); color: var(--tx); padding: 2px 6px; border-radius: 6px; user-select: all; }
.cards-list { display: flex; flex-direction: column; gap: 8px; }
.row-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--s1); border: 1px solid var(--bd); border-radius: var(--r); }
.row-card .grow { flex: 1; min-width: 0; }
.row-card b { font-weight: 600; }
.row-card .sub { color: var(--mu); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-card.is-off .av { opacity: .5; }
.row-card.is-off .grow { opacity: .65; }
.panel { background: var(--s1); border: 1px solid var(--bd); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.panel h2 { font-size: 14px; font-weight: 650; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { flex: 1 1 200px; }
.day { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--mu); margin: 22px 0 8px; }
.day:first-child { margin-top: 0; }
.log { list-style: none; margin: 0; padding: 0; background: var(--s1); border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; }
.log li { display: flex; gap: 12px; align-items: baseline; padding: 11px 14px; border-bottom: 1px solid var(--bd); }
.log li:last-child { border-bottom: 0; }
.log .t { width: 118px; flex: none; white-space: nowrap; color: var(--mu); font-size: 12px; font-variant-numeric: tabular-nums; }
.log .w { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.log .w b { font-weight: 600; margin-right: 5px; }
.log a { color: var(--bl); text-decoration: none; font-weight: 600; }
.log a:hover { text-decoration: underline; }
.acct-card { display: flex; align-items: center; gap: 14px; }
.acct-card .grow b { display: block; font-size: 16px; }
.acct-card .grow span { color: var(--mu); }

/* toasts */
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 460px); pointer-events: none; }
.toast { pointer-events: auto; width: 100%; padding: 11px 14px; border-radius: 11px; background: var(--s3); border: 1px solid var(--bd-hi); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; animation: rise .2s ease-out; }
.toast.error { border-color: var(--ac); }
.toast.ok .ic { color: var(--gn); }
.toast.error .ic { color: var(--ac); }
.toast .ic { margin-top: 2px; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* sign in */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 26px; }
.login .brand { --lh: 40px; }
.login-lead { color: var(--mu); font-size: 15px; line-height: 1.5; margin-top: 12px; }
.login-lead b { color: var(--tx); font-weight: 600; }
.login form { display: flex; flex-direction: column; gap: 14px; }
.login .input { height: 42px; font-size: 15px; }
.pw { position: relative; }
.pw .input { padding-right: 62px; }
.pw button { position: absolute; right: 4px; top: 4px; height: 34px; padding: 0 10px; border: 0; background: none; color: var(--mu); font-size: 12.5px; font-weight: 600; border-radius: 7px; }
.pw button:hover { color: var(--tx); background: var(--s3); }
.login .btn-accent { height: 42px; font-size: 15px; border-radius: 10px; }
.login-foot { color: var(--mu); font-size: 13px; }
.flow { display: flex; gap: 14px; flex-wrap: wrap; color: var(--mu); font-size: 12px; margin-top: 4px; }
.flow span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1100px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-y: auto; align-content: start; grid-auto-rows: minmax(300px, 1fr); }
}

/* under 760px the four columns become four tabs and one list */
@media (max-width: 759.98px) {
  .top { flex-wrap: wrap; padding: 10px 16px 6px; gap: 10px; }
  .brand { --lh: 19px; }
  .nav { order: 3; flex: 1 0 100%; overflow-x: auto; margin: 0 -4px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .acct-name { display: none; }
  .top-right { gap: 8px; }
  .page { padding: 20px 16px 48px; }
  .board-wrap { display: block; height: auto; padding: 12px 16px 24px; }
  .toolbar .select { flex: 1 1 130px; }
  .search { max-width: none; flex-basis: 100%; }
  .toolbar { gap: 8px 10px; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--s1); border: 1px solid var(--bd); border-radius: 12px; margin-bottom: 12px; position: sticky; top: 0; z-index: 5; }
  .tabs button { border: 0; background: none; height: 50px; border-radius: 9px; color: var(--mu); font-size: 11.5px; font-weight: 600; display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 1px; padding: 0 2px; min-width: 0; white-space: nowrap; }
  .tabs button span.n { font-size: 16px; line-height: 1.1; font-weight: 650; color: var(--tx); font-variant-numeric: tabular-nums; }
  .tabs button[aria-selected="true"] { background: var(--s3); color: var(--tx); }
  #toasts { bottom: auto; top: 12px; }
  .acct .badge { display: none; }
  .acct { padding: 0 5px; }
  .cols { display: block; padding: 0; overflow: visible; }
  .col { display: none; background: none; border: 0; border-radius: 0; }
  .cols[data-tab="todo"] .col[data-status="todo"],
  .cols[data-tab="doing"] .col[data-status="doing"],
  .cols[data-tab="review"] .col[data-status="review"],
  .cols[data-tab="done"] .col[data-status="done"] { display: flex; }
  .col-head { display: none; }
  .col-list { overflow: visible; padding: 0; }
  .col-foot { padding: 10px 0 0; }
  .drawer { width: 100%; border-left: 0; box-shadow: none; transform: translateY(24px); }
  .dr-head, .dr-body, .dr-foot { padding-left: 16px; padding-right: 16px; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 10px 14px; border-bottom: 1px solid var(--bd); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td { padding: 0; border: 0; }
  .tbl td.email { grid-column: 1; color: var(--mu); font-size: 12.5px; overflow-wrap: anywhere; }
  .tbl td.num { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  .tbl td.role { grid-column: 1; }
  .row-card { flex-wrap: wrap; }
  .row-card .actions { flex: 1 0 100%; }
  .log li { flex-direction: column; gap: 2px; }
  .log .t { width: auto; }
}

/* phones: 40px+ tap targets, and 16px fields so iOS doesn't zoom in on focus */
@media (max-width: 759.98px), (pointer: coarse) {
  .btn, .input, .select, .nav a, .acct, .pop a, .pop button, .switch { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .btn-icon, .btn-sm.btn-icon { min-width: 44px; min-height: 44px; }
  .acct { min-width: 44px; justify-content: center; }
  .input, .select, .textarea, .login .input { font-size: 16px; }
  .login .input { height: 46px; }
  .pw button { top: 0; height: 46px; }
  .search .ic { top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===================== upGrad One v1: shell, home, usage, people, models, settings ===================== */
:root { --hv: var(--ac); --hv-t: var(--ac-t); --pg: var(--bl); --pg-t: var(--bl-t); }

/* wordmark and nav */
.nav a { position: relative; }
.nav-badge { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ac); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.pop-extra:empty { display: none; }
.pop-note { padding: 8px 10px; font-size: 12.5px; color: var(--mu); }
.badge.mgr { background: var(--am-t); color: var(--am); }
.badge.ok { background: var(--gn-t); color: var(--gn); }
.badge.heavy { background: var(--hv-t); color: var(--hv); margin-left: 6px; text-transform: uppercase; letter-spacing: .04em; font-size: 10px; }
.badge.beta { background: var(--bl-t); color: var(--bl); }
.off-title { font-size: 22px; font-weight: 650; letter-spacing: -.015em; }

/* the Generator owns the whole area under the header */
main.is-gen { overflow: hidden; padding: 0; }
.gen-host { height: 100%; min-height: 0; }

/* pages */
.page.wide { max-width: 1180px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 11px; }
.btn.tight, .actions.tight { gap: 6px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.pad { padding: 14px; } .pad-t { padding-top: 12px; } .pad-b { padding-bottom: 12px; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.card-sec { background: var(--s1); border: 1px solid var(--bd); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.card-sec > .sec-title { margin-bottom: 12px; }
.card-sec > p { margin-bottom: 12px; }
.panel-d { background: var(--s1); border: 1px solid var(--bd); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.notice.bad { background: var(--ac-t); color: var(--ac); }
.notice { margin-bottom: 12px; }
.field.narrow { max-width: 200px; }
.num-in { width: 100%; font-variant-numeric: tabular-nums; }

/* credits and rupees: the rupees are smaller */
.cr { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs { font-size: .78em; color: var(--mu); font-weight: 500; }

/* policy pills and person/project dots */
.pill.pol-allowed { background: var(--gn-t); color: var(--gn); }
.pill.pol-heavy { background: var(--hv-t); color: var(--hv); }
.pill.pol-playground { background: var(--pg-t); color: var(--pg); }
.pill.pol-blocked { background: var(--s3); color: var(--mu); }
.jdot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #5A5A64; }
.jd-0 { background: #C2414D; } .jd-1 { background: #3E7BC4; } .jd-2 { background: #B07518; }
.jd-3 { background: #2F9A5B; } .jd-4 { background: #7C5CC4; } .jd-5 { background: #2A94A0; }

/* lists */
.list { display: flex; flex-direction: column; gap: 6px; }
.row-link, .row-plain {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: var(--r);
  background: var(--s1); border: 1px solid var(--bd); color: inherit; text-decoration: none;
}
.card-sec .row-link, .card-sec .row-plain { background: var(--s2); }
.row-link:hover { border-color: var(--bd-hi); background: var(--s3); }
.row-link > .ic { color: var(--mu); }
.row-link .grow, .row-plain .grow { flex: 1; min-width: 0; }
.rl-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-sub { font-size: 12.5px; color: var(--mu); overflow: hidden; text-overflow: ellipsis; }
.rl-cost { font-weight: 600; font-size: 13px; text-align: right; min-width: 64px; }
.more-link { display: block; text-align: center; padding: 10px; color: var(--bl); font-weight: 600; text-decoration: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--bd); background: var(--s1); color: var(--mu); font-weight: 600; font-size: 13px; }
.chipbtn:hover { color: var(--tx); border-color: var(--bd-hi); }
.chipbtn[aria-selected="true"] { background: var(--s3); color: var(--tx); border-color: var(--bd-hi); }
.chipbtn .n { font-size: 11.5px; color: var(--mu); font-variant-numeric: tabular-nums; }
.gstat { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--s3); color: var(--mu); white-space: nowrap; }
.gstat.g-running { background: var(--bl-t); color: var(--bl); }
.gstat.g-done { background: var(--gn-t); color: var(--gn); }
.gstat.g-failed, .gstat.g-stuck { background: var(--ac-t); color: var(--ac); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tile { background: var(--s1); border: 1px solid var(--bd); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit; text-decoration: none; }
.tile.link:hover { border-color: var(--bd-hi); }
.tile-l { font-size: 12px; font-weight: 500; color: var(--mu); }
.tile-v { font-size: 24px; font-weight: 650; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.tile-v .rs { font-size: 13px; }
.tile-s { font-size: 12.5px; color: var(--mu); display: flex; flex-direction: column; gap: 6px; }
.tile.warn { border-color: var(--am); }
.tile.warn .tile-s { color: var(--am); }
.tile.hot { border-color: var(--ac); background: var(--ac-t); }
.tile.hot .tile-s { color: var(--ac); }
.strip { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.strip-i { display: inline-flex; align-items: baseline; gap: 5px; text-decoration: none; color: var(--mu); font-size: 12.5px; }
.strip-i b { color: var(--tx); font-size: 15px; font-variant-numeric: tabular-nums; }
.strip-i:hover span { color: var(--tx); }
.mini-bar { display: block; height: 6px; border-radius: 999px; background: var(--s3); overflow: hidden; min-width: 70px; }
.mini-bar i { display: block; height: 100%; background: var(--gn); border-radius: 999px; }
.mini-bar.warn i { background: var(--am); }
.mini-bar.full i { background: var(--ac); }
.row-plain .mini-bar { width: 90px; }
.playground { border-color: var(--pg-t); background: var(--pg-t); }
.playground .sec-title { color: var(--pg); }
.playground p { color: var(--tx); }

/* thumbs, shimmer */
.shimmer { position: relative; overflow: hidden; background: var(--s3); }
.shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .09) 50%, transparent 70%); transform: translateX(-100%); animation: shim 1.5s ease-in-out infinite; }
@keyframes shim { to { transform: translateX(100%); } }
.thumb { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: var(--s3); color: var(--mu); aspect-ratio: 4 / 3; width: 100%; }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-play { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; }

/* request cards (were approval cards) */
.ap-list { display: flex; flex-direction: column; gap: 12px; }
.ap-card { background: var(--s2); border: 1px solid var(--bd); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ap-head { display: flex; align-items: center; gap: 10px; }
.ap-head .grow { flex: 1; min-width: 0; }
.ap-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.ap-cols .lbl { margin-bottom: 6px; }

/* creation tiles (Home) */
.gtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.gt { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; min-width: 0; }
.gt-t { aspect-ratio: 1; }
.gt-cap { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--mu); }
.gt-cap span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-state { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 1; font-size: 11px; font-weight: 600; color: var(--tx); text-align: center; line-height: 1.25; }
.gt.failed .gt-t { background: var(--ac-t); color: var(--ac); }
.gt.running .gt-t { place-items: end center; }

/* tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.tbl-wrap > .tbl { min-width: 560px; }
.tbl .rl-sub { white-space: nowrap; }
.who-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-card.wrap { flex-wrap: wrap; }
.row-card .actions { margin-left: auto; }
select.pol { width: auto; min-width: 190px; height: 32px; }
select.pol-heavy { border-color: var(--hv); color: var(--hv); }
select.pol-playground { border-color: var(--pg); color: var(--pg); }
select.pol-blocked { color: var(--mu); }

/* settings */
.conn-id { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.conn-id .grow { flex: 1; min-width: 200px; }
.conn-mail { font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.conn-bal { display: flex; flex-direction: column; align-items: flex-end; }
.conn-bal small { color: var(--mu); font-size: 11.5px; }
.conn-bal b { font-size: 20px; font-variant-numeric: tabular-nums; }
.conn .actions { margin-top: 12px; }
.panel .switch { align-self: flex-start; }

/* offline page */
@media (prefers-reduced-motion: reduce) { .shimmer::after { animation: none; } }

@media (max-width: 1100px) {
  .nav a { padding: 0 9px; }
  .top { gap: 14px; }
}
@media (max-width: 959.98px) {
  .ap-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759.98px) {
  .btn { height: 40px; }
  .btn-sm { height: 34px; }
  .input, .select { height: 42px; }
  .row-link, .row-plain { min-height: 64px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-v { font-size: 20px; }
  .grid2 { grid-template-columns: 1fr; }
  .row-card .actions { margin-left: 0; width: 100%; }
  .page-actions .btn { flex: 1 1 auto; }
  .nav-badge { margin-left: 4px; }
  select.pol { min-width: 0; width: 100%; }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr; }
}

/* ===================== upGrad One v1: weekly allowance, requests, install ===================== */

/* the week pill: "This week · 1,250 / 5,000 credits", a thin bar, "Ask for more" */
.wk { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 4px 6px 4px 12px; border-radius: 9px; border: 1px solid var(--bd); background: var(--s1); color: var(--mu); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-in { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wk-t b { color: var(--tx); font-weight: 650; }
.wk-bar { display: block; height: 3px; border-radius: 999px; background: var(--s3); overflow: hidden; min-width: 120px; }
.wk-bar i { display: block; height: 100%; width: 0; background: var(--gn); border-radius: 999px; transition: width .3s; }
.wk-bar.warn i { background: var(--am); }
.wk-bar.full i { background: var(--ac); }
.wk.low { border-color: var(--am-t); }
.wk-ask { height: 24px; padding: 0 9px; border: 0; border-radius: 7px; background: var(--ac-t); color: var(--ac); font-size: 12px; font-weight: 650; white-space: nowrap; }
.wk-ask:hover { background: var(--ac); color: #fff; }
.wk-wait { font-size: 11.5px; color: var(--am); font-weight: 600; padding-right: 6px; }
.wk.big { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px 18px; border-radius: var(--r); white-space: normal; }
.wk.big .wk-bar { height: 8px; min-width: 0; }
.wk-l { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--mu); }
.wk-v { color: var(--mu); font-size: 15px; }
.wk-v b { color: var(--tx); font-size: 30px; font-weight: 650; letter-spacing: -.02em; }
.wk-s { font-size: 12.5px; }
.wk-r { display: flex; }
.wk.big .wk-ask { height: 36px; padding: 0 16px; font-size: 13.5px; border-radius: 9px; background: var(--ac); color: #fff; }
.wk.big .wk-ask:hover { background: var(--ac-hi); }
.wk.big .wk-wait { font-size: 13px; padding: 0; }
.home-week { margin-bottom: 14px; }
.home-week.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.wk.pool .wk-bar i { background: var(--bl, var(--gn)); }

/* Ask for more */
.ask .field .hint { align-self: flex-end; }
.ask-prompt { font-size: 12.5px; color: var(--mu); background: var(--s3); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-attach { display: flex; align-items: center; gap: 10px; }
.ask-img { position: relative; width: 72px; height: 72px; border-radius: 9px; overflow: hidden; background: var(--s3); }
.ask-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ask-img-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 15px; line-height: 1; }

/* Requests */
.rq-who b { font-weight: 650; font-size: 15px; }
.rq-reason { margin-top: 2px; overflow-wrap: anywhere; }
.rq-wk { margin-top: 6px; }
.rq-gens { display: flex; flex-direction: column; gap: 2px; }
.rq-gen { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: 10px; padding: 6px 8px; border-radius: 8px; background: var(--s1); align-items: center; }
.rq-gen-t { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-gen-m { grid-row: 2; font-size: 11.5px; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-gen .gstat { grid-row: 1 / span 2; grid-column: 2; }
.rq-gen .rl-cost { grid-row: 1 / span 2; grid-column: 3; }
.rq-att { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 16px; }
.rq-att > :only-child { grid-column: 1 / -1; }
.rq-prompt p { font-size: 13px; background: var(--s1); border-radius: 8px; padding: 8px 10px; max-height: 120px; overflow: auto; }
.rq-pic .lbl, .rq-prompt .lbl { margin-bottom: 6px; display: block; }
.rq-thumb { aspect-ratio: 1; }
.rq-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rq-amtl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mu); }
.rq-amt { width: 110px; font-variant-numeric: tabular-nums; }
.rq-note { flex: 1 0 100%; display: flex; flex-direction: column; gap: 8px; }
.rq-acts .hint { margin-left: auto; }
.pill.rq-s-open { background: var(--am-t); color: var(--am); }
.pill.rq-s-approved { background: var(--gn-t); color: var(--gn); }
.pill.rq-s-declined { background: var(--ac-t); color: var(--ac); }
.pill.rq-s-cancelled { background: var(--s3); color: var(--mu); }
.badge.rq-flag { text-decoration: none; margin-left: 6px; }

/* People, Usage, Models, Projects */
.pp-week { display: flex; align-items: center; gap: 10px; margin-top: 4px; white-space: normal; }
.pp-week .mini-bar { width: 90px; flex: none; }
.al-presets { margin: 0; }
.tbl td.num .mini-bar { margin: 4px 0 0 auto; width: 70px; }
.usage-two { align-items: start; }
.pol-tabs { margin-bottom: 16px; }
.pol-tabs .chipbtn { text-decoration: none; }
.tp-cell { display: flex; align-items: center; gap: 10px; }
.pj-name { max-width: 360px; height: 34px; }
.row-card .g-swatches { flex: none; }
.home-tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* the Install upGrad One screen */
.in-page { position: relative; z-index: 1; }
.in-card { max-width: 480px; gap: 22px; }
.in-for { color: var(--mu); margin-top: 4px; }
.in-body { display: flex; flex-direction: column; gap: 14px; }
.in-lead { font-size: 15px; line-height: 1.5; }
.in-lead b { font-weight: 650; }
.in-how { color: var(--mu); }
.in-go { width: 100%; }
.in-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--mu); }
.in-steps li::marker { color: var(--tx); font-weight: 650; }
.in-pic { border: 1px solid var(--bd); border-radius: var(--r); background: var(--s1); padding: 18px; display: flex; justify-content: center; }
.in-bar { display: flex; gap: 10px; align-items: flex-end; padding: 8px 12px; border-radius: 14px; background: var(--s3); border: 1px solid var(--bd-hi); }
.in-dock.windows .in-bar { border-radius: 6px; width: 100%; justify-content: center; }
.in-app { width: 34px; height: 34px; border-radius: 9px; background: var(--bd-hi); display: grid; place-items: center; overflow: hidden; }
.in-app img { width: 100%; height: 100%; display: block; }
.in-app.on { width: 46px; height: 46px; border-radius: 11px; box-shadow: 0 0 0 2px var(--ac); }
.in-menu { flex-direction: column; justify-content: flex-start; padding: 0; overflow: hidden; align-items: stretch; }
.in-mbar { display: flex; gap: 16px; padding: 7px 14px; font-size: 13px; background: var(--s3); border-bottom: 1px solid var(--bd); }
.in-mbar span { color: var(--mu); }
.in-mbar span.on { color: #fff; background: var(--bl); border-radius: 5px; padding: 0 6px; margin: 0 -6px; }
.in-drop { margin: 0 0 14px 56px; width: 210px; display: flex; flex-direction: column; padding: 5px; border: 1px solid var(--bd-hi); border-top: 0; border-radius: 0 0 10px 10px; background: var(--s2); font-size: 13px; }
.in-drop span { padding: 4px 9px; border-radius: 5px; }
.in-drop span.on { background: var(--bl); color: #fff; font-weight: 600; }
.in-drop i { display: block; height: 1px; margin: 4px 6px; background: var(--bd); }
.in-foot { display: flex; justify-content: center; }
.in-skip { border: 0; background: none; color: var(--mu); font-size: 13px; padding: 8px 10px; border-radius: 8px; }
.in-skip:hover { color: var(--tx); text-decoration: underline; }

@media (max-width: 759.98px) {
  .wk-bar { min-width: 80px; }
  .rq-att { grid-template-columns: 1fr; }
  .rq-acts .hint { margin-left: 0; flex-basis: 100%; }
  .usage-two { grid-template-columns: 1fr; }
}

/* ---------- the Claude connector: Account card, and Claude's gens in the Creations feed ---------- */
.ck-make .field { flex: 1 1 220px; max-width: 360px; }
.ck-fresh { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 10px; background: var(--s2); border: 1px solid var(--bd-hi); }
.ck-fresh-t { font-size: 13px; font-weight: 650; }
.ck-keyrow { display: flex; gap: 8px; align-items: center; }
.ck-key { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; line-height: 1.4; padding: 9px 11px; border-radius: 9px; background: var(--field); border: 1px dashed var(--bd-hi); color: var(--tx); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.ck-fresh-f { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.ck-list { gap: 6px; }
.panel .ck-row { background: var(--s2); min-height: 52px; padding: 8px 12px; }
.ck-ic { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--cl-t); color: var(--cl); }
.ck-err { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.g-cnote { font-size: 13.5px; font-weight: 650; letter-spacing: -.005em; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-card.has-note .g-cprompt { color: var(--mu); }
.g-cchip.g-cclaude { display: inline-block; line-height: 22px; flex: 0 1 auto; min-width: 0; max-width: 40%; overflow: hidden; text-overflow: ellipsis; background: var(--cl-t); color: var(--cl); }
.g-flist[data-layout="grid"] .g-cchip.g-cclaude { flex: none; max-width: none; }
.g-flist[data-layout="grid"] .g-cclaude-l { display: none; }
.g-card.is-new { animation: g-new 2.6s ease-out; }
@keyframes g-new { from { border-color: var(--cl); box-shadow: 0 0 0 3px var(--cl-t); } to { border-color: transparent; box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .g-card.is-new { animation: none; } }

@media (max-width: 759.98px) {
  .ck-keyrow { flex-wrap: wrap; }
  .ck-key { flex-basis: 100%; }
  .g-cchip.g-cclaude { max-width: 60%; }
}

/* ---------- tabs, like the Magnific desktop app (tabs.js): each tab's screen stays mounted under <main> ---------- */
main:has(> .tabview) { overflow: hidden; }
.tabview { position: absolute; inset: 0; overflow: auto; }
.tabview:focus { outline: none; }
.tabview.is-gen { overflow: hidden; }
/* A tab behind another keeps its screen exactly as it was, scroll included: hidden, never taken down. */
.tabview.off { visibility: hidden; pointer-events: none; }

.tabbar { display: flex; align-items: flex-end; gap: 4px; height: 38px; padding: 0 10px; flex: none; min-width: 0; background: var(--s1); border-bottom: 1px solid var(--bd); z-index: 19; }
.tb-list { display: flex; align-items: flex-end; gap: 2px; min-width: 0; height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tb-list::-webkit-scrollbar { display: none; }
.tb { position: relative; display: flex; align-items: center; flex: 0 1 200px; width: 200px; min-width: 116px; height: 31px; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0; border-radius: 9px 9px 0 0; color: var(--mu); }
.tb:hover { color: var(--tx); background: var(--s2); }
.tb.on { color: var(--tx); background: var(--bg); border-color: var(--bd); }
.tb-b { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 100%; padding: 0 2px 0 10px; border: 0; border-radius: 9px 9px 0 0; background: none; color: inherit; font-size: 12.5px; font-weight: 550; text-align: left; white-space: nowrap; }
.tb-b:focus-visible { outline-offset: -2px; }
.tb-b > .ic { width: 14px; height: 14px; }
.tb-b .t-ic { width: 18px; height: 18px; border-radius: 5px; }
.tb-b .t-ic .ic { width: 11px; height: 11px; }
.tb-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tb-x { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--mu); opacity: 0; }
.tb-x .ic { width: 12px; height: 12px; }
.tb:hover .tb-x, .tb.on .tb-x, .tb-x:focus-visible { opacity: 1; }
.tb-x:hover { background: var(--s3); color: var(--tx); }
.tb-new { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 4px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--mu); }
.tb-new:hover { background: var(--s3); color: var(--tx); }
.tb-new[disabled] { opacity: .35; cursor: not-allowed; background: none; }
.tb-drag { flex: 1; align-self: stretch; min-width: 24px; }
@media (hover: none) { .tb-x { opacity: 1; } }

/* The installed app with the window controls overlay on: the strip moves into the title bar. Its empty space drags
   the window; the tabs and buttons don't. Off (a browser tab, or the overlay switched off) it sits under the top bar. */
html.wco body { background: linear-gradient(var(--s1), var(--s1)) 0 0 / 100% env(titlebar-area-height, 38px) no-repeat, var(--bg); }
html.wco .app { padding-top: env(titlebar-area-height, 38px); }
html.wco .tabbar {
  position: fixed; z-index: 25; top: env(titlebar-area-y, 0); left: env(titlebar-area-x, 0);
  width: env(titlebar-area-width, 100%); height: env(titlebar-area-height, 38px); padding: 0 6px;
  background: transparent; border-bottom: 0; -webkit-app-region: drag; app-region: drag;
}
html.wco .tb, html.wco .tb-new { -webkit-app-region: no-drag; app-region: no-drag; }
html.wco .tb { height: calc(env(titlebar-area-height, 38px) - 5px); margin-bottom: 0; }
html.wco .tb-new { margin-bottom: 3px; }

@media (max-width: 759.98px) {
  .tabview.is-gen { overflow: auto; }
  .tabbar { padding: 0 8px; }
  .tb { flex-basis: 156px; min-width: 104px; }
}
