:root {
  color-scheme: dark;
  --bg: #050505;
  --line: #292929;
  --text: #f5f5f5;
  --muted: #929292;
  --status-negative: #d98b86;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: hidden; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.app { width: min(1360px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 50px; }

.home { container-type: inline-size; max-width: 820px; margin: 72px auto 0; }
.search-board { padding: 0; border: 0; background: transparent; }
.search-create { display: grid; grid-template-columns: minmax(0, 1fr); width: calc(100% - clamp(64px, 10vw, 104px)); margin: 28px auto 0; align-items: center; gap: 15px; padding: 24px 4.76cqw; border: 0; border-radius: 8cqw; background-color: #101010; background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,.06) 12px 24px); color: var(--text); text-align: left; transition: border-color .2s, background .2s, transform .2s; }

.search-create:hover { background-color: #1b1b1b; transform: translateY(-1px); }
.search-create:focus-visible { outline-offset: -2px; }
.search-create-slot { overflow: hidden; }
.search-create-slot.is-collapsed { height: 0; opacity: 0; }
.search-create-content { display: flow-root; }

.create-copy { display: grid; justify-items: center; min-width: 0; }
.create-copy strong { display: flex; align-items: center; justify-content: center; gap: 16px; color: #fff; font-size: 38.08px; line-height: 1.2; font-weight: 750; letter-spacing: -.025em; text-shadow: 0 0 8px rgba(255,255,255,.28), 0 0 22px rgba(255,255,255,.14); }
.create-arrow { display: grid; flex: none; width: 42.56px; height: 42.56px; place-items: center; color: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,.3)); }
.create-arrow svg { width: 100%; height: 100%; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.primary-button, .secondary-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 0; border-radius: 999px; font-weight: 600; }
.primary-button { background: #fff; color: #080808; }
.primary-button:hover { background: #e8e8e8; }
.primary-button:disabled { background: #191919; color: #777; cursor: default; }
.secondary-button { background: #202020; color: #ccc; }
.secondary-button:hover { background: #292929; color: #fff; }
.search-list { display: grid; gap: 2.86cqw; padding: 2.86cqw 0 0; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; min-height: 37.62cqw; padding: 4.76cqw; border: 0; border-radius: 8cqw; background: var(--surface-card); }
.search-copy { display: grid; grid-template-rows: auto auto 1fr; align-items: start; gap: 10px; min-width: 0; }
.search-copy .search-status { align-self: end; }
.search-edit { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; color: #f5f5f5; text-align: left; }
.search-edit h2 { overflow-wrap: anywhere; font-size: 23px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.search-edit svg { flex: none; width: 17px; height: 17px; color: #777; }
.search-edit:hover h2 { text-decoration: underline; text-underline-offset: 5px; }
.search-meta { color: var(--muted); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.search-status { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #999; font-size: 14px; }
.status-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--green); }
.is-paused .status-dot { background: #666; }
.is-paused .search-status { color: #777; }
.search-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 18px; }
.search-toggle { position: relative; display: inline-flex; flex: none; width: 69px; height: 31px; align-items: center; padding: 2.5px; border: 0; border-radius: 999px; background: var(--fill-control); color: transparent; transition: background .2s; }
.search-toggle::before { content: ""; position: absolute; inset: -10px 0; }
.search-toggle:hover { background: var(--fill-control-hover); }
.search-toggle[aria-checked="true"] { background: #007aff; }
.toggle-thumb { display: block; width: 41px; height: 26px; border-radius: 999px; background: #fff; transform: translateX(0); transition: transform .2s; }
.search-toggle[aria-checked="true"] .toggle-thumb { transform: translateX(23px); }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid #303030; border-radius: 50%; background: transparent; color: #aaa; }
.icon-button:hover { border-color: #666; color: #fff; }
.search-result { color: #999; font-size: 14px; white-space: nowrap; }
.search-result strong { color: #ddd; font-weight: 500; }
.home-footer { display: flex; justify-content: flex-end; padding-top: 24px; }
.vacancies-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: #aaa; font-size: 15px; }
.vacancies-link:hover { color: #fff; }
.vacancies-link svg { width: 17px; height: 17px; }
.empty-state { display: grid; min-height: 120px; place-items: center; color: var(--muted); font-size: 15px; }

.profile-page { margin-inline: auto; padding: 24px 0 70px; }
.profile-tabs { display: flex; flex-direction: column; align-self: start; gap: 4px; margin-bottom: 28px; }
.profile-tabs button { min-height: 48px; padding: 10px 16px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); text-align: left; font-size: 18px; font-weight: 600; transition: background .15s, color .15s; }
.profile-tabs button:hover { background: #171717; color: #fff; }
.profile-tabs button[aria-selected="true"] { background: #1b1b1b; color: #fff; }
.profile-content { max-width: 820px; }
#search-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 32px; overflow-y: auto; border: 0; border-radius: 36px; background: #111; color: var(--text); }
#search-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
#search-dialog[open] { transform-origin: 50% 65%; animation: settings-open .48s cubic-bezier(.16, 1, .3, 1) both; }
#search-dialog[open]::backdrop { animation: settings-backdrop .4s ease-out both; }
#search-dialog[open] .modal-head,
#search-dialog[open] .form > * { animation: settings-content-in .38s cubic-bezier(.16, 1, .3, 1) both; }
#search-dialog[open] .modal-head { animation-delay: .06s; }
#search-dialog[open] .form > :nth-child(1) { animation-delay: .1s; }
#search-dialog[open] .form > :nth-child(2) { animation-delay: .15s; }
#search-dialog[open] .form > :nth-child(3) { animation-delay: .2s; }
@keyframes settings-open { from { opacity: 0; transform: translateY(28px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes settings-backdrop { from { opacity: 0; } to { opacity: 1; } }
@keyframes settings-content-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.modal-head h2 { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.modal-head .icon-button { flex: none; width: 48px; height: 48px; border: 0; }
.modal-head .icon-button svg { width: 30px; height: 30px; stroke-width: 2; }
.form { display: grid; gap: 20px; }
.field-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.search-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.search-fieldset legend { margin-bottom: 12px; padding: 0; color: #aaa; font-size: 14px; }
.search-fieldset legend span { margin-left: 8px; color: #777; font-size: 12px; }
.work-formats { display: flex; flex-wrap: wrap; gap: 10px; }
.work-format { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 12px 16px; border: 1px solid transparent; border-radius: 16px; background: #202020; color: #aaa; cursor: pointer; }
.work-format:has(input:checked) { border-color: #777; background: #303030; color: #fff; }
.work-format:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
.work-format input { width: 18px; height: 18px; margin: 0; accent-color: #ffd166; }
.field { display: grid; min-width: 0; gap: 9px; }
.field span { color: #aaa; font-size: 14px; }
.field input, .field select { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 56px; padding: 0 18px; border: 0; border-radius: 18px; background: #202020; color: #fff; font-family: inherit; font-size: 16px; line-height: 1.25; }
#search-dialog .field input, #search-dialog .field select { transition: background-color .2s ease; }
#search-dialog .field input:hover, #search-dialog .field select:hover { background-color: #262626; }
#search-dialog .field input:focus, #search-dialog .field select:focus { outline: none; background-color: #303030; }
#search-dialog .field input::placeholder { color: #929292; opacity: 1; }
#search-dialog input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
#search-dialog input[type="number"]::-webkit-inner-spin-button,
#search-dialog input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field select { padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 20px; }
.modal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
#search-dialog .form > .modal-actions { margin-top: 28px; }
#search-dialog .modal-actions .secondary-button { background: #353535; color: #e4e4e4; transition: color .2s ease, background-color .2s ease; }
#search-dialog .modal-actions .secondary-button:hover { background: #414141; color: #fff; }
#search-dialog .modal-actions .primary-button[type="submit"] { background: #353535; color: #ffd166; transition: color .2s ease, background-color .2s ease; }
#search-dialog .modal-actions .primary-button[type="submit"]:hover { background: #414141; color: #ffdc85; }
.modal-actions:has(.delete-button) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.modal-actions button { min-height: 52px; padding: 0 16px; border-radius: 999px; font-size: 16px; font-weight: 600; }
.delete-button, #search-dialog [data-confirm-delete] { border: 0; background: #353535; color: #ff8585; transition: color .2s ease, background-color .2s ease; }
.delete-button:hover, #search-dialog [data-confirm-delete]:hover { background: #414141; color: #ff9b9b; }
.modal-copy { color: #aaa; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.toast { margin: 0; border: 0; bottom: auto; right: auto; position: fixed; z-index: 160; top: 24px; left: 50%; width: max-content; max-width: calc(100% - 32px); padding: 8px 12px; border-radius: 12px; background: #2a2a2a; box-shadow: 0 8px 24px #0009; color: #ededed; font-size: 14px; font-weight: 600; line-height: 1.3; opacity: 0; transform: translate(-50%, -10px); pointer-events: none; transition: .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  body { zoom: 1; }
  .app { width: calc(100% - 40px); padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  .home { margin-top: 40px; }
  .primary-button { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .search-create { width: calc(100% - 96px); gap: 11px; padding: 20px 4.76cqw; }
  .create-copy strong { gap: 14px; font-size: 33.6px; }
  .create-arrow { width: 38.08px; height: 38.08px; }
  .search-row { gap: 12px; }
  .search-edit h2 { font-size: 19px; }
  .search-edit { gap: 8px; }
  .search-meta { font-size: 13px; }
  .search-status, .search-result { font-size: 12px; }
  .search-side { min-width: 64px; }
  .search-status { margin-top: 6px; line-height: 1.4; }
  .icon-button { width: 44px; height: 44px; }
  .vacancies-link { font-size: 14px; }
  .profile-page { padding: 40px 0 28px; }
}
@media (max-width: 430px) {
  .search-row { position: relative; grid-template-columns: minmax(0, 1fr); min-height: max(190px, 37.62cqw); }
  .search-edit { padding-right: 66px; }
  .search-meta { padding-right: 66px; }
  .search-side { position: absolute; inset: 4.76cqw 4.76cqw 4.76cqw auto; pointer-events: none; }
  .search-side .search-toggle { pointer-events: auto; }
  .search-status { padding-right: 85px; }
  #search-dialog { padding: 22px; }
  .field-group { gap: 10px; }
  .field-group input, .field-group select { padding-inline: 10px; }
  .field-group select { padding-right: 28px; background-position: right 8px center; background-size: 16px; }
  .modal-actions { gap: 10px; }
  .modal-actions:has(.delete-button) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-actions .delete-button { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after, *::backdrop { transition: none !important; animation: none !important; } }

.search-home { width: min(100%, 820px); margin-top: clamp(48px, 11vh, 190px); padding-inline: clamp(16px, 4vw, 32px); }
.search-feed { display: grid; gap: 16px; margin-top: 28px; padding-inline: clamp(32px, 5vw, 52px); }
.search-card { display: grid; gap: 16px; padding-bottom: 34px; border-bottom: 1px solid #292929; }
.search-card:last-child { padding-bottom: 0; border-bottom: 0; }
.search-card-head { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 20px; }
.search-title { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 14px; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; }
.search-card-head .search-toggle { margin-top: 7px; }
.search-title h2 { overflow-wrap: anywhere; font-size: clamp(30px, 3.45vw, 44px); font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
.search-title svg { width: 18px; height: 18px; flex: none; color: #777; }
.search-title:hover h2 { text-decoration: underline; text-underline-offset: 6px; }
.search-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.search-card-footer .search-details { min-width: 0; overflow-wrap: anywhere; }
.search-edit-icon { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 69px; height: 28.8px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #777; -webkit-tap-highlight-color: transparent; }
.search-edit-icon::before { content: ""; position: absolute; inset: -10px 0; }
.search-edit-icon svg { width: 28.8px; height: 28.8px; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.search-details { display: flex; flex-wrap: wrap; gap: 24px; min-height: 1.5em; margin: 0; color: #a6a6a6; font-size: clamp(16px, 1.8vw, 22px); font-weight: 600; line-height: 1.5; }
.search-card.is-paused .search-title { color: #777; }
.search-card.is-paused .search-details { color: #777; }

@media (max-width: 820px) {
  .search-home { width: 100%; margin-top: 48px; padding-inline: 16px; }
  .search-feed { gap: 16px; margin-top: 28px; padding-inline: 48px; }
  .search-card { gap: 14px; padding-bottom: 30px; }
  .search-card-head { gap: 12px; }
  .search-card-head .search-toggle { margin-top: 3px; }
  .search-title h2 { font-size: 29px; }
  .search-details { gap: 18px; font-size: 16px; }
}

/* A swipeable summary, with a glimpse of the following category. */
.search-home .activity-board { width: calc(100% - clamp(64px, 10vw, 104px)); margin: 36px auto 0; }
.activity-track { position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 36px; }
.activity-track::-webkit-scrollbar { display: none; }
.activity-track::after { content: ""; flex: 0 0 12px; }
.activity-track:focus-visible { outline: 2px solid #888; outline-offset: -2px; }
.activity-card { position: relative; flex: 0 0 calc(100% - 24px); min-width: 0; display: grid; grid-template-columns: 1fr 46%; grid-template-rows: auto 1fr; column-gap: 20px; min-height: 230px; padding: 28px 30px; border-radius: 36px; background: var(--surface-card); scroll-snap-align: start; scroll-snap-stop: always; }
.activity-link { position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.activity-link:focus-visible { outline-color: var(--activity-accent); outline-offset: -2px; }
.activity-card:hover { background: var(--surface-card-hover); }
.activity-card .activity-chart { z-index: 2; pointer-events: none; }
.activity-card .activity-bar { pointer-events: auto; }
.activity-title { display: flex; align-items: center; gap: 9px; color: var(--activity-accent); font-size: 23px; font-weight: 650; letter-spacing: -.025em; }
.activity-title svg { width: 25px; height: 25px; flex: none; stroke-width: 2.6; }
.activity-total { grid-column: 1; grid-row: 2; display: flex; align-items: baseline; flex-wrap: wrap; align-content: end; gap: 0 8px; padding-top: 22px; }
.activity-total strong { font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.activity-total > span { color: var(--muted); font-size: 18px; font-weight: 600; }
.activity-chart { position: relative; grid-column: 2; grid-row: 1 / 3; display: flex; align-items: flex-end; align-self: center; gap: 7px; height: 148px; }
.activity-bar { display: flex; align-items: flex-end; flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 4px 4px 0 0; background: transparent; }
.activity-bar > span { width: 100%; height: var(--bar-height); border-radius: 4px 4px 0 0; background: var(--chart-bar); transition: background .15s; }
.activity-chart:not(.has-active-day) .activity-bar:last-of-type > span,
.activity-bar.is-active > span { background: var(--activity-accent); }
.activity-bar:focus-visible { outline-color: var(--activity-accent); outline-offset: 2px; }
.activity-tooltip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: max-content; padding: 5px 8px; border-radius: 7px; background: #303030; color: var(--text); font-size: 12px; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.activity-tooltip[hidden] { display: none; }
.activity-pagination { display: flex; justify-content: center; margin-top: 4px; }
.activity-dot { display: grid; place-items: center; width: 32px; height: 36px; padding: 0; border: 0; background: transparent; }
.activity-dot span { width: 6px; height: 6px; border-radius: 999px; background: var(--chart-bar); transition: width .2s, background .2s; }
.activity-dot[aria-current="true"] span { width: 18px; background: #d6d6d6; }
.activity-dot:hover span { background: #aaa; }
@media (max-width: 820px) {
  .search-home .activity-board { width: calc(100% - 96px); margin-top: 32px; }
  .activity-card { min-height: 196px; padding: 24px; grid-template-columns: 1fr 43%; column-gap: 14px; border-radius: 30px; }
  .activity-title { font-size: 19px; gap: 7px; }
  .activity-title svg { width: 22px; height: 22px; }
  .activity-total strong { font-size: 54px; }
  .activity-total > span { font-size: 15px; }
  .activity-chart { height: 128px; gap: 5px; }
}
@media (max-width: 540px) {
  .search-create { width: 100%; }
  .search-home .activity-board { width: 100%; }
  .activity-card { min-height: 188px; padding: 22px; grid-template-columns: 1fr 40%; column-gap: 12px; }
  .activity-title { grid-column: 1 / -1; font-size: 18px; }
  .activity-chart { grid-row: 2; height: 94px; }
  .activity-total strong { font-size: 52px; }
}
