body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}html{scroll-behavior:smooth;height:100%}html,body{margin:0;padding:0}@keyframes blink{50%{opacity:0}}.blinking{color:red!important;animation:blink 1s step-start 0s infinite}.time-30s-blinking{animation:blink 1.5s step-start 0s infinite}body{font-family:Arial,sans-serif;background-color:#f7f7f7;color:#333;margin:0;padding:0;overflow-x:hidden}.timer-body{display:flex;justify-content:center;align-items:center;height:100vh}.settings-body{display:block;height:auto;min-height:100vh}#timer{text-align:center;background-color:#fff;padding:0;border-radius:10px;box-shadow:0 0 10px #0000001a;overflow:hidden}.timer-nav{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;margin-bottom:20px}.nav-left{display:flex;align-items:center;flex:1;min-width:0}.nav-right{display:flex;align-items:center;flex-shrink:0;margin-left:1rem}.nav-actions-group{--toolbar-h: 2.5rem;display:inline-grid;grid-auto-flow:column;grid-auto-rows:var(--toolbar-h);align-items:stretch;justify-items:stretch;gap:.5rem;padding:.35rem .5rem;border-radius:12px;background:#16122d6b;border:1px solid rgba(255,255,255,.28);isolation:isolate}.nav-actions-group .lang-switcher-icon{display:none}.nav-actions-group .nav-btn,.nav-actions-group .nav-help-btn{margin:0;box-sizing:border-box;height:100%;min-height:0;padding:0 1rem}.nav-actions-group .lang-switcher{display:flex;align-items:stretch;margin:0;min-height:0;height:100%;min-width:6rem}.nav-actions-group .lang-switcher-select{box-sizing:border-box;flex:1 1 auto;width:100%;min-width:0;min-height:0;height:100%;margin:0;padding-top:0;padding-bottom:0;padding-left:.65rem;padding-right:1.75rem;line-height:1.2;vertical-align:middle}.settings-nav-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:nowrap;justify-content:flex-end;min-width:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.lang-switcher{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:.4rem;font-size:.9rem;color:inherit;min-width:0}.lang-switcher-icon{font-size:1.1rem;line-height:1;flex-shrink:0;opacity:.95}.lang-switcher-select{font-family:inherit;font-size:.9rem;line-height:1.3;padding:.5rem 1.85rem .5rem .75rem;border-radius:8px;cursor:pointer;max-width:9rem;min-width:6rem;box-sizing:border-box;-moz-appearance:none;appearance:none;-webkit-appearance:none;background-repeat:no-repeat;background-position:right .55rem center;background-size:.7rem;-webkit-backdrop-filter:none;backdrop-filter:none;-webkit-font-smoothing:antialiased}.lang-switcher--timer .lang-switcher-select{border:1px solid rgba(255,255,255,.38);background-color:#624ea8f2;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");color:#fff;font-weight:600}.lang-switcher--timer .lang-switcher-select:hover{background-color:#705cbcfa}.lang-switcher--timer .lang-switcher-select:focus-visible{outline:2px solid rgba(255,255,255,.95);outline-offset:2px}.nav-actions-group--settings .lang-switcher--settings .lang-switcher-select,.lang-switcher--settings .lang-switcher-select{border:1px solid rgba(255,255,255,.38);background-color:#624ea8f2;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");color:#fff;font-weight:600;max-width:9.5rem}.nav-actions-group--settings .lang-switcher--settings .lang-switcher-select:hover,.lang-switcher--settings .lang-switcher-select:hover{background-color:#705cbcfa}.lang-switcher--settings .lang-switcher-select:focus-visible{outline:2px solid rgba(255,255,255,.95);outline-offset:2px}.dark-mode .nav-actions-group--settings .lang-switcher--settings .lang-switcher-select{background-color:#483a80f5;border-color:#ffffff59}.dark-mode .nav-actions-group--settings .lang-switcher--settings .lang-switcher-select:hover{background-color:#584894fa}.app-title{margin:0;font-size:1.5rem;font-weight:600;color:#fff}.nav-btn{background:#ffffff38;border:1px solid rgba(255,255,255,.35);color:#fff;padding:.5rem 1rem;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;display:inline-flex;align-items:center;justify-content:center;gap:.25rem;line-height:1.3;min-height:2.5rem;box-sizing:border-box}.nav-btn:hover{background:#ffffff52;box-shadow:0 2px 8px #0000002e}.dark-mode-btn{min-width:3rem;justify-content:center}#timer>*{padding-left:1.5rem;padding-right:1.5rem}#timer>.timer-nav{padding-left:1.5rem;padding-right:1.5rem}#timer>select,#timer>h2,#timer>.timer-box,#timer>.debate-timers-container{margin-left:0;margin-right:0}select{width:100%;padding:10px;margin-bottom:20px;font-size:20px;border-radius:5px;border:1px solid #ddd}h2{font-size:24px;color:#555;margin-bottom:10px}h1{font-size:100px;color:#222;margin:20px 0}h3{font-size:20px;color:#444}button{font-size:20px;padding:10px 20px;margin:10px 10px 20px;border:none;border-radius:5px;background-color:#5cb85c;color:#fff;cursor:pointer;transition:background-color .3s}button:disabled{background-color:#ccc;cursor:not-allowed}button:not(:disabled):hover{background-color:#4cae4c}.controls{display:flex;justify-content:center;margin-top:20px}.timer-container{display:flex;justify-content:space-around;align-items:center;margin-top:20px}.timer-box{text-align:center}.timer-box h1{font-size:80px;margin:0}.debate-timers-container{display:flex;justify-content:space-between;align-items:center}.timer-box{flex:1;text-align:center;margin:0 10px}@media screen and (max-width:768px){.debate-timers-container{flex-direction:column}}@media screen and (max-width:768px){.timer-container{flex-direction:column}.timer-box{margin-bottom:20px}.timer-box h1{font-size:60px}}.dark-mode{background-color:#333!important;color:#f7f7f7!important}.dark-mode #timer{background-color:#333;color:#f7f7f7;box-shadow:0 0 10px #ffffff1a}.dark-mode .timer-nav{background:linear-gradient(135deg,#2c3e50,#34495e)}.dark-mode .app-title{color:#f7f7f7}.dark-mode .nav-btn{background:#ffffff1a;border-color:#fff3;color:#f7f7f7}.dark-mode .nav-btn:hover{background:#fff3}.dark-mode h2{color:#f7f7f7}.dark-mode #timer>select{background-color:#3c3c3c;color:#f7f7f7;border:1px solid #555}.dark-mode .lang-switcher--timer .lang-switcher-select{background-color:#483e78f5;border-color:#ffffff59;color:#fff}.dark-mode .lang-switcher--timer .lang-switcher-select:hover{background-color:#584c8efa}.dark-mode button{background-color:#4c4c4c;color:#f7f7f7;border:2px solid transparent}.dark-mode button.active{border-color:#f7f7f7;background-color:#666;color:#fff}.dark-mode button:disabled{background-color:#3c3c3c;color:#555}.dark-mode button:not(:disabled):hover{background-color:#5c5c5c;border-color:#f7f7f7}.dark-mode .timer-box h3,.dark-mode .timer-box h1{color:#f7f7f7}.modern-settings-container{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2) fixed;padding:0;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;width:100%;overflow-x:hidden;position:relative}.settings-header{background:#ffffff24;border-bottom:1px solid rgba(255,255,255,.22);padding:2rem 0;text-align:center;color:#fff}.header-content{max-width:1200px;margin:0 auto;padding:0 2rem}.settings-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.nav-center{display:flex;align-items:center}.nav-title{margin:0;font-size:1.2rem;font-weight:500;color:#ffffffe6}.breadcrumb{display:flex;align-items:center;gap:.5rem}.breadcrumb-item{color:#ffffffb3;font-size:.9rem;transition:color .3s ease}.breadcrumb-item.current{color:#fff;font-weight:500}.breadcrumb-separator{color:#ffffff80;font-size:1rem}.nav-back-btn,.nav-help-btn{background:#ffffff38;border:1px solid rgba(255,255,255,.35);color:#fff;padding:.5rem 1rem;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:background .2s ease,box-shadow .2s ease;display:inline-flex;align-items:center;justify-content:center;gap:.25rem;line-height:1.3;min-height:2.5rem;box-sizing:border-box}.nav-back-btn:hover,.nav-help-btn:hover{background:#ffffff52;box-shadow:0 2px 8px #0000002e}.header-main{text-align:center}.settings-title{font-size:2.5rem;font-weight:700;margin:0 0 .5rem;text-shadow:0 2px 4px rgba(0,0,0,.3)}.settings-subtitle{font-size:1.1rem;margin:0;opacity:.9;font-weight:300}.settings-content{max-width:1200px;margin:0 auto;padding:2rem 2rem 4rem;display:flex;flex-direction:column;gap:2rem}.settings-card{background:#fff;border-radius:16px;box-shadow:0 8px 32px #0000001a;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease}.settings-card:hover{transform:translateY(-4px);box-shadow:0 12px 48px #00000026}.card-header{background:linear-gradient(135deg,#f8f9fa,#e9ecef);padding:1.5rem 2rem;border-bottom:1px solid #e9ecef}.card-title{font-size:1.5rem;font-weight:600;margin:0 0 .5rem;color:#495057}.card-description{margin:0;color:#6c757d;font-size:.95rem;line-height:1.5}.card-content{padding:2rem}.config-row{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.config-label{font-weight:500;color:#495057;min-width:120px}.config-actions{display:flex;gap:1rem;flex:1;align-items:center}.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.setting-item{display:flex;flex-direction:column;gap:.5rem}.setting-label{font-weight:500;color:#495057;font-size:.95rem;display:flex;justify-content:space-between;align-items:center}.time-preview{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:.25rem .5rem;border-radius:4px;font-size:.8rem;font-weight:600;font-family:Courier New,monospace;margin-left:.5rem;min-width:3.5rem;text-align:center}.input-group{display:flex;align-items:center;position:relative;gap:.5rem}.input-suffix{position:absolute;right:12px;color:#6c757d;font-size:.9rem;pointer-events:none}.modern-input,.modern-select{width:100%;padding:.75rem 1rem;border:2px solid #e9ecef;border-radius:8px;font-size:1rem;transition:all .3s ease;background:#fff;color:#495057}.modern-input:focus,.modern-select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.modern-input[type=number]{padding-right:2.5rem}.modern-select{cursor:pointer;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn{padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .3s ease;display:inline-flex;align-items:center;gap:.5rem;text-decoration:none;line-height:1}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 4px 12px #667eea66}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #667eea80}.btn-success{background:linear-gradient(135deg,#28a745,#20c997);color:#fff;box-shadow:0 4px 12px #28a74566}.btn-success:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #28a74580}.btn-outline{background:#fff;color:#667eea;border:2px solid #667eea}.btn-outline:hover:not(:disabled){background:#667eea;color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px #667eea4d}.btn-danger{background:linear-gradient(135deg,#dc3545,#c82333);color:#fff;box-shadow:0 4px 12px #dc354566}.btn-danger:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #dc354580}.btn-small{padding:.5rem .75rem;font-size:.875rem;min-width:auto}.add-item-form{background:#f8f9fa;border:2px dashed #dee2e6;border-radius:12px;padding:1.5rem;transition:all .3s ease;overflow:hidden;width:100%;box-sizing:border-box}.add-item-form:hover{border-color:#667eea;background:#f8f9ff}.form-row{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end;min-height:80px}.form-row .form-field:nth-child(1){flex:2 1 200px;min-width:150px}.form-row .form-field:nth-child(2){flex:1 1 100px;min-width:90px}.form-row .form-field:nth-child(3){flex:1 1 120px;min-width:120px}.form-row .form-field:nth-child(4){flex:0 0 auto;min-width:120px}.form-field{display:flex;flex-direction:column;gap:.5rem;min-width:0;box-sizing:border-box}.form-field .setting-label{margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}.form-field .modern-input,.form-field .modern-select{min-width:0;width:100%;box-sizing:border-box}.form-field input[type=number]{min-width:80px}.form-field select{min-width:120px}.form-field .btn{min-width:100px;white-space:nowrap}@media(max-width:1024px){.form-row{gap:.75rem}.form-row .form-field:nth-child(1){flex:1 1 150px;min-width:120px}.form-field .setting-label{font-size:.8rem}}@media(max-width:768px){.form-row{flex-direction:column;gap:1rem;min-height:auto}.form-row .form-field:nth-child(1),.form-row .form-field:nth-child(2),.form-row .form-field:nth-child(3),.form-row .form-field:nth-child(4){flex:1 1 auto;min-width:0;width:100%}.form-field .btn{width:100%;justify-content:center}.form-field .setting-label{white-space:normal}}@media(max-width:480px){.form-row{gap:.75rem}.add-item-form{padding:1rem}}.order-list{background:#f8f9fa;border-radius:12px;padding:1rem;max-height:400px;overflow-y:auto}.order-item{display:grid;grid-template-columns:auto auto 1fr auto auto auto;gap:1rem;align-items:center;background:#fff;border:2px solid #e9ecef;border-radius:8px;padding:.75rem;margin-bottom:.5rem;cursor:grab;transition:all .3s ease;-webkit-user-select:none;user-select:none}.order-item:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea26}.order-item.dragging{opacity:.6;transform:rotate(2deg);cursor:grabbing;z-index:1000}.order-item.drag-over{border-color:#28a745;background:#f8fff9;transform:scale(1.02)}.order-number{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:50%;font-weight:700;font-size:.875rem;flex-shrink:0}.drag-handle{color:#6c757d;font-size:1.2rem;cursor:grab;padding:.25rem;border-radius:4px;transition:all .2s ease}.drag-handle:hover{background:#e9ecef;color:#495057}.order-item.dragging .drag-handle{cursor:grabbing}.stage-name{font-weight:500;color:#495057;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-info{display:flex;gap:.5rem;align-items:center;flex-shrink:0}.time-info{background:#e9ecef;color:#495057;padding:.25rem .5rem;border-radius:4px;font-size:.875rem;font-family:monospace}.mode-info{font-size:1.2rem}.order-controls{display:flex;gap:.25rem;flex-shrink:0}.order-controls .btn{width:2rem;height:2rem;padding:0;display:flex;align-items:center;justify-content:center;font-size:.875rem;min-width:auto}.order-help{margin-top:1rem;padding:.75rem;background:#fff3cd;border:1px solid #ffeaa7;border-radius:8px;text-align:center}.order-help p{margin:0;color:#856404;font-size:.875rem}@media(max-width:768px){.order-item{grid-template-columns:auto 1fr auto;gap:.5rem}.drag-handle,.stage-info{display:none}.order-controls,.stage-name{grid-column:span 1}}.settings-actions{display:flex;justify-content:center;gap:1rem;margin-top:1rem;flex-wrap:wrap}.scroll-indicator{text-align:center;margin-top:2rem;opacity:.7}.scroll-indicator p{color:#fffc;font-size:.9rem;margin:0;padding:1rem;background:#ffffff1a;border-radius:8px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.modern-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modern-modal{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;width:100%;max-width:500px;overflow:hidden;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 2rem;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-bottom:1px solid #e9ecef}.modal-title{margin:0;font-size:1.25rem;font-weight:600;color:#495057}.modal-close{background:none;border:none;font-size:1.5rem;color:#6c757d;cursor:pointer;padding:.25rem;border-radius:4px;transition:all .2s ease}.modal-close:hover{background:#0000001a;color:#495057}.modal-body{padding:2rem}.modal-label{display:block;margin-bottom:.5rem;font-weight:500;color:#495057}.modal-input{width:100%;padding:.75rem 1rem;border:2px solid #e9ecef;border-radius:8px;font-size:1rem;transition:all .3s ease}.modal-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.modal-footer{display:flex;justify-content:flex-end;gap:1rem;padding:1.5rem 2rem;background:#f8f9fa;border-top:1px solid #e9ecef}.dark-mode .modern-settings-container{background:linear-gradient(135deg,#2c3e50,#34495e)}.dark-mode .settings-card{background:#3a3a3a;color:#f8f9fa}.dark-mode .card-header{background:linear-gradient(135deg,#4a4a4a,#5a5a5a);border-bottom-color:#555}.dark-mode .card-title,.dark-mode .card-description,.dark-mode .config-label,.dark-mode .setting-label{color:#f8f9fa}.dark-mode .time-preview{background:linear-gradient(135deg,#5a6fd8,#6b5b95)}.dark-mode .modern-input,.dark-mode .modern-select{background:#4a4a4a;border-color:#555;color:#f8f9fa}.dark-mode .modern-input:focus,.dark-mode .modern-select:focus{border-color:#667eea}.dark-mode .modern-modal{background:#3a3a3a;color:#f8f9fa}.dark-mode .modal-header,.dark-mode .modal-footer{background:#4a4a4a;border-color:#555}.dark-mode .modal-title,.dark-mode .modal-label{color:#f8f9fa}.dark-mode .modal-input{background:#4a4a4a;border-color:#555;color:#f8f9fa}@media(max-width:768px){.settings-title{font-size:2rem}.settings-content{padding:1rem 1rem 3rem}.timer-nav{padding:.75rem 1rem;flex-wrap:wrap;row-gap:.65rem}.timer-nav .nav-left{flex:1 1 auto;min-width:min(100%,12rem)}.timer-nav .nav-right{width:100%;margin-left:0;justify-content:flex-end}.timer-nav .nav-actions-group{width:100%;max-width:100%;justify-content:end}.app-title{font-size:1.2rem}.nav-btn{padding:.4rem .8rem;font-size:.8rem}.settings-nav{flex-direction:column;gap:1rem;margin-bottom:1.5rem;align-items:stretch}.settings-nav .nav-right.settings-nav-actions{width:100%;justify-content:center}.nav-center{order:-1}.nav-title{font-size:1rem}.breadcrumb-item{font-size:.8rem}.breadcrumb{gap:.25rem}.nav-back-btn,.nav-help-btn{font-size:.85rem;padding:.4rem .8rem}.header-content{padding:0 1rem}.card-header,.card-content{padding:1.5rem}.settings-grid{grid-template-columns:1fr}.config-row{flex-direction:column;align-items:stretch}.config-actions,.settings-actions{flex-direction:column}.btn{width:100%;justify-content:center}.modal-header,.modal-body,.modal-footer{padding:1rem 1.5rem}}@media(max-width:480px){.settings-title{font-size:1.75rem}.header-content,.settings-content,.card-header,.card-content{padding:1rem}}
