:root{--font-mono:"Roboto Mono", monospace}*{box-sizing:border-box}html{-webkit-font-smoothing:antialiased;background:#000;font-size:18px;line-height:32px}html,body,#app{height:100%}body{color:#fff;margin:0;font-family:system-ui;font-size:18px;line-height:32px}@media (max-width:1024px){body{font-size:15px;line-height:24px}}img{max-width:100%;height:auto;display:block}h1{margin:40px 0;font-size:64px;font-weight:700;line-height:70px}@media (max-width:1024px){h1{margin:24px 0;font-size:42px;line-height:42px}}@media (max-width:768px){h1{font-size:38px;line-height:38px}}@media (max-width:400px){h1{font-size:32px;line-height:32px}}p{margin:24px 0}@media (max-width:1024px){p{margin:calc(var(--base) * .75) 0}}a{color:currentColor}a:focus{opacity:.8;outline:none}a:active{opacity:.7;outline:none}svg{vertical-align:middle}.home{flex-direction:column;justify-content:space-between;align-items:center;max-width:1024px;height:100vh;margin:0 auto;padding:45px;display:flex;overflow:hidden}@media (max-width:400px){.home{padding:24px}}.home .content{flex-direction:column;flex-grow:1;justify-content:center;align-items:center;display:flex}.home .content h1{text-align:center}.home .links{align-items:center;gap:12px;display:flex}.home .links a{border-radius:4px;padding:.25rem .5rem;text-decoration:none}.home .links .admin{color:#000;background:#fff;border:1px solid #000}.home .links .docs{color:#fff;background:#000;border:1px solid #fff}.home .footer{align-items:center;gap:8px;display:flex}@media (max-width:1024px){.home .footer{flex-direction:column;gap:6px}}.home .footer p{margin:0}.home .footer .codeLink{background:#3c3c3c;border-radius:4px;padding:0 .5rem;text-decoration:none}:root{--portal-bg:#f5f6f8;--portal-surface:#fff;--portal-border:#d8dce3;--portal-border-hover:#aeb4bf;--portal-text:#1a2a52;--portal-muted:#646b78;--portal-navy:#1a2a52;--portal-navy-hover:#13203f;--portal-accent:#e8801e;--portal-accent-hover:#cf6f12;--portal-focus-ring:#e8801e59;--portal-disabled-bg:#eef0f3;--portal-success:#15803d;--portal-success-hover:#126b34;--portal-error:#b00020;--portal-radius:8px;--portal-radius-sm:6px}.portal,.portal-auth{color:var(--portal-text);font-size:16px;line-height:1.5}.portal-auth{background:var(--portal-surface);border:1px solid var(--portal-border);border-radius:10px;max-width:380px;margin:8vh auto;padding:2rem}.portal-auth-title{margin:0 0 .75rem;font-size:26px;line-height:1.2}.portal-auth-logo{width:100%;max-width:260px;height:auto;margin-bottom:1rem;display:block}.portal-auth-subtitle{color:var(--portal-muted);margin:0 0 1.5rem;font-size:15px}.portal{background:var(--portal-bg);min-height:100vh}.portal-header{background:var(--portal-surface);border-bottom:1px solid var(--portal-border);justify-content:space-between;align-items:center;gap:1rem;padding:.9rem 1.5rem;display:flex}.portal-brand{color:var(--portal-text);flex:none;align-items:center;font-size:18px;font-weight:700;text-decoration:none;display:flex}.portal-brand img{width:auto;max-width:none;height:48px;display:block}.portal-nav{align-items:center;gap:1rem;display:flex}.portal-nav a{color:var(--portal-text);font-size:15px;text-decoration:none}.portal-whoami{color:var(--portal-muted);font-size:14px}@media (max-width:640px){.portal-header{flex-wrap:wrap;gap:.25rem 1rem;padding:.6rem 1rem}.portal-brand{min-height:44px}.portal-brand img{height:40px}.portal-nav{flex-wrap:wrap;flex:100%;gap:0;margin:0 -.5rem}.portal-nav a,.portal-nav .portal-link-button{align-items:center;min-width:44px;min-height:44px;padding:0 .6rem;display:inline-flex}.portal-nav form{margin-left:auto}.portal-nav .notif-bell-button{justify-content:center;align-items:center;min-width:44px;min-height:44px;display:inline-flex}.portal-whoami{display:none}.portal-content{padding:1.25rem 1rem}}.portal-content{padding:2rem 1.5rem}.portal-section{max-width:860px;margin:0 auto}.portal-section-narrow{max-width:620px}.portal-section-wide{max-width:none}.portal-section-head{justify-content:space-between;align-items:center;gap:1rem;display:flex}.portal-h1{margin:0 0 1rem;font-size:28px;line-height:1.25}.portal-h2{margin:1.5rem 0 .75rem;font-size:19px}.portal-muted{color:var(--portal-muted);font-size:14px}.portal-breadcrumbs{flex-wrap:wrap;align-items:center;gap:.4rem;margin-bottom:.75rem;font-size:14px;display:flex}.portal-breadcrumb-link{color:var(--portal-muted);text-decoration:none}.portal-breadcrumb-link:hover{text-decoration:underline}.portal-breadcrumb-current{color:var(--portal-text)}.portal-breadcrumb-sep{color:var(--portal-muted)}.portal-form{flex-direction:column;gap:.9rem;margin-top:1rem;display:flex}.portal-field{flex-direction:column;gap:.3rem;display:flex}.portal-field-inline{flex-direction:column}.portal-label{color:var(--portal-muted);font-size:13px}.portal-field input,.portal-field textarea,.portal-field select{width:100%;color:var(--portal-text);background:var(--portal-surface);border:1px solid var(--portal-border);border-radius:var(--portal-radius-sm);padding:.6rem .7rem;font-family:inherit;font-size:15px;transition:border-color .15s,box-shadow .15s}.portal-field input::placeholder,.portal-field textarea::placeholder{color:var(--portal-muted)}.portal-field input:hover,.portal-field textarea:hover,.portal-field select:hover{border-color:var(--portal-border-hover)}.portal-field input:focus,.portal-field textarea:focus,.portal-field select:focus{border-color:var(--portal-accent);box-shadow:0 0 0 3px var(--portal-focus-ring);outline:none}.portal-field input:disabled,.portal-field textarea:disabled,.portal-field select:disabled{background-color:var(--portal-disabled-bg);color:var(--portal-muted);cursor:not-allowed}.portal-field textarea{resize:vertical;min-height:6rem}.portal-field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3E%3Cpath%20d='M6%208l4%204%204-4'%20fill='none'%20stroke='%231a2a52'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right .6rem center;background-repeat:no-repeat;background-size:16px 16px;padding-right:2rem}.portal-button{color:#fff;background:var(--portal-navy);border:1px solid var(--portal-navy);border-radius:var(--portal-radius-sm);cursor:pointer;align-self:flex-start;padding:.6rem 1.2rem;font-family:inherit;font-size:15px;font-weight:500;line-height:1.4;text-decoration:none;transition:background-color .15s,border-color .15s,box-shadow .15s}.portal-button:hover{background:var(--portal-navy-hover);border-color:var(--portal-navy-hover)}.portal-button:focus-visible{box-shadow:0 0 0 3px var(--portal-focus-ring);outline:none}.portal-button:disabled{opacity:.55;cursor:wait}.portal-button-secondary{color:var(--portal-navy);background:var(--portal-surface);border-color:var(--portal-border)}.portal-button-secondary:hover{background:var(--portal-disabled-bg);border-color:var(--portal-border-hover)}.portal-button-primary{color:#fff;background:var(--portal-success);border-color:var(--portal-success)}.portal-button-primary:hover{background:var(--portal-success-hover);border-color:var(--portal-success-hover)}.portal-button-small{padding:.35rem .8rem;font-size:13px}.portal-edit-actions{gap:.6rem;margin-top:.75rem;display:flex}.portal-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem;display:flex}.portal-jump{align-items:flex-end;gap:.5rem;display:flex}.portal-jump .portal-field input.portal-jump-input{width:7rem}.portal-toggle{border:1px solid var(--portal-border);background:#eef0f3;border-radius:8px;gap:.2rem;padding:.2rem;display:inline-flex}.portal-toggle-option{color:var(--portal-muted);border-radius:var(--portal-radius-sm);padding:.35rem .9rem;font-size:14px;text-decoration:none;transition:color .15s,background-color .15s}.portal-toggle-option:not(.portal-toggle-option-active):hover{color:var(--portal-text);background:var(--portal-surface)}.portal-toggle-option-active{color:var(--portal-navy);background:var(--portal-surface);font-weight:600;box-shadow:0 1px 2px #00000014}.portal-link-button{font:inherit;color:var(--portal-text);cursor:pointer;background:0 0;border:none;padding:0;font-size:15px;text-decoration:underline}.portal-link-button:hover{color:var(--portal-navy-hover)}.portal a:focus-visible,.portal-auth a:focus-visible,.portal-link-button:focus-visible{outline:2px solid var(--portal-accent);outline-offset:2px;opacity:1;border-radius:2px}.portal-error{color:var(--portal-error);margin:0;font-size:14px}.portal-auth .portal-error:before{content:"✕ "}.portal-notice{color:var(--portal-success);margin:0 0 1rem;font-size:14px}.portal-filters{flex-wrap:wrap;align-items:flex-end;gap:1rem;margin:1rem 0 1.5rem;display:flex}.portal-list{flex-direction:column;gap:.75rem;margin:0;padding:0;list-style:none;display:flex}.portal-list-item{background:var(--portal-surface);border:1px solid var(--portal-border);border-radius:8px;padding:1rem 1.1rem}.portal-list-title{color:var(--portal-text);font-size:16px;font-weight:600;text-decoration:none}.portal-list-meta{flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:.4rem;display:flex}.portal-badge{color:var(--portal-text);background:#eef0f3;border-radius:999px;padding:.1rem .5rem;font-size:12px;display:inline-block}.portal-badge-status{background:#e4ecf7}.portal-item-id{color:var(--portal-muted);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}.portal-h1 .portal-item-id{vertical-align:middle;font-size:.7em}.portal-empty{text-align:center;color:var(--portal-muted);background:var(--portal-surface);border:1px dashed var(--portal-border);border-radius:8px;flex-direction:column;align-items:center;gap:.9rem;padding:2rem 1.25rem;display:flex}.portal-empty-message{margin:0}.portal-meta{background:var(--portal-surface);border:1px solid var(--portal-border);border-radius:8px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem 1.5rem;margin:0 0 1.5rem;padding:1rem 1.1rem;display:grid}.portal-meta dt{color:var(--portal-muted);font-size:12px}.portal-meta dd{margin:.1rem 0 0;font-size:15px}.portal-body-content{background:var(--portal-surface);border:1px solid var(--portal-border);border-radius:8px;padding:1rem 1.1rem}.rich-text{overflow-wrap:break-word}.rich-text table{border-collapse:collapse;max-width:100%;font-size:14px;display:block;overflow-x:auto}.rich-text th,.rich-text td{border:1px solid var(--portal-border);text-align:left;vertical-align:top;padding:.4rem .6rem}.rich-text pre{background:var(--portal-bg);border:1px solid var(--portal-border);border-radius:6px;max-width:100%;padding:.75rem .9rem;overflow-x:auto}.rich-text :not(pre)>code{background:var(--portal-bg);border-radius:4px;padding:.1em .35em;font-size:.9em}.rich-text-embed{width:fit-content;max-width:100%;display:block}.rich-text-embed img{border:1px solid var(--portal-border);border-radius:6px;max-width:100%;height:auto;max-height:32rem;display:block}.portal-status-action{margin:1.5rem 0}.portal-comments{flex-direction:column;gap:.75rem;margin:0 0 1.5rem;padding:0;list-style:none;display:flex}.portal-comment{background:var(--portal-surface);border:1px solid var(--portal-border);border-radius:8px;padding:.85rem 1rem}.portal-comment-head{justify-content:space-between;align-items:baseline;gap:.75rem;margin-bottom:.4rem;display:flex}.portal-comment-author{font-size:14px;font-weight:600}.portal-attachments ul{margin:0;padding-left:1.2rem}.portal-attachments .portal-attachment-video{margin:.5rem 0 1rem -1.2rem;list-style:none}.portal-attachment-video video{background:#000;width:100%;max-width:720px;margin-bottom:.25rem;display:block}.portal-children{margin:1.5rem 0}.portal-board{align-items:flex-start;gap:.75rem;padding-bottom:.5rem;display:flex;overflow-x:auto}.portal-board-column{background:var(--portal-bg);border:1px solid var(--portal-border);border-radius:8px;flex-direction:column;flex:0 0 240px;gap:.5rem;padding:.6rem;display:flex}.portal-board-column-head{padding:.1rem .2rem .3rem;font-size:13px;font-weight:600}.portal-board-card{background:var(--portal-surface);border:1px solid var(--portal-border);color:var(--portal-text);border-radius:6px;padding:.55rem .65rem;text-decoration:none;display:block}.portal-board-card:hover{border-color:var(--portal-muted)}.portal-board-card-title{margin-bottom:.35rem;font-size:13px;font-weight:600;display:block}.portal-board-card-meta{flex-wrap:wrap;align-items:center;gap:.35rem;display:flex}.portal-editor{flex-direction:column;gap:.3rem;display:flex}.portal-editor-toolbar{flex-wrap:wrap;gap:.25rem;display:flex}.portal-editor-tool{min-width:2rem;color:var(--portal-text);background:var(--portal-surface);border:1px solid var(--portal-border);border-radius:var(--portal-radius-sm);cursor:pointer;padding:.3rem .5rem;font-size:14px;line-height:1;transition:border-color .15s,background-color .15s}.portal-editor-tool:hover:not(:disabled){border-color:var(--portal-border-hover)}.portal-editor-tool:disabled{color:var(--portal-muted);cursor:not-allowed}.portal-editor-shell{position:relative}.portal-editor-input{width:100%;min-height:6rem;color:var(--portal-text);background:var(--portal-surface);border:1px solid var(--portal-border);border-radius:var(--portal-radius-sm);outline:none;padding:.6rem .7rem;font-family:inherit;font-size:15px;transition:border-color .15s,box-shadow .15s}.portal-editor-input:hover{border-color:var(--portal-border-hover)}.portal-editor-input:focus{border-color:var(--portal-accent);box-shadow:0 0 0 3px var(--portal-focus-ring)}.portal-editor-placeholder{color:var(--portal-muted);pointer-events:none;-webkit-user-select:none;user-select:none;font-size:15px;position:absolute;top:.6rem;left:.7rem}.portal-editor-status{color:var(--portal-muted);margin:0;font-size:13px}.portal-editor-bold{font-weight:700}.portal-editor-italic{font-style:italic}.portal-editor-link{color:var(--portal-accent);text-decoration:underline}.portal-embed-thumb{border:1px solid var(--portal-border);border-radius:var(--portal-radius-sm);max-width:100%;max-height:12rem;display:block}.portal-zutun{white-space:nowrap;border-radius:999px;padding:.1rem .5rem;font-size:12px;line-height:1.5;display:inline-block}.portal-zutun-nein{color:var(--portal-muted);background:#eef0f3}.portal-zutun-ja{color:#6b4400;border:1px solid var(--portal-accent);background:#fdf0d5;font-weight:700}.portal-waiting{border:1px solid var(--portal-accent);border-radius:var(--portal-radius);background:#fff8ec;margin:0 0 1.25rem;padding:.9rem 1.1rem}.portal-waiting-title{align-items:center;gap:.6rem;margin:0 0 .5rem;font-size:18px;line-height:1.3;display:flex}.portal-waiting-count{text-align:center;color:#fff;background:var(--portal-accent-hover);border-radius:999px;min-width:1.6rem;padding:0 .5rem;font-size:14px;line-height:1.6rem}.portal-waiting-list{margin:0;padding:0;list-style:none}.portal-waiting-link{min-height:44px;color:var(--portal-text);border-top:1px solid var(--portal-border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.25rem 1rem;padding:.35rem 0;text-decoration:none;display:flex}.portal-waiting-list li:first-child .portal-waiting-link{border-top:none}.portal-waiting-item-title{font-size:15px;font-weight:600}.portal-waiting-item-meta{align-items:center;gap:.6rem;display:inline-flex}.portal-waiting-age{color:var(--portal-muted);white-space:nowrap;font-size:13px}.portal-waiting-none{margin:0 0 1rem}@media (max-width:640px){.portal .portal-button,.portal .portal-toggle-option,.portal .portal-list-title,.portal .portal-board-card,.portal .portal-breadcrumb-link{justify-content:center;align-items:center;min-width:44px;min-height:44px;display:inline-flex}.portal .portal-list-title,.portal .portal-breadcrumb-link{justify-content:flex-start}.portal .portal-board-card{display:block}.portal .portal-field input,.portal .portal-field select{min-height:44px}.portal .portal-toolbar{gap:.6rem}.portal .portal-toggle-option{padding:0 1.1rem}}.kp-last{margin-top:-.25rem;font-size:14px}.kp-stale{border:1px solid var(--portal-accent);border-radius:var(--portal-radius-sm);background:#fff6ec;padding:.6rem .9rem}.kp-group{margin-top:1.5rem}.kp-group-head{align-items:baseline;gap:.5rem;display:flex}.kp-group-head h2{margin:0;font-size:18px}.kp-hint{color:var(--portal-muted);margin:.25rem 0 0;font-size:14px}.kp-list{border-radius:var(--portal-radius);flex-direction:column;gap:.5rem;min-height:3rem;margin:.6rem 0 0;padding:0;list-style:none;display:flex}.kp-group-inbox .kp-list{border:1px dashed var(--portal-border-hover);padding:.5rem}.kp-drop{outline:2px dashed var(--portal-accent);outline-offset:2px}.kp-empty{color:var(--portal-muted);padding:.75rem;font-size:14px}.kp-row{background:var(--portal-surface);border:1px solid var(--portal-border);border-radius:var(--portal-radius);grid-template-columns:2rem 1rem minmax(0,1fr) auto;align-items:center;gap:.25rem .75rem;padding:.6rem .75rem;display:grid}.kp-dragging{opacity:.5}.kp-rank{font-variant-numeric:tabular-nums;text-align:center;font-weight:700}.kp-rank-none{color:var(--portal-muted);font-weight:400}.kp-grip{cursor:grab;color:var(--portal-muted);-webkit-user-select:none;user-select:none}.kp-title{color:var(--portal-text);overflow-wrap:anywhere;font-weight:500;text-decoration:none}.kp-title:hover{text-decoration:underline}.kp-meta{flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:.2rem;display:flex}.kp-target-note{color:var(--portal-muted);font-size:12px}.kp-controls{flex-wrap:wrap;justify-content:flex-end;align-items:flex-end;gap:.4rem;display:flex}.kp .kp-btn{padding:.3rem .6rem;font-size:14px}.kp-target-set{font-variant-numeric:tabular-nums}.kp-field{color:var(--portal-muted);flex-direction:column;gap:.1rem;font-size:12px;display:flex}.kp-select,.kp-date{font:inherit;color:var(--portal-text);background:var(--portal-surface);border:1px solid var(--portal-border);border-radius:var(--portal-radius-sm);padding:.3rem .4rem;font-size:14px}.kp-pop{background:var(--portal-bg);border-radius:var(--portal-radius-sm);flex-wrap:wrap;grid-column:1/-1;align-items:flex-end;gap:.5rem;padding:.6rem;display:flex}.kp-pop-hint{color:var(--portal-muted);flex:100%;margin:0;font-size:13px}.kp-toast{color:#fff;background:var(--portal-navy);border-radius:var(--portal-radius);opacity:0;pointer-events:none;align-items:center;gap:1rem;max-width:calc(100vw - 2rem);padding:.6rem 1rem;transition:opacity .15s,transform .15s;display:flex;position:fixed;bottom:1.25rem;left:50%;transform:translate(-50%,1rem)}.kp-toast-show{opacity:1;pointer-events:auto;transform:translate(-50%)}.kp .kp-undo{color:#ffd7ae;font-weight:600}@media (max-width:640px){.kp-row{grid-template-columns:2rem minmax(0,1fr)}.kp-grip{display:none}.kp-controls{grid-column:1/-1;justify-content:flex-start}.kp .kp-btn,.kp-select,.kp-date{min-width:44px;min-height:44px}}.portal-preview:after{content:"";pointer-events:none;z-index:1000;border:6px solid #b00020;position:fixed;inset:0}.portal-preview-banner{z-index:999;color:#fff;background:#b00020;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1.5rem;padding:.75rem 1.5rem;font-size:15px;display:flex;position:sticky;top:0}.portal-preview-banner p{margin:0}.portal-preview-actions{gap:1.25rem;display:flex}.portal-preview-banner a{color:#fff;font-weight:600;text-decoration:underline}.portal-preview .portal-content form:not([method=get i]),.kp-readonly .kp-controls,.kp-readonly .kp-grip{display:none}.kp-readonly .kp-row{grid-template-columns:2rem minmax(0,1fr)}
