:root {
    --sheetbase-bg: #f3f6f8;
    --sheetbase-surface: #ffffff;
    --sheetbase-ink: #17324d;
    --sheetbase-muted: #637486;
    --sheetbase-line: #d9e1e8;
    --sheetbase-blue: #0c6d86;
    --sheetbase-blue-soft: #e6f3f6;
    --sheetbase-coral: #f06449;
    --sheetbase-green: #27836f;
    --sheetbase-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

.sheetbase-site {
    margin: 0;
    background: var(--sheetbase-bg);
    color: var(--sheetbase-ink);
    font-family: var(--sheetbase-sans);
    line-height: 1.5;
}

.sheetbase-site img {
    max-width: 100%;
}

.sheetbase-site a {
    color: inherit;
}

.sheetbase-site button,
.sheetbase-site input {
    font: inherit;
}

.sheetbase-site :focus-visible {
    outline: 3px solid var(--sheetbase-coral);
    outline-offset: 2px;
}

.sheetbase-header {
    position: relative;
    z-index: 20;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    padding: 10px max(24px, calc((100vw - 1320px) / 2));
    border-bottom: 1px solid var(--sheetbase-line);
    background: var(--sheetbase-surface);
}

.sheetbase-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.sheetbase-brand > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 6px;
    background: var(--sheetbase-coral);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.sheetbase-brand strong {
    font-size: 18px;
}

.sheetbase-nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.sheetbase-nav a {
    color: var(--sheetbase-muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.sheetbase-nav a:hover {
    color: var(--sheetbase-blue);
}

.sheetbase-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--sheetbase-line);
    border-radius: 5px;
    background: #fff;
}

.sheetbase-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--sheetbase-ink);
}

.sheetbase-viewbar {
    display: flex;
    gap: 4px;
    padding: 9px max(24px, calc((100vw - 1320px) / 2));
    overflow-x: auto;
    border-bottom: 1px solid var(--sheetbase-line);
    background: #f9fbfc;
    white-space: nowrap;
}

.sheetbase-viewbar a {
    padding: 7px 11px;
    border-radius: 5px;
    color: var(--sheetbase-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.sheetbase-viewbar a:first-child,
.sheetbase-viewbar a:hover {
    background: var(--sheetbase-blue-soft);
    color: var(--sheetbase-blue);
}

.sheetbase-main {
    width: min(1320px, calc(100% - 40px));
    min-height: 70vh;
    margin: 0 auto;
    padding: 34px 0 72px;
}

.sheetbase-kicker {
    margin: 0 0 8px;
    color: var(--sheetbase-coral);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sheetbase-database-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .7fr);
    gap: 38px;
    align-items: end;
    margin-bottom: 22px;
    padding: 26px;
    border: 1px solid var(--sheetbase-line);
    border-radius: 6px;
    background: var(--sheetbase-surface);
}

.sheetbase-database-head h1,
.sheetbase-saved-view-head h1,
.sheetbase-document-record h1,
.sheetbase-record-header h1 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 38px;
    line-height: 1.12;
}

.sheetbase-database-head p:last-child,
.sheetbase-saved-view-head p,
.sheetbase-document-excerpt,
.sheetbase-record-header p {
    max-width: 780px;
    margin: 10px 0 0;
    color: var(--sheetbase-muted);
}

