/* ==========================================================================
   芯杉科技 / ChipMetaSequoia — site-wide business theme
   Loaded LAST in every page's <head> (templates/biz_css.html) so these rules
   win over the legacy per-page <style> blocks. Only overrides what it needs:
   Bootstrap 5.3 keeps its grid, components and JS behaviour.
   Palette: corporate navy + slate; the logo keeps its own red/green accents.
   ========================================================================== */

:root {
    --biz-navy: #0f3d5c;
    --biz-navy-dark: #082a41;
    --biz-navy-tint: #eef3f7;
    --biz-accent: #17679c;
    --biz-ink: #1f2d3a;
    --biz-muted: #66788a;
    --biz-line: #dde4eb;
    --biz-line-strong: #c6d2dd;
    --biz-surface: #f7f9fb;
    --biz-radius: 6px;
    --biz-shadow: 0 1px 2px rgba(16, 24, 40, .05);

    /* Bootstrap overrides (5.3 honours these for text/bg/border/link utilities) */
    --bs-primary: #0f3d5c;
    --bs-primary-rgb: 15, 61, 92;
    --bs-body-color: #1f2d3a;
    --bs-body-bg: #ffffff;
    --bs-link-color: #17679c;
    --bs-link-hover-color: #0f3d5c;
    --bs-border-color: #dde4eb;
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body {
    color: var(--biz-ink);
    font-family: var(--bs-body-font-family);
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    color: #12324f;
    font-weight: 600;
    line-height: 1.35;
}

h1 { font-size: 1.75rem; letter-spacing: .5px; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: .9rem; }

a { color: var(--biz-accent); text-decoration: none; }
a:hover { color: var(--biz-navy); text-decoration: underline; }

hr { border-color: var(--biz-line); opacity: 1; }

img { max-width: 100%; height: auto; }

.container { padding-top: .5rem; }

/* ---------------------------------------------------------------- header -- */
.site-header {
    background: #fff;
    border-top: 3px solid var(--biz-navy);
    border-bottom: 1px solid var(--biz-line);
    box-shadow: var(--biz-shadow);
}

.site-header .navbar { padding: .35rem 0; }

.site-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-right: 1.5rem;
    padding: 0;
}

/* wide mark-only logo (logo_47x25.png, ~1.9:1) + 芯杉科技 wordmark */
.site-header .navbar-brand img { height: 30px; width: auto; display: block; }

.site-header .navbar-brand .brand-cn {
    color: var(--biz-navy);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.1;
    white-space: nowrap;
}

.site-header .navbar-nav .nav-link {
    color: #33475b;
    font-size: 15px;
    padding: .55rem .95rem;
    border-bottom: 2px solid transparent;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus {
    color: var(--biz-navy);
    background: var(--biz-navy-tint);
}

.site-header .navbar-nav .nav-link.active {
    color: var(--biz-navy);
    font-weight: 600;
    border-bottom-color: var(--biz-navy);
}

.site-header .dropdown-menu {
    border: 1px solid var(--biz-line);
    border-radius: var(--biz-radius);
    box-shadow: 0 6px 18px rgba(16, 24, 40, .10);
    font-size: 14px;
    padding: .35rem 0;
}

.site-header .dropdown-item { padding: .45rem 1rem; }
.site-header .dropdown-item:hover { background: var(--biz-navy-tint); color: var(--biz-navy); }

/* mobile header */
.site-header .m-navbar { padding: .4rem 0; border-bottom: 1px solid var(--biz-line); }
.site-header .m-navbar a { color: #33475b; }
.site-header .m-navbar .m-brand img { height: 26px; width: auto; }
/* the mobile bar is not a .navbar, so Bootstrap's toggler icon variable is unset
   there — draw the "hamburger" explicitly (Bootstrap's own svg, inline) */
.site-header .m-navbar .navbar-toggler {
    border: 1px solid var(--biz-line-strong);
    border-radius: 4px;
    padding: .3rem .5rem;
    line-height: 1;
}
.site-header .m-navbar .navbar-toggler-icon {
    width: 1.4rem;
    height: 1.4rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833,55,75,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}
.site-header .m-menu .list-group-item {
    border: 0;
    border-bottom: 1px solid var(--biz-line);
    font-size: 15px;
    padding: .7rem 1rem;
}
.site-header .m-menu .list-group-item a { color: #33475b; display: block; }
.site-header .m-menu .list-group-item.active { background: var(--biz-navy-tint); }
.site-header .m-menu .list-group-item.active a { color: var(--biz-navy); font-weight: 600; }

/* ------------------------------------------------------------- page head -- */
.page-head {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f7 100%);
    border-left: 4px solid var(--biz-navy);
    border-radius: var(--biz-radius);
    padding: 16px 20px;
    margin: 1.1rem 0 1.4rem;
}

.page-head h1, .page-head h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--biz-navy);
    letter-spacing: .5px;
}

