/* tuetran.link: the stylesheet of the theme, built from the drawing `tuetranlink-web` (sheet 03).
   The numbers come from the drawing; the colours, face and heading sizes of Administration, Theme options come first (theme-options.css) as --tuetran-* variables and these rules read them. */

@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/be-vietnam-pro-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/be-vietnam-pro-400-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/be-vietnam-pro-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/be-vietnam-pro-500-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/be-vietnam-pro-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/be-vietnam-pro-600-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url('../fonts/jetbrains-mono-400-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url('../fonts/jetbrains-mono-400-500-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}

/* Colours of the light and the dark page (drawing sheet 03, TH.light and TH.dark). The mode lives in `data-theme` on the root element, which the
   floating-widget package writes; with no choice made the system setting decides. */
:root {
    --bg: #FFFFFF;
    --surf: #FFFFFF;
    --line: #ECEFF3;
    --line-2: #E7EAEF;
    --line-3: #DDE2E9;
    --ink: #172948;
    --ink-3: #3F4A5C;
    --ink-4: #4D586A;
    --mut: #657286;
    --rose: #BD496A;
    --on-pink: #172948;
    --navy: #172948;
    --hdr: rgba(255, 255, 255, 0.92);
    --pink: var(--tuetran-primary, #FB7B9B);
    --font-body: var(--site-font, 'Be Vietnam Pro'), system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --pad-x: 40px;
    --home-pad-y: 96px;
    --home-h1: var(--tuetran-h1-size, 38px);
    --home-h1-lh: 49.4px;
    --page-h1: 34px;
    --page-h1-lh: 44.2px;
    --page-h2: var(--tuetran-h2-size, 24px);
    --page-h2-lh: 31.2px;
    --big-num: 96px;
    --text-pad-top: 64px;
    --text-pad-bottom: 96px;
    --section-gap: 40px;
    --foot-pad-top: 32px;
    --foot-pad-bottom: 32px;
    --lang-fs: 11px;
    --lang-pad: 5px 11px;
}

:root[data-theme="dark"] {
    --bg: #0B1324;
    --surf: #14213B;
    --line: #1E2D4B;
    --line-2: #2B3F66;
    --line-3: #34497A;
    --ink: #EAF0FA;
    --ink-3: #BCC9DE;
    --ink-4: #A9B9D3;
    --mut: #9FB0CC;
    --rose: #E88CA6;
    --on-pink: #0B1324;
    --navy: #0F1C3A;
    --hdr: rgba(11, 19, 36, 0.9);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0B1324;
        --surf: #14213B;
        --line: #1E2D4B;
        --line-2: #2B3F66;
        --line-3: #34497A;
        --ink: #EAF0FA;
        --ink-3: #BCC9DE;
        --ink-4: #A9B9D3;
        --mut: #9FB0CC;
        --rose: #E88CA6;
        --on-pink: #0B1324;
        --navy: #0F1C3A;
        --hdr: rgba(11, 19, 36, 0.9);
    }
}

/* Tablet: 560 to 1099 */
@media (max-width: 1099px) {
    :root {
        --pad-x: 32px;
        --home-pad-y: 80px;
        --home-h1: 24px;
        --home-h1-lh: 31.2px;
        --page-h1: 24px;
        --page-h1-lh: 31.2px;
        --page-h2: 20px;
        --page-h2-lh: 26px;
        --text-pad-top: 48px;
        --text-pad-bottom: 80px;
        --section-gap: 32px;
        --foot-pad-top: 24px;
        --foot-pad-bottom: 88px;
        --lang-fs: 12px;
        --lang-pad: 8px 13px;
    }
}

/* Phone: under 560 */
@media (max-width: 559px) {
    :root {
        --pad-x: 20px;
        --home-pad-y: 56px;
        --home-h1: 22px;
        --home-h1-lh: 28.6px;
        --page-h1: 22px;
        --page-h1-lh: 28.6px;
        --page-h2: 18px;
        --page-h2-lh: 23.4px;
        --big-num: 72px;
        --text-pad-top: 36px;
        --text-pad-bottom: 64px;
    }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: var(--tuetran-body-size, 16px);
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    color: var(--ink);
}

a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }
.page > main { flex: 1; }

