/* Elmalı uygulamasının renkleri, sistem fontu ve kompakt ölçüleri. */
:root {
  color-scheme: dark;
  --surface: #0a1710; --card: #14251b; --ink: #f0f4f1; --body: #c2ccc6;
  --muted: #9ca9a1; --divider: #2b4035; --buy: #dce9e1;
  --chrome: #033527; --gold: #d4af37; --positive: #77d986; --negative: #ff8a80;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px; background: var(--surface); color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { display: block; max-width: 100%; }
[hidden], .is-hidden { display: none !important; }
.app-shell { max-width: 720px; margin: auto; min-height: 100dvh; }
.screen { display: none; min-height: 100dvh; }
.screen--active { display: flex; flex-direction: column; }
#dashboard-screen { height: 100dvh; overflow: hidden; }
.topbar { flex: none; display: flex; align-items: center; gap: 8px;
  min-height: calc(30px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0;
  background: var(--chrome); color: #f0f4f1; }
.topbar img { border-radius: 3px; }
.topbar h1, .topbar span { margin: 0; font-size: 11px; font-weight: 600; }
.brand-header {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center;
  height: 80px; margin: 10px 16px 0; padding: 8px 16px; border-radius: 6px;
  background: var(--chrome) url("./assets/appbar-background.png") center / cover;
  border: 1px solid var(--gold);
}
.brand-header img { width: 170px; height: 60px; object-fit: contain; }
.login-card { width: calc(100% - 32px); max-width: 390px; margin: 32px auto; padding: 24px;
  border: 1px solid var(--divider); border-radius: 12px; background: var(--card); box-shadow: 0 4px 16px #062c1c06; }
.card__title { margin: 0 0 8px; font-size: 22px; text-align: center; }
.card__text { color: var(--muted); margin: 0 0 24px; text-align: center; font-size: 14px; line-height: 1.5; }
.login-form, .field { display: grid; gap: 8px; }
.login-form { gap: 16px; }
.field__label { color: var(--body); font-size: 13px; font-weight: 600; }
.field__input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--divider);
  border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 16px; }
.primary-button { min-height: 48px; border: 0; border-radius: 8px; background: var(--chrome); color: #fff; font-weight: 600; }
.info-panel { padding: 12px; font-size: 13px; line-height: 1.5; border-radius: 8px; background: var(--surface); color: var(--body); }
.info-panel.is-error { color: var(--negative); }
.dashboard-toolbar { flex: none; margin: 10px 16px 0; }
.tabs { display: flex; align-items: center; gap: 16px; min-height: 42px;
  border-bottom: 1px solid var(--divider); }
.tab-button { position: relative; flex: none; min-width: 0; min-height: 42px; padding: 0 0 4px;
  border: 0; color: var(--body); background: transparent; font-size: 12px; font-weight: 600; }
.tab-button.is-active { color: var(--ink); }
.tab-button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--gold); }
#company-info-button { margin-left: auto; }
.table-wrap { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.table-head, .price-row__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 4px; align-items: center; padding: 0 12px; }
.table-head { flex: none; min-height: 32px; margin: 0 16px; font-size: 11px; font-weight: 600; color: var(--muted); }
.table-head__numeric { text-align: right; }
.list-scroll { overflow: auto; overscroll-behavior: contain; flex: 1; min-height: 0; padding: 0 16px 8px; scrollbar-width: thin; }
.price-list { display: grid; gap: 4px; }
.price-row { border-radius: 8px; background: var(--card); border: 1px solid var(--divider); overflow: hidden; }
.price-row__body { min-height: 60px; padding: 4px 11px; }
.price-row__symbol { min-width: 0; }
.price-row__code { font-weight: 700; font-size: 13px; overflow-wrap: anywhere; }
.price-row__name { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.3; text-transform: capitalize; overflow-wrap: anywhere; }
.price-row__value { text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.25px; }
.price-row__value:nth-child(2) { color: var(--buy); }
.price-row__value:nth-child(3) { border-left: 1px dashed var(--divider); padding-left: 3px; }
.price-row__favorite { width: 36px; min-height: 48px; border: 0; padding: 0; font-size: 23px; background: transparent; color: var(--muted); }
.price-row__favorite.is-active { color: var(--gold); }
.is-retail .price-row__actions { visibility: hidden; }
.price-row.is-up .price-row__value { color: var(--positive); }
.price-row.is-down .price-row__value { color: var(--negative); }
.status-bar { flex: none; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 10px; text-align: center; }
.empty-state { text-align: center; color: var(--muted); padding: 24px 8px; font-size: 13px; line-height: 1.6; }
.notice { display: flex; flex: none; align-items: center; gap: 4px; margin: 8px 16px 0; padding-left: 8px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--divider); }
.notice__viewport { flex: 1; min-width: 0; overflow: hidden; }
.notice__track { display: inline-flex; white-space: nowrap; }
.notice__text { font-size: 12px; color: var(--body); }
.notice__close { flex: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--muted); font-size: 20px; }
.notice__track.is-animated { animation: notice-marquee var(--notice-duration, 12s) linear infinite; }
.notice:hover .notice__track, .notice:focus-within .notice__track { animation-play-state: paused; }
@keyframes notice-marquee { from { transform: translateX(var(--notice-start, 0px)); } to { transform: translateX(var(--notice-end, -100%)); } }
.company-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
.company-stack { display: grid; gap: 12px; }
.company-card { border: 1px solid var(--divider); border-radius: 12px; background: var(--card); overflow: hidden; }
.company-card__intro { padding: 16px 16px 0; }
.company-card__eyebrow { font-size: 10px; letter-spacing: 1px; color: var(--muted); margin: 0 0 8px; }
.company-card__title { font-size: 18px; margin: 0 0 8px; }
.company-card__text { margin: 0; color: var(--muted); line-height: 1.5; font-size: 13px; }
.company-contact-list { padding: 8px 16px 16px; }
.contact-item { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--divider); }
.contact-item:last-child { border: 0; }
.contact-item__label { color: var(--muted); font-size: 12px; }
.contact-item__link, .contact-item__value { color: var(--ink); font-size: 13px; overflow-wrap: anywhere; line-height: 1.5; }
.company-card__image { width: 100%; max-height: 240px; object-fit: cover; }
.company-card__placeholder { display: none; }
.company-about-text { padding: 8px 16px 16px; color: var(--body); font-size: 14px; line-height: 1.7; white-space: pre-line; }
body.is-reordering { user-select: none; -webkit-user-select: none; }
.price-list.is-favorites .price-row__symbol { cursor: grab; }
.sortable-ghost { opacity: .3; }
.sortable-chosen { border-color: var(--gold); }
@media (min-width: 480px) {
  .table-head, .price-row__body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 48px; gap: 8px; }
  .price-row__favorite { width: 48px; }
  .price-row__value { font-size: 16px; }
  .price-row__code { font-size: 14px; }
  .price-row__name { font-size: 11px; }
}
@media (max-width: 359px) {
  .tabs { gap: 12px; }
  .list-scroll { padding-left: 8px; padding-right: 8px; }
  .table-head { margin-left: 8px; margin-right: 8px; }
  .price-row__value { font-size: 12px; }
  .price-row__code { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .notice__track { white-space: normal; transform: none !important; }
}
