:root {
    --surface:#fff;
    --canvas:#f7f7f5;
    --ink:#202123;
    --muted:#6b6d70;
    --line:#e7e7e4;
    --bs-body-color:var(--ink);
    --bs-body-bg:var(--surface);
    --bs-secondary-color:var(--muted);
    --bs-border-color:var(--line);
    --bs-primary:#202123;
    --bs-primary-rgb:32,33,35
}

* {
    box-sizing:border-box
}
body {
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:var(--canvas);
    color:var(--ink);
    -webkit-font-smoothing:antialiased
}
a {
    color:inherit
}
button,input,textarea,select {
    font:inherit
}
h1,h2,h3,h4,h5,h6 {
    letter-spacing:-.035em
}
.brand-font,.wordmark {
    font-family:inherit;
    font-weight:650;
    letter-spacing:-.04em
}
.brand-ai {
    font-size:.65em;
    letter-spacing:0;
    font-weight:500;
    border:1px solid #d8d8d5;
    border-radius:6px;
    padding:3px 5px;
    vertical-align:middle;
    color:#62645f;
    margin-left:3px
}
.wordmark {
    text-decoration:none;
    font-size:23px
}
.glass-panel,.custom-card {
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:18px
}
.glass-panel {
    box-shadow:0 12px 45px #20212306!important
}
.form-control,.form-select {
    background-color:var(--surface);
    color:var(--ink);
    border:1px solid #dcdedb;
    border-radius:11px;
    padding:.75rem .9rem;
    font-size:.9rem
}
.form-control::placeholder {
    color:#858782
}
.form-control:focus,.form-select:focus {
    color:var(--ink);
    background:var(--surface);
    border-color:#727871;
    box-shadow:0 0 0 3px #20212312
}
.input-group-text {
    border-color:#dcdedb!important;
    border-radius:11px;
    background:var(--surface)!important
}
.btn {
    border-radius:10px;
    font-weight:550;
    font-size:.88rem;
    transition:background-color .15s ease
}
.btn-ink {
    background:#252624;
    color:#fff!important;
    border:1px solid #252624;
    padding:.75rem 1.1rem
}
.btn-ink:hover,.btn-ink:active {
    background:#41423f!important;
    color:#fff!important;
    border-color:#41423f!important
}
.btn-outline-secondary {
    --bs-btn-color:#4e514d;
    --bs-btn-border-color:#d8dad6;
    --bs-btn-hover-bg:#eeeeeb;
    --bs-btn-hover-color:#202123;
    --bs-btn-hover-border-color:#c5c8c1
}
.btn:disabled {
    opacity:.45
}
.btn:focus-visible,a:focus-visible {
    outline:3px solid #657b70;
    outline-offset:3px
}
.text-body-secondary,.text-muted {
    color:var(--muted)!important
}
.navbar {
    background:var(--surface)!important;
    padding-block:14px
}
.navbar .bi-bank {
    color:var(--ink)!important
}
.navbar .dropdown-toggle {
    border:0
}
.workspace-wrapper {
    display:grid;
    grid-template-columns:264px minmax(0,1fr) 330px;
    height:calc(100dvh - 75px);
    overflow:hidden
}
.panel-left,.panel-right {
    display:flex;
    flex-direction:column;
    min-height:0;
    min-width:0;
    background:var(--canvas)
}
.panel-left {
    border-right:1px solid var(--line)
}
.panel-right {
    border-left:1px solid var(--line);
    background:var(--surface)
}
.panel-center {
    min-width:0;
    overflow-y:auto;
    padding:28px;
    background:var(--surface)
}
.panel-center>.custom-card {
    border:none;
    padding:0 0 20px!important;
    border-bottom:1px solid var(--line);
    border-radius:0
}
.panel-center h4 {
    font-size:26px
}
.ictihat-shell {
    max-width:1280px
}
.ictihat-page {
    min-height:100dvh;
    background:var(--canvas)
}
.ictihat-hero {
    max-width:920px
}
.ictihat-hero h1 {
    letter-spacing:-.055em
}
.ictihat-search-card {
    box-shadow:0 16px 45px #2021230b
}
.ictihat-result-card {
    box-shadow:0 8px 28px #20212308;
    transition:transform .15s ease, box-shadow .15s ease
}
.ictihat-result-card:hover {
    transform:translateY(-2px);
    box-shadow:0 14px 34px #20212312
}
.ictihat-result-card .badge {
    font-size:.68rem
}
#ictihatResults[aria-busy="true"] {
    opacity:.6;
    pointer-events:none
}
.panel-left>.p-3,.panel-right>.p-3 {
    padding:24px 18px!important
}
.panel-left .form-control,.panel-left .input-group-text {
    background:transparent!important
}
.dava-item {
    padding:16px 14px;
    margin:4px 10px;
    border:1px solid transparent;
    border-radius:12px;
    transition:background-color .15s
}
.dava-item:hover {
    background:#eeefeb
}
.dava-item.active {
    background:#e8eae4;
    border-color:#dce0d6
}
.nav-pills {
    gap:5px
}
.nav-pills .nav-link {
    color:#676b63!important;
    border-radius:9px;
    font-size:.8rem!important;
    padding:.65rem .8rem!important
}
.nav-pills .nav-link.active {
    background:#eeefeb;
    color:var(--ink)!important
}
.nav-pills .bi {
    color:inherit!important
}
.chat-bubble {
    padding:18px;
    margin:0 0 16px;
    max-width:96%;
    border-radius:15px;
    background:#f7f8f5;
    line-height:1.75;
    overflow-wrap:anywhere
}
.chat-bubble.role-avukat_kullanici {
    background:#eef0ea;
    margin-left:auto
}
.chat-bubble.role-hakim {
    border-left:3px solid #898c83
}
.chat-bubble.role-savci_karsi_vekil {
    border-left:3px solid #ba9685
}
.chat-bubble.role-savunma_stratejisti {
    border-left:3px solid #7d9988
}
.badge-role {
    font-size:.66rem;
    letter-spacing:.04em;
    background:transparent!important;
    color:#565f55!important;
    border:0!important;
    padding:0
}
.badge {
    font-weight:550
}
.bg-warning {
    background:#eeefeb!important;
    color:#454b42!important
}
#simulasyonMesajAkisi {
    border:0!important;
    min-height:340px!important;
    padding:12px 0!important
}
#simulasyonForm {
    padding:8px;
    border:1px solid #dcded8;
    border-radius:16px;
    background:var(--surface)
}
#argumanInput {
    border:0;
    resize:vertical
}
#argumanInput:focus {
    box-shadow:none
}
#dilekceMetni {
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:14px!important;
    line-height:1.85;
    min-height:330px;
    resize:vertical
}
.panel-right .d-grid {
    margin-top:24px
}
.table {
    --bs-table-striped-bg:#f8f9f6;
    --bs-table-hover-bg:#f1f3ee
}
.modal-content {
    border:1px solid var(--line)!important;
    box-shadow:0 30px 90px #20212322
}
.modal-header,.modal-footer {
    padding:22px
}
.modal-body {
    padding:24px
}
.auth-page {
    background:#fafbf8;
    min-height:100dvh;
    display:flex;
    flex-direction:column
}
.auth-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:32px 5vw
}
.auth-nav {
    font-size:13px;
    text-decoration:none;
    padding:10px 16px;
    border:1px solid #dfe1da;
    border-radius:24px
}
.auth-layout {
    display:grid;
    grid-template-columns:1.12fr 1fr;
    align-items:center;
    gap:9vw;
    width:min(1190px,90%);
    margin:auto;
    flex:1;
    padding:55px 0 75px
}
.auth-story {
    max-width:590px
}
.eyebrow {
    font-size:10px;
    font-weight:650;
    letter-spacing:.17em;
    color:#6d7567
}
.auth-story h1 {
    font-size:clamp(40px,4.3vw,65px);
    line-height:1.09;
    font-weight:550;
    letter-spacing:-.057em;
    margin:26px 0
}
.auth-story h1 span {
    color:#8a9381
}
.auth-story>p {
    font-size:15px;
    line-height:1.8;
    color:#71756c;
    max-width:405px;
    margin-bottom:32px
}
.story-preview {
    padding:23px;
    border:1px solid #e1e5da;
    background:#fff;
    border-radius:20px;
    max-width:440px;
    box-shadow:0 18px 40px #44533807
}
.preview-top {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:11px;
    color:#767e6d
}
.preview-dot {
    width:6px;
    height:6px;
    border-radius:50%;
    background:#8da17a;
    margin-left:auto
}
.preview-question {
    font-size:13px;
    margin:22px 0 18px;
    background:#f1f3ed;
    border-radius:10px;
    padding:13px 15px
}
.preview-answer {
    display:flex;
    gap:13px;
    font-size:11px;
    line-height:1.6;
    color:#626b59
}
.preview-answer>.bi {
    font-size:19px
}
.preview-tags {
    display:flex;
    gap:6px;
    margin-top:12px
}
.preview-tags span {
    border:1px solid #e5e8e0;
    border-radius:6px;
    padding:3px 7px;
    font-size:9px
}
.story-caption {
    display:block;
    font-size:10px;
    color:#8b9083;
    margin-top:20px
}
.auth-form {
    width:100%;
    max-width:400px;
    justify-self:end
}
.auth-card h2 {
    font-size:30px;
    font-weight:550;
    letter-spacing:-.045em;
    margin:14px 0 10px
}
.auth-description {
    color:#7a7e75;
    font-size:14px;
    margin-bottom:32px
}
.auth-card .form-label {
    font-size:12px;
    color:#50554c!important
}
.auth-card .input-group-text {
    display:none
}
.auth-card .form-control {
    border-radius:11px!important;
    padding:14px 15px;
    background:#fff
}
.auth-card .btn-ink {
    padding:13px!important;
    border-radius:11px;
    font-size:13px!important
}
.auth-card .btn-ink .bi {
    display:none
}
.auth-card .small {
    font-size:12px!important
}
.auth-card .border-top {
    border:0!important;
    margin-top:20px!important
}
.auth-footnote {
    font-size:10px;
    text-align:center;
    color:#8a9080;
    margin-top:30px
}
.auth-footer {
    display:flex;
    justify-content:space-between;
    padding:22px 5vw;
    font-size:10px;
    color:#93978c;
    border-top:1px solid #e8ebe2
}
.registration-page {
    background:#fafbf8
}
.registration-page main>div:first-child>.d-inline-flex {
    display:none!important
}
.registration-page .glass-panel h2 {
    font-size:26px!important
}
.registration-page .shadow-sm {
    box-shadow:none!important
}
::-webkit-scrollbar {
    width:6px;
    height:6px
}
::-webkit-scrollbar-thumb {
    background:#d5d8d1;
    border-radius:5px
}
@media(min-width:1500px) {
    .workspace-wrapper {
    grid-template-columns:285px minmax(0,1fr) 370px
}
.panel-center {
    padding:36px
}

}
@media(max-width:1199px) {
    .workspace-wrapper {
    grid-template-columns:235px minmax(0,1fr)
}
.panel-right {
    grid-column:2;
    border:0;
    border-top:1px solid var(--line)
}
.workspace-wrapper {
    height:auto;
    overflow:visible
}
.panel-left {
    grid-row:1 / 3
}
.panel-center {
    overflow:visible
}
.panel-right #dilekceMetni {
    min-height:220px
}

}
@media(max-width:767px) {
    .auth-header {
    padding:24px
}
.wordmark {
    font-size:20px
}
.auth-nav {
    font-size:11px
}
.auth-layout {
    display:block;
    width:100%;
    padding:45px 24px
}
.auth-story {
    display:none
}
.auth-form {
    max-width:400px;
    margin:auto
}
.auth-card h2 {
    font-size:31px
}
.auth-footer {
    padding:22px 24px;
    gap:12px
}
.workspace-wrapper {
    display:flex;
    flex-direction:column
}
.panel-left {
    max-height:300px;
    border-right:0;
    border-bottom:1px solid var(--line)
}
.panel-center {
    padding:22px 16px
}
.panel-right {
    border-left:0;
    max-height:none
}
.navbar .dropdown-toggle {
    padding:6px!important
}
.navbar .dropdown-toggle span {
    max-width:90px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}
.navbar .brand-font {
    font-size:14px!important
}
.chat-bubble {
    max-width:100%
}
.panel-center h4 {
    font-size:23px
}
.nav-pills {
    flex-wrap:wrap
}
.nav-pills .nav-link {
    font-size:12px!important
}
#simulasyonForm {
    flex-wrap:wrap
}
#argumanInput {
    width:100%
}
#btnArgumanGonder {
    margin-left:auto
}
#btnArgumanGonder[aria-busy="true"],
#btnAiDilekceUret[aria-busy="true"] {
    min-width: 9.5rem;
    justify-content: center;
}
.registration-page {
    padding:24px 4px!important
}
.auth-form .eyebrow {
    font-size:10px
}

}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
}

}