/* Header: 75 high plus the rule under it = 76 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--hdr);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 var(--pad-x);
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-logo { display: flex; align-items: center; height: 34px; text-decoration: none; color: var(--ink); }
.site-logo img { display: block; flex: none; }
.site-logo__name { font-weight: 600; }

.lang-switch { display: flex; align-items: center; border: 1px solid var(--line-3); border-radius: 999px; padding: 3px; }
.lang-switch__item {
    font-family: var(--font-mono);
    font-size: var(--lang-fs);
    line-height: 1.5;
    letter-spacing: 0.08em;
    padding: var(--lang-pad);
    border-radius: 999px;
    text-decoration: none;
    background: transparent;
    color: var(--mut);
}
.lang-switch__item:hover { color: var(--ink); }
.lang-switch__item.is-active { background: var(--ink); color: var(--bg); }
/* Sheet 09 (390 frame): the logo box is 44 high and the two language buttons are 44 x 44 boxes, with nothing around them moving: the image stays 34 high,
   the pill is the same 42.3 x 34 drawn by ::before, the row keeps its height through the negative margins, the two boxes touch and the outer ones
   reach 1.67 beyond the frame, the text is centred where it was. The active button keeps its ink on the button itself (clipped to the glyphs, under the
   glyph colour) so a meter that reads the background of the element still finds ink under the light text. */
@media (max-width: 559px) {
    .site-logo { height: 44px; }
    .lang-switch__item {
        position: relative;
        z-index: 0;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: -5px 0;
        padding: 0;
        border-radius: 0;
    }
    .lang-switch__item:first-child { margin-left: -1.67px; padding-left: 1.67px; }
    .lang-switch__item:last-child { margin-right: -1.67px; padding-right: 1.67px; }
    .lang-switch__item::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: 5px;
        bottom: 5px;
        left: 0;
        right: 0;
        border-radius: 999px;
        background: transparent;
    }
    .lang-switch__item:first-child::before { left: 1.67px; }
    .lang-switch__item:last-child::before { right: 1.67px; }
    .lang-switch__item.is-active { -webkit-background-clip: text; background-clip: text; }
    .lang-switch__item.is-active::before { background: var(--ink); }
}

