/* Stage110_9 split stylesheet: notifications, telegram, and daily briefing settings styling (from rail-signal-calendar-v82.css lines 5268-5833) */

/* --- style block 25 --- */
  .telegram-pref-row {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
  }
  .telegram-pref-card {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
  }
  .telegram-pref-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }
  .telegram-pref-status-main {
    display: grid;
    gap: 3px;
  }
  .telegram-pref-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
  }
  .telegram-pref-sub {
    font-size: 11px;
    color: #475569;
    line-height: 1.38;
  }
  .telegram-pref-briefing {
    padding: 9px 11px;
    border-radius: 11px;
    background: rgba(239, 246, 255, 0.82);
    border: 1px solid rgba(191, 219, 254, 0.88);
    color: #1e40af;
    font-size: 12px;
    line-height: 1.42;
  }
  .telegram-pref-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(226, 232, 240, 0.92);
    color: #334155;
  }
  .telegram-pref-badge.is-linked {
    background: rgba(220, 252, 231, 0.92);
    color: #166534;
  }
  .telegram-pref-badge.is-warning {
    background: rgba(254, 240, 138, 0.92);
    color: #854d0e;
  }
  .telegram-pref-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .telegram-pref-actions .ghost-btn,
  .telegram-pref-actions .primary-btn,
  .telegram-pref-actions .danger-btn {
    min-height: 34px;
  }
  .telegram-reminder-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .telegram-reminder-select {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #fff;
    color: #0f172a;
    font-size: 14px;
  }
  .telegram-reminder-select:disabled {
    background: rgba(248, 250, 252, 0.96);
    color: #64748b;
  }
  .telegram-reminder-static {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(219, 234, 254, 0.64);
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    display: flex;
    align-items: center;
  }
  .form-row.is-disabled .telegram-reminder-static {
    background: rgba(248, 250, 252, 0.96);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.26);
  }
  .form-row.is-disabled .telegram-reminder-help {
    color: #475569;
  }
  .telegram-reminder-help {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
  }
  .telegram-reminder-help strong {
    color: #0f172a;
  }
  .telegram-connect-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .telegram-reminder-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(226, 232, 240, 0.84);
    color: #334155;
    white-space: nowrap;
  }
  .telegram-reminder-badge.is-active {
    background: rgba(219, 234, 254, 0.96);
    color: #1d4ed8;
  }
  .telegram-reminder-badge.is-muted {
    background: rgba(254, 240, 138, 0.88);
    color: #854d0e;
  }
  .telegram-reminder-action {
    white-space: nowrap;
  }
  .telegram-reminder-menu {
    position: fixed;
    z-index: 6100;
    min-width: 220px;
    display: none;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
  }
  .telegram-reminder-menu.show {
    display: block;
  }
  .telegram-reminder-menu-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    padding: 4px 6px 10px;
  }
  .telegram-reminder-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    padding: 0 10px;
    font-size: 13px;
    color: #0f172a;
    cursor: pointer;
  }
  .telegram-reminder-option:hover {
    background: rgba(241, 245, 249, 0.96);
  }
  .telegram-reminder-option.is-active {
    background: rgba(219, 234, 254, 0.92);
    color: #1d4ed8;
    font-weight: 700;
  }
  .telegram-reminder-option-check {
    opacity: 0;
    font-size: 12px;
  }
  .telegram-reminder-option.is-active .telegram-reminder-option-check {
    opacity: 1;
  }
  .telegram-reminder-menu-footer {
    padding: 10px 6px 2px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.45;
  }
  .viewer-user-chip .telegram-chip-btn {
    border-radius: 999px;
    padding-inline: 10px;
  }
  body.mobile-ui .telegram-reminder-menu {
    left: 12px !important;
    right: 12px;
    width: auto;
    min-width: 0;
  }
  body.mobile-ui .viewer-user-chip .telegram-chip-btn {
    padding-inline: 8px;
    min-height: 30px;
    font-size: 12px;
  }