/* Karar araştırma ekranı */
.ictihat-shell {max-width:1060px}
.ictihat-page .lead {font-size:15px;line-height:1.7}
.ictihat-search-card,.ictihat-result-card {box-shadow:none}
.ictihat-result-card:hover {transform:none;box-shadow:none}
.ictihat-page summary {cursor:pointer;font-weight:550;font-size:14px}
.ictihat-page .decision-text {white-space:pre-wrap;line-height:1.9;max-width:80ch}
.ictihat-page article {margin-bottom:12px}
.ictihat-page article details {background:var(--surface);border-color:var(--line)!important}
.ictihat-page article .small {line-height:1.8}
.ictihat-page .navbar .container-fluid {gap:12px;flex-wrap:wrap}

.app-header{position:sticky;top:0;z-index:1030;display:flex;align-items:center;gap:24px;min-height:76px;padding:14px 24px;background:var(--surface);border-bottom:1px solid var(--line)}
.app-header .wordmark{font-size:18px;white-space:nowrap}.app-nav{display:flex;gap:5px;flex:1;overflow-x:auto}.app-nav a{white-space:nowrap;text-decoration:none;padding:10px 12px;font-size:13px;border-radius:10px}.app-nav .selected,.conversation:hover{background:#eeefeb}.user-menu{position:relative;white-space:nowrap;font-size:13px}.user-menu summary{cursor:pointer}.user-menu>div{position:absolute;right:0;top:35px;background:white;padding:20px;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px #0001}.dashboard{max-width:1280px;margin:auto;padding:44px 28px}.dashboard h1{font-size:32px}.conversation{display:block;padding:12px;text-decoration:none;border-radius:10px;font-size:14px;overflow-wrap:anywhere}.discussion{display:grid;grid-template-columns:250px 1fr;height:calc(100dvh - 76px)}.conversation-list{padding:24px 16px;overflow:auto;border-right:1px solid var(--line)}.conversation-body{display:flex;flex-direction:column;min-height:0;background:white}.conversation-feed{overflow:auto;flex:1;padding:32px max(24px,calc((100% - 800px)/2))}.chat-welcome{padding:15vh 0 0;text-align:center}.chat-welcome h1{font-size:30px;margin:20px 0}.chat-welcome p{color:var(--muted)}.discussion-message{margin-bottom:28px;line-height:1.8;overflow-wrap:anywhere}.discussion-message strong{display:block;font-size:12px;margin-bottom:8px}.from-user{background:var(--canvas);padding:16px 22px;border-radius:22px;margin-left:15%}.conversation-composer{margin:16px auto 24px;width:min(800px,90%);padding:16px;border:1px solid var(--line);border-radius:22px}.conversation-composer textarea{width:100%;border:0;resize:vertical;outline-offset:4px}.conversation-composer button{display:block;margin-left:auto}.conversation-composer small{display:block;text-align:center;color:var(--muted);margin-top:10px;font-size:11px}
@media(max-width:1100px){.app-header{flex-wrap:wrap;gap:10px}.app-nav{order:3;flex-basis:100%}.user-menu{margin-left:auto}.discussion{height:calc(100dvh - 120px)}}
@media(max-width:650px){.discussion{grid-template-columns:1fr;height:auto}.conversation-list{max-height:170px;border-bottom:1px solid var(--line)}.conversation-feed{min-height:45vh;padding:20px}.dashboard{padding:24px 16px}.chat-welcome{padding:35px 0}.app-header{padding:12px}.app-nav a{padding:8px}.user-menu summary{max-width:140px;overflow:hidden;text-overflow:ellipsis}}

.markdown-body h2,.markdown-body h3,.markdown-body h4{font-size:1.15rem;margin:1.3em 0 .6em}.discussion-message .markdown-body strong{display:inline;font-size:inherit;margin:0}.markdown-body p{margin:0 0 .8em}.markdown-body li{margin:.35em 0}.markdown-body pre{padding:16px;background:var(--canvas);border-radius:10px;overflow:auto}.markdown-body code{white-space:pre-wrap;overflow-wrap:anywhere}.markdown-body blockquote{border-left:3px solid #758775;padding-left:16px;color:var(--muted)}.markdown-body a{text-decoration:underline;color:#285c49}