.page-head .sub {
    color: var(--biz-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* ---------------------------------------------------------------- panels -- */
.panel, .lic-panel, .box {
    background: #fff;
    border: 1px solid var(--biz-line);
    border-radius: var(--biz-radius);
    box-shadow: var(--biz-shadow);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.panel > h3:first-child, .panel > h4:first-child,
.lic-panel > h4:first-child, .box > b:first-child {
    display: block;
    border-bottom: 1px solid var(--biz-line);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.panel h4, .lic-panel h4 {
    font-size: 16px;
    color: var(--biz-navy);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.box { background: var(--biz-surface); }
.box ul { padding-left: 1.1rem; margin-bottom: 0; }
.box li { font-size: 13.5px; margin-bottom: 5px; }

.toolbar, .tool {
    background: #fff;
    border: 1px solid var(--biz-line);
    border-radius: var(--biz-radius);
    box-shadow: var(--biz-shadow);
    padding: 10px 12px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.toolbar .divider {
    width: 1px;
    height: 22px;
    background: var(--biz-line);
    margin: 0 4px;
}

/* form rows used by the admin pages */
.lbl {
    display: inline-block;
    width: 110px;
    color: #33475b;
    font-weight: 600;
    font-size: 13.5px;
    vertical-align: middle;
}

.frow { margin: 6px 0; }

.frow input[type=text], .frow input[type=password], .frow select { width: 360px; }

.hint, .mod-hint, .sec-hint, .dim {
    color: var(--biz-muted);
    font-size: 12.5px;
}

.mono {
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 12.5px;
    background: #f1f5f9;
    border: 1px solid var(--biz-line);
    border-radius: 3px;
    padding: 1px 4px;
    word-break: break-all;
}

.module-grid { display: flex; flex-wrap: wrap; gap: 12px; }

.module-card {
    flex: 1 1 300px;
    background: #fff;
    border: 1px solid var(--biz-line);
    border-left: 3px solid var(--biz-navy);
    border-radius: var(--biz-radius);
    box-shadow: var(--biz-shadow);
    padding: 14px 16px;
    transition: box-shadow .15s ease, transform .15s ease;
}

.module-card:hover { box-shadow: 0 4px 14px rgba(16, 24, 40, .10); transform: translateY(-1px); }
.module-card .m-title { font-size: 15px; font-weight: 600; color: var(--biz-navy); }
.module-card .m-desc { color: var(--biz-muted); font-size: 12.5px; margin: 3px 0 10px; }

/* ---------------------------------------------------------------- tables -- */
.lic-tbl, .pkg-tbl, .dl-tbl, table.table-biz {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    background: #fff;
}

.lic-tbl th, .pkg-tbl th, .dl-tbl th, table.table-biz th {
    background: #f2f5f9;
    color: #33475b;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    border: 0;
    border-bottom: 2px solid var(--biz-line-strong);
    padding: 8px 10px;
}

.lic-tbl td, .pkg-tbl td, .dl-tbl td, table.table-biz td {
    border: 0;
    border-bottom: 1px solid var(--biz-line);
    padding: 8px 10px;
    vertical-align: top;
}

.lic-tbl tr:hover td, .pkg-tbl tr:hover td, .dl-tbl tr:hover td,
table.table-biz tr:hover td { background: #fafcfe; }

.pkg-tbl input[type=text] { padding: 3px 5px; font-size: 12.5px; }
.pkg-tbl .dim, .pkg-tbl .pkg-md5 { max-width: 150px; overflow-wrap: anywhere; }

.lic-scroll { overflow-x: auto; }

/* status pills */
.st-sent, .st-pending, .st-sending, .st-failed, .st-del,
.pkg-ok, .pkg-busy, .pkg-none, .ok, .miss, .busy {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.st-sent, .pkg-ok, .ok { color: #0f6b46; background: #e7f5ee; }
.st-pending, .st-sending, .pkg-busy, .busy { color: #96590a; background: #fdf3e3; }
.st-failed, .pkg-none, .miss { color: #a5271d; background: #fdecea; }
.st-del, .st-del td { color: #8a97a5; }
.st-del td { background: #f6f8fa; }

.err { color: #a5271d; font-size: 12px; word-break: break-all; }

/* --------------------------------------------------------------- buttons -- */
.btn {
    --bs-btn-border-radius: 4px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    padding: .34rem .85rem;
}

.btn-sm { font-size: 12.5px; padding: .22rem .6rem; }

.btn-primary {
    --bs-btn-bg: var(--biz-navy);
    --bs-btn-border-color: var(--biz-navy);
    --bs-btn-hover-bg: var(--biz-navy-dark);
    --bs-btn-hover-border-color: var(--biz-navy-dark);
    --bs-btn-active-bg: var(--biz-navy-dark);
    --bs-btn-active-border-color: var(--biz-navy-dark);
    --bs-btn-disabled-bg: #7b93a6;
    --bs-btn-disabled-border-color: #7b93a6;
}

/* the admin pages use btn-success as the primary action colour */
.btn-success {
    --bs-btn-bg: var(--biz-navy);
    --bs-btn-border-color: var(--biz-navy);
    --bs-btn-hover-bg: var(--biz-navy-dark);
    --bs-btn-hover-border-color: var(--biz-navy-dark);
    --bs-btn-active-bg: var(--biz-navy-dark);
    --bs-btn-active-border-color: var(--biz-navy-dark);
    --bs-btn-disabled-bg: #7b93a6;
    --bs-btn-disabled-border-color: #7b93a6;
}

.btn-outline-primary, .btn-outline-success {
    --bs-btn-color: var(--biz-navy);
    --bs-btn-border-color: var(--biz-navy);
    --bs-btn-hover-bg: var(--biz-navy);
    --bs-btn-hover-border-color: var(--biz-navy);
    --bs-btn-active-bg: var(--biz-navy-dark);
    --bs-btn-active-border-color: var(--biz-navy-dark);
}

.btn-outline-secondary {
    --bs-btn-color: #4a5b6b;
    --bs-btn-border-color: var(--biz-line-strong);
    --bs-btn-hover-bg: #eef2f6;
    --bs-btn-hover-border-color: var(--biz-line-strong);
    --bs-btn-hover-color: var(--biz-navy);
    --bs-btn-active-bg: #e4eaf0;
    --bs-btn-active-color: var(--biz-navy);
}

.btn-outline-danger {
    --bs-btn-color: #a5271d;
    --bs-btn-border-color: #e6b7b2;
    --bs-btn-hover-bg: #b3261e;
    --bs-btn-hover-border-color: #b3261e;
}

.btn-light {
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-color: var(--biz-navy);
    --bs-btn-hover-bg: #eef3f7;
    --bs-btn-hover-border-color: #eef3f7;
    --bs-btn-hover-color: var(--biz-navy);
    font-weight: 600;
}

.btn-warning { --bs-btn-color: #ffffff; --bs-btn-bg: #b5730c; --bs-btn-border-color: #b5730c;
    --bs-btn-hover-bg: #96600a; --bs-btn-hover-border-color: #96600a; }

/* ----------------------------------------------------------------- forms -- */
.form-control, .form-select, textarea.form-control,
.frow input[type=text], .frow input[type=password], .frow select, .tool input, .tool select {
    border: 1px solid var(--biz-line-strong);
    border-radius: 4px;
    padding: .32rem .55rem;
    font-size: 14px;
    color: var(--biz-ink);
    background-color: #fff;
}

.form-control:focus, .form-select:focus,
.frow input:focus, .frow select:focus {
    border-color: var(--biz-accent);
    box-shadow: 0 0 0 3px rgba(23, 103, 156, .12);
    outline: 0;
}

.form-control-sm { font-size: 13px; padding: .2rem .45rem; }
.form-label { font-size: 13.5px; font-weight: 600; color: #33475b; margin-bottom: .25rem; }

/* stacked form field (企业信息 / 下载软件管理) */
.fld { margin-bottom: 10px; }
.fld .form-control, .fld .form-select { max-width: 660px; }
.fld textarea.form-control { max-width: 660px; }

/* ------------------------------------------------------- alerts / modals -- */
.alert { border-radius: var(--biz-radius); font-size: 14px; border: 1px solid transparent; }
.alert-success { background: #e7f5ee; color: #0f6b46; border-color: #bfe3d1; }
.alert-danger { background: #fdecea; color: #a5271d; border-color: #f3c9c5; }
.alert-info { background: var(--biz-navy-tint); color: var(--biz-navy); border-color: #cfe0ec; }

.modal-content { border: 0; border-radius: var(--biz-radius); box-shadow: 0 12px 32px rgba(16, 24, 40, .18); }
.modal-header { background: var(--biz-navy); color: #fff; border-bottom: 0; border-radius: var(--biz-radius) var(--biz-radius) 0 0; }
.modal-header .modal-title { color: #fff; font-size: 16px; }
.modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }

/* ---------------------------------------------------------------- footer -- */
.site-footer {
    background: var(--biz-navy-dark);
    color: #c9d6e2;
    margin-top: 36px;
    padding: 34px 0 18px;
    font-size: 13.5px;
}

.site-footer a { color: #dfe8f1; }
.site-footer a:hover { color: #fff; }
.site-footer .f-brand { color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.site-footer .f-sub { color: #8fa6bb; font-size: 12.5px; margin-top: 2px; }
.site-footer h6 { color: #fff; font-size: 13.5px; font-weight: 600; margin-bottom: 10px; letter-spacing: .5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 5px; }
.site-footer .f-qr img { height: 104px; width: auto; background: #fff; padding: 4px; border-radius: 4px; }
.site-footer .f-qr-cap { color: #8fa6bb; font-size: 12px; margin-top: 4px; }
.site-footer .f-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 24px;
    padding-top: 14px;
    color: #8fa6bb;
    font-size: 12.5px;
}
.site-footer .f-bottom img { vertical-align: -2px; }

/* ------------------------------------------------------------ marketing -- */
.banner {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 380px; padding: 36px 16px; text-align: center; color: #fff;
    background: linear-gradient(135deg, #082a41 0%, #0f3d5c 60%, #17679c 100%);
}
.banner-cn { font-size: 2.1rem; font-weight: 600; letter-spacing: 3px; }
.banner-en { margin-top: .6rem; font-size: 1rem; opacity: .9; letter-spacing: 1px; }
.banner .btn-light { margin-top: 1.2rem; }
.ban-eda { background: linear-gradient(135deg, #082a41 0%, #0f3d5c 60%, #17679c 100%); }
.ban-ip  { background: linear-gradient(135deg, #082a41 0%, #10506f 60%, #12839a 100%); }
.ban-srv { background: linear-gradient(135deg, #082a41 0%, #23356b 60%, #4056a8 100%); }

.hero-strip { width: 100%; background: #082a41; }
.hero-strip img { width: 100%; max-height: 400px; object-fit: cover; display: block; }

.home-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--biz-line);
    border-top: 3px solid var(--biz-navy);
    border-radius: var(--biz-radius);
    box-shadow: var(--biz-shadow);
    padding: 18px 20px;
}
.home-card .card-title { font-weight: 600; color: var(--biz-navy); font-size: 15.5px; margin-bottom: .5rem; }
.home-card p { font-size: 14px; color: #33475b; }
.section-title {
    text-align: center;
    margin: 1.6rem 0 1rem;
    font-size: 1.15rem;
    color: var(--biz-navy);
    font-weight: 600;
}
.section-title span { border-bottom: 2px solid var(--biz-navy); padding-bottom: 6px; }
.cta-mail { color: var(--biz-muted); font-size: 14px; }

/* home page slogan (满足用户是基础 / 超越才能有惊喜) */
.slogan {
    max-width: 880px;
    margin: 2.4rem auto 1.8rem;
    padding: 30px 24px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
    border: 1px solid var(--biz-line);
    border-top: 3px solid var(--biz-navy);
    border-radius: var(--biz-radius);
}
.slogan p {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: .26em;
    text-indent: .26em;          /* balances the tracking on a centred line */
    color: var(--biz-navy);
}
.slogan p.slogan-2 { color: var(--biz-accent); }
.slogan .slogan-mark {
    width: 48px;
    height: 2px;
    margin: 16px auto;
    background: var(--biz-line-strong);
    border-radius: 2px;
}

#md { color: var(--biz-ink); }
#md h1, #md h2 { border-bottom: 1px solid var(--biz-line); padding-bottom: .35rem; margin-top: 1.6rem; }
#md table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 1rem 0; }
#md th, #md td { border: 1px solid var(--biz-line); padding: 6px 10px; }
#md th { background: #f2f5f9; }
#md code { background: #f1f5f9; border: 1px solid var(--biz-line); border-radius: 3px;
    padding: 1px 4px; color: #a5271d; font-size: 12.5px; }
#md pre { background: #0f2233; color: #e6edf3; padding: 12px 14px; border-radius: var(--biz-radius);
    overflow-x: auto; font-size: 12.5px; }
#md pre code { background: transparent; border: 0; color: inherit; padding: 0; }
#md blockquote { border-left: 3px solid var(--biz-line-strong); margin: 1rem 0; padding: .2rem 0 .2rem 1rem;
    color: var(--biz-muted); }

.breadcrumb-bar { color: var(--biz-muted); font-size: 13px; margin: .8rem 0 1rem; }
.breadcrumb-bar a { color: var(--biz-muted); }
.breadcrumb-bar a:hover { color: var(--biz-navy); }

/* tabs (IP 产品) */
.nav-tabs { border-bottom: 1px solid var(--biz-line); }
.nav-tabs .nav-link {
    color: #4a5b6b;
    font-size: 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: .5rem 1rem;
    border-radius: 0;
}
.nav-tabs .nav-link:hover { color: var(--biz-navy); border-bottom-color: var(--biz-line-strong); }
.nav-tabs .nav-link.active {
    color: var(--biz-navy);
    font-weight: 600;
    background: transparent;
    border-bottom-color: var(--biz-navy);
}
.tab-content { padding-top: 1rem; }
.tab-content ul { padding-left: 1.1rem; }
.tab-content li { margin-bottom: .25rem; }

/* list pages */
.list-group-item { border-color: var(--biz-line); font-size: 14px; }
.list-group-item-action:hover { background: var(--biz-navy-tint); color: var(--biz-navy); }
.list-id { color: var(--biz-muted); font-size: 12.5px; margin-right: 8px; }

.frow .hint { margin-left: 6px; }

/* login */
.login-card { max-width: 400px; margin: 60px auto; border: 1px solid var(--biz-line);
    border-top: 3px solid var(--biz-navy); border-radius: var(--biz-radius);
    box-shadow: 0 6px 24px rgba(16, 24, 40, .08); }

/* ------------------------------------------- status lines and small utils -- */
#lic_msg, #ll_status_bar, #pkg_msg { margin: 8px 0; min-height: 22px; font-size: 13.5px; }

.pkg-md5, .chk { font-size: 11.5px; color: var(--biz-muted); word-break: break-all; }
.chk { max-width: 260px; margin-top: 4px; }
.chk .ok { color: #0f6b46; }
.chk .miss { color: #a5271d; }
.chk .busy { color: #96590a; }

/* software-download manager: file rows */
#dl_file_rows { margin: 6px 0; }
.frow .fp { width: 160px; }
.frow .f-old { margin-left: 8px; color: var(--biz-muted); }
.frow .f-old label { font-weight: normal; }
.frow input[type=file] { margin-left: 8px; }
.frow { padding: 4px 0; }
.btnx { margin-right: 6px; }

@media (max-width: 576px) {
    .banner { min-height: 220px; padding: 22px 40px; }   /* side padding keeps the subtitle clear of the carousel arrows */
    .banner-cn { font-size: 1.5rem; }
    .banner-en { font-size: .9rem; }
    .lbl { width: 100%; display: block; margin-bottom: 2px; }
    .frow input[type=text], .frow input[type=password], .frow select,
    .frow input[type=file], .frow .fp { width: 100%; max-width: 100%; margin-left: 0; }
    .frow .hint { margin-left: 0; display: block; }
    .page-head h1, .page-head h2 { font-size: 1.2rem; }
    /* home page slogan on narrow screens */
    .slogan { padding: 20px 14px; margin: 1.6rem auto 1.2rem; }
    .slogan p { font-size: 1.2rem; letter-spacing: .16em; text-indent: .16em; }
    .slogan .slogan-mark { margin: 11px auto; }
    .lic-panel, .panel, .box { padding: 12px; }
    .toolbar, .tool { padding: 8px; }
    .lic-tbl, .pkg-tbl, .dl-tbl { font-size: 12.5px; }
    .lic-tbl th, .lic-tbl td, .pkg-tbl th, .pkg-tbl td { padding: 6px 7px; }
    /* the admin forms carry inline widths (style="width:320px") — inline wins over
       plain CSS, so the narrow-screen override has to use !important */
    .frow input, .frow textarea, .frow select { width: 100% !important; max-width: 100% !important; }
}

/* ------------------------------------------- software screenshots -- */
.shot-note { margin-left: 8px; font-size: 12.5px; color: var(--biz-muted); }
.shot-cnt { font-size: 12.5px; color: var(--biz-muted); font-weight: normal; }

#dl_shot_old, #dl_shot_new { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0 0; }
#dl_shot_new:empty { margin: 0; }
#dl_shot_cnt { font-size: 12.5px; color: var(--biz-muted); margin-top: 6px; }

.shot-cell { position: relative; width: 152px; padding: 6px; background: #fff;
    border: 1px solid var(--biz-line); border-radius: var(--biz-radius); box-shadow: var(--biz-shadow); }
.shot-cell.s-del-on { opacity: .45; }
.shot-cell .shot-thumb { height: 86px; display: flex; align-items: center; justify-content: center;
    background: var(--biz-surface); overflow: hidden; }
.shot-cell .shot-thumb img { max-width: 100%; max-height: 86px; display: block; }
.shot-cell .shot-name { margin-top: 4px; font-size: 11.5px; color: var(--biz-muted); word-break: break-all; }
.shot-cell .shot-del { display: block; margin: 2px 0 0 0; font-size: 12px; font-weight: normal; }
.shot-cell.s-new { border-color: var(--biz-accent); }
.shot-cell .shot-x { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; padding: 0;
    line-height: 17px; text-align: center; font-size: 14px; color: #a5271d; background: #fff;
    border: 1px solid var(--biz-line-strong); border-radius: 50%; cursor: pointer; }
.shot-cell .shot-x:hover { background: #a5271d; color: #fff; border-color: #a5271d; }

/* public detail page: gallery + light box */
.shot-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.shot-item { display: block; padding: 4px; background: #fff; border: 1px solid var(--biz-line);
    border-radius: var(--biz-radius); box-shadow: var(--biz-shadow); }
.shot-item img { display: block; width: 100%; height: 132px; object-fit: contain; }
.shot-item:hover { border-color: var(--biz-accent); text-decoration: none; }

/* the light box (#shot_lb) carries its own <style> inside templates/download_soft.html
   on purpose -- it must still work for a visitor whose browser holds a cached copy of
   this file from before the feature existed (Apache sends no Cache-Control for /static) */

@media (max-width: 576px) {
    .shot-cell { width: calc(50% - 6px); }
    .shot-item img { height: 104px; }
}