/* Home */
.page > .home { display: flex; align-items: center; }
.home-hero {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: var(--home-pad-y) var(--pad-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.home-kicker { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; letter-spacing: 0.2em; color: var(--mut); }
@media (max-width: 559px) { .home-kicker { font-size: 12px; line-height: 17.25px; } } /* sheet 09: text from 12 at 390, the line keeps its height */
.home-title { margin: 16px 0 0; font-size: var(--home-h1); line-height: var(--home-h1-lh); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.home-lead { margin: 14px 0 0; font-size: 16px; line-height: 26.4px; font-weight: 400; color: var(--ink-3); }

.home-illustration { width: 100%; aspect-ratio: 600 / 132; }
.home-illustration svg { display: block; }
.home-illustration--tall { display: none; aspect-ratio: 300 / 228; }
@media (max-width: 559px) {
    .home-illustration--wide { display: none; }
    .home-illustration--tall { display: block; }
}
.illo-card { fill: var(--surf); stroke: var(--line-3); }
.illo-dot--pink { fill: #FB7B9B; }
.illo-dot--grey { fill: var(--ink-3); }
.illo-label { font-family: 'JetBrains Mono', monospace; fill: var(--mut); }
/* Sheet 09: the two captions of the pictures come out at 12.24 on screen in the tall one (10.8 x 340 / 300) and 12 in the wide one (hidden below 560) */
@media (max-width: 559px) {
    .home-illustration--tall .illo-label { font-size: 10.8px; }
    .home-illustration--wide .illo-label { font-size: 12px; }
}
.illo-mono { font-family: 'JetBrains Mono', monospace; fill: var(--ink); }
.illo-name { font-family: 'Be Vietnam Pro', sans-serif; fill: var(--ink); }
.illo-dash { stroke: var(--line-3); }
.illo-arrow { stroke: var(--ink-3); }

/* Long text */
.text-page__grid {
    max-width: 1220px;
    margin: 0 auto;
    padding: var(--text-pad-top) var(--pad-x) var(--text-pad-bottom);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1100px) {
    .text-page__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) minmax(0, 1fr); }
    .text-page__article { grid-column: 2; }
}
.text-page__article { min-width: 0; display: flex; flex-direction: column; }
.text-title { margin: 0; font-size: var(--page-h1); line-height: var(--page-h1-lh); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.text-updated { margin-top: 12px; font-family: var(--font-mono); font-size: 12.5px; line-height: 20px; color: var(--mut); }
.text-page__article > p { margin: 0; font-size: 16px; line-height: 26.4px; color: var(--ink-3); }
/* Sheet 09: the links inside the long text have a 52 high touch box at 390 (same trick as the link under the shorten box) */
@media (max-width: 559px) { .text-page__article a[data-k="text-link"] { padding: 16px 4px; margin: 0 -4px; } }
.text-page__article > [data-k="text-intro"] { margin-top: 24px; }
.doc-section { margin-top: var(--section-gap); display: flex; flex-direction: column; gap: 14px; }
.doc-section h2 { margin: 0; font-size: var(--page-h2); line-height: var(--page-h2-lh); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.doc-section p { margin: 0; font-size: 16px; line-height: 26.4px; color: var(--ink-3); }
.doc-section ul, .doc-section ol { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 26.4px; color: var(--ink-3); }
.doc-section li { padding-left: 2px; }

/* Notice (the page of a link that no longer works, and the server error) */
.page > main:has(.notice) { display: flex; align-items: center; }
.notice {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: var(--home-pad-y) var(--pad-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.notice-code { font-family: var(--font-mono); font-size: var(--big-num); line-height: 1; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); }
.notice-title { margin: 24px 0 0; font-size: var(--page-h1); line-height: var(--page-h1-lh); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.notice-text { margin: 12px 0 0; font-size: 16px; line-height: 26.4px; color: var(--ink-3); }
.notice-button {
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--pink);
    color: var(--on-pink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.notice-button:hover { background: var(--rose); color: var(--bg); }
@media (max-width: 559px) {
    .notice-button { width: 100%; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surf); }
.site-footer__inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: var(--foot-pad-top) var(--pad-x) var(--foot-pad-bottom);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.footer-menu { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 24px; }
.footer-menu__item { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 1.5; color: var(--ink-4); text-decoration: none; }
.footer-menu__item:hover { color: var(--ink); }
.footer-copyright { font-size: 14px; line-height: 21px; color: var(--mut); }

/* Floating buttons: the shared floating-widget package draws them (colours, icons, light and dark switch, Zalo, call) and the theme only sets
   the variables it documents. Drawing sheet 03 sizes: 56 wide buttons 26 from the edge on a desktop, 48 wide 16 from the edge below 1100. */
:root {
    --fab-size: 56px;
    --fab-edge-x: 26px;
    --fab-edge-y: 26px;
}
@media (max-width: 1099px) {
    :root {
        --fab-size: 48px;
        --fab-edge-x: 16px;
        --fab-edge-y: calc(16px + env(safe-area-inset-bottom));
        --fab-gap: 10px;
    }
}

/* ===== Drawing sheet 05 (tuetran.link, 07/11/2026): the boxes of the account screens and the home blocks.
   The --member-* names are the ones the member package reads (`var(--member-x, <light value>)`), light at :root and dark below; the values are the table of
   the sheet (section d). The same names carry the shortlink screens: «Report a bad link», «My links» and the page of a protected link. */
:root {
    --member-field-h: 48px;
    --member-field-radius: 12px;
    --member-field-fs: 16px;
    --member-field-pad: 16px;
    --member-btn-h: 48px;
    --member-btn-radius: 999px;
    --member-card-radius: 18px;
    --member-card-pad: 32px;
    --member-gap: 20px;
    --member-label-gap: 8px;
    --member-text: #172948;
    --member-text-2: #3F4A5C;
    --member-muted: #657286;
    --member-card: #FFFFFF;
    --member-field: #FFFFFF;
    --member-line: #DDE2E9;
    --member-field-line: #727C8D;
    --member-link: #BD496A;
    --member-accent: #BD496A;
    --member-accent-bg: var(--pink);
    --member-on-accent: #172948;
    --member-accent-hover: #BD496A;
    --member-on-accent-hover: #FFFFFF;
    --member-tint: #F4F6F8;
    --member-focus: #172948;
    --member-err: #B42318;
    --member-err-bg: #F6E5E3;
    --member-ok: #137549;
    --member-ok-bg: #E3F0EA;
    --member-warn: #9B5411;
    --member-warn-bg: #F5EBE3;
    --member-info: #0A718B;
    --member-info-bg: #E2F1F4;
    --member-qr-bg: #FFFFFF;
    --member-qr-ink: #172948;
    --ha-h: 40px;
    /* The names the member package itself reads on its sign-in, register and forgot-password screens (they stand in the frame of this theme when
       «Màn đăng nhập trong khung của website» is on), mapped to the tokens above so they follow light and dark like the drawing (login.html, register.html). */
    --member-navy: var(--ink);
    --member-page: var(--bg);
    --member-primary-hover: color-mix(in srgb, var(--pink) 88%, #172948);
    --member-radius: var(--member-card-radius);
    --member-radius-btn: var(--member-btn-radius);
    --member-input-h: var(--member-field-h);
    --member-input-fs: var(--member-field-fs);
    --member-card-gap: var(--member-gap);
    --member-da: var(--member-err);
    --member-da-soft: var(--member-err-bg);
    --member-da-line: var(--member-err);
    --member-ok-soft: var(--member-ok-bg);
    --member-ok-line: var(--member-ok);
    --member-accent-soft: var(--member-tint);
    --member-font: var(--font-body);
}

:root[data-theme="dark"] {
    --member-text: #EAF0FA;
    --member-text-2: #BCC9DE;
    --member-muted: #9FB0CC;
    --member-card: #14213B;
    --member-field: #0B1324;
    --member-line: #34497A;
    --member-field-line: #7A879B;
    --member-link: #E88CA6;
    --member-accent: #E88CA6;
    --member-on-accent: #0B1324;
    --member-accent-hover: #E88CA6;
    --member-on-accent-hover: #0B1324;
    --member-tint: #1F3352;
    --member-focus: #EAF0FA;
    --member-err: #F1938A;
    --member-err-bg: #3E3A52;
    --member-ok: #5EBB8F;
    --member-ok-bg: #1E4151;
    --member-warn: #F0A85A;
    --member-warn-bg: #3E404B;
    --member-info: #66BAD5;
    --member-info-bg: #234261;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --member-text: #EAF0FA;
        --member-text-2: #BCC9DE;
        --member-muted: #9FB0CC;
        --member-card: #14213B;
        --member-field: #0B1324;
        --member-line: #34497A;
        --member-field-line: #7A879B;
        --member-link: #E88CA6;
        --member-accent: #E88CA6;
        --member-on-accent: #0B1324;
        --member-accent-hover: #E88CA6;
        --member-on-accent-hover: #0B1324;
        --member-tint: #1F3352;
        --member-focus: #EAF0FA;
        --member-err: #F1938A;
        --member-err-bg: #3E3A52;
        --member-ok: #5EBB8F;
        --member-ok-bg: #1E4151;
        --member-warn: #F0A85A;
        --member-warn-bg: #3E404B;
        --member-info: #66BAD5;
        --member-info-bg: #234261;
    }
}

@media (max-width: 1099px) {
    :root { --ha-h: 44px; }
}

/* The member package in the frame (login, register, forgot password) at the sizes of login.html and register.html (auth.css, .card-h1, .card-lead of the drawing).
   The package sets its own scale on .member-ui per width (shared, 08/11/2026: a theme whose drawing differs covers it here, not in the package),
   so each rule names the part and its drawn size. The two switches show the words «Show» and «Hide» and put the password hint under the box, as drawn. */
:root { --member-pw-icon: none; --member-pw-text: inline; --member-hint-in-label: none; --member-hint-below: block; }
/* The room of the card between the header and the footer: fills the screen, centres the card, side and top padding of .center-main */
html .page > .member-ui.is-auth-framed { flex:1; align-items:center; padding:var(--auth-pad-y) var(--pad-x); }
html .member-ui.is-auth-framed .auth-card h1 { font-size:26px; line-height:33.8px; font-weight:600; letter-spacing:-0.02em; }
html .member-ui.is-auth-framed .auth-card .auth-head { gap:8px; }
html .member-ui.is-auth-framed .auth-card .auth-head p { font-size:15px; line-height:24px; }
html .member-ui.is-auth-framed .auth-card .form-group { gap:var(--member-label-gap, 8px); }
html .member-ui.is-auth-framed .auth-card .form-group label { font-size:14px; line-height:21px; font-weight:600; }
html .member-ui.is-auth-framed .auth-card .form-hint-below { font-size:13px; line-height:19.5px; }
html .member-ui.is-auth-framed .auth-card .btn { font-size:15px; line-height:24px; }
/* Rows of 44 as drawn (auth.css: .auth-remember, .auth-forgot, .auth-switch a and .pw-toggle are min-height 44) */
html .member-ui.is-auth-framed .auth-card .eye-toggle { min-width:60px; min-height:44px; margin-right:-13px; }
html .member-ui.is-auth-framed .auth-card .eye-toggle .eye-text { font-size:14px; font-weight:600; }
html .member-ui.is-auth-framed .auth-card .auth-row { flex-wrap:wrap; gap:4px 16px; margin-top:0; }
html .member-ui.is-auth-framed .auth-card .auth-row a { display:inline-flex; align-items:center; min-height:44px; font-size:15px; line-height:22px; }
html .member-ui.is-auth-framed .auth-card .remember-row { min-height:44px; gap:12px; font-size:15px; line-height:22px; }
html .member-ui.is-auth-framed .auth-card .remember-row label { font-size:15px; line-height:22px; }
html .member-ui.is-auth-framed .auth-card .remember-row input { width:22px; height:22px; border:1px solid var(--member-field-line, #727C8D); border-radius:6px; background-color:var(--member-field, #FFFFFF); }
html .member-ui.is-auth-framed .auth-card .remember-row input:checked { background-color:var(--member-text, #172948); border-color:var(--member-text, #172948); }
html .member-ui.is-auth-framed .auth-card .auth-footer { align-items:center; gap:0 6px; font-size:15px; line-height:22px; }
html .member-ui.is-auth-framed .auth-card .auth-footer a { display:inline-flex; align-items:center; min-height:44px; font-size:15px; line-height:22px; font-weight:500; }
@media (max-width: 559px) {
    html .member-ui.is-auth-framed .auth-card h1 { font-size:22px; line-height:28.6px; }
    html .member-ui.is-auth-framed .auth-card .auth-footer a { min-width:44px; justify-content:center; }
}

/* The components of the sheet (mb-*): field, buttons, notes, chips, ticks */
.mb-sr { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.mb-ic { flex:none; display:block; width:16px; height:16px; }
.mb-label { display:block; font-size:14px; line-height:21px; font-weight:600; color:var(--member-text,#172948); }
.mb-opt { font-weight:400; color:var(--member-muted,#657286); }
.mb-field { display:block; width:100%; height:var(--member-field-h,48px); margin:0; padding:0 var(--member-field-pad,16px); border:1px solid var(--member-field-line,#727C8D); border-radius:var(--member-field-radius,12px); background:var(--member-field,#FFFFFF); color:var(--member-text,#172948); font-family:'Be Vietnam Pro',system-ui,sans-serif; font-size:var(--member-field-fs,16px); line-height:24px; font-weight:400; outline:none; -webkit-appearance:none; appearance:none; }
.mb-field::placeholder { color:var(--member-muted,#657286); opacity:1; }
.mb-field:focus-visible { outline:2px solid var(--member-focus,#172948); outline-offset:2px; }
.mb-field[aria-invalid="true"] { border-color:var(--member-err,#B42318); box-shadow:inset 0 0 0 1px var(--member-err,#B42318); }
.mb-field[disabled] { background:var(--member-tint,#F4F6F8); color:var(--member-muted,#657286); border-color:var(--member-line,#DDE2E9); }
.mb-area { height:112px; padding-top:12px; padding-bottom:12px; resize:none; }
.mb-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; margin:0; height:var(--member-btn-h,48px); padding:0 24px; border:1px solid transparent; border-radius:var(--member-btn-radius,999px); font-family:'Be Vietnam Pro',system-ui,sans-serif; font-size:15px; line-height:24px; font-weight:500; text-decoration:none; cursor:pointer; white-space:nowrap; background:transparent; color:var(--member-text,#172948); }
.mb-primary { background:var(--member-accent-bg,#FB7B9B); color:var(--member-on-accent,#172948); }
.mb-primary:hover { background:var(--member-accent-hover,#BD496A); color:var(--member-on-accent-hover,#FFFFFF); }
.mb-secondary { border-color:var(--member-field-line,#727C8D); }
.mb-secondary:hover { border-color:var(--member-accent-bg,#FB7B9B); color:var(--member-link,#BD496A); }
.mb-danger { background:var(--member-err,#B42318); color:var(--member-card,#FFFFFF); }
.mb-quiet { background:var(--member-tint,#F4F6F8); color:var(--member-muted,#657286); cursor:not-allowed; }
.mb-btn:focus-visible, .mb-focus { outline:2px solid var(--member-focus,#172948); outline-offset:3px; }
.mb-btn[aria-busy="true"] { cursor:progress; }
.mb-text-btn { display:inline-flex; align-items:center; justify-content:center; min-width:44px; margin:0; padding:0 12px; border:0; background:transparent; font-family:'Be Vietnam Pro',system-ui,sans-serif; font-size:15px; font-weight:500; cursor:pointer; color:var(--member-text-2,#3F4A5C); }
.mb-text-btn:focus-visible { outline:2px solid var(--member-focus,#172948); outline-offset:2px; border-radius:8px; }
.mb-err { display:flex; align-items:flex-start; gap:8px; margin:0; font-size:14px; line-height:21px; color:var(--member-err,#B42318); }
.mb-err .mb-ic { margin-top:2.5px; }
.mb-note { display:flex; align-items:flex-start; gap:10px; margin:0; padding:12px 16px; border-radius:12px; font-size:14px; line-height:21px; }
.mb-note .mb-ic { margin-top:2.5px; }
.mb-note-warn { background:var(--member-warn-bg,#F5EBE3); color:var(--member-warn,#9B5411); }
.mb-note-info { background:var(--member-info-bg,#E2F1F4); color:var(--member-info,#0A718B); }
.mb-note-err { background:var(--member-err-bg,#F6E5E3); color:var(--member-err,#B42318); }
.mb-chip { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; margin:0; padding:2px 10px 2px 8px; border-radius:999px; font-size:12px; line-height:18px; font-weight:500; white-space:nowrap; }
.mb-chip .mb-ic { width:14px; height:14px; }
.mb-chip-err { background:var(--member-err-bg,#F6E5E3); color:var(--member-err,#B42318); }
.mb-chip-warn { background:var(--member-warn-bg,#F5EBE3); color:var(--member-warn,#9B5411); }
.mb-chip-ok { background:var(--member-ok-bg,#E3F0EA); color:var(--member-ok,#137549); }
.mb-check { flex:none; position:relative; display:block; width:22px; height:22px; margin:0; border:1px solid var(--member-field-line,#727C8D); border-radius:6px; background:var(--member-field,#FFFFFF); -webkit-appearance:none; appearance:none; cursor:pointer; }
.mb-check:checked { background:var(--member-text,#172948); border-color:var(--member-text,#172948); }
.mb-check:checked::after { content:''; position:absolute; left:6.5px; top:2.5px; width:6px; height:11px; border:solid var(--member-field,#FFFFFF); border-width:0 2px 2px 0; transform:rotate(45deg); }
.mb-check:focus-visible { outline:2px solid var(--member-focus,#172948); outline-offset:2px; }
.mb-radio-card { position:relative; display:flex; align-items:center; gap:12px; min-height:52px; padding:10px 16px; border:1px solid var(--member-field-line,#727C8D); border-radius:var(--member-field-radius,12px); background:var(--member-field,#FFFFFF); color:var(--member-text,#172948); font-size:15px; line-height:22px; cursor:pointer; }
.mb-radio-card:hover { background:var(--member-tint,#F4F6F8); }
.mb-radio-on { border-color:var(--member-text,#172948); box-shadow:inset 0 0 0 1px var(--member-text,#172948); font-weight:500; }
.mb-radio-bad { border-color:var(--member-err,#B42318); }
.mb-radio-dot { flex:none; display:grid; place-items:center; width:22px; height:22px; border:1px solid var(--member-field-line,#727C8D); border-radius:50%; background:var(--member-field,#FFFFFF); }
.mb-radio-on .mb-radio-dot { border:2px solid var(--member-text,#172948); }
.mb-radio-dot i { display:none; width:10px; height:10px; border-radius:50%; background:var(--member-text,#172948); }
.mb-radio-on .mb-radio-dot i { display:block; }
.mb-radio-card:focus-within { outline:2px solid var(--member-focus,#172948); outline-offset:2px; }
.mb-radio-card input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.mb-spin { flex:none; display:block; width:18px; height:18px; }
.mb-tr td { vertical-align:middle; }

.mb-err[hidden], .header-auth__menu[hidden] { display: none; }

/* Header: the account links sit after the language switch, at the far right (owner order 07/11/2026; sheet 05 had them before it) (`header-auth`): 40 high on a desktop, 44 below 1100;
   under 560 both items become one round 44 button that opens a list of two rows of 48 */
.site-header__right { display: flex; align-items: center; gap: 16px; }
.header-auth { position: relative; display: flex; align-items: center; }
.header-auth__wide { display: flex; align-items: center; gap: 8px; }
.header-auth__narrow { display: none; position: relative; }
.header-auth__form { margin: 0; }
.header-auth__link { display: inline-flex; align-items: center; min-height: var(--ha-h); padding: 0 8px; font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--ink); text-decoration: none; }
.header-auth__link:hover { color: var(--rose); }
.header-auth__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.header-auth .header-auth__wide .mb-btn { height: var(--ha-h); padding: 0 16px; }
.header-auth__account { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.header-auth__account .mb-ic { width: 20px; height: 20px; }
.header-auth__menu { position: absolute; top: 56px; right: 0; z-index: 30; width: 208px; padding: 4px 0; background: var(--surf); border: 1px solid var(--line-3); border-radius: 14px; box-shadow: 0 14px 30px -14px rgba(23, 41, 72, 0.4); }
.header-auth__menu form { margin: 0; }
.header-auth__item { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 16px; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.header-auth__item:hover { color: var(--rose); }
.header-auth__item[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.header-auth__menu > * + *, .header-auth__menu > form .header-auth__item { border-top: 1px solid var(--line); }
.header-auth__menu > form:first-child .header-auth__item { border-top: 0; }
.header-auth__item:focus-visible { outline: 2px solid var(--member-focus); outline-offset: -2px; border-radius: 8px; }
@media (max-width: 559px) {
    .site-header__right { gap: 12px; }
    .header-auth__wide { display: none; }
    .header-auth__narrow { display: block; }
}

/* Home blocks (sheet 05): hero, shorten box, illustration. The box is 640 wide, the field 56 high on a desktop and 52 below 1100; on a phone the button goes under the field. */
.blk-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.blk-shorten { margin-top: 32px; width: 640px; max-width: 100%; display: flex; flex-direction: column; align-items: stretch; text-align: left; }
.shorten-form { display: flex; flex-direction: row; gap: 12px; align-items: stretch; }
.shorten-field { flex: 1 1 0%; min-width: 0; }
.shorten-form .mb-field, .shorten-form .mb-btn { height: 56px; }
.shorten-form .mb-btn { padding: 0 24px; }
.blk-shorten .mb-err { margin-top: 8px; }
.shorten-hint { margin: 12px 0 0; font-size: 13px; line-height: 19.5px; color: var(--mut); text-align: center; }
.shorten-hint a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
/* Sheet 09: the touch box of the link is 46 high at 390; the padding of an inline link moves no line, and the sideways padding is taken back by the margin. */
@media (max-width: 559px) { .shorten-hint a { padding: 10px 6px 20px; margin: 0 -6px; } }
.blk-illustration { margin-top: 48px; width: 600px; max-width: 100%; }
@media (max-width: 1099px) {
    .shorten-form .mb-field, .shorten-form .mb-btn { height: 52px; }
}
@media (max-width: 559px) {
    .blk-shorten { margin-top: 24px; width: 100%; }
    .shorten-form { flex-direction: column; }
    .shorten-field { flex: 0 0 auto; }
    .shorten-form .mb-btn { width: 100%; }
    .blk-illustration { margin-top: 40px; width: 100%; max-width: 340px; }
}

/* ===== Drawing sheet 05: the guest screens of the shortlink package in the frame of the theme: «Report a bad link», «My links» and the page of a protected
   link. Numbers are the ones of the sheet: the page padding 48 / 40 / 32, the card 440 (the report card 560) with a 32 padding (24 below 560), the title 26 (22),
   the «My links» column 4/6 of the content on a desktop and the whole width below 1100. */
:root {
    --auth-pad-y: 48px;
    --card-h1: 26px;
    --card-h1-lh: 33.8px;
    --ml-pad-top: 64px;
    --ml-pad-bot: 96px;
    --ml-gap: 40px;
    --row-btn-h: 40px;
    --overlay-bg: rgba(23, 41, 72, 0.5);
}
:root[data-theme="dark"] { --overlay-bg: rgba(2, 6, 14, 0.72); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --overlay-bg: rgba(2, 6, 14, 0.72); }
}
@media (max-width: 1099px) {
    :root { --auth-pad-y: 40px; --ml-pad-top: 48px; --ml-pad-bot: 80px; --ml-gap: 32px; --row-btn-h: 44px; }
}
@media (max-width: 559px) {
    :root { --auth-pad-y: 32px; --card-h1: 22px; --card-h1-lh: 28.6px; --member-card-pad: 24px; --ml-pad-top: 36px; --ml-pad-bot: 64px; }
}

.member-page { display: flex; align-items: center; justify-content: center; padding: var(--auth-pad-y) var(--pad-x); }
.member-page--list { flex: 1; }
.member-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) minmax(0, 1fr);
    max-width: 1220px;
    margin: 0 auto;
    padding: var(--ml-pad-top) var(--pad-x) var(--ml-pad-bot);
}
.member-column { grid-column: 2; min-width: 0; display: flex; flex-direction: column; gap: var(--ml-gap); }
@media (max-width: 1099px) {
    .member-grid { grid-template-columns: minmax(0, 1fr); }
    .member-column { grid-column: 1; }
}

.mb-card {
    width: 440px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--member-gap);
    padding: var(--member-card-pad);
    background: var(--member-card, #FFFFFF);
    border: 1px solid var(--member-line, #DDE2E9);
    border-radius: var(--member-card-radius, 18px);
}
.mb-card--report { width: 560px; }
.mb-card--create { width: auto; }
@media (max-width: 559px) { .mb-card { width: 100%; } }
.mb-card__head { display: flex; flex-direction: column; gap: 8px; }
.mb-card__title { margin: 0; font-size: var(--card-h1); line-height: var(--card-h1-lh); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.mb-card__lead { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-3); }
.mb-card__text { margin: 0; font-size: 16px; line-height: 26.4px; color: var(--ink-3); }

.mb-form { display: flex; flex-direction: column; gap: var(--member-gap); min-width: 0; margin: 0; padding: 0; border: 0; }
.mb-fieldrow { display: flex; flex-direction: column; gap: var(--member-label-gap, 8px); min-width: 0; }
.mb-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.mb-legend { padding: 0; margin-bottom: 8px; }
.mb-radio-list { display: flex; flex-direction: column; gap: 8px; }
.mb-err--after { margin-top: 8px; }
.mb-btn--full { width: 100%; }
.mb-radio-card:has(input:checked) { border-color: var(--member-text, #172948); box-shadow: inset 0 0 0 1px var(--member-text, #172948); font-weight: 500; }
.mb-radio-card:has(input:checked) .mb-radio-dot { border: 2px solid var(--member-text, #172948); }
.mb-radio-card:has(input:checked) .mb-radio-dot i { display: block; }
.mb-spin { animation: mb-spin 0.9s linear infinite; }
.mb-spin[hidden], [data-busy][hidden], [data-idle][hidden] { display: none; }
@keyframes mb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mb-spin { animation-duration: 3s; } }

.mb-sent { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.mb-sent__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--member-ok-bg, #E3F0EA); color: var(--member-ok, #137549); }
.mb-sent__icon .mb-ic { width: 28px; height: 28px; }
.mb-sent__home { margin-top: 12px; }
@media (max-width: 559px) { .mb-sent__home { width: 100%; } }

/* «My links»: the box that makes a link */
.create-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--member-gap); }
.create-pair--solo { grid-template-columns: minmax(0, 1fr); }
.create-actions { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.create-quota { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-3); }
.create-quota strong { font-weight: 600; color: var(--ink); }
.create-limit { flex: 1; }
.create-submit { width: auto; }
@media (max-width: 559px) {
    .create-pair { grid-template-columns: minmax(0, 1fr); }
    .create-actions { flex-direction: column; align-items: stretch; }
    .create-submit { width: 100%; }
}

/* «My links»: the list */
.link-list { display: flex; flex-direction: column; gap: 16px; }
.link-list__title { margin: 0; font-size: var(--card-h1); line-height: var(--card-h1-lh); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.links-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 24px; border: 1px dashed var(--member-field-line, #727C8D); border-radius: var(--member-card-radius, 18px); text-align: center; }
.links-empty__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--member-tint, #F4F6F8); color: var(--ink-3); }
.links-empty__icon .mb-ic { width: 22px; height: 22px; }
.links-empty p { margin: 0; font-size: 16px; line-height: 26.4px; color: var(--ink-3); }
.links-card { background: var(--member-card, #FFFFFF); border: 1px solid var(--member-line, #DDE2E9); border-radius: var(--member-card-radius, 18px); overflow: hidden; }
.links-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.links-table th { padding: 12px 8px; background: var(--member-tint, #F4F6F8); color: var(--mut); font-size: 13px; line-height: 19.5px; font-weight: 600; text-align: left; }
.links-table td { padding: 12px 8px; border-top: 1px solid var(--member-line, #DDE2E9); vertical-align: middle; }
.links-table .col-short { width: 208px; padding-left: 20px; }
.links-table .col-clicks { width: 88px; text-align: right; }
.links-table .col-qr { width: 84px; text-align: center; }
.links-table .col-actions { width: 224px; padding: 12px 12px 12px 8px; }
.links-table tr.is-new td { background: var(--member-tint, #F4F6F8); }
.link-id { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.link-short { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 14px; line-height: 21px; font-weight: 500; color: var(--ink); }
.link-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 19.5px; color: var(--mut); }
.link-target { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 21px; color: var(--ink-3); }
.link-clicks { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.link-qr { width: 56px; height: 56px; margin: 0 auto; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--member-line, #DDE2E9); border-radius: 6px; background: var(--member-qr-bg, #FFFFFF); }
.link-qr svg { display: block; width: 100%; height: 100%; }
.link-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; }
.link-copy { height: var(--row-btn-h); padding: 0 16px; font-size: 14px; }
.link-copy.is-done { border-color: var(--member-ok, #137549); color: var(--member-ok, #137549); }
.link-delete { height: var(--row-btn-h); color: var(--member-err, #B42318); }
.links-cards { display: none; }
.link-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--member-card, #FFFFFF); border: 1px solid var(--member-line, #DDE2E9); border-radius: 14px; }
.link-card.is-new { background: var(--member-tint, #F4F6F8); }
.link-card__top { display: flex; align-items: flex-start; gap: 12px; }
.link-card__top .link-id { flex: 1; gap: 4px; }
.link-card .link-short { font-size: 15px; line-height: 22px; font-weight: 600; }
.link-card .link-qr { flex: none; width: 72px; height: 72px; margin: 0; border-radius: 8px; }
.link-card__target { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.link-card__label { font-size: 12px; line-height: 18px; color: var(--mut); }
.link-card__clicks { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-3); }
.link-card .link-actions { justify-content: stretch; }
.link-card .link-copy, .link-card .link-delete { flex: 1; height: 44px; padding: 0 12px; font-size: 14px; }
.links-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.links-pager [aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.links-pager__page { font-size: 14px; line-height: 21px; color: var(--ink-3); }
@media (max-width: 559px) {
    .links-card { display: none; }
    .links-cards { display: flex; flex-direction: column; gap: 12px; }
    .links-empty { padding: 32px 20px; }
}

/* «My links»: the question before a link is deleted */
.delete-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--overlay-bg); }
.delete-overlay[hidden] { display: none; }
.delete-dialog { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--member-card, #FFFFFF); border: 1px solid var(--member-line, #DDE2E9); border-radius: var(--member-card-radius, 18px); box-shadow: 0 24px 60px -20px rgba(11, 19, 36, 0.6); }
.delete-dialog__title { margin: 0; font-size: 22px; line-height: 28.6px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.delete-dialog__text { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-3); }
.delete-dialog__short { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--ink); }
.delete-dialog__actions { display: flex; gap: 12px; margin-top: 12px; }
.delete-dialog__actions .mb-btn { flex: 1; padding: 0 16px; }
@media (max-width: 559px) { .delete-dialog { width: 100%; } }
