AgPerry's picture
Add files using upload-large-folder tool
fb2916f verified
Raw History Blame Contribute Delete
52.5 kB
/* LeetCode offline clone stylesheet.
*
* Every colour, size, radius and weight below is taken from the computed-style
* and geometry fields of the Playwright evidence snapshots, or measured off the
* captured rasters. Nothing is loaded from a remote origin: no webfont, no
* image host, no icon CDN. Icons are inline SVG in the templates.
*
* Layout order: tokens, resets, marketing chrome, home, application chrome,
* problem set, workspace, account pages, member pages, boundary pages.
*/
/* --------------------------------------------------------------------- */
/* tokens */
/* --------------------------------------------------------------------- */
:root {
/* Font stacks exactly as the two captured body styles report them. */
--font-app: -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif,
"Apple Color Emoji", "Segoe UI Emoji";
--font-marketing: -apple-system, "system-ui", "Segoe UI", "PingFang SC",
"Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
--ink: rgb(38, 38, 38);
--ink-strong: rgb(26, 26, 26);
--ink-muted: rgba(38, 38, 38, 0.75);
--ink-soft: rgba(0, 0, 0, 0.55);
--ink-faint: rgba(60, 60, 67, 0.6);
--line: rgba(0, 0, 0, 0.08);
--field-line: rgba(0, 0, 0, 0.06);
--surface: #ffffff;
--surface-sunk: rgba(0, 0, 0, 0.04);
--surface-tint: rgba(0, 0, 0, 0.02);
--surface-chip: rgba(0, 10, 32, 0.05);
--blue: rgb(0, 123, 255);
--blue-link: rgb(24, 144, 255);
--blue-icon: rgb(26, 144, 255);
--brand-orange: rgb(255, 161, 22);
--teal: rgb(29, 160, 156);
--easy: rgb(28, 186, 186);
--medium: rgb(255, 184, 0);
--hard: rgb(246, 54, 54);
--green: rgb(1, 179, 40);
--radius-field: 8px;
--radius-round: 9999px;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
font-family: var(--font-app);
font-size: 14px;
line-height: 1.5;
color: var(--ink);
background: var(--surface);
/* The clone never lets the document itself scroll sideways; panes that the
source scrolls internally keep their own overflow. */
overflow-x: hidden;
}
body.page--marketing {
font-family: var(--font-marketing);
color: rgba(0, 0, 0, 0.65);
background: rgb(247, 249, 252);
}
a {
color: inherit;
text-decoration: none;
}
button {
font: inherit;
color: inherit;
cursor: pointer;
}
img,
svg {
max-width: 100%;
}
input,
select,
textarea {
font: inherit;
color: inherit;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
.inline-form {
display: inline;
margin: 0;
}
.main {
display: block;
}
.caret {
display: inline-block;
width: 0;
height: 0;
margin-left: 5px;
vertical-align: 2px;
border: 4px solid transparent;
border-top-color: currentColor;
}
.caret--double {
transform: none;
border: 0;
width: 9px;
height: 9px;
margin-left: 4px;
border-right: 1.4px solid currentColor;
border-bottom: 1.4px solid currentColor;
rotate: 45deg;
translate: 0 -3px;
}
.chev {
display: inline-block;
width: 6px;
height: 6px;
margin-left: 6px;
vertical-align: 1px;
border-top: 1.4px solid currentColor;
border-right: 1.4px solid currentColor;
rotate: 45deg;
}
.pill {
display: inline-block;
padding: 0 8px;
border-radius: var(--radius-round);
font-size: 12px;
line-height: 22px;
background: rgba(0, 0, 0, 0.06);
}
.pill--easy {
color: var(--easy);
background: rgba(28, 186, 186, 0.12);
}
.pill--medium {
color: rgb(191, 138, 0);
background: rgba(255, 184, 0, 0.16);
}
.pill--hard {
color: var(--hard);
background: rgba(246, 54, 54, 0.12);
}
.field-error {
margin: -4px 0 8px;
font-size: 13px;
color: var(--hard);
}
/* --------------------------------------------------------------------- */
/* marketing chrome + home */
/* --------------------------------------------------------------------- */
.mk-header {
position: absolute;
inset: 0 0 auto;
z-index: 5;
height: 82px;
}
.mk-header__inner {
display: flex;
align-items: center;
gap: 24px;
max-width: 1440px;
height: 82px;
margin: 0 auto;
padding: 0 24px;
}
.mk-brand {
display: flex;
align-items: center;
gap: 10px;
margin-right: auto;
padding-left: 136px;
}
.mk-brand__word {
font-size: 26px;
font-weight: 500;
letter-spacing: 0.2px;
color: #ffffff;
}
.mk-nav {
display: flex;
align-items: center;
gap: 26px;
}
.mk-nav__link {
padding: 8px 12px;
font-size: 15px;
font-weight: 300;
line-height: 22.5px;
color: #ffffff;
background: none;
border: 0;
}
.mk-nav__link:hover {
color: var(--brand-orange);
}
.mk-nav__link--premium {
color: var(--brand-orange);
}
.mk-header__end {
display: flex;
align-items: center;
gap: 8px;
padding-left: 24px;
}
.hero {
position: relative;
overflow: hidden;
min-height: 560px;
padding: 132px 24px 90px;
color: #ffffff;
background: linear-gradient(112deg, #35404a 0%, #2d3239 42%, #26282c 100%);
}
.hero__wedge {
position: absolute;
inset: auto -10% -30% -10%;
height: 62%;
background: rgb(247, 249, 252);
transform: rotate(-6deg);
transform-origin: left bottom;
}
.hero__art {
position: absolute;
top: 96px;
left: 96px;
width: 470px;
max-width: 42vw;
}
.hero__art svg {
width: 100%;
height: auto;
filter: drop-shadow(0 24px 46px rgba(0, 0, 0, 0.35));
}
.hero__text {
position: relative;
width: 520px;
max-width: 100%;
margin-left: auto;
margin-right: 185px;
text-align: center;
}
.hero__title {
margin: 0 0 26px;
font-size: 40px;
font-weight: 500;
line-height: 44px;
color: #ffffff;
}
.hero__lead {
margin: 0 0 28px;
font-size: 15px;
font-weight: 300;
line-height: 29px;
color: rgba(255, 255, 255, 0.75);
}
.pill-button {
display: inline-block;
padding: 6px 12px;
font-size: 15px;
font-weight: 300;
line-height: 21.4286px;
color: #ffffff;
background: var(--teal);
border: 1px solid transparent;
border-radius: 1020px;
}
.pill-button:hover {
background: rgb(24, 139, 136);
}
.mk-heading {
margin: 0 0 20px;
font-size: 22px;
font-weight: 500;
line-height: 33px;
}
.mk-heading--center {
text-align: center;
}
.mk-heading--teal { color: var(--teal); }
.mk-heading--blue { color: rgb(37, 154, 243); }
.mk-heading--gold { color: rgb(183, 137, 43); }
.mk-heading--red { color: rgb(198, 40, 40); }
.mk-body {
margin: 0 0 26px;
font-size: 14px;
font-weight: 300;
line-height: 29px;
color: rgba(0, 0, 0, 0.45);
}
.mk-body--center {
max-width: 640px;
margin-inline: auto;
text-align: center;
}
.mk-cta a {
font-size: 14px;
line-height: 21px;
color: var(--blue-link);
}
.mk-cta--center { text-align: center; }
.mk-cta--tight { margin: 12px 0 0; }
.chev--link {
width: 5px;
height: 5px;
vertical-align: 2px;
}
.hex {
display: inline-flex;
align-items: center;
justify-content: center;
vertical-align: middle;
color: var(--teal);
}
.hex--blue { color: rgb(37, 154, 243); }
.hex--green { color: rgb(139, 195, 74); }
.hex--yellow { color: rgb(255, 193, 7); }
.hex--gold { color: rgb(183, 137, 43); }
.hex--grey { color: rgb(158, 158, 158); }
.hex--red { color: rgb(211, 47, 47); }
.hex--lg { margin-bottom: 12px; }
.hex-row {
display: flex;
gap: 4px;
margin-bottom: 18px;
}
.hex-row .hex + .hex { margin-left: -8px; }
.heart {
display: inline-block;
width: 15px;
height: 15px;
margin: 0 3px;
background: rgb(211, 47, 47);
clip-path: path("M7.5 14C3 10.6 0 8.3 0 5.2 0 2.9 1.8 1 4 1c1.4 0 2.7.7 3.5 1.8C8.3 1.7 9.6 1 11 1c2.2 0 4 1.9 4 4.2 0 3.1-3 5.4-7.5 8.8Z");
}
.mk-explore {
display: grid;
grid-template-columns: 520px 1fr;
gap: 60px;
align-items: center;
max-width: 1110px;
margin: 0 auto;
padding: 90px 24px 40px;
}
.mk-explore__text { text-align: right; }
.mk-explore__text .mk-heading { text-align: right; }
.mk-explore__art svg { width: 100%; height: auto; }
.mk-duo {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 100px;
max-width: 1110px;
margin: 0 auto;
padding: 80px 24px;
border-top: 0;
}
.mk-duo__col + .mk-duo__col {
padding-left: 100px;
border-left: 1px solid rgba(0, 0, 0, 0.08);
margin-left: -100px;
}
.mk-developer,
.mk-sf,
.mk-hiring {
max-width: 1000px;
margin: 0 auto;
padding: 70px 24px;
text-align: center;
}
.mk-hiring {
padding-top: 30px;
padding-bottom: 90px;
border-top: 1px solid rgba(0, 0, 0, 0.06);
max-width: 780px;
}
.mk-playground {
display: grid;
grid-template-columns: 1fr 200px;
gap: 20px;
margin-top: 34px;
text-align: left;
}
.mk-playground__code {
min-height: 190px;
margin: 0;
padding: 18px 20px;
overflow: auto;
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
color: var(--ink);
background: #ffffff;
border-radius: 4px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.mk-playground__list {
margin: 0;
padding: 0;
list-style: none;
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.mk-playground__item {
display: block;
width: 100%;
padding: 8px 12px;
font-size: 14px;
text-align: left;
color: var(--blue-link);
background: none;
border: 0;
}
.mk-playground__item.is-active {
color: var(--teal);
background: #ffffff;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.mk-playground__glyph {
margin-right: 8px;
font-family: var(--font-mono);
font-size: 12px;
}
.mk-playground__select { display: none; }
.mk-footer {
display: flex;
align-items: center;
gap: 24px;
max-width: 1440px;
margin: 0 auto;
padding: 26px 150px 34px;
font-size: 14px;
font-weight: 300;
color: rgb(128, 128, 128);
}
.mk-footer__copy { margin: 0 auto 0 0; }
.mk-footer__nav {
display: flex;
align-items: center;
gap: 8px;
}
.mk-footer__nav a,
.mk-footer__region a {
color: rgb(55, 55, 55);
}
.mk-footer__bar { color: rgba(0, 0, 0, 0.2); }
.mk-footer__phone {
display: inline-block;
width: 8px;
height: 12px;
margin-right: 6px;
vertical-align: -1px;
border: 1.2px solid currentColor;
border-radius: 2px;
}
.mk-footer__region { margin: 0 0 0 24px; }
.flag { vertical-align: -2px; border-radius: 2px; }
/* --------------------------------------------------------------------- */
/* application chrome */
/* --------------------------------------------------------------------- */
.ap-header {
position: sticky;
top: 0;
z-index: 30;
height: 50px;
background: var(--surface);
border-bottom: 1px solid var(--line);
}
.ap-header__inner {
display: flex;
align-items: center;
gap: 24px;
height: 50px;
padding: 0 24px;
}
.ap-header__burger {
display: none;
flex-direction: column;
gap: 4px;
width: 30px;
padding: 6px 4px;
background: none;
border: 0;
}
.ap-header__burger span {
display: block;
height: 1.6px;
background: var(--ink);
}
.brand {
display: inline-flex;
align-items: center;
gap: 8px;
flex: none;
}
.brand__word {
font-size: 19px;
font-weight: 600;
letter-spacing: 0.1px;
color: var(--ink);
}
.ap-nav {
display: flex;
align-items: center;
gap: 24px;
margin-right: auto;
}
.ap-nav__link {
font-size: 16px;
color: var(--ink-soft);
}
.ap-nav__link:hover { color: var(--ink-strong); }
.ap-nav__link.is-active {
font-weight: 500;
color: var(--ink-strong);
}
.ap-nav__link--store { color: var(--brand-orange); }
.ap-navmenu { position: relative; }
.ap-navmenu > summary { cursor: pointer; list-style: none; }
.ap-navmenu > summary::-webkit-details-marker { display: none; }
.ap-navmenu[open] > summary { color: var(--ink-strong); }
.ap-navmenu__panel {
position: absolute;
z-index: 40;
top: calc(100% + 15px);
left: -18px;
width: 280px;
padding: 10px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
.ap-navmenu__panel--end { left: auto; right: -18px; }
.ap-navmenu__panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 6px; }
.ap-navmenu__panel a:hover { background: var(--surface-sunk); }
.ap-navmenu__panel strong { font-size: 14px; font-weight: 500; }
.ap-navmenu__panel span { font-size: 12px; color: var(--ink-muted); }
.ap-nav__student {
display: inline-flex;
align-items: center;
padding: 0 8px;
}
.ap-header__end {
display: flex;
align-items: center;
gap: 16px;
}
.ap-search {
display: inline-flex;
align-items: center;
gap: 8px;
height: 32px;
padding: 0 12px;
color: rgb(115, 115, 115);
background: var(--surface-sunk);
border-radius: var(--radius-round);
}
.ap-search input {
width: 96px;
padding: 0;
font-size: 14px;
color: var(--ink);
background: none;
border: 0;
outline: none;
}
.ap-search input::placeholder { color: rgb(115, 115, 115); }
.ap-header__icon {
display: none;
padding: 6px;
color: var(--ink);
background: none;
border: 0;
}
.ap-header__link,
.ap-header__member {
font-size: 14px;
color: var(--ink-soft);
}
.ap-header__member { font-weight: 500; color: var(--ink-strong); }
.ap-header__button {
padding: 0;
background: none;
border: 0;
}
.ap-header__or { font-size: 14px; color: var(--ink-soft); }
.ap-header__premium {
padding: 4px 12px;
font-size: 14px;
color: var(--ink);
background: rgba(255, 161, 22, 0.16);
border-radius: var(--radius-field);
}
.ap-footer {
margin: 16px;
padding: 20px;
font-size: 14px;
color: var(--ink-muted);
border-radius: var(--radius-field);
}
.ap-footer--grey { background: rgb(240, 240, 240); }
.ap-footer--white { background: var(--surface); border-top: 1px solid var(--line); }
.ap-footer__inner {
display: flex;
align-items: center;
gap: 24px;
flex-wrap: wrap;
}
.ap-footer__links {
display: flex;
gap: 24px;
flex-wrap: wrap;
margin: 0 auto;
}
.ap-footer__region { display: inline-flex; align-items: center; gap: 6px; }
/* --------------------------------------------------------------------- */
/* problem set */
/* --------------------------------------------------------------------- */
.ps {
display: grid;
grid-template-columns: 240px minmax(0, 865px) 270px;
gap: 34px;
align-items: start;
max-width: 1440px;
margin: 0 auto;
padding: 16px 16px 40px;
}
.ps__rail { position: sticky; top: 66px; }
.ps-rail__toggle,
.lc-rail__toggle {
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
margin: 0 8px 10px auto;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--surface);
cursor: pointer;
}
.ps-rail__toggle:hover,
.lc-rail__toggle:hover { background: var(--surface-sunk); }
.ps.is-rail-collapsed { grid-template-columns: 58px minmax(0, 865px) 270px; }
.ps.is-rail-collapsed .ps-lib__label,
.ps.is-rail-collapsed .ps-rule,
.ps.is-rail-collapsed .ps-rail__note,
.ps.is-rail-collapsed .ps-rail__progress,
.ps.is-rail-collapsed .ps-rail__bar,
.ps.is-rail-collapsed .ps-rail__link,
.ps.is-rail-collapsed .ps-rail__signin { display: none; }
.ps.is-rail-collapsed .ps-lib__link { justify-content: center; }
.ps-lib {
margin: 0;
padding: 0;
list-style: none;
}
.ps-lib__link {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 8px;
font-size: 16px;
font-weight: 500;
color: var(--ink);
border-radius: 5px;
}
.ps-lib__link:hover { background: var(--surface-sunk); }
.ps-lib__link.is-active { background: rgba(0, 0, 0, 0.03); }
.ps-lib__icon { display: inline-flex; color: rgba(38, 38, 38, 0.8); }
.ps-rule {
margin: 16px 8px;
border: 0;
border-top: 1px solid var(--line);
}
.ps-rail__note {
margin: 0 8px 14px;
font-size: 14px;
color: var(--ink-muted);
text-align: center;
}
.ps-rail__progress { margin: 0 8px 6px; font-size: 13px; color: var(--ink-muted); }
.ps-rail__bar {
height: 6px;
margin: 0 8px 10px;
overflow: hidden;
background: var(--surface-sunk);
border-radius: var(--radius-round);
}
.ps-rail__bar span { display: block; height: 100%; background: var(--easy); }
.ps-rail__link { display: block; margin: 0 8px; font-size: 13px; color: var(--blue); }
.ps-rail__signin {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 93px;
height: 32px;
margin: 0 auto;
padding: 6px 12px;
font-size: 14px;
font-weight: 500;
color: #ffffff;
background: var(--ink-strong);
border-radius: var(--radius-round);
}
.ps-rail__avatar { display: inline-flex; }
.ps__main { min-width: 0; }
.ps-promos {
display: flex;
gap: 24px;
overflow-x: auto;
padding-bottom: 4px;
scrollbar-width: none;
}
.ps-promos::-webkit-scrollbar { display: none; }
.ps-promo {
display: flex;
flex-direction: column;
justify-content: center;
flex: 0 0 270px;
height: 135px;
padding: 20px;
color: #ffffff;
border-radius: var(--radius-field);
}
.ps-promo--dark { background: linear-gradient(135deg, #0b1220, #17233a); }
.ps-promo--green { background: linear-gradient(135deg, #0e5c46, #157a52); }
.ps-promo--purple { background: linear-gradient(135deg, #6c3ce0, #8a5cf6); }
.ps-promo--blue { background: linear-gradient(135deg, #0f5ea8, #1a7fd4); }
.ps-promo__logo { margin-bottom: 8px; }
.ps-promo__title { font-size: 17px; font-weight: 600; line-height: 22px; }
.ps-promo__sub { margin-top: 4px; font-size: 13px; opacity: 0.85; }
.ps-topics {
position: relative;
margin: 32px 0 0;
padding-right: 96px;
}
.ps-topics__list {
display: flex;
gap: 20px;
margin: 0;
padding: 0;
overflow: hidden;
list-style: none;
height: 21px;
}
.ps-topics.is-expanded .ps-topics__list {
flex-wrap: wrap;
height: auto;
row-gap: 12px;
}
.ps-topic {
display: inline-flex;
align-items: center;
gap: 6px;
white-space: nowrap;
font-size: 14px;
color: var(--ink);
}
.ps-topic:hover { color: var(--blue); }
.ps-topic.is-active {
color: var(--blue);
font-weight: 500;
}
.ps-topic__count {
padding: 0 6px;
font-size: 12px;
color: var(--ink-faint);
background: var(--surface-chip);
border-radius: var(--radius-round);
}
.ps-topics__expand {
position: absolute;
top: 0;
right: 0;
padding: 0;
font-size: 14px;
color: var(--ink-muted);
background: none;
border: 0;
}
.ps-tabs {
display: flex;
gap: 12px;
margin: 32px 0 0;
overflow-x: auto;
scrollbar-width: none;
}
.ps-tabs::-webkit-scrollbar { display: none; }
.ps-tab {
display: inline-flex;
align-items: center;
gap: 8px;
flex: none;
height: 40px;
padding: 0 18px;
font-size: 14px;
color: var(--ink);
background: var(--surface-sunk);
border-radius: var(--radius-round);
}
.ps-tab.is-active {
color: #ffffff;
background: var(--ink-strong);
}
.ps-tab__icon {
display: inline-block;
width: 14px;
height: 14px;
border: 1.4px solid currentColor;
border-radius: 3px;
opacity: 0.7;
}
.ps-controls {
display: flex;
align-items: center;
gap: 8px;
margin: 32px 0 0;
}
.ps-search {
display: inline-flex;
align-items: center;
gap: 8px;
width: 202px;
height: 32px;
padding: 0 12px;
color: var(--ink-faint);
background: var(--surface-sunk);
border-radius: var(--radius-round);
}
.ps-search input {
width: 100%;
padding: 0;
font-size: 14px;
color: var(--ink-strong);
background: none;
border: 0;
outline: none;
}
.ps-round {
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
width: 32px;
height: 32px;
color: var(--blue-icon);
background: var(--surface-sunk);
border-radius: var(--radius-round);
list-style: none;
cursor: pointer;
}
.ps-round::-webkit-details-marker { display: none; }
.ps-round--plain { color: var(--ink-strong); background: none; }
.ps-round.is-set { background: rgba(26, 144, 255, 0.14); }
.ps-round__dot {
position: absolute;
top: 4px;
right: 4px;
width: 6px;
height: 6px;
background: var(--hard);
border-radius: var(--radius-round);
}
.ps-pop { position: relative; }
.ps-pop__panel {
position: absolute;
z-index: 20;
top: 40px;
left: 0;
width: 260px;
padding: 12px 14px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius-field);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.ps-pop__panel--wide { width: 340px; }
.ps-pop__title {
margin: 8px 0 6px;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.02em;
text-transform: uppercase;
color: var(--ink-faint);
}
.ps-pop__list {
display: flex;
flex-direction: column;
gap: 2px;
margin: 0;
padding: 0;
list-style: none;
}
.ps-pop__list--row { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.ps-pop__item {
display: inline-block;
padding: 4px 10px;
font-size: 13px;
color: var(--ink);
border-radius: var(--radius-round);
}
.ps-pop__item:hover { background: var(--surface-sunk); }
.ps-pop__item.is-active {
color: #ffffff;
background: var(--ink-strong);
}
.ps-pop__reset { margin: 12px 0 2px; font-size: 13px; }
.ps-pop__reset a { color: var(--blue); }
.ps-apply {
height: 32px;
padding: 0 14px;
color: #ffffff;
background: var(--ink-strong);
border: 0;
border-radius: var(--radius-round);
}
.ps-solved {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0 0 0 auto;
font-size: 14px;
color: var(--ink);
}
.ps-solved__ring {
display: inline-block;
width: 16px;
height: 16px;
border: 1.6px solid rgba(0, 0, 0, 0.18);
border-radius: var(--radius-round);
}
.ps-summary {
margin: 16px 0 0;
font-size: 13px;
color: var(--ink-muted);
}
.ps-summary a { margin-left: 8px; color: var(--blue); }
.ps-rows {
margin: 16px 0 0;
padding: 0;
list-style: none;
}
.ps-row { border-radius: var(--radius-field); }
.ps-row--tint { background: var(--surface-tint); }
.ps-row:hover { background: rgba(0, 0, 0, 0.045); }
.ps-row__link {
display: grid;
grid-template-columns: minmax(0, 1fr) 72px 60px 56px;
align-items: center;
gap: 12px;
height: 44px;
padding: 0 16px;
font-size: 14px;
color: var(--ink);
}
.ps-row__lead {
display: inline-flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.ps-row__title {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ps-row__daily { display: inline-flex; color: var(--blue-icon); }
.status {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
}
.status--solved { color: var(--green); }
.status--attempted { color: var(--medium); }
.ps-row__acceptance {
text-align: right;
color: rgba(38, 38, 38, 0.65);
}
.ps-row__difficulty { text-align: left; }
.ps-row__difficulty--easy { color: var(--easy); }
.ps-row__difficulty--medium { color: var(--medium); }
.ps-row__difficulty--hard { color: var(--hard); }
.ps-row__frequency { text-align: right; }
.freq-lock {
display: inline-flex;
align-items: center;
gap: 2px;
color: rgba(0, 0, 0, 0.22);
}
.freq-lock__bar {
display: inline-block;
width: 2px;
height: 10px;
background: currentColor;
border-radius: 1px;
}
.ps-empty {
padding: 48px 16px;
text-align: center;
color: var(--ink-muted);
}
.ps-empty__title { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.ps-empty__reset {
display: inline-block;
margin-top: 12px;
padding: 6px 14px;
color: #ffffff;
background: var(--ink-strong);
border-radius: var(--radius-round);
}
.ps-pager {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
margin: 28px 0 0;
}
.ps-pager__step,
.ps-pager__page {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 32px;
height: 32px;
padding: 0 10px;
font-size: 14px;
color: var(--ink-muted);
background: var(--surface-chip);
border-radius: 5px;
}
.ps-pager__page.is-current {
color: var(--ink);
background: var(--surface);
box-shadow: inset 0 0 0 1px var(--line);
}
.ps-pager__step.is-disabled { opacity: 0.4; }
.ps__aside { position: sticky; top: 66px; display: grid; gap: 20px; }
.ps-card {
padding: 16px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 12px;
}
.ps-calendar__head {
display: flex;
align-items: baseline;
justify-content: space-between;
margin-bottom: 10px;
}
.ps-calendar__day { margin: 0; font-size: 15px; font-weight: 600; }
.ps-calendar__left {
margin-left: 8px;
font-size: 12px;
font-weight: 400;
color: var(--ink-faint);
}
.ps-calendar__nav { display: flex; gap: 10px; color: var(--ink-faint); }
.ps-calendar__grid {
width: 100%;
border-collapse: collapse;
text-align: center;
}
.ps-calendar__grid th {
padding: 6px 0;
font-size: 12px;
font-weight: 400;
color: var(--ink-faint);
}
.ps-calendar__grid td { padding: 2px 0; }
.ps-calendar__cell {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
font-size: 12px;
color: var(--ink-muted);
border-radius: var(--radius-round);
}
.ps-calendar__cell.is-today {
color: #ffffff;
background: rgb(44, 187, 93);
}
.ps-weekly { background: rgb(255, 250, 240); border-color: rgba(255, 161, 22, 0.28); }
.ps-weekly__head {
display: flex;
align-items: baseline;
justify-content: space-between;
margin-bottom: 12px;
}
.ps-weekly__title { font-size: 14px; font-weight: 600; color: rgb(179, 116, 0); }
.ps-weekly__left { font-size: 12px; color: rgba(179, 116, 0, 0.7); }
.ps-weekly__slots {
display: flex;
justify-content: space-between;
margin: 0 0 12px;
padding: 0;
list-style: none;
}
.ps-weekly__slot {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
font-size: 12px;
color: rgba(179, 116, 0, 0.45);
border-radius: var(--radius-round);
}
.ps-weekly__slot.is-active { color: #ffffff; background: var(--brand-orange); }
.ps-weekly__foot {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: var(--ink-muted);
}
.ps-weekly__foot a { color: var(--blue); }
.ps-weekly__rules { margin-left: auto; }
.ps-weekly__coins { font-weight: 600; }
.ps-companies__head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.ps-companies__head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.ps-companies__nav button {
width: 26px;
height: 26px;
color: var(--ink-muted);
background: var(--surface-sunk);
border: 0;
border-radius: 6px;
}
.ps-companies__search {
display: flex;
align-items: center;
gap: 8px;
height: 32px;
margin-bottom: 12px;
padding: 0 12px;
color: var(--ink-faint);
background: var(--surface-sunk);
border-radius: var(--radius-field);
}
.ps-companies__search input {
width: 100%;
background: none;
border: 0;
outline: none;
font-size: 13px;
}
.ps-companies__list {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
}
.ps-company {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 8px;
font-size: 13px;
color: var(--ink);
background: var(--surface-sunk);
border-radius: var(--radius-round);
}
.ps-company__count {
padding: 0 6px;
font-size: 11px;
color: #ffffff;
background: var(--brand-orange);
border-radius: var(--radius-round);
}
/* --------------------------------------------------------------------- */
/* workspace */
/* --------------------------------------------------------------------- */
body.page--workbench { background: rgb(240, 240, 240); }
.wb {
display: flex;
flex-direction: column;
height: 100vh;
}
.wb-bar {
display: flex;
align-items: center;
flex: none;
gap: 8px;
height: 48px;
padding: 0 10px;
}
.wb-bar__left,
.wb-bar__right {
display: flex;
align-items: center;
gap: 4px;
flex: 1 1 0;
min-width: 0;
}
.wb-bar__right { justify-content: flex-end; gap: 12px; }
.wb-bar__center {
display: flex;
align-items: center;
gap: 6px;
flex: none;
}
.wb-bar__list {
display: inline-flex;
align-items: center;
gap: 8px;
height: 32px;
padding: 0 8px;
color: rgb(119, 119, 119);
}
.wb-bar__list-icon { display: inline-flex; }
.wb-bar__step {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
font-size: 18px;
color: rgb(119, 119, 119);
border-radius: 6px;
}
.wb-bar__step:hover { background: rgba(0, 0, 0, 0.05); }
.wb-run,
.wb-submit {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
height: 32px;
background: var(--surface-chip);
border: 0;
border-radius: 6px;
}
.wb-run { width: 32px; color: var(--ink-strong); }
.wb-submit {
padding: 0 12px;
font-weight: 500;
color: var(--green);
}
.wb-run:hover,
.wb-submit:hover { background: rgba(0, 10, 32, 0.09); }
.wb-bar__timer {
font-size: 14px;
color: rgb(115, 115, 115);
}
.wb-bar__link,
.wb-bar__member {
font-size: 14px;
color: var(--ink-soft);
background: none;
border: 0;
padding: 0;
}
.wb-bar__member { font-weight: 500; color: var(--ink-strong); }
.wb-bar__or { font-size: 14px; color: var(--ink-soft); }
.wb-bar__premium {
padding: 4px 12px;
font-size: 14px;
color: var(--ink);
background: rgba(255, 161, 22, 0.16);
border-radius: var(--radius-field);
}
.wb-split {
display: flex;
gap: 6px;
flex: 1 1 auto;
min-height: 0;
padding: 0 8px 8px;
}
.wb-pane {
display: flex;
flex-direction: column;
flex: 1 1 0;
min-width: 0;
min-height: 0;
overflow: hidden;
background: var(--surface);
border-radius: var(--radius-field);
}
.wb-tabs {
display: flex;
align-items: center;
gap: 4px;
flex: none;
height: 40px;
padding: 0 8px;
overflow-x: auto;
background: rgba(0, 0, 0, 0.02);
border-bottom: 1px solid var(--line);
scrollbar-width: none;
}
.wb-tabs::-webkit-scrollbar { display: none; }
.wb-tab {
display: inline-flex;
align-items: center;
gap: 6px;
flex: none;
padding: 0 10px;
font-size: 14px;
color: var(--ink-muted);
}
.wb-tab.is-active { font-weight: 500; color: var(--ink-strong); }
.wb-tab__icon {
display: inline-block;
width: 13px;
height: 13px;
border: 1.4px solid currentColor;
border-radius: 2px;
opacity: 0.75;
}
.wb-tab--description .wb-tab__icon { color: rgb(38, 132, 255); }
.wb-tab--editorial .wb-tab__icon { color: rgb(255, 161, 22); }
.wb-tab--solutions .wb-tab__icon { color: rgb(44, 187, 93); }
.wb-tab--submissions .wb-tab__icon { color: rgb(155, 111, 255); }
.wb-pane__scroll {
flex: 1 1 auto;
min-height: 0;
padding: 16px 26px 24px;
overflow: auto;
}
.wb-title {
margin: 6px 0 16px;
font-size: 24px;
font-weight: 600;
line-height: 28px;
color: var(--ink-strong);
}
.wb-chips {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 20px;
}
.wb-chip {
display: inline-block;
font-size: 12px;
color: var(--ink-soft);
}
.wb-chip > summary {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
list-style: none;
background: rgba(0, 0, 0, 0.06);
border-radius: var(--radius-round);
cursor: pointer;
}
.wb-chip > summary::-webkit-details-marker { display: none; }
.wb-chip--locked {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
color: rgb(191, 138, 0);
background: rgba(255, 184, 0, 0.16);
border-radius: var(--radius-round);
}
.wb-chip__icon { display: inline-flex; }
.wb-taglist {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin: 10px 0 0;
padding: 0;
list-style: none;
}
.wb-tag {
display: inline-block;
padding: 4px 8px;
font-size: 12px;
color: var(--ink-soft);
background: rgba(0, 0, 0, 0.06);
border-radius: var(--radius-round);
}
.wb-tag--muted { opacity: 0.6; }
.wb-hints {
margin: 10px 0 0;
padding-left: 18px;
font-size: 14px;
color: var(--ink-muted);
}
.wb-hints li { margin-bottom: 10px; }
.wb-hints__label { display: block; font-weight: 600; color: var(--ink); }
.wb-statement { font-size: 14px; line-height: 24px; color: var(--ink); }
.wb-statement p { margin: 0 0 16px; }
.wb-statement__head { margin-top: 24px; }
.wb-statement--absent {
padding: 16px 18px;
color: var(--ink-muted);
background: rgba(0, 0, 0, 0.02);
border-left: 3px solid rgba(0, 0, 0, 0.12);
border-radius: 0 6px 6px 0;
}
.wb-statement--absent a { color: var(--blue); }
.wb-example__title { margin: 24px 0 8px !important; }
.wb-example {
margin: 0 0 8px;
padding: 8px 0 8px 14px;
font-family: var(--font-mono);
font-size: 13px;
line-height: 22px;
white-space: pre-wrap;
border-left: 3px solid rgba(0, 0, 0, 0.1);
}
.wb-example strong { font-family: var(--font-app); }
.wb-constraints { margin: 0 0 16px; padding-left: 20px; }
.wb-constraints code {
padding: 1px 4px;
font-family: var(--font-mono);
font-size: 12.5px;
background: rgba(0, 0, 0, 0.05);
border-radius: 4px;
}
.wb-followup { margin: 24px 0 0; }
.wb-stats {
display: flex;
gap: 40px;
margin: 28px 0 0;
padding-top: 18px;
border-top: 1px solid var(--line);
}
.wb-stats dt { font-size: 12px; color: var(--ink-faint); }
.wb-stats dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.wb-h2 { margin: 28px 0 12px; font-size: 16px; font-weight: 600; }
.wb-h3 { margin: 20px 0 8px; font-size: 14px; font-weight: 600; }
.wb-similar ul { margin: 0; padding: 0; list-style: none; }
.wb-similar li {
display: flex;
align-items: baseline;
gap: 12px;
padding: 9px 0;
font-size: 14px;
font-weight: 500;
}
.wb-similar a { color: var(--ink); }
.wb-similar a:hover { color: var(--blue); }
.wb-similar__plain { color: var(--ink-faint); font-weight: 400; }
.wb-similar__difficulty { margin-left: auto; font-size: 13px; font-weight: 400; }
.wb-similar__difficulty--easy { color: var(--easy); }
.wb-similar__difficulty--medium { color: var(--medium); }
.wb-similar__difficulty--hard { color: var(--hard); }
/* Discussion section on the Description tab, from two-sum-desktop. */
.wb-discussion { margin-top: 8px; }
.wb-discussion__compose {
display: flex;
gap: 10px;
align-items: center;
padding: 10px 12px;
font-size: 13px;
color: var(--ink-faint);
background: rgba(0, 0, 0, 0.03);
border-radius: 6px;
}
.wb-discussion__type {
padding: 4px 10px;
color: var(--ink);
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius-round);
}
.wb-discussion__field { flex: 1; }
.wb-discussion__rules {
margin-top: 12px;
padding: 12px 14px;
font-size: 13px;
line-height: 20px;
border: 1px solid var(--line);
border-radius: 6px;
}
.wb-discussion__rules-title { margin: 0 0 8px; font-weight: 600; }
.wb-discussion__rules ol { margin: 0; padding-left: 20px; }
.wb-discussion__rules li + li { margin-top: 6px; }
.wb-code {
margin: 0 0 16px;
padding: 14px 16px;
overflow: auto;
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
background: rgba(0, 0, 0, 0.03);
border-radius: 6px;
}
.wb-solutions { margin: 0; padding: 0; list-style: none; }
.wb-solutions li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.wb-solutions__title { margin: 0; font-size: 14px; font-weight: 500; }
.wb-solutions__meta { margin: 4px 0 0; font-size: 13px; color: var(--ink-faint); }
.wb-submissions { width: 100%; border-collapse: collapse; font-size: 13px; }
.wb-submissions th,
.wb-submissions td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.wb-submissions th { font-weight: 500; color: var(--ink-faint); }
.wb-muted { font-size: 14px; color: var(--ink-faint); }
.wb-muted a { color: var(--blue); }
.wb-actions {
display: flex;
align-items: center;
gap: 8px;
flex: none;
padding: 8px 14px;
background: rgba(0, 0, 0, 0.02);
border-top: 1px solid var(--line);
}
.wb-actions__button {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 8px;
font-size: 14px;
font-weight: 500;
color: var(--ink-soft);
background: none;
border: 0;
border-radius: 6px;
}
.wb-actions__button:hover { background: rgba(0, 0, 0, 0.05); }
.wb-editor {
display: flex;
flex-direction: column;
min-height: 0;
height: 100%;
margin: 0;
}
.wb-editor__head {
display: flex;
align-items: center;
flex: none;
height: 40px;
padding: 0 16px;
font-size: 14px;
font-weight: 500;
background: rgba(0, 0, 0, 0.02);
border-bottom: 1px solid var(--line);
}
.wb-editor__glyph { color: rgb(44, 187, 93); font-family: var(--font-mono); }
.wb-editor__bar {
display: flex;
align-items: center;
gap: 12px;
flex: none;
height: 40px;
padding: 0 16px;
}
.wb-editor__lang select {
padding: 2px 6px;
font-size: 14px;
color: var(--ink-soft);
background: none;
border: 0;
border-radius: 5px;
outline: none;
}
.wb-editor__auto {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 14px;
color: var(--ink-soft);
}
.wb-editor__dot {
display: inline-block;
width: 4px;
height: 4px;
background: currentColor;
border-radius: var(--radius-round);
}
.wb-editor__body {
display: flex;
flex: 1 1 auto;
min-height: 160px;
overflow: auto;
border-top: 1px solid var(--line);
}
.wb-gutter {
flex: none;
margin: 0;
padding: 10px 8px 10px 14px;
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
text-align: right;
color: rgba(0, 0, 0, 0.32);
user-select: none;
}
.wb-code-input {
flex: 1 1 auto;
min-height: 100%;
padding: 10px 14px 10px 4px;
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
color: var(--ink-strong);
background: none;
border: 0;
outline: none;
resize: none;
white-space: pre;
overflow-wrap: normal;
}
.wb-editor__status {
display: flex;
align-items: center;
justify-content: space-between;
flex: none;
padding: 6px 16px;
font-size: 13px;
color: var(--ink-faint);
}
.wb-notice {
flex: none;
margin: 0;
padding: 10px 16px;
font-size: 14px;
text-align: center;
color: var(--ink);
background: rgb(232, 244, 253);
}
.wb-notice a { font-weight: 500; color: rgb(0, 122, 255); }
.wb-console {
display: flex;
flex-direction: column;
flex: none;
max-height: 46%;
min-height: 120px;
border-top: 1px solid var(--line);
}
.wb-console__tabs {
display: flex;
align-items: center;
gap: 4px;
flex: none;
height: 40px;
padding: 0 12px;
}
.wb-console__tab {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 8px;
font-size: 14px;
color: var(--ink-muted);
background: none;
border: 0;
border-radius: 6px;
}
.wb-console__tab.is-active { font-weight: 500; color: var(--ink-strong); }
.wb-console__icon {
display: inline-block;
width: 13px;
height: 13px;
border: 1.4px solid currentColor;
border-radius: 2px;
}
.wb-console__icon--case { color: rgb(44, 187, 93); }
.wb-console__icon--result { color: rgb(115, 115, 115); }
.wb-console__panel {
flex: 1 1 auto;
min-height: 0;
padding: 4px 16px 16px;
overflow: auto;
}
.is-hidden { display: none !important; }
.wb-cases { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.wb-case {
height: 29px;
padding: 4px 16px;
font-size: 14px;
font-weight: 500;
color: var(--ink-muted);
background: none;
border: 0;
border-radius: var(--radius-field);
}
.wb-case.is-active { color: var(--ink); background: var(--surface-chip); }
.wb-case-field { display: block; margin-bottom: 12px; }
.wb-case-field__label {
display: block;
margin-bottom: 6px;
font-family: var(--font-mono);
font-size: 13px;
color: var(--ink-muted);
}
.wb-case-field textarea {
width: 100%;
padding: 8px 12px;
font-family: var(--font-mono);
font-size: 13px;
line-height: 20px;
color: var(--ink-strong);
background: rgba(0, 0, 0, 0.03);
border: 1px solid transparent;
border-radius: var(--radius-field);
outline: none;
resize: vertical;
}
.wb-case-field textarea:focus { border-color: rgba(26, 144, 255, 0.5); }
.wb-result { font-size: 14px; }
.wb-result__headline {
display: flex;
align-items: baseline;
gap: 12px;
margin: 8px 0 12px;
}
.verdict { font-size: 18px; font-weight: 600; }
.verdict--accepted { color: var(--green); }
.verdict--wrong-answer,
.verdict--compile-error,
.verdict--runtime-error,
.verdict--not-available { color: var(--hard); }
.wb-result__count { font-size: 13px; color: var(--ink-faint); }
.wb-result__message { margin: 0 0 12px; color: var(--ink-muted); }
.wb-result__stats { display: flex; gap: 32px; margin: 0 0 16px; }
.wb-result__stats dt { font-size: 12px; color: var(--ink-faint); }
.wb-result__stats dd { margin: 2px 0 0; font-weight: 500; }
.wb-result__cases { margin: 0; padding: 0; list-style: none; }
.wb-result__case {
padding: 10px 12px;
margin-bottom: 8px;
background: rgba(0, 0, 0, 0.02);
border-radius: 6px;
}
.wb-result__case.is-failed { background: rgba(246, 54, 54, 0.06); }
.wb-result__case-title { margin: 0 0 8px; font-weight: 500; }
.wb-result__case dl { margin: 0; }
.wb-result__case dt { font-size: 12px; color: var(--ink-faint); }
.wb-result__case dd { margin: 2px 0 8px; }
.wb-result__case pre {
margin: 0;
padding: 6px 10px;
font-family: var(--font-mono);
font-size: 13px;
white-space: pre-wrap;
background: rgba(0, 0, 0, 0.04);
border-radius: 5px;
}
/* --------------------------------------------------------------------- */
/* account pages */
/* --------------------------------------------------------------------- */
body.page--auth { background: rgb(240, 240, 240); }
.auth {
display: flex;
align-items: center;
justify-content: center;
min-height: calc(100vh - 145px);
padding: 40px 16px;
}
.auth--top { align-items: flex-start; padding-top: 40px; }
.auth__card {
width: 382px;
max-width: 100%;
padding: 24px;
text-align: center;
background: var(--surface);
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.auth__brand {
display: block;
margin: 12px 0 24px;
}
.auth__word {
display: block;
margin-top: 6px;
font-size: 21px;
font-weight: 500;
letter-spacing: 0.4px;
color: var(--ink-strong);
}
.auth__form { margin: 0; }
.auth__field { display: block; margin-bottom: 20px; }
.auth__field input {
width: 100%;
height: 36px;
padding: 4px 12px;
font-size: 14px;
color: var(--ink-strong);
background: none;
border: 1px solid var(--field-line);
border-radius: var(--radius-field);
outline: none;
}
.auth__field input::placeholder { color: rgba(0, 0, 0, 0.4); }
.auth__field input:focus { border-color: rgba(0, 123, 255, 0.55); }
.verify {
margin-bottom: 20px;
padding: 12px 14px;
text-align: left;
border: 1px solid rgba(0, 0, 0, 0.12);
border-radius: 4px;
background: rgb(250, 250, 250);
}
.verify__row { display: flex; align-items: center; gap: 12px; }
.verify__box {
width: 22px;
height: 22px;
accent-color: var(--blue);
}
.verify__label { font-size: 14px; color: var(--ink); }
.verify__brand {
display: flex;
align-items: baseline;
justify-content: flex-end;
gap: 8px;
margin-top: 6px;
}
.verify__wordmark {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.08em;
color: rgba(0, 0, 0, 0.45);
}
.verify__links { font-size: 10px; color: rgba(0, 0, 0, 0.35); }
.auth__submit {
width: 100%;
height: 36px;
padding: 8px 16px;
font-size: 14px;
font-weight: 500;
color: rgb(250, 250, 250);
background: var(--ink-strong);
border: 0;
border-radius: var(--radius-field);
}
.auth__submit:hover { background: rgb(48, 48, 48); }
.auth__fine {
margin: 22px 0 0;
font-size: 14px;
color: var(--ink-muted);
}
.auth__fine a { color: var(--blue); }
.auth__row {
display: flex;
justify-content: space-between;
margin-top: 20px;
font-size: 14px;
}
.auth__row--center { justify-content: center; gap: 8px; color: var(--ink-muted); }
.auth__row a { color: var(--ink-strong); }
.auth__or {
margin: 28px 0 16px;
font-size: 14px;
color: var(--ink-muted);
}
.social-row { display: flex; justify-content: center; gap: 16px; }
.social {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
color: #ffffff;
background: rgb(102, 102, 102);
border: 0;
border-radius: var(--radius-round);
}
.social:hover { background: rgb(70, 70, 70); }
.auth__notice {
margin: 0 0 16px;
padding: 8px 12px;
font-size: 13px;
color: rgb(21, 87, 36);
background: rgb(233, 247, 239);
border-radius: 6px;
}
.auth__notice--muted { color: var(--ink-muted); background: rgba(0, 0, 0, 0.04); }
/* password reset panel: a plain card at the top of the page */
.auth__panel {
width: 400px;
max-width: 100%;
padding: 24px 25px;
background: var(--surface);
border-radius: 10px;
box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}
.auth__panel--wide { width: 560px; }
.auth__panel-title {
display: flex;
align-items: center;
gap: 10px;
margin: 0 0 16px;
font-size: 16px;
font-weight: 600;
color: var(--ink);
}
.auth__info { display: inline-flex; color: var(--blue); }
.auth__panel-lead {
margin: 0 0 20px;
font-size: 14px;
line-height: 21px;
color: var(--ink);
}
.auth__panel-form { margin: 0; }
.auth__panel-actions { display: flex; justify-content: flex-end; }
.auth__continue {
height: 36px;
padding: 8px 16px;
font-size: 14px;
font-weight: 500;
color: #ffffff;
background: var(--blue);
border: 0;
border-radius: var(--radius-field);
}
.auth__continue:hover { background: rgb(0, 105, 217); }
.mail {
margin: 0 0 16px;
padding: 16px 18px;
text-align: left;
background: rgba(0, 0, 0, 0.02);
border: 1px solid var(--line);
border-radius: 8px;
}
.mail__meta { margin: 0 0 8px; font-size: 12px; color: var(--ink-faint); }
.mail__subject { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.mail__code {
margin: 12px 0;
font-family: var(--font-mono);
font-size: 26px;
font-weight: 600;
letter-spacing: 0.22em;
color: var(--ink-strong);
}
.mail__expiry,
.mail__footer { font-size: 13px; color: var(--ink-faint); }
/* --------------------------------------------------------------------- */
/* member + boundary pages */
/* --------------------------------------------------------------------- */
.member,
.boundary {
max-width: 900px;
margin: 0 auto;
padding: 40px 24px 64px;
}
.member__title,
.boundary__title { margin: 0 0 8px; font-size: 28px; font-weight: 600; }
.member__lead,
.boundary__lead { margin: 0 0 28px; color: var(--ink-muted); }
.member__cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 16px;
margin-bottom: 32px;
}
.member__card {
padding: 18px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 10px;
}
.member__figure { margin: 0; font-size: 26px; font-weight: 600; }
.member__label { margin: 4px 0 0; font-size: 13px; color: var(--ink-faint); }
.member__table {
width: 100%;
margin-bottom: 32px;
border-collapse: collapse;
font-size: 14px;
}
.member__table caption {
margin-bottom: 8px;
font-weight: 600;
text-align: left;
}
.member__table th,
.member__table td {
padding: 10px 8px;
text-align: left;
border-bottom: 1px solid var(--line);
}
.member__table thead th { font-weight: 500; color: var(--ink-faint); }
.member__table a { color: var(--blue); }
.member__h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.member__empty,
.member__more { color: var(--ink-muted); }
.member__empty a,
.member__more a { color: var(--blue); }
.boundary__note { margin: 0 0 28px; color: var(--ink-muted); }
.boundary__note a { color: var(--blue); }
.boundary__actions { display: flex; align-items: center; gap: 20px; }
.boundary__button {
display: inline-block;
padding: 8px 18px;
font-weight: 500;
color: #ffffff;
background: var(--ink-strong);
border-radius: var(--radius-round);
}
.boundary__link { color: var(--blue); }
/* --------------------------------------------------------------------- */
/* responsive */
/* --------------------------------------------------------------------- */
@media (max-width: 1279px) {
.ps { grid-template-columns: 220px minmax(0, 1fr); }
.ps__aside { display: none; }
.mk-brand { padding-left: 0; }
.hero__text { margin-right: 0; }
}
@media (max-width: 1099px) {
.mk-explore { grid-template-columns: 1fr; gap: 32px; text-align: center; }
.mk-explore__text,
.mk-explore__text .mk-heading { text-align: center; }
.mk-duo { grid-template-columns: 1fr; gap: 56px; }
.mk-duo__col + .mk-duo__col {
padding-left: 0;
margin-left: 0;
border-left: 0;
border-top: 1px solid rgba(0, 0, 0, 0.08);
padding-top: 56px;
}
.mk-footer { flex-wrap: wrap; justify-content: center; padding-inline: 24px; }
.mk-footer__copy { margin: 0 auto; }
}
@media (max-width: 991px) {
/* The captured mobile home renders no navigation bar at all. */
.mk-header { display: none; }
.hero { padding-top: 56px; padding-bottom: 60px; min-height: 0; }
.hero__art {
position: static;
width: 260px;
max-width: 72vw;
margin: 40px auto 0;
}
.hero__text { width: 100%; margin: 0; }
.hero__title { font-size: 40px; }
.hero__wedge { height: 44%; inset: auto -20% -18% -20%; }
.ps { grid-template-columns: minmax(0, 1fr); }
.ps__rail { display: none; }
}
@media (max-width: 900px) {
.wb-split {
/* The source keeps both panes and scrolls them sideways inside the page;
the document itself never overflows. */
overflow-x: auto;
}
.wb-pane { flex: 0 0 min(92vw, 560px); }
.wb-bar { overflow-x: auto; scrollbar-width: none; }
.wb-bar::-webkit-scrollbar { display: none; }
.wb-bar__left,
.wb-bar__right { flex: none; }
.wb-bar__list-text { display: none; }
}
@media (max-width: 767px) {
.ap-header__inner { gap: 12px; padding: 0 16px; }
.ap-header__burger { display: flex; }
.ap-nav {
position: absolute;
top: 50px;
left: 0;
right: 0;
display: none;
flex-direction: column;
align-items: flex-start;
gap: 0;
padding: 8px 16px 16px;
background: var(--surface);
border-bottom: 1px solid var(--line);
}
.ap-nav.is-open { display: flex; }
.ap-nav__link { width: 100%; padding: 10px 0; }
.ap-navmenu { width: 100%; }
.ap-navmenu__panel { position: static; width: 100%; margin: 0 0 8px; box-shadow: none; }
.ap-search { display: none; }
.ap-search.is-open {
position: absolute;
top: 50px;
left: 16px;
right: 16px;
display: flex;
z-index: 20;
}
.ap-search.is-open input { width: 100%; }
.ap-header__icon { display: inline-flex; }
.ap-header__link,
.ap-header__or,
.ap-header__premium { display: none; }
.ap-header__member { display: inline; }
.ps { padding: 12px 12px 32px; }
.ps-promo { flex: 0 0 270px; }
.ps-controls { flex-wrap: wrap; }
.ps-search { width: 100%; order: -1; }
.ps-solved { margin-left: auto; }
.ps-row__link {
grid-template-columns: minmax(0, 1fr) 54px 44px;
gap: 8px;
padding: 0 12px;
}
.ps-row__acceptance { display: none; }
.ps-row__frequency { text-align: right; }
.ps-pop__panel { left: auto; right: 0; width: min(300px, 86vw); }
.ps-pop__panel--wide { width: min(320px, 86vw); }
.mk-playground { grid-template-columns: 1fr; }
.mk-playground__list { display: none; }
.mk-playground__select { display: block; }
.mk-playground__select select {
width: 100%;
height: 34px;
padding: 4px 10px;
font-size: 15px;
color: rgb(85, 85, 85);
background: #ffffff;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 4px;
}
.auth { padding: 24px 12px; }
.auth__card { padding: 20px 16px; }
.ap-footer__inner { justify-content: center; text-align: center; }
.ap-footer__links { margin: 0; justify-content: center; gap: 14px; }
.mk-footer { flex-direction: column; gap: 8px; text-align: center; }
.mk-footer__region { margin: 0; }
}