:root {
    --ink: #17211c;
    --muted: #69736d;
    --line: #dfe5e1;
    --surface: #ffffff;
    --canvas: #f4f6f3;
    --forest: #173f32;
    --forest-2: #245844;
    --mint: #dceadf;
    --lime: #c5dd85;
    --amber: #c97828;
    --red: #a9453d;
    --blue: #3f6c78;
    --shadow: 0 18px 48px rgba(22, 48, 37, .08);
    --radius: 16px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(63, 108, 120, .25); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; }
code { padding: .16rem .35rem; border-radius: 5px; background: #e9eeea; color: var(--forest); }

.auth-body { background: #ffffff; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr); }
.company-auth,
.platform-auth { width: 100%; max-width: none; margin: 0; box-shadow: none; }
.auth-story-content { position: relative; z-index: 1; width: 100%; max-width: 820px; margin: auto; }
.login-card-inner { display: flex; width: 100%; max-width: 500px; margin: auto; flex-direction: column; }
.auth-story { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 7rem); display: flex; flex-direction: column; justify-content: center; color: #f5f8f4; background: radial-gradient(circle at 12% 10%, rgba(197, 221, 133, .16), transparent 27%), linear-gradient(145deg, #173f32, #0f2e25); }
.auth-story::after { content: ""; position: absolute; width: 520px; height: 520px; right: -230px; bottom: -240px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.auth-story h1 { max-width: 850px; margin: 1.6rem 0; font-family: Georgia, serif; font-size: clamp(2.7rem, 5.5vw, 5.8rem); font-weight: 400; line-height: .99; }
.auth-lead { max-width: 700px; color: #c9d7d0; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.7; }
.auth-points { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 720px; margin-top: 4rem; background: rgba(255,255,255,.16); }
.auth-points div { display: grid; gap: .35rem; padding: 1.2rem; background: #173f32; }
.auth-points strong { color: var(--lime); font-size: 1.2rem; }
.auth-points span { color: #bdcbc5; font-size: .82rem; }
.auth-points.auth-points-four { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.auth-points-four div { min-width: 0; align-content: start; }
.auth-points-four strong { font-size: 1rem; line-height: 1.25; }
.auth-points-four span { line-height: 1.45; }
.platform-auth-points strong { color: #fff; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 6rem); background: #f8f9f7; }
.login-card h2 { margin-bottom: .5rem; font-size: clamp(2rem, 3vw, 2.8rem); }
.mobile-brand { display: none; margin-bottom: 3rem; font-weight: 800; }
.brand-dot { display: inline-block; width: .8rem; height: .8rem; margin-right: .4rem; border-radius: 50%; background: var(--forest); }
.security-note { margin: 2rem 0 0; color: var(--muted); font-size: .78rem; }
.security-note span { color: var(--forest); }
.language-switch { display: inline-flex; align-self: flex-end; gap: 2px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 2rem; padding: 3px; background: #fff; }
.language-switch button { border: 0; border-radius: 5px; padding: .34rem .55rem; color: var(--muted); background: transparent; font-size: .68rem; font-weight: 900; }
.language-switch button.active { color: #fff; background: var(--forest); }
.language-switch.compact { align-self: auto; margin: 0; }
.platform-login-link { display: inline-flex; margin-top: 1.5rem; color: var(--forest-2); font-size: .76rem; font-weight: 800; text-decoration: none; }

@media (min-width: 821px) {
    .auth-body { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
    .auth-body .auth-shell { height: 100%; min-height: 0; overflow: hidden; }
    .auth-body .auth-story { padding: clamp(2rem, 4.5vw, 4.5rem); }
    .auth-body .auth-story h1 { margin: 1rem 0; font-size: clamp(2.45rem, 4.6vw, 5rem); }
    .auth-body .auth-points { margin-top: clamp(1.5rem, 3vh, 2.5rem); }
    .auth-body .auth-points-four div { padding: clamp(.78rem, 1.7vh, 1.1rem) 1rem; }
    .auth-body .login-card { justify-content: flex-start; padding: clamp(1.25rem, 4vh, 2.5rem) clamp(2rem, 5vw, 5rem); overflow: hidden; }
    .auth-body .language-switch { margin-bottom: clamp(1rem, 2.5vh, 1.6rem); }
    .auth-body .form-stack { margin-top: clamp(1.2rem, 2.5vh, 2rem); }
    .auth-body .security-note { margin-top: clamp(1rem, 2vh, 1.5rem); }
    .auth-body .platform-login-link { margin-top: clamp(.75rem, 1.5vh, 1.15rem); }
}

.brand-mark { display: flex; width: 52px; height: 44px; align-items: end; gap: 4px; }
.brand-mark span { display: block; width: 13px; border-radius: 12px 12px 2px 2px; background: var(--lime); transform: rotate(20deg); transform-origin: bottom; }
.brand-mark span:nth-child(1) { height: 25px; }
.brand-mark span:nth-child(2) { height: 42px; }
.brand-mark span:nth-child(3) { height: 32px; transform: rotate(42deg); }
.brand-mark.small { width: 36px; height: 30px; gap: 3px; }
.brand-mark.small span { width: 9px; }
.brand-mark.small span:nth-child(1) { height: 17px; }
.brand-mark.small span:nth-child(2) { height: 28px; }
.brand-mark.small span:nth-child(3) { height: 22px; }
.eyebrow { margin: 0 0 .45rem; color: var(--forest-2); font-size: .69rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: var(--lime); }
.muted { color: var(--muted); }

.form-stack { display: grid; gap: 1.15rem; margin-top: 2rem; }
label { display: grid; gap: .45rem; color: #39443e; font-size: .79rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cfd7d2; border-radius: 9px; padding: .76rem .82rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #aebdb4; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36, 88, 68, .08); outline: none; }
textarea { resize: vertical; line-height: 1.5; }
input[type="range"] { padding: 0; accent-color: var(--forest); }
.btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: .75rem; border: 1px solid transparent; border-radius: 9px; padding: .66rem 1rem; font-size: .82rem; font-weight: 800; text-decoration: none; transition: transform .15s, background .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: wait; opacity: .55; transform: none; }
.btn-primary { color: #fff; background: var(--forest); box-shadow: 0 8px 18px rgba(23, 63, 50, .12); }
.btn-primary:hover { background: var(--forest-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-block { width: 100%; justify-content: space-between; padding: .84rem 1rem; }
.text-btn { border: 0; padding: .25rem; color: var(--forest-2); background: transparent; font-size: .76rem; font-weight: 800; }
.icon-btn { border: 0; padding: .4rem; color: #819089; background: transparent; font-size: 1.1rem; }
.form-message { display: none; margin: 0; border-radius: 7px; padding: .65rem .75rem; color: #7c2f29; background: #f8e9e7; font-size: .78rem; line-height: 1.45; }
.form-message.show { display: block; }
.form-message.success { color: #205c42; background: #e6f1e9; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: 258px; flex-direction: column; border-right: 1px solid rgba(255,255,255,.06); color: #d8e1dc; background: #122f27; }
.brand { display: flex; min-height: 84px; align-items: center; gap: .8rem; border-bottom: 1px solid rgba(255,255,255,.07); padding: 1.2rem 1.45rem; }
.brand strong, .brand span { display: block; }
.brand strong { color: #fff; font-size: 1.15rem; letter-spacing: -.02em; }
.brand span { margin-top: .15rem; color: #81978e; font-size: .65rem; font-weight: 700; letter-spacing: .1em; }
.nav-list { flex: 1; overflow-y: auto; padding: 1.2rem .75rem; }
.nav-label { margin: 1.25rem .7rem .45rem; color: #668078; font-size: .58rem; font-weight: 800; letter-spacing: .14em; }
.nav-item { display: flex; width: 100%; align-items: center; gap: .75rem; border: 0; border-radius: 8px; padding: .68rem .75rem; color: #aebdb7; background: transparent; font-size: .79rem; text-align: left; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.045); }
.nav-item.active { color: #fff; background: rgba(197, 221, 133, .12); box-shadow: inset 3px 0 var(--lime); }
.nav-icon { display: grid; width: 23px; height: 23px; place-items: center; color: var(--lime); font-size: .95rem; }
.sidebar-footer { display: flex; align-items: center; gap: .7rem; border-top: 1px solid rgba(255,255,255,.08); padding: 1rem; }
.sidebar-account { display: flex; min-width: 0; flex: 1; align-items: center; gap: .7rem; border: 0; border-radius: 9px; padding: .35rem; color: inherit; background: transparent; text-align: left; }
.sidebar-account:hover, .sidebar-account:focus-visible { background: rgba(255,255,255,.07); outline: none; }
.user-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #173f32; background: var(--lime); font-weight: 900; }
.user-meta { min-width: 0; flex: 1; }
.user-meta strong, .user-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta strong { color: #fff; font-size: .75rem; }
.user-meta span { margin-top: .15rem; color: #82978f; font-size: .62rem; }
.sidebar-footer form { margin: 0; }

.account-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: 1rem; }
.account-grid > .card { overflow: hidden; }
.account-profile-head { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1.4rem 1.5rem; }
.account-profile-head h3, .account-profile-head p { margin: 0; }
.account-profile-head p { margin-top: .25rem; color: var(--muted); font-size: .76rem; }
.account-avatar { width: 52px; height: 52px; border-radius: 14px; font-size: 1.15rem; }
.account-details { display: grid; gap: 0; margin: 0; padding: .75rem 1.5rem 1.25rem; }
.account-details div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; border-bottom: 1px solid var(--line); padding: .72rem 0; }
.account-details div:last-child { border-bottom: 0; }
.account-details dt { color: var(--muted); font-size: .68rem; font-weight: 800; }
.account-details dd { margin: 0; color: var(--ink); font-size: .76rem; font-weight: 700; overflow-wrap: anywhere; }
.account-grid > .card:not(.account-profile) > .form-stack { margin: 0; padding: 1.4rem 1.5rem 1.5rem; }

.main-content { min-height: 100vh; margin-left: 258px; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1rem clamp(1.25rem, 3vw, 3rem); background: rgba(244, 246, 243, .92); backdrop-filter: blur(14px); }
.topbar h1 { margin: 0; font-size: 1.45rem; }
.breadcrumb { margin: 0 0 .2rem; color: #829089; font-size: .66rem; }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
.system-status { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .69rem; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: #54a170; box-shadow: 0 0 0 4px rgba(84,161,112,.12); }
.menu-toggle { display: none; border: 0; border-radius: 8px; padding: .5rem; color: var(--forest); background: #e6ece8; }
.view { display: none; padding: clamp(1.25rem, 3vw, 3rem); animation: view-in .25s ease; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.password-alert { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid #e5d3a8; border-radius: 10px; margin-bottom: 1rem; padding: .8rem 1rem; color: #6f4c18; background: #fbf3df; text-align: left; }
.password-alert span { font-size: .72rem; }

.hero-card { position: relative; overflow: hidden; display: flex; min-height: 210px; align-items: center; justify-content: space-between; gap: 2rem; border-radius: 20px; padding: clamp(1.5rem, 4vw, 3.2rem); color: #f5f8f4; background: linear-gradient(120deg, #173f32, #265843); box-shadow: var(--shadow); }
.hero-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -80px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card h2 { max-width: 720px; margin: 0 0 .7rem; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 400; }
.hero-card p:not(.eyebrow) { max-width: 670px; margin: 0; color: #c8d8d1; font-size: .9rem; line-height: 1.6; }
.readiness { display: grid; min-width: 130px; height: 130px; place-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; text-align: center; background: rgba(255,255,255,.05); }
.readiness span { font-family: Georgia, serif; font-size: 2.2rem; }
.readiness small { color: #bed0c8; font-size: .65rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.2rem 0; }
.metric-card { display: grid; min-height: 130px; align-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--surface); }
.metric-card strong { font-family: Georgia, serif; font-size: 2.3rem; font-weight: 400; }
.metric-card small, .metric-label { color: var(--muted); font-size: .69rem; }
.metric-card.risk strong { color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 1.2rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 7px 24px rgba(30, 59, 46, .035); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #edf0ee; padding: 1.3rem 1.4rem; }
.card-header h3 { margin: 0; font-size: 1.05rem; }
.unit { color: var(--muted); font-size: .68rem; }
.bar-chart { display: flex; min-height: 250px; align-items: end; gap: 6px; padding: 2rem 1.5rem 1.25rem; }
.bar-group { display: flex; min-width: 18px; flex: 1; align-items: end; justify-content: center; gap: 2px; height: 190px; border-bottom: 1px solid var(--line); }
.bar { width: 26%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--forest); }
.bar.scope-2 { background: var(--lime); }
.bar.scope-3 { background: #73a09a; }
.bar-label { position: absolute; transform: translateY(20px); color: var(--muted); font-size: .55rem; }
.activity-list { min-height: 250px; }
.activity-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; border-bottom: 1px solid #edf0ee; padding: 1rem 1.3rem; }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.activity-dot.yuksek { background: var(--red); }
.activity-dot.dusuk { background: #4f9669; }
.activity-item strong, .activity-item span { display: block; }
.activity-item strong { font-size: .77rem; }
.activity-item span { margin-top: .2rem; color: var(--muted); font-size: .67rem; }
.activity-score { color: var(--ink) !important; font-family: Georgia, serif; font-size: 1.15rem !important; }
.empty-state { width: 100%; margin: auto; padding: 2.2rem; color: var(--muted); font-size: .78rem; text-align: center; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.6rem; }
.section-heading h2 { margin: 0 0 .5rem; font-size: clamp(1.75rem, 3vw, 2.55rem); }
.section-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .83rem; }
.table-card { overflow: hidden; }
.table-toolbar { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .7rem 1rem; }
.table-search { width: min(320px, 70%); border: 0; padding-left: .25rem; background: transparent; }
.table-search:focus { box-shadow: none; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .75rem; }
th { padding: .75rem 1rem; color: #75817a; background: #f8faf8; font-size: .63rem; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { border-top: 1px solid #edf0ee; padding: .9rem 1rem; color: #344039; vertical-align: middle; }
tbody tr:hover { background: #fafcfa; }
td strong { display: block; color: var(--ink); }
td small { display: block; margin-top: .2rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; border-radius: 99px; padding: .28rem .55rem; color: #2d6550; background: #e5f0e8; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.badge.medium, .badge.bekliyor, .badge.taslak { color: #87551d; background: #f7ead8; }
.badge.high, .badge.yuksek, .badge.reddedildi { color: #8b3731; background: #f7e5e3; }
.badge.low, .badge.dusuk, .badge.dogrulandi, .badge.hazir, .badge.aktif { color: #2d6550; background: #e5f0e8; }
.score-bar { width: 92px; height: 5px; overflow: hidden; border-radius: 99px; background: #e8ece9; }
.score-bar i { display: block; height: 100%; background: var(--forest-2); }
.row-actions { display: flex; gap: .35rem; }
.mini-btn { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; padding: .35rem .55rem; color: var(--forest); background: #fff; font-size: .65rem; font-weight: 800; text-decoration: none; }
.mini-btn.danger { color: var(--red); }
.info-banner, .retention-banner { margin-bottom: 1rem; border: 1px solid #d8e4dc; border-radius: 11px; padding: .85rem 1rem; color: #496057; background: #edf4ef; font-size: .75rem; }
.risk-scale { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1rem; border-radius: 10px; padding: .75rem 1rem; background: #fff; color: var(--muted); font-size: .69rem; }
.risk-scale span { display: flex; align-items: center; gap: .4rem; }
.risk-scale i { width: 8px; height: 8px; border-radius: 50%; background: #4f9669; }
.risk-scale i.medium { background: var(--amber); }
.risk-scale i.high { background: var(--red); }
.risk-scale small { margin-left: auto; }
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.scope-grid article { border-left: 4px solid var(--forest); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; background: #fff; }
.scope-grid article:nth-child(2) { border-color: var(--lime); }
.scope-grid article:nth-child(3) { border-color: #73a09a; }
.scope-grid span, .scope-grid small, .scope-grid strong { display: block; }
.scope-grid span, .scope-grid small { color: var(--muted); font-size: .67rem; }
.scope-grid strong { margin: .35rem 0; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; }
.retention-banner { display: flex; align-items: center; gap: 1rem; border-color: #dedfc5; background: #f5f5e8; }
.retention-banner p { margin: .2rem 0 0; color: var(--muted); font-size: .7rem; }
.retention-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); font-weight: 900; }
.narrow-card { max-width: 560px; padding: 1.5rem; }

.modal { width: min(620px, calc(100vw - 2rem)); max-height: min(850px, calc(100vh - 2rem)); overflow-y: auto; border: 0; border-radius: 18px; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(10, 30, 22, .28); }
.modal.modal-wide { width: min(760px, calc(100vw - 2rem)); }
.modal::backdrop { background: rgba(8, 25, 19, .68); backdrop-filter: blur(3px); }
html:has(dialog[open]),
body:has(dialog[open]) { overflow: hidden; }
.modal-header { padding: 1.6rem 1.8rem .4rem; }
.modal-header h2 { margin: 0; font-size: 1.7rem; }
.modal-close { position: sticky; z-index: 2; top: .75rem; float: right; margin: .75rem .75rem 0 0; }
.modal-close button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; font-size: 1.2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1.4rem 1.8rem 1.8rem; clear: both; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: .7rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.file-drop { border: 1px dashed #aebcb4; border-radius: 10px; padding: 1rem; background: #f8faf8; }
.file-drop input { border: 0; padding: .5rem 0; background: transparent; }
.file-drop small { color: var(--muted); }
.declaration-note { display: flex; justify-content: space-between; border-radius: 9px; padding: 1rem; color: #405149; background: #edf3ef; font-size: .72rem; }

.toast-region { position: fixed; z-index: 100; right: 1.2rem; bottom: 1.2rem; display: grid; width: min(380px, calc(100vw - 2.4rem)); gap: .6rem; }
.toast { border-left: 4px solid #5b9970; border-radius: 9px; padding: .85rem 1rem; color: #fff; background: #1e352b; box-shadow: 0 12px 35px rgba(0,0,0,.2); font-size: .76rem; animation: toast-in .2s ease; }
.toast.error { border-color: #d76c63; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* SaaS platform console */
.platform-body { --platform: #243b67; --platform-2: #34568f; --platform-soft: #e7edf8; background: #f3f5f9; }
.platform-auth .platform-story { background: radial-gradient(circle at 15% 15%, rgba(136, 172, 235, .2), transparent 26%), linear-gradient(145deg, #152747, #263f6e); }
.platform-story .brand-mark span { background: #9bbcf3; }
.platform-auth-stats { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.6rem; }
.platform-auth-stats span { border: 1px solid rgba(255,255,255,.15); border-radius: 99px; padding: .5rem .75rem; color: #d6e2f6; font-size: .7rem; }
.platform-shell { min-height: 100vh; }
.platform-sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: 258px; flex-direction: column; color: #dce4f3; background: #172844; }
.platform-brand .brand-mark span { background: #9bbcf3; }
.platform-sidebar .nav-item.active { background: rgba(132, 170, 234, .14); box-shadow: inset 3px 0 #91b4ef; }
.platform-sidebar .nav-icon { color: #9bbcf3; }
.platform-sidebar .sidebar-footer { margin-top: auto; }
.platform-avatar { color: #172844; background: #9bbcf3; }
.platform-main { min-height: 100vh; margin-left: 258px; }
.platform-topbar { background: rgba(243, 245, 249, .92); }
.platform-view { display: none; padding: clamp(1.25rem, 3vw, 3rem); animation: view-in .25s ease; }
.platform-view.active { display: block; }
.btn-platform { color: #fff; background: var(--platform); box-shadow: 0 8px 18px rgba(36,59,103,.14); }
.btn-platform:hover { background: var(--platform-2); }
.platform-body .language-switch button.active { background: var(--platform); }
.platform-body .eyebrow { color: var(--platform-2); }
.platform-body .eyebrow.light { color: #b9d0f5; }
.platform-hero { position: relative; overflow: hidden; display: flex; min-height: 220px; align-items: center; justify-content: space-between; gap: 2rem; border-radius: 20px; padding: clamp(1.5rem, 4vw, 3.2rem); color: #f7f9fe; background: radial-gradient(circle at 88% 20%, rgba(155,188,243,.18), transparent 28%), linear-gradient(125deg, #1b3156, #31588e); box-shadow: 0 20px 55px rgba(27,49,86,.16); }
.platform-hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: -140px; bottom: -220px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018); }
.platform-hero > * { position: relative; z-index: 1; }
.platform-hero h2 { max-width: 760px; margin: 0 0 .7rem; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 400; }
.platform-hero p:not(.eyebrow) { max-width: 720px; margin: 0; color: #cfdbed; font-size: .88rem; line-height: 1.65; }
.platform-pulse { display: grid; min-width: 128px; height: 128px; place-content: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; text-align: center; background: rgba(255,255,255,.05); }
.platform-pulse i { width: 10px; height: 10px; justify-self: center; border-radius: 50%; background: #85dea8; box-shadow: 0 0 0 7px rgba(133,222,168,.12); }
.platform-pulse strong { margin-top: .8rem; font-size: 1.1rem; }
.platform-pulse span { color: #c7d5e9; font-size: .62rem; }
.platform-metrics .metric-card.revenue strong { color: var(--platform-2); font-size: 1.8rem; }
.platform-recent { overflow: hidden; }
.company-tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.company-tile { display: grid; gap: .65rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.2rem 1.35rem; }
.company-tile:nth-child(3n) { border-right: 0; }
.company-tile strong { font-size: .8rem; }
.company-tile small { color: var(--muted); font-size: .66rem; }
.company-tile-meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.workspace-code { display: inline-flex; border-radius: 5px; padding: .22rem .4rem; color: var(--platform-2); background: var(--platform-soft); font-family: ui-monospace, Consolas, monospace; font-size: .61rem; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.plan-card { position: relative; overflow: hidden; display: flex; min-height: 320px; flex-direction: column; border: 1px solid #dbe1ec; border-radius: 17px; padding: 1.5rem; background: #fff; box-shadow: 0 8px 28px rgba(36,59,103,.045); }
.plan-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--platform); }
.plan-card .plan-code { color: var(--platform-2); font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.plan-card h3 { margin: .65rem 0 .4rem; font-size: 1.45rem; }
.plan-card p { min-height: 54px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.plan-price { display: flex; align-items: baseline; gap: .35rem; margin: 1rem 0; }
.plan-price strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.plan-price span { color: var(--muted); font-size: .68rem; }
.plan-limits { display: grid; gap: .55rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.plan-limits div { display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; }
.plan-limits strong { color: var(--ink); }
.plan-subscriptions { margin-top: auto; border-radius: 7px; padding: .65rem; color: var(--platform-2); background: var(--platform-soft); font-size: .7rem; font-weight: 800; text-align: center; }
.platform-modal .modal-header .eyebrow { color: var(--platform-2); }
.form-separator { position: relative; margin: .45rem 0 0; border-top: 1px solid var(--line); }
.form-separator span { position: relative; top: -.55rem; padding-right: .6rem; color: var(--platform-2); background: #fff; font-size: .65rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.feature-checks { display: flex; flex-wrap: wrap; gap: .7rem; border-radius: 9px; padding: .9rem; background: #f5f7fb; }
.feature-checks label { display: flex; align-items: center; gap: .4rem; }
.feature-checks input { width: auto; accent-color: var(--platform); }
.company-status-control { display: flex; min-width: 145px; align-items: center; gap: .35rem; }
.company-status-control select { min-width: 88px; padding: .38rem; font-size: .66rem; }
.company-status-control button { border: 0; border-radius: 6px; padding: .43rem .5rem; color: #fff; background: var(--platform); font-size: .63rem; font-weight: 800; }
.subscription-detail { display: grid; gap: .2rem; }
.subscription-detail strong { color: var(--platform); }

@media (max-width: 1100px) {
    .company-tile-grid, .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-story { display: none; }
    .login-card { min-height: 100vh; }
    .mobile-brand { display: block; }
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
    .sidebar.open { transform: translateX(0); }
    .platform-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
    .platform-sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .platform-main { margin-left: 0; }
    .menu-toggle { display: block; }
    .topbar-actions .system-status { display: none; }
    .view { padding: 1.2rem; }
    .section-heading { align-items: start; flex-direction: column; gap: 1rem; }
    .scope-grid { grid-template-columns: 1fr; }
    .account-grid { grid-template-columns: 1fr; }
    .company-tile-grid, .plan-grid { grid-template-columns: 1fr; }
    .company-tile { border-right: 0; }
}

/* SaaS firma logosu, hesap ve korumalı arşivleme akışı */
.company-logo-field {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #dce5f0;
    border-radius: 16px;
    background: #f8fafc;
}

.company-logo-preview {
    display: grid;
    width: 112px;
    height: 82px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: linear-gradient(145deg, #172033, #29364f);
    color: #fff;
    font-size: 1.65rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.company-logo-preview img {
    width: 100%;
    height: 100%;
    padding: .7rem;
    object-fit: contain;
}

.company-logo-control { display: grid; gap: .48rem; min-width: 0; }
.company-logo-control > strong { color: #233252; font-size: .9rem; }
.company-logo-control small { color: #687792; }

.custom-file-picker {
    display: flex;
    min-height: 48px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d3deec;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.custom-file-picker:hover { border-color: #93ace0; }
.custom-file-picker:focus-within { border-color: #4f7edf; box-shadow: 0 0 0 3px rgba(79, 126, 223, .16); }
.custom-file-button { align-self: stretch; display: inline-flex; align-items: center; padding: 0 .9rem; background: #eaf1ff; color: #315cae; font-weight: 750; white-space: nowrap; }
.custom-file-name { min-width: 0; padding: 0 .9rem; overflow: hidden; color: #52617a; text-overflow: ellipsis; white-space: nowrap; }
.visually-hidden-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.file-error { min-height: 1em; color: #b43e47 !important; font-weight: 700; }
.logo-remove-option { display: inline-flex; align-items: center; gap: .5rem; width: fit-content; color: #8f3540; font-size: .84rem; font-weight: 700; }
.logo-remove-option input { width: 17px; height: 17px; margin: 0; }

.company-identity { display: flex; align-items: center; gap: .72rem; }
.company-identity > div { display: grid; gap: .24rem; }
.company-table-logo { width: 42px; height: 42px; flex: 0 0 42px; padding: .35rem; border-radius: 10px; background: #1b263b; object-fit: contain; }
.platform-row-actions { display: flex; flex-wrap: wrap; gap: .38rem; }
.mini-btn.danger { border-color: #f0cbd0; color: #a23844; background: #fff7f8; }
.mini-btn.danger:hover { border-color: #d99aa3; background: #fdebed; }

.platform-account-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; }
.platform-sidebar-account { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }
.platform-sidebar-account:focus-visible { outline: 3px solid rgba(79, 126, 223, .28); outline-offset: 3px; }

.archive-dialog { width: min(760px, calc(100vw - 2rem)); }
.archive-modal-header { padding-bottom: .35rem; }
.archive-stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .2rem 0 1.1rem; }
.archive-stepper > span { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: .45rem; padding: .58rem .68rem; border: 1px solid #dde5ef; border-radius: 12px; color: #77849a; background: #f8fafc; font-weight: 800; }
.archive-stepper > span::first-letter { color: inherit; }
.archive-stepper i { font-style: normal; font-size: .78rem; }
.archive-stepper > span.active { border-color: #8eabe6; color: #315da9; background: #edf3ff; }
.archive-stepper > span.completed { border-color: #a9ddce; color: #17735e; background: #edf9f5; }
.archive-form { display: block; }
.archive-step { display: none; gap: 1rem; }
.archive-step.active { display: grid; }
.archive-warning { padding: 1rem 1.05rem; border: 1px solid #f2cf9c; border-radius: 14px; background: #fff8eb; color: #784b13; }
.archive-warning strong { display: block; margin-bottom: .32rem; }
.archive-warning p, .archive-final-notice p { margin: 0; line-height: 1.55; }
.archive-impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.archive-impact > div { display: grid; gap: .25rem; padding: .75rem .8rem; border: 1px solid #e0e7f0; border-radius: 12px; background: #fbfcfe; }
.archive-impact span { color: #6c7890; font-size: .77rem; font-weight: 700; }
.archive-impact strong { color: #273651; font-size: 1.05rem; }
.archive-confirmations { display: grid; gap: .65rem; margin: 0; padding: 1rem; border: 1px solid #dce4ef; border-radius: 14px; }
.archive-confirmations legend { padding: 0 .4rem; color: #273651; font-weight: 800; }
.archive-confirmations label { display: grid; grid-template-columns: 20px 1fr; gap: .65rem; align-items: start; padding: .72rem; border: 1px solid #e5eaf1; border-radius: 11px; background: #fbfcfe; line-height: 1.45; }
.archive-confirmations input { width: 18px; height: 18px; margin: .12rem 0 0; }
.archive-final-notice { display: grid; grid-template-columns: 38px 1fr; gap: .8rem; align-items: start; padding: .9rem 1rem; border: 1px solid #edc4ca; border-radius: 14px; background: #fff5f6; color: #7f303b; }
.archive-final-notice > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #b84350; color: #fff; font-weight: 900; }
.archive-submit { box-shadow: 0 10px 24px rgba(167, 48, 61, .2); }

@media (max-width: 760px) {
    .company-logo-field { grid-template-columns: 1fr; }
    .company-logo-preview { width: 100%; height: 96px; }
    .platform-account-grid { grid-template-columns: 1fr; }
    .archive-stepper i { display: none; }
    .archive-stepper > span { grid-template-columns: 1fr; text-align: center; }
    .archive-impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .topbar { min-height: 72px; padding: .8rem 1rem; }
    .topbar .btn { display: none; }
    .topbar h1 { font-size: 1.15rem; }
    .hero-card { align-items: start; flex-direction: column; }
    .platform-hero { align-items: start; flex-direction: column; }
    .readiness { min-width: 95px; width: 95px; height: 95px; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .metric-card { min-height: 110px; padding: 1rem; }
    .metric-card strong { font-size: 1.8rem; }
    .form-grid { grid-template-columns: 1fr; padding: 1.2rem; }
    .span-2 { grid-column: span 1; }
    .risk-scale { align-items: start; flex-direction: column; gap: .5rem; }
    .risk-scale small { margin-left: 0; }
    .declaration-note { flex-direction: column; gap: .3rem; }
}

/* Kurumsal lacivert ve petrol mavisi renk paleti — yalnız renk katmanı. */
:root {
    --ink: #162235;
    --muted: #667085;
    --line: #d8e0ea;
    --surface: #ffffff;
    --canvas: #f3f6fa;
    --forest: #173b57;
    --forest-2: #1f6682;
    --mint: #e5f0f3;
    --lime: #69b9aa;
    --amber: #b97824;
    --red: #b54747;
    --blue: #3d6f8e;
    --shadow: 0 18px 48px rgba(17, 38, 63, .09);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline-color: rgba(31, 102, 130, .25); }

code { background-color: #e8eef4; color: #173b57; }
.auth-body { background-color: #142b42; }
.auth-story { color: #f7fafc; background: radial-gradient(circle at 12% 10%, rgba(105, 185, 170, .14), transparent 27%), linear-gradient(145deg, #142b42, #0d2033); }
.auth-lead { color: #c8d5e2; }
.auth-points { background-color: rgba(255,255,255,.14); }
.auth-points div { background-color: #183149; }
.auth-points span { color: #bdccd8; }
.login-card { background-color: #f8fafc; }

label { color: #344054; }
input, select, textarea { border-color: #cbd5e1; }
input:hover, select:hover, textarea:hover { border-color: #98a7b8; }
input:focus, select:focus, textarea:focus { border-color: #1f6682; box-shadow: 0 0 0 3px rgba(31, 102, 130, .09); }
.btn-primary { box-shadow: 0 8px 18px rgba(23, 59, 87, .14); }

.sidebar { color: #d9e5ee; background-color: #11283c; }
.brand span { color: #8ea4b5; }
.nav-label { color: #718b9e; }
.nav-item { color: #adbecb; }
.nav-item.active { background-color: rgba(105, 185, 170, .14); }
.user-meta span { color: #879dad; }
.topbar { background-color: rgba(243, 246, 250, .92); }
.breadcrumb { color: #7b8998; }
.system-status i { background-color: #3a9387; box-shadow: 0 0 0 4px rgba(58, 147, 135, .13); }
.menu-toggle { background-color: #e4ebf1; }

.hero-card { color: #f7fafc; background: linear-gradient(120deg, #173b57, #215a70); }
.hero-card p:not(.eyebrow) { color: #cadbe4; }
.readiness small { color: #bfd0db; }
.card { box-shadow: 0 7px 24px rgba(17, 38, 63, .045); }
.card-header, .activity-item { border-color: #e8edf3; }
.bar.scope-3 { background-color: #799cac; }
.scope-grid article:nth-child(3) { border-color: #799cac; }
.activity-dot.dusuk, .risk-scale i { background-color: #3f8e77; }

th { color: #687789; background-color: #f7f9fc; }
td { border-color: #e8edf3; color: #344054; }
tbody tr:hover { background-color: #f8fafc; }
.badge, .badge.low, .badge.dusuk, .badge.dogrulandi, .badge.hazir, .badge.aktif { color: #25675e; background-color: #e2f1ed; }
.badge.medium, .badge.bekliyor, .badge.taslak { color: #8a5b18; background-color: #f8eddc; }
.badge.high, .badge.yuksek, .badge.reddedildi { color: #9d3f3f; background-color: #f8e7e7; }
.score-bar { background-color: #e6ebf1; }
.info-banner { border-color: #d7e2ea; color: #486174; background-color: #eaf1f5; }
.retention-banner { border-color: #e4d7bc; background-color: #f6f1e7; }
.file-drop { border-color: #aab8c5; background-color: #f7f9fc; }
.declaration-note { color: #405466; background-color: #eaf1f5; }
.modal { box-shadow: 0 30px 90px rgba(13, 32, 51, .30); }
.modal::backdrop { background-color: rgba(10, 27, 43, .70); }
.toast { border-color: #69b9aa; background-color: #172d42; }

.platform-body { --platform: #1f466f; --platform-2: #2f6f91; --platform-soft: #e5edf5; background-color: #f3f6fa; }
.platform-auth .platform-story { background: radial-gradient(circle at 15% 15%, rgba(126, 184, 207, .20), transparent 26%), linear-gradient(145deg, #102942, #1f4b6b); }
.platform-story .brand-mark span,
.platform-brand .brand-mark span { background-color: #86bfd0; }
.platform-auth-stats span { color: #d5e4ed; }
.platform-sidebar { color: #dce7ef; background-color: #122941; }
.platform-sidebar .nav-item.active { background-color: rgba(126, 184, 207, .14); box-shadow: inset 3px 0 #79b6ca; }
.platform-sidebar .nav-icon { color: #86bfd0; }
.platform-avatar { color: #122941; background-color: #86bfd0; }
.platform-topbar { background-color: rgba(243, 246, 250, .92); }
.btn-platform { box-shadow: 0 8px 18px rgba(31, 70, 111, .15); }
.platform-body .eyebrow.light { color: #b9d8e4; }
.platform-hero { color: #f7fafc; background: radial-gradient(circle at 88% 20%, rgba(134, 191, 208, .18), transparent 28%), linear-gradient(125deg, #173b57, #2a6885); box-shadow: 0 20px 55px rgba(17, 43, 67, .17); }
.platform-hero p:not(.eyebrow) { color: #cbdce6; }
.platform-pulse i { background-color: #72c4aa; box-shadow: 0 0 0 7px rgba(114, 196, 170, .13); }
.platform-pulse span { color: #c4d7e3; }
.plan-card { border-color: #d8e1ea; box-shadow: 0 8px 28px rgba(31, 70, 111, .05); }

/* Datix esintili profesyonel arayuz katmani. Yalnizca gorsel stiller degisir. */
:root {
    --ink: #282b30;
    --muted: #7f8cb1;
    --line: #dfe5ea;
    --surface: #ffffff;
    --canvas: #eff2f8;
    --forest: #5387e4;
    --forest-2: #426fbd;
    --mint: #e0eafa;
    --lime: #7fa6eb;
    --amber: #fbcc41;
    --red: #ff7d5c;
    --blue: #64c1fe;
    --shadow: none;
    --radius: 13px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3 { letter-spacing: -.02em; }
.auth-story h1,
.hero-card h2,
.platform-hero h2,
.metric-card strong,
.activity-score,
.scope-grid strong,
.plan-price strong { font-family: inherit; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline-color: rgba(83, 135, 228, .28); }

code { background-color: #e8edf5; color: #3d456b; }
.auth-body { background-color: #e6eaf1; }
.auth-story { color: #fff; background: radial-gradient(circle at 12% 10%, rgba(255,255,255,.16), transparent 28%), linear-gradient(145deg, #3f659c, #5387e4); }
.auth-story::after { border-color: rgba(255,255,255,.18); }
.auth-lead { color: #e4edfc; }
.auth-points { background-color: rgba(255,255,255,.18); }
.auth-points div { background-color: rgba(58, 96, 153, .78); }
.auth-points strong { color: #fff; }
.auth-points span { color: #dce8fa; }
.login-card { background-color: #f9fafc; }
.brand-dot { background-color: #5387e4; }
.language-switch { border-color: #dfe5ea; border-radius: 7px; box-shadow: none; }
.language-switch button.active { background-color: #5387e4; }

label { color: #3d456b; }
input, select, textarea { border-color: #dfe5ea; border-radius: 6px; box-shadow: none; }
input:hover, select:hover, textarea:hover { border-color: #b3bdd8; }
input:focus, select:focus, textarea:focus { border-color: #5387e4; box-shadow: 0 0 0 3px rgba(83, 135, 228, .12); }
.btn { border-radius: 6px; }
.btn-primary { background-color: #5387e4; box-shadow: none; }
.btn-primary:hover { background-color: #426fbd; }
.btn-ghost { border-color: #dfe5ea; color: #3d456b; background-color: #fff; }
.text-btn { color: #426fbd; }

.sidebar,
.platform-sidebar { border-color: transparent; color: #5a638f; background-color: #e6eaf1; }
.brand,
.sidebar-footer { border-color: #d8dee8; }
.brand strong { color: #282b30; }
.brand span,
.user-meta span { color: #7f8cb1; }
.brand-mark span,
.platform-story .brand-mark span,
.platform-brand .brand-mark span { background-color: #5387e4; }
.nav-label { color: #99a6c9; }
.nav-item { color: #5a638f; }
.nav-item:hover { color: #3d456b; background-color: rgba(83, 135, 228, .08); }
.nav-item.active,
.platform-sidebar .nav-item.active { color: #3f415e; background-color: #eff2f8; box-shadow: none; }
.nav-icon,
.platform-sidebar .nav-icon { color: #5387e4; }
.user-avatar,
.platform-avatar { color: #fff; background-color: #5387e4; }
.user-meta strong { color: #3d456b; }
.sidebar .icon-btn,
.platform-sidebar .icon-btn { color: #7f8cb1; }

.topbar,
.platform-topbar { border-color: transparent; background-color: rgba(239, 242, 248, .94); box-shadow: none; }
.breadcrumb { color: #99a6c9; }
.system-status i { background-color: #27ba89; box-shadow: 0 0 0 4px rgba(39, 186, 137, .12); }
.menu-toggle { color: #426fbd; background-color: #e0eafa; }

.hero-card,
.platform-hero { color: #fff; background: radial-gradient(circle at 88% 18%, rgba(255,255,255,.16), transparent 28%), linear-gradient(125deg, #426fbd, #5387e4); box-shadow: none; }
.hero-card,
.platform-hero { border-radius: 13px; }
.hero-card p:not(.eyebrow),
.platform-hero p:not(.eyebrow) { color: #e7eefc; }
.eyebrow { color: #426fbd; }
.eyebrow.light,
.platform-body .eyebrow.light { color: #dce8fa; }
.readiness,
.platform-pulse { background-color: rgba(255,255,255,.08); }
.readiness small,
.platform-pulse span { color: #e0eafa; }
.platform-pulse i { background-color: #3ed6a3; box-shadow: 0 0 0 7px rgba(62, 214, 163, .15); }

.card,
.metric-card,
.scope-grid article,
.risk-scale,
.plan-card { border-color: transparent; background-color: #fff; box-shadow: none; }
.metric-card { box-shadow: inset 0 3px #7fa6eb; }
.metric-card:nth-child(2) { box-shadow: inset 0 3px #3ed6a3; }
.metric-card:nth-child(3) { box-shadow: inset 0 3px #ffa68f; }
.metric-card:nth-child(4) { box-shadow: inset 0 3px #64c1fe; }
.metric-card strong { color: #3d456b; font-weight: 600; }
.metric-card.risk strong { color: #ff7d5c; }
.metric-card small,
.metric-label { color: #7f8cb1; }
.card-header,
.activity-item,
.table-toolbar { border-color: #edf0f5; }
.card-header h3 { font-weight: 600; }
.bar { background-color: #5387e4; }
.bar.scope-2 { background-color: #3ed6a3; }
.bar.scope-3 { background-color: #ffa68f; }
.scope-grid article { border-left-color: #5387e4; }
.scope-grid article:nth-child(2) { border-color: #3ed6a3; }
.scope-grid article:nth-child(3) { border-color: #ffa68f; }
.activity-dot.dusuk,
.risk-scale i { background-color: #27ba89; }

th { color: #7f8cb1; background-color: #f9fafc; }
td { border-color: #edf0f5; color: #3d456b; }
tbody tr:hover { background-color: #f9fafc; }
.table-search { color: #3d456b; }
.badge,
.badge.low,
.badge.dusuk,
.badge.dogrulandi,
.badge.hazir,
.badge.aktif { color: #16825e; background-color: #dff7ef; }
.badge.medium,
.badge.bekliyor,
.badge.taslak { color: #92710d; background-color: #fff5d5; }
.badge.high,
.badge.yuksek,
.badge.reddedildi { color: #b64c34; background-color: #ffebe6; }
.score-bar { background-color: #e8edf5; }
.score-bar i { background-color: #5387e4; }
.mini-btn { border-color: #dfe5ea; color: #426fbd; }
.info-banner { border-color: #c9daf8; color: #3d5680; background-color: #e8f0fd; }
.retention-banner { border-color: #f0df9b; background-color: #fff8df; }
.retention-icon { color: #fff; background-color: #5387e4; }
.file-drop { border-color: #b3bdd8; background-color: #f9fafc; }
.declaration-note { color: #4a5677; background-color: #e8edf5; }

.modal { border-radius: 13px; box-shadow: 0 24px 70px rgba(61, 69, 107, .24); }
.modal::backdrop { background-color: rgba(40, 43, 48, .64); }
.modal-close button { border-color: #dfe5ea; color: #7f8cb1; }
.form-message { color: #b64c34; background-color: #ffebe6; }
.form-message.success { color: #16825e; background-color: #dff7ef; }
.toast { border-color: #64c1fe; background-color: #3d456b; }

.platform-body { --platform: #5387e4; --platform-2: #426fbd; --platform-soft: #e0eafa; background-color: #eff2f8; }
.platform-auth .platform-story { background: radial-gradient(circle at 15% 15%, rgba(255,255,255,.16), transparent 28%), linear-gradient(145deg, #3f659c, #5387e4); }
.platform-auth-stats span { color: #e0eafa; }
.btn-platform { background-color: #5387e4; box-shadow: none; }
.btn-platform:hover { background-color: #426fbd; }
.platform-metrics .metric-card.revenue strong { color: #426fbd; }
.workspace-code,
.plan-subscriptions { color: #426fbd; background-color: #e0eafa; }
.plan-card::before { background-color: #5387e4; }
.feature-checks { background-color: #f9fafc; }
.company-status-control button { background-color: #5387e4; }

/* Modern tipografi olcegi. Yerlesim ve bilesen yapisi degistirilmez. */
:root {
    font-family: "Segoe UI Variable Text", "Inter", "Aptos", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    font-kerning: normal;
    font-synthesis: none;
}

body {
    color: #282b30;
    font-size: 1rem;
    line-height: 1.55;
    letter-spacing: -.006em;
}

h1, h2, h3,
.auth-story h1,
.hero-card h2,
.platform-hero h2,
.login-card h2 {
    font-family: "Segoe UI Variable Display", "Inter", "Aptos Display", "Segoe UI", sans-serif;
    font-weight: 650;
    letter-spacing: -.035em;
}

.auth-story h1 {
    font-size: clamp(2.75rem, 4.7vw, 4.8rem);
    line-height: 1.03;
}

.login-card h2 {
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.12;
}

.topbar h1 {
    font-size: 1.45rem;
    line-height: 1.2;
}

.hero-card h2,
.platform-hero h2 {
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    line-height: 1.12;
}

.section-heading h2 {
    font-size: clamp(1.55rem, 2.35vw, 2.1rem);
    line-height: 1.15;
}

.card-header h3 {
    font-size: 1.02rem;
    font-weight: 650;
    letter-spacing: -.015em;
}

.metric-card strong,
.scope-grid strong,
.plan-price strong,
.activity-score,
td,
.workspace-code {
    font-variant-numeric: tabular-nums;
}

.metric-card strong {
    font-size: 2.15rem;
    line-height: 1.05;
}

.auth-lead,
.hero-card p:not(.eyebrow),
.platform-hero p:not(.eyebrow) {
    font-size: .95rem;
    line-height: 1.65;
}

.nav-item {
    font-size: .82rem;
    font-weight: 550;
    letter-spacing: 0;
}

.nav-label,
.eyebrow {
    font-size: .64rem;
    font-weight: 750;
    letter-spacing: .12em;
}

label {
    font-size: .8rem;
    font-weight: 650;
}

input, select, textarea,
.btn {
    font-size: .84rem;
}

.btn,
.text-btn,
.mini-btn {
    font-weight: 650;
    letter-spacing: -.005em;
}

table { font-size: .77rem; }
th {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .055em;
}

.badge {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.muted,
.metric-card small,
.metric-label,
.unit,
.breadcrumb,
.system-status,
.security-note {
    line-height: 1.5;
}

/* Modern ve profesyonel arayuz son katmani. Yalnizca gorsel sunum degisir. */
:root {
    --ink: #1f2937;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --canvas: #f4f7fb;
    --forest: #4f7de2;
    --forest-2: #3f66bd;
    --mint: #e8f0ff;
    --lime: #73a0ef;
    --amber: #f4b740;
    --red: #ef705d;
    --blue: #59b5f7;
    --shadow: 0 16px 42px rgba(43, 58, 91, .08);
    --radius: 14px;
}

body { background-color: var(--canvas); }
::selection { color: #fff; background-color: #4f7de2; }

.sidebar,
.platform-sidebar {
    border-right: 1px solid #dfe6ef;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    box-shadow: 12px 0 34px rgba(45, 55, 79, .045);
}

.brand { background-color: rgba(255,255,255,.52); }
.brand-mark span { box-shadow: 0 4px 10px rgba(79, 125, 226, .22); }

.nav-item {
    border: 1px solid transparent;
    border-radius: 10px;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav-item:hover {
    border-color: rgba(79, 125, 226, .09);
    background-color: rgba(255,255,255,.68);
}

.nav-item.active,
.platform-sidebar .nav-item.active {
    border-color: #dfe8f7;
    color: #2f4f94;
    background-color: #fff;
    box-shadow: 0 7px 18px rgba(57, 82, 133, .09);
}

.nav-icon {
    border-radius: 7px;
    background-color: rgba(79, 125, 226, .09);
}

.nav-item.active .nav-icon { background-color: #e8f0ff; }

.sidebar-footer {
    background-color: rgba(255,255,255,.55);
    box-shadow: 0 -8px 24px rgba(45, 55, 79, .035);
}

.user-avatar,
.platform-avatar { box-shadow: 0 6px 14px rgba(79, 125, 226, .24); }

.topbar,
.platform-topbar {
    border-bottom: 1px solid rgba(226, 232, 240, .86);
    background-color: rgba(255,255,255,.82);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 6px 24px rgba(45, 55, 79, .045);
}

.menu-toggle,
.language-switch,
.icon-btn,
.mini-btn,
.modal-close button { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }

.hero-card,
.platform-hero {
    border: 1px solid rgba(255,255,255,.22);
    background: radial-gradient(circle at 82% 10%, rgba(255,255,255,.20), transparent 26%), linear-gradient(125deg, #3456a4 0%, #4f7de2 58%, #69a0ed 100%);
    box-shadow: 0 20px 50px rgba(52, 86, 164, .20);
}

.hero-card::before,
.platform-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, rgba(255,255,255,.055), transparent 45%);
}

.card,
.metric-card,
.scope-grid article,
.risk-scale,
.plan-card {
    border: 1px solid rgba(226, 232, 240, .94);
    background-color: rgba(255,255,255,.98);
    box-shadow: 0 10px 30px rgba(43, 58, 91, .055);
}

.card,
.metric-card,
.plan-card { transition: border-color .2s ease, box-shadow .2s ease; }

.card:hover,
.plan-card:hover {
    border-color: #d7e0ec;
    box-shadow: 0 15px 38px rgba(43, 58, 91, .085);
}

.metric-card {
    --metric-accent: #7fa6eb;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 3px var(--metric-accent), 0 10px 30px rgba(43, 58, 91, .055);
}

.metric-card:nth-child(2) {
    --metric-accent: #3ecf9b;
    box-shadow: inset 0 3px var(--metric-accent), 0 10px 30px rgba(43, 58, 91, .055);
}

.metric-card:nth-child(3) {
    --metric-accent: #f59a82;
    box-shadow: inset 0 3px var(--metric-accent), 0 10px 30px rgba(43, 58, 91, .055);
}

.metric-card:nth-child(4) {
    --metric-accent: #59b5f7;
    box-shadow: inset 0 3px var(--metric-accent), 0 10px 30px rgba(43, 58, 91, .055);
}

.metric-card::after {
    content: "";
    position: absolute;
    width: 82px;
    height: 82px;
    top: -38px;
    right: -28px;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--metric-accent) 16%, transparent);
}

.metric-card > * { position: relative; z-index: 1; }

.card-header { background-color: rgba(249, 250, 252, .48); }

.btn {
    border-radius: 9px;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.btn-primary,
.btn-platform {
    background: linear-gradient(135deg, #4f7de2, #4169c2);
    box-shadow: 0 8px 18px rgba(79, 125, 226, .20);
}

.btn-primary:hover,
.btn-platform:hover {
    background: linear-gradient(135deg, #456fcd, #385cae);
    box-shadow: 0 10px 22px rgba(63, 102, 189, .24);
}

.btn-ghost:hover,
.mini-btn:hover {
    border-color: #cbd8eb;
    color: #3456a4;
    background-color: #f7f9fd;
}

input,
select,
textarea {
    border-color: #dce3ed;
    border-radius: 9px;
    background-color: #fbfcfe;
    box-shadow: inset 0 1px 2px rgba(31, 41, 55, .025);
}

input:hover,
select:hover,
textarea:hover { border-color: #c5d0df; background-color: #fff; }

input:focus,
select:focus,
textarea:focus {
    border-color: #6e95e8;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(79, 125, 226, .11);
}

.table-search,
.table-search:hover,
.table-search:focus { background-color: transparent; }

th {
    color: #718096;
    background-color: #f7f9fc;
}

td { border-color: #edf1f6; }
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background-color: #f7faff; }

.badge { border: 1px solid rgba(22, 130, 94, .10); }
.badge.medium,
.badge.bekliyor,
.badge.taslak { border-color: rgba(146, 113, 13, .11); }
.badge.high,
.badge.yuksek,
.badge.reddedildi { border-color: rgba(182, 76, 52, .11); }

.info-banner,
.retention-banner,
.declaration-note,
.feature-checks { border-radius: 10px; }

.modal {
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 30px 90px rgba(30, 41, 59, .28);
}

.language-switch {
    border-color: #e2e8f0;
    background-color: rgba(255,255,255,.9);
    box-shadow: 0 5px 16px rgba(43, 58, 91, .07);
}

.login-card { background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
.auth-story,
.platform-auth .platform-story {
    background: radial-gradient(circle at 18% 14%, rgba(255,255,255,.17), transparent 29%), linear-gradient(145deg, #3456a4, #4f7de2 64%, #69a0ed);
}

* { scrollbar-color: #b8c4d4 transparent; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background-color: #b8c4d4; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: #94a3b8; }

.geo-preview {
    min-height: 190px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px dashed #b8c8df;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff, #eef5ff);
    color: #64748b;
}
.geo-preview svg { width: 100%; height: 190px; }
.geo-shape { fill: rgba(61, 101, 190, .22); stroke: #365fad; stroke-width: 3; vector-effect: non-scaling-stroke; }
.integration-status { margin-top: 18px; display: grid; gap: 8px; }
.integration-view.active { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.integration-view > .section-heading { grid-column: 1 / -1; }
.integration-view > .card.narrow-card { width: 100%; max-width: none; margin: 0; }
.form-grid > .field-align-start {
    align-self: start;
    align-content: start;
}
.integration-view .form-grid > .field-align-end {
    align-self: stretch;
    align-content: end;
}
.integration-view .form-grid > label > input:not([type="checkbox"]),
.integration-view .form-grid > label > select {
    height: 50px;
    min-height: 50px;
}
.integration-view > .section-heading + .card { grid-column: 1; grid-row: 2; }
.integration-view > .info-banner + .card { grid-column: 2; grid-row: 2; }
.integration-view > .info-banner { grid-column: 1 / -1; grid-row: 3; margin: 0; }
.integration-view > .integration-status { grid-column: 1 / -1; grid-row: 4; margin-top: 0; }
@media (max-width: 1180px) {
    .integration-view.active { grid-template-columns: 1fr; }
    .integration-view > .section-heading,
    .integration-view > .section-heading + .card,
    .integration-view > .info-banner,
    .integration-view > .info-banner + .card,
    .integration-view > .integration-status { grid-column: 1; grid-row: auto; }
}
.checkbox-label {
    display: flex !important;
    min-height: 42px;
    align-items: center;
    align-self: end;
    justify-content: flex-start;
    flex-direction: row !important;
    gap: 10px;
    line-height: 1.35;
}
.checkbox-label input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px;
    min-height: 17px !important;
    flex: 0 0 17px;
    margin: 0;
    padding: 0;
    accent-color: var(--primary, #4f7de2);
}
.form-subsection {
    margin: .35rem 0 0;
    border: 1px solid #dfe6f0;
    border-radius: 12px;
    padding: 0 1rem 1rem;
    background: #f8faff;
}
.form-subsection legend {
    padding: 0 .5rem;
    color: #3d65be;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .04em;
}
.form-subsection .nested-grid { padding: .8rem 0 0; }
.repeat-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.repeat-heading > div, .repeat-heading > strong { display: grid; gap: .2rem; }
.repeat-heading small { color: #718096; font-weight: 500; }
.repeat-heading.compact { margin-top: .2rem; }
.repeat-stack { display: grid; gap: .9rem; }
.repeat-card { border: 1px solid #dfe6f0; border-radius: 12px; padding: .9rem; background: #fbfcff; }
.repeat-card.producer-card { background: #fff; }
.repeat-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 .15rem .65rem; }
.repeat-card .nested-grid { padding: 0; }
#simplified-declaration-dialog.modal-wide { width: min(980px, calc(100vw - 2rem)); }
@media (max-width: 560px) { .repeat-heading, .repeat-card-head { align-items: flex-start; flex-direction: column; } }
.badge.gecersiz, .badge.kapatildi { color: #596579; background-color: #edf1f5; }
.badge.bildirildi, .badge.dogrulandi { color: #25675e; background-color: #e2f1ed; }
.badge.ihmal_edilemez, .badge.bloke { color: #9d3f3f; background-color: #f8e7e7; }
td > .badge + small { display: block; margin-top: 6px; color: #64748b; }

/* Uydu analizi: masaüstünde tek ekrana sığan, kaydırmasız kompakt çalışma alanı. */
.satellite-dialog {
    position: relative;
    width: min(860px, calc(100vw - 2rem));
    max-height: calc(100dvh - 1.5rem);
    overflow: hidden;
    border: 1px solid rgba(196, 210, 231, .82);
    border-radius: 24px;
    background: linear-gradient(180deg, #f7faff 0, #fff 42%);
    box-shadow: 0 34px 90px rgba(30, 49, 83, .28);
}

.satellite-dialog::backdrop {
    background: rgba(18, 29, 48, .66);
    backdrop-filter: blur(7px);
}

.satellite-dialog .modal-close {
    position: absolute;
    z-index: 3;
    top: 1rem;
    right: 1rem;
    float: none;
    margin: 0;
}

.satellite-dialog .modal-close button {
    width: 38px;
    height: 38px;
    border-color: rgba(148, 163, 184, .28);
    color: #66758f;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 8px 22px rgba(43, 64, 99, .1);
    backdrop-filter: blur(8px);
}

.satellite-modal-header {
    padding: 1.45rem 1.75rem 1rem;
    background: radial-gradient(circle at 76% -20%, rgba(79, 125, 226, .18), transparent 42%);
}

.satellite-title-row { display: flex; align-items: center; gap: .9rem; }
.satellite-title-row .eyebrow { margin-bottom: .28rem; }
.satellite-title-row h2 { color: #1e293b; font-size: 1.75rem; letter-spacing: -.035em; }

.satellite-header-icon,
.satellite-provider-icon {
    position: relative;
    display: block;
    flex: 0 0 auto;
    border-radius: 50%;
}

.satellite-header-icon {
    width: 46px;
    height: 46px;
    border: 1px solid #c9d9f7;
    background: linear-gradient(145deg, #e7efff, #fff);
    box-shadow: inset 0 0 0 8px rgba(79, 125, 226, .07);
}

.satellite-header-icon::before,
.satellite-header-icon::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.satellite-header-icon::before { inset: 15px; background: #4f7de2; box-shadow: 0 0 0 5px rgba(79, 125, 226, .12); }
.satellite-header-icon::after { inset: 7px; border: 1px solid rgba(79, 125, 226, .32); border-left-color: transparent; transform: rotate(-32deg); }

.satellite-dialog-body {
    display: grid;
    gap: 1rem;
    padding: 0 1.75rem 1.45rem;
}

.satellite-provider-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    border: 1px solid #cfddf6;
    border-radius: 16px;
    padding: .85rem .95rem;
    background: linear-gradient(135deg, #eef4ff, #f8fbff);
}

.satellite-provider-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #bed0f4;
    background: #fff;
}

.satellite-provider-icon::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #4f7de2; }
.satellite-provider-icon::after { content: ""; position: absolute; inset: 6px; border: 1px solid #86a6ea; border-top-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(35deg); }
.satellite-provider-card strong { display: block; color: #24375d; font-size: .86rem; }
.satellite-provider-card p { margin: .22rem 0 0; color: #687792; font-size: .72rem; line-height: 1.45; }
.satellite-run-btn { min-height: 42px; padding-inline: 1.1rem; white-space: nowrap; box-shadow: 0 8px 20px rgba(79, 125, 226, .2); }

.satellite-manual-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: .1rem .15rem 0; }
.satellite-manual-heading > div { display: grid; gap: .15rem; }
.satellite-manual-heading .eyebrow { margin: 0; font-size: .61rem; }
.satellite-manual-heading strong { color: #29364e; font-size: .92rem; }
.satellite-manual-chip { border: 1px solid #dbe4f1; border-radius: 999px; padding: .35rem .62rem; color: #65748e; background: #f8fafc; font-size: .64rem; font-weight: 750; }

.satellite-dialog .satellite-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    padding: 0;
}

.satellite-dialog .satellite-form label { gap: .38rem; color: #3d4c68; font-size: .72rem; }
.satellite-dialog .satellite-form input,
.satellite-dialog .satellite-form select,
.satellite-dialog .satellite-form textarea { border-color: #d6e0ee; border-radius: 12px; background: #fbfcff; }
.satellite-dialog .satellite-form input,
.satellite-dialog .satellite-form select { min-height: 46px; padding: .68rem .75rem; }
.satellite-dialog .satellite-form textarea { min-height: 88px; max-height: 88px; padding: .7rem .75rem; resize: none; }
.satellite-summary-field,
.satellite-actions,
.satellite-form-message { grid-column: 1 / -1; }
.satellite-actions { margin-top: .05rem; padding-top: .9rem; }
.satellite-actions .btn { min-width: 150px; }

@media (max-height: 720px) and (min-width: 641px) {
    .satellite-modal-header { padding-top: 1rem; padding-bottom: .65rem; }
    .satellite-header-icon { width: 40px; height: 40px; }
    .satellite-dialog-body { gap: .72rem; padding-bottom: 1rem; }
    .satellite-provider-card { padding-block: .65rem; }
    .satellite-dialog .satellite-form { gap: .65rem; }
    .satellite-dialog .satellite-form input,
    .satellite-dialog .satellite-form select { min-height: 40px; padding-block: .5rem; }
    .satellite-dialog .satellite-form textarea { min-height: 64px; max-height: 64px; }
    .satellite-actions { padding-top: .65rem; }
}

@media (max-width: 720px) {
    .satellite-dialog { max-height: calc(100dvh - 1rem); overflow-y: auto; scrollbar-width: none; }
    .satellite-dialog::-webkit-scrollbar { display: none; }
    .satellite-provider-card { grid-template-columns: 40px minmax(0, 1fr); }
    .satellite-run-btn { grid-column: 1 / -1; width: 100%; }
    .satellite-dialog .satellite-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .satellite-field-area { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .satellite-modal-header { padding: 1.15rem 1.1rem .75rem; }
    .satellite-dialog-body { padding: 0 1.1rem 1.1rem; }
    .satellite-title-row { padding-right: 2.4rem; }
    .satellite-header-icon { display: none; }
    .satellite-manual-chip { display: none; }
    .satellite-dialog .satellite-form { grid-template-columns: 1fr; }
    .satellite-field-area,
    .satellite-summary-field,
    .satellite-actions,
    .satellite-form-message { grid-column: 1; }
    .satellite-actions { display: grid; grid-template-columns: 1fr; }
    .satellite-actions .btn { width: 100%; }
}

/* Veri giriş modalleri: geniş çalışma alanı, kısa satırlar ve görünür kaydırma çubuğu olmadan tek ekran. */
.compact-data-dialog {
    position: relative;
    width: min(900px, calc(100vw - 2rem));
    max-height: calc(100dvh - 1.5rem);
    overflow: hidden;
    border: 1px solid rgba(201, 213, 231, .9);
    border-radius: 22px;
    background: linear-gradient(180deg, #f7faff 0, #fff 24%);
    box-shadow: 0 32px 88px rgba(30, 49, 83, .27);
}

.compact-data-dialog::backdrop {
    background: rgba(18, 29, 48, .66);
    backdrop-filter: blur(7px);
}

.compact-data-dialog .modal-close {
    position: absolute;
    z-index: 3;
    top: .9rem;
    right: .9rem;
    float: none;
    margin: 0;
}

.compact-data-dialog .modal-close button {
    width: 38px;
    height: 38px;
    border-color: rgba(148, 163, 184, .3);
    color: #66758f;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 7px 20px rgba(43, 64, 99, .1);
}

.compact-data-dialog .modal-header {
    border-bottom: 1px solid rgba(220, 229, 241, .8);
    padding: 1.25rem 1.55rem 1rem;
    background: radial-gradient(circle at 74% -25%, rgba(79, 125, 226, .17), transparent 43%);
}

.compact-data-dialog .modal-header .eyebrow { margin-bottom: .3rem; }
.compact-data-dialog .modal-header h2 { color: #1e293b; font-size: 1.55rem; letter-spacing: -.035em; }
.compact-data-dialog .form-grid { gap: .72rem .8rem; padding: 1rem 1.55rem 1.25rem; }
.compact-data-dialog .form-grid label { gap: .34rem; color: #3d4c68; font-size: .7rem; }
.compact-data-dialog .form-grid label small { color: #7b879b; font-size: .62rem; font-weight: 550; line-height: 1.35; }
.compact-data-dialog input,
.compact-data-dialog select,
.compact-data-dialog textarea { border-color: #d6e0ee; border-radius: 11px; background: #fbfcff; }
.compact-data-dialog input,
.compact-data-dialog select { min-height: 42px; padding: .56rem .68rem; }
.compact-data-dialog textarea { min-height: 72px; max-height: 82px; padding: .62rem .7rem; resize: none; }
.compact-data-dialog .form-actions { grid-column: 1 / -1; margin-top: .1rem; padding-top: .85rem; }
.compact-data-dialog .form-actions .btn { min-width: 142px; }
.compact-data-dialog .form-message { grid-column: 1 / -1; }
.compact-data-dialog .info-banner { margin: 0; border-radius: 11px; padding: .7rem .8rem; font-size: .68rem; line-height: 1.45; }

.product-data-dialog .form-grid,
.risk-data-dialog .form-grid,
.emission-data-dialog .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-data-dialog .form-grid > .form-actions,
.product-data-dialog .form-grid > .form-message { grid-column: 1 / -1; }
.risk-plan-field { grid-column: span 2; }
.risk-date-field { grid-column: span 1; }
.risk-info-field { grid-column: 1 / -1; }
.emission-source-field { grid-column: span 2; }
.emission-uncertainty-field { grid-column: span 1; }
.concern-data-dialog { width: min(820px, calc(100vw - 2rem)); }
.concern-data-dialog .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-height: 680px) and (min-width: 721px) {
    .compact-data-dialog .modal-header { padding-top: .85rem; padding-bottom: .65rem; }
    .compact-data-dialog .form-grid { gap: .55rem .7rem; padding-top: .75rem; padding-bottom: .85rem; }
    .compact-data-dialog input,
    .compact-data-dialog select { min-height: 38px; padding-block: .42rem; }
    .compact-data-dialog textarea { min-height: 58px; max-height: 64px; }
    .compact-data-dialog .form-actions { padding-top: .55rem; }
}

@media (max-width: 720px) {
    .compact-data-dialog { max-height: calc(100dvh - 1rem); overflow-y: auto; scrollbar-width: none; }
    .compact-data-dialog::-webkit-scrollbar { display: none; }
    .product-data-dialog .form-grid,
    .risk-data-dialog .form-grid,
    .emission-data-dialog .form-grid,
    .concern-data-dialog .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .risk-plan-field,
    .emission-source-field { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .compact-data-dialog .modal-header { padding: 1.05rem 1rem .75rem; }
    .compact-data-dialog .form-grid { grid-template-columns: 1fr; padding: .85rem 1rem 1rem; }
    .compact-data-dialog .span-2,
    .risk-plan-field,
    .risk-date-field,
    .risk-info-field,
    .emission-source-field,
    .emission-uncertainty-field { grid-column: 1; }
    .compact-data-dialog .form-actions { display: grid; grid-template-columns: 1fr; }
    .compact-data-dialog .form-actions .btn { width: 100%; }
}

/* Ortak Hexagraphene marka alanlari. Beyaz/seffaf logo her zeminde okunakli kalir. */
.brand-logo {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-logo-surface {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: min(232px, 72%);
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 15px;
    padding: .78rem 1rem;
    background: linear-gradient(145deg, #111827, #1e293b);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .24);
}

.brand-logo-hero {
    width: 100%;
    max-height: 96px;
}

.sidebar .brand,
.platform-sidebar .brand {
    min-height: 96px;
    justify-content: center;
    border-bottom-color: rgba(255, 255, 255, .09);
    padding: .68rem 1rem;
    background: linear-gradient(145deg, #111827, #1e293b);
}

.brand-logo-sidebar {
    width: min(190px, 100%);
    max-height: 72px;
}

/* Firma logosu renkliyse açık zemin kullan; beyaz yedek marka logosu koyu zeminde kalır. */
.sidebar .company-brand.has-company-logo {
    border-bottom-color: #d8e4f2;
    background: linear-gradient(145deg, #f9fbff 0%, #e8f0fb 100%);
    box-shadow: inset 0 -1px 0 rgba(75, 112, 170, .08);
}

.sidebar .company-brand.has-company-logo .company-brand-logo {
    filter: drop-shadow(0 5px 10px rgba(37, 78, 139, .12));
}

.mobile-brand {
    width: min(220px, 100%);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    padding: .68rem .85rem;
    background: linear-gradient(145deg, #111827, #1e293b);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .14);
}

.brand-logo-mobile {
    width: 100%;
    max-height: 74px;
}

@media (max-width: 820px) {
    .mobile-brand { margin-bottom: 2rem; }
}

/* Tüm popup pencerelerinde ortak, kurumsal üst başlık tasarımı. */
dialog.modal:not(.satellite-dialog) {
    position: relative;
    border: 1px solid rgba(196, 210, 231, .82);
    background: #fff;
    box-shadow: 0 34px 90px rgba(30, 49, 83, .28);
}

dialog.modal:not(.satellite-dialog)::backdrop {
    background: rgba(18, 29, 48, .66);
    backdrop-filter: blur(7px);
}

dialog.modal:not(.satellite-dialog) > .modal-header {
    min-height: 104px;
    box-sizing: border-box;
    border-bottom: 1px solid #dfe8f5;
    padding: 1.35rem 4.75rem 1.05rem 1.7rem;
    background:
        radial-gradient(circle at 88% -30%, rgba(79, 125, 226, .2), transparent 46%),
        linear-gradient(135deg, #f7faff 0%, #eef4ff 100%);
}

dialog.modal:not(.satellite-dialog) > .modal-header .eyebrow {
    margin: 0 0 .32rem;
    color: #3f70ca;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .12em;
}

dialog.modal:not(.satellite-dialog) > .modal-header h2 {
    margin: 0;
    color: #202d42;
    font-size: 1.55rem;
    line-height: 1.15;
    letter-spacing: -.035em;
}

dialog.modal:not(.satellite-dialog) > .modal-header .muted,
dialog.modal:not(.satellite-dialog) > .modal-header > p:last-child:not(.eyebrow) {
    margin: .38rem 0 0;
    color: #6a7890;
    font-size: .75rem;
    line-height: 1.4;
}

dialog.modal:not(.satellite-dialog) > .modal-close {
    position: absolute;
    z-index: 5;
    top: 1rem;
    right: 1rem;
    float: none;
    margin: 0;
}

dialog.modal:not(.satellite-dialog) > .modal-close button {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(148, 163, 184, .3);
    color: #65748e;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 22px rgba(43, 64, 99, .11);
    backdrop-filter: blur(8px);
}

dialog.modal:not(.satellite-dialog) > .modal-close button:hover {
    border-color: #b8cae7;
    color: #315faa;
    background: #fff;
}

@media (max-width: 520px) {
    dialog.modal:not(.satellite-dialog) > .modal-header {
        min-height: 92px;
        padding: 1.1rem 4rem .9rem 1.1rem;
    }

    dialog.modal:not(.satellite-dialog) > .modal-header h2 { font-size: 1.3rem; }
    dialog.modal:not(.satellite-dialog) > .modal-close { top: .75rem; right: .75rem; }
}

/* Kurumsal araç kartlarında form alanlarını kart sınırlarından ayırır. */
.view[data-view-panel="kurumsal-araclar"] .dashboard-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    align-items: start;
    gap: 1.35rem;
}

.view[data-view-panel="kurumsal-araclar"] .card {
    min-width: 0;
    overflow: hidden;
}

.view[data-view-panel="kurumsal-araclar"] .card > .form-stack {
    margin: 0;
    padding: 1.4rem 1.45rem 1.55rem;
}

.view[data-view-panel="kurumsal-araclar"] .form-stack > .form-grid {
    gap: .9rem;
    padding: 0;
}

.view[data-view-panel="kurumsal-araclar"] .form-stack > label,
.view[data-view-panel="kurumsal-araclar"] .form-stack > .form-grid > label {
    min-width: 0;
}

.view[data-view-panel="kurumsal-araclar"] .form-stack input,
.view[data-view-panel="kurumsal-araclar"] .form-stack select {
    width: 100%;
    min-width: 0;
}

.view[data-view-panel="kurumsal-araclar"] .form-stack > .btn {
    width: 100%;
    justify-content: center;
}

.view[data-view-panel="kurumsal-araclar"] #supplier-invitations {
    min-height: 0;
    border-top: 1px solid var(--line);
}

@media (max-width: 1280px) {
    .view[data-view-panel="kurumsal-araclar"] .dashboard-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 760px) {
    .view[data-view-panel="kurumsal-araclar"] .dashboard-grid { grid-template-columns: 1fr; }
    .view[data-view-panel="kurumsal-araclar"] .card > .form-stack { padding: 1.2rem; }
}

/* Yönetişim kartlarında eşit sütunlar ve güvenli form iç boşlukları. */
.view[data-view-panel="yonetisim"] .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.35rem;
}

.view[data-view-panel="yonetisim"] .card {
    min-width: 0;
    overflow: hidden;
}

.view[data-view-panel="yonetisim"] .card > .form-stack {
    margin: 0;
    padding: 1.4rem 1.45rem 1.55rem;
}

.view[data-view-panel="yonetisim"] .form-stack > .form-grid {
    gap: .9rem;
    padding: 0;
}

.view[data-view-panel="yonetisim"] .form-stack > label,
.view[data-view-panel="yonetisim"] .form-stack > .form-grid > label {
    min-width: 0;
}

.view[data-view-panel="yonetisim"] .form-stack input,
.view[data-view-panel="yonetisim"] .form-stack select,
.view[data-view-panel="yonetisim"] .form-stack textarea {
    width: 100%;
    min-width: 0;
}

.view[data-view-panel="yonetisim"] .form-stack > .btn {
    width: 100%;
    justify-content: center;
}

.view[data-view-panel="yonetisim"] #privacy-request-list {
    min-height: 0;
    border-top: 1px solid var(--line);
}

.view[data-view-panel="yonetisim"] #governance-summary {
    min-height: 120px;
}

@media (max-width: 980px) {
    .view[data-view-panel="yonetisim"] .dashboard-grid { grid-template-columns: 1fr; }
    .view[data-view-panel="yonetisim"] .card.span-2 { grid-column: span 1; }
}

@media (max-width: 560px) {
    .view[data-view-panel="yonetisim"] .card > .form-stack { padding: 1.15rem; }
    .view[data-view-panel="yonetisim"] .form-stack > .form-grid { grid-template-columns: 1fr; }
}

/* Hibe bütçesi penceresi: iki dengeli, kompakt form kartı. */
#grant-dialog.grant-dialog {
    width: min(1040px, calc(100vw - 2rem));
    max-height: min(860px, calc(100vh - 2rem));
    padding: 0;
    overflow: auto;
}

.grant-dialog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 1.35rem;
    align-items: start;
}

.grant-form-card {
    min-width: 0;
    margin: 0;
    padding: 1.35rem;
    gap: .95rem;
    border-color: #dfe7f2;
    box-shadow: 0 12px 30px rgba(35, 55, 89, .07);
}

.grant-form-heading {
    margin: -1.35rem -1.35rem .15rem;
    padding: 1.05rem 1.35rem;
    border-bottom: 1px solid var(--line);
    background: rgba(248, 250, 253, .72);
}

.grant-form-heading .eyebrow { margin: 0 0 .3rem; }
.grant-form-heading h3 { margin: 0; font-size: 1.08rem; }
.grant-form-card > .form-grid { gap: .85rem; padding: 0; }
.grant-form-card label { min-width: 0; gap: .42rem; }
.grant-form-card input,
.grant-form-card select,
.grant-form-card textarea { width: 100%; min-width: 0; }
.grant-form-card input,
.grant-form-card select { min-height: 48px; }
.grant-form-card textarea { min-height: 90px; }
.grant-form-card > .btn { width: 100%; justify-content: center; margin-top: .1rem; }
.grant-form-card > .form-message { min-height: 0; margin: 0; }

@media (max-width: 820px) {
    #grant-dialog.grant-dialog { width: min(680px, calc(100vw - 1rem)); }
    .grant-dialog-grid { grid-template-columns: 1fr; padding: 1rem; }
}

@media (max-width: 560px) {
    .grant-dialog-grid { padding: .75rem; gap: .9rem; }
    .grant-form-card { padding: 1.05rem; }
    .grant-form-heading { margin: -1.05rem -1.05rem .1rem; padding: .95rem 1.05rem; }
    .grant-form-card > .form-grid { grid-template-columns: 1fr; }
}

/* Hazırlık ve finans kartlarında tutarlı form yerleşimi. */
.view[data-view-panel="hazirlik-finans"] .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.35rem;
}

.view[data-view-panel="hazirlik-finans"] .card {
    min-width: 0;
    overflow: hidden;
}

.view[data-view-panel="hazirlik-finans"] .card > .form-stack {
    margin: 0;
    padding: 1.4rem 1.45rem 1.55rem;
}

.view[data-view-panel="hazirlik-finans"] .card > .form-stack + .form-stack {
    border-top: 1px solid var(--line);
    background: rgba(248, 250, 252, .58);
}

.view[data-view-panel="hazirlik-finans"] .form-stack > .form-grid {
    gap: .9rem;
    padding: 0;
}

.view[data-view-panel="hazirlik-finans"] .form-stack > label,
.view[data-view-panel="hazirlik-finans"] .form-stack > .form-grid > label {
    min-width: 0;
}

.view[data-view-panel="hazirlik-finans"] .form-stack input,
.view[data-view-panel="hazirlik-finans"] .form-stack select {
    width: 100%;
    min-width: 0;
}

.view[data-view-panel="hazirlik-finans"] .form-stack > .btn {
    width: 100%;
    justify-content: center;
}

.view[data-view-panel="hazirlik-finans"] #readiness-results,
.view[data-view-panel="hazirlik-finans"] #finance-results {
    min-height: 0;
    border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
    .view[data-view-panel="hazirlik-finans"] .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .view[data-view-panel="hazirlik-finans"] .card > .form-stack { padding: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Giriş ve açık bilgi merkezi: kısa ekranlarda içerik kesilmeden dengeli yerleşim. */
.auth-story > .eyebrow,
.auth-story-content > .eyebrow { position: relative; z-index: 1; color: rgba(255,255,255,.82); }

@media (min-width: 821px) {
    .auth-body:has(.knowledge-center-shell) {
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .auth-body .knowledge-center-shell {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        grid-template-columns: minmax(0, 1fr) minmax(540px, 1fr);
        align-items: start;
    }

    .knowledge-center-shell > .auth-story {
        position: sticky;
        top: 0;
        min-height: 100vh;
        height: 100vh;
        padding: clamp(2.5rem, 4.5vw, 4.5rem);
    }

    .knowledge-center-shell > .login-card {
        min-height: 100vh;
        justify-content: flex-start;
        overflow: visible;
        padding: clamp(2.5rem, 4.5vw, 4.5rem);
    }

    .knowledge-center-shell .login-card > .form-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 1rem 1.15rem;
        margin-top: 1.5rem;
    }

    .knowledge-center-shell .login-card > .form-stack > label {
        min-width: 0;
        align-content: start;
    }

    .knowledge-center-shell .login-card > .form-stack > button,
    .knowledge-center-shell .login-card > .form-stack > .form-message {
        grid-column: 1 / -1;
    }

    .knowledge-center-shell #knowledge-assessment-result {
        min-height: 0;
        margin-top: 1.25rem;
    }
}

@media (min-width: 821px) and (max-width: 1100px) {
    .auth-body .knowledge-center-shell {
        grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
    }

    .knowledge-center-shell .login-card > .form-stack {
        grid-template-columns: 1fr;
    }

    .knowledge-center-shell .login-card > .form-stack > button,
    .knowledge-center-shell .login-card > .form-stack > .form-message {
        grid-column: 1;
    }
}

@media (min-width: 821px) and (max-height: 800px) {
    .auth-shell:not(.knowledge-center-shell) .auth-story {
        padding: 1.5rem clamp(2rem, 3.6vw, 3.25rem);
    }

    .auth-shell:not(.knowledge-center-shell) .brand-logo-surface-hero {
        width: min(188px, 62%);
        padding: .55rem .75rem;
    }

    .auth-shell:not(.knowledge-center-shell) .brand-logo-hero { max-height: 66px; }
    .auth-shell:not(.knowledge-center-shell) .auth-story h1 {
        margin: .8rem 0;
        font-size: clamp(2.3rem, 4vw, 3.35rem);
        line-height: 1.04;
    }

    .auth-shell:not(.knowledge-center-shell) .auth-lead { line-height: 1.5; }
    .auth-shell:not(.knowledge-center-shell) .auth-points { margin-top: 1.35rem; }
    .auth-shell:not(.knowledge-center-shell) .auth-points div { padding: .85rem; }
    .auth-shell:not(.knowledge-center-shell) .login-card {
        padding-top: 1.15rem;
        padding-bottom: 1.15rem;
    }

    .auth-shell:not(.knowledge-center-shell) .login-card h2 { font-size: 2rem; }
    .auth-shell:not(.knowledge-center-shell) .login-card-inner > .form-stack {
        gap: .85rem;
        margin-top: 1rem;
    }

    .auth-shell:not(.knowledge-center-shell) .security-note { margin-top: .8rem; }
    .auth-shell:not(.knowledge-center-shell) .platform-login-link { margin-top: .55rem; }
}

@media (max-width: 820px) {
    .auth-body { overflow-x: hidden; overflow-y: auto; }
    .auth-body .auth-shell { height: auto; min-height: 100vh; overflow: visible; }
    .auth-body .login-card { min-height: 100vh; justify-content: flex-start; padding: 1.5rem clamp(1.1rem, 6vw, 2.5rem) 2rem; }
    .knowledge-center-shell .login-card > .form-stack { margin-top: 1.25rem; }
    .knowledge-center-shell #knowledge-assessment-result { min-height: 0; }
}

/* Platform ekosistemi: uzun ve ardışık formları okunabilir kartlara dönüştürür. */
.platform-view[data-platform-panel="ecosystem"] .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.35rem;
}

.platform-view[data-platform-panel="ecosystem"] .card {
    min-width: 0;
    overflow: hidden;
}

.platform-view[data-platform-panel="ecosystem"] .card > .form-stack {
    gap: 1rem;
    margin: 0;
    padding: 1.4rem 1.45rem 1.55rem;
}

.platform-view[data-platform-panel="ecosystem"] .card > .form-stack + .form-stack {
    border-top: 1px solid var(--line);
}

.platform-view[data-platform-panel="ecosystem"] .form-stack > .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    padding: 0;
}

.platform-view[data-platform-panel="ecosystem"] .form-stack > label,
.platform-view[data-platform-panel="ecosystem"] .form-stack > .form-grid > label,
.platform-view[data-platform-panel="ecosystem"] .form-stack > fieldset {
    min-width: 0;
}

.platform-view[data-platform-panel="ecosystem"] .form-stack input:not([type="checkbox"]),
.platform-view[data-platform-panel="ecosystem"] .form-stack select,
.platform-view[data-platform-panel="ecosystem"] .form-stack textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.platform-view[data-platform-panel="ecosystem"] .form-stack textarea {
    resize: vertical;
}

.platform-view[data-platform-panel="ecosystem"] .form-stack > .btn {
    width: 100%;
    justify-content: center;
}

.platform-view[data-platform-panel="ecosystem"] .activity-list {
    min-height: 0;
    border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
    .platform-view[data-platform-panel="ecosystem"] .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .platform-view[data-platform-panel="ecosystem"] .card > .form-stack {
        padding: 1.15rem;
    }

    .platform-view[data-platform-panel="ecosystem"] .form-stack > .form-grid {
        grid-template-columns: 1fr;
    }
}

/* EUDR/PPWR eğitim merkezi */
.learning-boundary { display:flex; align-items:center; gap:.8rem; margin-bottom:1rem; padding:.95rem 1.1rem; border:1px solid #bfd4ff; border-radius:14px; color:#31548b; background:#edf4ff; }
.learning-boundary strong { flex:0 0 auto; color:#173d78; }
.learning-summary-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:1rem; margin-bottom:1rem; }
.learning-metric { display:flex; flex-direction:column; gap:.2rem; min-width:0; padding:1.15rem 1.25rem; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:var(--shadow-sm); }
.learning-metric strong { font-size:1.7rem; line-height:1; color:var(--primary); }
.learning-metric span { color:var(--muted); font-size:.9rem; }
.learning-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-bottom:1rem; }
.learning-layout .card,.learning-admin-card { min-width:0; }
.learning-list { min-height:7rem; }
.learning-recommendation { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.75rem; }
.learning-recommendation > strong,.learning-recommendation > small { grid-column:1; }
.learning-recommendation > .mini-btn { grid-column:2; grid-row:1 / span 2; }
.learning-admin-card { margin-top:1rem; }
.learning-module-body { display:grid; gap:1rem; padding:.6rem 1.8rem 1.6rem; }
.learning-module-contents { display:grid; gap:.75rem; }
.learning-content-item { display:grid; gap:.45rem; padding:1rem 1.1rem; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.learning-content-item .badge { justify-self:start; }
.learning-content-item h3 { margin:0; font-size:1rem; }
.learning-content-item p { margin:0; line-height:1.55; }
.learning-content-item details p { margin-top:.4rem; color:var(--muted); }
.learning-exam { display:grid; gap:.85rem; }
.learning-exam h3 { margin:0; }
.learning-exam .info-banner { margin-bottom:0; }
.learning-question { display:grid; gap:.25rem; margin:0 0 .75rem; padding:.75rem 1rem .85rem; border:1px solid var(--line); border-radius:12px; }
.learning-question legend { padding:0 .35rem; font-weight:700; }
.learning-question .checkbox-label { min-height:34px; align-self:start; font-weight:500; }
.learning-question input[type="radio"],.learning-question input[type="checkbox"] { width:17px; height:17px; min-width:17px; flex:0 0 17px; margin:0; padding:0; accent-color:var(--primary,#4f7de2); }
.learning-question.is-correct { border-color:#9fd3b1; background:#f1faf4; }
.learning-question.is-wrong { border-color:#f0b4b4; background:#fdf3f3; }
.learning-exam-result { display:grid; gap:.25rem; padding:.85rem 1rem; border:1px solid #f0b4b4; border-radius:12px; background:#fdf3f3; }
.learning-exam-result.is-passed { border-color:#9fd3b1; background:#f1faf4; }
@media (max-width:980px){.learning-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.learning-layout{grid-template-columns:1fr;}}
@media (max-width:560px){.learning-summary-grid{grid-template-columns:1fr;}.learning-boundary{align-items:flex-start;flex-direction:column;}.learning-recommendation{grid-template-columns:1fr;}.learning-recommendation > .mini-btn{grid-column:1;grid-row:auto;width:100%;}}

#ppwr-sku-dialog.modal-wide { width:min(1080px,calc(100vw - 2rem)); scrollbar-width:none; }
#ppwr-sku-dialog.modal-wide::-webkit-scrollbar { display:none; }
#ppwr-sku-dialog .form-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:.55rem .8rem; padding:.85rem 1.5rem 1rem; }
#ppwr-sku-dialog .form-grid > label.span-2 { grid-column:span 2; }
#ppwr-sku-dialog .form-grid > .form-actions,#ppwr-sku-dialog .form-grid > .form-message { grid-column:1 / -1; }
#ppwr-sku-dialog .form-grid label { gap:.32rem; font-size:.72rem; }
#ppwr-sku-dialog .form-grid input:not([type="checkbox"]),#ppwr-sku-dialog .form-grid select { min-height:38px; padding:.45rem .65rem; }
#ppwr-sku-dialog .form-grid textarea { min-height:48px; max-height:48px; resize:none; }
@media (max-width:1000px){#ppwr-sku-dialog .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:820px){#ppwr-sku-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:560px){#ppwr-sku-dialog .form-grid{grid-template-columns:1fr;}#ppwr-sku-dialog .form-grid > .span-2{grid-column:1;}}

/* Platform içi kontrol sonuçları: varsayılan yeşil rozet yalnız tamamlanan kontroller içindir. */
.badge.uygun_degil, .badge.kabul_edilemez, .badge.basarisiz, .badge.gecikmis, .badge.kritik, .badge.engelleyici,
.badge.karsilanmadi, .badge.hata, .badge.dogrulanamadi, .badge.iade_edildi, .badge.uyumsuz, .badge.kural_ihlali, .badge.teknik_hata { color: #9d3f3f; background-color: #f8e7e7; border-color: rgba(157, 63, 63, .14); }
.badge.inceleme_gerekli, .badge.inceleme_bekliyor, .badge.acik, .badge.incelemede, .badge.ek_bilgi, .badge.onay_bekliyor,
.badge.tedarikci_beyani, .badge.azaltimda, .badge.azaltim_gerekli, .badge.kismen_dogrulandi, .badge.kismen_uygun, .badge.bilinmiyor,
.badge.uyari, .badge.askida, .badge.orta, .badge.eksik_veri, .badge.tutarsizlik, .badge.yz_onerisi, .badge.eksik { color: #8a5b18; background-color: #f8eddc; border-color: rgba(138, 91, 24, .14); }
.badge.uygulanamaz, .badge.arsiv, .badge.arsivlendi, .badge.kapandi, .badge.sona_erdi, .badge.pasif, .badge.bilgi,
.badge.yanlis_pozitif, .badge.baslamadi, .badge.tek_adim, .badge.dort_goz { color: #596579; background-color: #edf1f5; border-color: rgba(89, 101, 121, .14); }
.legal-notice { margin: 1.5rem 0 .5rem; border-top: 1px solid var(--line); padding-top: .85rem; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.modal-section { padding: .4rem 1.8rem 1.6rem; }
.glossary { margin: 1rem 0; }
.glossary dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .9rem; margin: .6rem 0 0; font-size: .8rem; }
.glossary dt { font-weight: 800; }
.glossary dd { margin: 0; color: var(--muted); }

/* Gerekçeli bulgular */
.finding-why { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.finding-why > summary { cursor: pointer; font-weight: 600; }
.finding-why[open] > summary { margin-bottom: 10px; }
.finding-why h4 { margin: 14px 0 6px; font-size: 0.95rem; }
.compact-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.compact-table th, .compact-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
#finding-detail-links:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .finding-why > summary { transition: none; } }
.code-output { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; }
.code-output:empty { display: none; }
.portal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Tedarikçi portalı: giriş ekranının sabit yükseklikli düzeninden ayrılır; sayfa kayar, sol özet sabit kalır. Ölçüler ana panelle aynıdır. */
.auth-body:has(.supplier-portal-shell) { height: auto; min-height: 100vh; overflow-x: hidden; overflow-y: auto; }
.auth-body .supplier-portal-shell { height: auto; min-height: 100vh; overflow: visible; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); align-items: start; }
.auth-shell.supplier-portal-shell > .auth-story { position: sticky; top: 0; height: 100vh; overflow-y: auto; justify-content: flex-start; padding: 1.75rem 1.5rem; }
.supplier-portal-shell > .auth-story::after { display: none; }
.auth-shell.supplier-portal-shell .auth-story h1 { margin: .45rem 0 .6rem; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.02em; }
.supplier-portal-shell .auth-lead { margin: 0 0 .5rem; font-size: .84rem; line-height: 1.55; }
.supplier-portal-shell .portal-section-title { margin: 1.15rem 0 .55rem; font-size: 1.02rem; line-height: 1.3; letter-spacing: -.015em; }
.portal-list { display: grid; gap: .5rem; }
.portal-item { display: grid; gap: .15rem; margin: 0; padding: .65rem .8rem; border-radius: 10px; background: rgba(255, 255, 255, .13); font-size: .8rem; line-height: 1.45; }
.portal-item strong { font-size: .84rem; font-weight: 650; overflow-wrap: anywhere; }
.supplier-portal-shell .auth-story small { color: rgba(255, 255, 255, .86); font-size: .72rem; }
.supplier-portal-shell .auth-story .muted { margin: 0; color: rgba(255, 255, 255, .78); font-size: .8rem; }
.portal-warnings { margin: .35rem 0 0; gap: .2rem; }
.portal-warnings li { padding-left: .9rem; position: relative; }
.portal-warnings li::before { content: "!"; position: absolute; left: 0; font-weight: 800; font-size: .72rem; color: #ffe08a; }
.auth-shell.supplier-portal-shell > .login-card { min-height: 100vh; justify-content: flex-start; overflow: visible; gap: .85rem; padding: 1.75rem clamp(1.25rem, 3vw, 2.5rem) 2.5rem; }
.auth-shell.supplier-portal-shell .login-card h2 { margin: 0; font-size: clamp(1.55rem, 2.35vw, 2.1rem); line-height: 1.15; }
.portal-panel { border: 1px solid #dfe6f0; border-radius: 14px; background: #fff; padding: 0 1.1rem; }
.portal-panel > summary { cursor: pointer; padding: .85rem 0; font-size: 1.02rem; font-weight: 650; letter-spacing: -.015em; color: #282b30; }
.portal-panel[open] > summary { margin-bottom: .9rem; border-bottom: 1px solid #dfe6f0; }
.portal-panel .form-stack { gap: .8rem; margin: 0 0 1.1rem; }
.portal-panel label { font-size: .8rem; }
.portal-panel input:not([type="checkbox"]), .portal-panel select, .portal-panel textarea { font-size: .84rem; }
.portal-panel .checkbox-label { font-size: .8rem; font-weight: 500; }
.portal-panel small { font-size: .7rem; }
.portal-documents { display: grid; gap: .5rem; }
.portal-documents p { display: grid; gap: .1rem; margin: 0; padding: .6rem .8rem; border: 1px solid #dfe6f0; border-radius: 10px; background: #fff; font-size: .84rem; overflow-wrap: anywhere; }
.portal-documents small { font-size: .72rem; color: #5f6b7a; }
.portal-documents p br { display: none; }
.portal-legal { font-size: .72rem; line-height: 1.5; }
@media (max-width: 820px) {
    .auth-body .supplier-portal-shell { grid-template-columns: 1fr; }
    .auth-shell.supplier-portal-shell > .auth-story { display: flex; position: static; height: auto; overflow: visible; }
    .auth-shell.supplier-portal-shell > .login-card { min-height: 0; }
}
.learning-checklist { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .35rem; }
.learning-content-item .row-actions { margin-top: .5rem; }
#learning-module-title:focus { outline: 2px solid var(--forest); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .learning-question, .learning-exam-result, .toast, .modal { transition: none !important; animation: none !important; } }

/* ==== Sade tipografi ve taşma koruması (son katman) ====
   Kök 16 px (tarayıcı standardı); bileşenler açık bir ölçeğe bağlanır, hiçbir metin 11 px altına inmez. */
:root { font-size: 16px; }
body { font-size: .9375rem; line-height: 1.5; letter-spacing: 0; }
h1, h2, h3, h4, .auth-story h1, .hero-card h2, .platform-hero h2, .login-card h2 { font-weight: 600; letter-spacing: -.015em; }
.topbar h1, #page-title { font-size: 1.375rem; line-height: 1.25; }
.section-heading h2 { font-size: 1.375rem; line-height: 1.25; }
.hero-card h2, .platform-hero h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; }
.card h3, .card-header h3 { font-size: 1rem; line-height: 1.35; }
.login-card h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.2; }
.auth-story h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; }
.eyebrow, .section-heading > div > .eyebrow, th { font-size: .6875rem; }
label { font-size: .8125rem; }
input, select, textarea, .btn { font-size: .875rem; }
.mini-btn, .badge { font-size: .75rem; }
small, .activity-item span, .muted { font-size: .75rem; }
td { font-size: .8125rem; }
.activity-item strong { font-size: .875rem; line-height: 1.4; }
.nav-item { font-size: .875rem; }
.section-heading p:not(.eyebrow) { font-size: .875rem; line-height: 1.55; }

/* Liste satırları: metin sütunu daralır, uzun kod/JSON kırılır, rozet ve düğmeler sığmazsa alt satıra iner.
   Nokta (activity-dot) ile başlayan özet satırları özgün üç sütunlu düzenini korur. */
.activity-item:not(:has(> .activity-dot)) { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.activity-item:not(:has(> .activity-dot)) > :first-child { flex: 1 1 260px; min-width: 0; }
.activity-item > * { min-width: 0; }
.activity-item strong, .activity-item small, .activity-item span:not(.badge), td, .card p, .info-banner { overflow-wrap: anywhere; }
.activity-item > .badge, .activity-item > button, .activity-item > a, .activity-item > .row-actions { flex: 0 0 auto; }
.badge, .mini-btn { white-space: nowrap; }
.badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.row-actions { flex-wrap: wrap; }
.card, .metric-card, .grid > *, .two-column > * { min-width: 0; }
/* Küçük kod/birim etiketleri için okunabilir alt sınır. */
.workspace-code, .plan-code, .platform-pulse span { font-size: .6875rem; }
.plan-price span, .company-tile-meta small { font-size: .75rem; }
.bar-label, .card-header .unit { font-size: .6875rem; }
.readiness small, .scope-grid article span, .scope-grid article small { font-size: .75rem; }
/* Yalnız metin içeren (boş durum) listeler: kenar boşluğu, sade renk; gereksiz boş yükseklik yok. */
.activity-list:not(:has(> *)) { min-height: 0; padding: 1rem 1.5rem 1.25rem; color: var(--muted, #64748b); font-size: .875rem; }
.activity-list:has(> .empty-state:only-child) { min-height: 0; }
/* Form alanları ve etiketler: daha hafif ağırlık. */
input, select, textarea { font-weight: 400; }
label { font-weight: 600; }
input::placeholder, textarea::placeholder { font-weight: 400; }
