  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #e8e8e6; color: #1a1a1a; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
  body { display: flex; justify-content: center; align-items: flex-start; padding: 20px 10px; }

  .phone {
    width: 100%; max-width: 400px; background: #f5f5f3;
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
    min-height: 820px; position: relative;
  }
  @media (max-width: 420px) {
    body { padding: 0; }
    .phone { max-width: 100%; border-radius: 0; box-shadow: none; min-height: 100vh; }
  }

  /* Top bar */
  .topbar {
    background: #1a1a1a; color: #fff; padding: 8px 10px;
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
    min-height: 56px;
  }
  .topbar .back {
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    font-size: 26px; font-weight: 300;
    padding: 8px 14px; border-radius: 8px;
    cursor: pointer; line-height: 1;
    min-width: 48px; min-height: 40px;
    display: flex; align-items: center; justify-content: center;
  }
  .topbar .back:active { background: rgba(255,255,255,0.25); }
  .topbar .title-block { flex: 1; min-width: 0; padding: 2px 4px; text-align: center; }
  .topbar .title-block.clickable { cursor: pointer; border-radius: 6px; }
  .topbar .title-block.clickable:active { background: rgba(255,255,255,0.1); }
  .topbar .title { font-size: 14px; font-weight: 600; }
  .topbar .subtitle { font-size: 11px; opacity: 0.75; margin-top: 1px; }
  .topbar .menu {
    background: none; border: none; color: #fff; font-size: 22px;
    padding: 4px 8px; cursor: pointer;
    min-width: 40px;
  }

  /* v7.3: Compact single-row scan topbar */
  .topbar.scan-topbar {
    padding: 6px 8px;
    gap: 6px;
    min-height: 56px;
  }
  .topbar.scan-topbar .big-crew-num {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: #fff;
    padding: 0 6px;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
  }
  .topbar.scan-topbar .crew-info-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  .topbar.scan-topbar .crew-names-line {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }
  .topbar.scan-topbar .session-name-line {
    font-size: 10px;
    opacity: 0.7;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-top: 2px;
  }

  /* Session bar */
  .session-bar {
    background: #2a2a2a; color: #fff;
    padding: 10px 14px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #000;
    flex-shrink: 0; cursor: pointer;
  }
  .session-bar:active { background: #3a3a3a; }
  .session-info { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .session-code {
    background: #fff; color: #1a1a1a;
    padding: 3px 8px; border-radius: 4px;
    font-size: 13px; font-weight: 700;
    font-family: "SF Mono", Menlo, monospace;
    flex-shrink: 0;
  }
  .session-name { font-size: 12px; opacity: 0.9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .session-progress {
    font-size: 13px; font-weight: 600;
    padding: 3px 10px; background: rgba(255,255,255,0.15);
    border-radius: 4px; flex-shrink: 0;
  }

  /* Screens */
  .screen { display: none; flex: 1; flex-direction: column; overflow-y: auto; }
  .screen.active { display: flex; }
  .content { padding: 14px; flex: 1; }

  /* Sections */
  .section-label {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 12px 4px 6px;
    font-size: 12px; color: #6b6b66; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .section-label:first-child { padding-top: 4px; }
  .section-label .hint { font-size: 11px; color: #9a9a94; font-weight: 400; text-transform: none; letter-spacing: 0; }

  /* Buttons */
  .btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 600;
    cursor: pointer; border: none; width: 100%; font-family: inherit;
  }
  .btn-primary { background: #1a1a1a; color: #fff; }
  .btn-primary:active { background: #333; }
  .btn-secondary {
    background: #fff; color: #1a1a1a;
    border: 1px solid #cfcfc9;
  }
  .btn-secondary:active { background: #efeeeb; }
  .btn-danger { background: #fff; color: #c92828; border: 1px solid #c92828; }
  .btn-warn { background: #fff; color: #a05a00; border: 1px solid #d99b3d; }
  .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Rally card */
  .rally-card {
    background: #fff; border-radius: 12px;
    padding: 14px 16px; border: 1px solid #e0e0dc;
    margin-bottom: 8px; cursor: pointer;
  }
  .rally-card:active { background: #efeeeb; }
  .rally-card .rally-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
  .rally-card .rally-title .chev { font-size: 12px; opacity: 0.5; }
  .rally-card .rally-meta { font-size: 12px; color: #6b6b66; margin-top: 3px; }
  .rally-card.active {
    border: 2px solid #1a1a1a;
    background: #1a1a1a; color: #fff;
  }
  .rally-card.active:active { background: #333; }
  .rally-card.active .rally-meta { color: rgba(255,255,255,0.75); }
  .rally-card .badge-tap {
    display: inline-block;
    background: #e0efff; color: #1c3a70;
    padding: 2px 8px; border-radius: 4px;
    font-size: 10px; font-weight: 600;
    margin-top: 8px;
  }

  /* Session list on home */
  .session-list { display: flex; flex-direction: column; gap: 6px; }
  .session-item {
    background: #fff; border-radius: 10px;
    padding: 10px 12px; border: 1px solid #e0e0dc;
    display: flex; align-items: center; gap: 12px;
    cursor: pointer;
  }
  .session-item:active { background: #efeeeb; }
  .session-item .code-box {
    background: #1a1a1a; color: #fff;
    min-width: 46px; padding: 8px 6px;
    border-radius: 6px; text-align: center;
    font-family: "SF Mono", Menlo, monospace;
    font-size: 13px; font-weight: 700;
    flex-shrink: 0;
  }
  .session-item.done .code-box { background: #6b6b66; }
  .session-item.future .code-box { background: #b0b0aa; }
  .session-item .info { flex: 1; min-width: 0; }
  .session-item .name {
    font-size: 13px; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .session-item .status {
    font-size: 11px; color: #6b6b66; margin-top: 2px;
    display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  }
  .session-item .status .datetime {
    font-family: "SF Mono", Menlo, monospace;
    background: #f0efec; padding: 1px 6px; border-radius: 3px;
    color: #4a4a45;
  }
  .session-item.done .status .datetime { background: #e0f0d8; color: #2d5a0e; }
  .session-item .arrow { font-size: 18px; color: #9a9a94; }

  /* Jump box */
  .jump-box {
    background: #fff; border: 2px solid #1a1a1a;
    border-radius: 10px; padding: 12px 14px;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px; cursor: pointer;
  }
  .jump-box .icon-search { font-size: 18px; color: #6b6b66; }
  .jump-box .label { flex: 1; font-size: 14px; color: #6b6b66; }
  .jump-box .hint-tap { font-size: 11px; color: #9a9a94; }

  /* Crew list */
  .crew-list { display: flex; flex-direction: column; gap: 5px; }
  .crew-item {
    background: #fff; border-radius: 10px;
    padding: 10px 12px; border: 1px solid #e0e0dc;
    display: flex; align-items: center; gap: 12px;
    cursor: pointer;
  }
  .crew-item:active { background: #efeeeb; }
  .crew-item .crew-num {
    min-width: 34px; text-align: center;
    font-size: 15px; font-weight: 700;
    color: #1a1a1a;
  }
  .crew-item .crew-info { flex: 1; min-width: 0; }
  .crew-item .crew-names { font-size: 14px; font-weight: 500; }
  .crew-item .crew-car { font-size: 11px; color: #6b6b66; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .crew-item .crew-status {
    font-size: 11px; padding: 2px 6px; border-radius: 4px;
    font-weight: 500; white-space: nowrap;
  }
  .crew-item.done { opacity: 0.7; background: #f0efec; }
  .crew-item.done .crew-status { background: #e0f0d8; color: #2d5a0e; }
  .crew-item.no-tyres .crew-status { background: #e6efff; color: #1c3a70; }
  .crew-item.no-show { opacity: 0.6; background: #eeeeed; }
  .crew-item.no-show .crew-status { background: #d5d5d0; color: #444; }
  .crew-item .crew-actions {
    display: flex; gap: 4px;
  }
  .crew-item .crew-actions button {
    background: none; border: 1px solid #cfcfc9;
    border-radius: 6px; padding: 6px 10px;
    font-size: 14px; cursor: pointer;
  }
  .crew-item .crew-actions button.del { color: #c92828; border-color: #f0c0c0; }
  .crew-item .crew-actions button.deact { color: #7a4a00; border-color: #d99b3d; background: #fff8e8; }
  .crew-item .crew-actions button:active { background: #efeeeb; }
  .crew-item.deactivated {
    background: #eeeeed; opacity: 0.55;
  }
  .crew-item.deactivated .crew-names {
    text-decoration: line-through;
    color: #6b6b66;
  }
  .crew-item.deactivated .crew-status {
    background: #b0b0aa; color: #fff;
  }

  .divider {
    display: flex; align-items: center; gap: 10px;
    margin: 16px 4px 8px;
    font-size: 12px; color: #6b6b66; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .divider::before, .divider::after {
    content: ''; flex: 1; height: 1px; background: #cfcfc9;
  }

  /* Scan viewport */
  .scan-viewport {
    background: #0a0a0a; aspect-ratio: 4/3;
    position: relative; display: flex;
    align-items: center; justify-content: center;
    color: #666; font-size: 13px;
    overflow: hidden; border-radius: 12px;
    margin-bottom: 10px;
  }
  .scan-frame {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 78%; height: 32%;
    border: 2px solid #fff; border-radius: 6px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
  }
  .scan-line {
    position: absolute; left: 0; right: 0; top: 50%;
    height: 2px; background: #ff3838;
    box-shadow: 0 0 8px #ff3838;
  }
  .scan-hint {
    position: absolute; bottom: 10px; left: 10px;
    color: #ddd; font-size: 11px;
    background: rgba(0,0,0,0.6);
    padding: 4px 8px; border-radius: 4px;
  }
  .flashlight-btn {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.6); color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%; width: 44px; height: 44px;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .flashlight-btn:active { background: rgba(0,0,0,0.9); }
  .flashlight-btn.on {
    background: #ffd700; color: #1a1a1a;
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255,215,0,0.5);
  }

  /* Scan actions */
  .scan-actions {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-bottom: 10px;
  }
  .scan-actions .btn { padding: 11px 8px; font-size: 13px; }

  /* Matrix */
  .matrix-wrap {
    background: #fff; border-radius: 12px;
    border: 1px solid #e0e0dc;
    margin-bottom: 10px;
    overflow: hidden;
  }
  .matrix-header {
    padding: 8px 12px; background: #f5f5f3;
    border-bottom: 1px solid #e0e0dc;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px;
  }
  .matrix-header .title { font-weight: 600; }
  .matrix-header .stats { color: #6b6b66; font-family: "SF Mono", monospace; }
  .matrix-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: "SF Mono", Menlo, monospace;
    font-size: 12px;
  }
  .matrix-table th, .matrix-table td {
    border-bottom: 1px solid #f0efec;
    border-right: 1px solid #f0efec;
    padding: 6px 4px;
    text-align: center;
    background: #fff;
    vertical-align: middle;
  }
  .matrix-table th {
    background: #fafaf7;
    font-weight: 600;
    font-family: -apple-system, sans-serif;
    font-size: 10px;
    color: #4a4a45;
    height: 50px;
    vertical-align: bottom;
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .matrix-table th.session-col {
    min-width: 36px; max-width: 36px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: left;
    padding: 6px 4px;
  }
  .matrix-table th.tyre-header {
    text-align: left;
    padding-left: 10px;
    min-width: 110px;
    writing-mode: horizontal-tb;
    transform: none;
  }
  .matrix-table th.delete-header {
    min-width: 32px; max-width: 32px;
    writing-mode: horizontal-tb;
    transform: none;
  }
  .matrix-table th.active-col {
    background: #ffd700;
    color: #1a1a1a;
    font-weight: 700;
  }
  .matrix-table td.active-col {
    background: #fff8d5;
  }
  .matrix-table td.tyre-cell {
    text-align: left;
    padding: 6px 10px;
    font-weight: 600;
    font-size: 12px;
    min-width: 110px;
    max-width: 110px;
    cursor: pointer;
  }
  .matrix-table td.tyre-cell:active { background: #f5f5f3; }
  .matrix-table td.tyre-cell.new { background: #eafbeb; }
  .matrix-table td.tyre-cell.new.active-col { background: #ddf0c0; }
  .matrix-table td.tyre-cell .code-txt { display: block; }
  .matrix-table td.tyre-cell .code-tag {
    display: block;
    font-family: "SF Mono", monospace;
    font-size: 10px;
    color: #6b6b66;
    font-weight: 500;
    margin-top: 2px;
  }
  .matrix-table td.tyre-cell .code-tag.ma { color: #4a1c70; }
  .matrix-table td.tyre-cell .code-tag.ph { color: #1c3a70; }
  .matrix-table td.x-mark { font-weight: 700; color: #2d5a0e; }
  .matrix-table td.x-mark.new { color: #1e4508; }
  .matrix-table td.x-empty { color: #d5d5d0; }
  .matrix-table td.delete-cell { padding: 2px; }
  .matrix-table td.delete-cell button {
    background: none; border: none;
    color: #c92828; font-size: 16px;
    cursor: pointer; padding: 4px 6px;
  }

  /* Photo thumbnail */
  .photo-thumb {
    display: inline-block;
    width: 55px; height: 22px;
    background: linear-gradient(90deg, #333 0%, #666 25%, #444 50%, #888 75%, #333 100%);
    border-radius: 3px;
    vertical-align: middle;
    cursor: pointer;
    position: relative;
    border: 1px solid #999;
  }
  .photo-thumb::before {
    content: '||I|||I|I||I';
    position: absolute; top: 1px; left: 3px;
    color: #fff; font-size: 8px;
    letter-spacing: 1px;
    font-family: monospace;
  }
  .photo-thumb::after {
    content: '3729_?';
    position: absolute; bottom: 0px; left: 3px;
    color: #fff; font-size: 7px;
    font-family: monospace;
  }

  /* Comment cloud */
  .comment-cloud-top {
    position: relative;
    display: inline-flex; align-items: center;
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.7);
    padding: 6px 10px; border-radius: 20px;
    font-size: 16px; cursor: pointer;
    min-width: 40px; justify-content: center;
  }
  .comment-cloud-top:active { background: rgba(255,255,255,0.1); }
  .comment-cloud-top.has-comments {
    background: #fff8e8;
    border: 1px solid #d99b3d;
    color: #7a4a00;
  }
  .comment-cloud-top .badge {
    position: absolute; top: -4px; right: -4px;
    background: #c92828; color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 8px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    font-family: -apple-system, sans-serif;
    border: 2px solid #1a1a1a;
  }

  /* Comment inline */
  .comment-inline {
    background: #fff8e8;
    border: 1px solid #d99b3d;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
  }
  .comment-inline .cmt-hdr {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
    font-size: 12px; font-weight: 600; color: #7a4a00;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .comment-inline .cmt-hdr .close {
    background: none; border: none;
    font-size: 22px; color: #7a4a00;
    cursor: pointer; padding: 0 4px;
    line-height: 1;
  }
  .comment-inline .cmt-entry {
    padding: 8px 0;
    border-top: 1px solid #f0e5c5;
    font-size: 13px;
    display: flex; gap: 8px; align-items: flex-start;
  }
  .comment-inline .cmt-entry:first-of-type { border-top: none; padding-top: 0; }
  .comment-inline .cmt-tag {
    font-family: "SF Mono", monospace;
    background: #d99b3d; color: #fff;
    padding: 2px 6px; border-radius: 3px;
    font-size: 10px; font-weight: 700;
    flex-shrink: 0; margin-top: 1px;
    min-width: 40px; text-align: center;
  }
  .comment-inline .cmt-text { flex: 1; color: #4a2e00; }
  .comment-inline .new-cmt {
    display: flex; gap: 8px; align-items: flex-start;
    padding: 8px 0 0;
    border-top: 1px dashed #d99b3d;
    margin-top: 4px;
  }
  .comment-inline .new-cmt .cmt-tag.new {
    background: #1a1a1a; color: #fff;
  }
  .comment-inline .new-cmt textarea {
    flex: 1; padding: 6px 8px;
    border: 1px solid #d99b3d; border-radius: 6px;
    font-family: inherit; font-size: 13px;
    background: #fff;
    resize: none; min-height: 40px;
  }
  .comment-inline .autosave-hint {
    font-size: 10px; color: #a05a00; margin-top: 4px;
    text-align: right; font-style: italic;
  }

  /* Banner */
  .banner {
    padding: 10px 14px; border-radius: 8px;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 10px;
    font-size: 13px;
  }
  .banner.warn { background: #fff8e8; border: 1px solid #e08800; color: #7a4a00; }
  .banner.error { background: #fdeaea; border: 1px solid #c92828; color: #8a1414; font-weight: 500; }
  .banner.info { background: #e6efff; border: 1px solid #4a7ac9; color: #1c3a70; }
  .banner.success { background: #eafbeb; border: 1px solid #2d5a0e; color: #1e4508; }

  /* Action bar */
  .action-bar {
    padding: 12px 14px; background: #fff;
    border-top: 1px solid #e0e0dc;
    display: flex; gap: 8px; flex-shrink: 0;
  }
  .action-bar .btn { padding: 13px; font-size: 14px; }

  /* Modals — v7: ALL CENTERED */
  .modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
    display: none; align-items: center; justify-content: center;
    z-index: 50; padding: 20px;
  }
  .modal-backdrop.active { display: flex; }
  .modal {
    background: #fff; width: 100%;
    border-radius: 16px;
    padding: 20px 16px 16px;
    max-height: 92%; overflow-y: auto;
  }
  .modal h3 { font-size: 16px; margin-bottom: 12px; }

  /* Keypad */
  .keypad-display {
    background: #f5f5f3; border: 1px solid #cfcfc9;
    border-radius: 8px; padding: 16px;
    text-align: center; font-family: "SF Mono", Menlo, monospace;
    font-size: 22px; font-weight: 700; letter-spacing: 3px;
    margin-bottom: 12px; min-height: 60px;
  }
  .keypad-display .placeholder { color: #c92828; }
  .keypad-hint {
    text-align: center; font-size: 11px; color: #6b6b66;
    margin-bottom: 8px;
  }
  .keypad { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .keypad button {
    padding: 14px 0; font-size: 20px; font-weight: 500;
    background: #f5f5f3; border: 1px solid #cfcfc9;
    border-radius: 10px; cursor: pointer; font-family: inherit;
  }
  .keypad button:active { background: #e0e0dc; }
  .keypad button.action { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
  .keypad button.del { background: #fff; color: #c92828; border-color: #c92828; }
  .keypad button.placeholder { background: #fff; color: #c92828; border-color: #c92828; font-family: "SF Mono", monospace; }

  /* Time picker */
  .time-picker {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-bottom: 12px;
  }
  .time-picker .time-field {
    width: 90px; padding: 20px;
    text-align: center; font-size: 32px; font-weight: 700;
    font-family: "SF Mono", monospace;
    background: #f5f5f3; border: 2px solid #cfcfc9;
    border-radius: 10px;
  }
  .time-picker .time-field:focus {
    outline: none; border-color: #1a1a1a;
    background: #fff;
  }
  .time-picker .colon {
    font-size: 32px; font-weight: 700;
    color: #6b6b66;
  }

  /* Date picker */
  .date-picker {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 12px;
  }
  .date-picker .date-option {
    padding: 12px 16px;
    background: #f5f5f3;
    border: 2px solid #cfcfc9;
    border-radius: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
  }
  .date-picker .date-option:active { background: #efeeeb; }
  .date-picker .date-option.selected {
    background: #1a1a1a; color: #fff;
    border-color: #1a1a1a;
  }
  .date-picker .date-option .day-name {
    font-size: 12px; opacity: 0.7;
  }
  .date-picker .date-option .day-date {
    font-weight: 700; font-size: 15px;
  }

  /* Photo preview */
  .photo-preview-wrap {
    position: relative;
    margin-bottom: 12px;
  }
  .photo-preview-big {
    width: 100%; height: 140px;
    background: linear-gradient(90deg, #333 0%, #666 20%, #444 40%, #888 60%, #333 80%, #555 100%);
    border-radius: 8px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: monospace;
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  .photo-preview-big::before {
    content: '|||I|I||||II||I|I||||II|I|';
    position: absolute; top: 25px; left: 20px; right: 20px;
    color: #fff; font-size: 24px;
    letter-spacing: 3px;
    text-align: center;
  }
  .photo-preview-big::after {
    content: '37 29 3_ ? 62';
    position: absolute; bottom: 30px; left: 0; right: 0;
    color: #fff; font-size: 18px;
    text-align: center;
    font-weight: bold;
  }
  .rotate-btn {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,0.6); color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 36px; height: 36px;
    font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }

  /* Confirm */
  .confirm-dialog { text-align: center; }
  .confirm-dialog .icon-big { font-size: 40px; margin-bottom: 8px; }
  .confirm-dialog h3 { margin-bottom: 8px; text-align: center; }
  .confirm-dialog .code-highlight {
    font-family: "SF Mono", monospace;
    background: #fdeaea; color: #c92828;
    padding: 6px 12px; border-radius: 6px;
    font-size: 16px; font-weight: 700;
    display: inline-block; margin: 8px 0;
  }
  .confirm-dialog .scope-info {
    background: #fff8e8; color: #7a4a00;
    border: 1px solid #d99b3d;
    padding: 8px 12px; border-radius: 6px;
    font-size: 12px; margin-bottom: 16px;
  }

  /* Form */
  .form-group { margin-bottom: 14px; }
  .form-group label {
    display: block; font-size: 12px; color: #4a4a45;
    margin-bottom: 5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 11px 12px;
    border: 1px solid #cfcfc9; border-radius: 8px;
    font-size: 15px; font-family: inherit; background: #fff;
  }
  .form-group .hint { font-size: 11px; color: #6b6b66; margin-top: 4px; }
  .form-group .auto-hint {
    display: inline-block;
    background: #eafbeb; color: #1e4508;
    padding: 2px 8px; border-radius: 4px;
    font-size: 10px; font-weight: 600;
    margin-left: 6px;
  }
  .range-inputs {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
    align-items: center;
  }
  .range-inputs input { text-align: center; font-size: 18px; font-weight: 700; padding: 12px; }
  .range-inputs .sep { color: #6b6b66; font-size: 14px; }
  .big-num-input {
    font-size: 32px !important;
    text-align: center;
    font-weight: 700 !important;
    padding: 20px !important;
  }

  /* Menu list */
  .menu-list { display: flex; flex-direction: column; gap: 4px; }
  .menu-list .menu-row {
    background: #fff; padding: 14px 16px;
    border: 1px solid #e0e0dc; border-radius: 10px;
    display: flex; align-items: center; gap: 12px;
    cursor: pointer;
  }
  .menu-list .menu-row:active { background: #efeeeb; }
  .menu-list .menu-row .icon { font-size: 20px; min-width: 24px; }
  .menu-list .menu-row .txt { flex: 1; }
  .menu-list .menu-row .name { font-size: 15px; font-weight: 500; }
  .menu-list .menu-row .desc { font-size: 12px; color: #6b6b66; margin-top: 1px; }
  .menu-list .menu-row .arrow { font-size: 18px; color: #9a9a94; }
  .menu-list .menu-row.danger .name { color: #c92828; }

  /* Session builder (v7 without count field) */
  .session-builder {
    background: #fff; border: 1px solid #e0e0dc;
    border-radius: 10px; padding: 12px;
    margin-bottom: 8px;
  }
  .session-builder .builder-hdr {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
    font-size: 12px; font-weight: 600;
    color: #4a4a45;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .session-builder .builder-hdr .del-btn {
    background: none; border: 1px solid #f0c0c0;
    color: #c92828; font-size: 14px;
    cursor: pointer; padding: 4px 10px; border-radius: 6px;
  }
  .session-builder .builder-hdr .del-btn:active { background: #fdeaea; }
  .session-builder .builder-row {
    display: grid; grid-template-columns: 60px 1fr; gap: 6px;
    margin-bottom: 6px;
  }
  .session-builder .builder-row.dt {
    grid-template-columns: 1fr 90px;
  }
  .session-builder input {
    padding: 8px 10px; border: 1px solid #cfcfc9;
    border-radius: 6px; font-size: 14px; font-family: inherit;
    background: #fff; width: 100%;
  }
  .session-builder input.code {
    font-family: "SF Mono", monospace;
    font-weight: 700; text-align: center;
    text-transform: uppercase;
  }
  .session-builder .dt-btn {
    padding: 8px 10px; background: #fff;
    border: 1px solid #cfcfc9; border-radius: 6px;
    font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    font-family: "SF Mono", monospace; font-weight: 600;
  }
  .session-builder .dt-btn:active { background: #efeeeb; }
  .session-builder .dt-btn.empty { color: #9a9a94; font-style: italic; font-weight: 400; }

  .add-session-btn {
    width: 100%; padding: 14px;
    background: #fff; border: 2px dashed #cfcfc9;
    border-radius: 10px; color: #6b6b66;
    font-size: 14px; font-weight: 600; cursor: pointer;
    font-family: inherit; margin-top: 4px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .add-session-btn:active { background: #f5f5f3; border-color: #9a9a94; }
  .add-session-btn:disabled { opacity: 0.4; cursor: not-allowed; }

  .sessions-count-hint {
    text-align: center; color: #6b6b66; font-size: 12px;
    margin: 8px 0;
  }

  /* Maket note */
  .maket-note {
    position: fixed; bottom: 6px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75); color: #fff;
    padding: 5px 10px; border-radius: 20px;
    font-size: 10px; z-index: 100; pointer-events: none;
  }

  /* === Prototipa papildus stili === */

  /* Loading ekrāns */
  .loading-msg {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100vh; gap: 12px;
    color: #6b6b66; font-size: 14px;
  }
  .spinner {
    width: 32px; height: 32px;
    border: 3px solid #e0e0dc;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Tukši ekrāni */
  .empty-state {
    padding: 40px 20px; text-align: center;
    color: #6b6b66;
  }
  .empty-state .icon-big {
    font-size: 48px; margin-bottom: 12px; opacity: 0.5;
  }
  .empty-state h3 {
    font-size: 16px; font-weight: 600;
    margin-bottom: 8px; color: #1a1a1a;
  }
  .empty-state p {
    font-size: 13px; line-height: 1.5;
    margin-bottom: 20px;
  }

  /* Toast paziņojumi (īsi teksti augšā) */
  .toast {
    position: fixed; top: 20px; left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a; color: #fff;
    padding: 10px 18px; border-radius: 20px;
    font-size: 13px; z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0; transition: opacity 0.2s;
    pointer-events: none;
    max-width: 90%; text-align: center;
  }
  .toast.show { opacity: 1; }
  .toast.error { background: #c92828; }
  .toast.success { background: #2d5a0e; }

  /* CTA (call to action) tukšām ekrāniem */
  .cta-illustration {
    padding: 30px 20px; text-align: center;
    background: #fff; border: 2px dashed #cfcfc9;
    border-radius: 12px; margin: 12px 0;
  }

  /* v3: Big crew number in crew list */
  .crew-item .crew-num.crew-num-big {
    font-size: 26px;
    font-weight: 800;
    min-width: 60px;
    letter-spacing: -1px;
    padding: 0 6px;
    text-align: center;
    line-height: 1;
    color: #1a1a1a;
  }