.sheetbase-search label {
    display: block;
    margin-bottom: 7px;
    color: var(--sheetbase-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sheetbase-search > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.sheetbase-search input {
    min-width: 0;
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--sheetbase-line);
    border-right: 0;
    border-radius: 5px 0 0 5px;
    color: var(--sheetbase-ink);
}

.sheetbase-search button,
.sheetbase-checkout {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid var(--sheetbase-blue);
    border-radius: 0 5px 5px 0;
    background: var(--sheetbase-blue);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.sheetbase-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 28px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid var(--sheetbase-line);
    border-radius: 6px;
    background: var(--sheetbase-surface);
    white-space: nowrap;
}

.sheetbase-tabs a {
    padding: 8px 12px;
    border-radius: 4px;
    color: var(--sheetbase-muted);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.sheetbase-tabs a.is-active,
.sheetbase-tabs a:hover {
    background: var(--sheetbase-blue-soft);
    color: var(--sheetbase-blue);
}

.sheetbase-section {
    margin-top: 36px;
}

.sheetbase-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
}

.sheetbase-section-heading > div > span {
    color: var(--sheetbase-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sheetbase-section-heading h2 {
    margin: 2px 0 0;
    font-size: 23px;
}

.sheetbase-section-heading p {
    max-width: 620px;
    margin: 0;
    color: var(--sheetbase-muted);
    font-size: 13px;
}

.sheetbase-record-list {
    overflow: hidden;
    border: 1px solid var(--sheetbase-line);
    border-radius: 6px;
    background: var(--sheetbase-surface);
}

.sheetbase-record-head,
.sheetbase-product-record {
    display: grid;
    grid-template-columns: 86px minmax(320px, 1.7fr) minmax(130px, .65fr) minmax(150px, .65fr) 118px;
    align-items: center;
}

.sheetbase-record-head {
    min-height: 38px;
    border-bottom: 1px solid var(--sheetbase-line);
    background: #f7f9fb;
    color: var(--sheetbase-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sheetbase-record-head span,
.sheetbase-product-record > span {
    min-width: 0;
    padding: 9px 12px;
    border-right: 1px solid var(--sheetbase-line);
}

.sheetbase-record-head span:last-child,
.sheetbase-product-record > span:last-child {
    border-right: 0;
}

.sheetbase-product-record {
    min-height: 90px;
    border-bottom: 1px solid var(--sheetbase-line);
    text-decoration: none;
}

.sheetbase-product-record:last-child {
    border-bottom: 0;
}

.sheetbase-product-record:hover {
    background: #fbfdfe;
    box-shadow: inset 4px 0 var(--sheetbase-coral);
}

.sheetbase-record-type {
    color: var(--sheetbase-green);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.sheetbase-record-product {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.sheetbase-record-product img {
    width: 78px;
    height: 62px;
    border-radius: 4px;
    object-fit: cover;
    background: #edf1f4;
}

.sheetbase-record-product > span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.sheetbase-record-product strong {
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.3;
}

.sheetbase-record-product small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--sheetbase-muted);
    font-size: 11px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sheetbase-record-category,
.sheetbase-record-price,
.sheetbase-record-open {
    font-size: 12px;
}

.sheetbase-record-price {
    display: grid;
    gap: 2px;
}

.sheetbase-record-price small {
    color: var(--sheetbase-muted);
}

.sheetbase-record-open {
    color: var(--sheetbase-blue);
    font-weight: 800;
}

.sheetbase-empty {
    margin: 0;
    padding: 28px;
    color: var(--sheetbase-muted);
}

.sheetbase-category-records,
.sheetbase-answer-records {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sheetbase-category-records a,
.sheetbase-answer-records a {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--sheetbase-line);
    border-radius: 6px;
    background: var(--sheetbase-surface);
    text-decoration: none;
}

.sheetbase-category-records span,
.sheetbase-answer-records span {
    color: var(--sheetbase-coral);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sheetbase-category-records small,
.sheetbase-answer-records p {
    margin: 0;
    color: var(--sheetbase-muted);
    font-size: 12px;
}

.sheetbase-category-records em {
    margin-top: 5px;
    color: var(--sheetbase-blue);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.sheetbase-article-list,
.sheetbase-related-records {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sheetbase-article-record,
.sheetbase-related-records > a {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--sheetbase-line);
    border-radius: 6px;
    background: var(--sheetbase-surface);
    text-decoration: none;
}

.sheetbase-type-token {
    display: inline-flex;
    width: max-content;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 4px;
    background: #fff0ec;
    color: #a6422f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.sheetbase-article-record > span:nth-child(2) {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.sheetbase-article-record strong {
    overflow-wrap: anywhere;
}

.sheetbase-article-record small,
.sheetbase-related-records small {
    color: var(--sheetbase-muted);
}

.sheetbase-article-record em {
    color: var(--sheetbase-blue);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.sheetbase-saved-views {
    display: flex;
    gap: 8px;
    margin: 18px 0 26px;
    overflow-x: auto;
}

.sheetbase-saved-views a {
    display: grid;
    flex: 0 0 auto;
    gap: 2px;
    padding: 10px 13px;
    border: 1px solid var(--sheetbase-line);
    border-radius: 5px;
    background: var(--sheetbase-surface);
    text-decoration: none;
}

.sheetbase-saved-views span {
    color: var(--sheetbase-muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sheetbase-category-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .55fr);
    gap: 28px;
    margin: 26px 0;
    padding: 22px;
    border: 1px solid var(--sheetbase-line);
    border-radius: 6px;
    background: var(--sheetbase-surface);
}

.sheetbase-category-note h2 {
    margin: 5px 0;
}

.sheetbase-category-note p {
    margin: 0;
    color: var(--sheetbase-muted);
}

.sheetbase-category-note > div > span {
    color: var(--sheetbase-coral);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.sheetbase-category-note dl,
.sheetbase-document-fields {
    margin: 0;
}

.sheetbase-category-note dl div,
.sheetbase-document-fields div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--sheetbase-line);
}

.sheetbase-category-note dt,
.sheetbase-document-fields span {
    color: var(--sheetbase-muted);
    font-size: 11px;
}

.sheetbase-category-note dd {
    margin: 0;
    font-size: 12px;
    font-weight: 750;
}

.sheetbase-saved-view-head {
    padding: 24px;
    border: 1px solid var(--sheetbase-line);
    border-radius: 6px;
    background: var(--sheetbase-surface);
}

.sheetbase-saved-view-head > span,
.sheetbase-record-banner span {
    color: var(--sheetbase-coral);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sheetbase-saved-view-head > a {
    display: inline-block;
    margin-top: 14px;
    color: var(--sheetbase-blue);
    font-size: 13px;
    font-weight: 750;
}

.sheetbase-view-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 22px 0 34px;
    border: 1px solid var(--sheetbase-line);
    background: var(--sheetbase-line);
}

.sheetbase-view-steps div {
    display: grid;
    gap: 5px;
    padding: 15px;
    background: var(--sheetbase-surface);
}

.sheetbase-view-steps span {
    color: var(--sheetbase-coral);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.sheetbase-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    color: var(--sheetbase-muted);
    font-size: 12px;
}

.sheetbase-breadcrumbs a {
    color: var(--sheetbase-blue);
}

.sheetbase-document-record {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid var(--sheetbase-line);
    border-radius: 6px;
    background: var(--sheetbase-surface);
}

.sheetbase-record-banner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sheetbase-line);
}

.sheetbase-record-banner strong {
    color: var(--sheetbase-muted);
    font-size: 11px;
}

.sheetbase-rich-text {
    margin-top: 28px;
    font-size: 17px;
    line-height: 1.75;
}

.sheetbase-rich-text img {
    height: auto;
}

.sheetbase-document-fields {
    margin-top: 24px;
    border-top: 1px solid var(--sheetbase-line);
}

.sheetbase-faq-records {
    border: 1px solid var(--sheetbase-line);
    border-radius: 6px;
    background: var(--sheetbase-surface);
}

.sheetbase-faq-records article {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid var(--sheetbase-line);
}

.sheetbase-faq-records article:last-child {
    border-bottom: 0;
}

.sheetbase-faq-records article > span {
    color: var(--sheetbase-coral);
    font-size: 11px;
    font-weight: 850;
}

.sheetbase-faq-records h2,
.sheetbase-faq-records p {
    margin: 0;
}

.sheetbase-faq-records h2 {
    font-size: 18px;
}

.sheetbase-faq-records p {
    margin-top: 6px;
    color: var(--sheetbase-muted);
}

.sheetbase-record-detail {
    min-width: 0;
}

.sheetbase-record-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: end;
    padding: 26px;
    border: 1px solid var(--sheetbase-line);
    border-radius: 6px 6px 0 0;
    background: var(--sheetbase-surface);
}

.sheetbase-header-price {
    display: grid;
    justify-items: end;
}

.sheetbase-header-price span {
    color: var(--sheetbase-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sheetbase-header-price strong {
    font-size: 28px;
}

.sheetbase-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    gap: 1px;
    border-right: 1px solid var(--sheetbase-line);
    border-bottom: 1px solid var(--sheetbase-line);
    border-left: 1px solid var(--sheetbase-line);
    background: var(--sheetbase-line);
}

.sheetbase-product-gallery,
.sheetbase-buy-panel {
    min-width: 0;
    padding: 24px;
    background: var(--sheetbase-surface);
}

.sheetbase-product-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--sheetbase-line);
    border-radius: 5px;
    background: #eef2f4;
    cursor: zoom-in;
}

.sheetbase-product-stage img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}

.sheetbase-product-stage > span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(23, 50, 77, .9);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.sheetbase-product-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 4px;
    overflow-x: auto;
}

.sheetbase-product-thumbnails button {
    flex: 0 0 90px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 5px;
    background: transparent;
}

.sheetbase-product-thumbnails button.is-active {
    border-color: var(--sheetbase-blue);
}

.sheetbase-product-thumbnails img {
    display: block;
    width: 100%;
    height: 62px;
    border-radius: 3px;
    object-fit: cover;
}

.sheetbase-buy-panel h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.sheetbase-estimate-field {
    display: grid;
    gap: 4px;
    padding: 15px;
    border-radius: 5px;
    background: var(--sheetbase-blue-soft);
}

.sheetbase-estimate-field > span,
.sheetbase-agent-fields legend {
    color: var(--sheetbase-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sheetbase-estimate-field > strong {
    font-size: 26px;
}

.sheetbase-estimate-field small {
    color: var(--sheetbase-muted);
}

.sheetbase-agent-fields {
    margin: 18px 0;
    padding: 0;
    border: 0;
}

.sheetbase-agent-fields legend {
    width: 100%;
    margin-bottom: 5px;
}

.sheetbase-agent-fields label {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--sheetbase-line);
    cursor: pointer;
}

.sheetbase-agent-fields input {
    width: 17px;
    height: 17px;
    accent-color: var(--sheetbase-blue);
}

.sheetbase-checkout {
    width: 100%;
    border-radius: 5px;
}

.sheetbase-buy-panel > p {
    color: var(--sheetbase-muted);
    font-size: 11px;
}

.sheetbase-record-fields {
    margin-top: 34px;
}

.sheetbase-record-fields dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--sheetbase-line);
    border-radius: 6px;
    background: var(--sheetbase-surface);
}

.sheetbase-record-fields dl div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 13px 15px;
    border-right: 1px solid var(--sheetbase-line);
    border-bottom: 1px solid var(--sheetbase-line);
}