/* --- style block 26 --- */
  #eventList .event-card {
    padding: 10px 12px !important;
  }
  #eventList .event-card .event-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
  }
  #eventList .event-card .event-time {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0 !important;
    line-height: 1.25 !important;
  }
  #eventList .event-card .event-input-basis-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.96);
    border: 1px solid rgba(253, 186, 116, 0.72);
    color: #c2410c;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  #eventList .event-card .event-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
  }
  #eventList .event-card .event-delete-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    padding: 2px 4px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
  }
  #eventList .event-card .event-delete-btn:hover {
    background: rgba(239, 68, 68, 0.10);
  }
  #eventList .event-card .event-actions {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-top: 8px !important;
    padding-top: 0 !important;
  }
  #eventList .event-card .reminder-state-btn {
    min-height: auto !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700;
    line-height: 1.2 !important;
    white-space: nowrap;
    border: 1px solid rgba(191, 219, 254, 0.85);
    background: rgba(239, 246, 255, 0.96);
    color: #1d4ed8;
    box-shadow: none !important;
    margin-left: auto;
  }
  #eventList .event-card .reminder-state-btn.is-empty {
    border-color: rgba(226, 232, 240, 0.92);
    background: rgba(248, 250, 252, 0.94);
    color: #94a3b8;
    font-weight: 600;
  }
  #eventList .event-card .reminder-state-btn.is-muted {
    border-color: rgba(252, 211, 77, 0.55);
    background: rgba(254, 249, 195, 0.92);
    color: #a16207;
  }
  #eventList .event-card .reminder-state-btn.is-disabled,
  #eventList .event-card .reminder-state-btn:disabled {
    border-color: rgba(226, 232, 240, 0.94);
    background: rgba(248, 250, 252, 0.98);
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 1;
  }
  #eventList .event-card .reminder-state-btn.is-locked {
    cursor: default;
  }
  #eventList .event-card .reminder-state-btn.is-locked:hover {
    background: rgba(239, 246, 255, 0.96);
  }
  #eventList .event-card .reminder-state-btn.is-locked:active {
    transform: none;
  }
  #eventList .event-card .event-name {
    margin-bottom: 4px !important;
    padding-right: 0 !important;
  }
  #eventList .event-card .event-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
  }
  #eventList .event-card .event-meta-left {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }
  #eventList .event-card .event-meta-right {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin-left: auto !important;
    white-space: nowrap !important;
  }
  #eventList .event-card .calendar-source-inline {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
  }
  #eventList .event-card .calendar-source-badge,
  #eventList .event-card .event-meta-location {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 20px !important;
  }
  #eventList .event-card .calendar-source-badge {
    min-width: 0 !important;
    max-width: min(52vw, 220px) !important;
  }
  #eventList .event-card .calendar-source-badge > span:last-child {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #eventList .event-card .event-meta-location {
    line-height: 1.2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  #eventList .event-card .event-desc {
    margin-top: 6px !important;
  }
  body.mobile-ui #eventList .event-card {
    padding: 10px 12px !important;
  }
  body.mobile-ui #eventList .event-card .event-actions {
    position: static !important;
    top: auto !important;
    right: auto !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-top: 8px !important;
  }
  body.mobile-ui #eventList .event-card .event-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    row-gap: 0 !important;
  }
  body.mobile-ui #eventList .event-card .event-meta-left {
    gap: 5px !important;
  }
  body.mobile-ui #eventList .event-card .event-meta-right {
    width: auto !important;
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
    align-self: center !important;
  }
  body.mobile-ui #eventList .event-card .calendar-source-badge {
    max-width: min(44vw, 180px) !important;
  }
  body.mobile-ui #eventList .event-card .reminder-state-btn {
    margin-left: 0 !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

