* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; font-family: Arial, Helvetica, sans-serif; color: #1f2937; background: linear-gradient(120deg, #eef8fb 0%, #f7f7f2 55%, #f5f0e6 100%); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid #030c94; outline-offset: 3px; }
#login-box { width: min(380px, calc(100% - 32px)); margin: 100px auto; background: #fffffff5; padding: 30px; border-radius: 18px; box-shadow: 0 15px 40px #00000014; }
.login-logo { display: block; width: 150px; margin-bottom: 24px; }
#login-box h1 { margin-bottom: 8px; }
#login-box p { color: #64748b; font-size: 14px; line-height: 1.5; }
#login-box label { display: block; font-size: 13px; margin-bottom: 6px; }
#login-box input { width: 100%; padding: 12px 14px; margin-bottom: 16px; border: 1px solid #ded6ca; border-radius: 10px; background: white; }
#login-button { width: 100%; padding: 12px; border: 0; border-radius: 10px; background: #0f0cc5; color: white; font-weight: 600; }
#login-message { min-height: 1.5em; }
.password-reset-button { display: block; margin-top: 14px; padding: 0; border: 0; background: transparent; color: #030c94; text-align: left; font-size: 13px; text-decoration: underline; }
.connection-panel { padding: 24px; max-width: 740px; }
.connection-panel h2 { margin-top: 0; }
.connection-panel p { color: #64748b; font-size: 14px; line-height: 1.5; }
.connection-panel form { display: grid; gap: 16px; max-width: 380px; }
.connection-panel label { display: grid; gap: 7px; font-size: 13px; }
.connection-panel input { padding: 10px 12px; border: 1px solid #ded6ca; border-radius: 8px; width: 100%; }
.app-header { width: calc(100% - 80px); margin: 10px auto; padding: 16px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; background: #fffffff5; border-radius: 18px; box-shadow: 0 12px 35px #00000012; }
.header-left, .header-right { display: flex; align-items: center; gap: 18px; }
.header-left { min-width: 0; }
.header-right { justify-self: end; }
.title-area { min-width: 0; }
.brand-mark { width: 118px; height: 56px; border-radius: 14px; background: linear-gradient(140deg, #9bd5f657, #1f7b6d42); box-shadow: 0 10px 24px #1a26331f; display: grid; place-items: center; overflow: hidden; padding: 5px 8px; flex: 0 0 auto; }
.brand-mark .logo { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.title-area h1 { margin: 0; font-size: 26px; color: #000; }
.title-area p { margin: 4px 0 0; color: #7a8593; font-size: 14px; }
.user-email { color: #6b7280; font-size: 14px; overflow-wrap: anywhere; }
.logout-button, .secondary-button { padding: 9px 16px; border: 1px solid #ded6ca; border-radius: 10px; background: white; font-size: 13px; font-weight: 600; color: #334155; }
.secondary-button:hover, .logout-button:hover { background: #f4f1eb; }
.logout-button { border-radius: 20px; color: #000; }
.finals-link { color: #030c94; font-size: 13px; text-decoration: none; white-space: nowrap; }
.finals-link:hover { text-decoration: underline; }
.year-select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; font-weight: 700; color: #000; cursor: pointer; text-align: center; }
.year-select:hover { background: #1f2d3d0f; }
.year-select:focus-visible { outline: 2px solid #030c94; outline-offset: 2px; }
.app-panel { width: calc(100% - 80px); margin: 0 auto 40px; background: #fffffff5; border-radius: 18px; box-shadow: 0 12px 35px #00000012; }
.add-tour-button { padding: 10px 16px; border: 0; border-radius: 10px; background: #0f0cc5; color: white; font-size: 13px; font-weight: 600; }
.add-tour-button:hover { background: #030c94; }
.tour-context-copy { background: #eef5f2; color: #2f5f4f; }
.tour-context-copy:hover { background: #dcebe5; transform: translateY(-2px); }
.tour-context-delete { background: #fff0ee; color: #c4473d; }
.tour-context-delete:hover { background: #fbdeda; transform: translateY(-2px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #e5e7eb; }
.modal-header h2 { margin: 0; font-size: 20px; }
.modal-close { border: 0; background: transparent; color: #64748b; font-size: 26px; }
.modal-actions { display: flex; align-items: center; justify-content: end; gap: 10px; padding: 16px 24px; border-top: 1px solid #e5e7eb; }
@media (max-width: 1000px) { .app-header { grid-template-columns: minmax(0, 1fr) auto; } .header-right { grid-column: 1 / -1; width: 100%; flex-wrap: wrap; justify-content: flex-end; gap: 12px; } }
@media (max-width: 600px) { .app-header, .app-panel { width: calc(100% - 20px); } .app-header { padding: 16px; gap: 16px; } .header-left { gap: 12px; } .brand-mark { width: 85px; height: 45px; } .title-area h1 { font-size: 22px; } .title-area p { font-size: 12px; } .header-right { width: 100%; } .user-email { flex: 1; } }
.offline-tools { width: calc(100% - 80px); margin: 0 auto 10px; border: 1px solid #c9dfd5; border-radius: 12px; background: #f3faf6; font-size: 13px; color: #2f5f4f; }
.offline-tools summary { padding: 11px 16px; cursor: pointer; }
.offline-tools.needs-attention { border-color: #e2be7d; background: #fff9ed; color: #704b12; }
.offline-details { padding: 0 16px 16px; max-width: 1000px; line-height: 1.55; }
.offline-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#sync-error { color: #a13224; }
@media (max-width: 600px) { .offline-tools { width: calc(100% - 20px); } }
@media print { body { background: white; } .offline-tools { display: none; } .app-panel { width: 100%; margin: 0; border-radius: 0; box-shadow: none; } }