.sheetbase-record-fields dt {
    color: var(--sheetbase-muted);
    font-size: 11px;
    font-weight: 750;
}

.sheetbase-record-fields dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 12px;
}

.sheetbase-pagination {
    margin-top: 18px;
}

.sheetbase-pagination nav > div:first-child {
    display: none;
}

.sheetbase-pagination nav > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sheetbase-pagination nav span,
.sheetbase-pagination nav a {
    display: inline-flex;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sheetbase-line);
    border-radius: 4px;
    background: #fff;
    text-decoration: none;
}

.sheetbase-pagination svg {
    width: 16px;
    height: 16px;
}

.sheetbase-lightbox {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 14px;
    align-items: center;
    padding: 56px 24px 24px;
    background: rgba(14, 29, 44, .96);
}

.sheetbase-lightbox[hidden] {
    display: none;
}

.sheetbase-lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 90px);
    justify-self: center;
    object-fit: contain;
}

.sheetbase-lightbox-close,
.sheetbase-lightbox-nav {
    width: 46px;
    height: 46px;
    border: 1px solid #fff;
    border-radius: 5px;
    background: #fff;
    color: var(--sheetbase-ink);
    font-size: 28px;
}

.sheetbase-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.sheetbase-lightbox-open {
    overflow: hidden;
}