/* --- style block 27 --- */
  .daily-briefing-pref-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    background: #fff;
  }
  .daily-briefing-pref-main {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .daily-briefing-pref-title {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
  }
  .daily-briefing-pref-sub {
    font-size: 11px;
    color: #5f6368;
    line-height: 1.4;
  }
  .daily-briefing-pref-statusbox {
    margin-top: -2px;
  }
  .daily-briefing-pref-controls {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(180px, 220px);
    gap: 10px;
    align-items: center;
  }
  .daily-briefing-pref-toggle {
    margin: 0;
  }
  .daily-briefing-time-row {
    margin: 0 !important;
    width: 100%;
    min-width: 0;
  }
  .daily-briefing-time-row .time-field-head {
    display: none;
  }
  .daily-briefing-time-row .time-field-body {
    gap: 8px;
  }
  .daily-briefing-time-row .time-proxy-shell {
    max-width: 220px;
    margin-left: auto;
  }
  .daily-briefing-time-row .time-text-proxy,
  .daily-briefing-time-row .time-picker-toggle {
    min-height: 40px;
    border-radius: 12px;
  }
  .daily-briefing-time-row .time-picker-toggle {
    min-width: 64px;
    padding: 0 12px;
  }
  .daily-briefing-pref-time {
    width: 128px;
    max-width: 100%;
    border: 1px solid #d7dde5;
    border-radius: 12px;
    padding: 9px 10px;
    font: inherit;
    background: #fff;
  }
  .daily-briefing-calendar-section {
    display: grid;
    gap: 8px;
    padding-top: 2px;
  }
  .daily-briefing-calendar-head {
    display: grid;
    gap: 4px;
  }
  .daily-briefing-calendar-title {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
  }
  .daily-briefing-calendar-sub,
  .daily-briefing-calendar-hint {
    font-size: 11px;
    line-height: 1.45;
    color: #5f6368;
  }
  .daily-briefing-calendar-list {
    display: grid;
    gap: 8px;
    max-height: min(28vh, 220px);
    overflow: auto;
    padding-right: 2px;
  }
  .daily-briefing-calendar-item {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    background: #f9fbfd;
    cursor: pointer;
  }
  .daily-briefing-calendar-checkbox {
    margin: 0;
  }
  .daily-briefing-calendar-swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--daily-briefing-calendar-color, #1a73e8);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  }
  .daily-briefing-calendar-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .daily-briefing-calendar-name {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .daily-briefing-calendar-desc {
    font-size: 11px;
    color: #64748b;
  }
  .daily-briefing-calendar-item.is-selected,
  .daily-briefing-calendar-item:has(.daily-briefing-calendar-checkbox:checked) {
    border-color: rgba(26, 115, 232, 0.35);
    background: rgba(232, 240, 254, 0.72);
  }
  .daily-briefing-pref-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .daily-briefing-preview-modal {
    width: min(640px, calc(100vw - 32px));
  }
  .daily-briefing-preview-sub {
    margin: 0 0 12px;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.5;
  }
  .daily-briefing-preview-box {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f6f8fb;
    border: 1px solid #e6ebf2;
    font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
    color: #1f2937;
    max-height: min(52vh, 460px);
    overflow: auto;
  }
  body.mobile-ui .daily-briefing-pref-controls {
    grid-template-columns: 1fr;
  }
  body.mobile-ui .daily-briefing-time-row .time-proxy-shell {
    max-width: none;
    margin-left: 0;
  }
  body.mobile-ui .daily-briefing-pref-time {
    width: 100%;
  }
  body.mobile-ui .daily-briefing-calendar-item {
    grid-template-columns: auto auto minmax(0, 1fr);
    padding: 10px 11px;
  }
  body.mobile-ui .daily-briefing-calendar-list {
    max-height: min(24vh, 180px);
  }

/* --- style block 28 --- */
  #localTimeModeRow {
    margin-top: -4px;
  }
  #localTimeModeRow .helper {
    display: block !important;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.45;
    font-size: 12px;
  }
  #localTimeModeRow .inline {
    gap: 8px;
  }

