﻿html { font-size: 16px; min-height: 100%; }
body { margin: 0; min-height: 100vh; color: #172a35; background: #f7f9f8; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.navbar { min-height: 76px; padding: 0 5vw; background: rgba(255,255,255,.92) !important; }
.navbar-brand { font-size: 1.05rem; font-weight: 750; letter-spacing: -.03em; color: #163d3b !important; }
.brand-symbol { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 7px; color: white; border-radius: 9px; background: #176f65; }
.navbar .container-fluid { max-width: 1320px; }
.navbar-nav .nav-link { color: #60716f !important; }
.navbar-nav .nav-link:hover { color: #176f65 !important; }
.hero-panel { min-height: 510px; margin: 38px 0 28px; padding: clamp(32px, 6vw, 78px); display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(0, .9fr); align-items: center; gap: 48px; border: 1px solid #e6eeea; border-radius: 24px; background: linear-gradient(120deg, #fff 45%, #edf6f1); overflow: hidden; }
.eyebrow { margin-bottom: 20px; color: #287e6c; font-size: .73rem; font-weight: 750; letter-spacing: .16em; }
.hero-copy h1 { margin: 0; color: #173c3b; font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1.03; font-weight: 760; letter-spacing: -.065em; }
.hero-copy h1 span { color: #27836f; }
.hero-description { max-width: 540px; margin: 24px 0 28px; color: #657775; font-size: 1.08rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { border-radius: 9px; font-weight: 650; }
.btn-primary { padding: 12px 19px; border-color: #176f65; background: #176f65; }
.btn-primary:hover { border-color: #12594f; background: #12594f; }
.btn-outline-secondary { padding: 12px 19px; color: #31514d; border-color: #cad9d3; }
.setup-note { margin: 20px 0 0; color: #82928e; font-size: .83rem; }
.hero-visual { position: relative; min-height: 340px; display: grid; place-items: center; }
.visual-orbit { position: absolute; width: 310px; height: 310px; border: 1px solid #d5e7dd; border-radius: 50%; }
.orbit-two { width: 390px; height: 390px; border-color: #e4eee8; }
.visual-card { z-index: 1; width: min(100%, 390px); padding: 22px; border: 1px solid #e7eeea; border-radius: 16px; background: #fff; box-shadow: 0 25px 70px #244c3c18; transform: rotate(-2deg); }
.visual-card-top { display: flex; align-items: center; gap: 8px; color: #324c48; font-size: .84rem; font-weight: 700; }
.earth-globe {
    position: relative;
    justify-self: center;
    width: clamp(52px, 5vw, 64px);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: #388fa3;
    transform: rotate(-15deg);
    box-shadow: 0 2px 5px #244c3c26;
}
.earth-globe::before, .earth-globe::after { content: ""; position: absolute; inset: 0; }
.earth-globe::before {
    width: 300%;
    background: url("../images/earth-map.png") 49% center / 66.6667% 100% repeat-x;
    animation: earth-turn 14s linear infinite;
}
.earth-globe::after {
    border-radius: inherit;
    background: radial-gradient(circle at 30% 25%, #fff5, transparent 46%, #0c465b35 70%, #0735499c 100%);
}
@keyframes earth-turn { to { transform: translateX(-66.6667%); } }
@media (prefers-reduced-motion: reduce) { .earth-globe::before { animation: none; } }
.visual-date { margin-left: auto; color: #99a8a2; font-size: .62rem; letter-spacing: .1em; }
.visual-chart { height: 145px; margin: 24px 0 16px; display: flex; align-items: end; justify-content: space-around; border-bottom: 1px solid #e9efec; background: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, #eef3f0 36px); }
.visual-chart span { width: 9px; border-radius: 6px 6px 0 0; background: #62af92; }
.visual-chart span:nth-child(3n) { background: #e3aa65; }
.visual-chart span:nth-child(1) { height: 37%; } .visual-chart span:nth-child(2) { height: 54%; } .visual-chart span:nth-child(3) { height: 45%; } .visual-chart span:nth-child(4) { height: 68%; } .visual-chart span:nth-child(5) { height: 57%; } .visual-chart span:nth-child(6) { height: 78%; } .visual-chart span:nth-child(7) { height: 61%; } .visual-chart span:nth-child(8) { height: 70%; } .visual-chart span:nth-child(9) { height: 53%; } .visual-chart span:nth-child(10) { height: 83%; } .visual-chart span:nth-child(11) { height: 68%; } .visual-chart span:nth-child(12) { height: 91%; }
.visual-legend { display: flex; gap: 18px; color: #788984; font-size: .73rem; }
.visual-legend i { width: 7px; height: 7px; margin-right: 6px; display: inline-block; border-radius: 50%; background: #62af92; }
.visual-legend .legend-b { background: #e3aa65; }
.visual-badge { position: absolute; z-index: 2; right: 0; bottom: 20px; padding: 11px 15px; border: 1px solid #e5eee9; border-radius: 10px; background: white; box-shadow: 0 12px 35px #244c3c12; color: #41645b; font-size: .8rem; font-weight: 650; }
.visual-badge span { margin-right: 7px; color: #25866e; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 22px 4px 38px; }
.feature-row article { display: flex; gap: 16px; padding: 16px 10px; }
.feature-number { color: #378875; font-size: .76rem; font-weight: 750; letter-spacing: .08em; }
.feature-row h2 { margin: 0 0 5px; color: #264541; font-size: 1rem; font-weight: 700; }
.feature-row p { margin: 0; color: #768681; font-size: .87rem; line-height: 1.55; }
footer { padding: 16px 0; background: #fff; border-color: #e8eeeb !important; font-size: .82rem; }
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder { color: var(--bs-secondary-color); text-align: end; }
@media (max-width: 800px) { .hero-panel { grid-template-columns: 1fr; gap: 18px; } .hero-visual { min-height: 330px; } .visual-orbit { width: 260px; height: 260px; } .orbit-two { width: 320px; height: 320px; } .feature-row { grid-template-columns: 1fr; gap: 4px; } }
@media (max-width: 480px) { .navbar { padding: 0 14px; } .hero-panel { margin: 20px 0; padding: 28px 20px; } .hero-actions .btn { width: 100%; } .hero-visual { min-height: 290px; } .visual-badge { right: -5px; } }
.profile-save-confirmation { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 17px 20px; color: #23634f; border: 1px solid #b9ddc9; border-radius: 13px; background: #edf8f1; box-shadow: 0 8px 24px #244c3c0a; }
.confirmation-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; color: white; border-radius: 50%; background: #318263; font-weight: 800; }
.profile-save-confirmation strong { display: block; font-size: .92rem; }
.profile-save-confirmation p { margin: 3px 0 0; color: #547a68; font-size: .82rem; }
.profile-page, .targets-page, .identity-page { max-width: 1320px; margin: 18px auto 28px; color: #203c36; font-size: .91rem; }
.profile-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.profile-heading .eyebrow { margin: 0 0 6px; font-size: .67rem; }
.profile-heading h1, .targets-heading h1, .hero-copy h1, .identity-page h1 { margin: 0; color: #173c3b; font-size: 1.9rem; line-height: 1.12; font-weight: 720; letter-spacing: -.045em; }
.profile-heading p:last-child { margin: 6px 0 0; color: #71817d; font-size: .86rem; }
.profile-badge { display: flex; align-items: center; gap: 10px; padding: 9px 13px; color: #287e6c; border: 1px solid #e1ece6; border-radius: 10px; background: #fff; }
.profile-badge > span { font-size: 1.35rem; }
.profile-badge div { display: grid; gap: 2px; }
.profile-badge strong { color: #36534a; font-size: .78rem; }
.profile-badge small { color: #85938e; font-size: .7rem; }
.profile-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(285px, .82fr); grid-template-areas: "validation validation" "main side" "actions actions"; align-items: start; gap: 12px 16px; }
.profile-main { grid-area: main; display: grid; gap: 10px; min-width: 0; }
.profile-side { grid-area: side; display: grid; gap: 10px; min-width: 0; }
.profile-card, .targets-card, .hero-panel, .feature-row article, .identity-page .row > div:has(form) { padding: 14px 16px; border: 1px solid #e3ebe7; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px #244c3c07; }
.card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.section-icon { display: grid; place-items: center; flex: 0 0 28px; height: 28px; color: #287e6c; border-radius: 8px; background: #eaf5ef; font-size: .68rem; font-weight: 750; }
.card-heading h2, .targets-card-heading h2, .accounts-page h3, .identity-page h2 { margin: 0; color: #28443e; font-size: 1.03rem; line-height: 1.2; font-weight: 700; }
.card-heading p, .targets-card-heading p { margin: 2px 0 0; color: #84928d; font-size: .74rem; line-height: 1.3; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 14px; }
.field { display: grid; grid-template-columns: minmax(88px, .9fr) minmax(0, 1.1fr); align-items: center; gap: 8px; min-width: 0; margin: 0; color: #49615a; font-size: .77rem; line-height: 1.25; }
.field > span { min-width: 0; }
.field > span small { display: block; margin-top: 2px; color: #98a49f; font-size: .66rem; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select { width: 100%; min-width: 0; height: 34px; padding: 5px 8px; color: #304c43; border: 1px solid #dce7e1; border-radius: 7px; background: #fff; font: inherit; font-size: .79rem; }
.field input:focus, .field select:focus { border-color: #5da18d; outline: 3px solid #5da18d24; }
.instrument-list { display: flex; flex-wrap: wrap; gap: 7px; }
.instrument-list label { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 9px; color: #49615a; border: 1px solid #e6eeea; border-radius: 7px; background: #f9fbfa; font-size: .76rem; cursor: pointer; }
.instrument-list input { width: 14px; height: 14px; margin: 0; accent-color: #176f65; }
.preferences-card .field { grid-template-columns: minmax(94px, .9fr) minmax(0, 1.1fr); margin-bottom: 9px; }
.preferences-card .field:last-child { margin-bottom: 0; }
.profile-hint { display: flex; gap: 9px; padding: 11px 12px; color: #5f766e; border-radius: 9px; background: #edf6f1; font-size: .76rem; line-height: 1.45; }
.profile-hint > span { color: #287e6c; }
.profile-hint p { margin: 0; }
.profile-validation { grid-area: validation; margin-bottom: 0; }
.profile-actions { grid-area: actions; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 0; }
.profile-actions p { margin: 0; color: #84928d; font-size: .75rem; }
.profile-actions .btn, .targets-page .btn, .hero-actions .btn, .identity-page .btn { padding: 9px 15px; font-size: .81rem; }
@media (max-width: 900px) { .profile-form { grid-template-columns: 1fr; grid-template-areas: "validation" "main" "side" "actions"; } }
@media (max-width: 650px) { .profile-page { margin: 18px 0 32px; } .profile-heading { align-items: start; } .profile-badge { display: none; } .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-wide { grid-column: 1 / -1; } .field { grid-template-columns: 1fr; gap: 4px; } .preferences-card .field { grid-template-columns: 1fr; gap: 4px; } }
@media (max-height: 850px) and (min-width: 901px) { .profile-page { margin-top: 10px; margin-bottom: 14px; } .profile-heading { margin-bottom: 10px; } .profile-heading h1 { font-size: 1.8rem; } .profile-card { padding: 12px 14px; } .card-heading { margin-bottom: 8px; } .form-grid { row-gap: 7px; } .profile-form { row-gap: 9px; } }
.targets-heading { margin-bottom: 14px; }
.targets-eyebrow { margin-bottom: 8px; color: #287e6c; font-size: .72rem; font-weight: 750; letter-spacing: .15em; }
.targets-heading > p:last-child { max-width: 720px; margin: 10px 0 0; color: #71817d; line-height: 1.6; }
.targets-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 11px; }
.targets-mark, .targets-count { display: grid; place-items: center; flex: 0 0 36px; height: 36px; color: #247a68; border-radius: 10px; background: #eaf5ef; font-weight: 750; }
.targets-dropzone { display: grid; justify-items: center; gap: 8px; padding: 26px 18px; border: 1px dashed #a9cbb9; border-radius: 12px; background: #f8fbf9; text-align: center; cursor: pointer; }
.targets-dropzone:hover, .targets-dropzone:focus-within { border-color: #318263; background: #f0f8f3; }
.targets-upload-icon { display: grid; place-items: center; width: 40px; height: 40px; color: #287e6c; border-radius: 12px; background: #e5f2ea; font-size: 1.4rem; }
.targets-dropzone strong { color: #33534a; font-size: .9rem; }
.targets-dropzone span:last-of-type { color: #85938e; font-size: .75rem; }
.targets-dropzone input { max-width: 100%; margin-top: 5px; color: #60716b; font-size: .78rem; }
.targets-import-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; }
.targets-import-actions p { margin: 0; overflow-wrap: anywhere; color: #7a8984; font-size: .78rem; }
.targets-import-actions button:disabled { cursor: wait; opacity: .7; }
.targets-alert { margin-bottom: 20px; padding: 15px 18px; border-radius: 11px; font-size: .85rem; line-height: 1.55; }
.targets-alert-success { color: #28624d; border: 1px solid #b9ddc9; background: #edf8f1; }
.targets-alert-error { color: #8c4141; border: 1px solid #edcccc; background: #fff4f3; }
.targets-empty { display: grid; gap: 5px; padding: 28px 16px; border-radius: 10px; background: #f8faf9; text-align: center; }
.targets-empty strong { color: #405b53; font-size: .88rem; }
.targets-empty span { color: #87958f; font-size: .78rem; }
.targets-table-wrap { overflow-x: auto; }
.targets-table { width: 100%; border-collapse: collapse; font-size: .79rem; }
.targets-table th { padding: 10px 12px; color: #81908a; border-bottom: 1px solid #e8eeeb; text-align: left; font-size: .7rem; font-weight: 700; }
.targets-table td { padding: 12px; color: #526761; border-bottom: 1px solid #f0f3f1; white-space: nowrap; }
.targets-table tbody tr:last-child td { border-bottom: 0; }
.targets-table td strong { color: #294a40; }
.targets-level { margin-left: 6px; padding: 3px 7px; color: #3b755f; border-radius: 6px; background: #edf6f0; font-size: .69rem; }
.targets-source-list { margin: 0; padding: 0; list-style: none; }
.targets-source-list li { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-top: 1px solid #edf1ef; color: #71817b; font-size: .76rem; }
.targets-source-list li > span:first-child { display: grid; gap: 3px; }
.targets-source-list strong { color: #425b53; font-weight: 650; }
.targets-source-list small { color: #91a099; font-size: .7rem; }
.targets-table td a, .targets-back-link { color: #287e6c; font-weight: 650; text-decoration: none; }
.targets-table td a:hover, .targets-back-link:hover { color: #165b4d; text-decoration: underline; }
.targets-back-link { display: inline-block; margin-bottom: 20px; font-size: .82rem; }
.instrument-picker-row { display: flex; align-items: end; gap: 16px; }
.instrument-picker-form { display: grid; flex: 1; gap: 7px; max-width: 580px; }
.instrument-picker-form label, .instrument-field > label, .instrument-label { color: #35544a; font-size: .8rem; font-weight: 680; }
.instrument-picker-form select, .instrument-field input:not([type=checkbox]):not([type=radio]), .instrument-field select { width: 100%; min-height: 34px; padding: 5px 8px; font-size: .79rem; color: #304c43; border: 1px solid #dce7e1; border-radius: 9px; background: #fff; }
.instrument-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
.instrument-field { display: grid; align-content: start; gap: 7px; }
.instrument-field-wide { grid-column: 1 / -1; }
.instrument-field small { color: #87958f; font-size: .75rem; }
.instrument-level-group { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 0; padding: 0; border: 0; }
.instrument-level-group label, .instrument-radio-row label { display: inline-flex; align-items: center; gap: 7px; color: #526761; font-size: .82rem; }
.instrument-radio-row { display: flex; flex-wrap: wrap; gap: 20px; }
.instrument-levels { padding: 13px 15px; border: 1px solid #e8efeb; border-radius: 10px; background: #f9fbfa; }
.instrument-state { padding: 7px 11px; border-radius: 99px; font-size: .75rem; font-weight: 700; }
.instrument-state.is-active { color: #28624d; background: #edf8f1; }
.instrument-state.is-inactive { color: #87603a; background: #fff4e6; }
.instrument-form-actions { display: flex; gap: 12px; margin-top: 24px; }
.instrument-status-form { margin-top: 12px; }
@media (max-width: 700px) { .instrument-form-grid { grid-template-columns: 1fr; } .instrument-picker-row { align-items: stretch; flex-direction: column; } .instrument-field-wide { grid-column: auto; } }
.targets-lot-meta { display: flex; flex-wrap: wrap; gap: 34px; }
.targets-lot-meta div { display: grid; gap: 5px; }
.targets-lot-meta small { color: #87958f; font-size: .73rem; }
.targets-lot-meta strong { color: #36534a; font-size: .87rem; font-weight: 650; }
.parameter-code { display: block; margin-top: 3px; color: #8a9992; font-size: .68rem; font-weight: 450; }
.culture-switcher { display: flex; align-items: center; margin: 0 12px; }
.culture-switcher select { min-height: 34px; padding: 5px 28px 5px 9px; color: #516760; border: 1px solid #dfe8e3; border-radius: 7px; background: #fbfcfb; font-size: .77rem; }
@media (max-width: 575px) { .culture-switcher { margin: 8px 0; } }
@media (max-width: 700px) {  .targets-import-actions, .targets-source-list li { align-items: stretch; flex-direction: column; } .targets-import-actions .btn { width: 100%; } }

.targets-page > .targets-card { margin-bottom: 10px; min-width: 0; }
.targets-heading > p:last-child, .hero-description { margin: 6px 0 12px; font-size: .86rem; line-height: 1.5; }
.targets-eyebrow, .hero-copy .eyebrow { margin-bottom: 6px; font-size: .67rem; }
.hero-panel { min-height: auto; margin: 18px auto 10px; gap: 16px; }
.hero-visual { min-height: 218px; }
.visual-card { transform: none; box-shadow: none; width: min(94%, 330px); }
.visual-chart { height: 85px; }
.visual-orbit { display: none; }
.feature-row { gap: 10px; padding: 0; margin-bottom: 28px; }
.feature-row article { padding: 14px 16px; }
.feature-row p, .setup-note { font-size: .79rem; }
.accounts-grid { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); align-items: start; gap: 16px; }
.accounts-grid ul { padding-left: 1rem; margin-bottom: 0; }
.accounts-grid li { padding: 4px 0; }
.accounts-grid p, .accounts-grid li { overflow-wrap: anywhere; }
.accounts-grid a, .identity-page a, .targets-card nav a { color: #176f65; }
.identity-page h1 { margin-bottom: 14px; }
.identity-page .row { gap: 12px; margin-inline: 0; }
.identity-page .row > div:has(form) { flex: 1 1 19rem; min-width: 0; }
.identity-page .form-control { color: #304c43; border-color: #dce7e1; border-radius: 7px; }
.identity-page .form-floating { font-size: .86rem; }
@media (min-width: 901px) {
    .targets-index:has(.import-card), .instruments-page { display: grid; grid-template-columns: minmax(0, 2fr) minmax(285px, .82fr); align-items: start; column-gap: 16px; }
    :is(.targets-index, .instruments-page) > :is(header, .targets-alert, .targets-source-card) { grid-column: 1 / -1; }
    :is(.targets-index, .instruments-page) > :is(.import-card, .instrument-picker-card) { grid-column: 2; }
    :is(.targets-index, .instruments-page) > :is(.import-card, .instrument-picker-card) + .targets-card { grid-column: 1; grid-row: 2; }
    :is(.targets-index, .instruments-page):has(.targets-alert) > :is(.import-card, .instrument-picker-card) + .targets-card { grid-row: 3; }
    .import-card .targets-import-actions, .instrument-picker-row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 700px) {
    .accounts-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-panel { padding: 14px 16px; }
}
