.figma-studio {
    --figma-ink: #f7f8fb;
    --figma-muted: #aeb5c2;
    --figma-line: rgba(255, 255, 255, .11);
    --figma-panel: rgba(13, 15, 22, .92);
    --figma-green: #00e5b9;
    --figma-purple: #a787ff;
    --figma-pink: #ff6fbd;
    --figma-blue: #56c5ff;
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 8vw, 8rem) 0;
    color: var(--figma-ink);
    background:
        radial-gradient(circle at 11% 12%, rgba(167, 135, 255, .16), transparent 30rem),
        radial-gradient(circle at 91% 39%, rgba(255, 111, 189, .1), transparent 26rem),
        #06070a;
}

.figma-studio::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: '';
    opacity: .26;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.figma-studio *,
.figma-studio *::before,
.figma-studio *::after {
    box-sizing: border-box;
}

.figma-studio__container {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100% - 48px));
    margin-inline: auto;
}

.figma-studio__heading {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .72fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.figma-studio__kicker {
    margin: 0 0 .85rem;
    color: var(--figma-green);
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.figma-studio__heading h2,
.figma-studio__decision h3 {
    margin: 0;
    color: var(--figma-ink);
    font-weight: 620;
    letter-spacing: -.04em;
}

.figma-studio__heading h2 {
    max-width: 17ch;
    font-size: clamp(2.1rem, 4.6vw, 4.25rem);
    line-height: .99;
}

.figma-studio__heading > p,
.figma-studio__decision > div > p:last-child {
    margin: 0;
    color: var(--figma-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.figma-studio__shell {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 28px;
    background: rgba(8, 9, 13, .89);
    box-shadow: 0 42px 100px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .05);
    backdrop-filter: blur(18px);
}

.figma-studio__toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    min-height: 84px;
    padding: 1rem 1.35rem;
    border-bottom: 1px solid var(--figma-line);
    background: rgba(255, 255, 255, .025);
}

.figma-studio__identity,
.figma-studio__version {
    display: flex;
    gap: .85rem;
    align-items: center;
}

.figma-studio__identity small,
.figma-studio__identity strong,
.figma-studio__version span,
.figma-studio__version strong {
    display: block;
}

.figma-studio__identity small,
.figma-studio__version span,
.figma-studio__panel-head small,
.figma-studio__rail small {
    color: #8d94a1;
    font-size: .67rem;
    font-weight: 760;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.figma-studio__identity strong,
.figma-studio__version strong {
    margin-top: .15rem;
    color: #f8f9fc;
    font-size: .88rem;
    letter-spacing: .02em;
}

.figma-studio__logo {
    display: grid;
    grid-template-columns: repeat(2, 11px);
    grid-template-rows: repeat(3, 11px);
    width: 22px;
    height: 33px;
}

.figma-studio__logo i {
    display: block;
}

.figma-studio__logo i:nth-child(1) { border-radius: 8px 0 0 8px; background: #f24e1e; }
.figma-studio__logo i:nth-child(2) { border-radius: 0 8px 8px 0; background: #ff7262; }
.figma-studio__logo i:nth-child(3) { border-radius: 8px 0 0 8px; background: #a259ff; }
.figma-studio__logo i:nth-child(4) { border-radius: 50%; background: #1abcfe; }
.figma-studio__logo i:nth-child(5) { grid-column: 1; border-radius: 8px 0 8px 8px; background: #0acf83; }

.figma-studio__version {
    min-width: 240px;
    justify-content: space-between;
    padding: .72rem .95rem;
    border: 1px solid var(--figma-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
}

.figma-studio__health {
    display: inline-flex;
    gap: .55rem;
    align-items: center;
    justify-self: end;
    padding: .6rem .78rem;
    border: 1px solid rgba(0, 229, 185, .25);
    border-radius: 999px;
    color: #bffff0;
    background: rgba(0, 229, 185, .07);
    font-size: .73rem;
    font-weight: 760;
}

.figma-studio__health i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--figma-green);
    box-shadow: 0 0 0 5px rgba(0, 229, 185, .11);
}

.figma-studio__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    min-height: 600px;
}

.figma-studio__canvas,
.figma-studio__manifest {
    min-width: 0;
    padding: clamp(1.35rem, 3vw, 2.25rem);
}

.figma-studio__canvas {
    border-right: 1px solid var(--figma-line);
    background:
        linear-gradient(rgba(167, 135, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 135, 255, .04) 1px, transparent 1px),
        rgba(167, 135, 255, .025);
    background-size: 24px 24px;
}

.figma-studio__manifest {
    background: linear-gradient(145deg, rgba(255, 255, 255, .025), rgba(255, 111, 189, .018));
}

.figma-studio__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    margin-bottom: 1.5rem;
}

.figma-studio__panel-head h3 {
    margin: .25rem 0 0;
    color: #f7f8fc;
    font-size: 1.1rem;
    font-weight: 700;
}

.figma-studio__panel-head > span {
    color: #9da4b0;
    font-size: .73rem;
    font-weight: 750;
}

.figma-studio__panel-head .figma-studio__passed {
    padding: .42rem .62rem;
    border: 1px solid rgba(0, 229, 185, .22);
    border-radius: 999px;
    color: #adf9e9;
    background: rgba(0, 229, 185, .07);
}

.figma-studio__frame {
    position: relative;
    display: grid;
    min-height: 445px;
    place-items: center;
    padding: 4rem 4.5rem;
    border: 1px solid rgba(167, 135, 255, .24);
    border-radius: 18px;
    background: rgba(7, 8, 12, .78);
    box-shadow: inset 0 0 55px rgba(167, 135, 255, .04);
}

.figma-studio__frame-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: .55rem;
    align-items: center;
    color: #9a8cc5;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.figma-studio__frame-label code {
    color: #d8cff5;
    font-size: .69rem;
}

.figma-studio__component {
    position: relative;
    width: min(100%, 360px);
    padding: 1.5rem;
    border: 1px solid rgba(86, 197, 255, .38);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(27, 31, 43, .98), rgba(13, 15, 22, .98));
    box-shadow: 0 25px 55px rgba(0, 0, 0, .42), 0 0 0 4px rgba(86, 197, 255, .035);
}

.figma-studio__component > small {
    color: var(--figma-blue);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .09em;
}

.figma-studio__component h4 {
    margin: .65rem 0 .25rem;
    color: #fff;
    font-size: 1.28rem;
}

.figma-studio__component > p {
    margin: 0 0 1.1rem;
    color: #9299a8;
    font-size: .76rem;
}

.figma-studio__component button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: .75rem 1rem;
    border: 0;
    border-radius: 8px;
    color: #03110e;
    background: var(--figma-green);
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    pointer-events: none;
}

.figma-studio__component dl {
    display: grid;
    gap: .3rem;
    margin: 1rem 0 0;
}

.figma-studio__component dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .6rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: .71rem;
}

.figma-studio__component dt { color: #858c9a; }
.figma-studio__component dd { display: flex; gap: .42rem; align-items: center; margin: 0; color: #d9dde5; font-weight: 700; }

.figma-studio__swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--figma-green);
}

.figma-studio__annotation {
    position: absolute;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 2px solid #080a0f;
    border-radius: 50%;
    color: #080a0f;
    background: var(--figma-pink);
    font-size: .65rem;
    font-weight: 900;
    box-shadow: 0 5px 20px rgba(255, 111, 189, .35);
}

.figma-studio__annotation--one { top: -13px; left: 22%; }
.figma-studio__annotation--two { right: -13px; bottom: 26%; background: var(--figma-purple); }

.figma-studio__measure {
    position: absolute;
    color: #766c9a;
    font-size: .61rem;
    font-weight: 700;
}

.figma-studio__measure--x {
    right: 18%;
    bottom: 2rem;
    left: 18%;
    border-top: 1px solid rgba(167, 135, 255, .35);
    text-align: center;
}

.figma-studio__measure--x span { position: relative; top: -.55rem; padding: 0 .5rem; background: #0b0c12; }

.figma-studio__measure--y {
    top: 40%;
    right: 2rem;
    bottom: 40%;
    border-left: 1px solid rgba(167, 135, 255, .35);
}

.figma-studio__measure--y span { position: absolute; top: 50%; left: .45rem; width: max-content; transform: translateY(-50%); }

.figma-studio__canvas-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.3rem;
    margin-top: 1rem;
    color: #969daa;
    font-size: .7rem;
}

.figma-studio__canvas-meta span { display: flex; gap: .45rem; align-items: center; }
.figma-studio__canvas-meta i { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #0b0c11; background: var(--figma-pink); font-size: .58rem; font-style: normal; font-weight: 900; }
.figma-studio__canvas-meta span:last-child i { background: var(--figma-purple); }

.figma-studio__diff-head,
.figma-studio__diff-row {
    display: grid;
    grid-template-columns: minmax(7rem, 1.2fr) 1fr 1fr auto;
    gap: .65rem;
    align-items: center;
}

.figma-studio__diff-head {
    padding: 0 .8rem .65rem;
    color: #777f8d;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.figma-studio__diff-row {
    min-height: 54px;
    padding: .75rem .8rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: #d7dbe3;
    font-size: .72rem;
}

.figma-studio__diff-row strong { color: #f2f3f6; font-weight: 720; }
.figma-studio__diff-row code { color: #b7bdc8; font-size: .69rem; }
.figma-studio__diff-row b { color: var(--figma-green); font-size: .65rem; }

.figma-studio__resources {
    margin-top: 1.6rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 15px;
    background: rgba(255, 255, 255, .025);
}

.figma-studio__resources-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: .8rem;
    color: #f1f2f6;
    font-size: .76rem;
    font-weight: 760;
}

.figma-studio__resources-title strong { color: var(--figma-purple); font-size: .67rem; }
.figma-studio__resources ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.figma-studio__resources li { display: grid; grid-template-columns: 30px 1fr auto; gap: .7rem; align-items: center; padding: .65rem; border-radius: 10px; background: rgba(6, 7, 10, .72); }
.figma-studio__resources li > i { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(167, 135, 255, .2); border-radius: 8px; color: #d8cbff; background: rgba(167, 135, 255, .08); font-size: .66rem; font-style: normal; font-weight: 800; }
.figma-studio__resources li span strong,
.figma-studio__resources li span small { display: block; }
.figma-studio__resources li span strong { color: #e7e9ee; font-size: .71rem; }
.figma-studio__resources li span small { overflow: hidden; margin-top: .1rem; color: #858c98; font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.figma-studio__resources li > b { color: var(--figma-green); font-size: .75rem; }

.figma-studio__response {
    display: grid;
    gap: .45rem;
    margin-top: 1rem;
    padding: .8rem 1rem;
    border-left: 2px solid var(--figma-green);
    border-radius: 3px 10px 10px 3px;
    background: rgba(0, 229, 185, .045);
}

.figma-studio__response span { color: #8c948f; font-size: .64rem; font-weight: 750; text-transform: uppercase; }
.figma-studio__response code { overflow: hidden; color: #bdffef; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }

.figma-studio__rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--figma-line);
    list-style: none;
}

.figma-studio__rail li {
    position: relative;
    display: flex;
    gap: .75rem;
    align-items: center;
    min-height: 90px;
    padding: 1rem 1.15rem;
}

.figma-studio__rail li + li { border-left: 1px solid var(--figma-line); }

.figma-studio__rail li > i {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(167, 135, 255, .3);
    border-radius: 9px;
    color: #d6caff;
    background: rgba(167, 135, 255, .08);
    font-size: .69rem;
    font-style: normal;
    font-weight: 850;
}

.figma-studio__rail small,
.figma-studio__rail strong { display: block; }
.figma-studio__rail strong { margin-top: .2rem; color: #e9ebf0; font-size: .76rem; }

.figma-studio__decision {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(1.5rem, 3.5vw, 3rem);
    border: 1px solid rgba(167, 135, 255, .19);
    border-radius: 22px;
    background: linear-gradient(115deg, rgba(167, 135, 255, .09), rgba(255, 111, 189, .04) 54%, rgba(0, 229, 185, .045));
}

.figma-studio__decision h3 {
    max-width: 29ch;
    margin-bottom: .8rem;
    font-size: clamp(1.45rem, 2.7vw, 2.35rem);
    line-height: 1.12;
}

.figma-studio__decision > div > p:last-child { max-width: 72ch; font-size: .93rem; }

.figma-studio__cta {
    display: inline-flex;
    gap: .65rem;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: .8rem 1.2rem;
    border: 1px solid var(--figma-green);
    border-radius: 8px;
    color: #04120f;
    background: var(--figma-green);
    font-size: .86rem;
    font-weight: 850;
    white-space: nowrap;
}

.figma-studio__cta:hover,
.figma-studio__cta:focus {
    color: #f5fffc;
    background: transparent;
    box-shadow: 0 0 0 4px rgba(0, 229, 185, .11);
}

.figma-studio__boundaries {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin-top: .75rem;
}

.figma-studio__boundaries a {
    display: grid;
    gap: .25rem;
    min-width: 0;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    color: inherit;
    background: rgba(255, 255, 255, .025);
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.figma-studio__boundaries a:hover,
.figma-studio__boundaries a:focus {
    border-color: rgba(167, 135, 255, .38);
    background: rgba(167, 135, 255, .07);
    transform: translateY(-2px);
}

.figma-studio__boundaries span { color: var(--figma-purple); font-size: .63rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.figma-studio__boundaries strong { overflow: hidden; color: #f0f2f6; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.figma-studio__boundaries small { color: #858c98; font-size: .67rem; line-height: 1.4; }

@media (max-width: 1050px) {
    .figma-studio__heading { grid-template-columns: 1fr; gap: 1.25rem; }
    .figma-studio__heading h2 { max-width: 21ch; }
    .figma-studio__heading > p { max-width: 70ch; }
    .figma-studio__workspace { grid-template-columns: 1fr; }
    .figma-studio__canvas { border-right: 0; border-bottom: 1px solid var(--figma-line); }
    .figma-studio__rail { grid-template-columns: repeat(2, 1fr); }
    .figma-studio__rail li:nth-child(3) { border-left: 0; border-top: 1px solid var(--figma-line); }
    .figma-studio__rail li:nth-child(4) { border-top: 1px solid var(--figma-line); }
    .figma-studio__boundaries { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .figma-studio { padding: 4rem 0; }
    .figma-studio__container { width: min(100% - 24px, 1320px); }
    .figma-studio__heading h2 { font-size: clamp(2rem, 11vw, 3rem); }
    .figma-studio__heading > p { font-size: .92rem; line-height: 1.65; }
    .figma-studio__shell { border-radius: 20px; }
    .figma-studio__toolbar { grid-template-columns: 1fr auto; gap: 1rem; }
    .figma-studio__version { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
    .figma-studio__health { font-size: 0; }
    .figma-studio__health::after { content: 'OK'; font-size: .68rem; }
    .figma-studio__canvas,
    .figma-studio__manifest { padding: 1rem; }
    .figma-studio__frame { min-height: 420px; padding: 3.7rem 1.2rem 4rem; }
    .figma-studio__component { padding: 1.15rem; }
    .figma-studio__measure--x { right: 11%; left: 11%; }
    .figma-studio__measure--y { display: none; }
    .figma-studio__diff-head,
    .figma-studio__diff-row { grid-template-columns: minmax(6.2rem, 1.2fr) 1fr auto; }
    .figma-studio__diff-head span:nth-child(3),
    .figma-studio__diff-row code:nth-child(3) { display: none; }
    .figma-studio__rail { grid-template-columns: 1fr; }
    .figma-studio__rail li + li,
    .figma-studio__rail li:nth-child(3),
    .figma-studio__rail li:nth-child(4) { border-top: 1px solid var(--figma-line); border-left: 0; }
    .figma-studio__decision { grid-template-columns: 1fr; }
    .figma-studio__cta { width: 100%; white-space: normal; }
    .figma-studio__boundaries { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .figma-studio__boundaries a { transition: none; }
}