.sheetbase-footer {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 30px max(24px, calc((100vw - 1320px) / 2));
    border-top: 1px solid var(--sheetbase-line);
    background: var(--sheetbase-surface);
}

.sheetbase-footer p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--sheetbase-muted);
    font-size: 12px;
}

.sheetbase-footer nav {
    display: flex;
    gap: 16px;
}

@media (max-width: 980px) {
    .sheetbase-record-head,
    .sheetbase-product-record {
        grid-template-columns: 72px minmax(260px, 1.5fr) minmax(120px, .6fr) minmax(140px, .6fr) 100px;
    }

    .sheetbase-category-records,
    .sheetbase-answer-records {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sheetbase-detail-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
    }
}

@media (max-width: 760px) {
    .sheetbase-header {
        min-height: 62px;
        padding: 9px 14px;
    }

    .sheetbase-nav-toggle {
        display: block;
    }

    .sheetbase-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 8px 14px 14px;
        border-bottom: 1px solid var(--sheetbase-line);
        background: var(--sheetbase-surface);
    }

    .sheetbase-header.is-open .sheetbase-nav {
        display: flex;
    }

    .sheetbase-nav a {
        padding: 11px 0;
        border-bottom: 1px solid var(--sheetbase-line);
    }

    .sheetbase-viewbar {
        padding: 7px 14px;
    }

    .sheetbase-main {
        width: min(100% - 24px, 1320px);
        padding: 24px 0 50px;
    }

    .sheetbase-database-head,
    .sheetbase-category-note,
    .sheetbase-record-header,
    .sheetbase-detail-layout,
    .sheetbase-record-fields dl,
    .sheetbase-category-records,
    .sheetbase-answer-records,
    .sheetbase-article-list,
    .sheetbase-related-records,
    .sheetbase-view-steps {
        grid-template-columns: 1fr;
    }

    .sheetbase-database-head {
        gap: 20px;
        padding: 20px;
    }

    .sheetbase-database-head h1,
    .sheetbase-saved-view-head h1,
    .sheetbase-document-record h1,
    .sheetbase-record-header h1 {
        font-size: 30px;
    }

    .sheetbase-search > div {
        grid-template-columns: 1fr;
    }

    .sheetbase-search input {
        border-right: 1px solid var(--sheetbase-line);
        border-bottom: 0;
        border-radius: 5px 5px 0 0;
    }

    .sheetbase-search button {
        border-radius: 0 0 5px 5px;
    }

    .sheetbase-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .sheetbase-record-head {
        display: none;
    }

    .sheetbase-record-list {
        display: grid;
        gap: 10px;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .sheetbase-product-record {
        display: grid;
        grid-template-columns: 1fr auto;
        min-height: 0;
        padding: 13px;
        border: 1px solid var(--sheetbase-line);
        border-radius: 6px;
        background: var(--sheetbase-surface);
    }

    .sheetbase-product-record > span {
        padding: 0;
        border-right: 0;
    }

    .sheetbase-record-type {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 8px;
    }

    .sheetbase-record-product {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: 86px minmax(0, 1fr);
        margin-bottom: 10px;
    }

    .sheetbase-record-product img {
        width: 86px;
        height: 72px;
    }

    .sheetbase-record-category {
        grid-column: 1;
        grid-row: 3;
        color: var(--sheetbase-muted);
    }

    .sheetbase-record-price {
        grid-column: 2;
        grid-row: 1;
        justify-items: end;
    }

    .sheetbase-record-open {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
    }

    .sheetbase-article-record,
    .sheetbase-related-records > a {
        grid-template-columns: 66px minmax(0, 1fr);
    }

    .sheetbase-article-record em {
        grid-column: 2;
    }

    .sheetbase-record-header {
        align-items: start;
    }

    .sheetbase-header-price {
        justify-items: start;
    }

    .sheetbase-detail-layout {
        gap: 1px;
    }

    .sheetbase-product-gallery {
        order: 1;
    }

    .sheetbase-buy-panel {
        order: 2;
    }

    .sheetbase-record-fields dl div {
        grid-template-columns: 108px minmax(0, 1fr);
        border-right: 0;
    }

    .sheetbase-document-record {
        padding: 20px;
    }

    .sheetbase-faq-records article {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .sheetbase-lightbox {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 3px;
        padding: 56px 3px 12px;
    }

    .sheetbase-lightbox-close,
    .sheetbase-lightbox-nav {
        width: 38px;
        height: 42px;
    }

    .sheetbase-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px 14px;
    }
}

@media (max-width: 390px) {
    .sheetbase-main {
        width: calc(100% - 18px);
    }

    .sheetbase-brand strong {
        font-size: 15px;
    }

    .sheetbase-product-record {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .sheetbase-record-product {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .sheetbase-record-product img {
        width: 74px;
        height: 66px;
    }
}
