/* Mihenk, Direction 12: left-rail trial (the Direction 7 navigation idea in D12's language).
   The three top tiers of d12-frame.css are replaced by one rail: logo, search, Live tracking, the six sections
   with the open section's pages nested under it, the tools, then View as, plan, help / feedback / theme,
   language and account. D12 grammar: 8px radii, panel grey ground, white "pressed" segment for the open
   section, the turquoise-ink mark for the current page. d12.css tokens only, so night works.
   Link order: d12.css, d12-frame.css, the group stylesheet, then this file. Every class starts with r12-. */

.d12 .r12-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); align-items: stretch; min-height: 100%; }
.d12 .r12-col { min-width: 0; }
.d12 .r12-col > .amain { max-width: none; padding-left: 32px; padding-right: 32px; }
/* the main column is about 250px narrower than under the top bar: tables get tighter cell padding and the
   leader chips let their second line wrap instead of running out of the chip */
.d12 .r12-col .t th, .d12 .r12-col .t td { padding-left: 10px; padding-right: 10px; }
.d12 .r12-col .t th:first-child, .d12 .r12-col .t td:first-child { padding-left: 16px; }
.d12 .r12-col .t th:last-child, .d12 .r12-col .t td:last-child { padding-right: 16px; }
.d12 .r12-col .kchip .kr { flex: none; }

/* rail */
.d12 .r12-rail { display: flex; flex-direction: column; gap: 12px; padding: 20px 14px 28px; background: var(--panel); border-right: 1px solid var(--line-soft); font-size: 14px; line-height: 20px; color: var(--tx); }
.d12 .r12-rail .ico { flex: none; }
.d12 .r12-logo { display: inline-flex; align-self: flex-start; padding: 4px 8px 8px; border-radius: 6px; }
.d12 .r12-logo img { height: 30px; width: auto; }

.d12 .r12-q { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--tx3); }
.d12 .r12-q input { flex: 1; min-width: 0; height: 36px; padding: 0; border: 0; outline: 0; background: transparent; font-size: 14px; font-weight: 500; color: var(--tx); }
.d12 .r12-q input::placeholder { color: var(--tx3); opacity: 1; }
.d12 .r12-q:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }

.d12 .r12-live { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; background: var(--tag-t); color: var(--tag-t-tx); font-weight: 700; white-space: nowrap; }
.d12 .r12-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px rgba(53, 232, 203, 0.28); flex: none; }

/* sections and tools */
.d12 .r12-nav { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.d12 .r12-nav > li > a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 8px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--tx2); text-decoration: none; white-space: nowrap; }
.d12 .r12-nav > li.on > a { background: var(--seg-on); color: var(--tx); font-weight: 800; box-shadow: inset 0 0 0 1px var(--line); }
.d12 .r12-nav > li.on > a .ico { color: var(--pri-tx); }
.d12 .r12-sub { display: flex; flex-direction: column; margin: 4px 0 8px 23px; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.d12 .r12-sub a { display: flex; align-items: center; gap: 6px; min-height: 34px; margin-left: -1px; padding: 0 12px 0 18px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--tx2); text-decoration: none; white-space: nowrap; border-left: 2px solid transparent; }
.d12 .r12-sub a[aria-current="page"] { color: var(--tx); font-weight: 800; border-left-color: var(--pri-tx); }
.d12 .r12-tools > li > a { min-height: 38px; font-size: 14px; }
.d12 .r12-sep { height: 1px; margin: 2px 12px; background: var(--line); }

/* foot */
.d12 .r12-foot { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.d12 .r12-view { display: flex; flex-direction: column; gap: 6px; }
.d12 .r12-vl { display: inline-flex; align-items: center; gap: 6px; padding-left: 4px; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--tx2); }
.d12 .r12-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border-radius: 8px; background: var(--raised); }
.d12 .r12-seg button { height: 30px; padding: 0 8px; border-radius: 6px; border: 1px solid transparent; background: transparent; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--tx2); cursor: pointer; }
.d12 .r12-seg button[aria-pressed="true"] { background: var(--seg-on); border-color: var(--seg-line); color: var(--tx); font-weight: 700; }
.d12 .r12-plan { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 38px; padding: 0 12px; border-radius: 8px; background: var(--tag-a); color: var(--tag-a-tx); font-size: 13px; font-weight: 600; }
.d12 .r12-plan b { font-size: 14px; font-weight: 800; }
.d12 .r12-plan small { font-size: 12px; font-weight: 600; }
.d12 .r12-up { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 8px; background: var(--pri); color: var(--on-pri); font-size: 14px; font-weight: 800; text-decoration: none; }
.d12 .r12-row { display: flex; align-items: center; gap: 6px; }
.d12 .r12-ib { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--tx2); font-size: 13px; font-weight: 700; cursor: pointer; }
.d12 .r12-fb { flex: 1; }
.d12 .r12-sq { width: 36px; padding: 0; flex: none; }
.d12 .r12-sun, .d12 .r12-to-day { display: none; }
.d12.d12-night .r12-moon, .d12.d12-night .r12-to-night { display: none; }
.d12.d12-night .r12-sun { display: block; }
.d12.d12-night .r12-to-day { display: inline; }
.d12 .r12-lang { width: 100%; height: 36px; padding: 0 30px 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background-color: var(--bg); color: var(--tx); font-size: 14px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23454B73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.d12 .r12-acct { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; color: var(--tx); }
.d12 .r12-me { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: var(--on-dark); font-size: 14px; font-weight: 800; flex: none; }
.d12 .r12-who { display: flex; flex-direction: column; font-size: 13px; line-height: 17px; color: var(--tx2); }
.d12 .r12-who b { font-size: 14px; color: var(--tx); }

.d12 .r12-q .ico, .d12 .r12-ib .ico, .d12 .r12-vl .ico, .d12 .r12-up .ico { width: 16px; height: 16px; }
.d12 .r12-nav .ico { width: 20px; height: 20px; }

@media (hover: hover) and (pointer: fine) {
  .d12 .r12-nav > li:not(.on) > a:hover { background: var(--raised); color: var(--tx); }
  .d12 .r12-sub a:not([aria-current="page"]):hover { color: var(--tx); border-left-color: var(--line-strong); }
  .d12 .r12-ib:hover, .d12 .r12-lang:hover, .d12 .r12-q:hover { border-color: var(--tx2); color: var(--tx); }
  .d12 .r12-seg button:not([aria-pressed="true"]):hover { color: var(--tx); }
  .d12 .r12-acct:hover { background: var(--raised); }
}
.d12 .r12-col .t .who-t b, .d12 .r12-col .t .who-t span { max-width: 150px; }
